@oliasoft-open-source/charts-library 5.7.0-beta-1 → 5.7.0-beta-2
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/dist/assets/{Color-6BZIO3FS-B_lndV2A.js → Color-6BZIO3FS-kyr31le_.js} +1 -1
- package/dist/assets/{DocsRenderer-LL677BLK-j2yikurS.js → DocsRenderer-LL677BLK-Cl_sjYsB.js} +2 -2
- package/dist/assets/{WithTooltip-65CFNBJE-DfiQoB92.js → WithTooltip-65CFNBJE-BLldOu9_.js} +1 -1
- package/dist/assets/{bar-chart.stories-Cf1RLofM.js → bar-chart.stories-DFFfHACi.js} +1 -1
- package/dist/assets/formatter-EIJCOSYU-DKX-dica.js +1 -0
- package/dist/assets/{get-draggableData-C12OCBBm.js → get-draggableData-D9HMKJ0S.js} +1 -1
- package/dist/assets/{iframe-CSq-_sAA.js → iframe-BhGhWgYN.js} +6 -6
- package/dist/assets/{legend-C7cZM763.js → legend-Cu2I89js.js} +1 -1
- package/dist/assets/{legend-context-DfeWWEmn.js → legend-context-DIUSoId7.js} +1 -1
- package/dist/assets/{line-chart-CYQA8MLo.js → line-chart-BF1lm3kC.js} +1 -1
- package/dist/assets/{line-chart.stories-CwAqWUwu.js → line-chart.stories-C6gjhWIO.js} +1 -1
- package/dist/assets/{line-chart.test-case.stories-BaHgOPJd.js → line-chart.test-case.stories-BtJw2prg.js} +1 -1
- package/dist/assets/{pie-chart.stories-CY-9tbYA.js → pie-chart.stories-gCnKLJ_7.js} +1 -1
- package/dist/assets/{react-18-DQ_bl8X9.js → react-18-C4BVl34v.js} +1 -1
- package/dist/assets/react-18-GUsS1Xdq.js +1 -0
- package/dist/assets/{react-BNyjjuou.js → react-Dv33Nu8K.js} +1 -1
- package/dist/assets/{scatter-chart.stories-TEcXKHqp.js → scatter-chart.stories-C1BGiX7c.js} +1 -1
- package/dist/assets/{syntaxhighlighter-ED5Y7EFY-BVvnbVFn.js → syntaxhighlighter-ED5Y7EFY-vqxOYdgA.js} +1 -1
- package/dist/iframe.html +1 -1
- package/dist/project.json +1 -1
- package/dist/vite-inject-mocker-entry.js +1 -1
- package/package.json +2 -1
- package/dist/assets/formatter-EIJCOSYU-B74txlwF.js +0 -1
- package/dist/assets/react-18-DcmPwFZ-.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./bar-chart.stories-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./bar-chart.stories-DFFfHACi.js","./legend-Cu2I89js.js","./legend-context-DIUSoId7.js","./get-draggableData-D9HMKJ0S.js","./bar-chart-const-BDQ0HT_B.js","./get-custom-legend-plugin-example-Bms8_oSU.js","./line-chart.stories-C6gjhWIO.js","./line-chart-BF1lm3kC.js","./line-chart.test-case.stories-BtJw2prg.js","./pie-chart.stories-gCnKLJ_7.js","./scatter-chart.stories-C1BGiX7c.js","./react-18-GUsS1Xdq.js","./react-18-C4BVl34v.js","./DocsRenderer-LL677BLK-Cl_sjYsB.js","./preload-helper-CEJlJDXQ.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
import{t as e}from"./preload-helper-CEJlJDXQ.js";var t=Object.create,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(e,t)=>()=>(e&&(t=e(e=0)),t),c=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),l=(e,t)=>{let r={};for(var i in e)n(r,i,{get:e[i],enumerable:!0});return t&&n(r,Symbol.toStringTag,{value:`Module`}),r},u=(e,t,a,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=i(t),l=0,u=c.length,d;l<u;l++)d=c[l],!o.call(e,d)&&d!==a&&n(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(s=r(t,d))||s.enumerable});return e},d=(e,r,i)=>(i=e==null?{}:t(a(e)),u(r||!e||!e.__esModule?n(i,`default`,{value:e,enumerable:!0}):i,e)),f=e=>o.call(e,`module.exports`)?e[`module.exports`]:u(n({},`__esModule`,{value:!0}),e),p=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function.")});(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var m=Object.create,h=Object.defineProperty,g=Object.getOwnPropertyDescriptor,_=Object.getOwnPropertyNames,v=Object.getPrototypeOf,y=Object.prototype.hasOwnProperty,b=(e=>typeof p<`u`?p:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof p<`u`?p:e)[t]}):e)(function(e){if(typeof p<`u`)return p.apply(this,arguments);throw Error(`Dynamic require of "`+e+`" is not supported`)}),x=(e,t)=>function(){return t||(0,e[_(e)[0]])((t={exports:{}}).exports,t),t.exports},S=(e,t)=>{for(var n in t)h(e,n,{get:t[n],enumerable:!0})},C=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of _(t))!y.call(e,i)&&i!==n&&h(e,i,{get:()=>t[i],enumerable:!(r=g(t,i))||r.enumerable});return e},w=(e,t,n)=>(n=e==null?{}:m(v(e)),C(t||!e||!e.__esModule?h(n,`default`,{value:e,enumerable:!0}):n,e)),T=x({"../../node_modules/@ngard/tiny-isequal/index.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.isEqual=(function(){var e=Object.prototype.toString,t=Object.getPrototypeOf,n=Object.getOwnPropertySymbols?function(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}:Object.keys;return function(r,i){return(function r(i,a,o){var s,c,l,u=e.call(i),d=e.call(a);if(i===a)return!0;if(i==null||a==null)return!1;if(o.indexOf(i)>-1&&o.indexOf(a)>-1)return!0;if(o.push(i,a),u!=d||(s=n(i),c=n(a),s.length!=c.length||s.some(function(e){return!r(i[e],a[e],o)})))return!1;switch(u.slice(8,-1)){case`Symbol`:return i.valueOf()==a.valueOf();case`Date`:case`Number`:return+i==+a||+i!=+i&&+a!=+a;case`RegExp`:case`Function`:case`String`:case`Boolean`:return``+i==``+a;case`Set`:case`Map`:s=i.entries(),c=a.entries();do if(!r((l=s.next()).value,c.next().value,o))return!1;while(!l.done);return!0;case`ArrayBuffer`:i=new Uint8Array(i),a=new Uint8Array(a);case`DataView`:i=new Uint8Array(i.buffer),a=new Uint8Array(a.buffer);case`Float32Array`:case`Float64Array`:case`Int8Array`:case`Int16Array`:case`Int32Array`:case`Uint8Array`:case`Uint16Array`:case`Uint32Array`:case`Uint8ClampedArray`:case`Arguments`:case`Array`:if(i.length!=a.length)return!1;for(l=0;l<i.length;l++)if((l in i||l in a)&&(l in i!=l in a||!r(i[l],a[l],o)))return!1;return!0;case`Object`:return r(t(i),t(a),o);default:return!1}})(r,i,[])}})()}}),E=x({"../../node_modules/min-indent/index.js"(e,t){t.exports=e=>{let t=e.match(/^[ \t]*(?=\S)/gm);return t?t.reduce((e,t)=>Math.min(e,t.length),1/0):0}}}),D=x({"../../node_modules/strip-indent/index.js"(e,t){var n=E();t.exports=e=>{let t=n(e);if(t===0)return e;let r=RegExp(`^[ \\t]{${t}}`,`gm`);return e.replace(r,``)}}}),O=x({"../../node_modules/indent-string/index.js"(e,t){t.exports=(e,t=1,n)=>{if(n={indent:` `,includeEmptyLines:!1,...n},typeof e!=`string`)throw TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof t!=`number`)throw TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(typeof n.indent!=`string`)throw TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n.indent}\``);if(t===0)return e;let r=n.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(r,n.indent.repeat(t))}}}),k=x({"../../node_modules/redent/index.js"(e,t){var n=D(),r=O();t.exports=(e,t=0,i)=>r(n(e),t,i)}}),A=x({"../../node_modules/aria-query/lib/util/iteratorProxy.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;function t(){var e=this,t=0,n={"@@iterator":function(){return n},next:function(){if(t<e.length){var n=e[t];return t+=1,{done:!1,value:n}}else return{done:!0}}};return n}e.default=t}}),j=x({"../../node_modules/aria-query/lib/util/iterationDecorator.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=i;var t=n(A());function n(e){return e&&e.__esModule?e:{default:e}}function r(e){"@babel/helpers - typeof";return r=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},r(e)}function i(e,n){return typeof Symbol==`function`&&r(Symbol.iterator)===`symbol`&&Object.defineProperty(e,Symbol.iterator,{value:t.default.bind(n)}),e}}}),M=x({"../../node_modules/aria-query/lib/ariaPropsMap.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var t=n(j());function n(e){return e&&e.__esModule?e:{default:e}}function r(e,t){return c(e)||s(e,t)||a(e,t)||i()}function i(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
3
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a(e,t){if(e){if(typeof e==`string`)return o(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}function o(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function c(e){if(Array.isArray(e))return e}var l=[[`aria-activedescendant`,{type:`id`}],[`aria-atomic`,{type:`boolean`}],[`aria-autocomplete`,{type:`token`,values:[`inline`,`list`,`both`,`none`]}],[`aria-braillelabel`,{type:`string`}],[`aria-brailleroledescription`,{type:`string`}],[`aria-busy`,{type:`boolean`}],[`aria-checked`,{type:`tristate`}],[`aria-colcount`,{type:`integer`}],[`aria-colindex`,{type:`integer`}],[`aria-colspan`,{type:`integer`}],[`aria-controls`,{type:`idlist`}],[`aria-current`,{type:`token`,values:[`page`,`step`,`location`,`date`,`time`,!0,!1]}],[`aria-describedby`,{type:`idlist`}],[`aria-description`,{type:`string`}],[`aria-details`,{type:`id`}],[`aria-disabled`,{type:`boolean`}],[`aria-dropeffect`,{type:`tokenlist`,values:[`copy`,`execute`,`link`,`move`,`none`,`popup`]}],[`aria-errormessage`,{type:`id`}],[`aria-expanded`,{type:`boolean`,allowundefined:!0}],[`aria-flowto`,{type:`idlist`}],[`aria-grabbed`,{type:`boolean`,allowundefined:!0}],[`aria-haspopup`,{type:`token`,values:[!1,!0,`menu`,`listbox`,`tree`,`grid`,`dialog`]}],[`aria-hidden`,{type:`boolean`,allowundefined:!0}],[`aria-invalid`,{type:`token`,values:[`grammar`,!1,`spelling`,!0]}],[`aria-keyshortcuts`,{type:`string`}],[`aria-label`,{type:`string`}],[`aria-labelledby`,{type:`idlist`}],[`aria-level`,{type:`integer`}],[`aria-live`,{type:`token`,values:[`assertive`,`off`,`polite`]}],[`aria-modal`,{type:`boolean`}],[`aria-multiline`,{type:`boolean`}],[`aria-multiselectable`,{type:`boolean`}],[`aria-orientation`,{type:`token`,values:[`vertical`,`undefined`,`horizontal`]}],[`aria-owns`,{type:`idlist`}],[`aria-placeholder`,{type:`string`}],[`aria-posinset`,{type:`integer`}],[`aria-pressed`,{type:`tristate`}],[`aria-readonly`,{type:`boolean`}],[`aria-relevant`,{type:`tokenlist`,values:[`additions`,`all`,`removals`,`text`]}],[`aria-required`,{type:`boolean`}],[`aria-roledescription`,{type:`string`}],[`aria-rowcount`,{type:`integer`}],[`aria-rowindex`,{type:`integer`}],[`aria-rowspan`,{type:`integer`}],[`aria-selected`,{type:`boolean`,allowundefined:!0}],[`aria-setsize`,{type:`integer`}],[`aria-sort`,{type:`token`,values:[`ascending`,`descending`,`none`,`other`]}],[`aria-valuemax`,{type:`number`}],[`aria-valuemin`,{type:`number`}],[`aria-valuenow`,{type:`number`}],[`aria-valuetext`,{type:`string`}]],u={entries:function(){return l},forEach:function(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=0,i=l;n<i.length;n++){var a=r(i[n],2),o=a[0],s=a[1];e.call(t,s,o,l)}},get:function(e){var t=l.filter(function(t){return t[0]===e})[0];return t&&t[1]},has:function(e){return!!u.get(e)},keys:function(){return l.map(function(e){return r(e,1)[0]})},values:function(){return l.map(function(e){return r(e,2)[1]})}};e.default=(0,t.default)(u,u.entries())}}),N=x({"../../node_modules/aria-query/lib/domMap.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var t=n(j());function n(e){return e&&e.__esModule?e:{default:e}}function r(e,t){return c(e)||s(e,t)||a(e,t)||i()}function i(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
4
4
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a(e,t){if(e){if(typeof e==`string`)return o(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}function o(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function c(e){if(Array.isArray(e))return e}var l=[[`a`,{reserved:!1}],[`abbr`,{reserved:!1}],[`acronym`,{reserved:!1}],[`address`,{reserved:!1}],[`applet`,{reserved:!1}],[`area`,{reserved:!1}],[`article`,{reserved:!1}],[`aside`,{reserved:!1}],[`audio`,{reserved:!1}],[`b`,{reserved:!1}],[`base`,{reserved:!0}],[`bdi`,{reserved:!1}],[`bdo`,{reserved:!1}],[`big`,{reserved:!1}],[`blink`,{reserved:!1}],[`blockquote`,{reserved:!1}],[`body`,{reserved:!1}],[`br`,{reserved:!1}],[`button`,{reserved:!1}],[`canvas`,{reserved:!1}],[`caption`,{reserved:!1}],[`center`,{reserved:!1}],[`cite`,{reserved:!1}],[`code`,{reserved:!1}],[`col`,{reserved:!0}],[`colgroup`,{reserved:!0}],[`content`,{reserved:!1}],[`data`,{reserved:!1}],[`datalist`,{reserved:!1}],[`dd`,{reserved:!1}],[`del`,{reserved:!1}],[`details`,{reserved:!1}],[`dfn`,{reserved:!1}],[`dialog`,{reserved:!1}],[`dir`,{reserved:!1}],[`div`,{reserved:!1}],[`dl`,{reserved:!1}],[`dt`,{reserved:!1}],[`em`,{reserved:!1}],[`embed`,{reserved:!1}],[`fieldset`,{reserved:!1}],[`figcaption`,{reserved:!1}],[`figure`,{reserved:!1}],[`font`,{reserved:!1}],[`footer`,{reserved:!1}],[`form`,{reserved:!1}],[`frame`,{reserved:!1}],[`frameset`,{reserved:!1}],[`h1`,{reserved:!1}],[`h2`,{reserved:!1}],[`h3`,{reserved:!1}],[`h4`,{reserved:!1}],[`h5`,{reserved:!1}],[`h6`,{reserved:!1}],[`head`,{reserved:!0}],[`header`,{reserved:!1}],[`hgroup`,{reserved:!1}],[`hr`,{reserved:!1}],[`html`,{reserved:!0}],[`i`,{reserved:!1}],[`iframe`,{reserved:!1}],[`img`,{reserved:!1}],[`input`,{reserved:!1}],[`ins`,{reserved:!1}],[`kbd`,{reserved:!1}],[`keygen`,{reserved:!1}],[`label`,{reserved:!1}],[`legend`,{reserved:!1}],[`li`,{reserved:!1}],[`link`,{reserved:!0}],[`main`,{reserved:!1}],[`map`,{reserved:!1}],[`mark`,{reserved:!1}],[`marquee`,{reserved:!1}],[`menu`,{reserved:!1}],[`menuitem`,{reserved:!1}],[`meta`,{reserved:!0}],[`meter`,{reserved:!1}],[`nav`,{reserved:!1}],[`noembed`,{reserved:!0}],[`noscript`,{reserved:!0}],[`object`,{reserved:!1}],[`ol`,{reserved:!1}],[`optgroup`,{reserved:!1}],[`option`,{reserved:!1}],[`output`,{reserved:!1}],[`p`,{reserved:!1}],[`param`,{reserved:!0}],[`picture`,{reserved:!0}],[`pre`,{reserved:!1}],[`progress`,{reserved:!1}],[`q`,{reserved:!1}],[`rp`,{reserved:!1}],[`rt`,{reserved:!1}],[`rtc`,{reserved:!1}],[`ruby`,{reserved:!1}],[`s`,{reserved:!1}],[`samp`,{reserved:!1}],[`script`,{reserved:!0}],[`section`,{reserved:!1}],[`select`,{reserved:!1}],[`small`,{reserved:!1}],[`source`,{reserved:!0}],[`spacer`,{reserved:!1}],[`span`,{reserved:!1}],[`strike`,{reserved:!1}],[`strong`,{reserved:!1}],[`style`,{reserved:!0}],[`sub`,{reserved:!1}],[`summary`,{reserved:!1}],[`sup`,{reserved:!1}],[`table`,{reserved:!1}],[`tbody`,{reserved:!1}],[`td`,{reserved:!1}],[`textarea`,{reserved:!1}],[`tfoot`,{reserved:!1}],[`th`,{reserved:!1}],[`thead`,{reserved:!1}],[`time`,{reserved:!1}],[`title`,{reserved:!0}],[`tr`,{reserved:!1}],[`track`,{reserved:!0}],[`tt`,{reserved:!1}],[`u`,{reserved:!1}],[`ul`,{reserved:!1}],[`var`,{reserved:!1}],[`video`,{reserved:!1}],[`wbr`,{reserved:!1}],[`xmp`,{reserved:!1}]],u={entries:function(){return l},forEach:function(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=0,i=l;n<i.length;n++){var a=r(i[n],2),o=a[0],s=a[1];e.call(t,s,o,l)}},get:function(e){var t=l.filter(function(t){return t[0]===e})[0];return t&&t[1]},has:function(e){return!!u.get(e)},keys:function(){return l.map(function(e){return r(e,1)[0]})},values:function(){return l.map(function(e){return r(e,2)[1]})}};e.default=(0,t.default)(u,u.entries())}}),P=x({"../../node_modules/aria-query/lib/etc/roles/abstract/commandRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`widget`]]}}}),ee=x({"../../node_modules/aria-query/lib/etc/roles/abstract/compositeRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`widget`]]}}}),te=x({"../../node_modules/aria-query/lib/etc/roles/abstract/inputRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null},relatedConcepts:[{concept:{name:`input`},module:`XForms`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`widget`]]}}}),F=x({"../../node_modules/aria-query/lib/etc/roles/abstract/landmarkRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),I=x({"../../node_modules/aria-query/lib/etc/roles/abstract/rangeRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`]]}}}),ne=x({"../../node_modules/aria-query/lib/etc/roles/abstract/roletypeRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{"aria-atomic":null,"aria-busy":null,"aria-controls":null,"aria-current":null,"aria-describedby":null,"aria-details":null,"aria-dropeffect":null,"aria-flowto":null,"aria-grabbed":null,"aria-hidden":null,"aria-keyshortcuts":null,"aria-label":null,"aria-labelledby":null,"aria-live":null,"aria-owns":null,"aria-relevant":null,"aria-roledescription":null},relatedConcepts:[{concept:{name:`role`},module:`XHTML`},{concept:{name:`type`},module:`Dublin Core`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]}}}),re=x({"../../node_modules/aria-query/lib/etc/roles/abstract/sectionRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`frontmatter`},module:`DTB`},{concept:{name:`level`},module:`DTB`},{concept:{name:`level`},module:`SMIL`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`]]}}}),ie=x({"../../node_modules/aria-query/lib/etc/roles/abstract/sectionheadRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`]]}}}),L=x({"../../node_modules/aria-query/lib/etc/roles/abstract/selectRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-orientation":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`widget`,`composite`],[`roletype`,`structure`,`section`,`group`]]}}}),ae=x({"../../node_modules/aria-query/lib/etc/roles/abstract/structureRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`]]}}}),oe=x({"../../node_modules/aria-query/lib/etc/roles/abstract/widgetRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`]]}}}),se=x({"../../node_modules/aria-query/lib/etc/roles/abstract/windowRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-modal":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`]]}}}),ce=x({"../../node_modules/aria-query/lib/etc/roles/ariaAbstractRoles.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var t=p(P()),n=p(ee()),r=p(te()),i=p(F()),a=p(I()),o=p(ne()),s=p(re()),c=p(ie()),l=p(L()),u=p(ae()),d=p(oe()),f=p(se());function p(e){return e&&e.__esModule?e:{default:e}}e.default=[[`command`,t.default],[`composite`,n.default],[`input`,r.default],[`landmark`,i.default],[`range`,a.default],[`roletype`,o.default],[`section`,s.default],[`sectionhead`,c.default],[`select`,l.default],[`structure`,u.default],[`widget`,d.default],[`window`,f.default]]}}),le=x({"../../node_modules/aria-query/lib/etc/roles/literal/alertRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-atomic":`true`,"aria-live":`assertive`},relatedConcepts:[{concept:{name:`alert`},module:`XForms`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),ue=x({"../../node_modules/aria-query/lib/etc/roles/literal/alertdialogRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`alert`},module:`XForms`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`alert`],[`roletype`,`window`,`dialog`]]}}}),de=x({"../../node_modules/aria-query/lib/etc/roles/literal/applicationRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`Device Independence Delivery Unit`}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`]]}}}),fe=x({"../../node_modules/aria-query/lib/etc/roles/literal/articleRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:`article`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`document`]]}}}),pe=x({"../../node_modules/aria-query/lib/etc/roles/literal/bannerRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:[`scoped to the body element`],name:`header`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),me=x({"../../node_modules/aria-query/lib/etc/roles/literal/blockquoteRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`blockquote`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),he=x({"../../node_modules/aria-query/lib/etc/roles/literal/buttonRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-pressed":null},relatedConcepts:[{concept:{attributes:[{name:`type`,value:`button`}],name:`input`},module:`HTML`},{concept:{attributes:[{name:`type`,value:`image`}],name:`input`},module:`HTML`},{concept:{attributes:[{name:`type`,value:`reset`}],name:`input`},module:`HTML`},{concept:{attributes:[{name:`type`,value:`submit`}],name:`input`},module:`HTML`},{concept:{name:`button`},module:`HTML`},{concept:{name:`trigger`},module:`XForms`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`widget`,`command`]]}}}),ge=x({"../../node_modules/aria-query/lib/etc/roles/literal/captionRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`prohibited`],prohibitedProps:[`aria-label`,`aria-labelledby`],props:{},relatedConcepts:[{concept:{name:`caption`},module:`HTML`}],requireContextRole:[`figure`,`grid`,`table`],requiredContextRole:[`figure`,`grid`,`table`],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),_e=x({"../../node_modules/aria-query/lib/etc/roles/literal/cellRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-colindex":null,"aria-colspan":null,"aria-rowindex":null,"aria-rowspan":null},relatedConcepts:[{concept:{constraints:[`ancestor table element has table role`],name:`td`},module:`HTML`}],requireContextRole:[`row`],requiredContextRole:[`row`],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),ve=x({"../../node_modules/aria-query/lib/etc/roles/literal/checkboxRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-checked":null,"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{name:`type`,value:`checkbox`}],name:`input`},module:`HTML`},{concept:{name:`option`},module:`ARIA`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[[`roletype`,`widget`,`input`]]}}}),ye=x({"../../node_modules/aria-query/lib/etc/roles/literal/codeRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`prohibited`],prohibitedProps:[`aria-label`,`aria-labelledby`],props:{},relatedConcepts:[{concept:{name:`code`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),be=x({"../../node_modules/aria-query/lib/etc/roles/literal/columnheaderRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{name:`th`},module:`HTML`},{concept:{attributes:[{name:`scope`,value:`col`}],name:`th`},module:`HTML`},{concept:{attributes:[{name:`scope`,value:`colgroup`}],name:`th`},module:`HTML`}],requireContextRole:[`row`],requiredContextRole:[`row`],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`cell`],[`roletype`,`structure`,`section`,`cell`,`gridcell`],[`roletype`,`widget`,`gridcell`],[`roletype`,`structure`,`sectionhead`]]}}}),R=x({"../../node_modules/aria-query/lib/etc/roles/literal/comboboxRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-expanded":`false`,"aria-haspopup":`listbox`},relatedConcepts:[{concept:{attributes:[{constraints:[`set`],name:`list`},{name:`type`,value:`email`}],name:`input`},module:`HTML`},{concept:{attributes:[{constraints:[`set`],name:`list`},{name:`type`,value:`search`}],name:`input`},module:`HTML`},{concept:{attributes:[{constraints:[`set`],name:`list`},{name:`type`,value:`tel`}],name:`input`},module:`HTML`},{concept:{attributes:[{constraints:[`set`],name:`list`},{name:`type`,value:`text`}],name:`input`},module:`HTML`},{concept:{attributes:[{constraints:[`set`],name:`list`},{name:`type`,value:`url`}],name:`input`},module:`HTML`},{concept:{attributes:[{constraints:[`set`],name:`list`},{name:`type`,value:`url`}],name:`input`},module:`HTML`},{concept:{attributes:[{constraints:[`undefined`],name:`multiple`},{constraints:[`undefined`],name:`size`}],constraints:[`the multiple attribute is not set and the size attribute does not have a value greater than 1`],name:`select`},module:`HTML`},{concept:{name:`select`},module:`XForms`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-expanded":`false`},superClass:[[`roletype`,`widget`,`input`]]}}}),xe=x({"../../node_modules/aria-query/lib/etc/roles/literal/complementaryRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:[`scoped to the body element`,`scoped to the main element`],name:`aside`},module:`HTML`},{concept:{attributes:[{constraints:[`set`],name:`aria-label`}],constraints:[`scoped to a sectioning content element`,`scoped to a sectioning root element other than body`],name:`aside`},module:`HTML`},{concept:{attributes:[{constraints:[`set`],name:`aria-labelledby`}],constraints:[`scoped to a sectioning content element`,`scoped to a sectioning root element other than body`],name:`aside`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),Se=x({"../../node_modules/aria-query/lib/etc/roles/literal/contentinfoRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:[`scoped to the body element`],name:`footer`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),Ce=x({"../../node_modules/aria-query/lib/etc/roles/literal/definitionRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`dd`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),z=x({"../../node_modules/aria-query/lib/etc/roles/literal/deletionRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`prohibited`],prohibitedProps:[`aria-label`,`aria-labelledby`],props:{},relatedConcepts:[{concept:{name:`del`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),we=x({"../../node_modules/aria-query/lib/etc/roles/literal/dialogRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`dialog`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`window`]]}}}),Te=x({"../../node_modules/aria-query/lib/etc/roles/literal/directoryRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{module:`DAISY Guide`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`list`]]}}}),Ee=x({"../../node_modules/aria-query/lib/etc/roles/literal/documentRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`Device Independence Delivery Unit`}},{concept:{name:`html`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`]]}}}),B=x({"../../node_modules/aria-query/lib/etc/roles/literal/emphasisRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`prohibited`],prohibitedProps:[`aria-label`,`aria-labelledby`],props:{},relatedConcepts:[{concept:{name:`em`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),De=x({"../../node_modules/aria-query/lib/etc/roles/literal/feedRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[`article`]],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`list`]]}}}),Oe=x({"../../node_modules/aria-query/lib/etc/roles/literal/figureRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`figure`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),ke=x({"../../node_modules/aria-query/lib/etc/roles/literal/formRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:[`set`],name:`aria-label`}],name:`form`},module:`HTML`},{concept:{attributes:[{constraints:[`set`],name:`aria-labelledby`}],name:`form`},module:`HTML`},{concept:{attributes:[{constraints:[`set`],name:`name`}],name:`form`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),Ae=x({"../../node_modules/aria-query/lib/etc/roles/literal/genericRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`prohibited`],prohibitedProps:[`aria-label`,`aria-labelledby`],props:{},relatedConcepts:[{concept:{name:`a`},module:`HTML`},{concept:{name:`area`},module:`HTML`},{concept:{name:`aside`},module:`HTML`},{concept:{name:`b`},module:`HTML`},{concept:{name:`bdo`},module:`HTML`},{concept:{name:`body`},module:`HTML`},{concept:{name:`data`},module:`HTML`},{concept:{name:`div`},module:`HTML`},{concept:{constraints:[`scoped to the main element`,`scoped to a sectioning content element`,`scoped to a sectioning root element other than body`],name:`footer`},module:`HTML`},{concept:{constraints:[`scoped to the main element`,`scoped to a sectioning content element`,`scoped to a sectioning root element other than body`],name:`header`},module:`HTML`},{concept:{name:`hgroup`},module:`HTML`},{concept:{name:`i`},module:`HTML`},{concept:{name:`pre`},module:`HTML`},{concept:{name:`q`},module:`HTML`},{concept:{name:`samp`},module:`HTML`},{concept:{name:`section`},module:`HTML`},{concept:{name:`small`},module:`HTML`},{concept:{name:`span`},module:`HTML`},{concept:{name:`u`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`]]}}}),je=x({"../../node_modules/aria-query/lib/etc/roles/literal/gridRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-multiselectable":null,"aria-readonly":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[`row`],[`row`,`rowgroup`]],requiredProps:{},superClass:[[`roletype`,`widget`,`composite`],[`roletype`,`structure`,`section`,`table`]]}}}),Me=x({"../../node_modules/aria-query/lib/etc/roles/literal/gridcellRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-selected":null},relatedConcepts:[{concept:{constraints:[`ancestor table element has grid role`,`ancestor table element has treegrid role`],name:`td`},module:`HTML`}],requireContextRole:[`row`],requiredContextRole:[`row`],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`cell`],[`roletype`,`widget`]]}}}),Ne=x({"../../node_modules/aria-query/lib/etc/roles/literal/groupRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[{concept:{name:`details`},module:`HTML`},{concept:{name:`fieldset`},module:`HTML`},{concept:{name:`optgroup`},module:`HTML`},{concept:{name:`address`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),V=x({"../../node_modules/aria-query/lib/etc/roles/literal/headingRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-level":`2`},relatedConcepts:[{concept:{name:`h1`},module:`HTML`},{concept:{name:`h2`},module:`HTML`},{concept:{name:`h3`},module:`HTML`},{concept:{name:`h4`},module:`HTML`},{concept:{name:`h5`},module:`HTML`},{concept:{name:`h6`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-level":`2`},superClass:[[`roletype`,`structure`,`sectionhead`]]}}}),Pe=x({"../../node_modules/aria-query/lib/etc/roles/literal/imgRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:[`set`],name:`alt`}],name:`img`},module:`HTML`},{concept:{attributes:[{constraints:[`undefined`],name:`alt`}],name:`img`},module:`HTML`},{concept:{name:`imggroup`},module:`DTB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),Fe=x({"../../node_modules/aria-query/lib/etc/roles/literal/insertionRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`prohibited`],prohibitedProps:[`aria-label`,`aria-labelledby`],props:{},relatedConcepts:[{concept:{name:`ins`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),Ie=x({"../../node_modules/aria-query/lib/etc/roles/literal/linkRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[{concept:{attributes:[{constraints:[`set`],name:`href`}],name:`a`},module:`HTML`},{concept:{attributes:[{constraints:[`set`],name:`href`}],name:`area`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`widget`,`command`]]}}}),Le=x({"../../node_modules/aria-query/lib/etc/roles/literal/listRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`menu`},module:`HTML`},{concept:{name:`ol`},module:`HTML`},{concept:{name:`ul`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[`listitem`]],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),Re=x({"../../node_modules/aria-query/lib/etc/roles/literal/listboxRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-multiselectable":null,"aria-readonly":null,"aria-required":null,"aria-orientation":`vertical`},relatedConcepts:[{concept:{attributes:[{constraints:[`>1`],name:`size`}],constraints:[`the size attribute value is greater than 1`],name:`select`},module:`HTML`},{concept:{attributes:[{name:`multiple`}],name:`select`},module:`HTML`},{concept:{name:`datalist`},module:`HTML`},{concept:{name:`list`},module:`ARIA`},{concept:{name:`select`},module:`XForms`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[`option`,`group`],[`option`]],requiredProps:{},superClass:[[`roletype`,`widget`,`composite`,`select`],[`roletype`,`structure`,`section`,`group`,`select`]]}}}),ze=x({"../../node_modules/aria-query/lib/etc/roles/literal/listitemRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-level":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{constraints:[`direct descendant of ol`,`direct descendant of ul`,`direct descendant of menu`],name:`li`},module:`HTML`},{concept:{name:`item`},module:`XForms`}],requireContextRole:[`directory`,`list`],requiredContextRole:[`directory`,`list`],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),Be=x({"../../node_modules/aria-query/lib/etc/roles/literal/logRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-live":`polite`},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),Ve=x({"../../node_modules/aria-query/lib/etc/roles/literal/mainRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`main`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),He=x({"../../node_modules/aria-query/lib/etc/roles/literal/markRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`prohibited`],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null},relatedConcepts:[{concept:{name:`mark`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),Ue=x({"../../node_modules/aria-query/lib/etc/roles/literal/marqueeRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),We=x({"../../node_modules/aria-query/lib/etc/roles/literal/mathRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`math`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),Ge=x({"../../node_modules/aria-query/lib/etc/roles/literal/menuRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-orientation":`vertical`},relatedConcepts:[{concept:{name:`MENU`},module:`JAPI`},{concept:{name:`list`},module:`ARIA`},{concept:{name:`select`},module:`XForms`},{concept:{name:`sidebar`},module:`DTB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[`menuitem`,`group`],[`menuitemradio`,`group`],[`menuitemcheckbox`,`group`],[`menuitem`],[`menuitemcheckbox`],[`menuitemradio`]],requiredProps:{},superClass:[[`roletype`,`widget`,`composite`,`select`],[`roletype`,`structure`,`section`,`group`,`select`]]}}}),Ke=x({"../../node_modules/aria-query/lib/etc/roles/literal/menubarRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-orientation":`horizontal`},relatedConcepts:[{concept:{name:`toolbar`},module:`ARIA`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[`menuitem`,`group`],[`menuitemradio`,`group`],[`menuitemcheckbox`,`group`],[`menuitem`],[`menuitemcheckbox`],[`menuitemradio`]],requiredProps:{},superClass:[[`roletype`,`widget`,`composite`,`select`,`menu`],[`roletype`,`structure`,`section`,`group`,`select`,`menu`]]}}}),H=x({"../../node_modules/aria-query/lib/etc/roles/literal/menuitemRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:`MENU_ITEM`},module:`JAPI`},{concept:{name:`listitem`},module:`ARIA`},{concept:{name:`option`},module:`ARIA`}],requireContextRole:[`group`,`menu`,`menubar`],requiredContextRole:[`group`,`menu`,`menubar`],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`widget`,`command`]]}}}),qe=x({"../../node_modules/aria-query/lib/etc/roles/literal/menuitemcheckboxRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`menuitem`},module:`ARIA`}],requireContextRole:[`group`,`menu`,`menubar`],requiredContextRole:[`group`,`menu`,`menubar`],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[[`roletype`,`widget`,`input`,`checkbox`],[`roletype`,`widget`,`command`,`menuitem`]]}}}),Je=x({"../../node_modules/aria-query/lib/etc/roles/literal/menuitemradioRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`menuitem`},module:`ARIA`}],requireContextRole:[`group`,`menu`,`menubar`],requiredContextRole:[`group`,`menu`,`menubar`],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[[`roletype`,`widget`,`input`,`checkbox`,`menuitemcheckbox`],[`roletype`,`widget`,`command`,`menuitem`,`menuitemcheckbox`],[`roletype`,`widget`,`input`,`radio`]]}}}),Ye=x({"../../node_modules/aria-query/lib/etc/roles/literal/meterRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:[`author`],prohibitedProps:[],props:{"aria-valuetext":null,"aria-valuemax":`100`,"aria-valuemin":`0`},relatedConcepts:[{concept:{name:`meter`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[[`roletype`,`structure`,`range`]]}}}),Xe=x({"../../node_modules/aria-query/lib/etc/roles/literal/navigationRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`nav`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),Ze=x({"../../node_modules/aria-query/lib/etc/roles/literal/noneRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]}}}),Qe=x({"../../node_modules/aria-query/lib/etc/roles/literal/noteRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),$e=x({"../../node_modules/aria-query/lib/etc/roles/literal/optionRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":`false`},relatedConcepts:[{concept:{name:`item`},module:`XForms`},{concept:{name:`listitem`},module:`ARIA`},{concept:{name:`option`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-selected":`false`},superClass:[[`roletype`,`widget`,`input`]]}}}),et=x({"../../node_modules/aria-query/lib/etc/roles/literal/paragraphRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`prohibited`],prohibitedProps:[`aria-label`,`aria-labelledby`],props:{},relatedConcepts:[{concept:{name:`p`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),tt=x({"../../node_modules/aria-query/lib/etc/roles/literal/presentationRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`prohibited`],prohibitedProps:[`aria-label`,`aria-labelledby`],props:{},relatedConcepts:[{concept:{attributes:[{name:`alt`,value:``}],name:`img`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`]]}}}),nt=x({"../../node_modules/aria-query/lib/etc/roles/literal/progressbarRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:[`author`],prohibitedProps:[],props:{"aria-valuetext":null},relatedConcepts:[{concept:{name:`progress`},module:`HTML`},{concept:{name:`status`},module:`ARIA`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`range`],[`roletype`,`widget`]]}}}),rt=x({"../../node_modules/aria-query/lib/etc/roles/literal/radioRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{attributes:[{name:`type`,value:`radio`}],name:`input`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[[`roletype`,`widget`,`input`]]}}}),it=x({"../../node_modules/aria-query/lib/etc/roles/literal/radiogroupRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{name:`list`},module:`ARIA`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[`radio`]],requiredProps:{},superClass:[[`roletype`,`widget`,`composite`,`select`],[`roletype`,`structure`,`section`,`group`,`select`]]}}}),at=x({"../../node_modules/aria-query/lib/etc/roles/literal/regionRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:[`set`],name:`aria-label`}],name:`section`},module:`HTML`},{concept:{attributes:[{constraints:[`set`],name:`aria-labelledby`}],name:`section`},module:`HTML`},{concept:{name:`Device Independence Glossart perceivable unit`}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),ot=x({"../../node_modules/aria-query/lib/etc/roles/literal/rowRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-colindex":null,"aria-expanded":null,"aria-level":null,"aria-posinset":null,"aria-rowindex":null,"aria-selected":null,"aria-setsize":null},relatedConcepts:[{concept:{name:`tr`},module:`HTML`}],requireContextRole:[`grid`,`rowgroup`,`table`,`treegrid`],requiredContextRole:[`grid`,`rowgroup`,`table`,`treegrid`],requiredOwnedElements:[[`cell`],[`columnheader`],[`gridcell`],[`rowheader`]],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`group`],[`roletype`,`widget`]]}}}),st=x({"../../node_modules/aria-query/lib/etc/roles/literal/rowgroupRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`tbody`},module:`HTML`},{concept:{name:`tfoot`},module:`HTML`},{concept:{name:`thead`},module:`HTML`}],requireContextRole:[`grid`,`table`,`treegrid`],requiredContextRole:[`grid`,`table`,`treegrid`],requiredOwnedElements:[[`row`]],requiredProps:{},superClass:[[`roletype`,`structure`]]}}}),ct=x({"../../node_modules/aria-query/lib/etc/roles/literal/rowheaderRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{attributes:[{name:`scope`,value:`row`}],name:`th`},module:`HTML`},{concept:{attributes:[{name:`scope`,value:`rowgroup`}],name:`th`},module:`HTML`}],requireContextRole:[`row`,`rowgroup`],requiredContextRole:[`row`,`rowgroup`],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`cell`],[`roletype`,`structure`,`section`,`cell`,`gridcell`],[`roletype`,`widget`,`gridcell`],[`roletype`,`structure`,`sectionhead`]]}}}),lt=x({"../../node_modules/aria-query/lib/etc/roles/literal/scrollbarRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-valuetext":null,"aria-orientation":`vertical`,"aria-valuemax":`100`,"aria-valuemin":`0`},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-valuenow":null},superClass:[[`roletype`,`structure`,`range`],[`roletype`,`widget`]]}}}),ut=x({"../../node_modules/aria-query/lib/etc/roles/literal/searchRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),dt=x({"../../node_modules/aria-query/lib/etc/roles/literal/searchboxRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:[`undefined`],name:`list`},{name:`type`,value:`search`}],constraints:[`the list attribute is not set`],name:`input`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`widget`,`input`,`textbox`]]}}}),ft=x({"../../node_modules/aria-query/lib/etc/roles/literal/separatorRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-orientation":`horizontal`,"aria-valuemax":`100`,"aria-valuemin":`0`,"aria-valuenow":null,"aria-valuetext":null},relatedConcepts:[{concept:{name:`hr`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`]]}}}),pt=x({"../../node_modules/aria-query/lib/etc/roles/literal/sliderRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:[`author`],prohibitedProps:[],props:{"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-valuetext":null,"aria-orientation":`horizontal`,"aria-valuemax":`100`,"aria-valuemin":`0`},relatedConcepts:[{concept:{attributes:[{name:`type`,value:`range`}],name:`input`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[[`roletype`,`widget`,`input`],[`roletype`,`structure`,`range`]]}}}),mt=x({"../../node_modules/aria-query/lib/etc/roles/literal/spinbuttonRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-valuetext":null,"aria-valuenow":`0`},relatedConcepts:[{concept:{attributes:[{name:`type`,value:`number`}],name:`input`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`widget`,`composite`],[`roletype`,`widget`,`input`],[`roletype`,`structure`,`range`]]}}}),ht=x({"../../node_modules/aria-query/lib/etc/roles/literal/statusRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-atomic":`true`,"aria-live":`polite`},relatedConcepts:[{concept:{name:`output`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),gt=x({"../../node_modules/aria-query/lib/etc/roles/literal/strongRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`prohibited`],prohibitedProps:[`aria-label`,`aria-labelledby`],props:{},relatedConcepts:[{concept:{name:`strong`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),_t=x({"../../node_modules/aria-query/lib/etc/roles/literal/subscriptRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`prohibited`],prohibitedProps:[`aria-label`,`aria-labelledby`],props:{},relatedConcepts:[{concept:{name:`sub`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),vt=x({"../../node_modules/aria-query/lib/etc/roles/literal/superscriptRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`prohibited`],prohibitedProps:[`aria-label`,`aria-labelledby`],props:{},relatedConcepts:[{concept:{name:`sup`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),yt=x({"../../node_modules/aria-query/lib/etc/roles/literal/switchRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`button`},module:`ARIA`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[[`roletype`,`widget`,`input`,`checkbox`]]}}}),bt=x({"../../node_modules/aria-query/lib/etc/roles/literal/tabRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":`false`},relatedConcepts:[],requireContextRole:[`tablist`],requiredContextRole:[`tablist`],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`sectionhead`],[`roletype`,`widget`]]}}}),xt=x({"../../node_modules/aria-query/lib/etc/roles/literal/tableRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-colcount":null,"aria-rowcount":null},relatedConcepts:[{concept:{name:`table`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[`row`],[`row`,`rowgroup`]],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),St=x({"../../node_modules/aria-query/lib/etc/roles/literal/tablistRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-level":null,"aria-multiselectable":null,"aria-orientation":`horizontal`},relatedConcepts:[{module:`DAISY`,concept:{name:`guide`}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[`tab`]],requiredProps:{},superClass:[[`roletype`,`widget`,`composite`]]}}}),Ct=x({"../../node_modules/aria-query/lib/etc/roles/literal/tabpanelRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),wt=x({"../../node_modules/aria-query/lib/etc/roles/literal/termRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`dfn`},module:`HTML`},{concept:{name:`dt`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),Tt=x({"../../node_modules/aria-query/lib/etc/roles/literal/textboxRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-multiline":null,"aria-placeholder":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{constraints:[`undefined`],name:`type`},{constraints:[`undefined`],name:`list`}],constraints:[`the list attribute is not set`],name:`input`},module:`HTML`},{concept:{attributes:[{constraints:[`undefined`],name:`list`},{name:`type`,value:`email`}],constraints:[`the list attribute is not set`],name:`input`},module:`HTML`},{concept:{attributes:[{constraints:[`undefined`],name:`list`},{name:`type`,value:`tel`}],constraints:[`the list attribute is not set`],name:`input`},module:`HTML`},{concept:{attributes:[{constraints:[`undefined`],name:`list`},{name:`type`,value:`text`}],constraints:[`the list attribute is not set`],name:`input`},module:`HTML`},{concept:{attributes:[{constraints:[`undefined`],name:`list`},{name:`type`,value:`url`}],constraints:[`the list attribute is not set`],name:`input`},module:`HTML`},{concept:{name:`input`},module:`XForms`},{concept:{name:`textarea`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`widget`,`input`]]}}}),Et=x({"../../node_modules/aria-query/lib/etc/roles/literal/timeRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`time`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),Dt=x({"../../node_modules/aria-query/lib/etc/roles/literal/timerRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`status`]]}}}),Ot=x({"../../node_modules/aria-query/lib/etc/roles/literal/toolbarRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-orientation":`horizontal`},relatedConcepts:[{concept:{name:`menubar`},module:`ARIA`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`group`]]}}}),kt=x({"../../node_modules/aria-query/lib/etc/roles/literal/tooltipRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),At=x({"../../node_modules/aria-query/lib/etc/roles/literal/treeRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-multiselectable":null,"aria-required":null,"aria-orientation":`vertical`},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[`treeitem`,`group`],[`treeitem`]],requiredProps:{},superClass:[[`roletype`,`widget`,`composite`,`select`],[`roletype`,`structure`,`section`,`group`,`select`]]}}}),jt=x({"../../node_modules/aria-query/lib/etc/roles/literal/treegridRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[`row`],[`row`,`rowgroup`]],requiredProps:{},superClass:[[`roletype`,`widget`,`composite`,`grid`],[`roletype`,`structure`,`section`,`table`,`grid`],[`roletype`,`widget`,`composite`,`select`,`tree`],[`roletype`,`structure`,`section`,`group`,`select`,`tree`]]}}}),Mt=x({"../../node_modules/aria-query/lib/etc/roles/literal/treeitemRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[],requireContextRole:[`group`,`tree`],requiredContextRole:[`group`,`tree`],requiredOwnedElements:[],requiredProps:{"aria-selected":null},superClass:[[`roletype`,`structure`,`section`,`listitem`],[`roletype`,`widget`,`input`,`option`]]}}}),Nt=x({"../../node_modules/aria-query/lib/etc/roles/ariaLiteralRoles.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var t=U(le()),n=U(ue()),r=U(de()),i=U(fe()),a=U(pe()),o=U(me()),s=U(he()),c=U(ge()),l=U(_e()),u=U(ve()),d=U(ye()),f=U(be()),p=U(R()),m=U(xe()),h=U(Se()),g=U(Ce()),_=U(z()),v=U(we()),y=U(Te()),b=U(Ee()),x=U(B()),S=U(De()),C=U(Oe()),w=U(ke()),T=U(Ae()),E=U(je()),D=U(Me()),O=U(Ne()),k=U(V()),A=U(Pe()),j=U(Fe()),M=U(Ie()),N=U(Le()),P=U(Re()),ee=U(ze()),te=U(Be()),F=U(Ve()),I=U(He()),ne=U(Ue()),re=U(We()),ie=U(Ge()),L=U(Ke()),ae=U(H()),oe=U(qe()),se=U(Je()),ce=U(Ye()),Nt=U(Xe()),Pt=U(Ze()),Ft=U(Qe()),It=U($e()),Lt=U(et()),Rt=U(tt()),zt=U(nt()),Bt=U(rt()),Vt=U(it()),Ht=U(at()),Ut=U(ot()),Wt=U(st()),Gt=U(ct()),Kt=U(lt()),qt=U(ut()),Jt=U(dt()),Yt=U(ft()),Xt=U(pt()),Zt=U(mt()),Qt=U(ht()),$t=U(gt()),en=U(_t()),tn=U(vt()),nn=U(yt()),rn=U(bt()),an=U(xt()),on=U(St()),sn=U(Ct()),cn=U(wt()),ln=U(Tt()),un=U(Et()),dn=U(Dt()),fn=U(Ot()),pn=U(kt()),mn=U(At()),hn=U(jt()),gn=U(Mt());function U(e){return e&&e.__esModule?e:{default:e}}e.default=[[`alert`,t.default],[`alertdialog`,n.default],[`application`,r.default],[`article`,i.default],[`banner`,a.default],[`blockquote`,o.default],[`button`,s.default],[`caption`,c.default],[`cell`,l.default],[`checkbox`,u.default],[`code`,d.default],[`columnheader`,f.default],[`combobox`,p.default],[`complementary`,m.default],[`contentinfo`,h.default],[`definition`,g.default],[`deletion`,_.default],[`dialog`,v.default],[`directory`,y.default],[`document`,b.default],[`emphasis`,x.default],[`feed`,S.default],[`figure`,C.default],[`form`,w.default],[`generic`,T.default],[`grid`,E.default],[`gridcell`,D.default],[`group`,O.default],[`heading`,k.default],[`img`,A.default],[`insertion`,j.default],[`link`,M.default],[`list`,N.default],[`listbox`,P.default],[`listitem`,ee.default],[`log`,te.default],[`main`,F.default],[`mark`,I.default],[`marquee`,ne.default],[`math`,re.default],[`menu`,ie.default],[`menubar`,L.default],[`menuitem`,ae.default],[`menuitemcheckbox`,oe.default],[`menuitemradio`,se.default],[`meter`,ce.default],[`navigation`,Nt.default],[`none`,Pt.default],[`note`,Ft.default],[`option`,It.default],[`paragraph`,Lt.default],[`presentation`,Rt.default],[`progressbar`,zt.default],[`radio`,Bt.default],[`radiogroup`,Vt.default],[`region`,Ht.default],[`row`,Ut.default],[`rowgroup`,Wt.default],[`rowheader`,Gt.default],[`scrollbar`,Kt.default],[`search`,qt.default],[`searchbox`,Jt.default],[`separator`,Yt.default],[`slider`,Xt.default],[`spinbutton`,Zt.default],[`status`,Qt.default],[`strong`,$t.default],[`subscript`,en.default],[`superscript`,tn.default],[`switch`,nn.default],[`tab`,rn.default],[`table`,an.default],[`tablist`,on.default],[`tabpanel`,sn.default],[`term`,cn.default],[`textbox`,ln.default],[`time`,un.default],[`timer`,dn.default],[`toolbar`,fn.default],[`tooltip`,pn.default],[`tree`,mn.default],[`treegrid`,hn.default],[`treeitem`,gn.default]]}}),Pt=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docAbstractRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`abstract [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),Ft=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docAcknowledgmentsRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`acknowledgments [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),It=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docAfterwordRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`afterword [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),Lt=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docAppendixRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`appendix [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),Rt=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docBacklinkRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`referrer [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`widget`,`command`,`link`]]}}}),zt=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docBiblioentryRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`EPUB biblioentry [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[`doc-bibliography`],requiredContextRole:[`doc-bibliography`],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`listitem`]]}}}),Bt=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docBibliographyRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`bibliography [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[`doc-biblioentry`]],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),Vt=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docBibliorefRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`biblioref [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`widget`,`command`,`link`]]}}}),Ht=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docChapterRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`chapter [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),Ut=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docColophonRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`colophon [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),Wt=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docConclusionRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`conclusion [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),Gt=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docCoverRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`cover [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`img`]]}}}),Kt=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docCreditRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`credit [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),qt=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docCreditsRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`credits [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),Jt=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docDedicationRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`dedication [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),Yt=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docEndnoteRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`rearnote [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[`doc-endnotes`],requiredContextRole:[`doc-endnotes`],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`listitem`]]}}}),Xt=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docEndnotesRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`rearnotes [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[`doc-endnote`]],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),Zt=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docEpigraphRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`epigraph [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),Qt=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docEpilogueRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`epilogue [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),$t=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docErrataRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`errata [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),en=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docExampleRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),tn=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docFootnoteRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`footnote [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),nn=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docForewordRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`foreword [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),rn=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docGlossaryRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`glossary [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[`definition`],[`term`]],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),an=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docGlossrefRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`glossref [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`widget`,`command`,`link`]]}}}),on=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docIndexRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`index [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`,`navigation`]]}}}),sn=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docIntroductionRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`introduction [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),cn=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docNoterefRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`noteref [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`widget`,`command`,`link`]]}}}),ln=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docNoticeRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`notice [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`note`]]}}}),un=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docPagebreakRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:[`author`],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`pagebreak [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`separator`]]}}}),dn=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docPagefooterRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`prohibited`],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null,"aria-disabled":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),fn=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docPageheaderRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`prohibited`],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null,"aria-disabled":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),pn=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docPagelistRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`page-list [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`,`navigation`]]}}}),mn=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docPartRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`part [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),hn=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docPrefaceRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`preface [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),gn=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docPrologueRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`prologue [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),U=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docPullquoteRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`pullquote [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`none`]]}}}),_n=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docQnaRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`qna [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),vn=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docSubtitleRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`subtitle [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`sectionhead`]]}}}),yn=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docTipRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`help [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`note`]]}}}),bn=x({"../../node_modules/aria-query/lib/etc/roles/dpub/docTocRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`toc [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`,`navigation`]]}}}),xn=x({"../../node_modules/aria-query/lib/etc/roles/ariaDpubRoles.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var t=L(Pt()),n=L(Ft()),r=L(It()),i=L(Lt()),a=L(Rt()),o=L(zt()),s=L(Bt()),c=L(Vt()),l=L(Ht()),u=L(Ut()),d=L(Wt()),f=L(Gt()),p=L(Kt()),m=L(qt()),h=L(Jt()),g=L(Yt()),_=L(Xt()),v=L(Zt()),y=L(Qt()),b=L($t()),x=L(en()),S=L(tn()),C=L(nn()),w=L(rn()),T=L(an()),E=L(on()),D=L(sn()),O=L(cn()),k=L(ln()),A=L(un()),j=L(dn()),M=L(fn()),N=L(pn()),P=L(mn()),ee=L(hn()),te=L(gn()),F=L(U()),I=L(_n()),ne=L(vn()),re=L(yn()),ie=L(bn());function L(e){return e&&e.__esModule?e:{default:e}}e.default=[[`doc-abstract`,t.default],[`doc-acknowledgments`,n.default],[`doc-afterword`,r.default],[`doc-appendix`,i.default],[`doc-backlink`,a.default],[`doc-biblioentry`,o.default],[`doc-bibliography`,s.default],[`doc-biblioref`,c.default],[`doc-chapter`,l.default],[`doc-colophon`,u.default],[`doc-conclusion`,d.default],[`doc-cover`,f.default],[`doc-credit`,p.default],[`doc-credits`,m.default],[`doc-dedication`,h.default],[`doc-endnote`,g.default],[`doc-endnotes`,_.default],[`doc-epigraph`,v.default],[`doc-epilogue`,y.default],[`doc-errata`,b.default],[`doc-example`,x.default],[`doc-footnote`,S.default],[`doc-foreword`,C.default],[`doc-glossary`,w.default],[`doc-glossref`,T.default],[`doc-index`,E.default],[`doc-introduction`,D.default],[`doc-noteref`,O.default],[`doc-notice`,k.default],[`doc-pagebreak`,A.default],[`doc-pagefooter`,j.default],[`doc-pageheader`,M.default],[`doc-pagelist`,N.default],[`doc-part`,P.default],[`doc-preface`,ee.default],[`doc-prologue`,te.default],[`doc-pullquote`,F.default],[`doc-qna`,I.default],[`doc-subtitle`,ne.default],[`doc-tip`,re.default],[`doc-toc`,ie.default]]}}),Sn=x({"../../node_modules/aria-query/lib/etc/roles/graphics/graphicsDocumentRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:`GRAPHICS`,concept:{name:`graphics-object`}},{module:`ARIA`,concept:{name:`img`}},{module:`ARIA`,concept:{name:`article`}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`document`]]}}}),Cn=x({"../../node_modules/aria-query/lib/etc/roles/graphics/graphicsObjectRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:`GRAPHICS`,concept:{name:`graphics-document`}},{module:`ARIA`,concept:{name:`group`}},{module:`ARIA`,concept:{name:`img`}},{module:`GRAPHICS`,concept:{name:`graphics-symbol`}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`group`]]}}}),wn=x({"../../node_modules/aria-query/lib/etc/roles/graphics/graphicsSymbolRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`img`]]}}}),Tn=x({"../../node_modules/aria-query/lib/etc/roles/ariaGraphicsRoles.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var t=i(Sn()),n=i(Cn()),r=i(wn());function i(e){return e&&e.__esModule?e:{default:e}}e.default=[[`graphics-document`,t.default],[`graphics-object`,n.default],[`graphics-symbol`,r.default]]}}),En=x({"../../node_modules/aria-query/lib/rolesMap.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var t=o(ce()),n=o(Nt()),r=o(xn()),i=o(Tn()),a=o(j());function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=u(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
@@ -1173,7 +1173,7 @@ Inner error message: ${r?.message}`))}}var{once:Rhe}=__STORYBOOK_MODULE_CLIENT_L
|
|
|
1173
1173
|
60% { outline: 2px solid #1EA7FD00; }
|
|
1174
1174
|
80% { outline: 2px solid #1EA7FD; }
|
|
1175
1175
|
100% { outline: 2px solid #1EA7FD00; }
|
|
1176
|
-
}`}]),b=setTimeout(()=>v(i),3500)}),e.on(rge,({newPhase:e})=>{e===`loading`&&y()})});var{useEffect:fge}=__STORYBOOK_MODULE_PREVIEW_API__,{global:pge}=__STORYBOOK_MODULE_GLOBAL__,{global:mge}=__STORYBOOK_MODULE_GLOBAL__,{global:hge}=__STORYBOOK_MODULE_GLOBAL__;globalThis.FEATURES?.measure;var{useEffect:gge,useMemo:_ge}=__STORYBOOK_MODULE_PREVIEW_API__,{global:vge}=__STORYBOOK_MODULE_GLOBAL__;globalThis.FEATURES?.outline;var{clearAllMocks:yge,fn:bge,isMockFunction:xge,resetAllMocks:Sge,restoreAllMocks:Cge,uninstrumentedUserEvent:wge,within:Tge}=__STORYBOOK_MODULE_TEST__,oL=e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,`-`).replace(/-+/g,`-`).replace(/^-+/,``).replace(/-+$/,``),sL=(e,t)=>{let n=oL(e);if(n===``)throw Error(`Invalid ${t} '${e}', must include alphanumeric characters`);return n},cL=(e,t)=>`${sL(e,`kind`)}${t?`--${sL(t,`name`)}`:``}`,Ege={"./src/components/bar-chart/bar-chart.stories.jsx":()=>e(()=>import(`./bar-chart.stories-Cf1RLofM.js`),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url),"./src/components/line-chart/line-chart.stories.jsx":()=>e(()=>import(`./line-chart.stories-CwAqWUwu.js`),__vite__mapDeps([6,1,2,7,3,5]),import.meta.url),"./src/components/line-chart/line-chart.test-case.stories.jsx":()=>e(()=>import(`./line-chart.test-case.stories-BaHgOPJd.js`),__vite__mapDeps([8,1,2,7,3]),import.meta.url),"./src/components/pie-chart/pie-chart.stories.jsx":()=>e(()=>import(`./pie-chart.stories-CY-9tbYA.js`),__vite__mapDeps([9,2,4]),import.meta.url),"./src/components/scatter-chart/scatter-chart.stories.jsx":()=>e(()=>import(`./scatter-chart.stories-TEcXKHqp.js`),__vite__mapDeps([10,1,2,4]),import.meta.url)};async function Dge(e){return await Ege[e]()}var Oge=c((e=>{var t=Symbol.for(`react.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.provider`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.iterator;function p(e){return typeof e!=`object`||!e?null:(e=f&&e[f]||e[`@@iterator`],typeof e==`function`?e:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,g={};function _(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`setState(...): takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function v(){}v.prototype=_.prototype;function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}var b=y.prototype=new v;b.constructor=y,h(b,_.prototype),b.isPureReactComponent=!0;var x=Array.isArray,S=Object.prototype.hasOwnProperty,C={current:null},w={key:!0,ref:!0,__self:!0,__source:!0};function T(e,n,r){var i,a={},o=null,s=null;if(n!=null)for(i in n.ref!==void 0&&(s=n.ref),n.key!==void 0&&(o=``+n.key),n)S.call(n,i)&&!w.hasOwnProperty(i)&&(a[i]=n[i]);var c=arguments.length-2;if(c===1)a.children=r;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];a.children=l}if(e&&e.defaultProps)for(i in c=e.defaultProps,c)a[i]===void 0&&(a[i]=c[i]);return{$$typeof:t,type:e,key:o,ref:s,props:a,_owner:C.current}}function E(e,n){return{$$typeof:t,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}function D(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function O(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var k=/\/+/g;function A(e,t){return typeof e==`object`&&e&&e.key!=null?O(``+e.key):t.toString(36)}function j(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0}}if(c)return c=e,o=o(c),e=a===``?`.`+A(c,0):a,x(o)?(i=``,e!=null&&(i=e.replace(k,`$&/`)+`/`),j(o,r,i,``,function(e){return e})):o!=null&&(D(o)&&(o=E(o,i+(!o.key||c&&c.key===o.key?``:(``+o.key).replace(k,`$&/`)+`/`)+e)),r.push(o)),1;if(c=0,a=a===``?`.`:a+`:`,x(e))for(var l=0;l<e.length;l++){s=e[l];var u=a+A(s,l);c+=j(s,r,i,u,o)}else if(u=p(e),typeof u==`function`)for(e=u.call(e),l=0;!(s=e.next()).done;)s=s.value,u=a+A(s,l++),c+=j(s,r,i,u,o);else if(s===`object`)throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`);return c}function M(e,t,n){if(e==null)return e;var r=[],i=0;return j(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function N(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var P={current:null},ee={transition:null},te={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:ee,ReactCurrentOwner:C};function F(){throw Error(`act(...) is not supported in production builds of React.`)}e.Children={map:M,forEach:function(e,t,n){M(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return M(e,function(){t++}),t},toArray:function(e){return M(e,function(e){return e})||[]},only:function(e){if(!D(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}},e.Component=_,e.Fragment=r,e.Profiler=a,e.PureComponent=y,e.StrictMode=i,e.Suspense=l,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=te,e.act=F,e.cloneElement=function(e,n,r){if(e==null)throw Error(`React.cloneElement(...): The argument must be a React element, but you passed `+e+`.`);var i=h({},e.props),a=e.key,o=e.ref,s=e._owner;if(n!=null){if(n.ref!==void 0&&(o=n.ref,s=C.current),n.key!==void 0&&(a=``+n.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in n)S.call(n,l)&&!w.hasOwnProperty(l)&&(i[l]=n[l]===void 0&&c!==void 0?c[l]:n[l])}var l=arguments.length-2;if(l===1)i.children=r;else if(1<l){c=Array(l);for(var u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}return{$$typeof:t,type:e.type,key:a,ref:o,props:i,_owner:s}},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:o,_context:e},e.Consumer=e},e.createElement=T,e.createFactory=function(e){var t=T.bind(null,e);return t.type=e,t},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=D,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:N}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=ee.transition;ee.transition={};try{e()}finally{ee.transition=t}},e.unstable_act=F,e.useCallback=function(e,t){return P.current.useCallback(e,t)},e.useContext=function(e){return P.current.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e){return P.current.useDeferredValue(e)},e.useEffect=function(e,t){return P.current.useEffect(e,t)},e.useId=function(){return P.current.useId()},e.useImperativeHandle=function(e,t,n){return P.current.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return P.current.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return P.current.useLayoutEffect(e,t)},e.useMemo=function(e,t){return P.current.useMemo(e,t)},e.useReducer=function(e,t,n){return P.current.useReducer(e,t,n)},e.useRef=function(e){return P.current.useRef(e)},e.useState=function(e){return P.current.useState(e)},e.useSyncExternalStore=function(e,t,n){return P.current.useSyncExternalStore(e,t,n)},e.useTransition=function(){return P.current.useTransition()},e.version=`18.3.1`})),lL=c(((e,t)=>{t.exports=Oge()})),X=d(lL(),1),{defaultDecorateStory:kge}=__STORYBOOK_MODULE_PREVIEW_API__,uL=(e,t)=>kge(t=>X.createElement(e,t),t),Age=Object.create,dL=Object.defineProperty,jge=Object.getOwnPropertyDescriptor,fL=Object.getOwnPropertyNames,Mge=Object.getPrototypeOf,Nge=Object.prototype.hasOwnProperty,pL=(e,t)=>function(){return t||(0,e[fL(e)[0]])((t={exports:{}}).exports,t),t.exports},mL=(e,t)=>{for(var n in t)dL(e,n,{get:t[n],enumerable:!0})},Pge=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of fL(t))!Nge.call(e,i)&&i!==n&&dL(e,i,{get:()=>t[i],enumerable:!(r=jge(t,i))||r.enumerable});return e},hL=(e,t,n)=>(n=e==null?{}:Age(Mge(e)),Pge(t||!e||!e.__esModule?dL(n,`default`,{value:e,enumerable:!0}):n,e));mL({},{applyDecorators:()=>uL,beforeAll:()=>DL,decorators:()=>TL,mount:()=>wL,parameters:()=>EL,render:()=>vL,renderToCanvas:()=>CL});var{Tag:Fge}=__STORYBOOK_MODULE_PREVIEW_API__,{global:Ige}=__STORYBOOK_MODULE_GLOBAL__,{configure:Lge}=__STORYBOOK_MODULE_TEST__;({...X});function gL(e){globalThis.IS_REACT_ACT_ENVIRONMENT=e}function Rge(){return globalThis.IS_REACT_ACT_ENVIRONMENT}var _L=async({disableAct:e=!1}={})=>e=>e(),vL=(e,t)=>{let{id:n,component:r}=t;if(!r)throw Error(`Unable to render story ${n} as the component annotation is missing from the default export`);return X.createElement(r,{...e})},{global:zge}=__STORYBOOK_MODULE_GLOBAL__,{FRAMEWORK_OPTIONS:Bge}=zge,Vge=class extends X.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidMount(){let{hasError:e}=this.state,{showMain:t}=this.props;e||t()}componentDidCatch(e){let{showException:t}=this.props;t(e)}render(){let{hasError:e}=this.state,{children:t}=this.props;return e?null:t}},yL=Bge?.strictMode?X.StrictMode:X.Fragment,bL=[],xL=!1,SL=async()=>{if(xL||bL.length===0)return;xL=!0;let e=bL.shift();e&&await e(),xL=!1,SL()};async function CL({storyContext:t,unboundStoryFn:n,showMain:r,showException:i,forceRemount:a},o){let{renderElement:s,unmountElement:c}=await e(async()=>{let{renderElement:e,unmountElement:t}=await import(`./react-18-DcmPwFZ-.js`);return{renderElement:e,unmountElement:t}},__vite__mapDeps([11,12]),import.meta.url),l=n,u=t.parameters.__isPortableStory?X.createElement(l,{...t}):X.createElement(Vge,{key:t.id,showMain:r,showException:i},X.createElement(l,{...t})),d=yL?X.createElement(yL,null,u):u;a&&c(o);let f=await _L({disableAct:t.viewMode===`docs`});return await new Promise(async(e,n)=>{bL.push(async()=>{try{await f(async()=>{await s(d,o,t?.parameters?.react?.rootOptions)}),e()}catch(e){n(e)}}),SL()}),async()=>{await f(()=>{c(o)})}}var wL=e=>async t=>(t!=null&&(e.originalStoryFn=()=>t),await e.renderToCanvas(),e.canvas),TL=[(e,t)=>{if(!t.parameters?.react?.rsc)return e();let[n,r]=`18.3.1`.split(`.`).map(e=>parseInt(e,10));if(!Number.isInteger(n)||!Number.isInteger(r))throw Error(`Unable to parse React version`);if(n<18||n===18&&r<3)throw Error(`React Server Components require React >= 18.3`);return X.createElement(X.Suspense,null,e())},(e,t)=>{if(t.tags?.includes(Fge.TEST_FN)&&!Ige.FEATURES?.experimentalTestSyntax)throw Error(`To use the experimental test function, you must enable the experimentalTestSyntax feature flag. See https://storybook.js.org/docs/api/main-config/main-config-features#experimentaltestsyntax`);return e()}],EL={renderer:`react`},DL=async()=>{try{let e=await _L();Lge({unstable_advanceTimersWrapper:t=>e(t),asyncWrapper:async e=>{let t=Rge();gL(!1);try{let t=await e();return await new Promise(e=>{setTimeout(()=>{e()},0),Hge()&&jest.advanceTimersByTime(0)}),t}finally{gL(t)}},eventWrapper:t=>{let n;return e(()=>(n=t(),n)),n}})}catch{}};function Hge(){return typeof jest<`u`&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,`clock`):!1}var Uge=l({applyDecorators:()=>uL,beforeAll:()=>DL,decorators:()=>TL,mount:()=>wL,parameters:()=>EL,render:()=>vL,renderToCanvas:()=>CL},1),Wge=pL({"../../../node_modules/@base2/pretty-print-object/dist/index.js"(e){var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.apply(this,arguments)},n=e&&e.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r};Object.defineProperty(e,`__esModule`,{value:!0});var r=[];function i(e){var t=typeof e;return e!==null&&(t===`object`||t===`function`)}function a(e){return Object.prototype.toString.call(e)===`[object RegExp]`}function o(e){return Object.getOwnPropertySymbols(e).filter(function(t){return Object.prototype.propertyIsEnumerable.call(e,t)})}function s(e,c,l){l===void 0&&(l=``);var u=t(t({},{indent:` `,singleQuotes:!0}),c),d=u.inlineCharacterLimit===void 0?{newLine:`
|
|
1176
|
+
}`}]),b=setTimeout(()=>v(i),3500)}),e.on(rge,({newPhase:e})=>{e===`loading`&&y()})});var{useEffect:fge}=__STORYBOOK_MODULE_PREVIEW_API__,{global:pge}=__STORYBOOK_MODULE_GLOBAL__,{global:mge}=__STORYBOOK_MODULE_GLOBAL__,{global:hge}=__STORYBOOK_MODULE_GLOBAL__;globalThis.FEATURES?.measure;var{useEffect:gge,useMemo:_ge}=__STORYBOOK_MODULE_PREVIEW_API__,{global:vge}=__STORYBOOK_MODULE_GLOBAL__;globalThis.FEATURES?.outline;var{clearAllMocks:yge,fn:bge,isMockFunction:xge,resetAllMocks:Sge,restoreAllMocks:Cge,uninstrumentedUserEvent:wge,within:Tge}=__STORYBOOK_MODULE_TEST__,oL=e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,`-`).replace(/-+/g,`-`).replace(/^-+/,``).replace(/-+$/,``),sL=(e,t)=>{let n=oL(e);if(n===``)throw Error(`Invalid ${t} '${e}', must include alphanumeric characters`);return n},cL=(e,t)=>`${sL(e,`kind`)}${t?`--${sL(t,`name`)}`:``}`,Ege={"./src/components/bar-chart/bar-chart.stories.jsx":()=>e(()=>import(`./bar-chart.stories-DFFfHACi.js`),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url),"./src/components/line-chart/line-chart.stories.jsx":()=>e(()=>import(`./line-chart.stories-C6gjhWIO.js`),__vite__mapDeps([6,1,2,7,3,5]),import.meta.url),"./src/components/line-chart/line-chart.test-case.stories.jsx":()=>e(()=>import(`./line-chart.test-case.stories-BtJw2prg.js`),__vite__mapDeps([8,1,2,7,3]),import.meta.url),"./src/components/pie-chart/pie-chart.stories.jsx":()=>e(()=>import(`./pie-chart.stories-gCnKLJ_7.js`),__vite__mapDeps([9,2,4]),import.meta.url),"./src/components/scatter-chart/scatter-chart.stories.jsx":()=>e(()=>import(`./scatter-chart.stories-C1BGiX7c.js`),__vite__mapDeps([10,1,2,4]),import.meta.url)};async function Dge(e){return await Ege[e]()}var Oge=c((e=>{var t=Symbol.for(`react.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.provider`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.iterator;function p(e){return typeof e!=`object`||!e?null:(e=f&&e[f]||e[`@@iterator`],typeof e==`function`?e:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,g={};function _(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`setState(...): takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function v(){}v.prototype=_.prototype;function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}var b=y.prototype=new v;b.constructor=y,h(b,_.prototype),b.isPureReactComponent=!0;var x=Array.isArray,S=Object.prototype.hasOwnProperty,C={current:null},w={key:!0,ref:!0,__self:!0,__source:!0};function T(e,n,r){var i,a={},o=null,s=null;if(n!=null)for(i in n.ref!==void 0&&(s=n.ref),n.key!==void 0&&(o=``+n.key),n)S.call(n,i)&&!w.hasOwnProperty(i)&&(a[i]=n[i]);var c=arguments.length-2;if(c===1)a.children=r;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];a.children=l}if(e&&e.defaultProps)for(i in c=e.defaultProps,c)a[i]===void 0&&(a[i]=c[i]);return{$$typeof:t,type:e,key:o,ref:s,props:a,_owner:C.current}}function E(e,n){return{$$typeof:t,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}function D(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function O(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var k=/\/+/g;function A(e,t){return typeof e==`object`&&e&&e.key!=null?O(``+e.key):t.toString(36)}function j(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0}}if(c)return c=e,o=o(c),e=a===``?`.`+A(c,0):a,x(o)?(i=``,e!=null&&(i=e.replace(k,`$&/`)+`/`),j(o,r,i,``,function(e){return e})):o!=null&&(D(o)&&(o=E(o,i+(!o.key||c&&c.key===o.key?``:(``+o.key).replace(k,`$&/`)+`/`)+e)),r.push(o)),1;if(c=0,a=a===``?`.`:a+`:`,x(e))for(var l=0;l<e.length;l++){s=e[l];var u=a+A(s,l);c+=j(s,r,i,u,o)}else if(u=p(e),typeof u==`function`)for(e=u.call(e),l=0;!(s=e.next()).done;)s=s.value,u=a+A(s,l++),c+=j(s,r,i,u,o);else if(s===`object`)throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`);return c}function M(e,t,n){if(e==null)return e;var r=[],i=0;return j(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function N(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var P={current:null},ee={transition:null},te={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:ee,ReactCurrentOwner:C};function F(){throw Error(`act(...) is not supported in production builds of React.`)}e.Children={map:M,forEach:function(e,t,n){M(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return M(e,function(){t++}),t},toArray:function(e){return M(e,function(e){return e})||[]},only:function(e){if(!D(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}},e.Component=_,e.Fragment=r,e.Profiler=a,e.PureComponent=y,e.StrictMode=i,e.Suspense=l,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=te,e.act=F,e.cloneElement=function(e,n,r){if(e==null)throw Error(`React.cloneElement(...): The argument must be a React element, but you passed `+e+`.`);var i=h({},e.props),a=e.key,o=e.ref,s=e._owner;if(n!=null){if(n.ref!==void 0&&(o=n.ref,s=C.current),n.key!==void 0&&(a=``+n.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in n)S.call(n,l)&&!w.hasOwnProperty(l)&&(i[l]=n[l]===void 0&&c!==void 0?c[l]:n[l])}var l=arguments.length-2;if(l===1)i.children=r;else if(1<l){c=Array(l);for(var u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}return{$$typeof:t,type:e.type,key:a,ref:o,props:i,_owner:s}},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:o,_context:e},e.Consumer=e},e.createElement=T,e.createFactory=function(e){var t=T.bind(null,e);return t.type=e,t},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=D,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:N}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=ee.transition;ee.transition={};try{e()}finally{ee.transition=t}},e.unstable_act=F,e.useCallback=function(e,t){return P.current.useCallback(e,t)},e.useContext=function(e){return P.current.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e){return P.current.useDeferredValue(e)},e.useEffect=function(e,t){return P.current.useEffect(e,t)},e.useId=function(){return P.current.useId()},e.useImperativeHandle=function(e,t,n){return P.current.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return P.current.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return P.current.useLayoutEffect(e,t)},e.useMemo=function(e,t){return P.current.useMemo(e,t)},e.useReducer=function(e,t,n){return P.current.useReducer(e,t,n)},e.useRef=function(e){return P.current.useRef(e)},e.useState=function(e){return P.current.useState(e)},e.useSyncExternalStore=function(e,t,n){return P.current.useSyncExternalStore(e,t,n)},e.useTransition=function(){return P.current.useTransition()},e.version=`18.3.1`})),lL=c(((e,t)=>{t.exports=Oge()})),X=d(lL(),1),{defaultDecorateStory:kge}=__STORYBOOK_MODULE_PREVIEW_API__,uL=(e,t)=>kge(t=>X.createElement(e,t),t),Age=Object.create,dL=Object.defineProperty,jge=Object.getOwnPropertyDescriptor,fL=Object.getOwnPropertyNames,Mge=Object.getPrototypeOf,Nge=Object.prototype.hasOwnProperty,pL=(e,t)=>function(){return t||(0,e[fL(e)[0]])((t={exports:{}}).exports,t),t.exports},mL=(e,t)=>{for(var n in t)dL(e,n,{get:t[n],enumerable:!0})},Pge=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of fL(t))!Nge.call(e,i)&&i!==n&&dL(e,i,{get:()=>t[i],enumerable:!(r=jge(t,i))||r.enumerable});return e},hL=(e,t,n)=>(n=e==null?{}:Age(Mge(e)),Pge(t||!e||!e.__esModule?dL(n,`default`,{value:e,enumerable:!0}):n,e));mL({},{applyDecorators:()=>uL,beforeAll:()=>DL,decorators:()=>TL,mount:()=>wL,parameters:()=>EL,render:()=>vL,renderToCanvas:()=>CL});var{Tag:Fge}=__STORYBOOK_MODULE_PREVIEW_API__,{global:Ige}=__STORYBOOK_MODULE_GLOBAL__,{configure:Lge}=__STORYBOOK_MODULE_TEST__;({...X});function gL(e){globalThis.IS_REACT_ACT_ENVIRONMENT=e}function Rge(){return globalThis.IS_REACT_ACT_ENVIRONMENT}var _L=async({disableAct:e=!1}={})=>e=>e(),vL=(e,t)=>{let{id:n,component:r}=t;if(!r)throw Error(`Unable to render story ${n} as the component annotation is missing from the default export`);return X.createElement(r,{...e})},{global:zge}=__STORYBOOK_MODULE_GLOBAL__,{FRAMEWORK_OPTIONS:Bge}=zge,Vge=class extends X.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidMount(){let{hasError:e}=this.state,{showMain:t}=this.props;e||t()}componentDidCatch(e){let{showException:t}=this.props;t(e)}render(){let{hasError:e}=this.state,{children:t}=this.props;return e?null:t}},yL=Bge?.strictMode?X.StrictMode:X.Fragment,bL=[],xL=!1,SL=async()=>{if(xL||bL.length===0)return;xL=!0;let e=bL.shift();e&&await e(),xL=!1,SL()};async function CL({storyContext:t,unboundStoryFn:n,showMain:r,showException:i,forceRemount:a},o){let{renderElement:s,unmountElement:c}=await e(async()=>{let{renderElement:e,unmountElement:t}=await import(`./react-18-GUsS1Xdq.js`);return{renderElement:e,unmountElement:t}},__vite__mapDeps([11,12]),import.meta.url),l=n,u=t.parameters.__isPortableStory?X.createElement(l,{...t}):X.createElement(Vge,{key:t.id,showMain:r,showException:i},X.createElement(l,{...t})),d=yL?X.createElement(yL,null,u):u;a&&c(o);let f=await _L({disableAct:t.viewMode===`docs`});return await new Promise(async(e,n)=>{bL.push(async()=>{try{await f(async()=>{await s(d,o,t?.parameters?.react?.rootOptions)}),e()}catch(e){n(e)}}),SL()}),async()=>{await f(()=>{c(o)})}}var wL=e=>async t=>(t!=null&&(e.originalStoryFn=()=>t),await e.renderToCanvas(),e.canvas),TL=[(e,t)=>{if(!t.parameters?.react?.rsc)return e();let[n,r]=`18.3.1`.split(`.`).map(e=>parseInt(e,10));if(!Number.isInteger(n)||!Number.isInteger(r))throw Error(`Unable to parse React version`);if(n<18||n===18&&r<3)throw Error(`React Server Components require React >= 18.3`);return X.createElement(X.Suspense,null,e())},(e,t)=>{if(t.tags?.includes(Fge.TEST_FN)&&!Ige.FEATURES?.experimentalTestSyntax)throw Error(`To use the experimental test function, you must enable the experimentalTestSyntax feature flag. See https://storybook.js.org/docs/api/main-config/main-config-features#experimentaltestsyntax`);return e()}],EL={renderer:`react`},DL=async()=>{try{let e=await _L();Lge({unstable_advanceTimersWrapper:t=>e(t),asyncWrapper:async e=>{let t=Rge();gL(!1);try{let t=await e();return await new Promise(e=>{setTimeout(()=>{e()},0),Hge()&&jest.advanceTimersByTime(0)}),t}finally{gL(t)}},eventWrapper:t=>{let n;return e(()=>(n=t(),n)),n}})}catch{}};function Hge(){return typeof jest<`u`&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,`clock`):!1}var Uge=l({applyDecorators:()=>uL,beforeAll:()=>DL,decorators:()=>TL,mount:()=>wL,parameters:()=>EL,render:()=>vL,renderToCanvas:()=>CL},1),Wge=pL({"../../../node_modules/@base2/pretty-print-object/dist/index.js"(e){var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.apply(this,arguments)},n=e&&e.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r};Object.defineProperty(e,`__esModule`,{value:!0});var r=[];function i(e){var t=typeof e;return e!==null&&(t===`object`||t===`function`)}function a(e){return Object.prototype.toString.call(e)===`[object RegExp]`}function o(e){return Object.getOwnPropertySymbols(e).filter(function(t){return Object.prototype.propertyIsEnumerable.call(e,t)})}function s(e,c,l){l===void 0&&(l=``);var u=t(t({},{indent:` `,singleQuotes:!0}),c),d=u.inlineCharacterLimit===void 0?{newLine:`
|
|
1177
1177
|
`,newLineOrSpace:`
|
|
1178
1178
|
`,pad:l,indent:l+u.indent}:{newLine:`@@__PRETTY_PRINT_NEW_LINE__@@`,newLineOrSpace:`@@__PRETTY_PRINT_NEW_LINE_OR_SPACE__@@`,pad:`@@__PRETTY_PRINT_PAD__@@`,indent:`@@__PRETTY_PRINT_INDENT__@@`},f=function(e){if(u.inlineCharacterLimit===void 0)return e;var t=e.replace(new RegExp(d.newLine,`g`),``).replace(new RegExp(d.newLineOrSpace,`g`),` `).replace(RegExp(d.pad+`|`+d.indent,`g`),``);return t.length<=u.inlineCharacterLimit?t:e.replace(RegExp(d.newLine+`|`+d.newLineOrSpace,`g`),`
|
|
1179
1179
|
`).replace(new RegExp(d.pad,`g`),l).replace(new RegExp(d.indent,`g`),l+u.indent)};if(r.indexOf(e)!==-1)return`"[Circular]"`;if(e==null||typeof e==`number`||typeof e==`boolean`||typeof e==`function`||typeof e==`symbol`||a(e))return String(e);if(e instanceof Date)return`new Date('`+e.toISOString()+`')`;if(Array.isArray(e)){if(e.length===0)return`[]`;r.push(e);var p=`[`+d.newLine+e.map(function(t,n){var r=e.length-1===n?d.newLine:`,`+d.newLineOrSpace,i=s(t,u,l+u.indent);return u.transform&&(i=u.transform(e,n,i)),d.indent+i+r}).join(``)+d.pad+`]`;return r.pop(),f(p)}if(i(e)){var m=n(Object.keys(e),o(e));if(u.filter&&(m=m.filter(function(t){return u.filter&&u.filter(e,t)})),m.length===0)return`{}`;r.push(e);var p=`{`+d.newLine+m.map(function(t,n){var r=m.length-1===n?d.newLine:`,`+d.newLineOrSpace,i=typeof t==`symbol`,a=!i&&/^[a-z$_][a-z$_0-9]*$/i.test(t.toString()),o=i||a?t:s(t,u),c=s(e[t],u,l+u.indent);return u.transform&&(c=u.transform(e,t,c)),d.indent+String(o)+`: `+c+r}).join(``)+d.pad+`}`;return r.pop(),f(p)}return e=String(e).replace(/[\r\n]/g,function(e){return e===`
|
|
@@ -1218,7 +1218,7 @@ ${jL(w,g)}`),t||(_+=`
|
|
|
1218
1218
|
`).map(function(e,t){return t===0?e:``+i+e}).join(`
|
|
1219
1219
|
`)),a+=o+n[t+1]}),a}var dz={format:{indent:{style:` `},semicolons:!1}},fz={...dz,format:{newline:``}},pz={...dz};function mz(e,t=!1){return(0,lz.generate)(e,t?fz:pz)}function hz(e,t=!1){return t?gz(e):mz(e)}function gz(e){let t=mz(e,!0);return t.endsWith(` }`)||(t=`${t.slice(0,-1)} }`),t}function _z(e,t=!1){return t?yz(e):vz(e)}function vz(e){let t=mz(e);return t.endsWith(` }]`)&&(t=uz(t)),t}function yz(e){let t=mz(e,!0);return t.startsWith(`[ `)&&(t=t.replace(`[ `,`[`)),t}var bz=hL(QR(),1),xz=hL(ez(),1);function Sz(e,t,n,r,i){n||=Z,(function e(r,i,a){var o=a||r.type,s=t[o];n[o](r,i,e),s&&s(r,i)})(e,r,i)}function Cz(e,t,n,r,i){var a=[];n||=Z,(function e(r,i,o){var s=o||r.type,c=t[s],l=r!==a[a.length-1];l&&a.push(r),n[s](r,i,e),c&&c(r,i||a,a),l&&a.pop()})(e,r,i)}function wz(e,t,n){n(e,t)}function Tz(e,t,n){}var Z={};Z.Program=Z.BlockStatement=function(e,t,n){for(var r=0,i=e.body;r<i.length;r+=1){var a=i[r];n(a,t,`Statement`)}},Z.Statement=wz,Z.EmptyStatement=Tz,Z.ExpressionStatement=Z.ParenthesizedExpression=Z.ChainExpression=function(e,t,n){return n(e.expression,t,`Expression`)},Z.IfStatement=function(e,t,n){n(e.test,t,`Expression`),n(e.consequent,t,`Statement`),e.alternate&&n(e.alternate,t,`Statement`)},Z.LabeledStatement=function(e,t,n){return n(e.body,t,`Statement`)},Z.BreakStatement=Z.ContinueStatement=Tz,Z.WithStatement=function(e,t,n){n(e.object,t,`Expression`),n(e.body,t,`Statement`)},Z.SwitchStatement=function(e,t,n){n(e.discriminant,t,`Expression`);for(var r=0,i=e.cases;r<i.length;r+=1){var a=i[r];a.test&&n(a.test,t,`Expression`);for(var o=0,s=a.consequent;o<s.length;o+=1){var c=s[o];n(c,t,`Statement`)}}},Z.SwitchCase=function(e,t,n){e.test&&n(e.test,t,`Expression`);for(var r=0,i=e.consequent;r<i.length;r+=1){var a=i[r];n(a,t,`Statement`)}},Z.ReturnStatement=Z.YieldExpression=Z.AwaitExpression=function(e,t,n){e.argument&&n(e.argument,t,`Expression`)},Z.ThrowStatement=Z.SpreadElement=function(e,t,n){return n(e.argument,t,`Expression`)},Z.TryStatement=function(e,t,n){n(e.block,t,`Statement`),e.handler&&n(e.handler,t),e.finalizer&&n(e.finalizer,t,`Statement`)},Z.CatchClause=function(e,t,n){e.param&&n(e.param,t,`Pattern`),n(e.body,t,`Statement`)},Z.WhileStatement=Z.DoWhileStatement=function(e,t,n){n(e.test,t,`Expression`),n(e.body,t,`Statement`)},Z.ForStatement=function(e,t,n){e.init&&n(e.init,t,`ForInit`),e.test&&n(e.test,t,`Expression`),e.update&&n(e.update,t,`Expression`),n(e.body,t,`Statement`)},Z.ForInStatement=Z.ForOfStatement=function(e,t,n){n(e.left,t,`ForInit`),n(e.right,t,`Expression`),n(e.body,t,`Statement`)},Z.ForInit=function(e,t,n){e.type===`VariableDeclaration`?n(e,t):n(e,t,`Expression`)},Z.DebuggerStatement=Tz,Z.FunctionDeclaration=function(e,t,n){return n(e,t,`Function`)},Z.VariableDeclaration=function(e,t,n){for(var r=0,i=e.declarations;r<i.length;r+=1){var a=i[r];n(a,t)}},Z.VariableDeclarator=function(e,t,n){n(e.id,t,`Pattern`),e.init&&n(e.init,t,`Expression`)},Z.Function=function(e,t,n){e.id&&n(e.id,t,`Pattern`);for(var r=0,i=e.params;r<i.length;r+=1){var a=i[r];n(a,t,`Pattern`)}n(e.body,t,e.expression?`Expression`:`Statement`)},Z.Pattern=function(e,t,n){e.type===`Identifier`?n(e,t,`VariablePattern`):e.type===`MemberExpression`?n(e,t,`MemberPattern`):n(e,t)},Z.VariablePattern=Tz,Z.MemberPattern=wz,Z.RestElement=function(e,t,n){return n(e.argument,t,`Pattern`)},Z.ArrayPattern=function(e,t,n){for(var r=0,i=e.elements;r<i.length;r+=1){var a=i[r];a&&n(a,t,`Pattern`)}},Z.ObjectPattern=function(e,t,n){for(var r=0,i=e.properties;r<i.length;r+=1){var a=i[r];a.type===`Property`?(a.computed&&n(a.key,t,`Expression`),n(a.value,t,`Pattern`)):a.type===`RestElement`&&n(a.argument,t,`Pattern`)}},Z.Expression=wz,Z.ThisExpression=Z.Super=Z.MetaProperty=Tz,Z.ArrayExpression=function(e,t,n){for(var r=0,i=e.elements;r<i.length;r+=1){var a=i[r];a&&n(a,t,`Expression`)}},Z.ObjectExpression=function(e,t,n){for(var r=0,i=e.properties;r<i.length;r+=1){var a=i[r];n(a,t)}},Z.FunctionExpression=Z.ArrowFunctionExpression=Z.FunctionDeclaration,Z.SequenceExpression=function(e,t,n){for(var r=0,i=e.expressions;r<i.length;r+=1){var a=i[r];n(a,t,`Expression`)}},Z.TemplateLiteral=function(e,t,n){for(var r=0,i=e.quasis;r<i.length;r+=1){var a=i[r];n(a,t)}for(var o=0,s=e.expressions;o<s.length;o+=1){var c=s[o];n(c,t,`Expression`)}},Z.TemplateElement=Tz,Z.UnaryExpression=Z.UpdateExpression=function(e,t,n){n(e.argument,t,`Expression`)},Z.BinaryExpression=Z.LogicalExpression=function(e,t,n){n(e.left,t,`Expression`),n(e.right,t,`Expression`)},Z.AssignmentExpression=Z.AssignmentPattern=function(e,t,n){n(e.left,t,`Pattern`),n(e.right,t,`Expression`)},Z.ConditionalExpression=function(e,t,n){n(e.test,t,`Expression`),n(e.consequent,t,`Expression`),n(e.alternate,t,`Expression`)},Z.NewExpression=Z.CallExpression=function(e,t,n){if(n(e.callee,t,`Expression`),e.arguments)for(var r=0,i=e.arguments;r<i.length;r+=1){var a=i[r];n(a,t,`Expression`)}},Z.MemberExpression=function(e,t,n){n(e.object,t,`Expression`),e.computed&&n(e.property,t,`Expression`)},Z.ExportNamedDeclaration=Z.ExportDefaultDeclaration=function(e,t,n){e.declaration&&n(e.declaration,t,e.type===`ExportNamedDeclaration`||e.declaration.id?`Statement`:`Expression`),e.source&&n(e.source,t,`Expression`)},Z.ExportAllDeclaration=function(e,t,n){e.exported&&n(e.exported,t),n(e.source,t,`Expression`)},Z.ImportDeclaration=function(e,t,n){for(var r=0,i=e.specifiers;r<i.length;r+=1){var a=i[r];n(a,t)}n(e.source,t,`Expression`)},Z.ImportExpression=function(e,t,n){n(e.source,t,`Expression`)},Z.ImportSpecifier=Z.ImportDefaultSpecifier=Z.ImportNamespaceSpecifier=Z.Identifier=Z.Literal=Tz,Z.TaggedTemplateExpression=function(e,t,n){n(e.tag,t,`Expression`),n(e.quasi,t,`Expression`)},Z.ClassDeclaration=Z.ClassExpression=function(e,t,n){return n(e,t,`Class`)},Z.Class=function(e,t,n){e.id&&n(e.id,t,`Pattern`),e.superClass&&n(e.superClass,t,`Expression`),n(e.body,t)},Z.ClassBody=function(e,t,n){for(var r=0,i=e.body;r<i.length;r+=1){var a=i[r];n(a,t)}},Z.MethodDefinition=Z.Property=function(e,t,n){e.computed&&n(e.key,t,`Expression`),n(e.value,t,`Expression`)};var Ez={...Z,JSXElement:()=>{}},Dz=bz.Parser.extend((0,xz.default)());function Oz(e){return e==null?null:e.name}function kz(e){return e.filter(e=>e.type===`ObjectExpression`||e.type===`ArrayExpression`)}function Az(e){let t=[];return Cz(e,{ObjectExpression(e,n){t.push(kz(n).length)},ArrayExpression(e,n){t.push(kz(n).length)}},Ez),Math.max(...t)}function jz(e){return{inferredType:{type:`Identifier`,identifier:Oz(e)},ast:e}}function Mz(e){return{inferredType:{type:`Literal`},ast:e}}function Nz(e){let t;Sz(e.body,{JSXElement(e){t=e}},Ez);let n={type:t==null?`Function`:`Element`,params:e.params,hasParams:e.params.length!==0},r=Oz(e.id);return r!=null&&(n.identifier=r),{inferredType:n,ast:e}}function Pz(e){let t;return Sz(e.body,{JSXElement(e){t=e}},Ez),{inferredType:{type:t==null?`Class`:`Element`,identifier:Oz(e.id)},ast:e}}function Fz(e){let t={type:`Element`},n=Oz(e.openingElement.name);return n!=null&&(t.identifier=n),{inferredType:t,ast:e}}function Iz(e){return Oz(e.callee.type===`MemberExpression`?e.callee.property:e.callee)===`shape`?Lz(e.arguments[0]):null}function Lz(e){return{inferredType:{type:`Object`,depth:Az(e)},ast:e}}function Rz(e){return{inferredType:{type:`Array`,depth:Az(e)},ast:e}}function zz(e){switch(e.type){case`Identifier`:return jz(e);case`Literal`:return Mz(e);case`FunctionExpression`:case`ArrowFunctionExpression`:return Nz(e);case`ClassExpression`:return Pz(e);case`JSXElement`:return Fz(e);case`CallExpression`:return Iz(e);case`ObjectExpression`:return Lz(e);case`ArrayExpression`:return Rz(e);default:return null}}function Bz(e){let t=Dz.parse(`(${e})`,{ecmaVersion:2020}),n={inferredType:{type:`Unknown`},ast:t};if(t.body[0]!=null){let e=t.body[0];switch(e.type){case`ExpressionStatement`:{let t=zz(e.expression);t!=null&&(n=t);break}default:break}}return n}function Vz(e){try{return{...Bz(e)}}catch{}return{inferredType:{type:`Unknown`}}}var Hz=hL(nz(),1);function Uz(e){return Hz.default.includes(e.toLowerCase())}function Wz({inferredType:e,ast:t}){let{depth:n}=e;if(n<=2){let e=_z(t,!0);if(!jN(e))return MN(e)}return MN(az,_z(t))}function Gz({inferredType:e,ast:t}){let{depth:n}=e;if(n===1){let e=hz(t,!0);if(!jN(e))return MN(e)}return MN(iz,hz(t))}function Kz(e,t){return t?`${e}( ... )`:`${e}()`}function qz(e){return`<${e} />`}function Jz(e){let{type:t,identifier:n}=e;switch(t){case`Function`:return Kz(n,e.hasParams);case`Element`:return qz(n);default:return n}}function Yz({inferredType:e,ast:t}){let{identifier:n}=e;if(n!=null)return MN(Jz(e),mz(t));let r=mz(t,!0);return jN(r)?MN(sz,mz(t)):MN(r)}function Xz(e,t){let{inferredType:n}=t,{identifier:r}=n;return r!=null&&!Uz(r)?MN(Jz(n),e):jN(e)?MN(cz,e):MN(e)}function Zz(e){try{let t=Vz(e);switch(t.inferredType.type){case`Object`:return Gz(t);case`Function`:return Yz(t);case`Element`:return Xz(e,t);case`Array`:return Wz(t);default:return null}}catch(e){console.error(e)}return null}function Qz(e){if(!e||typeof e!=`object`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype||Object.getPrototypeOf(t)===null?Object.prototype.toString.call(e)===`[object Object]`:!1}function $z(e){return typeof e==`function`}function eB(e){return typeof e==`string`}var tB=NR;function nB(e){return e.$$typeof!=null}function rB(e,t){let{name:n}=e;return n!==``&&n!==`anonymous`&&n!==t?n:null}var iB=e=>MN(JSON.stringify(e));function aB(e){let{type:t}=e,{displayName:n}=t,r=tB(e,{});if(n!=null)return MN(qz(n),r);if(eB(t)&&Uz(t)){let t=tB(e,{tabStop:0}).replace(/\r?\n|\r/g,``);if(!jN(t))return MN(t)}return MN(cz,r)}var oB={string:iB,object:e=>nB(e)&&e.type!=null?aB(e):Qz(e)?Gz(Vz(JSON.stringify(e))):Array.isArray(e)?Wz(Vz(JSON.stringify(e))):MN(iz),function:(e,t)=>{let n=!1,r;if($z(e.render))n=!0;else if(e.prototype!=null&&$z(e.prototype.render))n=!0;else{let t;try{r=Vz(e.toString());let{hasParams:i,params:a}=r.inferredType;i?a.length===1&&a[0].type===`ObjectPattern`&&(t=e({})):t=e(),t!=null&&nB(t)&&(n=!0)}catch{}}let i=rB(e,t.name);if(i!=null){if(n)return MN(qz(i));r!=null&&(r=Vz(e.toString()));let{hasParams:t}=r.inferredType;return MN(Kz(i,t))}return MN(n?cz:sz)},default:e=>MN(e.toString())};function sB(e={}){return{...oB,...e}}function cB(e,t,n=oB){try{switch(typeof e){case`string`:return n.string(e,t);case`object`:return n.object(e,t);case`function`:return n.function(e,t);default:return n.default(e,t)}}catch(e){console.error(e)}return null}function lB(e,t){let n=e!=null,r=t!=null;if(!n&&!r)return``;let i=[];if(n){let t=e.map(e=>{let t=e.getPrettyName(),n=e.getTypeName();return n==null?t:`${t}: ${n}`});i.push(`(${t.join(`, `)})`)}else i.push(`()`);return r&&i.push(`=> ${t.getTypeName()}`),i.join(` `)}function uB(e,t){let n=e!=null,r=t!=null;if(!n&&!r)return``;let i=[];return n?i.push(`( ... )`):i.push(`()`),r&&i.push(`=> ${t.getTypeName()}`),i.join(` `)}function dB(e){return e.replace(/,/g,`,\r
|
|
1220
1220
|
`)}var fB=150;function pB({name:e,short:t,compact:n,full:r,inferredType:i}){return{name:e,short:t,compact:n,full:r??t,inferredType:i}}function mB(e){return e.replace(/PropTypes./g,``).replace(/.isRequired/g,``)}function hB(e){return e.split(/\r?\n/)}function gB(e,t=!1){return mB(hz(e,t))}function _B(e,t=!1){return mB(mz(e,t))}function vB(e){switch(e){case`Object`:return iz;case`Array`:return az;case`Class`:return oz;case`Function`:return sz;case`Element`:return cz;default:return rz}}function yB(e,t){let{inferredType:n,ast:r}=Vz(e),{type:i}=n,a,o,s;switch(i){case`Identifier`:case`Literal`:a=e,o=e;break;case`Object`:{let{depth:e}=n;a=iz,o=e===1?gB(r,!0):null,s=gB(r);break}case`Element`:{let{identifier:t}=n;a=t!=null&&!Uz(t)?t:cz,o=hB(e).length===1?e:null,s=e;break}case`Array`:{let{depth:e}=n;a=az,o=e<=2?_B(r,!0):null,s=_B(r);break}default:a=vB(i),o=hB(e).length===1?e:null,s=e;break}return pB({name:t,short:a,compact:o,full:s,inferredType:i})}function bB({raw:e}){return e==null?pB({name:`custom`,short:rz,compact:rz}):yB(e,`custom`)}function xB(e){let{jsDocTags:t}=e;return t!=null&&(t.params!=null||t.returns!=null)?pB({name:`func`,short:uB(t.params,t.returns),compact:null,full:lB(t.params,t.returns)}):pB({name:`func`,short:sz,compact:sz})}function SB(e,t){let{inferredType:n,ast:r}=Vz(`{ ${Object.keys(e.value).map(n=>`${n}: ${MB(e.value[n],t).full}`).join(`, `)} }`),{depth:i}=n;return pB({name:`shape`,short:iz,compact:i===1&&r?gB(r,!0):null,full:r?gB(r):null})}function CB(e){return`objectOf(${e})`}function wB(e,t){let{short:n,compact:r,full:i}=MB(e.value,t);return pB({name:`objectOf`,short:CB(n),compact:r==null?null:CB(r),full:i&&CB(i)})}function TB(e,t){if(Array.isArray(e.value)){let n=e.value.reduce((e,n)=>{let{short:r,compact:i,full:a}=MB(n,t);return e.short.push(r),e.compact.push(i),e.full.push(a),e},{short:[],compact:[],full:[]});return pB({name:`union`,short:n.short.join(` | `),compact:n.compact.every(e=>e!=null)?n.compact.join(` | `):null,full:n.full.join(` | `)})}return pB({name:`union`,short:e.value,compact:null})}function EB({value:e,computed:t}){return t?yB(e,`enumvalue`):pB({name:`enumvalue`,short:e,compact:e})}function DB(e){if(Array.isArray(e.value)){let t=e.value.reduce((e,t)=>{let{short:n,compact:r,full:i}=EB(t);return e.short.push(n),e.compact.push(r),e.full.push(i),e},{short:[],compact:[],full:[]});return pB({name:`enum`,short:t.short.join(` | `),compact:t.compact.every(e=>e!=null)?t.compact.join(` | `):null,full:t.full.join(` | `)})}return pB({name:`enum`,short:e.value,compact:e.value})}function OB(e){return`${e}[]`}function kB(e){return`[${e}]`}function AB(e,t,n){return pB({name:`arrayOf`,short:OB(e),compact:t==null?null:kB(t),full:n&&kB(n)})}function jB(e,t){let{name:n,short:r,compact:i,full:a,inferredType:o}=MB(e.value,t);if(n===`custom`){if(o===`Object`)return AB(r,i,a)}else if(n===`shape`)return AB(r,i,a);return pB({name:`arrayOf`,short:OB(r),compact:OB(r)})}function MB(e,t){try{switch(e.name){case`custom`:return bB(e);case`func`:return xB(t);case`shape`:return SB(e,t);case`instanceOf`:return pB({name:`instanceOf`,short:e.value,compact:e.value});case`objectOf`:return wB(e,t);case`union`:return TB(e,t);case`enum`:return DB(e);case`arrayOf`:return jB(e,t);default:return pB({name:e.name,short:e.name,compact:e.name})}}catch(e){console.error(e)}return pB({name:`unknown`,short:`unknown`,compact:`unknown`})}function NB(e){let{type:t}=e.docgenInfo;if(t==null)return null;try{switch(t.name){case`custom`:case`shape`:case`instanceOf`:case`objectOf`:case`union`:case`enum`:case`arrayOf`:{let{short:n,compact:r,full:i}=MB(t,e);return r!=null&&!AN(r)?MN(r):i?MN(n,i):MN(n)}case`func`:{let{short:n,full:r}=MB(t,e),i=n,a;return r&&r.length<fB?i=r:r&&(a=dB(r)),MN(i,a)}default:return null}}catch(e){console.error(e)}return null}var PB=sB({function:(e,{name:t,type:n})=>{let r=n?.summary===`element`||n?.summary===`elementType`,i=rB(e,t);if(i!=null){if(r)return MN(qz(i));let{hasParams:t}=Vz(e.toString()).inferredType;return MN(Kz(i,t))}return MN(r?cz:sz)}});function FB(e,t){let{propTypes:n}=t;return n==null?e:Object.keys(n).map(t=>e.find(e=>e.name===t)).filter(Boolean)}function IB(e,t){let{propDef:n}=e,r=NB(e);r!=null&&(n.type=r);let{defaultValue:i}=e.docgenInfo;if(i!=null&&i.value!=null){let e=Zz(i.value);e!=null&&(n.defaultValue=e)}else if(t!=null){let e=cB(t,n,PB);e!=null&&(n.defaultValue=e)}return n}function LB(e,t){let n=t.defaultProps==null?{}:t.defaultProps;return FB(e.map(e=>IB(e,n[e.propDef.name])),t)}function RB(e,t){let{propDef:n}=e,{defaultValue:r}=e.docgenInfo;if(r!=null&&r.value!=null){let e=Zz(r.value);e!=null&&(n.defaultValue=e)}else if(t!=null){let e=cB(t,n);e!=null&&(n.defaultValue=e)}return n}function zB(e){return e.map(e=>RB(e))}function BB(e,t){let n=e;!yN(e)&&!e.propTypes&&OL(e)&&(n=e.type);let r=Kfe(n,t);if(r.length===0)return[];switch(r[0].typeSystem){case _N.JAVASCRIPT:return LB(r,e);case _N.TYPESCRIPT:return zB(r);default:return r.map(e=>e.propDef)}}var VB=e=>({rows:BB(e,`props`)}),HB={docs:{extractArgTypes:e=>{if(e){let{rows:t}=VB(e);if(t)return t.reduce((e,t)=>{let{name:n,description:r,type:i,sbType:a,defaultValue:o,jsDocTags:s,required:c}=t;return e[n]={name:n,description:r,type:{required:c,...a},table:{type:i??void 0,jsDocTags:s,defaultValue:o??void 0}},e},{})}return null},extractComponentDescription:qfe}},UB=[Jfe],WB=l({argTypesEnhancers:()=>UB,parameters:()=>HB},1);mL({},{applyDecorators:()=>aV,decorators:()=>oV,parameters:()=>sV});var{logger:GB}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{emitTransformCode:KB,useEffect:qB,useRef:JB}=__STORYBOOK_MODULE_PREVIEW_API__,YB=NR,XB=e=>e.charAt(0).toUpperCase()+e.slice(1),ZB=e=>(e.$$typeof||e).toString().replace(/^Symbol\((.*)\)$/,`$1`).split(`.`).map(e=>e.split(`_`).map(XB).join(``)).join(`.`);function QB(e){if((0,X.isValidElement)(e)){let t=Object.keys(e.props).reduce((t,n)=>(t[n]=QB(e.props[n]),t),{});return{...e,props:t,_owner:null}}return Array.isArray(e)?e.map(QB):e}var $B=(e,t)=>{if(typeof e>`u`)return GB.warn(`Too many skip or undefined component`),null;let n=e,r=n.type;for(let e=0;e<t?.skip;e+=1){if(typeof n>`u`)return GB.warn(`Cannot skip undefined element`),null;if(X.Children.count(n)>1)return GB.warn(`Trying to skip an array of elements`),null;typeof n.props.children>`u`?(GB.warn(`Not enough children to skip elements.`),typeof n.type==`function`&&n.type.name===``&&(n=X.createElement(r,{...n.props}))):n=typeof n.props.children==`function`?n.props.children():n.props.children}let i;i=typeof t?.displayName==`string`?{showFunctions:!0,displayName:()=>t.displayName}:{displayName:e=>e.type.displayName?e.type.displayName:bN(e.type,`displayName`)?bN(e.type,`displayName`):e.type.render?.displayName?e.type.render.displayName:typeof e.type==`symbol`||e.type.$$typeof&&typeof e.type.$$typeof==`symbol`?ZB(e.type):e.type.name&&e.type.name!==`_default`?e.type.name:typeof e.type==`function`?`No Display Name`:qge(e.type)?e.type.render.name:OL(e.type)?e.type.type.name:e.type};let a={...i,filterProps:(e,t)=>e!==void 0,...t};return X.Children.map(e,e=>{let t=typeof e==`number`?e.toString():e,n=(typeof YB==`function`?YB:YB.default)(QB(t),a);if(n.indexOf(`"`)>-1){let e=n.match(/\S+=\\"([^"]*)\\"/g);e&&e.forEach(e=>{n=n.replace(e,e.replace(/"/g,`'`))})}return n}).join(`
|
|
1221
|
-
`).replace(/function\s+noRefCheck\(\)\s*\{\}/g,`() => {}`)},eV={skip:0,showFunctions:!1,enableBeautify:!0,showDefaultProps:!1},tV=e=>{let t=e?.parameters.docs?.source,n=e?.parameters.__isArgsStory;return t?.type===HN.DYNAMIC?!1:!n||t?.code||t?.type===HN.CODE},nV=e=>e.type?.displayName===`MDXCreateElement`&&!!e.props?.mdxType,rV=e=>{if(!nV(e))return e;let{mdxType:t,originalType:n,children:r,...i}=e.props,a=[];return r&&(a=(Array.isArray(r)?r:[r]).map(rV)),(0,X.createElement)(n,i,...a)},iV=(e,t)=>{let n=JB(void 0),r=e(),i=tV(t),a={...eV,...t?.parameters.jsx||{}},o=t.originalStoryFn(t.args,t);return qB(()=>{if(i)return;let e=$B(rV(o),a);e&&n.current!==e&&(KB(e,t),n.current=e)}),r},aV=(e,t)=>{let n=t.findIndex(e=>e.originalFn===iV);return uL(e,n===-1?t:[...t.splice(n,1),...t])},oV=`FEATURES`in globalThis&&globalThis?.FEATURES?.experimentalCodeExamples?[]:[iV],sV={docs:{story:{inline:!0}}},cV=l({applyDecorators:()=>aV,decorators:()=>oV,parameters:()=>sV},1),lV=Object.defineProperty,uV=(e,t)=>{for(var n in t)lV(e,n,{get:t[n],enumerable:!0})},dV=`themes`,fV=`storybook/${dV}`,pV=`theme`;`${fV}`;var mV={},hV={REGISTER_THEMES:`${fV}/REGISTER_THEMES`};uV({},{initialGlobals:()=>gV});var gV={[pV]:``},_V=l({initialGlobals:()=>gV},1),vV=Object.create,yV=Object.defineProperty,bV=Object.getOwnPropertyDescriptor,xV=Object.getOwnPropertyNames,SV=Object.getPrototypeOf,CV=Object.prototype.hasOwnProperty,wV=(e,t)=>function(){return t||(0,e[xV(e)[0]])((t={exports:{}}).exports,t),t.exports},TV=(e,t)=>{for(var n in t)yV(e,n,{get:t[n],enumerable:!0})},EV=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of xV(t))!CV.call(e,i)&&i!==n&&yV(e,i,{get:()=>t[i],enumerable:!(r=bV(t,i))||r.enumerable});return e},DV=(e,t,n)=>(n=e==null?{}:vV(SV(e)),EV(t||!e||!e.__esModule?yV(n,`default`,{value:e,enumerable:!0}):n,e));TV({},{parameters:()=>kV});var OV=Object.entries(globalThis.TAGS_OPTIONS??{}).reduce((e,t)=>{let[n,r]=t;return r.excludeFromDocsStories&&(e[n]=!0),e},{}),kV={docs:{renderer:async()=>{let{DocsRenderer:t}=await e(async()=>{let{DocsRenderer:e}=await import(`./DocsRenderer-LL677BLK-
|
|
1221
|
+
`).replace(/function\s+noRefCheck\(\)\s*\{\}/g,`() => {}`)},eV={skip:0,showFunctions:!1,enableBeautify:!0,showDefaultProps:!1},tV=e=>{let t=e?.parameters.docs?.source,n=e?.parameters.__isArgsStory;return t?.type===HN.DYNAMIC?!1:!n||t?.code||t?.type===HN.CODE},nV=e=>e.type?.displayName===`MDXCreateElement`&&!!e.props?.mdxType,rV=e=>{if(!nV(e))return e;let{mdxType:t,originalType:n,children:r,...i}=e.props,a=[];return r&&(a=(Array.isArray(r)?r:[r]).map(rV)),(0,X.createElement)(n,i,...a)},iV=(e,t)=>{let n=JB(void 0),r=e(),i=tV(t),a={...eV,...t?.parameters.jsx||{}},o=t.originalStoryFn(t.args,t);return qB(()=>{if(i)return;let e=$B(rV(o),a);e&&n.current!==e&&(KB(e,t),n.current=e)}),r},aV=(e,t)=>{let n=t.findIndex(e=>e.originalFn===iV);return uL(e,n===-1?t:[...t.splice(n,1),...t])},oV=`FEATURES`in globalThis&&globalThis?.FEATURES?.experimentalCodeExamples?[]:[iV],sV={docs:{story:{inline:!0}}},cV=l({applyDecorators:()=>aV,decorators:()=>oV,parameters:()=>sV},1),lV=Object.defineProperty,uV=(e,t)=>{for(var n in t)lV(e,n,{get:t[n],enumerable:!0})},dV=`themes`,fV=`storybook/${dV}`,pV=`theme`;`${fV}`;var mV={},hV={REGISTER_THEMES:`${fV}/REGISTER_THEMES`};uV({},{initialGlobals:()=>gV});var gV={[pV]:``},_V=l({initialGlobals:()=>gV},1),vV=Object.create,yV=Object.defineProperty,bV=Object.getOwnPropertyDescriptor,xV=Object.getOwnPropertyNames,SV=Object.getPrototypeOf,CV=Object.prototype.hasOwnProperty,wV=(e,t)=>function(){return t||(0,e[xV(e)[0]])((t={exports:{}}).exports,t),t.exports},TV=(e,t)=>{for(var n in t)yV(e,n,{get:t[n],enumerable:!0})},EV=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of xV(t))!CV.call(e,i)&&i!==n&&yV(e,i,{get:()=>t[i],enumerable:!(r=bV(t,i))||r.enumerable});return e},DV=(e,t,n)=>(n=e==null?{}:vV(SV(e)),EV(t||!e||!e.__esModule?yV(n,`default`,{value:e,enumerable:!0}):n,e));TV({},{parameters:()=>kV});var OV=Object.entries(globalThis.TAGS_OPTIONS??{}).reduce((e,t)=>{let[n,r]=t;return r.excludeFromDocsStories&&(e[n]=!0),e},{}),kV={docs:{renderer:async()=>{let{DocsRenderer:t}=await e(async()=>{let{DocsRenderer:e}=await import(`./DocsRenderer-LL677BLK-Cl_sjYsB.js`);return{DocsRenderer:e}},__vite__mapDeps([13,14,12]),import.meta.url);return new t},stories:{filter:e=>(e.tags||[]).filter(e=>OV[e]).length===0&&!e.parameters.docs?.disable}}},AV=l({parameters:()=>kV},1);function jV(e){var t=[...arguments].slice(1),n=Array.from(typeof e==`string`?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,``);var r=n.reduce(function(e,t){var n=t.match(/\n([\t ]+|(?!\s).)/g);return n?e.concat(n.map(function(e){return e.match(/[\t ]/g)?.length??0})):e},[]);if(r.length){var i=RegExp(`
|
|
1222
1222
|
[ ]{`+Math.min.apply(Math,r)+`}`,`g`);n=n.map(function(e){return e.replace(i,`
|
|
1223
1223
|
`)})}n[0]=n[0].replace(/^\r?\n/,``);var a=n[0];return t.forEach(function(e,t){var r=a.match(/(?:^|\n)( *)$/),i=r?r[1]:``,o=e;typeof e==`string`&&e.includes(`
|
|
1224
1224
|
`)&&(o=String(e).split(`
|
|
@@ -1321,7 +1321,7 @@ More info: ${i}
|
|
|
1321
1321
|
it's possible a CORS error happened.
|
|
1322
1322
|
|
|
1323
1323
|
Please check your dev-tools network tab.
|
|
1324
|
-
`});let m=e.versions&&Object.keys(e.versions).length?e.versions:s.versions;await a.setRef(t,{id:t,url:u.url,...s,...m?{versions:m}:{},type:s.storyIndex?`lazy`:`auto-inject`})},getRefs:()=>{let{refs:t={}}=e.getState();return t},setRef:async(i,{storyIndex:o,setStoriesData:s,...c},l=!1)=>{if(n)return;let u,d,f,{filters:p}=e.getState(),{storyMapper:m=rX}=t.getConfig(),h=a.getRefs()[i];(o||s)&&(u=s?wSe(MSe(s,h,{storyMapper:m})):o,f=$Y(o,{provider:t,docsOptions:r,filters:p,allStatuses:{}}),d=$Y(o,{provider:t,docsOptions:r,filters:{},allStatuses:{}})),d&&=iX(d,h),f&&=iX(f,h),await a.updateRef(i,{...h,...c,index:d,filteredIndex:f,internal_index:u})},updateRef:async(t,n)=>{let{[t]:r,...i}=a.getRefs();i[t]={...r,...n};let o=Object.keys(s).reduce((e,t)=>(e[t]=i[t],e),{});await e.setState({refs:o})}},o=!n&&ZY.REFS||{},s=o;return i&&new Promise(async e=>{for(let e of Object.values(o))await a.checkRef({...e,stories:{}});e(void 0)}),{api:a,state:{refs:s}}},oX=(e,t)=>{let{source:n,refId:r,type:i}=e,[a,o]=nX(n,r),s;(r||a===`external`)&&(s=r&&t.getRefs()[r]?t.getRefs()[r]:t.findRef(o));let c={source:n,sourceType:a,sourceLocation:o,refId:r,ref:s,type:i};switch(!0){case typeof r==`string`:case a===`local`:case a===`external`:return c;default:return bSe.warn(`Received a ${i} frame that was not configured as a ref`),null}},PSe=({store:e,fullAPI:t,provider:n})=>{let r={getGlobals(){return e.getState().globals},getUserGlobals(){return e.getState().userGlobals},getStoryGlobals(){return e.getState().storyGlobals},getGlobalTypes(){return e.getState().globalTypes},updateGlobals(e){n.channel?.emit(ySe,{globals:e,options:{target:`storybook-preview-iframe`}})}},i={globals:{},userGlobals:{},storyGlobals:{},globalTypes:{}},a=({globals:t,storyGlobals:n,userGlobals:r})=>{let{globals:i,userGlobals:a,storyGlobals:o}=e.getState();TJ(t,i)||e.setState({globals:t}),TJ(r,a)||e.setState({userGlobals:r}),TJ(n,o)||e.setState({storyGlobals:n})};return n.channel?.on(_Se,function({globals:e,storyGlobals:n,userGlobals:r}){let{ref:i}=oX(this,t);i?YY.warn(`received a GLOBALS_UPDATED from a non-local ref. This is not currently supported.`):a({globals:e,storyGlobals:n,userGlobals:r})}),n.channel?.on(vSe,function({globals:n,globalTypes:i}){let{ref:a}=oX(this,t),o=e.getState()?.globals;a?Object.keys(n).length>0&&YY.warn(`received globals from a non-local ref. This is not currently supported.`):e.setState({globals:n,userGlobals:n,globalTypes:i}),o&&Object.keys(o).length!==0&&!TJ(n,o)&&r.updateGlobals(o)}),{api:r,state:i}},sX={};XM(sX,{ActiveTabs:()=>uX,defaultLayoutState:()=>dX,focusableUIElements:()=>fX,init:()=>LSe});var{SET_CONFIG:FSe}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:ISe}=__STORYBOOK_MODULE_GLOBAL__,{document:cX}=ISe,lX=e=>typeof e==`function`,uX={SIDEBAR:`sidebar`,CANVAS:`canvas`,ADDONS:`addons`},dX={ui:{enableShortcuts:!0},layout:{initialActive:uX.CANVAS,showToolbar:!0,navSize:300,bottomPanelHeight:300,rightPanelWidth:400,recentVisibleSizes:{navSize:300,bottomPanelHeight:300,rightPanelWidth:400},panelPosition:`bottom`,showTabs:!0},layoutCustomisations:{showSidebar:void 0,showToolbar:void 0},selectedPanel:void 0,theme:fU()},fX={storySearchField:`storybook-explorer-searchfield`,storyListMenu:`storybook-explorer-menu`,storyPanelRoot:`storybook-panel-root`},pX=e=>e.layout.navSize>0,mX=e=>{let{bottomPanelHeight:t,rightPanelWidth:n,panelPosition:r}=e.layout;return r===`bottom`&&t>0||r===`right`&&n>0},hX=e=>!pX(e)&&!mX(e),gX=e=>({navSize:e.navSize>0?e.navSize:e.recentVisibleSizes.navSize,bottomPanelHeight:e.bottomPanelHeight>0?e.bottomPanelHeight:e.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:e.rightPanelWidth>0?e.rightPanelWidth:e.recentVisibleSizes.rightPanelWidth}),LSe=({store:e,provider:t,singleStory:n})=>{let r={toggleFullscreen(t){return e.setState(e=>{let n=hX(e),r=typeof t==`boolean`?t:!n;return r===n?{layout:e.layout}:r?{layout:{...e.layout,navSize:0,bottomPanelHeight:0,rightPanelWidth:0,recentVisibleSizes:gX(e.layout)}}:{layout:{...e.layout,navSize:e.singleStory?0:e.layout.recentVisibleSizes.navSize,bottomPanelHeight:e.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:e.layout.recentVisibleSizes.rightPanelWidth}}},{persistence:`session`})},togglePanel(t){return e.setState(e=>{let n=mX(e),r=typeof t==`boolean`?t:!n;return r===n?{layout:e.layout}:r?{layout:{...e.layout,bottomPanelHeight:e.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:e.layout.recentVisibleSizes.rightPanelWidth}}:{layout:{...e.layout,bottomPanelHeight:0,rightPanelWidth:0,recentVisibleSizes:gX(e.layout)}}},{persistence:`session`})},togglePanelPosition(t){return e.setState(e=>{let n=t||(e.layout.panelPosition===`right`?`bottom`:`right`);return{layout:{...e.layout,panelPosition:n,bottomPanelHeight:e.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:e.layout.recentVisibleSizes.rightPanelWidth}}},{persistence:`permanent`})},toggleNav(t){return e.setState(e=>{if(e.singleStory)return{layout:e.layout};let n=pX(e),r=typeof t==`boolean`?t:!n;return r===n?{layout:e.layout}:r?{layout:{...e.layout,navSize:e.layout.recentVisibleSizes.navSize}}:{layout:{...e.layout,navSize:0,recentVisibleSizes:gX(e.layout)}}},{persistence:`session`})},toggleToolbar(t){return e.setState(e=>{let n=typeof t<`u`?t:!e.layout.showToolbar;return{layout:{...e.layout,showToolbar:n}}},{persistence:`session`})},setSizes({navSize:t,bottomPanelHeight:n,rightPanelWidth:r}){return e.setState(e=>{let i={...e.layout,navSize:t??e.layout.navSize,bottomPanelHeight:n??e.layout.bottomPanelHeight,rightPanelWidth:r??e.layout.rightPanelWidth};return{layout:{...i,recentVisibleSizes:gX(i)}}},{persistence:`session`})},focusOnUIElement(e,t){if(!e)return;let n=Date.now(),r=()=>{let n=cX.getElementById(e);return!n||(n.focus(),n!==cX.activeElement)?!1:(t&&n.select?.(),!0)};if(r())return;let i=setInterval(()=>{if(Date.now()-n>=500){clearInterval(i);return}r()&&clearInterval(i)},50)},getInitialOptions(){let{theme:e,selectedPanel:r,layoutCustomisations:i,...a}=t.getConfig();return{...dX,layout:{...lN(dX.layout,sN(a,Object.keys(dX.layout))),...n&&{navSize:0}},layoutCustomisations:{...dX.layoutCustomisations,...i??{}},ui:lN(dX.ui,sN(a,Object.keys(dX.ui))),selectedPanel:r||dX.selectedPanel,theme:e||dX.theme}},getIsFullscreen(){return hX(e.getState())},getIsPanelShown(){return mX(e.getState())},getIsNavShown(){return pX(e.getState())},getShowToolbarWithCustomisations(t){let n=e.getState();return lX(n.layoutCustomisations.showToolbar)?n.layoutCustomisations.showToolbar(n,t)??t:t},getShowPanelWithCustomisations(t){let n=e.getState();return lX(n.layoutCustomisations.showPanel)?n.layoutCustomisations.showPanel(n,t)??t:t},getNavSizeWithCustomisations(t){let n=e.getState();if(lX(n.layoutCustomisations.showSidebar)){let e=n.layoutCustomisations.showSidebar(n,t!==0);if(t===0&&e===!0)return n.layout.recentVisibleSizes.navSize;if(t!==0&&e===!1)return 0}return t},setOptions:t=>{let{layout:r,ui:i,selectedPanel:a,theme:o}=e.getState();if(!t)return;let s={...r,...t.layout||{},...sN(t,Object.keys(r)),...n&&{navSize:0}},c={...i,...t.ui,...lN(t.ui||{},sN(t,Object.keys(i)))},l={...o,...t.theme},u={};GN(i,c)||(u.ui=c),GN(r,s)||(u.layout=s),t.selectedPanel&&!GN(a,t.selectedPanel)&&(u.selectedPanel=t.selectedPanel),Object.keys(u).length&&e.setState(u,{persistence:`permanent`}),GN(o,l)||e.setState({theme:l})}},i=sN(e.getState(),[`layout`,`selectedPanel`]);return t.channel?.on(FSe,()=>{r.setOptions(zY(r.getInitialOptions(),i))}),{api:r,state:zY(r.getInitialOptions(),i)}},_X={};XM(_X,{init:()=>RSe});var RSe=({store:e})=>({api:{addNotification:t=>{e.setState(({notifications:e})=>{let[n,r]=EJ(e,e=>e.id===t.id);return n.forEach(e=>{e.onClear&&e.onClear({dismissed:!1,timeout:!1})}),{notifications:[...r,t]}})},clearNotification:t=>{e.setState(({notifications:e})=>{let[n,r]=EJ(e,e=>e.id===t);return n.forEach(e=>{e.onClear&&e.onClear({dismissed:!1,timeout:!1})}),{notifications:r}})}},state:{notifications:[]}}),vX={};XM(vX,{init:()=>BSe});var{OPEN_IN_EDITOR_REQUEST:zSe,OPEN_IN_EDITOR_RESPONSE:yX}=__STORYBOOK_MODULE_CORE_EVENTS__,BSe=({provider:t,fullAPI:n})=>({api:{openInEditor(e){return new Promise(n=>{let{file:r,line:i,column:a}=e,o=e=>{e.file===r&&e.line===i&&e.column===a&&(t.channel?.off(yX,o),n(e))};t.channel?.on(yX,o),t.channel?.emit(zSe,e)})}},state:{notifications:[]},init:async()=>{let{color:r}=await e(async()=>{let{color:e}=await Promise.resolve().then(()=>pU);return{color:e}},void 0,import.meta.url);t.channel?.on(yX,e=>{e.error!==null&&n.addNotification({id:`open-in-editor-error`,content:{headline:`Failed to open in editor`,subHeadline:e.error||`Check the Storybook process on the command line for more details.`},icon:X.createElement(x_e,{color:r.negative}),duration:8e3})})}}),bX={};XM(bX,{init:()=>VSe});var VSe=({provider:e,fullAPI:t})=>({api:e.renderPreview?{renderPreview:e.renderPreview}:{},state:{},init:()=>{e.handleAPI(t)}}),xX={};XM(xX,{init:()=>HSe});var HSe=({store:e,navigate:t,fullAPI:n})=>({state:{settings:{lastTrackedStoryId:null}},api:{closeSettings:()=>{let{settings:{lastTrackedStoryId:t}}=e.getState();t?n.selectStory(t):n.selectFirstStory()},changeSettingsTab:e=>{t(`/settings/${e}`)},isSettingsScreenActive:()=>{let{path:e}=n.getUrlState();return!!(e||``).match(/^\/settings/)},retrieveSelection(){let{settings:t}=e.getState();return t.lastTrackedStoryId},storeSelection:async()=>{let{storyId:t,settings:n}=e.getState();await e.setState({settings:{...n,lastTrackedStoryId:t}})}}}),SX={};XM(SX,{controlOrMetaKey:()=>OX,defaultShortcuts:()=>AX,init:()=>rCe,isMacLike:()=>DX,keys:()=>kX});var USe=ZM(Qxe(),1),{FORCE_REMOUNT:WSe,PREVIEW_KEYDOWN:GSe,STORIES_COLLAPSE_ALL:KSe,STORIES_EXPAND_ALL:qSe}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:CX}=__STORYBOOK_MODULE_GLOBAL__,{global:JSe}=__STORYBOOK_MODULE_GLOBAL__,{navigator:wX}=JSe,YSe=()=>wX&&wX.platform?!!wX.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,XSe=()=>YSe()?`⌥`:`alt`,ZSe=e=>{if([`Meta`,`Alt`,`Control`,`Shift`,`Tab`].includes(e.key))return null;let t=[];e.altKey&&t.push(`alt`),e.ctrlKey&&t.push(`control`),e.metaKey&&t.push(`meta`),e.shiftKey&&t.push(`shift`);let n=e.code?.toUpperCase(),r=n?n.startsWith(`KEY`)&&n.length===4?n.replace(`KEY`,``):n.startsWith(`DIGIT`)?n.replace(`DIGIT`,``):{MINUS:`-`,EQUAL:`=`,BRACKETLEFT:`[`,BRACKETRIGHT:`]`,BACKSLASH:`\\`,SEMICOLON:`;`,QUOTE:`'`,BACKQUOTE:"`",COMMA:`,`,PERIOD:`.`,SLASH:`/`}[n]:void 0;if(e.key&&e.key.length===1&&e.key!==` `){let n=e.key.toUpperCase(),i=r;i&&i.length===1&&i!==n?t.push([n,i]):t.push(n)}else e.key===`Dead`&&r&&t.push(r);return e.key===` `&&t.push(`space`),e.key===`Escape`&&t.push(`escape`),e.key===`ArrowRight`&&t.push(`ArrowRight`),e.key===`ArrowDown`&&t.push(`ArrowDown`),e.key===`ArrowUp`&&t.push(`ArrowUp`),e.key===`ArrowLeft`&&t.push(`ArrowLeft`),t.length>0?t:null},QSe=(e,t)=>!e||!t||(e.join(``).startsWith(`shift/`)&&e.shift(),e.length!==t.length)?!1:!e.find((e,n)=>Array.isArray(e)?!e.includes(t[n]):e!==t[n]),$Se=e=>e===`alt`?XSe():e===`control`?`⌃`:e===`meta`?`⌘`:e===`shift`?`⇧`:e===`Enter`||e===`Backspace`||e===`Esc`||e===`escape`?``:e===` `?`SPACE`:e===`ArrowUp`?`↑`:e===`ArrowDown`?`↓`:e===`ArrowLeft`?`←`:e===`ArrowRight`?`→`:e?.toUpperCase(),eCe=e=>e.map($Se).join(` `),tCe=e=>e.map(e=>e===`+`?`plus`:e===` `?`space`:e).join(`+`),{navigator:TX,document:EX}=CX,DX=()=>TX&&TX.platform?!!TX.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,OX=()=>DX()?`meta`:`control`;function kX(e){return Object.keys(e)}var AX=Object.freeze({fullScreen:[`alt`,`F`],togglePanel:[`alt`,`A`],panelPosition:[`alt`,`D`],toggleNav:[`alt`,`S`],toolbar:[`alt`,`T`],search:[OX(),`K`],focusNav:[`1`],focusIframe:[`2`],focusPanel:[`3`],prevComponent:[`alt`,`ArrowUp`],nextComponent:[`alt`,`ArrowDown`],prevStory:[`alt`,`ArrowLeft`],nextStory:[`alt`,`ArrowRight`],shortcutsPage:[OX(),`shift`,`,`],aboutPage:[OX(),`,`],escape:[`escape`],collapseAll:[OX(),`shift`,`ArrowUp`],expandAll:[OX(),`shift`,`ArrowDown`],remount:[`alt`,`R`],openInEditor:[`alt`,`shift`,`E`],openInIsolation:[`alt`,`shift`,`I`],copyStoryLink:[`alt`,`shift`,`L`],goToPreviousLandmark:[`shift`,`F6`],goToNextLandmark:[`F6`]}),jX={};function nCe(e){let t=e.target;return!!(/input|textarea/i.test(t.tagName)||t.getAttribute(`contenteditable`)!==null||t.closest(`dialog[open]`))}var rCe=({store:e,fullAPI:t,provider:n})=>{let r={getShortcutKeys(){return e.getState().shortcuts},getDefaultShortcuts(){return{...AX,...r.getAddonsShortcutDefaults()}},getAddonsShortcuts(){return jX},getAddonsShortcutLabels(){let e={};return Object.entries(r.getAddonsShortcuts()).forEach(([t,{label:n}])=>{e[t]=n}),e},getAddonsShortcutDefaults(){let e={};return Object.entries(r.getAddonsShortcuts()).forEach(([t,{defaultShortcut:n}])=>{e[t]=n}),e},async setShortcuts(t){let{shortcuts:n}=await e.setState(e=>({shortcuts:typeof t==`function`?t(e.shortcuts):t}),{persistence:`permanent`});return n},async restoreAllDefaultShortcuts(){return r.setShortcuts(r.getDefaultShortcuts())},async setShortcut(e,t){return await r.setShortcuts(n=>({...n,[e]:t})),t},async setAddonShortcut(e,t){return await r.setShortcuts(n=>({...n,[`${e}-${t.actionName}`]:t.defaultShortcut})),jX[`${e}-${t.actionName}`]=t,t},async restoreDefaultShortcut(e){let t=r.getDefaultShortcuts()[e];return r.setShortcut(e,t)},handleKeydownEvent(e){let t=ZSe(e),n=r.getShortcutKeys(),i=kX(n).find(e=>QSe(t,n[e]));i&&r.handleShortcutFeature(i,e)},handleShortcutFeature(n,r){let{ui:{enableShortcuts:i},storyId:a,refId:o,viewMode:s}=e.getState();if(i)switch(r?.preventDefault&&r.preventDefault(),n){case`escape`:t.getIsFullscreen()?t.toggleFullscreen(!1):t.getIsNavShown()&&t.toggleNav(!0);break;case`goToNextLandmark`:case`goToPreviousLandmark`:break;case`focusNav`:t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsNavShown()||t.toggleNav(!0),t.focusOnUIElement(fX.storyListMenu);break;case`search`:t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsNavShown()||t.toggleNav(!0),setTimeout(()=>{t.focusOnUIElement(fX.storySearchField,!0)},0);break;case`focusIframe`:{let e=EX.getElementById(`storybook-preview-iframe`);if(e)try{e.contentWindow.focus()}catch{}break}case`focusPanel`:t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsPanelShown()||t.togglePanel(!0),t.focusOnUIElement(fX.storyPanelRoot);break;case`nextStory`:t.jumpToStory(1);break;case`prevStory`:t.jumpToStory(-1);break;case`nextComponent`:t.jumpToComponent(1);break;case`prevComponent`:t.jumpToComponent(-1);break;case`fullScreen`:t.toggleFullscreen();break;case`togglePanel`:t.togglePanel();break;case`toggleNav`:t.toggleNav();break;case`toolbar`:t.toggleToolbar();break;case`panelPosition`:t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsPanelShown()||t.togglePanel(!0),t.togglePanelPosition();break;case`aboutPage`:t.navigate(`/settings/about`);break;case`shortcutsPage`:t.navigate(`/settings/shortcuts`);break;case`collapseAll`:t.emit(KSe);break;case`expandAll`:t.emit(qSe);break;case`remount`:t.emit(WSe,{storyId:a});break;case`openInEditor`:CX.CONFIG_TYPE===`DEVELOPMENT`&&t.openInEditor({file:t.getCurrentStoryData().importPath});break;case`openInIsolation`:if(a&&s===`story`){let{previewHref:e}=t.getStoryHrefs(a,{refId:o});window.open(e,`_blank`,`noopener,noreferrer`)}break;case`copyStoryLink`:if(a){let{managerHref:e}=t.getStoryHrefs(a,{refId:o});(0,USe.default)(e)}break;default:jX[n].action();break}}},{shortcuts:i=AX}=e.getState();return{api:r,state:{shortcuts:kX(AX).reduce((e,t)=>({...e,[t]:i[t]||AX[t]}),AX)},init:()=>{EX.addEventListener(`keydown`,e=>{nCe(e)||r.handleKeydownEvent(e)}),n.channel?.on(GSe,e=>{r.handleKeydownEvent(e.event)})}}},MX={};XM(MX,{init:()=>NCe});var{logger:iCe}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{CONFIG_ERROR:aCe,CURRENT_STORY_WAS_SET:oCe,DOCS_PREPARED:sCe,PRELOAD_ENTRIES:cCe,RESET_STORY_ARGS:lCe,SELECT_STORY:uCe,SET_CONFIG:dCe,SET_CURRENT_STORY:fCe,SET_FILTER:pCe,SET_INDEX:mCe,SET_STORIES:hCe,STORY_ARGS_UPDATED:gCe,STORY_CHANGED:_Ce,STORY_INDEX_INVALIDATED:vCe,STORY_MISSING:yCe,STORY_PREPARED:bCe,STORY_SPECIFIED:xCe,UPDATE_STORY_ARGS:SCe}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:CCe}=__STORYBOOK_MODULE_GLOBAL__;ZM($xe(),1);var wCe=class extends SJ{constructor(e){super({name:`StatusTypeIdMismatchError`,category:`CORE-SERVER`,code:16,message:`Status has typeId "${e.status.typeId}" but was added to store with typeId "${e.typeId}". Full status: ${JSON.stringify(e.status,null,2)}`}),this.data=e}},TCe={id:`storybook/status`,leader:!0,initialState:{}},NX={SELECT:`select`};function ECe({universalStatusStore:e,useUniversalStore:t,environment:n}){let r={getAll(){return e.getState()},set(t){e.setState(e=>{let n={...e};for(let e of t){let{storyId:t,typeId:r}=e;n[t]={...n[t]??{},[r]:e}}return n})},onAllStatusChange(t){return e.onStateChange((e,n)=>{t(e,n)})},onSelect(t){return e.subscribe(NX.SELECT,e=>{t(e.payload)})},selectStatuses:t=>{e.send({type:NX.SELECT,payload:t})},unset(t){if(!t){e.setState({});return}e.setState(e=>{let n={...e};for(let e of t)delete n[e];return n})},typeId:void 0},i=t=>({getAll:r.getAll,set(r){e.setState(e=>{let i={...e};for(let e of r){let{storyId:r}=e;if(e.typeId!==t)switch(n){case`server`:throw new wCe({status:e,typeId:t});case`manager`:throw new Tbe({status:e,typeId:t});case`preview`:default:throw new Dbe({status:e,typeId:t})}i[r]={...i[r]??{},[t]:e}}return i})},onAllStatusChange:r.onAllStatusChange,onSelect(n){return e.subscribe(NX.SELECT,e=>{e.payload.some(e=>e.typeId===t)&&n(e.payload)})},unset(n){e.setState(e=>{let r={...e};for(let e in r)if(r[e]?.[t]&&(!n||n?.includes(e))){let{[t]:n,...i}=r[e];r[e]=i}return r})},typeId:t});return t?{getStatusStoreByTypeId:i,fullStatusStore:r,universalStatusStore:e,useStatusStore:n=>t(e,n)[0]}:{getStatusStoreByTypeId:i,fullStatusStore:r,universalStatusStore:e}}var PX=(e,t)=>{let n=X.useRef(t?t(e.getState()):e.getState()),r=X.useCallback(r=>e.onStateChange((e,i)=>{if(!t){n.current=e,r();return}let a=t(e);!GN(a,t(i))&&(n.current=a,r())}),[e,t]),i=X.useCallback(()=>{let r=e.getState(),i=t?t(r):r;return GN(i,n.current)||(n.current=i),n.current},[e,t]);return[X.useSyncExternalStore(r,i),e.setState]},{fullStatusStore:FX,getStatusStoreByTypeId:DCe,useStatusStore:OCe,universalStatusStore:kCe}=ECe({universalStatusStore:Oq.create({...TCe,leader:globalThis.CONFIG_TYPE===`PRODUCTION`}),useUniversalStore:PX,environment:`manager`}),{fetch:ACe}=CCe,jCe=`./index.json`,MCe=[`enableShortcuts`,`theme`,`showRoots`];function IX(e){if(!e||typeof e==`string`)return e;let t={...e};return MCe.forEach(e=>{e in t&&delete t[e]}),t}var NCe=({fullAPI:e,store:t,navigate:n,provider:r,storyId:i,viewMode:a,docsOptions:o={}})=>{let s={storyId:cL,getData:(e,t)=>{let n=s.resolveStory(e,t);if(n?.type===`story`||n?.type===`docs`)return n},isPrepared:(e,t)=>{let n=s.getData(e,t);return n?n.type===`story`?n.prepared:!0:!1},resolveStory:(e,n)=>{let{refs:r,index:i}=t.getState();if(!(n&&!r[n]))return n?r?.[n]?.index?.[e]??void 0:i?i[e]:void 0},getCurrentStoryData:()=>{let{storyId:e,refId:n}=t.getState();return s.getData(e,n)},getIndex:()=>{let{internal_index:e}=t.getState();return e},getParameters:(e,t)=>{let{storyId:n,refId:r}=typeof e==`string`?{storyId:e,refId:void 0}:e,i=s.getData(n,r);if([`story`,`docs`].includes(i?.type)){let{parameters:e}=i;if(e)return t?e[t]:e}return null},getCurrentParameter:e=>{let{storyId:n,refId:r}=t.getState();return s.getParameters({storyId:n,refId:r},e)||void 0},jumpToComponent:e=>{let{filteredIndex:n,storyId:r,refs:i,refId:a}=t.getState();if(!s.getData(r,a))return;let o=a?i[a].filteredIndex||{}:n;if(!o)return;let c=s.findSiblingStoryId(r,o,e,!0);c&&s.selectStory(c,void 0,{ref:a})},jumpToStory:e=>{let{filteredIndex:n,storyId:r,refs:i,refId:a}=t.getState(),o=s.getData(r,a);if(!o)return;let c=o.refId?i[o.refId].filteredIndex:n;if(!c)return;let l=s.findSiblingStoryId(r,c,e,!1);l&&s.selectStory(l,void 0,{ref:a})},selectFirstStory:()=>{let{index:e}=t.getState();if(!e)return;let r=Object.keys(e).find(t=>e[t].type===`story`);if(r){s.selectStory(r);return}n(`/`)},selectStory:(e=void 0,r=void 0,i={})=>{let{ref:a}=i,{storyId:o,index:c,filteredIndex:l,refs:u,settings:d}=t.getState(),f=e=>e?.type===`docs`||e?.type===`story`?(t.setState({settings:{...d,lastTrackedStoryId:e.id}}),n(`/${e.type}/${e.refId?`${e.refId}_${e.id}`:e.id}`),!0):!1,p=o?.split(`--`,2)[0],m=a?u[a].index:c,h=a?u[a].filteredIndex:l;if(!(!m||!h))if(r)if(!e)f(m[cL(p,r)]);else{let t=a?`${a}_${cL(e,r)}`:cL(e,r);if(m[t])f(m[t]);else{let t=m[oL(e)];if(t?.type===`component`){let e=t.children.find(e=>m[e].name===r);f(e?m[e]:void 0)}}}else{let t=e?m[e]||m[oL(e)]:m[p];if(!t)throw Error(`Unknown id or title: '${e}'`);f(t)||f(s.findLeafEntry(h,t.id))}},findLeafEntry(e,t){let n=e[t];if(n.type===`docs`||n.type===`story`)return n;let r=n.children.find(t=>e[t])||n.children[0];return s.findLeafEntry(e,r)},findLeafStoryId(e,t){return s.findLeafEntry(e,t)?.id},findAllLeafStoryIds(e){let{index:n}=t.getState();if(!n)return[];let r=(e,t=[])=>{let i=n[e];return i&&(i.type===`story`&&t.push(i.id),`children`in i&&i.children?.forEach(e=>r(e,t))),t};return r(e,[])},findSiblingStoryId(e,t,n,r){if(r){let r=OSe(t),i=r.findIndex(t=>t.includes(e));return i===r.length-1&&n>0||i===0&&n<0?void 0:r[i+n]?r[i+n][0]:void 0}let i=kSe(t),a=i.indexOf(e);if(!(a===i.length-1&&n>0)&&!(a===0&&n<0))return i[a+n]},updateStoryArgs:(e,t)=>{let{id:n,refId:i}=e;r.channel?.emit(SCe,{storyId:n,updatedArgs:t,options:{target:i}})},resetStoryArgs:(e,t)=>{let{id:n,refId:i}=e;r.channel?.emit(lCe,{storyId:n,argNames:t,options:{target:i}})},fetchIndex:async()=>{try{let e=await ACe(jCe);if(e.status!==200)throw Error(await e.text());let t=await e.json();if(t.v<3){iCe.warn(`Skipping story index with version v${t.v}, awaiting SET_STORIES.`);return}await s.setIndex(t)}catch(e){await t.setState({indexError:e})}},setIndex:async e=>{let{filteredIndex:n,index:i,filters:a}=t.getState(),s=FX.getAll(),c=$Y(e,{provider:r,docsOptions:o,filters:a,allStatuses:s}),l=$Y(e,{provider:r,docsOptions:o,filters:{},allStatuses:s});await t.setState({internal_index:e,filteredIndex:eX(c,n),index:eX(l,i),indexError:void 0})},updateStory:async(n,r,i)=>{if(i){let{id:t,index:a,filteredIndex:o}=i;a&&a[n]&&(a[n]={...a[n],...r}),o&&o[n]&&(o[n]={...o[n],...r}),await e.updateRef(t,{index:a,filteredIndex:o})}else{let{index:e,filteredIndex:i}=t.getState();e&&e[n]&&(e[n]={...e[n],...r}),i&&i[n]&&(i[n]={...i[n],...r}),(e||i)&&await t.setState({index:e,filteredIndex:i})}},updateDocs:async(n,r,i)=>{if(i){let{id:t,index:a,filteredIndex:o}=i;a[n]={...a[n],...r},o[n]={...o[n],...r},await e.updateRef(t,{index:a,filteredIndex:o})}else{let{index:e,filteredIndex:i}=t.getState();e&&(e[n]={...e[n],...r}),i&&(i[n]={...i[n],...r}),(e||i)&&await t.setState({index:e,filteredIndex:i})}},setPreviewInitialized:async n=>{n?e.updateRef(n.id,{previewInitialized:!0}):t.setState({previewInitialized:!0})},experimental_setFilter:async(n,i)=>{await t.setState({filters:{...t.getState().filters,[n]:i}});let{internal_index:a}=t.getState();if(!a)return;await s.setIndex(a);let o=await e.getRefs();Object.entries(o).forEach(([t,{internal_index:n,...r}])=>{e.setRef(t,{...r,storyIndex:n},!0)}),r.channel?.emit(pCe,{id:n})}};return r.channel?.on(xCe,function({storyId:i,viewMode:a}){let{sourceType:o}=oX(this,e);if(o===`local`){let e=t.getState(),o=e.path===`/`||e.viewMode===`story`||e.viewMode===`docs`,s=e.viewMode&&e.storyId,c=e.viewMode!==a||e.storyId!==i,{type:l}=e.index?.[e.storyId]||{};o&&(s&&c&&!(l===`root`||l===`component`||l===`group`)?r.channel?.emit(fCe,{storyId:e.storyId,viewMode:e.viewMode}):c&&n(`/${a}/${i}`))}}),r.channel?.on(oCe,function(){let{ref:t}=oX(this,e);s.setPreviewInitialized(t)}),r.channel?.on(_Ce,function(){let{sourceType:t}=oX(this,e);if(t===`local`){let t=s.getCurrentParameter(`options`);t&&e.setOptions(IX(t))}}),r.channel?.on(bCe,function({id:n,...i}){let{ref:a,sourceType:o}=oX(this,e);if(s.updateStory(n,{...i,prepared:!0},a),!a&&!t.getState().hasCalledSetOptions){let{options:n}=i.parameters;e.setOptions(IX(n)),t.setState({hasCalledSetOptions:!0})}if(o===`local`){let{storyId:e,index:n,refId:i}=t.getState();if(!n)return;let a=Array.from(new Set([s.findSiblingStoryId(e,n,1,!0),s.findSiblingStoryId(e,n,-1,!0)])).filter(Boolean);r.channel?.emit(cCe,{ids:a,options:{target:i}})}}),r.channel?.on(sCe,function({id:t,...n}){let{ref:r}=oX(this,e);s.updateStory(t,{...n,prepared:!0},r)}),r.channel?.on(mCe,function(t){let{ref:n}=oX(this,e);if(n)e.setRef(n.id,{...n,storyIndex:t},!0);else{s.setIndex(t);let n=s.getCurrentParameter(`options`);e.setOptions(IX(n))}}),r.channel?.on(hCe,function(t){let{ref:n}=oX(this,e),r=t.v?CSe(t):t.stories;if(n)e.setRef(n.id,{...n,setStoriesData:r},!0);else throw Error(`Cannot call SET_STORIES for local frame`)}),r.channel?.on(uCe,function({kind:t,title:n=t,story:r,name:i=r,storyId:a,...o}){let{ref:s}=oX(this,e);s?e.selectStory(a||n,i,{...o,ref:s.id}):e.selectStory(a||n,i,o)}),r.channel?.on(gCe,function({storyId:t,args:n}){let{ref:r}=oX(this,e);s.updateStory(t,{args:n},r)}),r.channel?.on(aCe,function(t){let{ref:n}=oX(this,e);s.setPreviewInitialized(n)}),r.channel?.on(yCe,function(t){let{ref:n}=oX(this,e);s.setPreviewInitialized(n)}),r.channel?.on(dCe,()=>{let e=r.getConfig();e?.sidebar?.filters&&t.setState({filters:{...t.getState().filters,...e?.sidebar?.filters}})}),FX.onAllStatusChange(async()=>{let{internal_index:n}=t.getState();if(!n)return;await s.setIndex(n);let r=await e.getRefs();Object.entries(r).forEach(([t,{internal_index:n,...r}])=>{e.setRef(t,{...r,storyIndex:n},!0)})}),{api:s,state:{storyId:i,viewMode:a,hasCalledSetOptions:!1,previewInitialized:!1,filters:r.getConfig()?.sidebar?.filters||{}},init:async()=>{r.channel?.on(vCe,()=>s.fetchIndex()),await s.fetchIndex()}}},LX={};XM(LX,{init:()=>BCe});var{GLOBALS_UPDATED:PCe,NAVIGATE_URL:FCe,SET_CURRENT_STORY:ICe,STORY_ARGS_UPDATED:LCe,UPDATE_QUERY_PARAMS:RCe}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:RX}=__STORYBOOK_MODULE_GLOBAL__,zX=ZM(tN(),1),BX=e=>{if(e===`true`||e===`1`)return!0;if(e===`false`||e===`0`)return!1},VX=e=>Object.fromEntries(e.split(`;`).map(e=>e.split(`:`)).map(([e,t])=>[e,encodeURIComponent(t)]).filter(([e,t])=>e&&t)),HX=(e,t)=>{let n=VX(e),r=VX(t);return Object.entries({...n,...r}).map(([e,t])=>`${e}:${t}`).join(`;`)},UX,zCe=({state:{location:e,path:t,viewMode:n,storyId:r},singleStory:i})=>{let{full:a,panel:o,nav:s,shortcuts:c,addonPanel:l,tabs:u,path:d,...f}=LJ(e),p,m,h;BX(a)===!0?(p=0,m=0,h=0):BX(a)===!1&&(p=dX.layout.navSize,m=dX.layout.bottomPanelHeight,h=dX.layout.rightPanelWidth),i||(BX(s)===!0&&(p=dX.layout.navSize),BX(s)===!1&&(p=0)),BX(o)===!1&&(m=0,h=0);let g={navSize:p,bottomPanelHeight:m,rightPanelWidth:h,panelPosition:[`right`,`bottom`].includes(o)?o:void 0,showTabs:BX(u)},_={enableShortcuts:BX(c)},v=l||void 0,y=r,b=TJ(UX,f)?UX:f;return UX=b,{viewMode:n,layout:g,ui:_,selectedPanel:v,location:e,path:t,customQueryParams:b,storyId:y}},BCe=e=>{let{store:t,navigate:n,provider:r,fullAPI:i}=e,a=(e,t={},r={})=>n([e,...Object.entries(t).filter(([,e])=>e).sort(([e],[t])=>e<t?-1:1).map(([e,t])=>`${e}=${t}`)].join(`&`),r),o={getStoryHrefs(e,n={}){let{id:r,refId:a}=i.getCurrentStoryData()??{},o=e===r&&n.refId===a,{customQueryParams:s,location:c,refs:l}=t.getState(),{base:u,inheritArgs:d=o,inheritGlobals:f=!0,queryParams:p={},refId:m,viewMode:h=`story`}=n;if(m&&!l[m])throw Error(`Invalid refId: ${m}`);let g=c.pathname||`/`,_=RX.window.location.origin+g,v=RX.STORYBOOK_NETWORK_ADDRESS??_,y=u===`origin`?_:u===`network`?v:g,b=m?l[m].url+`/iframe.html`:RX.PREVIEW_URL||`${y.replace(/\/[^/]*$/,`/`)}iframe.html`,x=m?`&refId=${encodeURIComponent(m)}`:``,{args:S=``,globals:C=``,...w}=p,T=d?HX(s?.args??``,S):S,E=f?HX(s?.globals??``,C):C,D=(0,zX.stringify)(w,{nesting:!0,nestingSyntax:`js`}),O=(0,zX.stringify)(Ade(w,[`id`,`viewMode`]),{nesting:!0,nestingSyntax:`js`});return T&&=`&args=${T}`,E&&=`&globals=${E}`,D&&=`&${D}`,O&&=`&${O}`,{managerHref:`${y}?path=/${h}/${m?`${m}_`:``}${e}${T}${E}${D}`,previewHref:`${b}?id=${e}&viewMode=${h}${x}${T}${m?``:E}${O}`}},getQueryParam(e){let{customQueryParams:n}=t.getState();return n?n[e]:void 0},getUrlState(){let{location:e,path:n,customQueryParams:r,storyId:i,url:a,viewMode:o}=t.getState();return{path:n,hash:e.hash??``,queryParams:r,storyId:i,url:a,viewMode:o}},setQueryParams(e){let{customQueryParams:n}=t.getState(),i={},a={...n,...Object.entries(e).reduce((e,[t,n])=>(n!==null&&(e[t]=n),e),i)};TJ(n,a)||(t.setState({customQueryParams:a}),r.channel?.emit(RCe,a))},applyQueryParams(e,t){let{path:n,hash:r=``,queryParams:i}=o.getUrlState();a(`${n}${r}`,{...i,...e},t),o.setQueryParams(e)},navigateUrl(e,t){n(e,{plain:!0,...t})}},s=()=>{let{path:e,hash:t=``,queryParams:n,viewMode:r}=o.getUrlState();if(r!==`story`)return;let s=i.getCurrentStoryData();if(s?.type!==`story`)return;let{args:c,initialArgs:l}=s,u=IJ(l,c);a(`${e}${t}`,{...n,args:u},{replace:!0}),o.setQueryParams({args:u})};r.channel?.on(ICe,()=>s());let c;return r.channel?.on(LCe,()=>{`requestIdleCallback`in RX.window?(c&&RX.window.cancelIdleCallback(c),c=RX.window.requestIdleCallback(s,{timeout:1e3})):(c&&clearTimeout(c),setTimeout(s,100))}),r.channel?.on(PCe,({userGlobals:e,initialGlobals:t})=>{let{path:n,hash:r=``,queryParams:i}=o.getUrlState(),s=IJ(t,zY(t,e));a(`${n}${r}`,{...i,globals:s},{replace:!0}),o.setQueryParams({globals:s})}),r.channel?.on(FCe,(e,t)=>{o.navigateUrl(e,t)}),{api:o,state:zCe(e)}},WX={};XM(WX,{init:()=>GCe});var VCe=ZM(KN(),1),{global:GX}=__STORYBOOK_MODULE_GLOBAL__,HCe=`10.2.8`,{VERSIONCHECK:UCe}=GX,KX=(0,VCe.default)(1)(()=>{try{return{...JSON.parse(UCe).data||{}}}catch{return{}}}),WCe=e=>e.includes(`vue`)?`vue`:e,GCe=({store:e})=>{let{dismissedVersionNotification:t}=e.getState(),n={versions:{current:{version:HCe},...KX()},dismissedVersionNotification:t},r={getCurrentVersion:()=>{let{versions:{current:t}}=e.getState();return t},getLatestVersion:()=>{let{versions:{latest:t,next:n,current:r}}=e.getState();return r&&LY.default.prerelease(r.version)&&n?t&&LY.default.gt(t.version,n.version)?t:n:t},getDocsUrl:({asset:t,subpath:n=t,versioned:r,renderer:i,ref:a=`ui`})=>{let{versions:o}=e.getState(),s=o.latest?.version,c=o.current?.version,l=c?.startsWith(`0.0.0`)&&s||c,u=`https://storybook.js.org/${t?`docs-assets`:`docs`}/`;if(t&&l)u+=`${LY.default.major(l)}.${LY.default.minor(l)}/`;else if(r&&l&&s){let e=LY.default.diff(s,l);e===`patch`||e===null||(u+=`${LY.default.major(l)}.${LY.default.minor(l)}/`)}let[d,f]=n?.split(`#`)||[];if(d&&(u+=t?d:`${d}/`),i&&typeof GX.STORYBOOK_RENDERER<`u`){let e=GX.STORYBOOK_RENDERER;e&&(u+=`?renderer=${WCe(e)}`)}return a&&(u+=`${u.includes(`?`)?`&`:`?`}ref=${a}`),f&&(u+=`#${f}`),u},versionUpdateAvailable:()=>{let e=r.getLatestVersion(),t=r.getCurrentVersion();if(e){if(!e.version||!t.version)return!0;let n=LY.default.prerelease(t.version)?`${LY.default.major(t.version)}.${LY.default.minor(t.version)}.${LY.default.patch(t.version)}`:t.version,r=LY.default.diff(n,e.version);return LY.default.gt(e.version,n)&&r!==`patch`&&!r.includes(`pre`)}return!1}};return{init:async()=>{let{versions:t={}}=e.getState(),{latest:n,next:r}=KX();await e.setState({versions:{...t,latest:n,next:r}})},state:n,api:r}},qX={};XM(qX,{init:()=>QCe});var{REQUEST_WHATS_NEW_DATA:KCe,RESULT_WHATS_NEW_DATA:qCe,SET_WHATS_NEW_CACHE:JCe,TOGGLE_WHATS_NEW_NOTIFICATIONS:YCe}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:XCe}=__STORYBOOK_MODULE_GLOBAL__,JX=`whats-new`,ZCe=({color:e=`currentColor`,size:t=14})=>X.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},X.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M2.042.616a.704.704 0 00-.66.729L1.816 12.9c.014.367.306.66.672.677l9.395.422h.032a.704.704 0 00.704-.703V.704c0-.015 0-.03-.002-.044a.704.704 0 00-.746-.659l-.773.049.057 1.615a.105.105 0 01-.17.086l-.52-.41-.617.468a.105.105 0 01-.168-.088L9.746.134 2.042.616zm8.003 4.747c-.247.192-2.092.324-2.092.05.04-1.045-.429-1.091-.689-1.091-.247 0-.662.075-.662.634 0 .57.607.893 1.32 1.27 1.014.538 2.24 1.188 2.24 2.823 0 1.568-1.273 2.433-2.898 2.433-1.676 0-3.141-.678-2.976-3.03.065-.275 2.197-.21 2.197 0-.026.971.195 1.256.753 1.256.43 0 .624-.236.624-.634 0-.602-.633-.958-1.361-1.367-.987-.554-2.148-1.205-2.148-2.7 0-1.494 1.027-2.489 2.86-2.489 1.832 0 2.832.98 2.832 2.845z`,fill:e})),QCe=({fullAPI:e,store:t,provider:n})=>{let r={whatsNewData:void 0};function i(e){t.setState({whatsNewData:e}),r.whatsNewData=e}let a={isWhatsNewUnread(){return r.whatsNewData?.status===`SUCCESS`&&!r.whatsNewData.postIsRead},whatsNewHasBeenRead(){r.whatsNewData?.status===`SUCCESS`&&(s({lastReadPost:r.whatsNewData.url}),i({...r.whatsNewData,postIsRead:!0}),e.clearNotification(JX))},toggleWhatsNewNotifications(){r.whatsNewData?.status===`SUCCESS`&&(i({...r.whatsNewData,disableWhatsNewNotifications:!r.whatsNewData.disableWhatsNewNotifications}),n.channel?.emit(YCe,{disableWhatsNewNotifications:r.whatsNewData.disableWhatsNewNotifications}))}};function o(){return n.channel?.emit(KCe),new Promise(e=>n.channel?.once(qCe,({data:t})=>e(t)))}function s(e){n.channel?.emit(JCe,e)}return{init:async()=>{if(XCe.CONFIG_TYPE!==`DEVELOPMENT`)return;let t=await o();i(t);let n=e.getUrlState();!(n?.path===`/onboarding`||n.queryParams?.onboarding===`true`)&&t.status===`SUCCESS`&&!t.disableWhatsNewNotifications&&t.showNotification&&e.addNotification({id:JX,link:`/settings/whats-new`,content:{headline:t.title,subHeadline:`Learn what's new in Storybook`},icon:X.createElement(ZCe,null),onClear({dismissed:e}){e&&s({lastDismissedPost:t.url})}})},state:r,api:a}},YX=ZM(eSe(),1);(e=>{e.fn(`set`,function(t,n){return e.set(this._area,this._in(t),xbe(n,{maxDepth:50}))}),e.fn(`get`,function(t,n){let r=e.get(this._area,this._in(t));return r===null?n||r:Cbe(r)})})(YX.default._);var XX=`@storybook/manager/store`;function ZX(e){return e.get(XX)||{}}function $Ce(e,t){return e.set(XX,t)}function ewe(e,t){return $Ce(e,{...ZX(e),...t})}var twe=class{constructor({setState:e,getState:t}){this.upstreamSetState=e,this.upstreamGetState=t}getInitialState(e){return{...e,...ZX(YX.default.local),...ZX(YX.default.session)}}getState(){return this.upstreamGetState()}async setState(e,t,n){let r,i;typeof t==`function`?(r=t,i=n):i=t;let{persistence:a=`none`}=i||{},o={},s={};typeof e==`function`?o=t=>(s=e(t),s):(o=e,s=o);let c=await new Promise(e=>{this.upstreamSetState(o,()=>{e(this.getState())})});return a!==`none`&&await ewe(a===`session`?YX.default.session:YX.default.local,s),r&&r(c),c}},{ActiveTabs:nwe}=sX,QX=sSe({api:void 0,state:BY({})}),rwe=(...e)=>cSe({},...e),iwe=class extends X.Component{constructor(e){super(e),this.api={},this.initModules=()=>{this.modules.forEach(e=>{`init`in e&&e.init()})};let{location:t,path:n,refId:r,viewMode:i=e.docsOptions.docsMode?`docs`:e.viewMode,singleStory:a,storyId:o,docsOptions:s,navigate:c}=e,l=new twe({getState:()=>this.state,setState:(e,t)=>(this.setState(e,()=>t(this.state)),this.state)}),u={location:t,path:n,viewMode:i,singleStory:a,storyId:o,refId:r},d={docsOptions:s};this.state=l.getInitialState(BY({...u,...d}));let f={navigate:c,store:l,provider:e.provider};this.modules=[bX,qY,WY,sX,_X,xX,SX,MX,XY,JY,LX,WX,qX,vX].map(e=>e.init({...u,...d,...f,state:this.state,fullAPI:this.api}));let p=BY(this.state,...this.modules.map(e=>e.state)),m=Object.assign(this.api,{navigate:c},...this.modules.map(e=>e.api));this.state=p,this.api=m}static getDerivedStateFromProps(e,t){return t.path===e.path?null:{...t,location:e.location,path:e.path,refId:e.refId,viewMode:e.viewMode,storyId:e.storyId}}shouldComponentUpdate(e,t){let n=this.props,r=this.state;return n.path!==e.path||!GN(r,t)}render(){let{children:e}=this.props,t={state:this.state,api:this.api};return X.createElement(awe,{effect:this.initModules},X.createElement(QX.Provider,{value:t},X.createElement(swe,null,e)))}};iwe.displayName=`Manager`;var awe=({children:e,effect:t})=>(X.useEffect(t,[]),e),owe=e=>e;function swe({filter:e=owe,children:t}){let n=(0,X.useContext)(QX),r=(0,X.useRef)(t),i=(0,X.useRef)(e);if(typeof r.current!=`function`)return X.createElement(X.Fragment,null,r.current);let a=i.current(n);return(0,X.useMemo)(()=>{let e=r.current;return X.createElement(e,{...a})},(0,X.useMemo)(()=>[...Object.entries(a).reduce((e,t)=>e.concat(t),[])],[n.state]))}globalThis.STORYBOOK_ADDON_STATE={};var{STORYBOOK_ADDON_STATE:cwe}=globalThis,{Channel:lwe}=__STORYBOOK_MODULE_CHANNELS__,uwe={id:`storybook/test-provider`,leader:!0,initialState:{}};function dwe({universalTestProviderStore:e,useUniversalStore:t}){let n={settingsChanged:()=>{e.untilReady().then(()=>{e.send({type:`settings-changed`})})},onRunAll:t=>e.subscribe(`run-all`,t),onClearAll:t=>e.subscribe(`clear-all`,t)},r={...n,getFullState:e.getState,setFullState:e.setState,onSettingsChanged:t=>e.subscribe(`settings-changed`,t),runAll:async()=>{await e.untilReady(),e.send({type:`run-all`})},clearAll:async()=>{await e.untilReady(),e.send({type:`clear-all`})}},i=t=>{let r=()=>e.getState()[t]??`test-provider-state:pending`,i=n=>{e.untilReady().then(()=>{e.setState(e=>({...e,[t]:n}))})};return{...n,testProviderId:t,getState:r,setState:i,runWithState:async e=>{i(`test-provider-state:running`);try{await e(),i(`test-provider-state:succeeded`)}catch{i(`test-provider-state:crashed`)}}}};return t?{getTestProviderStoreById:i,fullTestProviderStore:r,universalTestProviderStore:e,useTestProviderStore:n=>t(e,n)[0]}:{getTestProviderStoreById:i,fullTestProviderStore:r,universalTestProviderStore:e}}var{fullTestProviderStore:fwe,getTestProviderStoreById:pwe,useTestProviderStore:mwe,universalTestProviderStore:hwe}=dwe({universalTestProviderStore:Oq.create({...uwe,leader:globalThis.CONFIG_TYPE===`PRODUCTION`}),useUniversalStore:PX});Oq.create({id:`storybook/checklist`,initialState:{items:{accessibilityTests:{status:`open`},autodocs:{status:`open`},ciTests:{status:`open`},controls:{status:`open`},coverage:{status:`open`},guidedTour:{status:`open`},installA11y:{status:`open`},installChromatic:{status:`open`},installDocs:{status:`open`},installVitest:{status:`open`},mdxDocs:{status:`open`},moreComponents:{status:`open`},moreStories:{status:`open`},onboardingSurvey:{status:`open`},organizeStories:{status:`open`},publishStorybook:{status:`open`},renderComponent:{status:`open`},runTests:{status:`open`},viewports:{status:`open`},visualTests:{status:`open`},whatsNewStorybook10:{status:`open`},writeInteractions:{status:`open`}},widget:{}},leader:globalThis.CONFIG_TYPE===`PRODUCTION`});var gwe=c((e=>{var t=lL();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),_we=c(((e,t)=>{t.exports=gwe()})),vwe=l({A:()=>aZ,ActionList:()=>m4,Bar:()=>j6,Blockquote:()=>oZ,Button:()=>c4,Code:()=>uZ,DL:()=>dZ,Div:()=>fZ,EmptyTabContent:()=>I6,ErrorFormatter:()=>R4,FlexBar:()=>N6,Form:()=>X4,H1:()=>pZ,H2:()=>mZ,H3:()=>hZ,H4:()=>gZ,H5:()=>_Z,H6:()=>vZ,HR:()=>yZ,IconButton:()=>l4,Img:()=>bZ,LI:()=>xZ,Link:()=>AZ,ListItem:()=>O6,Loader:()=>u8,OL:()=>SZ,P:()=>CZ,Popover:()=>Z4,PopoverProvider:()=>T6,Pre:()=>wZ,ResetWrapper:()=>iZ,ScrollArea:()=>gq,Select:()=>s3,Separator:()=>H6,Span:()=>TZ,SyntaxHighlighter:()=>lZ,TT:()=>EZ,TabBar:()=>R6,TabButton:()=>F6,TabList:()=>Q6,TabPanel:()=>$6,TabWrapper:()=>z6,Table:()=>DZ,Tabs:()=>B6,TabsState:()=>V6,TabsView:()=>i8,ToggleButton:()=>u4,Toolbar:()=>U6,Tooltip:()=>E6,TooltipLinkList:()=>k6,TooltipNote:()=>IZ,TooltipProvider:()=>o4,UL:()=>OZ,Zoom:()=>I4,codeCommon:()=>tZ,components:()=>d8,convertToReactAriaPlacement:()=>a4,createCopyToClipboardFunction:()=>yq,nameSpaceClassNames:()=>$X,resetComponents:()=>f8,useTabsState:()=>r8,withReset:()=>nZ},1),ywe=_we(),$X=({...e},t)=>{let n=[e.class,e.className];return delete e.class,e.className=[`sbdocs`,`sbdocs-${t}`,...n].filter(Boolean).join(` `),e},eZ=({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`}}),tZ=({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 hsl(0 0 0 / 0.05)`:`1px solid hsl(0 0 100 / 0.05)`,color:e.color.defaultText,backgroundColor:e.base===`light`?`hsl(0 0 0 / 0.01)`:`hsl(0 0 100 / 0.02)`}),nZ=({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`}),rZ={margin:`16px 0`},iZ=$.div(nZ),aZ=$(({href:e=``,...t})=>{let n=/^\//.test(e)?`./?path=${e}`:e,r=/^#.*/.test(e)?`_self`:`_top`;return X.createElement(`a`,{href:n,target:r,...t})})(nZ,({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}})),oZ=$.blockquote(nZ,rZ,({theme:e})=>({borderLeft:`4px solid ${e.color.medium}`,padding:`0 15px`,color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}})),sZ=[],cZ=null,bwe=(0,X.lazy)(async()=>{let{SyntaxHighlighter:t}=await e(async()=>{let{SyntaxHighlighter:e}=await import(`./syntaxhighlighter-ED5Y7EFY-BVvnbVFn.js`);return{SyntaxHighlighter:e}},[],import.meta.url);return sZ.length>0&&(sZ.forEach(e=>{t.registerLanguage(...e)}),sZ=[]),cZ===null&&(cZ=t),{default:e=>X.createElement(t,{...e})}}),xwe=(0,X.lazy)(async()=>{let[{SyntaxHighlighter:t},{formatter:n}]=await Promise.all([e(()=>import(`./syntaxhighlighter-ED5Y7EFY-BVvnbVFn.js`),[],import.meta.url),e(()=>import(`./formatter-EIJCOSYU-B74txlwF.js`),[],import.meta.url)]);return sZ.length>0&&(sZ.forEach(e=>{t.registerLanguage(...e)}),sZ=[]),cZ===null&&(cZ=t),{default:e=>X.createElement(t,{...e,formatter:n})}}),lZ=e=>X.createElement(X.Suspense,{fallback:X.createElement(`div`,null)},e.format===!1?X.createElement(bwe,{...e}):X.createElement(xwe,{...e}));lZ.registerLanguage=(...e)=>{if(cZ!==null){cZ.registerLanguage(...e);return}sZ.push(e)};var Swe=e=>typeof e==`string`,Cwe=/[\n\r]/g,wwe=$.code(({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:`antialiased`,MozOsxFontSmoothing:`grayscale`,display:`inline-block`,paddingLeft:2,paddingRight:2,verticalAlign:`baseline`,color:`inherit`}),tZ),Twe=$(lZ)(({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`}})),uZ=({className:e,children:t,...n})=>{let r=(e||``).match(/lang-(\S+)/),i=X.Children.toArray(t);return i.filter(Swe).some(e=>e.match(Cwe))?X.createElement(Twe,{bordered:!0,copyable:!0,language:r?.[1]??`text`,format:!1,...n},t):X.createElement(wwe,{...n,className:e},i)},dZ=$.dl(nZ,rZ,{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}}),fZ=$.div(nZ),pZ=$.h1(nZ,eZ,({theme:e})=>({fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold})),mZ=$.h2(nZ,eZ,({theme:e})=>({fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`})),hZ=$.h3(nZ,eZ,({theme:e})=>({fontSize:`${e.typography.size.m1}px`})),gZ=$.h4(nZ,eZ,({theme:e})=>({fontSize:`${e.typography.size.s3}px`})),_Z=$.h5(nZ,eZ,({theme:e})=>({fontSize:`${e.typography.size.s2}px`})),vZ=$.h6(nZ,eZ,({theme:e})=>({fontSize:`${e.typography.size.s2}px`,color:e.color.dark})),yZ=$.hr(({theme:e})=>({border:`0 none`,borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0})),bZ=$.img({maxWidth:`100%`}),xZ=$.li(nZ,({theme:e})=>({fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:`24px`,"& + li":{marginTop:`.25em`},"& ul, & ol":{marginTop:`.25em`,marginBottom:0},"& code":tZ({theme:e})})),SZ=$.ol(nZ,rZ,{paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},{listStyle:`decimal`}),CZ=$.p(nZ,rZ,({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:`24px`,color:e.color.defaultText,"& code":tZ({theme:e})})),wZ=$.pre(nZ,rZ,({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`}})),TZ=$.span(nZ,({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`}}})),EZ=$.title(tZ),DZ=$.table(nZ,rZ,({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}})),OZ=$.ul(nZ,rZ,{paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},{listStyle:`disc`}),kZ={h1:e=>X.createElement(pZ,{...$X(e,`h1`)}),h2:e=>X.createElement(mZ,{...$X(e,`h2`)}),h3:e=>X.createElement(hZ,{...$X(e,`h3`)}),h4:e=>X.createElement(gZ,{...$X(e,`h4`)}),h5:e=>X.createElement(_Z,{...$X(e,`h5`)}),h6:e=>X.createElement(vZ,{...$X(e,`h6`)}),pre:e=>X.createElement(wZ,{...$X(e,`pre`)}),a:e=>X.createElement(aZ,{...$X(e,`a`)}),hr:e=>X.createElement(yZ,{...$X(e,`hr`)}),dl:e=>X.createElement(dZ,{...$X(e,`dl`)}),blockquote:e=>X.createElement(oZ,{...$X(e,`blockquote`)}),table:e=>X.createElement(DZ,{...$X(e,`table`)}),img:e=>X.createElement(bZ,{...$X(e,`img`)}),div:e=>X.createElement(fZ,{...$X(e,`div`)}),span:e=>X.createElement(TZ,{...$X(e,`span`)}),li:e=>X.createElement(xZ,{...$X(e,`li`)}),ul:e=>X.createElement(OZ,{...$X(e,`ul`)}),ol:e=>X.createElement(SZ,{...$X(e,`ol`)}),p:e=>X.createElement(CZ,{...$X(e,`p`)}),code:e=>X.createElement(uZ,{...$X(e,`code`)}),tt:e=>X.createElement(EZ,{...$X(e,`tt`)}),resetwrapper:e=>X.createElement(iZ,{...$X(e,`resetwrapper`)})};$.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.fgColor.critical,background:e.bgColor.critical,boxShadow:`inset 0 0 0 1px ${e.borderColor.critical}`};case`negative`:return{color:e.fgColor.negative,background:e.bgColor.negative,boxShadow:`inset 0 0 0 1px ${e.borderColor.negative}`};case`warning`:return{color:e.fgColor.warning,background:e.bgColor.warning,boxShadow:`inset 0 0 0 1px ${e.borderColor.warning}`};case`neutral`:return{color:e.fgColor.muted,background:e.base===`dark`?e.barBg:e.background.app,boxShadow:`inset 0 0 0 1px ${JH(.8,e.textMutedColor)}`};case`positive`:return{color:e.fgColor.positive,background:e.bgColor.positive,boxShadow:`inset 0 0 0 1px ${e.borderColor.positive}`};case`active`:return{color:e.base===`light`?NH(.1,e.color.secondary):e.color.secondary,background:e.background.hoverable,boxShadow:`inset 0 0 0 1px ${JH(.9,e.color.secondary)}`};default:return{}}});var Ewe=0,Dwe=e=>e.button===Ewe&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey,Owe=(e,t)=>{Dwe(e)&&(e.preventDefault(),t(e))},kwe=$.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}}:{}),Awe=$.a(({theme:e})=>({display:`inline-block`,transition:`all 150ms ease-out`,textDecoration:`none`,color:e.color.secondary,"&:hover, &:focus":{cursor:`pointer`,color:NH(.07,e.color.secondary),"svg path:not([fill])":{fill:NH(.07,e.color.secondary)}},"&:active":{color:NH(.1,e.color.secondary),"svg path:not([fill])":{fill:NH(.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 r;return t&&(r=[e.textMutedColor,e.color.secondary,e.color.secondary]),n&&(r=[e.color.dark,e.color.secondary,e.color.secondary]),r?{color:r[0],"svg path:not([fill])":{fill:r[0]},"&:hover":{color:r[1],"svg path:not([fill])":{fill:r[1]}},"&:active":{color:r[2],"svg path:not([fill])":{fill:r[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`}:{}),AZ=(0,X.forwardRef)(({cancel:e=!0,children:t,onClick:n=void 0,withArrow:r=!1,containsIcon:i=!1,className:a=void 0,style:o=void 0,isButton:s=!1,...c},l)=>X.createElement(Awe,{...c,ref:l,isButton:s,role:s?`button`:void 0,onClick:n&&e?e=>Owe(e,n):n,className:a},X.createElement(kwe,{withArrow:r,containsIcon:i},t,r&&X.createElement(Cq,null))));AZ.displayName=`Link`,$.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{deprecate:jZ}=__STORYBOOK_MODULE_CLIENT_LOGGER__;function MZ(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function jwe(...e){return t=>{let n=!1,r=e.map(e=>{let r=MZ(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():MZ(e[t],null)}}}}var Mwe=Symbol.for(`react.lazy`),NZ=X.use;function Nwe(e){return typeof e==`object`&&!!e&&`then`in e}function PZ(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===Mwe&&`_payload`in e&&Nwe(e._payload)}function Pwe(e){let t=Iwe(e),n=X.forwardRef((e,n)=>{let{children:r,...i}=e;PZ(r)&&typeof NZ==`function`&&(r=NZ(r._payload));let a=X.Children.toArray(r),o=a.find(Rwe);if(o){let e=o.props.children,r=a.map(t=>t===o?X.Children.count(e)>1?X.Children.only(null):X.isValidElement(e)?e.props.children:null:t);return(0,lK.jsx)(t,{...i,ref:n,children:X.isValidElement(e)?X.cloneElement(e,void 0,r):null})}return(0,lK.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}var Fwe=Pwe(`Slot`);function Iwe(e){let t=X.forwardRef((e,t)=>{let{children:n,...r}=e;if(PZ(n)&&typeof NZ==`function`&&(n=NZ(n._payload)),X.isValidElement(n)){let e=Bwe(n),i=zwe(r,n.props);return n.type!==X.Fragment&&(i.ref=t?jwe(t,e):e),X.cloneElement(n,i)}return X.Children.count(n)>1?X.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var FZ=Symbol(`radix.slottable`);function Lwe(e){let t=({children:e})=>(0,lK.jsx)(lK.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=FZ,t}Lwe(`Slottable`);function Rwe(e){return X.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===FZ}function zwe(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function Bwe(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)}var Vwe=$.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)`})),IZ=({note:e,...t})=>X.createElement(Vwe,{...t},e),{deprecate:Hwe}=__STORYBOOK_MODULE_CLIENT_LOGGER__,LZ=typeof document<`u`?X.useLayoutEffect:()=>{};function Uwe(e){let[t,n]=(0,X.useState)(e),r=(0,X.useRef)(t),i=(0,X.useRef)(null),a=(0,X.useRef)(()=>{if(!i.current)return;let e=i.current.next();if(e.done){i.current=null;return}r.current===e.value?a.current():n(e.value)});return LZ(()=>{r.current=t,i.current&&a.current()}),[t,(0,X.useCallback)(e=>{i.current=e(r.current),a.current()},[a])]}var RZ={prefix:String(Math.round(Math.random()*1e10)),current:0},zZ=X.createContext(RZ),Wwe=X.createContext(!1);typeof window<`u`&&window.document&&window.document.createElement;var BZ=new WeakMap;function Gwe(e=!1){let t=(0,X.useContext)(zZ),n=(0,X.useRef)(null);if(n.current===null&&!e){var r,i;let e=(i=X.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)==null||(r=i.ReactCurrentOwner)==null?void 0:r.current;if(e){let n=BZ.get(e);n==null?BZ.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,BZ.delete(e))}n.current=++t.current}return n.current}function Kwe(e){let t=(0,X.useContext)(zZ),n=Gwe(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function qwe(e){let t=X.useId(),[n]=(0,X.useState)(VZ()),r=n?`react-aria`:`react-aria${RZ.prefix}`;return e||`${r}-${t}`}var Jwe=typeof X.useId==`function`?qwe:Kwe;function Ywe(){return!1}function Xwe(){return!0}function Zwe(e){return()=>{}}function VZ(){return typeof X.useSyncExternalStore==`function`?X.useSyncExternalStore(Zwe,Ywe,Xwe):(0,X.useContext)(Wwe)}var Qwe=!!(typeof window<`u`&&window.document&&window.document.createElement),HZ=new Map,UZ;typeof FinalizationRegistry<`u`&&(UZ=new FinalizationRegistry(e=>{HZ.delete(e)}));function WZ(e){let[t,n]=(0,X.useState)(e),r=(0,X.useRef)(null),i=Jwe(t),a=(0,X.useRef)(null);if(UZ&&UZ.register(a,i),Qwe){let e=HZ.get(i);e&&!e.includes(r)?e.push(r):HZ.set(i,[r])}return LZ(()=>{let e=i;return()=>{UZ&&UZ.unregister(a),HZ.delete(e)}},[i]),(0,X.useEffect)(()=>{let e=r.current;return e&&n(e),()=>{e&&(r.current=null)}}),i}function $we(e,t){if(e===t)return e;let n=HZ.get(e);if(n)return n.forEach(e=>e.current=t),t;let r=HZ.get(t);return r?(r.forEach(t=>t.current=e),e):t}function GZ(e=[]){let t=WZ(),[n,r]=Uwe(t),i=(0,X.useCallback)(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return LZ(i,[t,i,...e]),n}function KZ(...e){return(...t)=>{for(let n of e)typeof n==`function`&&n(...t)}}var qZ=e=>e?.ownerDocument??document,JZ=e=>e&&`window`in e&&e.window===e?e:qZ(e).defaultView||window;function eTe(e){return typeof e==`object`&&!!e&&`nodeType`in e&&typeof e.nodeType==`number`}function tTe(e){return eTe(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&`host`in e}var nTe=!1;function YZ(){return nTe}function XZ(e,t){if(!YZ())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n=n.tagName===`SLOT`&&n.assignedSlot?n.assignedSlot.parentNode:tTe(n)?n.host:n.parentNode}return!1}var ZZ=(e=document)=>{var t;if(!YZ())return e.activeElement;let n=e.activeElement;for(;n&&`shadowRoot`in n&&(t=n.shadowRoot)!=null&&t.activeElement;)n=n.shadowRoot.activeElement;return n};function QZ(e){return YZ()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}var rTe=class{get currentNode(){return this._currentNode}set currentNode(e){if(!XZ(this.root,e))throw Error(`Cannot set currentNode to a node that is not contained by the root node.`);let t=[],n=e,r=e;for(this._currentNode=e;n&&n!==this.root;)if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let e=n,i=this._doc.createTreeWalker(e,this.whatToShow,{acceptNode:this._acceptNode});t.push(i),i.currentNode=r,this._currentSetFor.add(i),n=r=e.host}else n=n.parentNode;let i=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});t.push(i),i.currentNode=r,this._currentSetFor.add(i),this._walkerStack=t}get doc(){return this._doc}firstChild(){let e=this.currentNode,t=this.nextNode();return XZ(e,t)?(t&&(this.currentNode=t),t):(this.currentNode=e,null)}lastChild(){let e=this._walkerStack[0].lastChild();return e&&(this.currentNode=e),e}nextNode(){let e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){var t;let n;if(typeof this.filter==`function`?n=this.filter(e):(t=this.filter)!=null&&t.acceptNode&&(n=this.filter.acceptNode(e)),n===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let r=this.nextNode();return r&&(this.currentNode=r),r}return e&&(this.currentNode=e),e}else if(this._walkerStack.length>1){this._walkerStack.shift();let e=this.nextNode();return e&&(this.currentNode=e),e}else return null}previousNode(){let e=this._walkerStack[0];if(e.currentNode===e.root){if(this._currentSetFor.has(e))if(this._currentSetFor.delete(e),this._walkerStack.length>1){this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}else return null;return null}let t=e.previousNode();if(t){if(t.shadowRoot){var n;let e;if(typeof this.filter==`function`?e=this.filter(t):(n=this.filter)!=null&&n.acceptNode&&(e=this.filter.acceptNode(t)),e===NodeFilter.FILTER_ACCEPT)return t&&(this.currentNode=t),t;let r=this.lastChild();return r&&(this.currentNode=r),r}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(e,t,n,r){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=e=>{if(e.nodeType===Node.ELEMENT_NODE){let n=e.shadowRoot;if(n){let e=this._doc.createTreeWalker(n,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(e),NodeFilter.FILTER_ACCEPT}else{var t;if(typeof this.filter==`function`)return this.filter(e);if((t=this.filter)!=null&&t.acceptNode)return this.filter.acceptNode(e);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=t,this.filter=r??null,this.whatToShow=n??NodeFilter.SHOW_ALL,this._currentNode=t,this._walkerStack.unshift(e.createTreeWalker(t,n,this._acceptNode));let i=t.shadowRoot;if(i){let e=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(e)}}};function iTe(e,t,n,r){return YZ()?new rTe(e,t,n,r):e.createTreeWalker(t,n,r)}function $Z(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=$Z(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function aTe(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=$Z(e))&&(r&&(r+=` `),r+=t);return r}var oTe=aTe;function eQ(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e],i=r[e];typeof n==`function`&&typeof i==`function`&&e[0]===`o`&&e[1]===`n`&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=KZ(n,i):(e===`className`||e===`UNSAFE_className`)&&typeof n==`string`&&typeof i==`string`?t[e]=oTe(n,i):e===`id`&&n&&i?t.id=$we(n,i):t[e]=i===void 0?n:i}}return t}function tQ(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1,r=e.map(e=>{let r=nQ(e,t);return n||=typeof r==`function`,r});if(n)return()=>{r.forEach((t,n)=>{typeof t==`function`?t():nQ(e[n],null)})}}}function nQ(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}var sTe=new Set([`id`]),cTe=new Set([`aria-label`,`aria-labelledby`,`aria-describedby`,`aria-details`]),lTe=new Set([`href`,`hrefLang`,`target`,`rel`,`download`,`ping`,`referrerPolicy`]),uTe=new Set([`dir`,`lang`,`hidden`,`inert`,`translate`]),rQ=new Set(`onClick.onAuxClick.onContextMenu.onDoubleClick.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onTouchCancel.onTouchEnd.onTouchMove.onTouchStart.onPointerDown.onPointerMove.onPointerUp.onPointerCancel.onPointerEnter.onPointerLeave.onPointerOver.onPointerOut.onGotPointerCapture.onLostPointerCapture.onScroll.onWheel.onAnimationStart.onAnimationEnd.onAnimationIteration.onTransitionCancel.onTransitionEnd.onTransitionRun.onTransitionStart`.split(`.`)),dTe=/^(data-.*)$/;function iQ(e,t={}){let{labelable:n,isLink:r,global:i,events:a=i,propNames:o}=t,s={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(sTe.has(t)||n&&cTe.has(t)||r&&lTe.has(t)||i&&uTe.has(t)||a&&(rQ.has(t)||t.endsWith(`Capture`)&&rQ.has(t.slice(0,-7)))||o?.has(t)||dTe.test(t))&&(s[t]=e[t]);return s}function aQ(e){if(fTe())e.focus({preventScroll:!0});else{let t=pTe(e);e.focus(),mTe(t)}}var oQ=null;function fTe(){if(oQ==null){oQ=!1;try{document.createElement(`div`).focus({get preventScroll(){return oQ=!0,!0}})}catch{}}return oQ}function pTe(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function mTe(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function sQ(e){if(typeof window>`u`||window.navigator==null)return!1;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function cQ(e){return typeof window<`u`&&window.navigator!=null?e.test(window.navigator.userAgentData?.platform||window.navigator.platform):!1}function lQ(e){let t=null;return()=>(t??=e(),t)}var uQ=lQ(function(){return cQ(/^Mac/i)}),hTe=lQ(function(){return cQ(/^iPhone/i)}),dQ=lQ(function(){return cQ(/^iPad/i)||uQ()&&navigator.maxTouchPoints>1}),fQ=lQ(function(){return hTe()||dQ()}),gTe=lQ(function(){return uQ()||fQ()}),pQ=lQ(function(){return sQ(/AppleWebKit/i)&&!mQ()}),mQ=lQ(function(){return sQ(/Chrome/i)}),hQ=lQ(function(){return sQ(/Android/i)}),_Te=lQ(function(){return sQ(/Firefox/i)}),vTe=(0,X.createContext)({isNative:!0,open:xTe,useHref:e=>e});function gQ(){return(0,X.useContext)(vTe)}function yTe(e,t){let n=e.getAttribute(`target`);return(!n||n===`_self`)&&e.origin===location.origin&&!e.hasAttribute(`download`)&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function _Q(e,t,n=!0){var r,i;let{metaKey:a,ctrlKey:o,altKey:s,shiftKey:c}=t;_Te()&&!((i=window.event)==null||(r=i.type)==null)&&r.startsWith(`key`)&&e.target===`_blank`&&(uQ()?a=!0:o=!0);let l=pQ()&&uQ()&&!dQ()?new KeyboardEvent(`keydown`,{keyIdentifier:`Enter`,metaKey:a,ctrlKey:o,altKey:s,shiftKey:c}):new MouseEvent(`click`,{metaKey:a,ctrlKey:o,altKey:s,shiftKey:c,detail:1,bubbles:!0,cancelable:!0});_Q.isOpening=n,aQ(e),e.dispatchEvent(l),_Q.isOpening=!1}_Q.isOpening=!1;function bTe(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute(`data-href`)){let n=document.createElement(`a`);n.href=e.getAttribute(`data-href`),e.hasAttribute(`data-target`)&&(n.target=e.getAttribute(`data-target`)),e.hasAttribute(`data-rel`)&&(n.rel=e.getAttribute(`data-rel`)),e.hasAttribute(`data-download`)&&(n.download=e.getAttribute(`data-download`)),e.hasAttribute(`data-ping`)&&(n.ping=e.getAttribute(`data-ping`)),e.hasAttribute(`data-referrer-policy`)&&(n.referrerPolicy=e.getAttribute(`data-referrer-policy`)),e.appendChild(n),t(n),e.removeChild(n)}}function xTe(e,t){bTe(e,e=>_Q(e,t))}function vQ(e){let t=gQ().useHref(e?.href??``);return{href:e?.href?t:void 0,target:e?.target,rel:e?.rel,download:e?.download,ping:e?.ping,referrerPolicy:e?.referrerPolicy}}function STe(e,t,n,r){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&yTe(e.currentTarget,e)&&n&&(e.preventDefault(),t.open(e.currentTarget,e,n,r))}var yQ=new Map,bQ=new Set;function xQ(){if(typeof window>`u`)return;function e(e){return`propertyName`in e}let t=t=>{if(!e(t)||!t.target)return;let r=yQ.get(t.target);r||(r=new Set,yQ.set(t.target,r),t.target.addEventListener(`transitioncancel`,n,{once:!0})),r.add(t.propertyName)},n=t=>{if(!e(t)||!t.target)return;let r=yQ.get(t.target);if(r&&(r.delete(t.propertyName),r.size===0&&(t.target.removeEventListener(`transitioncancel`,n),yQ.delete(t.target)),yQ.size===0)){for(let e of bQ)e();bQ.clear()}};document.body.addEventListener(`transitionrun`,t),document.body.addEventListener(`transitionend`,n)}typeof document<`u`&&(document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,xQ):xQ());function CTe(){for(let[e]of yQ)`isConnected`in e&&!e.isConnected&&yQ.delete(e)}function SQ(e){requestAnimationFrame(()=>{CTe(),yQ.size===0?e():bQ.add(e)})}function CQ(){let e=(0,X.useRef)(new Map),t=(0,X.useCallback)((t,n,r,i)=>{let a=i?.once?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:a,options:i}),t.addEventListener(n,a,i)},[]),n=(0,X.useCallback)((t,n,r,i)=>{let a=e.current.get(r)?.fn||r;t.removeEventListener(n,a,i),e.current.delete(r)},[]),r=(0,X.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return(0,X.useEffect)(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function wQ(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=WZ(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(` `):i&&=i.trim().split(/\s+/).join(` `),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function TQ(e){let t=(0,X.useRef)(null),n=(0,X.useRef)(void 0),r=(0,X.useCallback)(t=>{if(typeof e==`function`){let n=e,r=n(t);return()=>{typeof r==`function`?r():n(null)}}else if(e)return e.current=t,()=>{e.current=null}},[e]);return(0,X.useMemo)(()=>({get current(){return t.current},set current(e){t.current=e,n.current&&=(n.current(),void 0),e!=null&&(n.current=r(e))}}),[r])}var wTe=X.useInsertionEffect??LZ;function EQ(e){let t=(0,X.useRef)(null);return wTe(()=>{t.current=e},[e]),(0,X.useCallback)((...e)=>{let n=t.current;return n?.(...e)},[])}function DQ(e,t){let n=(0,X.useRef)(!0),r=(0,X.useRef)(null);LZ(()=>(n.current=!0,()=>{n.current=!1}),[]),LZ(()=>{n.current?n.current=!1:(!r.current||t.some((e,t)=>!Object.is(e,r[t])))&&e(),r.current=t},t)}function TTe(){return typeof window.ResizeObserver<`u`}function OQ(e){let{ref:t,box:n,onResize:r}=e,i=EQ(r);(0,X.useEffect)(()=>{let e=t?.current;if(e)if(TTe()){let t=new window.ResizeObserver(e=>{e.length&&i()});return t.observe(e,{box:n}),()=>{e&&t.unobserve(e)}}else return window.addEventListener(`resize`,i,!1),()=>{window.removeEventListener(`resize`,i,!1)}},[t,n])}function kQ(e,t){LZ(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function AQ(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function jQ(e,t){let n=e;for(AQ(n,t)&&(n=n.parentElement);n&&!AQ(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function ETe(e,t){let n=[];for(;e&&e!==document.documentElement;)AQ(e,t)&&n.push(e),e=e.parentElement;return n}function MQ(e){return uQ()?e.metaKey:e.ctrlKey}var DTe=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]);function NQ(e){return e instanceof HTMLInputElement&&!DTe.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}typeof document<`u`&&window.visualViewport;var OTe=0,PQ=new Map;function kTe(e){let[t,n]=(0,X.useState)();return LZ(()=>{if(!e)return;let t=PQ.get(e);if(t)n(t.element.id);else{let r=`react-aria-description-${OTe++}`;n(r);let i=document.createElement(`div`);i.id=r,i.style.display=`none`,i.textContent=e,document.body.appendChild(i),t={refCount:0,element:i},PQ.set(e,t)}return t.refCount++,()=>{t&&--t.refCount===0&&(t.element.remove(),PQ.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function FQ(e,t,n,r){let i=EQ(n),a=n==null;(0,X.useEffect)(()=>{if(a||!e.current)return;let n=e.current;return n.addEventListener(t,i,r),()=>{n.removeEventListener(t,i,r)}},[e,t,r,a])}function IQ(e,t){let n=LQ(e,t,`left`),r=LQ(e,t,`top`),i=t.offsetWidth,a=t.offsetHeight,o=e.scrollLeft,s=e.scrollTop,{borderTopWidth:c,borderLeftWidth:l,scrollPaddingTop:u,scrollPaddingRight:d,scrollPaddingBottom:f,scrollPaddingLeft:p}=getComputedStyle(e),m=o+parseInt(l,10),h=s+parseInt(c,10),g=m+e.clientWidth,_=h+e.clientHeight,v=parseInt(u,10)||0,y=parseInt(f,10)||0,b=parseInt(d,10)||0,x=parseInt(p,10)||0;n<=o+x?o=n-parseInt(l,10)-x:n+i>g-b&&(o+=n+i-g+b),r<=h+v?s=r-parseInt(c,10)-v:r+a>_-y&&(s+=r+a-_+y),e.scrollLeft=o,e.scrollTop=s}function LQ(e,t,n){let r=n===`left`?`offsetLeft`:`offsetTop`,i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}function RQ(e,t){if(e&&document.contains(e)){let o=document.scrollingElement||document.documentElement,s=window.getComputedStyle(o).overflow===`hidden`;if(s){let t=ETe(e);s||t.push(o);for(let n of t)IQ(n,e)}else{var n;let{left:o,top:s}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)==null||n.call(e,{block:`nearest`});let{left:c,top:l}=e.getBoundingClientRect();if(Math.abs(o-c)>1||Math.abs(s-l)>1){var r,i,a;t==null||(i=t.containingElement)==null||(r=i.scrollIntoView)==null||r.call(i,{block:`center`,inline:`center`}),(a=e.scrollIntoView)==null||a.call(e,{block:`nearest`})}}}}function zQ(e){return e.pointerType===``&&e.isTrusted?!0:hQ()&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function ATe(e){return!hQ()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`}function BQ(e){let t=X.version.split(`.`);return parseInt(t[0],10)>=19?e:e?`true`:void 0}var jTe=`react-aria-clear-focus`,MTe=`react-aria-focus`;function VQ(e,t=!0){let[n,r]=(0,X.useState)(!0),i=n&&t;return LZ(()=>{if(i&&e.current&&`getAnimations`in e.current)for(let t of e.current.getAnimations())t instanceof CSSTransition&&t.cancel()},[e,i]),UQ(e,i,(0,X.useCallback)(()=>r(!1),[])),i}function HQ(e,t){let[n,r]=(0,X.useState)(t?`open`:`closed`);switch(n){case`open`:t||r(`exiting`);break;case`closed`:case`exiting`:t&&r(`open`);break}let i=n===`exiting`;return UQ(e,i,(0,X.useCallback)(()=>{r(e=>e===`exiting`?`closed`:e)},[])),i}function UQ(e,t,n){LZ(()=>{if(t&&e.current){if(!(`getAnimations`in e.current)){n();return}let t=e.current.getAnimations();if(t.length===0){n();return}let r=!1;return Promise.all(t.map(e=>e.finished)).then(()=>{r||(0,cK.flushSync)(()=>{n()})}).catch(()=>{}),()=>{r=!0}}},[e,t,n])}var NTe=typeof Element<`u`&&`checkVisibility`in Element.prototype;function PTe(e){let t=JZ(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!==`none`&&r!==`hidden`&&r!==`collapse`;if(i){let{getComputedStyle:t}=e.ownerDocument.defaultView,{display:n,visibility:r}=t(e);i=n!==`none`&&r!==`hidden`&&r!==`collapse`}return i}function FTe(e,t){return!e.hasAttribute(`hidden`)&&!e.hasAttribute(`data-react-aria-prevent-focus`)&&(e.nodeName===`DETAILS`&&t&&t.nodeName!==`SUMMARY`?e.hasAttribute(`open`):!0)}function WQ(e,t){return NTe?e.checkVisibility({visibilityProperty:!0})&&!e.closest(`[data-react-aria-prevent-focus]`):e.nodeName!==`#comment`&&PTe(e)&&FTe(e,t)&&(!e.parentElement||WQ(e.parentElement,e))}var GQ=[`input:not([disabled]):not([type=hidden])`,`select:not([disabled])`,`textarea:not([disabled])`,`button:not([disabled])`,`a[href]`,`area[href]`,`summary`,`iframe`,`object`,`embed`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable^="false"])`,`permission`],ITe=GQ.join(`:not([hidden]),`)+`,[tabindex]:not([disabled]):not([hidden])`;GQ.push(`[tabindex]:not([tabindex="-1"]):not([disabled])`);var LTe=GQ.join(`:not([hidden]):not([tabindex="-1"]),`);function KQ(e){return e.matches(ITe)&&WQ(e)&&!qQ(e)}function RTe(e){return e.matches(LTe)&&WQ(e)&&!qQ(e)}function qQ(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}var zTe=typeof document<`u`?X.useInsertionEffect??X.useLayoutEffect:()=>{};function JQ(e,t,n){let[r,i]=(0,X.useState)(e||t),a=(0,X.useRef)(r),o=(0,X.useRef)(e!==void 0),s=e!==void 0;(0,X.useEffect)(()=>{o.current,o.current=s},[s]);let c=s?e:r;zTe(()=>{a.current=c});let[,l]=(0,X.useReducer)(()=>({}),{});return[c,(0,X.useCallback)((e,...t)=>{let r=typeof e==`function`?e(a.current):e;Object.is(a.current,r)||(a.current=r,i(r),l(),n?.(r,...t))},[n])]}function YQ(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function XQ(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function ZQ(e,t){Object.defineProperty(e,`target`,{value:t}),Object.defineProperty(e,`currentTarget`,{value:t})}function QQ(e){let t=(0,X.useRef)({isFocused:!1,observer:null});LZ(()=>{let e=t.current;return()=>{e.observer&&=(e.observer.disconnect(),null)}},[]);let n=EQ(t=>{e?.(t)});return(0,X.useCallback)(e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target;r.addEventListener(`focusout`,e=>{t.current.isFocused=!1,r.disabled&&n(XQ(e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){var e;(e=t.current.observer)==null||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent(`blur`,{relatedTarget:n})),r.dispatchEvent(new FocusEvent(`focusout`,{bubbles:!0,relatedTarget:n}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:[`disabled`]})}},[n])}var $Q=!1;function BTe(e){for(;e&&!KQ(e);)e=e.parentElement;let t=JZ(e),n=t.document.activeElement;if(!n||n===e)return;$Q=!0;let r=!1,i=e=>{(e.target===n||r)&&e.stopImmediatePropagation()},a=t=>{(t.target===n||r)&&(t.stopImmediatePropagation(),!e&&!r&&(r=!0,aQ(n),c()))},o=t=>{(t.target===e||r)&&t.stopImmediatePropagation()},s=t=>{(t.target===e||r)&&(t.stopImmediatePropagation(),r||(r=!0,aQ(n),c()))};t.addEventListener(`blur`,i,!0),t.addEventListener(`focusout`,a,!0),t.addEventListener(`focusin`,s,!0),t.addEventListener(`focus`,o,!0);let c=()=>{cancelAnimationFrame(l),t.removeEventListener(`blur`,i,!0),t.removeEventListener(`focusout`,a,!0),t.removeEventListener(`focusin`,s,!0),t.removeEventListener(`focus`,o,!0),$Q=!1,r=!1},l=requestAnimationFrame(c);return c}var e$=`default`,t$=``,n$=new WeakMap;function VTe(e){if(fQ()){if(e$===`default`){let t=qZ(e);t$=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect=`none`}e$=`disabled`}else if(e instanceof HTMLElement||e instanceof SVGElement){let t=`userSelect`in e.style?`userSelect`:`webkitUserSelect`;n$.set(e,e.style[t]),e.style[t]=`none`}}function r$(e){if(fQ()){if(e$!==`disabled`)return;e$=`restoring`,setTimeout(()=>{SQ(()=>{if(e$===`restoring`){let t=qZ(e);t.documentElement.style.webkitUserSelect===`none`&&(t.documentElement.style.webkitUserSelect=t$||``),t$=``,e$=`default`}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&n$.has(e)){let t=n$.get(e),n=`userSelect`in e.style?`userSelect`:`webkitUserSelect`;e.style[n]===`none`&&(e.style[n]=t),e.getAttribute(`style`)===``&&e.removeAttribute(`style`),n$.delete(e)}}var i$=X.createContext({register:()=>{}});i$.displayName=`PressResponderContext`;function HTe(e,t){return t.get?t.get.call(e):t.value}function a$(e,t,n){if(!t.has(e))throw TypeError(`attempted to `+n+` private field on non-instance`);return t.get(e)}function UTe(e,t){return HTe(e,a$(e,t,`get`))}function WTe(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function GTe(e,t,n){WTe(e,t),t.set(e,n)}function KTe(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw TypeError(`attempted to set read only private field`);t.value=n}}function o$(e,t,n){return KTe(e,a$(e,t,`set`),n),n}function qTe(e){let t=(0,X.useContext)(i$);if(t){let{register:n,...r}=t;e=eQ(r,e),n()}return kQ(t,e.ref),e}var s$=new WeakMap,c$=class{continuePropagation(){o$(this,s$,!1)}get shouldStopPropagation(){return UTe(this,s$)}constructor(e,t,n,r){GTe(this,s$,{writable:!0,value:void 0}),o$(this,s$,!0);let i=(r?.target??n.currentTarget)?.getBoundingClientRect(),a,o=0,s,c=null;n.clientX!=null&&n.clientY!=null&&(s=n.clientX,c=n.clientY),i&&(s!=null&&c!=null?(a=s-i.left,o=c-i.top):(a=i.width/2,o=i.height/2)),this.type=e,this.pointerType=t,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=a,this.y=o}},l$=Symbol(`linkClicked`),u$=`react-aria-pressable-style`,d$=`data-react-aria-pressable`;function f$(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:a,onClick:o,isDisabled:s,isPressed:c,preventFocusOnPress:l,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:d,ref:f,...p}=qTe(e),[m,h]=(0,X.useState)(!1),g=(0,X.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:_,removeAllGlobalListeners:v}=CQ(),y=EQ((e,t)=>{let i=g.current;if(s||i.didFirePressStart)return!1;let a=!0;if(i.isTriggeringEvent=!0,r){let n=new c$(`pressstart`,t,e);r(n),a=n.shouldStopPropagation}return n&&n(!0),i.isTriggeringEvent=!1,i.didFirePressStart=!0,h(!0),a}),b=EQ((e,r,a=!0)=>{let o=g.current;if(!o.didFirePressStart)return!1;o.didFirePressStart=!1,o.isTriggeringEvent=!0;let c=!0;if(i){let t=new c$(`pressend`,r,e);i(t),c=t.shouldStopPropagation}if(n&&n(!1),h(!1),t&&a&&!s){let n=new c$(`press`,r,e);t(n),c&&=n.shouldStopPropagation}return o.isTriggeringEvent=!1,c}),x=EQ((e,t)=>{let n=g.current;if(s)return!1;if(a){n.isTriggeringEvent=!0;let r=new c$(`pressup`,t,e);return a(r),n.isTriggeringEvent=!1,r.shouldStopPropagation}return!0}),S=EQ(e=>{let t=g.current;if(t.isPressed&&t.target){t.didFirePressStart&&t.pointerType!=null&&b(h$(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,v(),d||r$(t.target);for(let e of t.disposables)e();t.disposables=[]}}),C=EQ(e=>{u&&S(e)}),w=EQ(e=>{s||o?.(e)}),T=EQ((e,t)=>{if(!s&&o){let n=new MouseEvent(`click`,e);ZQ(n,t),o(XQ(n))}}),E=(0,X.useMemo)(()=>{let e=g.current,t={onKeyDown(t){if(m$(t.nativeEvent,t.currentTarget)&&XZ(t.currentTarget,QZ(t.nativeEvent))){var r;g$(QZ(t.nativeEvent),t.key)&&t.preventDefault();let i=!0;if(!e.isPressed&&!t.repeat){e.target=t.currentTarget,e.isPressed=!0,e.pointerType=`keyboard`,i=y(t,`keyboard`);let r=t.currentTarget;_(qZ(t.currentTarget),`keyup`,KZ(t=>{m$(t,r)&&!t.repeat&&XZ(r,QZ(t))&&e.target&&x(h$(e.target,t),`keyboard`)},n),!0)}i&&t.stopPropagation(),t.metaKey&&uQ()&&((r=e.metaKeyEvents)==null||r.set(t.key,t.nativeEvent))}else t.key===`Meta`&&(e.metaKeyEvents=new Map)},onClick(t){if(!(t&&!XZ(t.currentTarget,QZ(t.nativeEvent)))&&t&&t.button===0&&!e.isTriggeringEvent&&!_Q.isOpening){let n=!0;if(s&&t.preventDefault(),!e.ignoreEmulatedMouseEvents&&!e.isPressed&&(e.pointerType===`virtual`||zQ(t.nativeEvent))){let e=y(t,`virtual`),r=x(t,`virtual`),i=b(t,`virtual`);w(t),n=e&&r&&i}else if(e.isPressed&&e.pointerType!==`keyboard`){let r=e.pointerType||t.nativeEvent.pointerType||`virtual`,i=x(h$(t.currentTarget,t),r),a=b(h$(t.currentTarget,t),r,!0);n=i&&a,e.isOverTarget=!1,w(t),S(t)}e.ignoreEmulatedMouseEvents=!1,n&&t.stopPropagation()}}},n=t=>{var n;if(e.isPressed&&e.target&&m$(t,e.target)){var r;g$(QZ(t),t.key)&&t.preventDefault();let n=QZ(t),i=XZ(e.target,QZ(t));b(h$(e.target,t),`keyboard`,i),i&&T(t,e.target),v(),t.key!==`Enter`&&p$(e.target)&&XZ(e.target,n)&&!t[l$]&&(t[l$]=!0,_Q(e.target,t,!1)),e.isPressed=!1,(r=e.metaKeyEvents)==null||r.delete(t.key)}else if(t.key===`Meta`&&(n=e.metaKeyEvents)!=null&&n.size){var i;let t=e.metaKeyEvents;e.metaKeyEvents=void 0;for(let n of t.values())(i=e.target)==null||i.dispatchEvent(new KeyboardEvent(`keyup`,n))}};if(typeof PointerEvent<`u`){t.onPointerDown=t=>{if(t.button!==0||!XZ(t.currentTarget,QZ(t.nativeEvent)))return;if(ATe(t.nativeEvent)){e.pointerType=`virtual`;return}e.pointerType=t.pointerType;let i=!0;if(!e.isPressed){e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,d||VTe(e.target),i=y(t,e.pointerType);let a=QZ(t.nativeEvent);`releasePointerCapture`in a&&a.releasePointerCapture(t.pointerId),_(qZ(t.currentTarget),`pointerup`,n,!1),_(qZ(t.currentTarget),`pointercancel`,r,!1)}i&&t.stopPropagation()},t.onMouseDown=t=>{if(XZ(t.currentTarget,QZ(t.nativeEvent))&&t.button===0){if(l){let n=BTe(t.target);n&&e.disposables.push(n)}t.stopPropagation()}},t.onPointerUp=t=>{!XZ(t.currentTarget,QZ(t.nativeEvent))||e.pointerType===`virtual`||t.button===0&&!e.isPressed&&x(t,e.pointerType||t.pointerType)},t.onPointerEnter=t=>{t.pointerId===e.activePointerId&&e.target&&!e.isOverTarget&&e.pointerType!=null&&(e.isOverTarget=!0,y(h$(e.target,t),e.pointerType))},t.onPointerLeave=t=>{t.pointerId===e.activePointerId&&e.target&&e.isOverTarget&&e.pointerType!=null&&(e.isOverTarget=!1,b(h$(e.target,t),e.pointerType,!1),C(t))};let n=t=>{if(t.pointerId===e.activePointerId&&e.isPressed&&t.button===0&&e.target){if(XZ(e.target,QZ(t))&&e.pointerType!=null){let n=!1,r=setTimeout(()=>{e.isPressed&&e.target instanceof HTMLElement&&(n?S(t):(aQ(e.target),e.target.click()))},80);_(t.currentTarget,`click`,()=>n=!0,!0),e.disposables.push(()=>clearTimeout(r))}else S(t);e.isOverTarget=!1}},r=e=>{S(e)};t.onDragStart=e=>{XZ(e.currentTarget,QZ(e.nativeEvent))&&S(e)}}return t},[_,s,l,v,d,S,C,b,y,x,w,T]);return(0,X.useEffect)(()=>{if(!f)return;let e=qZ(f.current);if(!e||!e.head||e.getElementById(u$))return;let t=e.createElement(`style`);t.id=u$,t.textContent=`
|
|
1324
|
+
`});let m=e.versions&&Object.keys(e.versions).length?e.versions:s.versions;await a.setRef(t,{id:t,url:u.url,...s,...m?{versions:m}:{},type:s.storyIndex?`lazy`:`auto-inject`})},getRefs:()=>{let{refs:t={}}=e.getState();return t},setRef:async(i,{storyIndex:o,setStoriesData:s,...c},l=!1)=>{if(n)return;let u,d,f,{filters:p}=e.getState(),{storyMapper:m=rX}=t.getConfig(),h=a.getRefs()[i];(o||s)&&(u=s?wSe(MSe(s,h,{storyMapper:m})):o,f=$Y(o,{provider:t,docsOptions:r,filters:p,allStatuses:{}}),d=$Y(o,{provider:t,docsOptions:r,filters:{},allStatuses:{}})),d&&=iX(d,h),f&&=iX(f,h),await a.updateRef(i,{...h,...c,index:d,filteredIndex:f,internal_index:u})},updateRef:async(t,n)=>{let{[t]:r,...i}=a.getRefs();i[t]={...r,...n};let o=Object.keys(s).reduce((e,t)=>(e[t]=i[t],e),{});await e.setState({refs:o})}},o=!n&&ZY.REFS||{},s=o;return i&&new Promise(async e=>{for(let e of Object.values(o))await a.checkRef({...e,stories:{}});e(void 0)}),{api:a,state:{refs:s}}},oX=(e,t)=>{let{source:n,refId:r,type:i}=e,[a,o]=nX(n,r),s;(r||a===`external`)&&(s=r&&t.getRefs()[r]?t.getRefs()[r]:t.findRef(o));let c={source:n,sourceType:a,sourceLocation:o,refId:r,ref:s,type:i};switch(!0){case typeof r==`string`:case a===`local`:case a===`external`:return c;default:return bSe.warn(`Received a ${i} frame that was not configured as a ref`),null}},PSe=({store:e,fullAPI:t,provider:n})=>{let r={getGlobals(){return e.getState().globals},getUserGlobals(){return e.getState().userGlobals},getStoryGlobals(){return e.getState().storyGlobals},getGlobalTypes(){return e.getState().globalTypes},updateGlobals(e){n.channel?.emit(ySe,{globals:e,options:{target:`storybook-preview-iframe`}})}},i={globals:{},userGlobals:{},storyGlobals:{},globalTypes:{}},a=({globals:t,storyGlobals:n,userGlobals:r})=>{let{globals:i,userGlobals:a,storyGlobals:o}=e.getState();TJ(t,i)||e.setState({globals:t}),TJ(r,a)||e.setState({userGlobals:r}),TJ(n,o)||e.setState({storyGlobals:n})};return n.channel?.on(_Se,function({globals:e,storyGlobals:n,userGlobals:r}){let{ref:i}=oX(this,t);i?YY.warn(`received a GLOBALS_UPDATED from a non-local ref. This is not currently supported.`):a({globals:e,storyGlobals:n,userGlobals:r})}),n.channel?.on(vSe,function({globals:n,globalTypes:i}){let{ref:a}=oX(this,t),o=e.getState()?.globals;a?Object.keys(n).length>0&&YY.warn(`received globals from a non-local ref. This is not currently supported.`):e.setState({globals:n,userGlobals:n,globalTypes:i}),o&&Object.keys(o).length!==0&&!TJ(n,o)&&r.updateGlobals(o)}),{api:r,state:i}},sX={};XM(sX,{ActiveTabs:()=>uX,defaultLayoutState:()=>dX,focusableUIElements:()=>fX,init:()=>LSe});var{SET_CONFIG:FSe}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:ISe}=__STORYBOOK_MODULE_GLOBAL__,{document:cX}=ISe,lX=e=>typeof e==`function`,uX={SIDEBAR:`sidebar`,CANVAS:`canvas`,ADDONS:`addons`},dX={ui:{enableShortcuts:!0},layout:{initialActive:uX.CANVAS,showToolbar:!0,navSize:300,bottomPanelHeight:300,rightPanelWidth:400,recentVisibleSizes:{navSize:300,bottomPanelHeight:300,rightPanelWidth:400},panelPosition:`bottom`,showTabs:!0},layoutCustomisations:{showSidebar:void 0,showToolbar:void 0},selectedPanel:void 0,theme:fU()},fX={storySearchField:`storybook-explorer-searchfield`,storyListMenu:`storybook-explorer-menu`,storyPanelRoot:`storybook-panel-root`},pX=e=>e.layout.navSize>0,mX=e=>{let{bottomPanelHeight:t,rightPanelWidth:n,panelPosition:r}=e.layout;return r===`bottom`&&t>0||r===`right`&&n>0},hX=e=>!pX(e)&&!mX(e),gX=e=>({navSize:e.navSize>0?e.navSize:e.recentVisibleSizes.navSize,bottomPanelHeight:e.bottomPanelHeight>0?e.bottomPanelHeight:e.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:e.rightPanelWidth>0?e.rightPanelWidth:e.recentVisibleSizes.rightPanelWidth}),LSe=({store:e,provider:t,singleStory:n})=>{let r={toggleFullscreen(t){return e.setState(e=>{let n=hX(e),r=typeof t==`boolean`?t:!n;return r===n?{layout:e.layout}:r?{layout:{...e.layout,navSize:0,bottomPanelHeight:0,rightPanelWidth:0,recentVisibleSizes:gX(e.layout)}}:{layout:{...e.layout,navSize:e.singleStory?0:e.layout.recentVisibleSizes.navSize,bottomPanelHeight:e.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:e.layout.recentVisibleSizes.rightPanelWidth}}},{persistence:`session`})},togglePanel(t){return e.setState(e=>{let n=mX(e),r=typeof t==`boolean`?t:!n;return r===n?{layout:e.layout}:r?{layout:{...e.layout,bottomPanelHeight:e.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:e.layout.recentVisibleSizes.rightPanelWidth}}:{layout:{...e.layout,bottomPanelHeight:0,rightPanelWidth:0,recentVisibleSizes:gX(e.layout)}}},{persistence:`session`})},togglePanelPosition(t){return e.setState(e=>{let n=t||(e.layout.panelPosition===`right`?`bottom`:`right`);return{layout:{...e.layout,panelPosition:n,bottomPanelHeight:e.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:e.layout.recentVisibleSizes.rightPanelWidth}}},{persistence:`permanent`})},toggleNav(t){return e.setState(e=>{if(e.singleStory)return{layout:e.layout};let n=pX(e),r=typeof t==`boolean`?t:!n;return r===n?{layout:e.layout}:r?{layout:{...e.layout,navSize:e.layout.recentVisibleSizes.navSize}}:{layout:{...e.layout,navSize:0,recentVisibleSizes:gX(e.layout)}}},{persistence:`session`})},toggleToolbar(t){return e.setState(e=>{let n=typeof t<`u`?t:!e.layout.showToolbar;return{layout:{...e.layout,showToolbar:n}}},{persistence:`session`})},setSizes({navSize:t,bottomPanelHeight:n,rightPanelWidth:r}){return e.setState(e=>{let i={...e.layout,navSize:t??e.layout.navSize,bottomPanelHeight:n??e.layout.bottomPanelHeight,rightPanelWidth:r??e.layout.rightPanelWidth};return{layout:{...i,recentVisibleSizes:gX(i)}}},{persistence:`session`})},focusOnUIElement(e,t){if(!e)return;let n=Date.now(),r=()=>{let n=cX.getElementById(e);return!n||(n.focus(),n!==cX.activeElement)?!1:(t&&n.select?.(),!0)};if(r())return;let i=setInterval(()=>{if(Date.now()-n>=500){clearInterval(i);return}r()&&clearInterval(i)},50)},getInitialOptions(){let{theme:e,selectedPanel:r,layoutCustomisations:i,...a}=t.getConfig();return{...dX,layout:{...lN(dX.layout,sN(a,Object.keys(dX.layout))),...n&&{navSize:0}},layoutCustomisations:{...dX.layoutCustomisations,...i??{}},ui:lN(dX.ui,sN(a,Object.keys(dX.ui))),selectedPanel:r||dX.selectedPanel,theme:e||dX.theme}},getIsFullscreen(){return hX(e.getState())},getIsPanelShown(){return mX(e.getState())},getIsNavShown(){return pX(e.getState())},getShowToolbarWithCustomisations(t){let n=e.getState();return lX(n.layoutCustomisations.showToolbar)?n.layoutCustomisations.showToolbar(n,t)??t:t},getShowPanelWithCustomisations(t){let n=e.getState();return lX(n.layoutCustomisations.showPanel)?n.layoutCustomisations.showPanel(n,t)??t:t},getNavSizeWithCustomisations(t){let n=e.getState();if(lX(n.layoutCustomisations.showSidebar)){let e=n.layoutCustomisations.showSidebar(n,t!==0);if(t===0&&e===!0)return n.layout.recentVisibleSizes.navSize;if(t!==0&&e===!1)return 0}return t},setOptions:t=>{let{layout:r,ui:i,selectedPanel:a,theme:o}=e.getState();if(!t)return;let s={...r,...t.layout||{},...sN(t,Object.keys(r)),...n&&{navSize:0}},c={...i,...t.ui,...lN(t.ui||{},sN(t,Object.keys(i)))},l={...o,...t.theme},u={};GN(i,c)||(u.ui=c),GN(r,s)||(u.layout=s),t.selectedPanel&&!GN(a,t.selectedPanel)&&(u.selectedPanel=t.selectedPanel),Object.keys(u).length&&e.setState(u,{persistence:`permanent`}),GN(o,l)||e.setState({theme:l})}},i=sN(e.getState(),[`layout`,`selectedPanel`]);return t.channel?.on(FSe,()=>{r.setOptions(zY(r.getInitialOptions(),i))}),{api:r,state:zY(r.getInitialOptions(),i)}},_X={};XM(_X,{init:()=>RSe});var RSe=({store:e})=>({api:{addNotification:t=>{e.setState(({notifications:e})=>{let[n,r]=EJ(e,e=>e.id===t.id);return n.forEach(e=>{e.onClear&&e.onClear({dismissed:!1,timeout:!1})}),{notifications:[...r,t]}})},clearNotification:t=>{e.setState(({notifications:e})=>{let[n,r]=EJ(e,e=>e.id===t);return n.forEach(e=>{e.onClear&&e.onClear({dismissed:!1,timeout:!1})}),{notifications:r}})}},state:{notifications:[]}}),vX={};XM(vX,{init:()=>BSe});var{OPEN_IN_EDITOR_REQUEST:zSe,OPEN_IN_EDITOR_RESPONSE:yX}=__STORYBOOK_MODULE_CORE_EVENTS__,BSe=({provider:t,fullAPI:n})=>({api:{openInEditor(e){return new Promise(n=>{let{file:r,line:i,column:a}=e,o=e=>{e.file===r&&e.line===i&&e.column===a&&(t.channel?.off(yX,o),n(e))};t.channel?.on(yX,o),t.channel?.emit(zSe,e)})}},state:{notifications:[]},init:async()=>{let{color:r}=await e(async()=>{let{color:e}=await Promise.resolve().then(()=>pU);return{color:e}},void 0,import.meta.url);t.channel?.on(yX,e=>{e.error!==null&&n.addNotification({id:`open-in-editor-error`,content:{headline:`Failed to open in editor`,subHeadline:e.error||`Check the Storybook process on the command line for more details.`},icon:X.createElement(x_e,{color:r.negative}),duration:8e3})})}}),bX={};XM(bX,{init:()=>VSe});var VSe=({provider:e,fullAPI:t})=>({api:e.renderPreview?{renderPreview:e.renderPreview}:{},state:{},init:()=>{e.handleAPI(t)}}),xX={};XM(xX,{init:()=>HSe});var HSe=({store:e,navigate:t,fullAPI:n})=>({state:{settings:{lastTrackedStoryId:null}},api:{closeSettings:()=>{let{settings:{lastTrackedStoryId:t}}=e.getState();t?n.selectStory(t):n.selectFirstStory()},changeSettingsTab:e=>{t(`/settings/${e}`)},isSettingsScreenActive:()=>{let{path:e}=n.getUrlState();return!!(e||``).match(/^\/settings/)},retrieveSelection(){let{settings:t}=e.getState();return t.lastTrackedStoryId},storeSelection:async()=>{let{storyId:t,settings:n}=e.getState();await e.setState({settings:{...n,lastTrackedStoryId:t}})}}}),SX={};XM(SX,{controlOrMetaKey:()=>OX,defaultShortcuts:()=>AX,init:()=>rCe,isMacLike:()=>DX,keys:()=>kX});var USe=ZM(Qxe(),1),{FORCE_REMOUNT:WSe,PREVIEW_KEYDOWN:GSe,STORIES_COLLAPSE_ALL:KSe,STORIES_EXPAND_ALL:qSe}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:CX}=__STORYBOOK_MODULE_GLOBAL__,{global:JSe}=__STORYBOOK_MODULE_GLOBAL__,{navigator:wX}=JSe,YSe=()=>wX&&wX.platform?!!wX.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,XSe=()=>YSe()?`⌥`:`alt`,ZSe=e=>{if([`Meta`,`Alt`,`Control`,`Shift`,`Tab`].includes(e.key))return null;let t=[];e.altKey&&t.push(`alt`),e.ctrlKey&&t.push(`control`),e.metaKey&&t.push(`meta`),e.shiftKey&&t.push(`shift`);let n=e.code?.toUpperCase(),r=n?n.startsWith(`KEY`)&&n.length===4?n.replace(`KEY`,``):n.startsWith(`DIGIT`)?n.replace(`DIGIT`,``):{MINUS:`-`,EQUAL:`=`,BRACKETLEFT:`[`,BRACKETRIGHT:`]`,BACKSLASH:`\\`,SEMICOLON:`;`,QUOTE:`'`,BACKQUOTE:"`",COMMA:`,`,PERIOD:`.`,SLASH:`/`}[n]:void 0;if(e.key&&e.key.length===1&&e.key!==` `){let n=e.key.toUpperCase(),i=r;i&&i.length===1&&i!==n?t.push([n,i]):t.push(n)}else e.key===`Dead`&&r&&t.push(r);return e.key===` `&&t.push(`space`),e.key===`Escape`&&t.push(`escape`),e.key===`ArrowRight`&&t.push(`ArrowRight`),e.key===`ArrowDown`&&t.push(`ArrowDown`),e.key===`ArrowUp`&&t.push(`ArrowUp`),e.key===`ArrowLeft`&&t.push(`ArrowLeft`),t.length>0?t:null},QSe=(e,t)=>!e||!t||(e.join(``).startsWith(`shift/`)&&e.shift(),e.length!==t.length)?!1:!e.find((e,n)=>Array.isArray(e)?!e.includes(t[n]):e!==t[n]),$Se=e=>e===`alt`?XSe():e===`control`?`⌃`:e===`meta`?`⌘`:e===`shift`?`⇧`:e===`Enter`||e===`Backspace`||e===`Esc`||e===`escape`?``:e===` `?`SPACE`:e===`ArrowUp`?`↑`:e===`ArrowDown`?`↓`:e===`ArrowLeft`?`←`:e===`ArrowRight`?`→`:e?.toUpperCase(),eCe=e=>e.map($Se).join(` `),tCe=e=>e.map(e=>e===`+`?`plus`:e===` `?`space`:e).join(`+`),{navigator:TX,document:EX}=CX,DX=()=>TX&&TX.platform?!!TX.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,OX=()=>DX()?`meta`:`control`;function kX(e){return Object.keys(e)}var AX=Object.freeze({fullScreen:[`alt`,`F`],togglePanel:[`alt`,`A`],panelPosition:[`alt`,`D`],toggleNav:[`alt`,`S`],toolbar:[`alt`,`T`],search:[OX(),`K`],focusNav:[`1`],focusIframe:[`2`],focusPanel:[`3`],prevComponent:[`alt`,`ArrowUp`],nextComponent:[`alt`,`ArrowDown`],prevStory:[`alt`,`ArrowLeft`],nextStory:[`alt`,`ArrowRight`],shortcutsPage:[OX(),`shift`,`,`],aboutPage:[OX(),`,`],escape:[`escape`],collapseAll:[OX(),`shift`,`ArrowUp`],expandAll:[OX(),`shift`,`ArrowDown`],remount:[`alt`,`R`],openInEditor:[`alt`,`shift`,`E`],openInIsolation:[`alt`,`shift`,`I`],copyStoryLink:[`alt`,`shift`,`L`],goToPreviousLandmark:[`shift`,`F6`],goToNextLandmark:[`F6`]}),jX={};function nCe(e){let t=e.target;return!!(/input|textarea/i.test(t.tagName)||t.getAttribute(`contenteditable`)!==null||t.closest(`dialog[open]`))}var rCe=({store:e,fullAPI:t,provider:n})=>{let r={getShortcutKeys(){return e.getState().shortcuts},getDefaultShortcuts(){return{...AX,...r.getAddonsShortcutDefaults()}},getAddonsShortcuts(){return jX},getAddonsShortcutLabels(){let e={};return Object.entries(r.getAddonsShortcuts()).forEach(([t,{label:n}])=>{e[t]=n}),e},getAddonsShortcutDefaults(){let e={};return Object.entries(r.getAddonsShortcuts()).forEach(([t,{defaultShortcut:n}])=>{e[t]=n}),e},async setShortcuts(t){let{shortcuts:n}=await e.setState(e=>({shortcuts:typeof t==`function`?t(e.shortcuts):t}),{persistence:`permanent`});return n},async restoreAllDefaultShortcuts(){return r.setShortcuts(r.getDefaultShortcuts())},async setShortcut(e,t){return await r.setShortcuts(n=>({...n,[e]:t})),t},async setAddonShortcut(e,t){return await r.setShortcuts(n=>({...n,[`${e}-${t.actionName}`]:t.defaultShortcut})),jX[`${e}-${t.actionName}`]=t,t},async restoreDefaultShortcut(e){let t=r.getDefaultShortcuts()[e];return r.setShortcut(e,t)},handleKeydownEvent(e){let t=ZSe(e),n=r.getShortcutKeys(),i=kX(n).find(e=>QSe(t,n[e]));i&&r.handleShortcutFeature(i,e)},handleShortcutFeature(n,r){let{ui:{enableShortcuts:i},storyId:a,refId:o,viewMode:s}=e.getState();if(i)switch(r?.preventDefault&&r.preventDefault(),n){case`escape`:t.getIsFullscreen()?t.toggleFullscreen(!1):t.getIsNavShown()&&t.toggleNav(!0);break;case`goToNextLandmark`:case`goToPreviousLandmark`:break;case`focusNav`:t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsNavShown()||t.toggleNav(!0),t.focusOnUIElement(fX.storyListMenu);break;case`search`:t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsNavShown()||t.toggleNav(!0),setTimeout(()=>{t.focusOnUIElement(fX.storySearchField,!0)},0);break;case`focusIframe`:{let e=EX.getElementById(`storybook-preview-iframe`);if(e)try{e.contentWindow.focus()}catch{}break}case`focusPanel`:t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsPanelShown()||t.togglePanel(!0),t.focusOnUIElement(fX.storyPanelRoot);break;case`nextStory`:t.jumpToStory(1);break;case`prevStory`:t.jumpToStory(-1);break;case`nextComponent`:t.jumpToComponent(1);break;case`prevComponent`:t.jumpToComponent(-1);break;case`fullScreen`:t.toggleFullscreen();break;case`togglePanel`:t.togglePanel();break;case`toggleNav`:t.toggleNav();break;case`toolbar`:t.toggleToolbar();break;case`panelPosition`:t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsPanelShown()||t.togglePanel(!0),t.togglePanelPosition();break;case`aboutPage`:t.navigate(`/settings/about`);break;case`shortcutsPage`:t.navigate(`/settings/shortcuts`);break;case`collapseAll`:t.emit(KSe);break;case`expandAll`:t.emit(qSe);break;case`remount`:t.emit(WSe,{storyId:a});break;case`openInEditor`:CX.CONFIG_TYPE===`DEVELOPMENT`&&t.openInEditor({file:t.getCurrentStoryData().importPath});break;case`openInIsolation`:if(a&&s===`story`){let{previewHref:e}=t.getStoryHrefs(a,{refId:o});window.open(e,`_blank`,`noopener,noreferrer`)}break;case`copyStoryLink`:if(a){let{managerHref:e}=t.getStoryHrefs(a,{refId:o});(0,USe.default)(e)}break;default:jX[n].action();break}}},{shortcuts:i=AX}=e.getState();return{api:r,state:{shortcuts:kX(AX).reduce((e,t)=>({...e,[t]:i[t]||AX[t]}),AX)},init:()=>{EX.addEventListener(`keydown`,e=>{nCe(e)||r.handleKeydownEvent(e)}),n.channel?.on(GSe,e=>{r.handleKeydownEvent(e.event)})}}},MX={};XM(MX,{init:()=>NCe});var{logger:iCe}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{CONFIG_ERROR:aCe,CURRENT_STORY_WAS_SET:oCe,DOCS_PREPARED:sCe,PRELOAD_ENTRIES:cCe,RESET_STORY_ARGS:lCe,SELECT_STORY:uCe,SET_CONFIG:dCe,SET_CURRENT_STORY:fCe,SET_FILTER:pCe,SET_INDEX:mCe,SET_STORIES:hCe,STORY_ARGS_UPDATED:gCe,STORY_CHANGED:_Ce,STORY_INDEX_INVALIDATED:vCe,STORY_MISSING:yCe,STORY_PREPARED:bCe,STORY_SPECIFIED:xCe,UPDATE_STORY_ARGS:SCe}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:CCe}=__STORYBOOK_MODULE_GLOBAL__;ZM($xe(),1);var wCe=class extends SJ{constructor(e){super({name:`StatusTypeIdMismatchError`,category:`CORE-SERVER`,code:16,message:`Status has typeId "${e.status.typeId}" but was added to store with typeId "${e.typeId}". Full status: ${JSON.stringify(e.status,null,2)}`}),this.data=e}},TCe={id:`storybook/status`,leader:!0,initialState:{}},NX={SELECT:`select`};function ECe({universalStatusStore:e,useUniversalStore:t,environment:n}){let r={getAll(){return e.getState()},set(t){e.setState(e=>{let n={...e};for(let e of t){let{storyId:t,typeId:r}=e;n[t]={...n[t]??{},[r]:e}}return n})},onAllStatusChange(t){return e.onStateChange((e,n)=>{t(e,n)})},onSelect(t){return e.subscribe(NX.SELECT,e=>{t(e.payload)})},selectStatuses:t=>{e.send({type:NX.SELECT,payload:t})},unset(t){if(!t){e.setState({});return}e.setState(e=>{let n={...e};for(let e of t)delete n[e];return n})},typeId:void 0},i=t=>({getAll:r.getAll,set(r){e.setState(e=>{let i={...e};for(let e of r){let{storyId:r}=e;if(e.typeId!==t)switch(n){case`server`:throw new wCe({status:e,typeId:t});case`manager`:throw new Tbe({status:e,typeId:t});case`preview`:default:throw new Dbe({status:e,typeId:t})}i[r]={...i[r]??{},[t]:e}}return i})},onAllStatusChange:r.onAllStatusChange,onSelect(n){return e.subscribe(NX.SELECT,e=>{e.payload.some(e=>e.typeId===t)&&n(e.payload)})},unset(n){e.setState(e=>{let r={...e};for(let e in r)if(r[e]?.[t]&&(!n||n?.includes(e))){let{[t]:n,...i}=r[e];r[e]=i}return r})},typeId:t});return t?{getStatusStoreByTypeId:i,fullStatusStore:r,universalStatusStore:e,useStatusStore:n=>t(e,n)[0]}:{getStatusStoreByTypeId:i,fullStatusStore:r,universalStatusStore:e}}var PX=(e,t)=>{let n=X.useRef(t?t(e.getState()):e.getState()),r=X.useCallback(r=>e.onStateChange((e,i)=>{if(!t){n.current=e,r();return}let a=t(e);!GN(a,t(i))&&(n.current=a,r())}),[e,t]),i=X.useCallback(()=>{let r=e.getState(),i=t?t(r):r;return GN(i,n.current)||(n.current=i),n.current},[e,t]);return[X.useSyncExternalStore(r,i),e.setState]},{fullStatusStore:FX,getStatusStoreByTypeId:DCe,useStatusStore:OCe,universalStatusStore:kCe}=ECe({universalStatusStore:Oq.create({...TCe,leader:globalThis.CONFIG_TYPE===`PRODUCTION`}),useUniversalStore:PX,environment:`manager`}),{fetch:ACe}=CCe,jCe=`./index.json`,MCe=[`enableShortcuts`,`theme`,`showRoots`];function IX(e){if(!e||typeof e==`string`)return e;let t={...e};return MCe.forEach(e=>{e in t&&delete t[e]}),t}var NCe=({fullAPI:e,store:t,navigate:n,provider:r,storyId:i,viewMode:a,docsOptions:o={}})=>{let s={storyId:cL,getData:(e,t)=>{let n=s.resolveStory(e,t);if(n?.type===`story`||n?.type===`docs`)return n},isPrepared:(e,t)=>{let n=s.getData(e,t);return n?n.type===`story`?n.prepared:!0:!1},resolveStory:(e,n)=>{let{refs:r,index:i}=t.getState();if(!(n&&!r[n]))return n?r?.[n]?.index?.[e]??void 0:i?i[e]:void 0},getCurrentStoryData:()=>{let{storyId:e,refId:n}=t.getState();return s.getData(e,n)},getIndex:()=>{let{internal_index:e}=t.getState();return e},getParameters:(e,t)=>{let{storyId:n,refId:r}=typeof e==`string`?{storyId:e,refId:void 0}:e,i=s.getData(n,r);if([`story`,`docs`].includes(i?.type)){let{parameters:e}=i;if(e)return t?e[t]:e}return null},getCurrentParameter:e=>{let{storyId:n,refId:r}=t.getState();return s.getParameters({storyId:n,refId:r},e)||void 0},jumpToComponent:e=>{let{filteredIndex:n,storyId:r,refs:i,refId:a}=t.getState();if(!s.getData(r,a))return;let o=a?i[a].filteredIndex||{}:n;if(!o)return;let c=s.findSiblingStoryId(r,o,e,!0);c&&s.selectStory(c,void 0,{ref:a})},jumpToStory:e=>{let{filteredIndex:n,storyId:r,refs:i,refId:a}=t.getState(),o=s.getData(r,a);if(!o)return;let c=o.refId?i[o.refId].filteredIndex:n;if(!c)return;let l=s.findSiblingStoryId(r,c,e,!1);l&&s.selectStory(l,void 0,{ref:a})},selectFirstStory:()=>{let{index:e}=t.getState();if(!e)return;let r=Object.keys(e).find(t=>e[t].type===`story`);if(r){s.selectStory(r);return}n(`/`)},selectStory:(e=void 0,r=void 0,i={})=>{let{ref:a}=i,{storyId:o,index:c,filteredIndex:l,refs:u,settings:d}=t.getState(),f=e=>e?.type===`docs`||e?.type===`story`?(t.setState({settings:{...d,lastTrackedStoryId:e.id}}),n(`/${e.type}/${e.refId?`${e.refId}_${e.id}`:e.id}`),!0):!1,p=o?.split(`--`,2)[0],m=a?u[a].index:c,h=a?u[a].filteredIndex:l;if(!(!m||!h))if(r)if(!e)f(m[cL(p,r)]);else{let t=a?`${a}_${cL(e,r)}`:cL(e,r);if(m[t])f(m[t]);else{let t=m[oL(e)];if(t?.type===`component`){let e=t.children.find(e=>m[e].name===r);f(e?m[e]:void 0)}}}else{let t=e?m[e]||m[oL(e)]:m[p];if(!t)throw Error(`Unknown id or title: '${e}'`);f(t)||f(s.findLeafEntry(h,t.id))}},findLeafEntry(e,t){let n=e[t];if(n.type===`docs`||n.type===`story`)return n;let r=n.children.find(t=>e[t])||n.children[0];return s.findLeafEntry(e,r)},findLeafStoryId(e,t){return s.findLeafEntry(e,t)?.id},findAllLeafStoryIds(e){let{index:n}=t.getState();if(!n)return[];let r=(e,t=[])=>{let i=n[e];return i&&(i.type===`story`&&t.push(i.id),`children`in i&&i.children?.forEach(e=>r(e,t))),t};return r(e,[])},findSiblingStoryId(e,t,n,r){if(r){let r=OSe(t),i=r.findIndex(t=>t.includes(e));return i===r.length-1&&n>0||i===0&&n<0?void 0:r[i+n]?r[i+n][0]:void 0}let i=kSe(t),a=i.indexOf(e);if(!(a===i.length-1&&n>0)&&!(a===0&&n<0))return i[a+n]},updateStoryArgs:(e,t)=>{let{id:n,refId:i}=e;r.channel?.emit(SCe,{storyId:n,updatedArgs:t,options:{target:i}})},resetStoryArgs:(e,t)=>{let{id:n,refId:i}=e;r.channel?.emit(lCe,{storyId:n,argNames:t,options:{target:i}})},fetchIndex:async()=>{try{let e=await ACe(jCe);if(e.status!==200)throw Error(await e.text());let t=await e.json();if(t.v<3){iCe.warn(`Skipping story index with version v${t.v}, awaiting SET_STORIES.`);return}await s.setIndex(t)}catch(e){await t.setState({indexError:e})}},setIndex:async e=>{let{filteredIndex:n,index:i,filters:a}=t.getState(),s=FX.getAll(),c=$Y(e,{provider:r,docsOptions:o,filters:a,allStatuses:s}),l=$Y(e,{provider:r,docsOptions:o,filters:{},allStatuses:s});await t.setState({internal_index:e,filteredIndex:eX(c,n),index:eX(l,i),indexError:void 0})},updateStory:async(n,r,i)=>{if(i){let{id:t,index:a,filteredIndex:o}=i;a&&a[n]&&(a[n]={...a[n],...r}),o&&o[n]&&(o[n]={...o[n],...r}),await e.updateRef(t,{index:a,filteredIndex:o})}else{let{index:e,filteredIndex:i}=t.getState();e&&e[n]&&(e[n]={...e[n],...r}),i&&i[n]&&(i[n]={...i[n],...r}),(e||i)&&await t.setState({index:e,filteredIndex:i})}},updateDocs:async(n,r,i)=>{if(i){let{id:t,index:a,filteredIndex:o}=i;a[n]={...a[n],...r},o[n]={...o[n],...r},await e.updateRef(t,{index:a,filteredIndex:o})}else{let{index:e,filteredIndex:i}=t.getState();e&&(e[n]={...e[n],...r}),i&&(i[n]={...i[n],...r}),(e||i)&&await t.setState({index:e,filteredIndex:i})}},setPreviewInitialized:async n=>{n?e.updateRef(n.id,{previewInitialized:!0}):t.setState({previewInitialized:!0})},experimental_setFilter:async(n,i)=>{await t.setState({filters:{...t.getState().filters,[n]:i}});let{internal_index:a}=t.getState();if(!a)return;await s.setIndex(a);let o=await e.getRefs();Object.entries(o).forEach(([t,{internal_index:n,...r}])=>{e.setRef(t,{...r,storyIndex:n},!0)}),r.channel?.emit(pCe,{id:n})}};return r.channel?.on(xCe,function({storyId:i,viewMode:a}){let{sourceType:o}=oX(this,e);if(o===`local`){let e=t.getState(),o=e.path===`/`||e.viewMode===`story`||e.viewMode===`docs`,s=e.viewMode&&e.storyId,c=e.viewMode!==a||e.storyId!==i,{type:l}=e.index?.[e.storyId]||{};o&&(s&&c&&!(l===`root`||l===`component`||l===`group`)?r.channel?.emit(fCe,{storyId:e.storyId,viewMode:e.viewMode}):c&&n(`/${a}/${i}`))}}),r.channel?.on(oCe,function(){let{ref:t}=oX(this,e);s.setPreviewInitialized(t)}),r.channel?.on(_Ce,function(){let{sourceType:t}=oX(this,e);if(t===`local`){let t=s.getCurrentParameter(`options`);t&&e.setOptions(IX(t))}}),r.channel?.on(bCe,function({id:n,...i}){let{ref:a,sourceType:o}=oX(this,e);if(s.updateStory(n,{...i,prepared:!0},a),!a&&!t.getState().hasCalledSetOptions){let{options:n}=i.parameters;e.setOptions(IX(n)),t.setState({hasCalledSetOptions:!0})}if(o===`local`){let{storyId:e,index:n,refId:i}=t.getState();if(!n)return;let a=Array.from(new Set([s.findSiblingStoryId(e,n,1,!0),s.findSiblingStoryId(e,n,-1,!0)])).filter(Boolean);r.channel?.emit(cCe,{ids:a,options:{target:i}})}}),r.channel?.on(sCe,function({id:t,...n}){let{ref:r}=oX(this,e);s.updateStory(t,{...n,prepared:!0},r)}),r.channel?.on(mCe,function(t){let{ref:n}=oX(this,e);if(n)e.setRef(n.id,{...n,storyIndex:t},!0);else{s.setIndex(t);let n=s.getCurrentParameter(`options`);e.setOptions(IX(n))}}),r.channel?.on(hCe,function(t){let{ref:n}=oX(this,e),r=t.v?CSe(t):t.stories;if(n)e.setRef(n.id,{...n,setStoriesData:r},!0);else throw Error(`Cannot call SET_STORIES for local frame`)}),r.channel?.on(uCe,function({kind:t,title:n=t,story:r,name:i=r,storyId:a,...o}){let{ref:s}=oX(this,e);s?e.selectStory(a||n,i,{...o,ref:s.id}):e.selectStory(a||n,i,o)}),r.channel?.on(gCe,function({storyId:t,args:n}){let{ref:r}=oX(this,e);s.updateStory(t,{args:n},r)}),r.channel?.on(aCe,function(t){let{ref:n}=oX(this,e);s.setPreviewInitialized(n)}),r.channel?.on(yCe,function(t){let{ref:n}=oX(this,e);s.setPreviewInitialized(n)}),r.channel?.on(dCe,()=>{let e=r.getConfig();e?.sidebar?.filters&&t.setState({filters:{...t.getState().filters,...e?.sidebar?.filters}})}),FX.onAllStatusChange(async()=>{let{internal_index:n}=t.getState();if(!n)return;await s.setIndex(n);let r=await e.getRefs();Object.entries(r).forEach(([t,{internal_index:n,...r}])=>{e.setRef(t,{...r,storyIndex:n},!0)})}),{api:s,state:{storyId:i,viewMode:a,hasCalledSetOptions:!1,previewInitialized:!1,filters:r.getConfig()?.sidebar?.filters||{}},init:async()=>{r.channel?.on(vCe,()=>s.fetchIndex()),await s.fetchIndex()}}},LX={};XM(LX,{init:()=>BCe});var{GLOBALS_UPDATED:PCe,NAVIGATE_URL:FCe,SET_CURRENT_STORY:ICe,STORY_ARGS_UPDATED:LCe,UPDATE_QUERY_PARAMS:RCe}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:RX}=__STORYBOOK_MODULE_GLOBAL__,zX=ZM(tN(),1),BX=e=>{if(e===`true`||e===`1`)return!0;if(e===`false`||e===`0`)return!1},VX=e=>Object.fromEntries(e.split(`;`).map(e=>e.split(`:`)).map(([e,t])=>[e,encodeURIComponent(t)]).filter(([e,t])=>e&&t)),HX=(e,t)=>{let n=VX(e),r=VX(t);return Object.entries({...n,...r}).map(([e,t])=>`${e}:${t}`).join(`;`)},UX,zCe=({state:{location:e,path:t,viewMode:n,storyId:r},singleStory:i})=>{let{full:a,panel:o,nav:s,shortcuts:c,addonPanel:l,tabs:u,path:d,...f}=LJ(e),p,m,h;BX(a)===!0?(p=0,m=0,h=0):BX(a)===!1&&(p=dX.layout.navSize,m=dX.layout.bottomPanelHeight,h=dX.layout.rightPanelWidth),i||(BX(s)===!0&&(p=dX.layout.navSize),BX(s)===!1&&(p=0)),BX(o)===!1&&(m=0,h=0);let g={navSize:p,bottomPanelHeight:m,rightPanelWidth:h,panelPosition:[`right`,`bottom`].includes(o)?o:void 0,showTabs:BX(u)},_={enableShortcuts:BX(c)},v=l||void 0,y=r,b=TJ(UX,f)?UX:f;return UX=b,{viewMode:n,layout:g,ui:_,selectedPanel:v,location:e,path:t,customQueryParams:b,storyId:y}},BCe=e=>{let{store:t,navigate:n,provider:r,fullAPI:i}=e,a=(e,t={},r={})=>n([e,...Object.entries(t).filter(([,e])=>e).sort(([e],[t])=>e<t?-1:1).map(([e,t])=>`${e}=${t}`)].join(`&`),r),o={getStoryHrefs(e,n={}){let{id:r,refId:a}=i.getCurrentStoryData()??{},o=e===r&&n.refId===a,{customQueryParams:s,location:c,refs:l}=t.getState(),{base:u,inheritArgs:d=o,inheritGlobals:f=!0,queryParams:p={},refId:m,viewMode:h=`story`}=n;if(m&&!l[m])throw Error(`Invalid refId: ${m}`);let g=c.pathname||`/`,_=RX.window.location.origin+g,v=RX.STORYBOOK_NETWORK_ADDRESS??_,y=u===`origin`?_:u===`network`?v:g,b=m?l[m].url+`/iframe.html`:RX.PREVIEW_URL||`${y.replace(/\/[^/]*$/,`/`)}iframe.html`,x=m?`&refId=${encodeURIComponent(m)}`:``,{args:S=``,globals:C=``,...w}=p,T=d?HX(s?.args??``,S):S,E=f?HX(s?.globals??``,C):C,D=(0,zX.stringify)(w,{nesting:!0,nestingSyntax:`js`}),O=(0,zX.stringify)(Ade(w,[`id`,`viewMode`]),{nesting:!0,nestingSyntax:`js`});return T&&=`&args=${T}`,E&&=`&globals=${E}`,D&&=`&${D}`,O&&=`&${O}`,{managerHref:`${y}?path=/${h}/${m?`${m}_`:``}${e}${T}${E}${D}`,previewHref:`${b}?id=${e}&viewMode=${h}${x}${T}${m?``:E}${O}`}},getQueryParam(e){let{customQueryParams:n}=t.getState();return n?n[e]:void 0},getUrlState(){let{location:e,path:n,customQueryParams:r,storyId:i,url:a,viewMode:o}=t.getState();return{path:n,hash:e.hash??``,queryParams:r,storyId:i,url:a,viewMode:o}},setQueryParams(e){let{customQueryParams:n}=t.getState(),i={},a={...n,...Object.entries(e).reduce((e,[t,n])=>(n!==null&&(e[t]=n),e),i)};TJ(n,a)||(t.setState({customQueryParams:a}),r.channel?.emit(RCe,a))},applyQueryParams(e,t){let{path:n,hash:r=``,queryParams:i}=o.getUrlState();a(`${n}${r}`,{...i,...e},t),o.setQueryParams(e)},navigateUrl(e,t){n(e,{plain:!0,...t})}},s=()=>{let{path:e,hash:t=``,queryParams:n,viewMode:r}=o.getUrlState();if(r!==`story`)return;let s=i.getCurrentStoryData();if(s?.type!==`story`)return;let{args:c,initialArgs:l}=s,u=IJ(l,c);a(`${e}${t}`,{...n,args:u},{replace:!0}),o.setQueryParams({args:u})};r.channel?.on(ICe,()=>s());let c;return r.channel?.on(LCe,()=>{`requestIdleCallback`in RX.window?(c&&RX.window.cancelIdleCallback(c),c=RX.window.requestIdleCallback(s,{timeout:1e3})):(c&&clearTimeout(c),setTimeout(s,100))}),r.channel?.on(PCe,({userGlobals:e,initialGlobals:t})=>{let{path:n,hash:r=``,queryParams:i}=o.getUrlState(),s=IJ(t,zY(t,e));a(`${n}${r}`,{...i,globals:s},{replace:!0}),o.setQueryParams({globals:s})}),r.channel?.on(FCe,(e,t)=>{o.navigateUrl(e,t)}),{api:o,state:zCe(e)}},WX={};XM(WX,{init:()=>GCe});var VCe=ZM(KN(),1),{global:GX}=__STORYBOOK_MODULE_GLOBAL__,HCe=`10.2.8`,{VERSIONCHECK:UCe}=GX,KX=(0,VCe.default)(1)(()=>{try{return{...JSON.parse(UCe).data||{}}}catch{return{}}}),WCe=e=>e.includes(`vue`)?`vue`:e,GCe=({store:e})=>{let{dismissedVersionNotification:t}=e.getState(),n={versions:{current:{version:HCe},...KX()},dismissedVersionNotification:t},r={getCurrentVersion:()=>{let{versions:{current:t}}=e.getState();return t},getLatestVersion:()=>{let{versions:{latest:t,next:n,current:r}}=e.getState();return r&&LY.default.prerelease(r.version)&&n?t&&LY.default.gt(t.version,n.version)?t:n:t},getDocsUrl:({asset:t,subpath:n=t,versioned:r,renderer:i,ref:a=`ui`})=>{let{versions:o}=e.getState(),s=o.latest?.version,c=o.current?.version,l=c?.startsWith(`0.0.0`)&&s||c,u=`https://storybook.js.org/${t?`docs-assets`:`docs`}/`;if(t&&l)u+=`${LY.default.major(l)}.${LY.default.minor(l)}/`;else if(r&&l&&s){let e=LY.default.diff(s,l);e===`patch`||e===null||(u+=`${LY.default.major(l)}.${LY.default.minor(l)}/`)}let[d,f]=n?.split(`#`)||[];if(d&&(u+=t?d:`${d}/`),i&&typeof GX.STORYBOOK_RENDERER<`u`){let e=GX.STORYBOOK_RENDERER;e&&(u+=`?renderer=${WCe(e)}`)}return a&&(u+=`${u.includes(`?`)?`&`:`?`}ref=${a}`),f&&(u+=`#${f}`),u},versionUpdateAvailable:()=>{let e=r.getLatestVersion(),t=r.getCurrentVersion();if(e){if(!e.version||!t.version)return!0;let n=LY.default.prerelease(t.version)?`${LY.default.major(t.version)}.${LY.default.minor(t.version)}.${LY.default.patch(t.version)}`:t.version,r=LY.default.diff(n,e.version);return LY.default.gt(e.version,n)&&r!==`patch`&&!r.includes(`pre`)}return!1}};return{init:async()=>{let{versions:t={}}=e.getState(),{latest:n,next:r}=KX();await e.setState({versions:{...t,latest:n,next:r}})},state:n,api:r}},qX={};XM(qX,{init:()=>QCe});var{REQUEST_WHATS_NEW_DATA:KCe,RESULT_WHATS_NEW_DATA:qCe,SET_WHATS_NEW_CACHE:JCe,TOGGLE_WHATS_NEW_NOTIFICATIONS:YCe}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:XCe}=__STORYBOOK_MODULE_GLOBAL__,JX=`whats-new`,ZCe=({color:e=`currentColor`,size:t=14})=>X.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},X.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M2.042.616a.704.704 0 00-.66.729L1.816 12.9c.014.367.306.66.672.677l9.395.422h.032a.704.704 0 00.704-.703V.704c0-.015 0-.03-.002-.044a.704.704 0 00-.746-.659l-.773.049.057 1.615a.105.105 0 01-.17.086l-.52-.41-.617.468a.105.105 0 01-.168-.088L9.746.134 2.042.616zm8.003 4.747c-.247.192-2.092.324-2.092.05.04-1.045-.429-1.091-.689-1.091-.247 0-.662.075-.662.634 0 .57.607.893 1.32 1.27 1.014.538 2.24 1.188 2.24 2.823 0 1.568-1.273 2.433-2.898 2.433-1.676 0-3.141-.678-2.976-3.03.065-.275 2.197-.21 2.197 0-.026.971.195 1.256.753 1.256.43 0 .624-.236.624-.634 0-.602-.633-.958-1.361-1.367-.987-.554-2.148-1.205-2.148-2.7 0-1.494 1.027-2.489 2.86-2.489 1.832 0 2.832.98 2.832 2.845z`,fill:e})),QCe=({fullAPI:e,store:t,provider:n})=>{let r={whatsNewData:void 0};function i(e){t.setState({whatsNewData:e}),r.whatsNewData=e}let a={isWhatsNewUnread(){return r.whatsNewData?.status===`SUCCESS`&&!r.whatsNewData.postIsRead},whatsNewHasBeenRead(){r.whatsNewData?.status===`SUCCESS`&&(s({lastReadPost:r.whatsNewData.url}),i({...r.whatsNewData,postIsRead:!0}),e.clearNotification(JX))},toggleWhatsNewNotifications(){r.whatsNewData?.status===`SUCCESS`&&(i({...r.whatsNewData,disableWhatsNewNotifications:!r.whatsNewData.disableWhatsNewNotifications}),n.channel?.emit(YCe,{disableWhatsNewNotifications:r.whatsNewData.disableWhatsNewNotifications}))}};function o(){return n.channel?.emit(KCe),new Promise(e=>n.channel?.once(qCe,({data:t})=>e(t)))}function s(e){n.channel?.emit(JCe,e)}return{init:async()=>{if(XCe.CONFIG_TYPE!==`DEVELOPMENT`)return;let t=await o();i(t);let n=e.getUrlState();!(n?.path===`/onboarding`||n.queryParams?.onboarding===`true`)&&t.status===`SUCCESS`&&!t.disableWhatsNewNotifications&&t.showNotification&&e.addNotification({id:JX,link:`/settings/whats-new`,content:{headline:t.title,subHeadline:`Learn what's new in Storybook`},icon:X.createElement(ZCe,null),onClear({dismissed:e}){e&&s({lastDismissedPost:t.url})}})},state:r,api:a}},YX=ZM(eSe(),1);(e=>{e.fn(`set`,function(t,n){return e.set(this._area,this._in(t),xbe(n,{maxDepth:50}))}),e.fn(`get`,function(t,n){let r=e.get(this._area,this._in(t));return r===null?n||r:Cbe(r)})})(YX.default._);var XX=`@storybook/manager/store`;function ZX(e){return e.get(XX)||{}}function $Ce(e,t){return e.set(XX,t)}function ewe(e,t){return $Ce(e,{...ZX(e),...t})}var twe=class{constructor({setState:e,getState:t}){this.upstreamSetState=e,this.upstreamGetState=t}getInitialState(e){return{...e,...ZX(YX.default.local),...ZX(YX.default.session)}}getState(){return this.upstreamGetState()}async setState(e,t,n){let r,i;typeof t==`function`?(r=t,i=n):i=t;let{persistence:a=`none`}=i||{},o={},s={};typeof e==`function`?o=t=>(s=e(t),s):(o=e,s=o);let c=await new Promise(e=>{this.upstreamSetState(o,()=>{e(this.getState())})});return a!==`none`&&await ewe(a===`session`?YX.default.session:YX.default.local,s),r&&r(c),c}},{ActiveTabs:nwe}=sX,QX=sSe({api:void 0,state:BY({})}),rwe=(...e)=>cSe({},...e),iwe=class extends X.Component{constructor(e){super(e),this.api={},this.initModules=()=>{this.modules.forEach(e=>{`init`in e&&e.init()})};let{location:t,path:n,refId:r,viewMode:i=e.docsOptions.docsMode?`docs`:e.viewMode,singleStory:a,storyId:o,docsOptions:s,navigate:c}=e,l=new twe({getState:()=>this.state,setState:(e,t)=>(this.setState(e,()=>t(this.state)),this.state)}),u={location:t,path:n,viewMode:i,singleStory:a,storyId:o,refId:r},d={docsOptions:s};this.state=l.getInitialState(BY({...u,...d}));let f={navigate:c,store:l,provider:e.provider};this.modules=[bX,qY,WY,sX,_X,xX,SX,MX,XY,JY,LX,WX,qX,vX].map(e=>e.init({...u,...d,...f,state:this.state,fullAPI:this.api}));let p=BY(this.state,...this.modules.map(e=>e.state)),m=Object.assign(this.api,{navigate:c},...this.modules.map(e=>e.api));this.state=p,this.api=m}static getDerivedStateFromProps(e,t){return t.path===e.path?null:{...t,location:e.location,path:e.path,refId:e.refId,viewMode:e.viewMode,storyId:e.storyId}}shouldComponentUpdate(e,t){let n=this.props,r=this.state;return n.path!==e.path||!GN(r,t)}render(){let{children:e}=this.props,t={state:this.state,api:this.api};return X.createElement(awe,{effect:this.initModules},X.createElement(QX.Provider,{value:t},X.createElement(swe,null,e)))}};iwe.displayName=`Manager`;var awe=({children:e,effect:t})=>(X.useEffect(t,[]),e),owe=e=>e;function swe({filter:e=owe,children:t}){let n=(0,X.useContext)(QX),r=(0,X.useRef)(t),i=(0,X.useRef)(e);if(typeof r.current!=`function`)return X.createElement(X.Fragment,null,r.current);let a=i.current(n);return(0,X.useMemo)(()=>{let e=r.current;return X.createElement(e,{...a})},(0,X.useMemo)(()=>[...Object.entries(a).reduce((e,t)=>e.concat(t),[])],[n.state]))}globalThis.STORYBOOK_ADDON_STATE={};var{STORYBOOK_ADDON_STATE:cwe}=globalThis,{Channel:lwe}=__STORYBOOK_MODULE_CHANNELS__,uwe={id:`storybook/test-provider`,leader:!0,initialState:{}};function dwe({universalTestProviderStore:e,useUniversalStore:t}){let n={settingsChanged:()=>{e.untilReady().then(()=>{e.send({type:`settings-changed`})})},onRunAll:t=>e.subscribe(`run-all`,t),onClearAll:t=>e.subscribe(`clear-all`,t)},r={...n,getFullState:e.getState,setFullState:e.setState,onSettingsChanged:t=>e.subscribe(`settings-changed`,t),runAll:async()=>{await e.untilReady(),e.send({type:`run-all`})},clearAll:async()=>{await e.untilReady(),e.send({type:`clear-all`})}},i=t=>{let r=()=>e.getState()[t]??`test-provider-state:pending`,i=n=>{e.untilReady().then(()=>{e.setState(e=>({...e,[t]:n}))})};return{...n,testProviderId:t,getState:r,setState:i,runWithState:async e=>{i(`test-provider-state:running`);try{await e(),i(`test-provider-state:succeeded`)}catch{i(`test-provider-state:crashed`)}}}};return t?{getTestProviderStoreById:i,fullTestProviderStore:r,universalTestProviderStore:e,useTestProviderStore:n=>t(e,n)[0]}:{getTestProviderStoreById:i,fullTestProviderStore:r,universalTestProviderStore:e}}var{fullTestProviderStore:fwe,getTestProviderStoreById:pwe,useTestProviderStore:mwe,universalTestProviderStore:hwe}=dwe({universalTestProviderStore:Oq.create({...uwe,leader:globalThis.CONFIG_TYPE===`PRODUCTION`}),useUniversalStore:PX});Oq.create({id:`storybook/checklist`,initialState:{items:{accessibilityTests:{status:`open`},autodocs:{status:`open`},ciTests:{status:`open`},controls:{status:`open`},coverage:{status:`open`},guidedTour:{status:`open`},installA11y:{status:`open`},installChromatic:{status:`open`},installDocs:{status:`open`},installVitest:{status:`open`},mdxDocs:{status:`open`},moreComponents:{status:`open`},moreStories:{status:`open`},onboardingSurvey:{status:`open`},organizeStories:{status:`open`},publishStorybook:{status:`open`},renderComponent:{status:`open`},runTests:{status:`open`},viewports:{status:`open`},visualTests:{status:`open`},whatsNewStorybook10:{status:`open`},writeInteractions:{status:`open`}},widget:{}},leader:globalThis.CONFIG_TYPE===`PRODUCTION`});var gwe=c((e=>{var t=lL();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),_we=c(((e,t)=>{t.exports=gwe()})),vwe=l({A:()=>aZ,ActionList:()=>m4,Bar:()=>j6,Blockquote:()=>oZ,Button:()=>c4,Code:()=>uZ,DL:()=>dZ,Div:()=>fZ,EmptyTabContent:()=>I6,ErrorFormatter:()=>R4,FlexBar:()=>N6,Form:()=>X4,H1:()=>pZ,H2:()=>mZ,H3:()=>hZ,H4:()=>gZ,H5:()=>_Z,H6:()=>vZ,HR:()=>yZ,IconButton:()=>l4,Img:()=>bZ,LI:()=>xZ,Link:()=>AZ,ListItem:()=>O6,Loader:()=>u8,OL:()=>SZ,P:()=>CZ,Popover:()=>Z4,PopoverProvider:()=>T6,Pre:()=>wZ,ResetWrapper:()=>iZ,ScrollArea:()=>gq,Select:()=>s3,Separator:()=>H6,Span:()=>TZ,SyntaxHighlighter:()=>lZ,TT:()=>EZ,TabBar:()=>R6,TabButton:()=>F6,TabList:()=>Q6,TabPanel:()=>$6,TabWrapper:()=>z6,Table:()=>DZ,Tabs:()=>B6,TabsState:()=>V6,TabsView:()=>i8,ToggleButton:()=>u4,Toolbar:()=>U6,Tooltip:()=>E6,TooltipLinkList:()=>k6,TooltipNote:()=>IZ,TooltipProvider:()=>o4,UL:()=>OZ,Zoom:()=>I4,codeCommon:()=>tZ,components:()=>d8,convertToReactAriaPlacement:()=>a4,createCopyToClipboardFunction:()=>yq,nameSpaceClassNames:()=>$X,resetComponents:()=>f8,useTabsState:()=>r8,withReset:()=>nZ},1),ywe=_we(),$X=({...e},t)=>{let n=[e.class,e.className];return delete e.class,e.className=[`sbdocs`,`sbdocs-${t}`,...n].filter(Boolean).join(` `),e},eZ=({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`}}),tZ=({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 hsl(0 0 0 / 0.05)`:`1px solid hsl(0 0 100 / 0.05)`,color:e.color.defaultText,backgroundColor:e.base===`light`?`hsl(0 0 0 / 0.01)`:`hsl(0 0 100 / 0.02)`}),nZ=({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`}),rZ={margin:`16px 0`},iZ=$.div(nZ),aZ=$(({href:e=``,...t})=>{let n=/^\//.test(e)?`./?path=${e}`:e,r=/^#.*/.test(e)?`_self`:`_top`;return X.createElement(`a`,{href:n,target:r,...t})})(nZ,({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}})),oZ=$.blockquote(nZ,rZ,({theme:e})=>({borderLeft:`4px solid ${e.color.medium}`,padding:`0 15px`,color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}})),sZ=[],cZ=null,bwe=(0,X.lazy)(async()=>{let{SyntaxHighlighter:t}=await e(async()=>{let{SyntaxHighlighter:e}=await import(`./syntaxhighlighter-ED5Y7EFY-vqxOYdgA.js`);return{SyntaxHighlighter:e}},[],import.meta.url);return sZ.length>0&&(sZ.forEach(e=>{t.registerLanguage(...e)}),sZ=[]),cZ===null&&(cZ=t),{default:e=>X.createElement(t,{...e})}}),xwe=(0,X.lazy)(async()=>{let[{SyntaxHighlighter:t},{formatter:n}]=await Promise.all([e(()=>import(`./syntaxhighlighter-ED5Y7EFY-vqxOYdgA.js`),[],import.meta.url),e(()=>import(`./formatter-EIJCOSYU-DKX-dica.js`),[],import.meta.url)]);return sZ.length>0&&(sZ.forEach(e=>{t.registerLanguage(...e)}),sZ=[]),cZ===null&&(cZ=t),{default:e=>X.createElement(t,{...e,formatter:n})}}),lZ=e=>X.createElement(X.Suspense,{fallback:X.createElement(`div`,null)},e.format===!1?X.createElement(bwe,{...e}):X.createElement(xwe,{...e}));lZ.registerLanguage=(...e)=>{if(cZ!==null){cZ.registerLanguage(...e);return}sZ.push(e)};var Swe=e=>typeof e==`string`,Cwe=/[\n\r]/g,wwe=$.code(({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:`antialiased`,MozOsxFontSmoothing:`grayscale`,display:`inline-block`,paddingLeft:2,paddingRight:2,verticalAlign:`baseline`,color:`inherit`}),tZ),Twe=$(lZ)(({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`}})),uZ=({className:e,children:t,...n})=>{let r=(e||``).match(/lang-(\S+)/),i=X.Children.toArray(t);return i.filter(Swe).some(e=>e.match(Cwe))?X.createElement(Twe,{bordered:!0,copyable:!0,language:r?.[1]??`text`,format:!1,...n},t):X.createElement(wwe,{...n,className:e},i)},dZ=$.dl(nZ,rZ,{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}}),fZ=$.div(nZ),pZ=$.h1(nZ,eZ,({theme:e})=>({fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold})),mZ=$.h2(nZ,eZ,({theme:e})=>({fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`})),hZ=$.h3(nZ,eZ,({theme:e})=>({fontSize:`${e.typography.size.m1}px`})),gZ=$.h4(nZ,eZ,({theme:e})=>({fontSize:`${e.typography.size.s3}px`})),_Z=$.h5(nZ,eZ,({theme:e})=>({fontSize:`${e.typography.size.s2}px`})),vZ=$.h6(nZ,eZ,({theme:e})=>({fontSize:`${e.typography.size.s2}px`,color:e.color.dark})),yZ=$.hr(({theme:e})=>({border:`0 none`,borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0})),bZ=$.img({maxWidth:`100%`}),xZ=$.li(nZ,({theme:e})=>({fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:`24px`,"& + li":{marginTop:`.25em`},"& ul, & ol":{marginTop:`.25em`,marginBottom:0},"& code":tZ({theme:e})})),SZ=$.ol(nZ,rZ,{paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},{listStyle:`decimal`}),CZ=$.p(nZ,rZ,({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:`24px`,color:e.color.defaultText,"& code":tZ({theme:e})})),wZ=$.pre(nZ,rZ,({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`}})),TZ=$.span(nZ,({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`}}})),EZ=$.title(tZ),DZ=$.table(nZ,rZ,({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}})),OZ=$.ul(nZ,rZ,{paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},{listStyle:`disc`}),kZ={h1:e=>X.createElement(pZ,{...$X(e,`h1`)}),h2:e=>X.createElement(mZ,{...$X(e,`h2`)}),h3:e=>X.createElement(hZ,{...$X(e,`h3`)}),h4:e=>X.createElement(gZ,{...$X(e,`h4`)}),h5:e=>X.createElement(_Z,{...$X(e,`h5`)}),h6:e=>X.createElement(vZ,{...$X(e,`h6`)}),pre:e=>X.createElement(wZ,{...$X(e,`pre`)}),a:e=>X.createElement(aZ,{...$X(e,`a`)}),hr:e=>X.createElement(yZ,{...$X(e,`hr`)}),dl:e=>X.createElement(dZ,{...$X(e,`dl`)}),blockquote:e=>X.createElement(oZ,{...$X(e,`blockquote`)}),table:e=>X.createElement(DZ,{...$X(e,`table`)}),img:e=>X.createElement(bZ,{...$X(e,`img`)}),div:e=>X.createElement(fZ,{...$X(e,`div`)}),span:e=>X.createElement(TZ,{...$X(e,`span`)}),li:e=>X.createElement(xZ,{...$X(e,`li`)}),ul:e=>X.createElement(OZ,{...$X(e,`ul`)}),ol:e=>X.createElement(SZ,{...$X(e,`ol`)}),p:e=>X.createElement(CZ,{...$X(e,`p`)}),code:e=>X.createElement(uZ,{...$X(e,`code`)}),tt:e=>X.createElement(EZ,{...$X(e,`tt`)}),resetwrapper:e=>X.createElement(iZ,{...$X(e,`resetwrapper`)})};$.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.fgColor.critical,background:e.bgColor.critical,boxShadow:`inset 0 0 0 1px ${e.borderColor.critical}`};case`negative`:return{color:e.fgColor.negative,background:e.bgColor.negative,boxShadow:`inset 0 0 0 1px ${e.borderColor.negative}`};case`warning`:return{color:e.fgColor.warning,background:e.bgColor.warning,boxShadow:`inset 0 0 0 1px ${e.borderColor.warning}`};case`neutral`:return{color:e.fgColor.muted,background:e.base===`dark`?e.barBg:e.background.app,boxShadow:`inset 0 0 0 1px ${JH(.8,e.textMutedColor)}`};case`positive`:return{color:e.fgColor.positive,background:e.bgColor.positive,boxShadow:`inset 0 0 0 1px ${e.borderColor.positive}`};case`active`:return{color:e.base===`light`?NH(.1,e.color.secondary):e.color.secondary,background:e.background.hoverable,boxShadow:`inset 0 0 0 1px ${JH(.9,e.color.secondary)}`};default:return{}}});var Ewe=0,Dwe=e=>e.button===Ewe&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey,Owe=(e,t)=>{Dwe(e)&&(e.preventDefault(),t(e))},kwe=$.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}}:{}),Awe=$.a(({theme:e})=>({display:`inline-block`,transition:`all 150ms ease-out`,textDecoration:`none`,color:e.color.secondary,"&:hover, &:focus":{cursor:`pointer`,color:NH(.07,e.color.secondary),"svg path:not([fill])":{fill:NH(.07,e.color.secondary)}},"&:active":{color:NH(.1,e.color.secondary),"svg path:not([fill])":{fill:NH(.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 r;return t&&(r=[e.textMutedColor,e.color.secondary,e.color.secondary]),n&&(r=[e.color.dark,e.color.secondary,e.color.secondary]),r?{color:r[0],"svg path:not([fill])":{fill:r[0]},"&:hover":{color:r[1],"svg path:not([fill])":{fill:r[1]}},"&:active":{color:r[2],"svg path:not([fill])":{fill:r[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`}:{}),AZ=(0,X.forwardRef)(({cancel:e=!0,children:t,onClick:n=void 0,withArrow:r=!1,containsIcon:i=!1,className:a=void 0,style:o=void 0,isButton:s=!1,...c},l)=>X.createElement(Awe,{...c,ref:l,isButton:s,role:s?`button`:void 0,onClick:n&&e?e=>Owe(e,n):n,className:a},X.createElement(kwe,{withArrow:r,containsIcon:i},t,r&&X.createElement(Cq,null))));AZ.displayName=`Link`,$.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{deprecate:jZ}=__STORYBOOK_MODULE_CLIENT_LOGGER__;function MZ(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function jwe(...e){return t=>{let n=!1,r=e.map(e=>{let r=MZ(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():MZ(e[t],null)}}}}var Mwe=Symbol.for(`react.lazy`),NZ=X.use;function Nwe(e){return typeof e==`object`&&!!e&&`then`in e}function PZ(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===Mwe&&`_payload`in e&&Nwe(e._payload)}function Pwe(e){let t=Iwe(e),n=X.forwardRef((e,n)=>{let{children:r,...i}=e;PZ(r)&&typeof NZ==`function`&&(r=NZ(r._payload));let a=X.Children.toArray(r),o=a.find(Rwe);if(o){let e=o.props.children,r=a.map(t=>t===o?X.Children.count(e)>1?X.Children.only(null):X.isValidElement(e)?e.props.children:null:t);return(0,lK.jsx)(t,{...i,ref:n,children:X.isValidElement(e)?X.cloneElement(e,void 0,r):null})}return(0,lK.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}var Fwe=Pwe(`Slot`);function Iwe(e){let t=X.forwardRef((e,t)=>{let{children:n,...r}=e;if(PZ(n)&&typeof NZ==`function`&&(n=NZ(n._payload)),X.isValidElement(n)){let e=Bwe(n),i=zwe(r,n.props);return n.type!==X.Fragment&&(i.ref=t?jwe(t,e):e),X.cloneElement(n,i)}return X.Children.count(n)>1?X.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var FZ=Symbol(`radix.slottable`);function Lwe(e){let t=({children:e})=>(0,lK.jsx)(lK.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=FZ,t}Lwe(`Slottable`);function Rwe(e){return X.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===FZ}function zwe(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function Bwe(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)}var Vwe=$.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)`})),IZ=({note:e,...t})=>X.createElement(Vwe,{...t},e),{deprecate:Hwe}=__STORYBOOK_MODULE_CLIENT_LOGGER__,LZ=typeof document<`u`?X.useLayoutEffect:()=>{};function Uwe(e){let[t,n]=(0,X.useState)(e),r=(0,X.useRef)(t),i=(0,X.useRef)(null),a=(0,X.useRef)(()=>{if(!i.current)return;let e=i.current.next();if(e.done){i.current=null;return}r.current===e.value?a.current():n(e.value)});return LZ(()=>{r.current=t,i.current&&a.current()}),[t,(0,X.useCallback)(e=>{i.current=e(r.current),a.current()},[a])]}var RZ={prefix:String(Math.round(Math.random()*1e10)),current:0},zZ=X.createContext(RZ),Wwe=X.createContext(!1);typeof window<`u`&&window.document&&window.document.createElement;var BZ=new WeakMap;function Gwe(e=!1){let t=(0,X.useContext)(zZ),n=(0,X.useRef)(null);if(n.current===null&&!e){var r,i;let e=(i=X.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)==null||(r=i.ReactCurrentOwner)==null?void 0:r.current;if(e){let n=BZ.get(e);n==null?BZ.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,BZ.delete(e))}n.current=++t.current}return n.current}function Kwe(e){let t=(0,X.useContext)(zZ),n=Gwe(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function qwe(e){let t=X.useId(),[n]=(0,X.useState)(VZ()),r=n?`react-aria`:`react-aria${RZ.prefix}`;return e||`${r}-${t}`}var Jwe=typeof X.useId==`function`?qwe:Kwe;function Ywe(){return!1}function Xwe(){return!0}function Zwe(e){return()=>{}}function VZ(){return typeof X.useSyncExternalStore==`function`?X.useSyncExternalStore(Zwe,Ywe,Xwe):(0,X.useContext)(Wwe)}var Qwe=!!(typeof window<`u`&&window.document&&window.document.createElement),HZ=new Map,UZ;typeof FinalizationRegistry<`u`&&(UZ=new FinalizationRegistry(e=>{HZ.delete(e)}));function WZ(e){let[t,n]=(0,X.useState)(e),r=(0,X.useRef)(null),i=Jwe(t),a=(0,X.useRef)(null);if(UZ&&UZ.register(a,i),Qwe){let e=HZ.get(i);e&&!e.includes(r)?e.push(r):HZ.set(i,[r])}return LZ(()=>{let e=i;return()=>{UZ&&UZ.unregister(a),HZ.delete(e)}},[i]),(0,X.useEffect)(()=>{let e=r.current;return e&&n(e),()=>{e&&(r.current=null)}}),i}function $we(e,t){if(e===t)return e;let n=HZ.get(e);if(n)return n.forEach(e=>e.current=t),t;let r=HZ.get(t);return r?(r.forEach(t=>t.current=e),e):t}function GZ(e=[]){let t=WZ(),[n,r]=Uwe(t),i=(0,X.useCallback)(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return LZ(i,[t,i,...e]),n}function KZ(...e){return(...t)=>{for(let n of e)typeof n==`function`&&n(...t)}}var qZ=e=>e?.ownerDocument??document,JZ=e=>e&&`window`in e&&e.window===e?e:qZ(e).defaultView||window;function eTe(e){return typeof e==`object`&&!!e&&`nodeType`in e&&typeof e.nodeType==`number`}function tTe(e){return eTe(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&`host`in e}var nTe=!1;function YZ(){return nTe}function XZ(e,t){if(!YZ())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n=n.tagName===`SLOT`&&n.assignedSlot?n.assignedSlot.parentNode:tTe(n)?n.host:n.parentNode}return!1}var ZZ=(e=document)=>{var t;if(!YZ())return e.activeElement;let n=e.activeElement;for(;n&&`shadowRoot`in n&&(t=n.shadowRoot)!=null&&t.activeElement;)n=n.shadowRoot.activeElement;return n};function QZ(e){return YZ()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}var rTe=class{get currentNode(){return this._currentNode}set currentNode(e){if(!XZ(this.root,e))throw Error(`Cannot set currentNode to a node that is not contained by the root node.`);let t=[],n=e,r=e;for(this._currentNode=e;n&&n!==this.root;)if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let e=n,i=this._doc.createTreeWalker(e,this.whatToShow,{acceptNode:this._acceptNode});t.push(i),i.currentNode=r,this._currentSetFor.add(i),n=r=e.host}else n=n.parentNode;let i=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});t.push(i),i.currentNode=r,this._currentSetFor.add(i),this._walkerStack=t}get doc(){return this._doc}firstChild(){let e=this.currentNode,t=this.nextNode();return XZ(e,t)?(t&&(this.currentNode=t),t):(this.currentNode=e,null)}lastChild(){let e=this._walkerStack[0].lastChild();return e&&(this.currentNode=e),e}nextNode(){let e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){var t;let n;if(typeof this.filter==`function`?n=this.filter(e):(t=this.filter)!=null&&t.acceptNode&&(n=this.filter.acceptNode(e)),n===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let r=this.nextNode();return r&&(this.currentNode=r),r}return e&&(this.currentNode=e),e}else if(this._walkerStack.length>1){this._walkerStack.shift();let e=this.nextNode();return e&&(this.currentNode=e),e}else return null}previousNode(){let e=this._walkerStack[0];if(e.currentNode===e.root){if(this._currentSetFor.has(e))if(this._currentSetFor.delete(e),this._walkerStack.length>1){this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}else return null;return null}let t=e.previousNode();if(t){if(t.shadowRoot){var n;let e;if(typeof this.filter==`function`?e=this.filter(t):(n=this.filter)!=null&&n.acceptNode&&(e=this.filter.acceptNode(t)),e===NodeFilter.FILTER_ACCEPT)return t&&(this.currentNode=t),t;let r=this.lastChild();return r&&(this.currentNode=r),r}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(e,t,n,r){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=e=>{if(e.nodeType===Node.ELEMENT_NODE){let n=e.shadowRoot;if(n){let e=this._doc.createTreeWalker(n,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(e),NodeFilter.FILTER_ACCEPT}else{var t;if(typeof this.filter==`function`)return this.filter(e);if((t=this.filter)!=null&&t.acceptNode)return this.filter.acceptNode(e);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=t,this.filter=r??null,this.whatToShow=n??NodeFilter.SHOW_ALL,this._currentNode=t,this._walkerStack.unshift(e.createTreeWalker(t,n,this._acceptNode));let i=t.shadowRoot;if(i){let e=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(e)}}};function iTe(e,t,n,r){return YZ()?new rTe(e,t,n,r):e.createTreeWalker(t,n,r)}function $Z(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=$Z(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function aTe(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=$Z(e))&&(r&&(r+=` `),r+=t);return r}var oTe=aTe;function eQ(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e],i=r[e];typeof n==`function`&&typeof i==`function`&&e[0]===`o`&&e[1]===`n`&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=KZ(n,i):(e===`className`||e===`UNSAFE_className`)&&typeof n==`string`&&typeof i==`string`?t[e]=oTe(n,i):e===`id`&&n&&i?t.id=$we(n,i):t[e]=i===void 0?n:i}}return t}function tQ(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1,r=e.map(e=>{let r=nQ(e,t);return n||=typeof r==`function`,r});if(n)return()=>{r.forEach((t,n)=>{typeof t==`function`?t():nQ(e[n],null)})}}}function nQ(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}var sTe=new Set([`id`]),cTe=new Set([`aria-label`,`aria-labelledby`,`aria-describedby`,`aria-details`]),lTe=new Set([`href`,`hrefLang`,`target`,`rel`,`download`,`ping`,`referrerPolicy`]),uTe=new Set([`dir`,`lang`,`hidden`,`inert`,`translate`]),rQ=new Set(`onClick.onAuxClick.onContextMenu.onDoubleClick.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onTouchCancel.onTouchEnd.onTouchMove.onTouchStart.onPointerDown.onPointerMove.onPointerUp.onPointerCancel.onPointerEnter.onPointerLeave.onPointerOver.onPointerOut.onGotPointerCapture.onLostPointerCapture.onScroll.onWheel.onAnimationStart.onAnimationEnd.onAnimationIteration.onTransitionCancel.onTransitionEnd.onTransitionRun.onTransitionStart`.split(`.`)),dTe=/^(data-.*)$/;function iQ(e,t={}){let{labelable:n,isLink:r,global:i,events:a=i,propNames:o}=t,s={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(sTe.has(t)||n&&cTe.has(t)||r&&lTe.has(t)||i&&uTe.has(t)||a&&(rQ.has(t)||t.endsWith(`Capture`)&&rQ.has(t.slice(0,-7)))||o?.has(t)||dTe.test(t))&&(s[t]=e[t]);return s}function aQ(e){if(fTe())e.focus({preventScroll:!0});else{let t=pTe(e);e.focus(),mTe(t)}}var oQ=null;function fTe(){if(oQ==null){oQ=!1;try{document.createElement(`div`).focus({get preventScroll(){return oQ=!0,!0}})}catch{}}return oQ}function pTe(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function mTe(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function sQ(e){if(typeof window>`u`||window.navigator==null)return!1;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function cQ(e){return typeof window<`u`&&window.navigator!=null?e.test(window.navigator.userAgentData?.platform||window.navigator.platform):!1}function lQ(e){let t=null;return()=>(t??=e(),t)}var uQ=lQ(function(){return cQ(/^Mac/i)}),hTe=lQ(function(){return cQ(/^iPhone/i)}),dQ=lQ(function(){return cQ(/^iPad/i)||uQ()&&navigator.maxTouchPoints>1}),fQ=lQ(function(){return hTe()||dQ()}),gTe=lQ(function(){return uQ()||fQ()}),pQ=lQ(function(){return sQ(/AppleWebKit/i)&&!mQ()}),mQ=lQ(function(){return sQ(/Chrome/i)}),hQ=lQ(function(){return sQ(/Android/i)}),_Te=lQ(function(){return sQ(/Firefox/i)}),vTe=(0,X.createContext)({isNative:!0,open:xTe,useHref:e=>e});function gQ(){return(0,X.useContext)(vTe)}function yTe(e,t){let n=e.getAttribute(`target`);return(!n||n===`_self`)&&e.origin===location.origin&&!e.hasAttribute(`download`)&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function _Q(e,t,n=!0){var r,i;let{metaKey:a,ctrlKey:o,altKey:s,shiftKey:c}=t;_Te()&&!((i=window.event)==null||(r=i.type)==null)&&r.startsWith(`key`)&&e.target===`_blank`&&(uQ()?a=!0:o=!0);let l=pQ()&&uQ()&&!dQ()?new KeyboardEvent(`keydown`,{keyIdentifier:`Enter`,metaKey:a,ctrlKey:o,altKey:s,shiftKey:c}):new MouseEvent(`click`,{metaKey:a,ctrlKey:o,altKey:s,shiftKey:c,detail:1,bubbles:!0,cancelable:!0});_Q.isOpening=n,aQ(e),e.dispatchEvent(l),_Q.isOpening=!1}_Q.isOpening=!1;function bTe(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute(`data-href`)){let n=document.createElement(`a`);n.href=e.getAttribute(`data-href`),e.hasAttribute(`data-target`)&&(n.target=e.getAttribute(`data-target`)),e.hasAttribute(`data-rel`)&&(n.rel=e.getAttribute(`data-rel`)),e.hasAttribute(`data-download`)&&(n.download=e.getAttribute(`data-download`)),e.hasAttribute(`data-ping`)&&(n.ping=e.getAttribute(`data-ping`)),e.hasAttribute(`data-referrer-policy`)&&(n.referrerPolicy=e.getAttribute(`data-referrer-policy`)),e.appendChild(n),t(n),e.removeChild(n)}}function xTe(e,t){bTe(e,e=>_Q(e,t))}function vQ(e){let t=gQ().useHref(e?.href??``);return{href:e?.href?t:void 0,target:e?.target,rel:e?.rel,download:e?.download,ping:e?.ping,referrerPolicy:e?.referrerPolicy}}function STe(e,t,n,r){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&yTe(e.currentTarget,e)&&n&&(e.preventDefault(),t.open(e.currentTarget,e,n,r))}var yQ=new Map,bQ=new Set;function xQ(){if(typeof window>`u`)return;function e(e){return`propertyName`in e}let t=t=>{if(!e(t)||!t.target)return;let r=yQ.get(t.target);r||(r=new Set,yQ.set(t.target,r),t.target.addEventListener(`transitioncancel`,n,{once:!0})),r.add(t.propertyName)},n=t=>{if(!e(t)||!t.target)return;let r=yQ.get(t.target);if(r&&(r.delete(t.propertyName),r.size===0&&(t.target.removeEventListener(`transitioncancel`,n),yQ.delete(t.target)),yQ.size===0)){for(let e of bQ)e();bQ.clear()}};document.body.addEventListener(`transitionrun`,t),document.body.addEventListener(`transitionend`,n)}typeof document<`u`&&(document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,xQ):xQ());function CTe(){for(let[e]of yQ)`isConnected`in e&&!e.isConnected&&yQ.delete(e)}function SQ(e){requestAnimationFrame(()=>{CTe(),yQ.size===0?e():bQ.add(e)})}function CQ(){let e=(0,X.useRef)(new Map),t=(0,X.useCallback)((t,n,r,i)=>{let a=i?.once?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:a,options:i}),t.addEventListener(n,a,i)},[]),n=(0,X.useCallback)((t,n,r,i)=>{let a=e.current.get(r)?.fn||r;t.removeEventListener(n,a,i),e.current.delete(r)},[]),r=(0,X.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return(0,X.useEffect)(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function wQ(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=WZ(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(` `):i&&=i.trim().split(/\s+/).join(` `),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function TQ(e){let t=(0,X.useRef)(null),n=(0,X.useRef)(void 0),r=(0,X.useCallback)(t=>{if(typeof e==`function`){let n=e,r=n(t);return()=>{typeof r==`function`?r():n(null)}}else if(e)return e.current=t,()=>{e.current=null}},[e]);return(0,X.useMemo)(()=>({get current(){return t.current},set current(e){t.current=e,n.current&&=(n.current(),void 0),e!=null&&(n.current=r(e))}}),[r])}var wTe=X.useInsertionEffect??LZ;function EQ(e){let t=(0,X.useRef)(null);return wTe(()=>{t.current=e},[e]),(0,X.useCallback)((...e)=>{let n=t.current;return n?.(...e)},[])}function DQ(e,t){let n=(0,X.useRef)(!0),r=(0,X.useRef)(null);LZ(()=>(n.current=!0,()=>{n.current=!1}),[]),LZ(()=>{n.current?n.current=!1:(!r.current||t.some((e,t)=>!Object.is(e,r[t])))&&e(),r.current=t},t)}function TTe(){return typeof window.ResizeObserver<`u`}function OQ(e){let{ref:t,box:n,onResize:r}=e,i=EQ(r);(0,X.useEffect)(()=>{let e=t?.current;if(e)if(TTe()){let t=new window.ResizeObserver(e=>{e.length&&i()});return t.observe(e,{box:n}),()=>{e&&t.unobserve(e)}}else return window.addEventListener(`resize`,i,!1),()=>{window.removeEventListener(`resize`,i,!1)}},[t,n])}function kQ(e,t){LZ(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function AQ(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function jQ(e,t){let n=e;for(AQ(n,t)&&(n=n.parentElement);n&&!AQ(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function ETe(e,t){let n=[];for(;e&&e!==document.documentElement;)AQ(e,t)&&n.push(e),e=e.parentElement;return n}function MQ(e){return uQ()?e.metaKey:e.ctrlKey}var DTe=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]);function NQ(e){return e instanceof HTMLInputElement&&!DTe.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}typeof document<`u`&&window.visualViewport;var OTe=0,PQ=new Map;function kTe(e){let[t,n]=(0,X.useState)();return LZ(()=>{if(!e)return;let t=PQ.get(e);if(t)n(t.element.id);else{let r=`react-aria-description-${OTe++}`;n(r);let i=document.createElement(`div`);i.id=r,i.style.display=`none`,i.textContent=e,document.body.appendChild(i),t={refCount:0,element:i},PQ.set(e,t)}return t.refCount++,()=>{t&&--t.refCount===0&&(t.element.remove(),PQ.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function FQ(e,t,n,r){let i=EQ(n),a=n==null;(0,X.useEffect)(()=>{if(a||!e.current)return;let n=e.current;return n.addEventListener(t,i,r),()=>{n.removeEventListener(t,i,r)}},[e,t,r,a])}function IQ(e,t){let n=LQ(e,t,`left`),r=LQ(e,t,`top`),i=t.offsetWidth,a=t.offsetHeight,o=e.scrollLeft,s=e.scrollTop,{borderTopWidth:c,borderLeftWidth:l,scrollPaddingTop:u,scrollPaddingRight:d,scrollPaddingBottom:f,scrollPaddingLeft:p}=getComputedStyle(e),m=o+parseInt(l,10),h=s+parseInt(c,10),g=m+e.clientWidth,_=h+e.clientHeight,v=parseInt(u,10)||0,y=parseInt(f,10)||0,b=parseInt(d,10)||0,x=parseInt(p,10)||0;n<=o+x?o=n-parseInt(l,10)-x:n+i>g-b&&(o+=n+i-g+b),r<=h+v?s=r-parseInt(c,10)-v:r+a>_-y&&(s+=r+a-_+y),e.scrollLeft=o,e.scrollTop=s}function LQ(e,t,n){let r=n===`left`?`offsetLeft`:`offsetTop`,i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}function RQ(e,t){if(e&&document.contains(e)){let o=document.scrollingElement||document.documentElement,s=window.getComputedStyle(o).overflow===`hidden`;if(s){let t=ETe(e);s||t.push(o);for(let n of t)IQ(n,e)}else{var n;let{left:o,top:s}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)==null||n.call(e,{block:`nearest`});let{left:c,top:l}=e.getBoundingClientRect();if(Math.abs(o-c)>1||Math.abs(s-l)>1){var r,i,a;t==null||(i=t.containingElement)==null||(r=i.scrollIntoView)==null||r.call(i,{block:`center`,inline:`center`}),(a=e.scrollIntoView)==null||a.call(e,{block:`nearest`})}}}}function zQ(e){return e.pointerType===``&&e.isTrusted?!0:hQ()&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function ATe(e){return!hQ()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`}function BQ(e){let t=X.version.split(`.`);return parseInt(t[0],10)>=19?e:e?`true`:void 0}var jTe=`react-aria-clear-focus`,MTe=`react-aria-focus`;function VQ(e,t=!0){let[n,r]=(0,X.useState)(!0),i=n&&t;return LZ(()=>{if(i&&e.current&&`getAnimations`in e.current)for(let t of e.current.getAnimations())t instanceof CSSTransition&&t.cancel()},[e,i]),UQ(e,i,(0,X.useCallback)(()=>r(!1),[])),i}function HQ(e,t){let[n,r]=(0,X.useState)(t?`open`:`closed`);switch(n){case`open`:t||r(`exiting`);break;case`closed`:case`exiting`:t&&r(`open`);break}let i=n===`exiting`;return UQ(e,i,(0,X.useCallback)(()=>{r(e=>e===`exiting`?`closed`:e)},[])),i}function UQ(e,t,n){LZ(()=>{if(t&&e.current){if(!(`getAnimations`in e.current)){n();return}let t=e.current.getAnimations();if(t.length===0){n();return}let r=!1;return Promise.all(t.map(e=>e.finished)).then(()=>{r||(0,cK.flushSync)(()=>{n()})}).catch(()=>{}),()=>{r=!0}}},[e,t,n])}var NTe=typeof Element<`u`&&`checkVisibility`in Element.prototype;function PTe(e){let t=JZ(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!==`none`&&r!==`hidden`&&r!==`collapse`;if(i){let{getComputedStyle:t}=e.ownerDocument.defaultView,{display:n,visibility:r}=t(e);i=n!==`none`&&r!==`hidden`&&r!==`collapse`}return i}function FTe(e,t){return!e.hasAttribute(`hidden`)&&!e.hasAttribute(`data-react-aria-prevent-focus`)&&(e.nodeName===`DETAILS`&&t&&t.nodeName!==`SUMMARY`?e.hasAttribute(`open`):!0)}function WQ(e,t){return NTe?e.checkVisibility({visibilityProperty:!0})&&!e.closest(`[data-react-aria-prevent-focus]`):e.nodeName!==`#comment`&&PTe(e)&&FTe(e,t)&&(!e.parentElement||WQ(e.parentElement,e))}var GQ=[`input:not([disabled]):not([type=hidden])`,`select:not([disabled])`,`textarea:not([disabled])`,`button:not([disabled])`,`a[href]`,`area[href]`,`summary`,`iframe`,`object`,`embed`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable^="false"])`,`permission`],ITe=GQ.join(`:not([hidden]),`)+`,[tabindex]:not([disabled]):not([hidden])`;GQ.push(`[tabindex]:not([tabindex="-1"]):not([disabled])`);var LTe=GQ.join(`:not([hidden]):not([tabindex="-1"]),`);function KQ(e){return e.matches(ITe)&&WQ(e)&&!qQ(e)}function RTe(e){return e.matches(LTe)&&WQ(e)&&!qQ(e)}function qQ(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}var zTe=typeof document<`u`?X.useInsertionEffect??X.useLayoutEffect:()=>{};function JQ(e,t,n){let[r,i]=(0,X.useState)(e||t),a=(0,X.useRef)(r),o=(0,X.useRef)(e!==void 0),s=e!==void 0;(0,X.useEffect)(()=>{o.current,o.current=s},[s]);let c=s?e:r;zTe(()=>{a.current=c});let[,l]=(0,X.useReducer)(()=>({}),{});return[c,(0,X.useCallback)((e,...t)=>{let r=typeof e==`function`?e(a.current):e;Object.is(a.current,r)||(a.current=r,i(r),l(),n?.(r,...t))},[n])]}function YQ(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function XQ(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function ZQ(e,t){Object.defineProperty(e,`target`,{value:t}),Object.defineProperty(e,`currentTarget`,{value:t})}function QQ(e){let t=(0,X.useRef)({isFocused:!1,observer:null});LZ(()=>{let e=t.current;return()=>{e.observer&&=(e.observer.disconnect(),null)}},[]);let n=EQ(t=>{e?.(t)});return(0,X.useCallback)(e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target;r.addEventListener(`focusout`,e=>{t.current.isFocused=!1,r.disabled&&n(XQ(e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){var e;(e=t.current.observer)==null||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent(`blur`,{relatedTarget:n})),r.dispatchEvent(new FocusEvent(`focusout`,{bubbles:!0,relatedTarget:n}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:[`disabled`]})}},[n])}var $Q=!1;function BTe(e){for(;e&&!KQ(e);)e=e.parentElement;let t=JZ(e),n=t.document.activeElement;if(!n||n===e)return;$Q=!0;let r=!1,i=e=>{(e.target===n||r)&&e.stopImmediatePropagation()},a=t=>{(t.target===n||r)&&(t.stopImmediatePropagation(),!e&&!r&&(r=!0,aQ(n),c()))},o=t=>{(t.target===e||r)&&t.stopImmediatePropagation()},s=t=>{(t.target===e||r)&&(t.stopImmediatePropagation(),r||(r=!0,aQ(n),c()))};t.addEventListener(`blur`,i,!0),t.addEventListener(`focusout`,a,!0),t.addEventListener(`focusin`,s,!0),t.addEventListener(`focus`,o,!0);let c=()=>{cancelAnimationFrame(l),t.removeEventListener(`blur`,i,!0),t.removeEventListener(`focusout`,a,!0),t.removeEventListener(`focusin`,s,!0),t.removeEventListener(`focus`,o,!0),$Q=!1,r=!1},l=requestAnimationFrame(c);return c}var e$=`default`,t$=``,n$=new WeakMap;function VTe(e){if(fQ()){if(e$===`default`){let t=qZ(e);t$=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect=`none`}e$=`disabled`}else if(e instanceof HTMLElement||e instanceof SVGElement){let t=`userSelect`in e.style?`userSelect`:`webkitUserSelect`;n$.set(e,e.style[t]),e.style[t]=`none`}}function r$(e){if(fQ()){if(e$!==`disabled`)return;e$=`restoring`,setTimeout(()=>{SQ(()=>{if(e$===`restoring`){let t=qZ(e);t.documentElement.style.webkitUserSelect===`none`&&(t.documentElement.style.webkitUserSelect=t$||``),t$=``,e$=`default`}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&n$.has(e)){let t=n$.get(e),n=`userSelect`in e.style?`userSelect`:`webkitUserSelect`;e.style[n]===`none`&&(e.style[n]=t),e.getAttribute(`style`)===``&&e.removeAttribute(`style`),n$.delete(e)}}var i$=X.createContext({register:()=>{}});i$.displayName=`PressResponderContext`;function HTe(e,t){return t.get?t.get.call(e):t.value}function a$(e,t,n){if(!t.has(e))throw TypeError(`attempted to `+n+` private field on non-instance`);return t.get(e)}function UTe(e,t){return HTe(e,a$(e,t,`get`))}function WTe(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function GTe(e,t,n){WTe(e,t),t.set(e,n)}function KTe(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw TypeError(`attempted to set read only private field`);t.value=n}}function o$(e,t,n){return KTe(e,a$(e,t,`set`),n),n}function qTe(e){let t=(0,X.useContext)(i$);if(t){let{register:n,...r}=t;e=eQ(r,e),n()}return kQ(t,e.ref),e}var s$=new WeakMap,c$=class{continuePropagation(){o$(this,s$,!1)}get shouldStopPropagation(){return UTe(this,s$)}constructor(e,t,n,r){GTe(this,s$,{writable:!0,value:void 0}),o$(this,s$,!0);let i=(r?.target??n.currentTarget)?.getBoundingClientRect(),a,o=0,s,c=null;n.clientX!=null&&n.clientY!=null&&(s=n.clientX,c=n.clientY),i&&(s!=null&&c!=null?(a=s-i.left,o=c-i.top):(a=i.width/2,o=i.height/2)),this.type=e,this.pointerType=t,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=a,this.y=o}},l$=Symbol(`linkClicked`),u$=`react-aria-pressable-style`,d$=`data-react-aria-pressable`;function f$(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:a,onClick:o,isDisabled:s,isPressed:c,preventFocusOnPress:l,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:d,ref:f,...p}=qTe(e),[m,h]=(0,X.useState)(!1),g=(0,X.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:_,removeAllGlobalListeners:v}=CQ(),y=EQ((e,t)=>{let i=g.current;if(s||i.didFirePressStart)return!1;let a=!0;if(i.isTriggeringEvent=!0,r){let n=new c$(`pressstart`,t,e);r(n),a=n.shouldStopPropagation}return n&&n(!0),i.isTriggeringEvent=!1,i.didFirePressStart=!0,h(!0),a}),b=EQ((e,r,a=!0)=>{let o=g.current;if(!o.didFirePressStart)return!1;o.didFirePressStart=!1,o.isTriggeringEvent=!0;let c=!0;if(i){let t=new c$(`pressend`,r,e);i(t),c=t.shouldStopPropagation}if(n&&n(!1),h(!1),t&&a&&!s){let n=new c$(`press`,r,e);t(n),c&&=n.shouldStopPropagation}return o.isTriggeringEvent=!1,c}),x=EQ((e,t)=>{let n=g.current;if(s)return!1;if(a){n.isTriggeringEvent=!0;let r=new c$(`pressup`,t,e);return a(r),n.isTriggeringEvent=!1,r.shouldStopPropagation}return!0}),S=EQ(e=>{let t=g.current;if(t.isPressed&&t.target){t.didFirePressStart&&t.pointerType!=null&&b(h$(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,v(),d||r$(t.target);for(let e of t.disposables)e();t.disposables=[]}}),C=EQ(e=>{u&&S(e)}),w=EQ(e=>{s||o?.(e)}),T=EQ((e,t)=>{if(!s&&o){let n=new MouseEvent(`click`,e);ZQ(n,t),o(XQ(n))}}),E=(0,X.useMemo)(()=>{let e=g.current,t={onKeyDown(t){if(m$(t.nativeEvent,t.currentTarget)&&XZ(t.currentTarget,QZ(t.nativeEvent))){var r;g$(QZ(t.nativeEvent),t.key)&&t.preventDefault();let i=!0;if(!e.isPressed&&!t.repeat){e.target=t.currentTarget,e.isPressed=!0,e.pointerType=`keyboard`,i=y(t,`keyboard`);let r=t.currentTarget;_(qZ(t.currentTarget),`keyup`,KZ(t=>{m$(t,r)&&!t.repeat&&XZ(r,QZ(t))&&e.target&&x(h$(e.target,t),`keyboard`)},n),!0)}i&&t.stopPropagation(),t.metaKey&&uQ()&&((r=e.metaKeyEvents)==null||r.set(t.key,t.nativeEvent))}else t.key===`Meta`&&(e.metaKeyEvents=new Map)},onClick(t){if(!(t&&!XZ(t.currentTarget,QZ(t.nativeEvent)))&&t&&t.button===0&&!e.isTriggeringEvent&&!_Q.isOpening){let n=!0;if(s&&t.preventDefault(),!e.ignoreEmulatedMouseEvents&&!e.isPressed&&(e.pointerType===`virtual`||zQ(t.nativeEvent))){let e=y(t,`virtual`),r=x(t,`virtual`),i=b(t,`virtual`);w(t),n=e&&r&&i}else if(e.isPressed&&e.pointerType!==`keyboard`){let r=e.pointerType||t.nativeEvent.pointerType||`virtual`,i=x(h$(t.currentTarget,t),r),a=b(h$(t.currentTarget,t),r,!0);n=i&&a,e.isOverTarget=!1,w(t),S(t)}e.ignoreEmulatedMouseEvents=!1,n&&t.stopPropagation()}}},n=t=>{var n;if(e.isPressed&&e.target&&m$(t,e.target)){var r;g$(QZ(t),t.key)&&t.preventDefault();let n=QZ(t),i=XZ(e.target,QZ(t));b(h$(e.target,t),`keyboard`,i),i&&T(t,e.target),v(),t.key!==`Enter`&&p$(e.target)&&XZ(e.target,n)&&!t[l$]&&(t[l$]=!0,_Q(e.target,t,!1)),e.isPressed=!1,(r=e.metaKeyEvents)==null||r.delete(t.key)}else if(t.key===`Meta`&&(n=e.metaKeyEvents)!=null&&n.size){var i;let t=e.metaKeyEvents;e.metaKeyEvents=void 0;for(let n of t.values())(i=e.target)==null||i.dispatchEvent(new KeyboardEvent(`keyup`,n))}};if(typeof PointerEvent<`u`){t.onPointerDown=t=>{if(t.button!==0||!XZ(t.currentTarget,QZ(t.nativeEvent)))return;if(ATe(t.nativeEvent)){e.pointerType=`virtual`;return}e.pointerType=t.pointerType;let i=!0;if(!e.isPressed){e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,d||VTe(e.target),i=y(t,e.pointerType);let a=QZ(t.nativeEvent);`releasePointerCapture`in a&&a.releasePointerCapture(t.pointerId),_(qZ(t.currentTarget),`pointerup`,n,!1),_(qZ(t.currentTarget),`pointercancel`,r,!1)}i&&t.stopPropagation()},t.onMouseDown=t=>{if(XZ(t.currentTarget,QZ(t.nativeEvent))&&t.button===0){if(l){let n=BTe(t.target);n&&e.disposables.push(n)}t.stopPropagation()}},t.onPointerUp=t=>{!XZ(t.currentTarget,QZ(t.nativeEvent))||e.pointerType===`virtual`||t.button===0&&!e.isPressed&&x(t,e.pointerType||t.pointerType)},t.onPointerEnter=t=>{t.pointerId===e.activePointerId&&e.target&&!e.isOverTarget&&e.pointerType!=null&&(e.isOverTarget=!0,y(h$(e.target,t),e.pointerType))},t.onPointerLeave=t=>{t.pointerId===e.activePointerId&&e.target&&e.isOverTarget&&e.pointerType!=null&&(e.isOverTarget=!1,b(h$(e.target,t),e.pointerType,!1),C(t))};let n=t=>{if(t.pointerId===e.activePointerId&&e.isPressed&&t.button===0&&e.target){if(XZ(e.target,QZ(t))&&e.pointerType!=null){let n=!1,r=setTimeout(()=>{e.isPressed&&e.target instanceof HTMLElement&&(n?S(t):(aQ(e.target),e.target.click()))},80);_(t.currentTarget,`click`,()=>n=!0,!0),e.disposables.push(()=>clearTimeout(r))}else S(t);e.isOverTarget=!1}},r=e=>{S(e)};t.onDragStart=e=>{XZ(e.currentTarget,QZ(e.nativeEvent))&&S(e)}}return t},[_,s,l,v,d,S,C,b,y,x,w,T]);return(0,X.useEffect)(()=>{if(!f)return;let e=qZ(f.current);if(!e||!e.head||e.getElementById(u$))return;let t=e.createElement(`style`);t.id=u$,t.textContent=`
|
|
1325
1325
|
@layer {
|
|
1326
1326
|
[${d$}] {
|
|
1327
1327
|
touch-action: pan-x pan-y pinch-zoom;
|
|
@@ -1341,7 +1341,7 @@ ${t}`);let n=t.match(ske);if(!n)return X.createElement(X.Fragment,null,t);let[,r
|
|
|
1341
1341
|
`,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}}})),Cke=({children:e,...t})=>X.createElement(Ske,{...t},!que()&&X.createElement(`button`,null,X.createElement(`selectedcontent`,null),X.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`},X.createElement(`path`,{d:`m6 9 6 6 6-6`}))),X.createElement(`optgroup`,null,e)),wke=X.useLayoutEffect,Tke=function(e){var t=X.useRef(e);return wke(function(){t.current=e}),t},U4=function(e,t){if(typeof e==`function`){e(t);return}e.current=t},Eke=function(e,t){var n=X.useRef();return X.useCallback(function(r){e.current=r,n.current&&U4(n.current,null),n.current=t,t&&U4(t,r)},[t])},W4={"min-height":`0`,"max-height":`none`,height:`0`,visibility:`hidden`,overflow:`hidden`,position:`absolute`,"z-index":`-1000`,top:`0`,right:`0`,display:`block`},G4=function(e){Object.keys(W4).forEach(function(t){e.style.setProperty(t,W4[t],`important`)})},K4=null,q4=function(e,t){var n=e.scrollHeight;return t.sizingStyle.boxSizing===`border-box`?n+t.borderSize:n-t.paddingSize};function Dke(e,t,n,r){n===void 0&&(n=1),r===void 0&&(r=1/0),K4||(K4=document.createElement(`textarea`),K4.setAttribute(`tabindex`,`-1`),K4.setAttribute(`aria-hidden`,`true`),G4(K4)),K4.parentNode===null&&document.body.appendChild(K4);var i=e.paddingSize,a=e.borderSize,o=e.sizingStyle,s=o.boxSizing;Object.keys(o).forEach(function(e){var t=e;K4.style[t]=o[t]}),G4(K4),K4.value=t;var c=q4(K4,e);K4.value=t,c=q4(K4,e),K4.value=`x`;var l=K4.scrollHeight-i,u=l*n;s===`border-box`&&(u=u+i+a),c=Math.max(u,c);var d=l*r;return s===`border-box`&&(d=d+i+a),c=Math.min(d,c),[c,l]}var J4=function(){},Oke=function(e,t){return e.reduce(function(e,n){return e[n]=t[n],e},{})},kke=[`borderBottomWidth`,`borderLeftWidth`,`borderRightWidth`,`borderTopWidth`,`boxSizing`,`fontFamily`,`fontSize`,`fontStyle`,`fontWeight`,`letterSpacing`,`lineHeight`,`paddingBottom`,`paddingLeft`,`paddingRight`,`paddingTop`,`tabSize`,`textIndent`,`textRendering`,`textTransform`,`width`,`wordBreak`,`wordSpacing`,`scrollbarGutter`],Ake=!!document.documentElement.currentStyle,jke=function(e){var t=window.getComputedStyle(e);if(t===null)return null;var n=Oke(kke,t),r=n.boxSizing;return r===``?null:(Ake&&r===`border-box`&&(n.width=parseFloat(n.width)+parseFloat(n.borderRightWidth)+parseFloat(n.borderLeftWidth)+parseFloat(n.paddingRight)+parseFloat(n.paddingLeft)+`px`),{sizingStyle:n,paddingSize:parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),borderSize:parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth)})};function Y4(e,t,n){var r=Tke(n);X.useLayoutEffect(function(){var n=function(e){return r.current(e)};if(e)return e.addEventListener(t,n),function(){return e.removeEventListener(t,n)}},[])}var Mke=function(e,t){Y4(document.body,`reset`,function(n){e.current.form===n.target&&t(n)})},Nke=function(e){Y4(window,`resize`,e)},Pke=function(e){Y4(document.fonts,`loadingdone`,e)},Fke=[`cacheMeasurements`,`maxRows`,`minRows`,`onChange`,`onHeightChange`],Ike=X.forwardRef(function(e,t){var n=e.cacheMeasurements,r=e.maxRows,i=e.minRows,a=e.onChange,o=a===void 0?J4:a,s=e.onHeightChange,c=s===void 0?J4:s,l=bq(e,Fke),u=l.value!==void 0,d=X.useRef(null),f=Eke(d,t),p=X.useRef(0),m=X.useRef(),h=function(){var e=d.current,t=n&&m.current?m.current:jke(e);if(t){m.current=t;var a=Dke(t,e.value||e.placeholder||`x`,i,r),o=a[0],s=a[1];p.current!==o&&(p.current=o,e.style.setProperty(`height`,o+`px`,`important`),c(o,{rowHeight:s}))}};return X.useLayoutEffect(h),Mke(d,function(){if(!u){var e=d.current.value;requestAnimationFrame(function(){var t=d.current;t&&e!==t.value&&h()})}}),Nke(h),Pke(h),X.createElement(`textarea`,HV({},l,{onChange:function(e){u||h(),o(e)},ref:f}))}),Lke=Object.assign($((0,X.forwardRef)(function({size:e,valid:t,align:n,...r},i){return X.createElement(Ike,{...r,ref:i})}))(H4,z4,B4,V4,({height:e=400})=>({overflow:`visible`,maxHeight:e})),{displayName:`Textarea`}),X4=Object.assign($.form({boxSizing:`border-box`,width:`100%`}),{Field:hke,Input:yke,Select:Cke,Textarea:Lke,Button:c4,Checkbox:fke,Radio:xke}),Rke=$.div(({hasCloseButton:e,padding:t})=>({display:`inline-block`,position:`relative`,minHeight:e?36:void 0,zIndex:2147483647,colorScheme:`light dark`,padding:t}),({theme:e,hasChrome:t})=>t?{filter:`
|
|
1342
1342
|
drop-shadow(0px 5px 5px rgba(0,0,0,0.05))
|
|
1343
1343
|
drop-shadow(0 1px 3px rgba(0,0,0,0.1))
|
|
1344
|
-
`,borderRadius:e.appBorderRadius+2,fontSize:e.typography.size.s1}:{},({theme:e,bgColor:t})=>t===`default`&&{background:e.base===`light`?sU(e.background.app):e.background.app,color:e.color.defaultText},({theme:e,bgColor:t})=>t===`inverse`&&{background:e.base===`light`?e.color.darkest:e.color.lightest,color:e.color.inverseText},({theme:e,bgColor:t})=>(t===`positive`||t===`negative`||t===`warning`)&&{background:e.background[t],color:e.color[`${t}Text`]}),zke=$(c4)({position:`absolute`,top:4,right:4}),Z4=(0,X.forwardRef)(({children:e,color:t=`default`,hasChrome:n=!0,hideLabel:r=`Close`,onHide:i,padding:a=8,...o},s)=>X.createElement(Rke,{bgColor:t,hasChrome:n,hasCloseButton:!!i,padding:a,ref:s,...o},e,i&&X.createElement(zke,{ariaLabel:r,onClick:i,padding:`small`,variant:`ghost`,size:`small`},X.createElement(b_e,null))));Z4.displayName=`Popover`;var Q4=({id:e,title:t,description:n,icon:r,aside:i,children:a,isSelected:o,isActive:s,onClick:c,onFocus:l,onKeyDown:u,shouldLookDisabled:d=!1,...f})=>X.createElement(m4.Item,{...f,id:e,role:`option`,tabIndex:s?0:-1,"aria-selected":o,"aria-disabled":d?!0:void 0,onClick:c,onFocus:l,onKeyDown:u},a??X.createElement(X.Fragment,null,r&&X.createElement(m4.Icon,null,r),X.createElement(m4.Text,null,X.createElement(`p`,null,t),n&&X.createElement(`small`,null,n)),i));Q4.displayName=`SelectOption`;var $4=5,e3=Symbol.for(`undefined`);function Bke(e){return e==null||typeof e==`string`||typeof e==`number`||typeof e==`boolean`||typeof e==`symbol`}function t3(e){return{...e,type:`option`,value:i3(e.value)}}function n3(e){return`type`in e&&e.type===`reset`?e:t3(e)}function r3(e){if(e!==e3)return e}function i3(e){return e===void 0?e3:e}var Vke=$(`ul`)({minWidth:180,height:`100%`,borderRadius:6,overflow:`hidden auto`,listStyle:`none`,margin:0,padding:4});function a3(e,{value:t}){return`${e}-opt-${String(t)??`sb-reset`}`}var Hke=$.span(({theme:e})=>({appearance:`none`,color:e.textMutedColor,fontSize:12}));function o3(e,t){return t===void 0?[]:Bke(t)?e.filter(e=>e.value===t).map(t3):e.filter(e=>t.some(t=>e.value===t)).map(t3)}var Uke=$(c4)(({$isOpen:e,$hasSelection:t,theme:n})=>e||t?{boxShadow:`none`,background:JH(.93,n.barSelectedColor),color:n.base===`light`?NH(.1,n.color.secondary):n.color.secondary}:{}),Wke=$.div({position:`fixed`,inset:0,zIndex:1e3}),Gke=({children:e,handleClose:t,triggerRef:n})=>{let r=X.useRef(null);W$({ref:r,onInteractOutside:t}),(0,X.useEffect)(()=>{if(r.current)return K2([r.current],{shouldUseInert:!0})},[]);let{overlayProps:i}=E0({targetRef:n,overlayRef:r,placement:`bottom start`,offset:8,maxHeight:504,isOpen:!0}),{overlayProps:a,underlayProps:o}=X0({isOpen:!0,onClose:t,isDismissable:!0,shouldCloseOnBlur:!1,isKeyboardDismissDisabled:!0},r),s=oG();return i.style={...i.style,overflow:`hidden auto`,scrollbarColor:`${s.barTextColor} transparent`,scrollbarWidth:`thin`},X.createElement(J2,{disableFocusManagement:!0,...a},X.createElement(Wke,{...o}),X.createElement(Z4,{hasChrome:!0,ref:r,padding:0,...i},e))},s3=(0,X.forwardRef)(({children:e,icon:t,disabled:n=!1,options:r,defaultOptions:i,multiSelect:a=!1,onReset:o,padding:s=`small`,resetLabel:c,onSelect:l,onDeselect:u,onChange:d,tooltip:f,ariaLabel:p,showSelectedOptionTitle:m=!0,...h},g)=>{let[_,v]=(0,X.useState)(h.defaultOpen||!1),[y,b]=(0,X.useState)(!1),x=TQ(g),S=(0,X.useMemo)(()=>`select-`+Math.random().toString(36).substring(2,15),[]),C=`${S}-listbox`,w=(0,X.useRef)(null),T=X2({isOpen:_&&!n,onOpenChange:v}),E=(0,X.useCallback)(()=>{v(!1),b(!0)},[]);(0,X.useEffect)(()=>{!T.isOpen&&y&&(x.current?.focus(),b(!1))},[T.isOpen,y,x]);let[D,O]=(0,X.useState)(o3(r,i)),k=(0,X.useCallback)(e=>{e.type===`reset`?(d?.([]),o?.(),O([])):O(a?t=>{let n=[];return t?.some(t=>t.value===e.value)?(u?.(r3(e.value)),n=t?.filter(t=>t.value!==e.value)??[]):(l?.(r3(e.value)),n=[...t??[],e]),d?.(n.map(e=>r3(e.value))),n}:t=>t.every(t=>t.value!==e.value)?(l?.(r3(e.value)),d?.([r3(e.value)]),[e]):t)},[a,d,l,u,o]),A=(0,X.useMemo)(()=>o?{type:`reset`,value:void 0,title:c??`Reset selection`,icon:X.createElement(k_e,null),description:void 0,children:void 0}:void 0,[o,c]),j=(0,X.useMemo)(()=>A?[A,...r]:r,[r,A]);(0,X.useEffect)(()=>{i&&O(o3(r,i))},[i,r]);let[M,N]=(0,X.useState)(void 0),P=(0,X.useCallback)((e,t=!0)=>{N(n3(e)),!a&&t&&k(n3(e))},[a,k]),ee=(0,X.useCallback)((e=1)=>{if(!_||!M){P(j[e===1?0:Math.min(e,j.length-1)]);return}let t=j.findIndex(e=>M.type===`reset`?`type`in e&&e.type===`reset`:i3(e.value)===M.value),n=t+e,r;r=n>=j.length&&t===j.length-1?j[0]:j[Math.min(j.length-1,n)],P(r)},[_,M,P,j]),te=(0,X.useCallback)((e=1)=>{if(!_||!M){P(j[Math.max(0,j.length-e)]);return}let t=j.findIndex(e=>M.type===`reset`?`type`in e&&e.type===`reset`:i3(e.value)===M.value),n=t-e,r;r=n<0&&t===0?j[j.length-1]:j[Math.max(0,n)],P(r)},[_,M,P,j]),F=(0,X.useCallback)(e=>{let t=t=>{e.preventDefault(),P(j[t]),v(!0)},n=j.findIndex(e=>D.some(t=>t.value===i3(e.value))),r=n!==-1,i=A&&!r?1:0,a=j.length-1;e.key===`Enter`||e.key===` `?t(r?Math.min(n,a):i):e.key===`ArrowDown`?t(r?Math.min(n+1,a):i):e.key===`ArrowUp`?t(r?Math.max(n-1,i):a):e.key===`Home`?t(i):e.key===`End`?t(a):e.key===`PageDown`?t(Math.min((r?n:i)+$4,a)):e.key===`PageUp`&&t(Math.max(0,(r?n:a)-$4))},[j,A,P,D]),I=(0,X.useCallback)(e=>{e.key===`Tab`?E():e.preventDefault(),e.key===`Escape`?E():e.key===`ArrowDown`?ee():e.key===`ArrowUp`?te():e.key===`Home`?P(j[0]):e.key===`End`?P(j[j.length-1]):e.key===`PageDown`?ee($4):e.key===`PageUp`&&te($4)},[E,ee,te,j,P]);(0,X.useEffect)(()=>{if(_&&M){let e=document.getElementById(a3(S,M));e&&(e.scrollIntoView({block:`nearest`}),e.focus())}else _&&w.current?.focus()},[_,M,S]);let ne=(0,X.useMemo)(()=>D.length===1?`${p} ${D[0].title}`:D.length?`${p}, ${D.length} values selected`:p,[p,D]);return X.createElement(X.Fragment,null,X.createElement(Uke,{...h,variant:`ghost`,ariaLabel:ne,tooltip:f??p,disableAllTooltips:_,id:S,ref:x,padding:s,$isOpen:_,$hasSelection:!!D.length,"aria-disabled":n,disabled:n,onClick:()=>{_?E():v(!0)},tabIndex:_?-1:0,onKeyDown:F,role:`button`,"aria-controls":_?C:void 0,"aria-expanded":_,"aria-haspopup":`listbox`},!a&&X.createElement(X.Fragment,null,t,m&&D[0]?.title||e),a&&X.createElement(X.Fragment,null,t,e,!!D.length&&X.createElement(Hke,{"aria-label":`${D.length} ${D.length>1?`items`:`item`} selected`},D?.length))),T.isOpen&&X.createElement(Gke,{handleClose:E,triggerRef:x},X.createElement(Vke,{"aria-label":p,role:`listbox`,id:C,ref:w,"aria-multiselectable":a,onKeyDown:I,tabIndex:_?0:-1},j.map(e=>({option:n3(e),externalOption:e})).map(({externalOption:e,option:t})=>{let n=D?.some(e=>e.value===t.value)&&t!==A,r=t===A;return X.createElement(Q4,{key:t.value===void 0?`sb-reset`:String(t.value),title:t.title,description:t.description,aside:t.aside,icon:!r&&a?X.createElement(X4.Checkbox,{checked:n,hidden:!0,role:`presentation`}):t.icon,id:a3(S,t),isActive:_&&M?.value===t.value,isSelected:n,onClick:()=>{k(t),a||E()},onFocus:()=>P(e,!1),shouldLookDisabled:r&&D.length===0&&a,onKeyDown:e=>{e.key===`Enter`||e.key===` `?(e.preventDefault(),k(t),a||E()):e.key===`Tab`&&(a||k(t),E())}},t.children)}))))});s3.displayName=`Select`;var c3=class{get childNodes(){throw Error(`childNodes is not supported`)}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e[`aria-label`]=this[`aria-label`],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,t,n){let r=this.clone();return t.addDescendants(r,e),r}constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue=``,this[`aria-label`]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}},l3=class extends c3{filter(e,t,n){let[r,i]=p3(e,t,this.firstChildKey,n),a=this.clone();return a.firstChildKey=r,a.lastChildKey=i,a}},u3=class extends c3{};u3.type=`header`;var Kke=class extends c3{};Kke.type=`loader`;var d3=class extends l3{filter(e,t,n){if(n(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};d3.type=`item`;var f3=class extends l3{filter(e,t,n){let r=super.filter(e,t,n);if(r&&r.lastChildKey!==null){let t=e.getItem(r.lastChildKey);if(t&&t.type!==`header`)return r}return null}};f3.type=`section`;var qke=class{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey==null?void 0:this.keyMap.get(this.firstKey);for(;e;)yield e,e=e.nextKey==null?void 0:this.keyMap.get(e.nextKey)}getChildren(e){let t=this.keyMap;return{*[Symbol.iterator](){let n=t.get(e),r=n?.firstChildKey==null?null:t.get(n.firstChildKey);for(;r;)yield r,r=r.nextKey==null?void 0:t.get(r.nextKey)}}}getKeyBefore(e){let t=this.keyMap.get(e);if(!t)return null;if(t.prevKey!=null){for(t=this.keyMap.get(t.prevKey);t&&t.type!==`item`&&t.lastChildKey!=null;)t=this.keyMap.get(t.lastChildKey);return t?.key??null}return t.parentKey}getKeyAfter(e){let t=this.keyMap.get(e);if(!t)return null;if(t.type!==`item`&&t.firstChildKey!=null)return t.firstChildKey;for(;t;){if(t.nextKey!=null)return t.nextKey;if(t.parentKey!=null)t=this.keyMap.get(t.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey==null?null:this.keyMap.get(this.lastKey);for(;e?.lastChildKey!=null;)e=this.keyMap.get(e.lastChildKey);return e?.key??null}getItem(e){return this.keyMap.get(e)??null}at(){throw Error(`Not implemented`)}clone(){let e=this.constructor,t=new e;return t.keyMap=new Map(this.keyMap),t.firstKey=this.firstKey,t.lastKey=this.lastKey,t.itemCount=this.itemCount,t}addNode(e){if(this.frozen)throw Error(`Cannot add a node to a frozen collection`);e.type===`item`&&this.keyMap.get(e.key)==null&&this.itemCount++,this.keyMap.set(e.key,e)}addDescendants(e,t){this.addNode(e);let n=t.getChildren(e.key);for(let e of n)this.addDescendants(e,t)}removeNode(e){if(this.frozen)throw Error(`Cannot remove a node to a frozen collection`);let t=this.keyMap.get(e);t!=null&&t.type===`item`&&this.itemCount--,this.keyMap.delete(e)}commit(e,t,n=!1){if(this.frozen)throw Error(`Cannot commit a frozen collection`);this.firstKey=e,this.lastKey=t,this.frozen=!n}filter(e){let t=new this.constructor,[n,r]=p3(this,t,this.firstKey,e);return t?.commit(n,r),t}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}};function p3(e,t,n,r){if(n==null)return[null,null];let i=null,a=null,o=e.getItem(n);for(;o!=null;){let n=o.filter(e,t,r);n!=null&&(n.nextKey=null,a&&(n.prevKey=a.key,a.nextKey=n.key),i??=n,t.addNode(n),a=n),o=o.nextKey?e.getItem(o.nextKey):null}if(a&&a.type===`separator`){let e=a.prevKey;t.removeNode(a.key),e?(a=t.getItem(e),a.nextKey=null):a=null}return[i?.key??null,a?.key??null]}var m3=class{*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){return this.parentNode?.isConnected||!1}invalidateChildIndices(e){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e,this.ownerDocument.markDirty(this))}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){e.parentNode&&e.parentNode.removeChild(e),this.firstChild??=e,this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(e,t){if(t==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=t,e.previousSibling=t.previousSibling,e.index=t.index-1,this.firstChild===t?this.firstChild=e:t.previousSibling&&(t.previousSibling.nextSibling=e),t.previousSibling=e,e.parentNode=t.parentNode,this.invalidateChildIndices(e),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode!==this||!this.ownerDocument.isMounted||(this._minInvalidChildIndex===e&&(this._minInvalidChildIndex=null),e.nextSibling&&(this.invalidateChildIndices(e.nextSibling),e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.markDirty(e),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}},h3=class e extends m3{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof e?this.parentNode.level+(this.node?.type===`item`?1:0):0}getMutableNode(){return this.node==null?null:(this.isMutated||=(this.node=this.node.clone(),!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){var t,n,r,i,a,o,s;let c=this.nextVisibleSibling,l=this.getMutableNode();if(l!=null){l.index=this.index,l.level=this.level;var u;if(l.parentKey=this.parentNode instanceof e&&(u=this.parentNode.node?.key)!=null?u:null,l.prevKey=((n=this.previousVisibleSibling)==null||(t=n.node)==null?void 0:t.key)??null,l.nextKey=(c==null||(r=c.node)==null?void 0:r.key)??null,l.hasChildNodes=!!this.firstChild,l.firstChildKey=((a=this.firstVisibleChild)==null||(i=a.node)==null?void 0:i.key)??null,l.lastChildKey=((s=this.lastVisibleChild)==null||(o=s.node)==null?void 0:o.key)??null,(l.colSpan!=null||l.colIndex!=null)&&c){let e=(l.colIndex??l.index)+(l.colSpan??1);if(c.node!=null&&e!==c.node.colIndex){let t=c.getMutableNode();t.colIndex=e}}}}setProps(e,t,n,r,i){let a,{value:o,textValue:s,id:c,...l}=e;if(this.node==null?(a=new n(c??`react-aria-${++this.ownerDocument.nodeId}`),this.node=a):a=this.getMutableNode(),l.ref=t,a.props=l,a.rendered=r,a.render=i,a.value=o,a.textValue=s||(typeof l.children==`string`?l.children:``)||e[`aria-label`]||``,c!=null&&c!==a.key)throw Error(`Cannot change the id of an item`);l.colSpan!=null&&(a.colSpan=l.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let e=this;return{get display(){return e.isHidden?`none`:``},set display(t){let n=t===`none`;if(e.isHidden!==n){(e.parentNode?.firstVisibleChild===e||e.parentNode?.lastVisibleChild===e)&&e.ownerDocument.markDirty(e.parentNode);let t=e.previousVisibleSibling,r=e.nextVisibleSibling;t&&e.ownerDocument.markDirty(t),r&&e.ownerDocument.markDirty(r),e.isHidden=n,e.ownerDocument.markDirty(e)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(e,t){super(t),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}},Jke=class extends m3{get isConnected(){return this.isMounted}createElement(e){return new h3(e,this)}getMutableCollection(){return this.nextCollection||=this.collection.clone(),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden||e.node==null)return;let t=this.getMutableCollection();if(!t.getItem(e.node.key))for(let t of e)this.addNode(t);t.addNode(e.node)}removeNode(e){if(e.node!=null){for(let t of e)this.removeNode(t);this.getMutableCollection().removeNode(e.node.key)}}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let e of this.dirtyNodes)e instanceof h3&&(!e.isConnected||e.isHidden)?this.removeNode(e):e.updateChildIndices();for(let e of this.dirtyNodes)e instanceof h3&&(e.isConnected&&!e.isHidden&&(e.updateNode(),this.addNode(e)),e.isMutated=!1);if(this.dirtyNodes.clear(),this.nextCollection){var e,t,n,r;this.nextCollection.commit(((t=this.firstVisibleChild)==null||(e=t.node)==null?void 0:e.key)??null,((r=this.lastVisibleChild)==null||(n=r.node)==null?void 0:n.key)??null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let e of this.subscriptions)e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.isMounted=!0,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}};function g3(e){let{children:t,items:n,idScope:r,addIdAndValue:i,dependencies:a=[]}=e,o=(0,X.useMemo)(()=>new WeakMap,a);return(0,X.useMemo)(()=>{if(n&&typeof t==`function`){let e=[];for(let a of n){let n=o.get(a);if(!n){n=t(a);let e=n.props.id??a.key??a.id;if(e==null)throw Error(`Could not determine key for item`);r&&(e=r+`:`+e),n=(0,X.cloneElement)(n,i?{key:e,id:e,value:a}:{key:e}),o.set(a,n)}e.push(n)}return e}else if(typeof t!=`function`)return t},[t,n,o,r,i])}if(typeof HTMLTemplateElement<`u`){let e=Object.getOwnPropertyDescriptor(Node.prototype,`firstChild`).get;Object.defineProperty(HTMLTemplateElement.prototype,`firstChild`,{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}var _3=(0,X.createContext)(!1);function Yke(e){if((0,X.useContext)(_3))return X.createElement(X.Fragment,null,e.children);let t=X.createElement(_3.Provider,{value:!0},e.children);return X.createElement(`template`,{"data-react-aria-hidden":!0},t)}function v3(e){let t=(t,n)=>(0,X.useContext)(_3)?null:e(t,n);return t.displayName=e.displayName||e.name,(0,X.forwardRef)(t)}function Xke(){return(0,X.useContext)(_3)}var y3=(0,X.createContext)(!1),b3=(0,X.createContext)(null);function x3(e){if((0,X.useContext)(b3))return e.content;let{collection:t,document:n}=eAe(e.createCollection);return X.createElement(X.Fragment,null,X.createElement(Yke,null,X.createElement(b3.Provider,{value:n},e.content)),X.createElement(Zke,{render:e.children,collection:t}))}function Zke({collection:e,render:t}){return t(e)}function Qke(e,t,n){let r=VZ(),i=(0,X.useRef)(r);return i.current=r,(0,ywe.useSyncExternalStore)(e,(0,X.useCallback)(()=>i.current?n():t(),[t,n]))}var $ke=typeof X.useSyncExternalStore==`function`?X.useSyncExternalStore:Qke;function eAe(e){let[t]=(0,X.useState)(()=>new Jke(e?.()||new qke)),n=$ke((0,X.useCallback)(e=>t.subscribe(e),[t]),(0,X.useCallback)(()=>{let e=t.getCollection();return t.isSSR&&t.resetAfterSSR(),e},[t]),(0,X.useCallback)(()=>(t.isSSR=!0,t.getCollection()),[t]));return LZ(()=>(t.isMounted=!0,()=>{t.isMounted=!1}),[t]),{collection:n,document:t}}var S3=(0,X.createContext)(null);function tAe(e){var t;return t=class extends c3{},t.type=e,t}function C3(e,t,n,r,i,a){typeof e==`string`&&(e=tAe(e));let o=(0,X.useCallback)(i=>{i?.setProps(t,n,e,r,a)},[t,n,r,a,e]),s=(0,X.useContext)(S3);if(s){let o=s.ownerDocument.nodesByProps.get(t);return o||(o=s.ownerDocument.createElement(e.type),o.setProps(t,n,e,r,a),s.appendChild(o),s.ownerDocument.updateCollection(),s.ownerDocument.nodesByProps.set(t,o)),i?X.createElement(S3.Provider,{value:o},i):null}return X.createElement(e.type,{ref:o},i)}function w3(e,t){let n=({node:e})=>t(e.props,e.props.ref,e),r=(0,X.forwardRef)((r,i)=>{let a=(0,X.useContext)(L$);if(!(0,X.useContext)(y3)){if(t.length>=3)throw Error(t.name+` cannot be rendered outside a collection.`);return t(r,i)}return C3(e,r,i,`children`in r?r.children:null,null,e=>X.createElement(L$.Provider,{value:a},X.createElement(n,{node:e})))});return r.displayName=t.name,r}function T3(e,t,n=E3){let r=({node:e})=>t(e.props,e.props.ref,e),i=(0,X.forwardRef)((t,i)=>C3(e,t,i,null,n(t),e=>X.createElement(r,{node:e}))??X.createElement(X.Fragment,null));return i.displayName=t.name,i}function E3(e){return g3({...e,addIdAndValue:!0})}var D3=(0,X.createContext)(null);function O3(e){let t=(0,X.useContext)(D3),n=(t?.dependencies||[]).concat(e.dependencies),r=e.idScope||t?.idScope,i=E3({...e,idScope:r,dependencies:n});return(0,X.useContext)(b3)&&(i=X.createElement(nAe,null,i)),t=(0,X.useMemo)(()=>({dependencies:n,idScope:r}),[r,...n]),X.createElement(D3.Provider,{value:t},i)}function nAe({children:e}){let t=(0,X.useContext)(b3),n=(0,X.useMemo)(()=>X.createElement(b3.Provider,{value:null},X.createElement(y3.Provider,{value:!0},e)),[e]);return VZ()?X.createElement(S3.Provider,{value:t},n):(0,cK.createPortal)(n,t)}var k3=(0,X.createContext)({});v3(function(e,t){[e,t]=X$(e,t,k3);let{elementType:n=`label`,...r}=e;return X.createElement(n,{className:`react-aria-Label`,...r,ref:t})});function rAe(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:a=`label`}=e;t=WZ(t);let o=WZ(),s={};n&&(r=r?`${o} ${r}`:o,s={id:o,htmlFor:a===`label`?t:void 0});let c=wQ({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:s,fieldProps:c}}function iAe(e){let{value:t=0,minValue:n=0,maxValue:r=100,valueLabel:i,isIndeterminate:a,formatOptions:o={style:`percent`}}=e,s=iQ(e,{labelable:!0}),{labelProps:c,fieldProps:l}=rAe({...e,labelElementType:`span`});t=YQ(t,n,r);let u=(t-n)/(r-n),d=MDe(o);if(!a&&!i){let e=o.style===`percent`?u:t;i=d.format(e)}return{progressBarProps:eQ(s,{...l,"aria-valuenow":a?void 0:t,"aria-valuemin":n,"aria-valuemax":r,"aria-valuetext":a?void 0:i,role:`progressbar`}),labelProps:c}}var A3=(0,X.createContext)(null);(0,X.forwardRef)(function(e,t){[e,t]=X$(e,t,A3);let{value:n=0,minValue:r=0,maxValue:i=100,isIndeterminate:a=!1}=e;n=YQ(n,r,i);let[o,s]=Z$(!e[`aria-label`]&&!e[`aria-labelledby`]),{progressBarProps:c,labelProps:l}=iAe({...e,label:s}),u=a?void 0:(n-r)/(i-r)*100,d=J$({...e,defaultClassName:`react-aria-ProgressBar`,values:{percentage:u,valueText:c[`aria-valuetext`],isIndeterminate:a}}),f=iQ(e,{global:!0});return X.createElement(`div`,{...eQ(f,d,c),ref:t,slot:e.slot||void 0},X.createElement(k3.Provider,{value:{...l,ref:o,elementType:`span`}},d.children))});var j3=null;function aAe(e,t=`assertive`,n=7e3){j3?j3.announce(e,t,n):(j3=new oAe,(typeof IS_REACT_ACT_ENVIRONMENT==`boolean`?IS_REACT_ACT_ENVIRONMENT:typeof jest<`u`)?j3.announce(e,t,n):setTimeout(()=>{j3?.isAttached()&&j3?.announce(e,t,n)},100))}var oAe=class{isAttached(){return this.node?.isConnected}createLog(e){let t=document.createElement(`div`);return t.setAttribute(`role`,`log`),t.setAttribute(`aria-live`,e),t.setAttribute(`aria-relevant`,`additions`),t}destroy(){this.node&&=(document.body.removeChild(this.node),null)}announce(e,t=`assertive`,n=7e3){var r,i;if(!this.node)return;let a=document.createElement(`div`);typeof e==`object`?(a.setAttribute(`role`,`img`),a.setAttribute(`aria-labelledby`,e[`aria-labelledby`])):a.textContent=e,t===`assertive`?(r=this.assertiveLog)==null||r.appendChild(a):(i=this.politeLog)==null||i.appendChild(a),e!==``&&setTimeout(()=>{a.remove()},n)}clear(e){this.node&&((!e||e===`assertive`)&&this.assertiveLog&&(this.assertiveLog.innerHTML=``),(!e||e===`polite`)&&this.politeLog&&(this.politeLog.innerHTML=``))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<`u`&&(this.node=document.createElement(`div`),this.node.dataset.liveAnnouncer=`true`,Object.assign(this.node.style,{border:0,clip:`rect(0 0 0 0)`,clipPath:`inset(50%)`,height:`1px`,margin:`-1px`,overflow:`hidden`,padding:0,position:`absolute`,width:`1px`,whiteSpace:`nowrap`}),this.assertiveLog=this.createLog(`assertive`),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog(`polite`),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}};function sAe(e,t){let{elementType:n=`button`,isDisabled:r,onPress:i,onPressStart:a,onPressEnd:o,onPressUp:s,onPressChange:c,preventFocusOnPress:l,allowFocusWhenDisabled:u,onClick:d,href:f,target:p,rel:m,type:h=`button`}=e,g;g=n===`button`?{type:h,disabled:r,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:{role:`button`,href:n===`a`&&!r?f:void 0,target:n===`a`?p:void 0,type:n===`input`?h:void 0,disabled:n===`input`?r:void 0,"aria-disabled":!r||n===`input`?void 0:r,rel:n===`a`?m:void 0};let{pressProps:_,isPressed:v}=f$({onPressStart:a,onPressEnd:o,onPressChange:c,onPress:i,onPressUp:s,onClick:d,isDisabled:r,preventFocusOnPress:l,ref:t}),{focusableProps:y}=R$(e,t);u&&(y.tabIndex=r?-1:y.tabIndex);let b=eQ(y,_,iQ(e,{labelable:!0}));return{isPressed:v,buttonProps:eQ(g,b,{"aria-haspopup":e[`aria-haspopup`],"aria-expanded":e[`aria-expanded`],"aria-controls":e[`aria-controls`],"aria-pressed":e[`aria-pressed`],"aria-current":e[`aria-current`],"aria-disabled":e[`aria-disabled`]})}}var M3=(0,X.createContext)({});v3(function(e,t){[e,t]=X$(e,t,M3),e=cAe(e);let n=e,{isPending:r}=n,{buttonProps:i,isPressed:a}=sAe(e,t),{focusProps:o,isFocused:s,isFocusVisible:c}=K0(e),{hoverProps:l,isHovered:u}=U$({...e,isDisabled:e.isDisabled||r}),d={isHovered:u,isPressed:(n.isPressed||a)&&!r,isFocused:s,isFocusVisible:c,isDisabled:e.isDisabled||!1,isPending:r??!1},f=J$({...e,values:d,defaultClassName:`react-aria-Button`}),p=WZ(i.id),m=WZ(),h=i[`aria-labelledby`];r&&(h?h=`${h} ${m}`:i[`aria-label`]&&(h=`${p} ${m}`));let g=(0,X.useRef)(r);(0,X.useEffect)(()=>{let e={"aria-labelledby":h||p};(!g.current&&s&&r||g.current&&s&&!r)&&aAe(e,`assertive`),g.current=r},[r,s,h,p]);let _=iQ(e,{global:!0});return delete _.onClick,X.createElement(`button`,{...eQ(_,f,i,o,l),type:i.type===`submit`&&r?`button`:i.type,id:p,ref:t,"aria-labelledby":h,slot:e.slot||void 0,"aria-disabled":r?`true`:i[`aria-disabled`],"data-disabled":e.isDisabled||void 0,"data-pressed":d.isPressed||void 0,"data-hovered":u||void 0,"data-focused":s||void 0,"data-pending":r||void 0,"data-focus-visible":c||void 0},X.createElement(A3.Provider,{value:{id:m}},f.children))});function cAe(e){return e.isPending&&(e.onPress=void 0,e.onPressStart=void 0,e.onPressEnd=void 0,e.onPressChange=void 0,e.onPressUp=void 0,e.onKeyDown=void 0,e.onKeyUp=void 0,e.onClick=void 0,e.href=void 0),e}var N3=(0,X.createContext)(null),P3=(0,X.createContext)(null),lAe=(0,X.forwardRef)(function(e,t){[e,t]=X$(e,t,N3);let n=(0,X.useContext)(w6),r=X2(e),i=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,a=HQ(t,i.isOpen)||e.isExiting||!1,o=Xke(),{direction:s}=y1();if(o){let t=e.children;return typeof t==`function`&&(t=t({trigger:e.trigger||null,placement:`bottom`,isEntering:!1,isExiting:!1,defaultChildren:null})),X.createElement(X.Fragment,null,t)}return i&&!i.isOpen&&!a?null:X.createElement(uAe,{...e,triggerRef:e.triggerRef,state:i,popoverRef:t,isExiting:a,dir:s})});function uAe({state:e,isExiting:t,UNSTABLE_portalContainer:n,clearContexts:r,...i}){let a=(0,X.useRef)(null),o=(0,X.useRef)(null),s=(0,X.useContext)(P3),c=s&&i.trigger===`SubmenuTrigger`,{popoverProps:l,underlayProps:u,arrowProps:d,placement:f,triggerAnchorPoint:p}=cOe({...i,offset:i.offset??8,arrowRef:a,groupRef:c?s:o},e),m=i.popoverRef,h=VQ(m,!!f)||i.isEntering||!1,g=J$({...i,defaultClassName:`react-aria-Popover`,values:{trigger:i.trigger||null,placement:f,isEntering:h,isExiting:t}}),_=!i.isNonModal||i.trigger===`SubmenuTrigger`,[v,y]=(0,X.useState)(!1);LZ(()=>{m.current&&y(_&&!m.current.querySelector(`[role=dialog]`))},[m,_]),(0,X.useEffect)(()=>{v&&i.trigger!==`SubmenuTrigger`&&m.current&&!m.current.contains(document.activeElement)&&N$(m.current)},[v,m,i.trigger]);let b=(0,X.useMemo)(()=>{let e=g.children;if(r)for(let t of r)e=X.createElement(t.Provider,{value:null},e);return e},[g.children,r]),x={...l.style,"--trigger-anchor-point":p?`${p.x}px ${p.y}px`:void 0,...g.style},S=X.createElement(`div`,{...eQ(iQ(i,{global:!0}),l),...g,role:v?`dialog`:void 0,tabIndex:v?-1:void 0,"aria-label":i[`aria-label`],"aria-labelledby":i[`aria-labelledby`],ref:m,slot:i.slot||void 0,style:x,dir:i.dir,"data-trigger":i.trigger,"data-placement":f,"data-entering":h||void 0,"data-exiting":t||void 0},!i.isNonModal&&X.createElement(U2,{onDismiss:e.close}),X.createElement(Q$.Provider,{value:{...d,placement:f,ref:a}},b),X.createElement(U2,{onDismiss:e.close}));return c?X.createElement(J2,{...i,shouldContainFocus:v,isExiting:t,portalContainer:n??s?.current??void 0},S):X.createElement(J2,{...i,shouldContainFocus:v,isExiting:t,portalContainer:n},!i.isNonModal&&e.isOpen&&X.createElement(`div`,{"data-testid":`underlay`,...u,style:{position:`fixed`,inset:0}}),X.createElement(`div`,{ref:o,style:{display:`contents`}},X.createElement(P3.Provider,{value:o},S)))}var F3=(0,X.createContext)(null);T3(`section`,(e,t,n)=>{let{name:r,render:i}=(0,X.useContext)(F3);return i(e,t,n,`react-aria-Section`)});var I3={CollectionRoot({collection:e,renderDropIndicator:t}){return L3(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return L3(e,t,n)}};function L3(e,t,n){return g3({items:t?e.getChildren(t.key):e,dependencies:[n],children(t){let r=t.render(t);return!n||t.type!==`item`?r:X.createElement(X.Fragment,null,n({type:`item`,key:t.key,dropPosition:`before`}),r,dAe(e,t,n))}})}function dAe(e,t,n){let r=t.key,i=e.getKeyAfter(r),a=i==null?null:e.getItem(i);for(;a!=null&&a.type!==`item`;)i=e.getKeyAfter(a.key),a=i==null?null:e.getItem(i);let o=t.nextKey==null?null:e.getItem(t.nextKey);for(;o!=null&&o.type!==`item`;)o=o.nextKey==null?null:e.getItem(o.nextKey);let s=[];if(o==null){let r=t;for(;r&&(!a||r.parentKey!==a.parentKey&&a.level<r.level);){let t=n({type:`item`,key:r.key,dropPosition:`after`});(0,X.isValidElement)(t)&&s.push((0,X.cloneElement)(t,{key:`${r.key}-after`})),r=r.parentKey==null?null:e.getItem(r.parentKey)}}return s}var R3=(0,X.createContext)(I3);function z3(e){return(0,X.useMemo)(()=>e==null?null:new Set([e]),[e])}var B3=(0,X.createContext)(null),fAe=(0,X.createContext)(null),V3=(0,X.createContext)({});w3(u3,function(e,t){return[e,t]=X$(e,t,V3),X.createElement(`header`,{className:`react-aria-Header`,...e,ref:t},e.children)});var H3=(0,X.createContext)({});(0,X.forwardRef)(function(e,t){return[e,t]=X$(e,t,H3),X.createElement(`kbd`,{dir:`ltr`,...e,ref:t})});function pAe(e){let t=iQ(e,{labelable:!0}),n;return e.orientation===`vertical`&&(n=`vertical`),e.elementType===`hr`?{separatorProps:t}:{separatorProps:{...t,role:`separator`,"aria-orientation":n}}}var U3=(0,X.createContext)({}),W3=class extends c3{filter(e,t){let n=t.getItem(this.prevKey);if(n&&n.type!==`separator`){let n=this.clone();return t.addDescendants(n,e),n}return null}};W3.type=`separator`,w3(W3,function(e,t){[e,t]=X$(e,t,U3);let{elementType:n,orientation:r,style:i,className:a,slot:o,...s}=e,c=n||`hr`;c===`hr`&&r===`vertical`&&(c=`div`);let{separatorProps:l}=pAe({...s,elementType:n,orientation:r}),u=iQ(e,{global:!0});return X.createElement(c,{...eQ(u,l),style:i,className:a??`react-aria-Separator`,ref:t,slot:o||void 0})});var G3=new WeakMap;function K3(e){return gTe()?e.altKey:e.ctrlKey}function q3(e,t){let n=`[data-key="${CSS.escape(String(t))}"]`,r=e.current?.dataset.collection;return r&&(n=`[data-collection="${CSS.escape(r)}"]${n}`),e.current?.querySelector(n)}var J3=new WeakMap;function mAe(e){let t=WZ();return J3.set(e,t),t}function hAe(e){return J3.get(e)}var gAe=1e3;function _Ae(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=(0,X.useRef)({search:``,timeout:void 0}).current;return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?e=>{let a=vAe(e.key);if(!(!a||e.ctrlKey||e.metaKey||!e.currentTarget.contains(e.target)||i.search.length===0&&a===` `)){if(a===` `&&i.search.trim().length>0&&(e.preventDefault(),`continuePropagation`in e||e.stopPropagation()),i.search+=a,t.getKeyForSearch!=null){let e=t.getKeyForSearch(i.search,n.focusedKey);e??=t.getKeyForSearch(i.search),e!=null&&(n.setFocusedKey(e),r&&r(e))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=``},gAe)}}:void 0}}}function vAe(e){return e.length===1||!/^[A-Z]/i.test(e)?e:``}function Y3(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:a=!1,disallowEmptySelection:o=!1,disallowSelectAll:s=!1,escapeKeyBehavior:c=`clearSelection`,selectOnFocus:l=t.selectionBehavior===`replace`,disallowTypeAhead:u=!1,shouldUseVirtualFocus:d,allowsTabNavigation:f=!1,isVirtualized:p,scrollRef:m=r,linkBehavior:h=`action`}=e,{direction:g}=y1(),_=gQ(),v=e=>{var i;if(e.altKey&&e.key===`Tab`&&e.preventDefault(),!((i=r.current)!=null&&i.contains(e.target)))return;let u=(n,i)=>{if(n!=null){if(t.isLink(n)&&h===`selection`&&l&&!K3(e)){(0,cK.flushSync)(()=>{t.setFocusedKey(n,i)});let a=q3(r,n),o=t.getItemProps(n);a&&_.open(a,e,o.href,o.routerOptions);return}if(t.setFocusedKey(n,i),t.isLink(n)&&h===`override`)return;e.shiftKey&&t.selectionMode===`multiple`?t.extendSelection(n):l&&!K3(e)&&t.replaceSelection(n)}};switch(e.key){case`ArrowDown`:if(n.getKeyBelow){let r=t.focusedKey==null?n.getFirstKey?.call(n):n.getKeyBelow?.call(n,t.focusedKey);r==null&&a&&(r=n.getFirstKey?.call(n,t.focusedKey)),r!=null&&(e.preventDefault(),u(r))}break;case`ArrowUp`:if(n.getKeyAbove){let r=t.focusedKey==null?n.getLastKey?.call(n):n.getKeyAbove?.call(n,t.focusedKey);r==null&&a&&(r=n.getLastKey?.call(n,t.focusedKey)),r!=null&&(e.preventDefault(),u(r))}break;case`ArrowLeft`:if(n.getKeyLeftOf){let r=t.focusedKey==null?null:n.getKeyLeftOf?.call(n,t.focusedKey);r==null&&a&&(r=g===`rtl`?n.getFirstKey?.call(n,t.focusedKey):n.getLastKey?.call(n,t.focusedKey)),r!=null&&(e.preventDefault(),u(r,g===`rtl`?`first`:`last`))}break;case`ArrowRight`:if(n.getKeyRightOf){let r=t.focusedKey==null?null:n.getKeyRightOf?.call(n,t.focusedKey);r==null&&a&&(r=g===`rtl`?n.getLastKey?.call(n,t.focusedKey):n.getFirstKey?.call(n,t.focusedKey)),r!=null&&(e.preventDefault(),u(r,g===`rtl`?`last`:`first`))}break;case`Home`:if(n.getFirstKey){if(t.focusedKey===null&&e.shiftKey)return;e.preventDefault();let r=n.getFirstKey(t.focusedKey,MQ(e));t.setFocusedKey(r),r!=null&&(MQ(e)&&e.shiftKey&&t.selectionMode===`multiple`?t.extendSelection(r):l&&t.replaceSelection(r))}break;case`End`:if(n.getLastKey){if(t.focusedKey===null&&e.shiftKey)return;e.preventDefault();let r=n.getLastKey(t.focusedKey,MQ(e));t.setFocusedKey(r),r!=null&&(MQ(e)&&e.shiftKey&&t.selectionMode===`multiple`?t.extendSelection(r):l&&t.replaceSelection(r))}break;case`PageDown`:if(n.getKeyPageBelow&&t.focusedKey!=null){let r=n.getKeyPageBelow(t.focusedKey);r!=null&&(e.preventDefault(),u(r))}break;case`PageUp`:if(n.getKeyPageAbove&&t.focusedKey!=null){let r=n.getKeyPageAbove(t.focusedKey);r!=null&&(e.preventDefault(),u(r))}break;case`a`:MQ(e)&&t.selectionMode===`multiple`&&s!==!0&&(e.preventDefault(),t.selectAll());break;case`Escape`:c===`clearSelection`&&!o&&t.selectedKeys.size!==0&&(e.stopPropagation(),e.preventDefault(),t.clearSelection());break;case`Tab`:if(!f){if(e.shiftKey)r.current.focus();else{let e=H0(r.current,{tabbable:!0}),t,n;do n=e.lastChild(),n&&(t=n);while(n);t&&!t.contains(document.activeElement)&&aQ(t)}break}}},y=(0,X.useRef)({top:0,left:0});FQ(m,`scroll`,p?void 0:()=>{y.current={top:m.current?.scrollTop??0,left:m.current?.scrollLeft??0}});let b=e=>{if(t.isFocused){e.currentTarget.contains(e.target)||t.setFocused(!1);return}if(e.currentTarget.contains(e.target)){if(t.setFocused(!0),t.focusedKey==null){let r=e=>{e!=null&&(t.setFocusedKey(e),l&&!t.isSelected(e)&&t.replaceSelection(e))},i=e.relatedTarget;i&&e.currentTarget.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_FOLLOWING?r(t.lastSelectedKey??n.getLastKey?.call(n)):r(t.firstSelectedKey??n.getFirstKey?.call(n))}else !p&&m.current&&(m.current.scrollTop=y.current.top,m.current.scrollLeft=y.current.left);if(t.focusedKey!=null&&m.current){let e=q3(r,t.focusedKey);e instanceof HTMLElement&&(!e.contains(document.activeElement)&&!d&&aQ(e),M$()===`keyboard`&&RQ(e,{containingElement:r.current}))}}},x=e=>{e.currentTarget.contains(e.relatedTarget)||t.setFocused(!1)},S=(0,X.useRef)(!1);FQ(r,MTe,d?e=>{let{detail:n}=e;e.stopPropagation(),t.setFocused(!0),n?.focusStrategy===`first`&&(S.current=!0)}:void 0);let C=EQ(()=>{let e=n.getFirstKey?.call(n)??null;if(e==null){let e=ZZ();q0(r.current),J0(e,null),t.collection.size>0&&(S.current=!1)}else t.setFocusedKey(e),S.current=!1});DQ(()=>{S.current&&C()},[t.collection,C]);let w=EQ(()=>{t.collection.size>0&&(S.current=!1)});DQ(()=>{w()},[t.focusedKey,w]),FQ(r,jTe,d?e=>{var n;e.stopPropagation(),t.setFocused(!1),(n=e.detail)!=null&&n.clearFocusKey&&t.setFocusedKey(null)}:void 0);let T=(0,X.useRef)(i),E=(0,X.useRef)(!1);(0,X.useEffect)(()=>{if(T.current){let e=null;i===`first`&&(e=n.getFirstKey?.call(n)??null),i===`last`&&(e=n.getLastKey?.call(n)??null);let a=t.selectedKeys;if(a.size){for(let n of a)if(t.canSelectItem(n)){e=n;break}}t.setFocused(!0),t.setFocusedKey(e),e==null&&!d&&r.current&&N$(r.current),t.collection.size>0&&(T.current=!1,E.current=!0)}});let D=(0,X.useRef)(t.focusedKey),O=(0,X.useRef)(null);(0,X.useEffect)(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==D.current||E.current)&&m.current&&r.current){let e=M$(),n=q3(r,t.focusedKey);if(!(n instanceof HTMLElement))return;(e===`keyboard`||E.current)&&(O.current&&cancelAnimationFrame(O.current),O.current=requestAnimationFrame(()=>{m.current&&(IQ(m.current,n),e!==`virtual`&&RQ(n,{containingElement:r.current}))}))}!d&&t.isFocused&&t.focusedKey==null&&D.current!=null&&r.current&&N$(r.current),D.current=t.focusedKey,E.current=!1}),(0,X.useEffect)(()=>()=>{O.current&&cancelAnimationFrame(O.current)},[]),FQ(r,`react-aria-focus-scope-restore`,e=>{e.preventDefault(),t.setFocused(!0)});let k={onKeyDown:v,onFocus:b,onBlur:x,onMouseDown(e){m.current===e.target&&e.preventDefault()}},{typeSelectProps:A}=_Ae({keyboardDelegate:n,selectionManager:t});u||(k=eQ(A,k));let j;d||(j=t.focusedKey==null?0:-1);let M=mAe(t.collection);return{collectionProps:eQ(k,{tabIndex:j,"data-collection":M})}}function X3(e){let{id:t,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:a,shouldUseVirtualFocus:o,focus:s,isDisabled:c,onAction:l,allowsDifferentPressOrigin:u,linkBehavior:d=`action`}=e,f=gQ();t=WZ(t);let p=e=>{if(e.pointerType===`keyboard`&&K3(e))n.toggleSelection(r);else{if(n.selectionMode===`none`)return;if(n.isLink(r)){if(d===`selection`&&i.current){let t=n.getItemProps(r);f.open(i.current,e,t.href,t.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(d===`override`||d===`none`)return}n.selectionMode===`single`?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):e&&e.shiftKey?n.extendSelection(r):n.selectionBehavior===`toggle`||e&&(MQ(e)||e.pointerType===`touch`||e.pointerType===`virtual`)?n.toggleSelection(r):n.replaceSelection(r)}};(0,X.useEffect)(()=>{r===n.focusedKey&&n.isFocused&&(o?q0(i.current):s?s():document.activeElement!==i.current&&i.current&&N$(i.current))},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,o]),c||=n.isDisabled(r);let m={};!o&&!c?m={tabIndex:r===n.focusedKey?0:-1,onFocus(e){e.target===i.current&&n.setFocusedKey(r)}}:c&&(m.onMouseDown=e=>{e.preventDefault()});let h=n.isLink(r)&&d===`override`,g=l&&e.UNSTABLE_itemBehavior===`action`,_=n.isLink(r)&&d!==`selection`&&d!==`none`,v=!c&&n.canSelectItem(r)&&!h&&!g,y=(l||_)&&!c,b=y&&(n.selectionBehavior===`replace`?!v:!v||n.isEmpty),x=y&&v&&n.selectionBehavior===`replace`,S=b||x,C=(0,X.useRef)(null),w=S&&v,T=(0,X.useRef)(!1),E=(0,X.useRef)(!1),D=n.getItemProps(r),O=e=>{if(l){var t;l(),(t=i.current)==null||t.dispatchEvent(new CustomEvent(`react-aria-item-action`,{bubbles:!0}))}_&&i.current&&f.open(i.current,e,D.href,D.routerOptions)},k={ref:i};if(a?(k.onPressStart=e=>{C.current=e.pointerType,T.current=w,e.pointerType===`keyboard`&&(!S||Q3())&&p(e)},u?(k.onPressUp=b?void 0:e=>{e.pointerType===`mouse`&&v&&p(e)},k.onPress=b?O:e=>{e.pointerType!==`keyboard`&&e.pointerType!==`mouse`&&v&&p(e)}):k.onPress=e=>{if(b||x&&e.pointerType!==`mouse`){if(e.pointerType===`keyboard`&&!Z3())return;O(e)}else e.pointerType!==`keyboard`&&v&&p(e)}):(k.onPressStart=e=>{C.current=e.pointerType,T.current=w,E.current=b,v&&(e.pointerType===`mouse`&&!b||e.pointerType===`keyboard`&&(!y||Q3()))&&p(e)},k.onPress=e=>{(e.pointerType===`touch`||e.pointerType===`pen`||e.pointerType===`virtual`||e.pointerType===`keyboard`&&S&&Z3()||e.pointerType===`mouse`&&E.current)&&(S?O(e):v&&p(e))}),m[`data-collection`]=hAe(n.collection),m[`data-key`]=r,k.preventFocusOnPress=o,o&&(k=eQ(k,{onPressStart(e){e.pointerType!==`touch`&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(e){e.pointerType===`touch`&&(n.setFocused(!0),n.setFocusedKey(r))}})),D)for(let e of[`onPressStart`,`onPressEnd`,`onPressChange`,`onPress`,`onPressUp`,`onClick`])D[e]&&(k[e]=KZ(k[e],D[e]));let{pressProps:A,isPressed:j}=f$(k),M=x?e=>{C.current===`mouse`&&(e.stopPropagation(),e.preventDefault(),O(e))}:void 0,{longPressProps:N}=fEe({isDisabled:!w,onLongPress(e){e.pointerType===`touch`&&(p(e),n.setSelectionBehavior(`toggle`))}}),P=e=>{C.current===`touch`&&T.current&&e.preventDefault()},ee=d!==`none`&&n.isLink(r)?e=>{_Q.isOpening||e.preventDefault()}:void 0;return{itemProps:eQ(m,v||b||o&&!c?A:{},w?N:{},{onDoubleClick:M,onDragStartCapture:P,onClick:ee,id:t},o?{onMouseDown:e=>e.preventDefault()}:void 0),isPressed:j,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:c,allowsSelection:v,hasAction:S}}function Z3(){return window.event?.key===`Enter`}function Q3(){let e=window.event;return e?.key===` `||e?.code===`Space`}var $3=class{getItemRect(e){let t=this.ref.current;if(!t)return null;let n=e==null?null:q3(this.ref,e);if(!n)return null;let r=t.getBoundingClientRect(),i=n.getBoundingClientRect();return{x:i.left-r.left-t.clientLeft+t.scrollLeft,y:i.top-r.top-t.clientTop+t.scrollTop,width:i.width,height:i.height}}getContentSize(){let e=this.ref.current;return{width:e?.scrollWidth??0,height:e?.scrollHeight??0}}getVisibleRect(){let e=this.ref.current;return{x:e?.scrollLeft??0,y:e?.scrollTop??0,width:e?.clientWidth??0,height:e?.clientHeight??0}}constructor(e){this.ref=e}},yAe=class{isDisabled(e){return this.disabledBehavior===`all`&&(e.props?.isDisabled||this.disabledKeys.has(e.key))}findNextNonDisabled(e,t){let n=e;for(;n!=null;){let e=this.collection.getItem(n);if(e?.type===`item`&&!this.isDisabled(e))return n;n=t(n)}return null}getNextKey(e){let t=e;return t=this.collection.getKeyAfter(t),this.findNextNonDisabled(t,e=>this.collection.getKeyAfter(e))}getPreviousKey(e){let t=e;return t=this.collection.getKeyBefore(t),this.findNextNonDisabled(t,e=>this.collection.getKeyBefore(e))}findKey(e,t,n){let r=e,i=this.layoutDelegate.getItemRect(r);if(!i||r==null)return null;let a=i;do{if(r=t(r),r==null)break;i=this.layoutDelegate.getItemRect(r)}while(i&&n(a,i)&&r!=null);return r}isSameRow(e,t){return e.y===t.y||e.x!==t.x}isSameColumn(e,t){return e.x===t.x||e.y!==t.y}getKeyBelow(e){return this.layout===`grid`&&this.orientation===`vertical`?this.findKey(e,e=>this.getNextKey(e),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout===`grid`&&this.orientation===`vertical`?this.findKey(e,e=>this.getPreviousKey(e),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,t){return t?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let t=this.direction===`ltr`?`getKeyRightOf`:`getKeyLeftOf`;return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[t](e))):this.layout===`grid`?this.orientation===`vertical`?this.getNextColumn(e,this.direction===`rtl`):this.findKey(e,e=>this.getNextColumn(e,this.direction===`rtl`),this.isSameColumn):this.orientation===`horizontal`?this.getNextColumn(e,this.direction===`rtl`):null}getKeyLeftOf(e){let t=this.direction===`ltr`?`getKeyLeftOf`:`getKeyRightOf`;return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[t](e))):this.layout===`grid`?this.orientation===`vertical`?this.getNextColumn(e,this.direction===`ltr`):this.findKey(e,e=>this.getNextColumn(e,this.direction===`ltr`),this.isSameColumn):this.orientation===`horizontal`?this.getNextColumn(e,this.direction===`ltr`):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyAfter(e))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyBefore(e))}getKeyPageAbove(e){let t=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;if(t&&!AQ(t))return this.getFirstKey();let r=e;if(this.orientation===`horizontal`){let e=Math.max(0,n.x+n.width-this.layoutDelegate.getVisibleRect().width);for(;n&&n.x>e&&r!=null;)r=this.getKeyAbove(r),n=r==null?null:this.layoutDelegate.getItemRect(r)}else{let e=Math.max(0,n.y+n.height-this.layoutDelegate.getVisibleRect().height);for(;n&&n.y>e&&r!=null;)r=this.getKeyAbove(r),n=r==null?null:this.layoutDelegate.getItemRect(r)}return r??this.getFirstKey()}getKeyPageBelow(e){let t=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;if(t&&!AQ(t))return this.getLastKey();let r=e;if(this.orientation===`horizontal`){let e=Math.min(this.layoutDelegate.getContentSize().width,n.y-n.width+this.layoutDelegate.getVisibleRect().width);for(;n&&n.x<e&&r!=null;)r=this.getKeyBelow(r),n=r==null?null:this.layoutDelegate.getItemRect(r)}else{let e=Math.min(this.layoutDelegate.getContentSize().height,n.y-n.height+this.layoutDelegate.getVisibleRect().height);for(;n&&n.y<e&&r!=null;)r=this.getKeyBelow(r),n=r==null?null:this.layoutDelegate.getItemRect(r)}return r??this.getLastKey()}getKeyForSearch(e,t){if(!this.collator)return null;let n=this.collection,r=t||this.getFirstKey();for(;r!=null;){let t=n.getItem(r);if(!t)return null;let i=t.textValue.slice(0,e.length);if(t.textValue&&this.collator.compare(i,e)===0)return r;r=this.getNextKey(r)}return null}constructor(...e){if(e.length===1){let t=e[0];this.collection=t.collection,this.ref=t.ref,this.collator=t.collator,this.disabledKeys=t.disabledKeys||new Set,this.disabledBehavior=t.disabledBehavior||`all`,this.orientation=t.orientation||`vertical`,this.direction=t.direction,this.layout=t.layout||`stack`,this.layoutDelegate=t.layoutDelegate||new $3(t.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout=`stack`,this.orientation=`vertical`,this.disabledBehavior=`all`,this.layoutDelegate=new $3(this.ref);this.layout===`stack`&&this.orientation===`vertical`&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}};function bAe(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:a,layoutDelegate:o}=e,s=NDe({usage:`search`,sensitivity:`base`}),c=t.disabledBehavior,l=(0,X.useMemo)(()=>a||new yAe({collection:n,disabledKeys:r,disabledBehavior:c,ref:i,collator:s,layoutDelegate:o}),[a,o,n,r,i,s,c]),{collectionProps:u}=Y3({...e,ref:i,selectionManager:t,keyboardDelegate:l});return{listProps:u}}function xAe(e,t,n){let{shouldFocusWrap:r=!0,onKeyDown:i,onKeyUp:a,...o}=e;!e[`aria-label`]&&e[`aria-labelledby`];let s=iQ(e,{labelable:!0}),{listProps:c}=bAe({...o,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:`override`});return G3.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:eQ(s,{onKeyDown:i,onKeyUp:a},{role:`menu`,...c,onKeyDown:t=>{var n;(t.key!==`Escape`||e.shouldUseVirtualFocus)&&((n=c.onKeyDown)==null||n.call(c,t))}})}}function e6(e){return null}e6.getCollectionNode=function*(e,t){let{childItems:n,title:r,children:i}=e,a=e.title||e.children,o=e.textValue||(typeof a==`string`?a:``)||e[`aria-label`]||``;!o&&t?.suppressTextValueWarning,yield{type:`item`,props:e,rendered:a,textValue:o,"aria-label":e[`aria-label`],hasChildNodes:SAe(e),*childNodes(){if(n)for(let e of n)yield{type:`item`,value:e};else if(r){let e=[];X.Children.forEach(i,t=>{e.push({type:`item`,element:t})}),yield*e}}}};function SAe(e){return e.hasChildItems==null?!!(e.childItems||e.title&&X.Children.count(e.children)>0):e.hasChildItems}var CAe=e6;function wAe(e){return null}wAe.getCollectionNode=function*(e){let{children:t,title:n,items:r}=e;yield{type:`section`,props:e,hasChildNodes:!0,rendered:n,"aria-label":e[`aria-label`],*childNodes(){if(typeof t==`function`){if(!r)throw Error(`props.children was a function but props.items is missing`);for(let e of r)yield{type:`item`,value:e,renderer:t}}else{let e=[];X.Children.forEach(t,t=>{e.push({type:`item`,element:t})}),yield*e}}}};var TAe=class{build(e,t){return this.context=t,t6(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:n}=e;if(X.isValidElement(t)&&t.type===X.Fragment)yield*this.iterateCollection({children:t.props.children,items:n});else if(typeof t==`function`){if(!n)throw Error(`props.children was a function but props.items is missing`);let e=0;for(let r of n)yield*this.getFullNode({value:r,index:e},{renderer:t}),e++}else{let e=[];X.Children.forEach(t,t=>{t&&e.push(t)});let n=0;for(let t of e){let e=this.getFullNode({element:t,index:n},{});for(let t of e)n++,yield t}}}getKey(e,t,n,r){if(e.key!=null)return e.key;if(t.type===`cell`&&t.key!=null)return`${r}${t.key}`;let i=t.value;if(i!=null){let e=i.key??i.id;if(e==null)throw Error(`No key found for item`);return e}return r?`${r}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,n,r){if(X.isValidElement(e.element)&&e.element.type===X.Fragment){let i=[];X.Children.forEach(e.element.props.children,e=>{i.push(e)});let a=e.index??0;for(let e of i)yield*this.getFullNode({element:e,index:a++},t,n,r);return}let i=e.element;if(!i&&e.value&&t&&t.renderer){let n=this.cache.get(e.value);if(n&&(!n.shouldInvalidate||!n.shouldInvalidate(this.context))){n.index=e.index,n.parentKey=r?r.key:null,yield n;return}i=t.renderer(e.value)}if(X.isValidElement(i)){let a=i.type;if(typeof a!=`function`&&typeof a.getCollectionNode!=`function`){let e=i.type;throw Error(`Unknown element <${e}> in collection.`)}let o=a.getCollectionNode(i.props,this.context),s=e.index??0,c=o.next();for(;!c.done&&c.value;){let a=c.value;e.index=s;let l=a.key??null;l??=a.element?null:this.getKey(i,e,t,n);let u=[...this.getFullNode({...a,key:l,index:s,wrapper:EAe(e.wrapper,a.wrapper)},this.getChildState(t,a),n?`${n}${i.key}`:i.key,r)];for(let t of u){if(t.value=a.value??e.value??null,t.value&&this.cache.set(t.value,t),e.type&&t.type!==e.type)throw Error(`Unsupported type <${n6(t.type)}> in <${n6(r?.type??`unknown parent type`)}>. Only <${n6(e.type)}> is supported.`);s++,yield t}c=o.next(u)}return}if(e.key==null||e.type==null)return;let a=this,o={type:e.type,props:e.props,key:e.key,parentKey:r?r.key:null,value:e.value??null,level:r?r.level+1:0,index:e.index,rendered:e.rendered,textValue:e.textValue??``,"aria-label":e[`aria-label`],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:t6(function*(){if(!e.hasChildNodes||!e.childNodes)return;let n=0;for(let r of e.childNodes()){r.key!=null&&(r.key=`${o.key}${r.key}`);let e=a.getFullNode({...r,index:n},a.getChildState(t,r),o.key,o);for(let t of e)n++,yield t}})};yield o}constructor(){this.cache=new WeakMap}};function t6(e){let t=[],n=null;return{*[Symbol.iterator](){for(let e of t)yield e;n||=e();for(let e of n)t.push(e),yield e}}}function EAe(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function n6(e){return e[0].toUpperCase()+e.slice(1)}function r6(e,t,n){let r=(0,X.useMemo)(()=>new TAe,[]),{children:i,items:a,collection:o}=e;return(0,X.useMemo)(()=>o||t(r.build({children:i,items:a},n)),[r,i,a,o,n,t])}function i6(e,t){return typeof t.getChildren==`function`?t.getChildren(e.key):e.childNodes}function DAe(e){return OAe(e,0)}function OAe(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function a6(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...o6(e,t),t],i=[...o6(e,n),n],a=r.slice(0,i.length).findIndex((e,t)=>e!==i[t]);return a===-1?r.findIndex(e=>e===n)>=0?1:(i.findIndex(e=>e===t),-1):(t=r[a],n=i[a],t.index-n.index)}function o6(e,t){let n=[],r=t;for(;r?.parentKey!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}var s6=new WeakMap;function kAe(e){let t=s6.get(e);if(t!=null)return t;let n=0,r=t=>{for(let i of t)i.type===`section`?r(i6(i,e)):i.type===`item`&&n++};return r(e),s6.set(e,n),n}function AAe(e,t,n){let{id:r,key:i,closeOnSelect:a,isVirtualized:o,"aria-haspopup":s,onPressStart:c,onPressUp:l,onPress:u,onPressChange:d,onPressEnd:f,onClick:p,onHoverStart:m,onHoverChange:h,onHoverEnd:g,onKeyDown:_,onKeyUp:v,onFocus:y,onFocusChange:b,onBlur:x,selectionManager:S=t.selectionManager}=e,C=!!s,w=C&&e[`aria-expanded`]===`true`,T=e.isDisabled??S.isDisabled(i),E=e.isSelected??S.isSelected(i),D=G3.get(t),O=t.collection.getItem(i),k=e.onClose||D.onClose,A=gQ(),j=()=>{var t;if(!C&&(!(O==null||(t=O.props)==null)&&t.onAction?O.props.onAction():e.onAction&&e.onAction(i),D.onAction)){let e=D.onAction;e(i)}},M=`menuitem`;C||(S.selectionMode===`single`?M=`menuitemradio`:S.selectionMode===`multiple`&&(M=`menuitemcheckbox`));let N=GZ(),P=GZ(),ee=GZ(),te={id:r,"aria-disabled":T||void 0,role:M,"aria-label":e[`aria-label`],"aria-labelledby":N,"aria-describedby":[P,ee].filter(Boolean).join(` `)||void 0,"aria-controls":e[`aria-controls`],"aria-haspopup":s,"aria-expanded":e[`aria-expanded`]};S.selectionMode!==`none`&&!C&&(te[`aria-checked`]=E),o&&(te[`aria-posinset`]=O?.index,te[`aria-setsize`]=kAe(t.collection));let F=(0,X.useRef)(!1),I=e=>{d?.(e),F.current=e},ne=(0,X.useRef)(null),re=e=>{e.pointerType!==`keyboard`&&(ne.current={pointerType:e.pointerType}),e.pointerType===`mouse`&&(F.current||e.target.click()),l?.(e)},ie=e=>{p?.(e),j(),STe(e,A,O.props.href,O?.props.routerOptions);let t=ne.current?.pointerType===`keyboard`?ne.current?.key===`Enter`||S.selectionMode===`none`||S.isLink(i):S.selectionMode!==`multiple`||S.isLink(i);t=a??t,k&&!C&&t&&k(),ne.current=null},{itemProps:L,isFocused:ae}=X3({id:r,selectionManager:S,key:i,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:`none`,shouldUseVirtualFocus:D.shouldUseVirtualFocus}),{pressProps:oe,isPressed:se}=f$({onPressStart:c,onPress:u,onPressUp:re,onPressChange:I,onPressEnd:f,isDisabled:T}),{hoverProps:ce}=U$({isDisabled:T,onHoverStart(e){!j$()&&!(w&&s)&&(S.setFocused(!0),S.setFocusedKey(i)),m?.(e)},onHoverChange:h,onHoverEnd:g}),{keyboardProps:le}=I$({onKeyDown:e=>{if(e.repeat){e.continuePropagation();return}switch(e.key){case` `:ne.current={pointerType:`keyboard`,key:` `},e.target.click();break;case`Enter`:ne.current={pointerType:`keyboard`,key:`Enter`},e.target.tagName!==`A`&&e.target.click();break;default:C||e.continuePropagation(),_?.(e);break}},onKeyUp:v}),{focusProps:ue}=P$({onBlur:x,onFocus:y,onFocusChange:b}),de=iQ(O?.props);delete de.id;let fe=vQ(O?.props);return{menuItemProps:{...te,...eQ(de,fe,C?{onFocus:L.onFocus,"data-collection":L[`data-collection`],"data-key":L[`data-key`]}:L,oe,ce,le,ue,D.shouldUseVirtualFocus||C?{onMouseDown:e=>e.preventDefault()}:void 0,T?void 0:{onClick:ie}),tabIndex:L.tabIndex!=null&&w&&!D.shouldUseVirtualFocus?-1:L.tabIndex},labelProps:{id:N},descriptionProps:{id:P},keyboardShortcutProps:{id:ee},isFocused:ae,isFocusVisible:ae&&S.isFocused&&j$()&&!w,isSelected:E,isPressed:se,isDisabled:T}}function jAe(e){let{heading:t,"aria-label":n}=e,r=WZ();return{itemProps:{role:`presentation`},headingProps:t?{id:r,role:`presentation`}:{},groupProps:{role:`group`,"aria-label":n,"aria-labelledby":t?r:void 0}}}var c6=2,MAe=50,NAe=1e3,l6=Math.PI/12;function PAe(e){let{menuRef:t,submenuRef:n,isOpen:r,isDisabled:i}=e,a=(0,X.useRef)(void 0),o=(0,X.useRef)(void 0),s=(0,X.useRef)(0),c=(0,X.useRef)(void 0),l=(0,X.useRef)(void 0),u=(0,X.useRef)(void 0),d=(0,X.useRef)(2),[f,p]=(0,X.useState)(!1);OQ({ref:n,onResize:()=>{n.current&&(o.current=n.current.getBoundingClientRect(),u.current=void 0)}});let m=()=>{p(!1),d.current=c6,a.current=void 0},h=$Te(),g=EQ(e=>{f&&e.preventDefault()});(0,X.useEffect)(()=>{f&&t.current?t.current.style.pointerEvents=`none`:t.current.style.pointerEvents=``},[t,f]),(0,X.useEffect)(()=>{let e=n.current,f=t.current;if(i||!e||!r||h!==`pointer`||!f){m();return}o.current=e.getBoundingClientRect();let _=e=>{if(e.pointerType===`touch`||e.pointerType===`pen`)return;let t=Date.now();if(t-s.current<MAe)return;clearTimeout(c.current),clearTimeout(l.current);let{clientX:n,clientY:r}=e;if(!a.current){a.current={x:n,y:r};return}if(!o.current)return;if(u.current||=n>o.current.right?`left`:`right`,n<f.getBoundingClientRect().left||n>f.getBoundingClientRect().right||r<f.getBoundingClientRect().top||r>f.getBoundingClientRect().bottom){m();return}let i=a.current.x,h=a.current.y,g=u.current===`right`?o.current.left-i:i-o.current.right,_=Math.atan2(h-o.current.top,g)+l6,v=Math.atan2(h-o.current.bottom,g)-l6,y=Math.atan2(h-r,u.current===`left`?-(n-i):n-i),b=y<_&&y>v;d.current=b?Math.min(d.current+1,c6):Math.max(d.current-1,0),d.current>=c6?p(!0):p(!1),s.current=t,a.current={x:n,y:r},b&&(c.current=setTimeout(()=>{m(),l.current=setTimeout(()=>{let e=document.elementFromPoint(n,r);e&&f.contains(e)&&e.dispatchEvent(new PointerEvent(`pointerover`,{bubbles:!0,cancelable:!0}))},100)},NAe))};return window.addEventListener(`pointermove`,_),window.addEventListener(`pointerdown`,g,!0),()=>{window.removeEventListener(`pointermove`,_),window.removeEventListener(`pointerdown`,g,!0),clearTimeout(c.current),clearTimeout(l.current),d.current=c6}},[i,r,t,h,p,g,n])}function FAe(e,t,n){let{parentMenuRef:r,submenuRef:i,type:a=`menu`,isDisabled:o,delay:s=200,shouldUseVirtualFocus:c}=e,l=WZ(),u=WZ(),{direction:d}=y1(),f=(0,X.useRef)(void 0),p=(0,X.useCallback)(()=>{f.current&&=(clearTimeout(f.current),void 0)},[f]),m=EQ(e=>{p(),t.open(e)}),h=EQ(()=>{p(),t.close()});LZ(()=>()=>{p()},[p]);let g=e=>{if(e.currentTarget.contains(document.activeElement))switch(e.key){case`ArrowLeft`:d===`ltr`&&e.currentTarget.contains(e.target)&&(e.preventDefault(),e.stopPropagation(),h(),!c&&n.current&&aQ(n.current));break;case`ArrowRight`:d===`rtl`&&e.currentTarget.contains(e.target)&&(e.preventDefault(),e.stopPropagation(),h(),!c&&n.current&&aQ(n.current));break;case`Escape`:var t;(t=i.current)!=null&&t.contains(e.target)&&(e.stopPropagation(),h(),!c&&n.current&&aQ(n.current));break}},_={id:u,"aria-labelledby":l,submenuLevel:t.submenuLevel,...a===`menu`&&{onClose:t.closeAll,autoFocus:t.focusStrategy??void 0,onKeyDown:g}},v=e=>{switch(e.key){case`ArrowRight`:o||(d===`ltr`?(e.preventDefault(),t.isOpen||m(`first`),a===`menu`&&i?.current&&document.activeElement===n?.current&&aQ(i.current)):t.isOpen?h():e.continuePropagation());break;case`ArrowLeft`:o||(d===`rtl`?(e.preventDefault(),t.isOpen||m(`first`),a===`menu`&&i?.current&&document.activeElement===n?.current&&aQ(i.current)):t.isOpen?h():e.continuePropagation());break;default:e.continuePropagation();break}},y=e=>{!o&&(e.pointerType===`virtual`||e.pointerType===`keyboard`)&&m(`first`)},b=e=>{!o&&(e.pointerType===`touch`||e.pointerType===`mouse`)&&m()},x=e=>{o||(e&&!t.isOpen?f.current||=setTimeout(()=>{m()},s):e||p())};FQ(r,`focusin`,e=>{var i;t.isOpen&&(i=r.current)!=null&&i.contains(e.target)&&e.target!==n.current&&h()});let S=e=>e!==n.current;return PAe({menuRef:r,submenuRef:i,isOpen:t.isOpen,isDisabled:o}),{submenuTriggerProps:{id:l,"aria-controls":t.isOpen?u:void 0,"aria-haspopup":o?void 0:a,"aria-expanded":t.isOpen?`true`:`false`,onPressStart:y,onPress:b,onHoverChange:x,onKeyDown:v,isOpen:t.isOpen},submenuProps:_,popoverProps:{isNonModal:!0,shouldCloseOnInteractOutside:S}}}function u6(e){let t=X2(e),[n,r]=(0,X.useState)(null),[i,a]=(0,X.useState)([]),o=()=>{a([]),t.close()};return{focusStrategy:n,...t,open(e=null){r(e),t.open()},toggle(e=null){r(e),t.toggle()},close(){o()},expandedKeysStack:i,openSubmenu:(e,t)=>{a(n=>t>n.length?n:[...n.slice(0,t),e])},closeSubmenu:(e,t)=>{a(n=>n[t]===e?n.slice(0,t):n)}}}function IAe(e,t){let{triggerKey:n}=e,{expandedKeysStack:r,openSubmenu:i,closeSubmenu:a,close:o}=t,[s]=(0,X.useState)(r?.length),c=(0,X.useMemo)(()=>r[s]===n,[r,n,s]),[l,u]=(0,X.useState)(null),d=(0,X.useCallback)(e=>{u(e??null),i(n,s)},[i,s,n]),f=(0,X.useCallback)(()=>{u(null),a(n,s)},[a,s,n]),p=(0,X.useCallback)(e=>{u(e??null),c?f():d(e)},[f,d,c]);return(0,X.useMemo)(()=>({focusStrategy:l,isOpen:c,open:d,close:f,closeAll:o,submenuLevel:s,setOpen:()=>{},toggle:p}),[c,d,f,o,l,p,s])}var LAe=class{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);var n;return t&&(n=t.prevKey)!=null?n:null}getKeyAfter(e){let t=this.keyMap.get(e);var n;return t&&(n=t.nextKey)!=null?n:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)??null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}constructor(e,{expandedKeys:t}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e,t||=new Set;let n=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&(e.type===`section`||t.has(e.key)))for(let t of e.childNodes)n(t)};for(let t of e)n(t);let r=null,i=0;for(let[e,t]of this.keyMap)r?(r.nextKey=e,t.prevKey=r.key):(this.firstKey=e,t.prevKey=void 0),t.type===`item`&&(t.index=i++),r=t,r.nextKey=void 0;this.lastKey=r?.key??null}},d6=class e extends Set{constructor(t,n,r){super(t),t instanceof e?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}};function RAe(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function f6(e){let{selectionMode:t=`none`,disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i=`toggle`,disabledBehavior:a=`all`}=e,o=(0,X.useRef)(!1),[,s]=(0,X.useState)(!1),c=(0,X.useRef)(null),l=(0,X.useRef)(null),[,u]=(0,X.useState)(null),[d,f]=JQ((0,X.useMemo)(()=>p6(e.selectedKeys),[e.selectedKeys]),(0,X.useMemo)(()=>p6(e.defaultSelectedKeys,new d6),[e.defaultSelectedKeys]),e.onSelectionChange),p=(0,X.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[m,h]=(0,X.useState)(i);i===`replace`&&m===`toggle`&&typeof d==`object`&&d.size===0&&h(`replace`);let g=(0,X.useRef)(i);return(0,X.useEffect)(()=>{i!==g.current&&(h(i),g.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:m,setSelectionBehavior:h,get isFocused(){return o.current},setFocused(e){o.current=e,s(e)},get focusedKey(){return c.current},get childFocusStrategy(){return l.current},setFocusedKey(e,t=`first`){c.current=e,l.current=t,u(e)},selectedKeys:d,setSelectedKeys(e){(r||!RAe(e,d))&&f(e)},disabledKeys:p,disabledBehavior:a}}function p6(e,t){return e?e===`all`?`all`:new d6(e):t}var m6=class e{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,t)}get selectedKeys(){return this.state.selectedKeys===`all`?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode===`none`)return!1;let t=this.getKey(e);return t==null?!1:this.state.selectedKeys===`all`?this.canSelectItem(t):this.state.selectedKeys.has(t)}get isEmpty(){return this.state.selectedKeys!==`all`&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys===`all`)return!0;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every(e=>t.has(e)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&a6(this.collection,n,e)<0)&&(e=n)}return e?.key??null}get lastSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&a6(this.collection,n,e)>0)&&(e=n)}return e?.key??null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode===`none`)return;if(this.selectionMode===`single`){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let n;if(this.state.selectedKeys===`all`)n=new d6([t],t,t);else{let e=this.state.selectedKeys,r=e.anchorKey??t;n=new d6(e,r,t);for(let i of this.getKeyRange(r,e.currentKey??t))n.delete(i);for(let e of this.getKeyRange(t,r))this.canSelectItem(e)&&n.add(e)}this.state.setSelectedKeys(n)}getKeyRange(e,t){let n=this.collection.getItem(e),r=this.collection.getItem(t);return n&&r?a6(this.collection,n,r)<=0?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){var n;if((n=this.layoutDelegate)!=null&&n.getKeyRange)return this.layoutDelegate.getKeyRange(e,t);let r=[],i=e;for(;i!=null;){let e=this.collection.getItem(i);if(e&&(e.type===`item`||e.type===`cell`&&this.allowsCellSelection)&&r.push(i),i===t)return r;i=this.collection.getKeyAfter(i)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t||t.type===`cell`&&this.allowsCellSelection)return e;for(;t&&t.type!==`item`&&t.parentKey!=null;)t=this.collection.getItem(t.parentKey);return!t||t.type!==`item`?null:t.key}toggleSelection(e){if(this.selectionMode===`none`)return;if(this.selectionMode===`single`&&!this.isSelected(e)){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let n=new d6(this.state.selectedKeys===`all`?this.getSelectAllKeys():this.state.selectedKeys);n.has(t)?n.delete(t):this.canSelectItem(t)&&(n.add(t),n.anchorKey=t,n.currentKey=t),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(e){if(this.selectionMode===`none`)return;let t=this.getKey(e);if(t==null)return;let n=this.canSelectItem(t)?new d6([t],t,t):new d6;this.state.setSelectedKeys(n)}setSelectedKeys(e){if(this.selectionMode===`none`)return;let t=new d6;for(let n of e){let e=this.getKey(n);if(e!=null&&(t.add(e),this.selectionMode===`single`))break}this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=[],t=n=>{for(;n!=null;){if(this.canSelectItem(n)){let r=this.collection.getItem(n);r?.type===`item`&&e.push(n),r?.hasChildNodes&&(this.allowsCellSelection||r.type!==`item`)&&t(DAe(i6(r,this.collection))?.key??null)}n=this.collection.getKeyAfter(n)}};return t(this.collection.getFirstKey()),e}selectAll(){!this.isSelectAll&&this.selectionMode===`multiple`&&this.state.setSelectedKeys(`all`)}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys===`all`||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new d6)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){this.selectionMode!==`none`&&(this.selectionMode===`single`?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior===`toggle`||t&&(t.pointerType===`touch`||t.pointerType===`virtual`)?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;for(let n of t)if(!e.has(n))return!1;return!0}canSelectItem(e){var t;if(this.state.selectionMode===`none`||this.state.disabledKeys.has(e))return!1;let n=this.collection.getItem(e);return!(!n||!(n==null||(t=n.props)==null)&&t.isDisabled||n.type===`cell`&&!this.allowsCellSelection)}isDisabled(e){var t,n;return this.state.disabledBehavior===`all`&&(this.state.disabledKeys.has(e)||!!(!((n=this.collection.getItem(e))==null||(t=n.props)==null)&&t.isDisabled))}isLink(e){var t,n;return!!(!((n=this.collection.getItem(e))==null||(t=n.props)==null)&&t.href)}getItemProps(e){return this.collection.getItem(e)?.props}withCollection(t){return new e(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(e,t,n){this.collection=e,this.state=t,this.allowsCellSelection=n?.allowsCellSelection??!1,this._isSelectAll=null,this.layoutDelegate=n?.layoutDelegate||null}};function zAe(e){let{onExpandedChange:t}=e,[n,r]=JQ(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),i=f6(e),a=(0,X.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=r6(e,(0,X.useCallback)(e=>new LAe(e,{expandedKeys:n}),[n]),null);return(0,X.useEffect)(()=>{i.focusedKey!=null&&!o.getItem(i.focusedKey)&&i.setFocusedKey(null)},[o,i.focusedKey]),{collection:o,expandedKeys:n,disabledKeys:a,toggleKey:e=>{r(BAe(n,e))},setExpandedKeys:r,selectionManager:new m6(o,i)}}function BAe(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}var h6=(0,X.createContext)(null),g6=(0,X.createContext)(null),_6=(0,X.createContext)(null),v6=(0,X.createContext)(null),y6=(0,X.createContext)(null),b6=class extends c3{filter(e,t,n){let r=e.getItem(this.firstChildKey);if(r&&n(r.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};b6.type=`submenutrigger`,T3(b6,(e,t,n)=>{let{CollectionBranch:r}=(0,X.useContext)(R3),i=(0,X.useContext)(g6),a=(0,X.useContext)(_6),o=IAe({triggerKey:n.key},a),s=(0,X.useRef)(null),c=TQ(t),{parentMenuRef:l,shouldUseVirtualFocus:u}=(0,X.useContext)(y6),{submenuTriggerProps:d,submenuProps:f,popoverProps:p}=FAe({parentMenuRef:l,submenuRef:s,delay:e.delay,shouldUseVirtualFocus:u},o,c);return X.createElement(q$,{values:[[S6,{...d,onAction:void 0,ref:c}],[h6,{ref:s,...f}],[w6,o],[N3,{trigger:`SubmenuTrigger`,triggerRef:c,placement:`end top`,"aria-labelledby":f[`aria-labelledby`],...p}]]},X.createElement(r,{collection:i.collection,parent:n}),e.children[1])},e=>e.children[0]),(0,X.forwardRef)(function(e,t){return[e,t]=X$(e,t,h6),X.createElement(x3,{content:X.createElement(O3,e)},n=>X.createElement(VAe,{props:e,collection:n,menuRef:t}))});function VAe({props:e,collection:t,menuRef:n}){[e,n]=X$(e,n,B3);let{filter:r,...i}=e,a=(0,X.useMemo)(()=>r?t.filter(r):t,[t,r]),o=zAe({...e,collection:a,children:void 0}),s=(0,X.useContext)(_6),{isVirtualized:c,CollectionRoot:l}=(0,X.useContext)(R3),{menuProps:u}=xAe({...e,isVirtualized:c,onClose:e.onClose||s?.close},o,n),d=J$({defaultClassName:`react-aria-Menu`,className:e.className,style:e.style,values:{isEmpty:o.collection.size===0}}),f=null;o.collection.size===0&&e.renderEmptyState&&(f=X.createElement(`div`,{role:`menuitem`,style:{display:`contents`}},e.renderEmptyState()));let p=iQ(e,{global:!0});return X.createElement(A0,null,X.createElement(`div`,{...eQ(p,d,u),ref:n,slot:e.slot||void 0,"data-empty":o.collection.size===0||void 0,onScroll:e.onScroll},X.createElement(q$,{values:[[g6,o],[U3,{elementType:`div`}],[F3,{name:`MenuSection`,render:x6}],[y6,{parentMenuRef:n,shouldUseVirtualFocus:i?.shouldUseVirtualFocus}],[S6,null],[B3,null],[fAe,null],[v6,o.selectionManager],[_6,s??u6({})]]},X.createElement(l,{collection:o.collection,persistedKeys:z3(o.selectionManager.focusedKey),scrollRef:n})),f))}var HAe=class extends m6{get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,t){return this.parent.setFocusedKey(e,t)}setFocused(e){this.parent.setFocused(e)}get childFocusStrategy(){return this.parent.childFocusStrategy}constructor(e,t){super(e.collection,t),this.parent=e}};function x6(e,t,n,r=`react-aria-MenuSection`){let i=(0,X.useContext)(g6),{CollectionBranch:a}=(0,X.useContext)(R3),[o,s]=Z$(),{headingProps:c,groupProps:l}=jAe({heading:s,"aria-label":n.props[`aria-label`]??void 0}),u=J$({defaultClassName:r,className:n.props?.className,style:n.props?.style,values:{}}),d=(0,X.useContext)(v6),f=f6(e),p=e.selectionMode==null?d:new HAe(d,f),m=iQ(e,{global:!0});return delete m.id,X.createElement(`section`,{...eQ(m,u,l),ref:t},X.createElement(q$,{values:[[V3,{...c,ref:o}],[v6,p]]},X.createElement(a,{collection:i.collection,parent:n})))}T3(f3,x6);var S6=(0,X.createContext)(null);w3(d3,function(e,t,n){[e,t]=X$(e,t,S6);let r=Y$(S6)?.id,i=(0,X.useContext)(g6),a=TQ(t),o=(0,X.useContext)(v6),{menuItemProps:s,labelProps:c,descriptionProps:l,keyboardShortcutProps:u,...d}=AAe({...e,id:r,key:n.key,selectionManager:o},i,a),{hoverProps:f,isHovered:p}=U$({isDisabled:d.isDisabled}),m=J$({...e,id:void 0,children:n.rendered,defaultClassName:`react-aria-MenuItem`,values:{...d,isHovered:p,isFocusVisible:d.isFocusVisible,selectionMode:o.selectionMode,selectionBehavior:o.selectionBehavior,hasSubmenu:!!e[`aria-haspopup`],isOpen:e[`aria-expanded`]===`true`}}),h=e.href?`a`:`div`,g=iQ(e,{global:!0});return delete g.id,delete g.onClick,X.createElement(h,{...eQ(g,m,s,f),ref:a,"data-disabled":d.isDisabled||void 0,"data-hovered":p||void 0,"data-focused":d.isFocused||void 0,"data-focus-visible":d.isFocusVisible||void 0,"data-pressed":d.isPressed||void 0,"data-selected":d.isSelected||void 0,"data-selection-mode":o.selectionMode===`none`?void 0:o.selectionMode,"data-has-submenu":!!e[`aria-haspopup`]||void 0,"data-open":e[`aria-expanded`]===`true`||void 0},X.createElement(q$,{values:[[T4,{slots:{[K$]:c,label:c,description:l}}],[H3,u]]},m.children))});function UAe(e,t){let{role:n=`dialog`}=e,r=GZ();r=e[`aria-label`]?void 0:r;let i=(0,X.useRef)(!1);return(0,X.useEffect)(()=>{if(t.current&&!t.current.contains(document.activeElement)){N$(t.current);let e=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(i.current=!0,t.current&&(t.current.blur(),N$(t.current)),i.current=!1)},500);return()=>{clearTimeout(e)}}},[t]),Y2(),{dialogProps:{...iQ(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e[`aria-labelledby`]||r,onBlur:e=>{i.current&&e.stopPropagation()}},titleProps:{id:r}}}var C6=(0,X.createContext)(null),w6=(0,X.createContext)(null);function WAe(e){let t=u6(e),n=(0,X.useRef)(null),{triggerProps:r,overlayProps:i}=JDe({type:`dialog`},t,n),[a,o]=(0,X.useState)(null);return OQ({ref:n,onResize:(0,X.useCallback)(()=>{n.current&&o(n.current.offsetWidth+`px`)},[n])}),r.id=WZ(),i[`aria-labelledby`]=r.id,X.createElement(q$,{values:[[w6,t],[_6,t],[C6,i],[N3,{trigger:`DialogTrigger`,triggerRef:n,"aria-labelledby":i[`aria-labelledby`],style:{"--trigger-width":a}}]]},X.createElement(sEe,{...r,ref:n,isPressed:t.isOpen},e.children))}(0,X.forwardRef)(function(e,t){let n=e[`aria-labelledby`];[e,t]=X$(e,t,C6);let{dialogProps:r,titleProps:i}=UAe({...e,"aria-labelledby":n},t),a=(0,X.useContext)(w6);!r[`aria-label`]&&!r[`aria-labelledby`]&&e[`aria-labelledby`]&&(r[`aria-labelledby`]=e[`aria-labelledby`]);let o=J$({defaultClassName:`react-aria-Dialog`,className:e.className,style:e.style,children:e.children,values:{close:a?.close||(()=>{})}}),s=iQ(e,{global:!0});return X.createElement(`section`,{...eQ(s,o,r),ref:t,slot:e.slot||void 0},X.createElement(q$,{values:[[w4,{slots:{[K$]:{},title:{...i,level:2}}}],[M3,{slots:{[K$]:{},close:{onPress:()=>a?.close()}}}]]},o.children))});var T6=({placement:e=`bottom-start`,hasChrome:t=!0,hasCloseButton:n=!1,closeLabel:r,offset:i=8,padding:a,popover:o,children:s,defaultVisible:c,visible:l,onVisibleChange:u,...d})=>{let f=a4(e),[p,m]=(0,X.useState)(c??!1),h=(0,X.useCallback)(e=>{m(e),u?.(e)},[u]),g=(0,X.useCallback)(()=>h(!1),[h]);return X.createElement(WAe,{defaultOpen:c,isOpen:l??p,onOpenChange:h,...d},X.createElement(oEe,null,s),X.createElement(lAe,{placement:f,offset:i,style:{outline:`none`}},X.createElement(Z4,{hasChrome:t,hideLabel:r,onHide:n?g:void 0,padding:a},typeof o==`function`?o({onHide:g}):o)))},E6=(0,X.forwardRef)((e,t)=>X.createElement(Z4,{ref:t,...e}));E6.displayName=`Tooltip`,(0,X.lazy)(()=>e(()=>import(`./WithTooltip-65CFNBJE-DfiQoB92.js`),[],import.meta.url).then(e=>({default:e.WithTooltip}))),(0,X.lazy)(()=>e(()=>import(`./WithTooltip-65CFNBJE-DfiQoB92.js`),[],import.meta.url).then(e=>({default:e.WithTooltipPure})));var{deprecate:GAe}=__STORYBOOK_MODULE_CLIENT_LOGGER__;$.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),$.span(),$.div(({theme:e})=>({marginTop:8,textAlign:`center`,"> *":{margin:`0 8px`,fontWeight:e.typography.weight.bold}})),$.div(({theme:e})=>({color:e.color.defaultText,lineHeight:`18px`})),$.div({padding:15,width:280,boxSizing:`border-box`});var{deprecate:KAe}=__STORYBOOK_MODULE_CLIENT_LOGGER__,qAe=ZM(KN(),1),{deprecate:JAe}=__STORYBOOK_MODULE_CLIENT_LOGGER__,YAe=$(({active:e,loading:t,disabled:n,...r})=>X.createElement(`span`,{...r}))(({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}:{}),XAe=$.span({display:`flex`,"& svg":{height:12,width:12,margin:`3px 0`,verticalAlign:`top`}}),ZAe=$.span({flex:1,textAlign:`left`,display:`flex`,flexDirection:`column`,minWidth:0},({isIndented:e})=>e?{marginLeft:24}:{}),QAe=$.span(({theme:e})=>({fontSize:`11px`,lineHeight:`14px`}),({active:e,theme:t})=>e?{color:t.color.secondary}:{},({theme:e,disabled:t})=>t?{color:e.textMutedColor}:{}),$Ae=$.span(({active:e,theme:t})=>e?{color:t.color.secondary}:{},()=>({display:`flex`,maxWidth:14})),eje=$.button(({theme:e})=>({width:`100%`,minWidth:0,border:`none`,borderRadius:e.appBorderRadius,background:`none`,fontSize:e.typography.size.s1,transition:`background 150ms ease-out`,color:e.color.dark,textDecoration:`none`,justifyContent:`space-between`,lineHeight:`18px`,padding:`7px 10px`,display:`flex`,alignItems:`center`,"& > * + *":{paddingLeft:10},"&:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:0}}),({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`}),tje=(0,qAe.default)(100)(({onClick:e,input:t,href:n,LinkWrapper:r})=>({...e&&{as:`button`,role:`button`,onClick:e},...t&&{as:`label`},...n&&{as:`a`,role:`link`,href:n,...r&&{as:r,to:n}}})),D6=(0,X.forwardRef)((e,t)=>{let{loading:n=!1,title:r=X.createElement(`span`,null,`Loading state`),center:i=null,right:a=null,active:o=!1,disabled:s=!1,isIndented:c=!1,href:l=void 0,onClick:u=void 0,icon:d,input:f,LinkWrapper:p=void 0,...m}=e,h={active:o,disabled:s},g=tje(e),_=d||f;return JAe("`ListItem` is deprecated and will be removed in Storybook 11, use `MenuItem` instead."),X.createElement(eje,{"data-deprecated":`ListItem`,ref:t,...m,...h,...g},X.createElement(X.Fragment,null,_&&X.createElement($Ae,{...h},_),r||i?X.createElement(ZAe,{isIndented:c&&!_},r&&X.createElement(YAe,{...h,loading:n},r),i&&X.createElement(QAe,{...h},i)):null,a&&X.createElement(XAe,{...h},a)))});D6.displayName=`ListItem`;var O6=D6,nje=$.div({minWidth:180,overflow:`hidden`,overflowY:`auto`,maxHeight:504},({theme:e})=>({borderRadius:e.appBorderRadius+2}),({theme:e})=>e.base===`dark`?{background:e.background.content}:{}),rje=$.div(({theme:e})=>({padding:4,"& + &":{borderTop:`1px solid ${e.appBorderColor}`}})),ije=({id:e,onClick:t,...n})=>{let{active:r,disabled:i,title:a,href:o}=n,s=(0,X.useCallback)(n=>t?.(n,{id:e,active:r,disabled:i,title:a,href:o}),[t,e,r,i,a,o]);return X.createElement(O6,{id:`list-item-${e}`,...n,...t&&{onClick:s}})},k6=({links:e,LinkWrapper:t,...n})=>{KAe("`TooltipLinkList` is deprecated and will be removed in Storybook 11, use `ActionList` or `MenuItem` and `WithMenu` instead.");let r=Array.isArray(e[0])?e:[e],i=r.some(e=>e.some(e=>`icon`in e&&e.icon||`input`in e&&e.input));return X.createElement(nje,{"data-deprecated":`TooltipLinkList`,...n,className:`sb-list`},r.filter(e=>e.length).map((e,n)=>X.createElement(rje,{key:e.map(e=>e.id).join(`~${n}~`)},e.map(e=>`content`in e?X.createElement(X.Fragment,{key:e.id},e.content):X.createElement(ije,{key:e.id,isIndented:i,LinkWrapper:t,...e})))))},{deprecate:A6}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{deprecate:aje}=__STORYBOOK_MODULE_CLIENT_LOGGER__,oje=$.div(({backgroundColor:e,border:t=!1,innerStyle:n={},scrollable:r,theme:i})=>({color:i.barTextColor,width:`100%`,minHeight:40,flexShrink:0,scrollbarColor:`${i.barTextColor} ${t?e||i.barBg:`transparent`}`,scrollbarWidth:`thin`,overflow:r?`auto`:`hidden`,overflowY:`hidden`,display:`flex`,alignItems:`center`,gap:r?0:6,paddingInline:r?0:6,...t?{boxShadow:`${i.appBorderColor} 0 -1px 0 0 inset`,background:e||i.barBg}:{},...n})),sje=$.div(({innerStyle:e})=>({minHeight:40,display:`flex`,alignItems:`center`,width:`100%`,gap:6,paddingInline:6,...e})),j6=(0,X.forwardRef)(({scrollable:e=!0,children:t,innerStyle:n,...r},i)=>X.createElement(oje,{...r,ref:i,innerStyle:e?void 0:n,scrollable:e},e?X.createElement(sje,{innerStyle:n},t):t));j6.displayName=`Bar`;var M6=$.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}:{});M6.displayName=`Side`;var cje=$.div(({bgColor:e})=>({display:`flex`,justifyContent:`space-between`,position:`relative`,flexWrap:`nowrap`,flexShrink:0,height:40,width:`100%`,backgroundColor:e||``})),lje=$(j6)({paddingInline:0}),N6=({children:e,backgroundColor:t,className:n=``,...r})=>{aje(`FlexBar is deprecated. Use Bar with justifyContent: "space-between" instead.`);let[i,a]=X.Children.toArray(e);return X.createElement(lje,{"data-deprecated":`FlexBar`,backgroundColor:t,className:`sb-bar ${n}`,...r},X.createElement(cje,{bgColor:t},X.createElement(M6,{scrollable:r.scrollable,left:!0},i),a?X.createElement(M6,{right:!0},a):null))};N6.displayName=`FlexBar`;var{deprecate:uje}=__STORYBOOK_MODULE_CLIENT_LOGGER__,dje=e=>typeof e.props.href==`string`,fje=e=>typeof e.props.href!=`string`;function pje({children:e,...t},n){let r={props:t,ref:n};if(dje(r))return X.createElement(`a`,{ref:r.ref,...r.props},e);if(fje(r))return X.createElement(`button`,{ref:r.ref,type:`button`,...r.props},e);throw Error(`invalid props`)}var P6=(0,X.forwardRef)(pje);P6.displayName=`ButtonOrLink`;var mje=$(P6,{shouldForwardProp:SG})({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}}),F6=(0,X.forwardRef)((e,t)=>(uje("The `TabButton` component is deprecated. Use `TabList` instead."),X.createElement(mje,{"data-deprecated":`TabButton`,ref:t,...e})));F6.displayName=`TabButton`;var hje=$.div(({theme:e})=>({height:`100%`,display:`flex`,padding:30,alignItems:`center`,justifyContent:`center`,flexDirection:`column`,gap:15,background:e.background.content})),gje=$.div({display:`flex`,flexDirection:`column`,gap:4,maxWidth:415}),_je=$.div(({theme:e})=>({fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,textAlign:`center`,color:e.color.defaultText})),vje=$.div(({theme:e})=>({fontSize:e.typography.size.s2-1})),yje=$.div(({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s2-1,textAlign:`center`,color:e.textMutedColor})),I6=({title:e,description:t,footer:n})=>X.createElement(hje,null,X.createElement(gje,null,X.createElement(_je,null,e),t&&X.createElement(yje,null,t)),n&&X.createElement(vje,null,n)),{deprecate:bje}=__STORYBOOK_MODULE_CLIENT_LOGGER__,L6=$.div(({active:e})=>e?{display:`block`}:{display:`none`}),xje=e=>(bje("The `childrenToList` tabs helper is deprecated. Use `TabsView` instead."),X.Children.toArray(e).map(({props:{title:e,id:t,color:n,children:r}})=>{let i=Array.isArray(r)?r[0]:r;return{title:e,id:t,...n?{color:n}:{},render:typeof i==`function`?i:({active:e})=>X.createElement(L6,{active:e,role:`tabpanel`},i)}})),{deprecate:Sje}=__STORYBOOK_MODULE_CLIENT_LOGGER__,Cje=$.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`})),wje=$(F6)(({active:e,theme:t,preActive:n})=>`
|
|
1344
|
+
`,borderRadius:e.appBorderRadius+2,fontSize:e.typography.size.s1}:{},({theme:e,bgColor:t})=>t===`default`&&{background:e.base===`light`?sU(e.background.app):e.background.app,color:e.color.defaultText},({theme:e,bgColor:t})=>t===`inverse`&&{background:e.base===`light`?e.color.darkest:e.color.lightest,color:e.color.inverseText},({theme:e,bgColor:t})=>(t===`positive`||t===`negative`||t===`warning`)&&{background:e.background[t],color:e.color[`${t}Text`]}),zke=$(c4)({position:`absolute`,top:4,right:4}),Z4=(0,X.forwardRef)(({children:e,color:t=`default`,hasChrome:n=!0,hideLabel:r=`Close`,onHide:i,padding:a=8,...o},s)=>X.createElement(Rke,{bgColor:t,hasChrome:n,hasCloseButton:!!i,padding:a,ref:s,...o},e,i&&X.createElement(zke,{ariaLabel:r,onClick:i,padding:`small`,variant:`ghost`,size:`small`},X.createElement(b_e,null))));Z4.displayName=`Popover`;var Q4=({id:e,title:t,description:n,icon:r,aside:i,children:a,isSelected:o,isActive:s,onClick:c,onFocus:l,onKeyDown:u,shouldLookDisabled:d=!1,...f})=>X.createElement(m4.Item,{...f,id:e,role:`option`,tabIndex:s?0:-1,"aria-selected":o,"aria-disabled":d?!0:void 0,onClick:c,onFocus:l,onKeyDown:u},a??X.createElement(X.Fragment,null,r&&X.createElement(m4.Icon,null,r),X.createElement(m4.Text,null,X.createElement(`p`,null,t),n&&X.createElement(`small`,null,n)),i));Q4.displayName=`SelectOption`;var $4=5,e3=Symbol.for(`undefined`);function Bke(e){return e==null||typeof e==`string`||typeof e==`number`||typeof e==`boolean`||typeof e==`symbol`}function t3(e){return{...e,type:`option`,value:i3(e.value)}}function n3(e){return`type`in e&&e.type===`reset`?e:t3(e)}function r3(e){if(e!==e3)return e}function i3(e){return e===void 0?e3:e}var Vke=$(`ul`)({minWidth:180,height:`100%`,borderRadius:6,overflow:`hidden auto`,listStyle:`none`,margin:0,padding:4});function a3(e,{value:t}){return`${e}-opt-${String(t)??`sb-reset`}`}var Hke=$.span(({theme:e})=>({appearance:`none`,color:e.textMutedColor,fontSize:12}));function o3(e,t){return t===void 0?[]:Bke(t)?e.filter(e=>e.value===t).map(t3):e.filter(e=>t.some(t=>e.value===t)).map(t3)}var Uke=$(c4)(({$isOpen:e,$hasSelection:t,theme:n})=>e||t?{boxShadow:`none`,background:JH(.93,n.barSelectedColor),color:n.base===`light`?NH(.1,n.color.secondary):n.color.secondary}:{}),Wke=$.div({position:`fixed`,inset:0,zIndex:1e3}),Gke=({children:e,handleClose:t,triggerRef:n})=>{let r=X.useRef(null);W$({ref:r,onInteractOutside:t}),(0,X.useEffect)(()=>{if(r.current)return K2([r.current],{shouldUseInert:!0})},[]);let{overlayProps:i}=E0({targetRef:n,overlayRef:r,placement:`bottom start`,offset:8,maxHeight:504,isOpen:!0}),{overlayProps:a,underlayProps:o}=X0({isOpen:!0,onClose:t,isDismissable:!0,shouldCloseOnBlur:!1,isKeyboardDismissDisabled:!0},r),s=oG();return i.style={...i.style,overflow:`hidden auto`,scrollbarColor:`${s.barTextColor} transparent`,scrollbarWidth:`thin`},X.createElement(J2,{disableFocusManagement:!0,...a},X.createElement(Wke,{...o}),X.createElement(Z4,{hasChrome:!0,ref:r,padding:0,...i},e))},s3=(0,X.forwardRef)(({children:e,icon:t,disabled:n=!1,options:r,defaultOptions:i,multiSelect:a=!1,onReset:o,padding:s=`small`,resetLabel:c,onSelect:l,onDeselect:u,onChange:d,tooltip:f,ariaLabel:p,showSelectedOptionTitle:m=!0,...h},g)=>{let[_,v]=(0,X.useState)(h.defaultOpen||!1),[y,b]=(0,X.useState)(!1),x=TQ(g),S=(0,X.useMemo)(()=>`select-`+Math.random().toString(36).substring(2,15),[]),C=`${S}-listbox`,w=(0,X.useRef)(null),T=X2({isOpen:_&&!n,onOpenChange:v}),E=(0,X.useCallback)(()=>{v(!1),b(!0)},[]);(0,X.useEffect)(()=>{!T.isOpen&&y&&(x.current?.focus(),b(!1))},[T.isOpen,y,x]);let[D,O]=(0,X.useState)(o3(r,i)),k=(0,X.useCallback)(e=>{e.type===`reset`?(d?.([]),o?.(),O([])):O(a?t=>{let n=[];return t?.some(t=>t.value===e.value)?(u?.(r3(e.value)),n=t?.filter(t=>t.value!==e.value)??[]):(l?.(r3(e.value)),n=[...t??[],e]),d?.(n.map(e=>r3(e.value))),n}:t=>t.every(t=>t.value!==e.value)?(l?.(r3(e.value)),d?.([r3(e.value)]),[e]):t)},[a,d,l,u,o]),A=(0,X.useMemo)(()=>o?{type:`reset`,value:void 0,title:c??`Reset selection`,icon:X.createElement(k_e,null),description:void 0,children:void 0}:void 0,[o,c]),j=(0,X.useMemo)(()=>A?[A,...r]:r,[r,A]);(0,X.useEffect)(()=>{i&&O(o3(r,i))},[i,r]);let[M,N]=(0,X.useState)(void 0),P=(0,X.useCallback)((e,t=!0)=>{N(n3(e)),!a&&t&&k(n3(e))},[a,k]),ee=(0,X.useCallback)((e=1)=>{if(!_||!M){P(j[e===1?0:Math.min(e,j.length-1)]);return}let t=j.findIndex(e=>M.type===`reset`?`type`in e&&e.type===`reset`:i3(e.value)===M.value),n=t+e,r;r=n>=j.length&&t===j.length-1?j[0]:j[Math.min(j.length-1,n)],P(r)},[_,M,P,j]),te=(0,X.useCallback)((e=1)=>{if(!_||!M){P(j[Math.max(0,j.length-e)]);return}let t=j.findIndex(e=>M.type===`reset`?`type`in e&&e.type===`reset`:i3(e.value)===M.value),n=t-e,r;r=n<0&&t===0?j[j.length-1]:j[Math.max(0,n)],P(r)},[_,M,P,j]),F=(0,X.useCallback)(e=>{let t=t=>{e.preventDefault(),P(j[t]),v(!0)},n=j.findIndex(e=>D.some(t=>t.value===i3(e.value))),r=n!==-1,i=A&&!r?1:0,a=j.length-1;e.key===`Enter`||e.key===` `?t(r?Math.min(n,a):i):e.key===`ArrowDown`?t(r?Math.min(n+1,a):i):e.key===`ArrowUp`?t(r?Math.max(n-1,i):a):e.key===`Home`?t(i):e.key===`End`?t(a):e.key===`PageDown`?t(Math.min((r?n:i)+$4,a)):e.key===`PageUp`&&t(Math.max(0,(r?n:a)-$4))},[j,A,P,D]),I=(0,X.useCallback)(e=>{e.key===`Tab`?E():e.preventDefault(),e.key===`Escape`?E():e.key===`ArrowDown`?ee():e.key===`ArrowUp`?te():e.key===`Home`?P(j[0]):e.key===`End`?P(j[j.length-1]):e.key===`PageDown`?ee($4):e.key===`PageUp`&&te($4)},[E,ee,te,j,P]);(0,X.useEffect)(()=>{if(_&&M){let e=document.getElementById(a3(S,M));e&&(e.scrollIntoView({block:`nearest`}),e.focus())}else _&&w.current?.focus()},[_,M,S]);let ne=(0,X.useMemo)(()=>D.length===1?`${p} ${D[0].title}`:D.length?`${p}, ${D.length} values selected`:p,[p,D]);return X.createElement(X.Fragment,null,X.createElement(Uke,{...h,variant:`ghost`,ariaLabel:ne,tooltip:f??p,disableAllTooltips:_,id:S,ref:x,padding:s,$isOpen:_,$hasSelection:!!D.length,"aria-disabled":n,disabled:n,onClick:()=>{_?E():v(!0)},tabIndex:_?-1:0,onKeyDown:F,role:`button`,"aria-controls":_?C:void 0,"aria-expanded":_,"aria-haspopup":`listbox`},!a&&X.createElement(X.Fragment,null,t,m&&D[0]?.title||e),a&&X.createElement(X.Fragment,null,t,e,!!D.length&&X.createElement(Hke,{"aria-label":`${D.length} ${D.length>1?`items`:`item`} selected`},D?.length))),T.isOpen&&X.createElement(Gke,{handleClose:E,triggerRef:x},X.createElement(Vke,{"aria-label":p,role:`listbox`,id:C,ref:w,"aria-multiselectable":a,onKeyDown:I,tabIndex:_?0:-1},j.map(e=>({option:n3(e),externalOption:e})).map(({externalOption:e,option:t})=>{let n=D?.some(e=>e.value===t.value)&&t!==A,r=t===A;return X.createElement(Q4,{key:t.value===void 0?`sb-reset`:String(t.value),title:t.title,description:t.description,aside:t.aside,icon:!r&&a?X.createElement(X4.Checkbox,{checked:n,hidden:!0,role:`presentation`}):t.icon,id:a3(S,t),isActive:_&&M?.value===t.value,isSelected:n,onClick:()=>{k(t),a||E()},onFocus:()=>P(e,!1),shouldLookDisabled:r&&D.length===0&&a,onKeyDown:e=>{e.key===`Enter`||e.key===` `?(e.preventDefault(),k(t),a||E()):e.key===`Tab`&&(a||k(t),E())}},t.children)}))))});s3.displayName=`Select`;var c3=class{get childNodes(){throw Error(`childNodes is not supported`)}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e[`aria-label`]=this[`aria-label`],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,t,n){let r=this.clone();return t.addDescendants(r,e),r}constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue=``,this[`aria-label`]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}},l3=class extends c3{filter(e,t,n){let[r,i]=p3(e,t,this.firstChildKey,n),a=this.clone();return a.firstChildKey=r,a.lastChildKey=i,a}},u3=class extends c3{};u3.type=`header`;var Kke=class extends c3{};Kke.type=`loader`;var d3=class extends l3{filter(e,t,n){if(n(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};d3.type=`item`;var f3=class extends l3{filter(e,t,n){let r=super.filter(e,t,n);if(r&&r.lastChildKey!==null){let t=e.getItem(r.lastChildKey);if(t&&t.type!==`header`)return r}return null}};f3.type=`section`;var qke=class{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey==null?void 0:this.keyMap.get(this.firstKey);for(;e;)yield e,e=e.nextKey==null?void 0:this.keyMap.get(e.nextKey)}getChildren(e){let t=this.keyMap;return{*[Symbol.iterator](){let n=t.get(e),r=n?.firstChildKey==null?null:t.get(n.firstChildKey);for(;r;)yield r,r=r.nextKey==null?void 0:t.get(r.nextKey)}}}getKeyBefore(e){let t=this.keyMap.get(e);if(!t)return null;if(t.prevKey!=null){for(t=this.keyMap.get(t.prevKey);t&&t.type!==`item`&&t.lastChildKey!=null;)t=this.keyMap.get(t.lastChildKey);return t?.key??null}return t.parentKey}getKeyAfter(e){let t=this.keyMap.get(e);if(!t)return null;if(t.type!==`item`&&t.firstChildKey!=null)return t.firstChildKey;for(;t;){if(t.nextKey!=null)return t.nextKey;if(t.parentKey!=null)t=this.keyMap.get(t.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey==null?null:this.keyMap.get(this.lastKey);for(;e?.lastChildKey!=null;)e=this.keyMap.get(e.lastChildKey);return e?.key??null}getItem(e){return this.keyMap.get(e)??null}at(){throw Error(`Not implemented`)}clone(){let e=this.constructor,t=new e;return t.keyMap=new Map(this.keyMap),t.firstKey=this.firstKey,t.lastKey=this.lastKey,t.itemCount=this.itemCount,t}addNode(e){if(this.frozen)throw Error(`Cannot add a node to a frozen collection`);e.type===`item`&&this.keyMap.get(e.key)==null&&this.itemCount++,this.keyMap.set(e.key,e)}addDescendants(e,t){this.addNode(e);let n=t.getChildren(e.key);for(let e of n)this.addDescendants(e,t)}removeNode(e){if(this.frozen)throw Error(`Cannot remove a node to a frozen collection`);let t=this.keyMap.get(e);t!=null&&t.type===`item`&&this.itemCount--,this.keyMap.delete(e)}commit(e,t,n=!1){if(this.frozen)throw Error(`Cannot commit a frozen collection`);this.firstKey=e,this.lastKey=t,this.frozen=!n}filter(e){let t=new this.constructor,[n,r]=p3(this,t,this.firstKey,e);return t?.commit(n,r),t}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}};function p3(e,t,n,r){if(n==null)return[null,null];let i=null,a=null,o=e.getItem(n);for(;o!=null;){let n=o.filter(e,t,r);n!=null&&(n.nextKey=null,a&&(n.prevKey=a.key,a.nextKey=n.key),i??=n,t.addNode(n),a=n),o=o.nextKey?e.getItem(o.nextKey):null}if(a&&a.type===`separator`){let e=a.prevKey;t.removeNode(a.key),e?(a=t.getItem(e),a.nextKey=null):a=null}return[i?.key??null,a?.key??null]}var m3=class{*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){return this.parentNode?.isConnected||!1}invalidateChildIndices(e){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e,this.ownerDocument.markDirty(this))}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){e.parentNode&&e.parentNode.removeChild(e),this.firstChild??=e,this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(e,t){if(t==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=t,e.previousSibling=t.previousSibling,e.index=t.index-1,this.firstChild===t?this.firstChild=e:t.previousSibling&&(t.previousSibling.nextSibling=e),t.previousSibling=e,e.parentNode=t.parentNode,this.invalidateChildIndices(e),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode!==this||!this.ownerDocument.isMounted||(this._minInvalidChildIndex===e&&(this._minInvalidChildIndex=null),e.nextSibling&&(this.invalidateChildIndices(e.nextSibling),e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.markDirty(e),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}},h3=class e extends m3{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof e?this.parentNode.level+(this.node?.type===`item`?1:0):0}getMutableNode(){return this.node==null?null:(this.isMutated||=(this.node=this.node.clone(),!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){var t,n,r,i,a,o,s;let c=this.nextVisibleSibling,l=this.getMutableNode();if(l!=null){l.index=this.index,l.level=this.level;var u;if(l.parentKey=this.parentNode instanceof e&&(u=this.parentNode.node?.key)!=null?u:null,l.prevKey=((n=this.previousVisibleSibling)==null||(t=n.node)==null?void 0:t.key)??null,l.nextKey=(c==null||(r=c.node)==null?void 0:r.key)??null,l.hasChildNodes=!!this.firstChild,l.firstChildKey=((a=this.firstVisibleChild)==null||(i=a.node)==null?void 0:i.key)??null,l.lastChildKey=((s=this.lastVisibleChild)==null||(o=s.node)==null?void 0:o.key)??null,(l.colSpan!=null||l.colIndex!=null)&&c){let e=(l.colIndex??l.index)+(l.colSpan??1);if(c.node!=null&&e!==c.node.colIndex){let t=c.getMutableNode();t.colIndex=e}}}}setProps(e,t,n,r,i){let a,{value:o,textValue:s,id:c,...l}=e;if(this.node==null?(a=new n(c??`react-aria-${++this.ownerDocument.nodeId}`),this.node=a):a=this.getMutableNode(),l.ref=t,a.props=l,a.rendered=r,a.render=i,a.value=o,a.textValue=s||(typeof l.children==`string`?l.children:``)||e[`aria-label`]||``,c!=null&&c!==a.key)throw Error(`Cannot change the id of an item`);l.colSpan!=null&&(a.colSpan=l.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let e=this;return{get display(){return e.isHidden?`none`:``},set display(t){let n=t===`none`;if(e.isHidden!==n){(e.parentNode?.firstVisibleChild===e||e.parentNode?.lastVisibleChild===e)&&e.ownerDocument.markDirty(e.parentNode);let t=e.previousVisibleSibling,r=e.nextVisibleSibling;t&&e.ownerDocument.markDirty(t),r&&e.ownerDocument.markDirty(r),e.isHidden=n,e.ownerDocument.markDirty(e)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(e,t){super(t),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}},Jke=class extends m3{get isConnected(){return this.isMounted}createElement(e){return new h3(e,this)}getMutableCollection(){return this.nextCollection||=this.collection.clone(),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden||e.node==null)return;let t=this.getMutableCollection();if(!t.getItem(e.node.key))for(let t of e)this.addNode(t);t.addNode(e.node)}removeNode(e){if(e.node!=null){for(let t of e)this.removeNode(t);this.getMutableCollection().removeNode(e.node.key)}}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let e of this.dirtyNodes)e instanceof h3&&(!e.isConnected||e.isHidden)?this.removeNode(e):e.updateChildIndices();for(let e of this.dirtyNodes)e instanceof h3&&(e.isConnected&&!e.isHidden&&(e.updateNode(),this.addNode(e)),e.isMutated=!1);if(this.dirtyNodes.clear(),this.nextCollection){var e,t,n,r;this.nextCollection.commit(((t=this.firstVisibleChild)==null||(e=t.node)==null?void 0:e.key)??null,((r=this.lastVisibleChild)==null||(n=r.node)==null?void 0:n.key)??null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let e of this.subscriptions)e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.isMounted=!0,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}};function g3(e){let{children:t,items:n,idScope:r,addIdAndValue:i,dependencies:a=[]}=e,o=(0,X.useMemo)(()=>new WeakMap,a);return(0,X.useMemo)(()=>{if(n&&typeof t==`function`){let e=[];for(let a of n){let n=o.get(a);if(!n){n=t(a);let e=n.props.id??a.key??a.id;if(e==null)throw Error(`Could not determine key for item`);r&&(e=r+`:`+e),n=(0,X.cloneElement)(n,i?{key:e,id:e,value:a}:{key:e}),o.set(a,n)}e.push(n)}return e}else if(typeof t!=`function`)return t},[t,n,o,r,i])}if(typeof HTMLTemplateElement<`u`){let e=Object.getOwnPropertyDescriptor(Node.prototype,`firstChild`).get;Object.defineProperty(HTMLTemplateElement.prototype,`firstChild`,{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}var _3=(0,X.createContext)(!1);function Yke(e){if((0,X.useContext)(_3))return X.createElement(X.Fragment,null,e.children);let t=X.createElement(_3.Provider,{value:!0},e.children);return X.createElement(`template`,{"data-react-aria-hidden":!0},t)}function v3(e){let t=(t,n)=>(0,X.useContext)(_3)?null:e(t,n);return t.displayName=e.displayName||e.name,(0,X.forwardRef)(t)}function Xke(){return(0,X.useContext)(_3)}var y3=(0,X.createContext)(!1),b3=(0,X.createContext)(null);function x3(e){if((0,X.useContext)(b3))return e.content;let{collection:t,document:n}=eAe(e.createCollection);return X.createElement(X.Fragment,null,X.createElement(Yke,null,X.createElement(b3.Provider,{value:n},e.content)),X.createElement(Zke,{render:e.children,collection:t}))}function Zke({collection:e,render:t}){return t(e)}function Qke(e,t,n){let r=VZ(),i=(0,X.useRef)(r);return i.current=r,(0,ywe.useSyncExternalStore)(e,(0,X.useCallback)(()=>i.current?n():t(),[t,n]))}var $ke=typeof X.useSyncExternalStore==`function`?X.useSyncExternalStore:Qke;function eAe(e){let[t]=(0,X.useState)(()=>new Jke(e?.()||new qke)),n=$ke((0,X.useCallback)(e=>t.subscribe(e),[t]),(0,X.useCallback)(()=>{let e=t.getCollection();return t.isSSR&&t.resetAfterSSR(),e},[t]),(0,X.useCallback)(()=>(t.isSSR=!0,t.getCollection()),[t]));return LZ(()=>(t.isMounted=!0,()=>{t.isMounted=!1}),[t]),{collection:n,document:t}}var S3=(0,X.createContext)(null);function tAe(e){var t;return t=class extends c3{},t.type=e,t}function C3(e,t,n,r,i,a){typeof e==`string`&&(e=tAe(e));let o=(0,X.useCallback)(i=>{i?.setProps(t,n,e,r,a)},[t,n,r,a,e]),s=(0,X.useContext)(S3);if(s){let o=s.ownerDocument.nodesByProps.get(t);return o||(o=s.ownerDocument.createElement(e.type),o.setProps(t,n,e,r,a),s.appendChild(o),s.ownerDocument.updateCollection(),s.ownerDocument.nodesByProps.set(t,o)),i?X.createElement(S3.Provider,{value:o},i):null}return X.createElement(e.type,{ref:o},i)}function w3(e,t){let n=({node:e})=>t(e.props,e.props.ref,e),r=(0,X.forwardRef)((r,i)=>{let a=(0,X.useContext)(L$);if(!(0,X.useContext)(y3)){if(t.length>=3)throw Error(t.name+` cannot be rendered outside a collection.`);return t(r,i)}return C3(e,r,i,`children`in r?r.children:null,null,e=>X.createElement(L$.Provider,{value:a},X.createElement(n,{node:e})))});return r.displayName=t.name,r}function T3(e,t,n=E3){let r=({node:e})=>t(e.props,e.props.ref,e),i=(0,X.forwardRef)((t,i)=>C3(e,t,i,null,n(t),e=>X.createElement(r,{node:e}))??X.createElement(X.Fragment,null));return i.displayName=t.name,i}function E3(e){return g3({...e,addIdAndValue:!0})}var D3=(0,X.createContext)(null);function O3(e){let t=(0,X.useContext)(D3),n=(t?.dependencies||[]).concat(e.dependencies),r=e.idScope||t?.idScope,i=E3({...e,idScope:r,dependencies:n});return(0,X.useContext)(b3)&&(i=X.createElement(nAe,null,i)),t=(0,X.useMemo)(()=>({dependencies:n,idScope:r}),[r,...n]),X.createElement(D3.Provider,{value:t},i)}function nAe({children:e}){let t=(0,X.useContext)(b3),n=(0,X.useMemo)(()=>X.createElement(b3.Provider,{value:null},X.createElement(y3.Provider,{value:!0},e)),[e]);return VZ()?X.createElement(S3.Provider,{value:t},n):(0,cK.createPortal)(n,t)}var k3=(0,X.createContext)({});v3(function(e,t){[e,t]=X$(e,t,k3);let{elementType:n=`label`,...r}=e;return X.createElement(n,{className:`react-aria-Label`,...r,ref:t})});function rAe(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:a=`label`}=e;t=WZ(t);let o=WZ(),s={};n&&(r=r?`${o} ${r}`:o,s={id:o,htmlFor:a===`label`?t:void 0});let c=wQ({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:s,fieldProps:c}}function iAe(e){let{value:t=0,minValue:n=0,maxValue:r=100,valueLabel:i,isIndeterminate:a,formatOptions:o={style:`percent`}}=e,s=iQ(e,{labelable:!0}),{labelProps:c,fieldProps:l}=rAe({...e,labelElementType:`span`});t=YQ(t,n,r);let u=(t-n)/(r-n),d=MDe(o);if(!a&&!i){let e=o.style===`percent`?u:t;i=d.format(e)}return{progressBarProps:eQ(s,{...l,"aria-valuenow":a?void 0:t,"aria-valuemin":n,"aria-valuemax":r,"aria-valuetext":a?void 0:i,role:`progressbar`}),labelProps:c}}var A3=(0,X.createContext)(null);(0,X.forwardRef)(function(e,t){[e,t]=X$(e,t,A3);let{value:n=0,minValue:r=0,maxValue:i=100,isIndeterminate:a=!1}=e;n=YQ(n,r,i);let[o,s]=Z$(!e[`aria-label`]&&!e[`aria-labelledby`]),{progressBarProps:c,labelProps:l}=iAe({...e,label:s}),u=a?void 0:(n-r)/(i-r)*100,d=J$({...e,defaultClassName:`react-aria-ProgressBar`,values:{percentage:u,valueText:c[`aria-valuetext`],isIndeterminate:a}}),f=iQ(e,{global:!0});return X.createElement(`div`,{...eQ(f,d,c),ref:t,slot:e.slot||void 0},X.createElement(k3.Provider,{value:{...l,ref:o,elementType:`span`}},d.children))});var j3=null;function aAe(e,t=`assertive`,n=7e3){j3?j3.announce(e,t,n):(j3=new oAe,(typeof IS_REACT_ACT_ENVIRONMENT==`boolean`?IS_REACT_ACT_ENVIRONMENT:typeof jest<`u`)?j3.announce(e,t,n):setTimeout(()=>{j3?.isAttached()&&j3?.announce(e,t,n)},100))}var oAe=class{isAttached(){return this.node?.isConnected}createLog(e){let t=document.createElement(`div`);return t.setAttribute(`role`,`log`),t.setAttribute(`aria-live`,e),t.setAttribute(`aria-relevant`,`additions`),t}destroy(){this.node&&=(document.body.removeChild(this.node),null)}announce(e,t=`assertive`,n=7e3){var r,i;if(!this.node)return;let a=document.createElement(`div`);typeof e==`object`?(a.setAttribute(`role`,`img`),a.setAttribute(`aria-labelledby`,e[`aria-labelledby`])):a.textContent=e,t===`assertive`?(r=this.assertiveLog)==null||r.appendChild(a):(i=this.politeLog)==null||i.appendChild(a),e!==``&&setTimeout(()=>{a.remove()},n)}clear(e){this.node&&((!e||e===`assertive`)&&this.assertiveLog&&(this.assertiveLog.innerHTML=``),(!e||e===`polite`)&&this.politeLog&&(this.politeLog.innerHTML=``))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<`u`&&(this.node=document.createElement(`div`),this.node.dataset.liveAnnouncer=`true`,Object.assign(this.node.style,{border:0,clip:`rect(0 0 0 0)`,clipPath:`inset(50%)`,height:`1px`,margin:`-1px`,overflow:`hidden`,padding:0,position:`absolute`,width:`1px`,whiteSpace:`nowrap`}),this.assertiveLog=this.createLog(`assertive`),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog(`polite`),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}};function sAe(e,t){let{elementType:n=`button`,isDisabled:r,onPress:i,onPressStart:a,onPressEnd:o,onPressUp:s,onPressChange:c,preventFocusOnPress:l,allowFocusWhenDisabled:u,onClick:d,href:f,target:p,rel:m,type:h=`button`}=e,g;g=n===`button`?{type:h,disabled:r,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:{role:`button`,href:n===`a`&&!r?f:void 0,target:n===`a`?p:void 0,type:n===`input`?h:void 0,disabled:n===`input`?r:void 0,"aria-disabled":!r||n===`input`?void 0:r,rel:n===`a`?m:void 0};let{pressProps:_,isPressed:v}=f$({onPressStart:a,onPressEnd:o,onPressChange:c,onPress:i,onPressUp:s,onClick:d,isDisabled:r,preventFocusOnPress:l,ref:t}),{focusableProps:y}=R$(e,t);u&&(y.tabIndex=r?-1:y.tabIndex);let b=eQ(y,_,iQ(e,{labelable:!0}));return{isPressed:v,buttonProps:eQ(g,b,{"aria-haspopup":e[`aria-haspopup`],"aria-expanded":e[`aria-expanded`],"aria-controls":e[`aria-controls`],"aria-pressed":e[`aria-pressed`],"aria-current":e[`aria-current`],"aria-disabled":e[`aria-disabled`]})}}var M3=(0,X.createContext)({});v3(function(e,t){[e,t]=X$(e,t,M3),e=cAe(e);let n=e,{isPending:r}=n,{buttonProps:i,isPressed:a}=sAe(e,t),{focusProps:o,isFocused:s,isFocusVisible:c}=K0(e),{hoverProps:l,isHovered:u}=U$({...e,isDisabled:e.isDisabled||r}),d={isHovered:u,isPressed:(n.isPressed||a)&&!r,isFocused:s,isFocusVisible:c,isDisabled:e.isDisabled||!1,isPending:r??!1},f=J$({...e,values:d,defaultClassName:`react-aria-Button`}),p=WZ(i.id),m=WZ(),h=i[`aria-labelledby`];r&&(h?h=`${h} ${m}`:i[`aria-label`]&&(h=`${p} ${m}`));let g=(0,X.useRef)(r);(0,X.useEffect)(()=>{let e={"aria-labelledby":h||p};(!g.current&&s&&r||g.current&&s&&!r)&&aAe(e,`assertive`),g.current=r},[r,s,h,p]);let _=iQ(e,{global:!0});return delete _.onClick,X.createElement(`button`,{...eQ(_,f,i,o,l),type:i.type===`submit`&&r?`button`:i.type,id:p,ref:t,"aria-labelledby":h,slot:e.slot||void 0,"aria-disabled":r?`true`:i[`aria-disabled`],"data-disabled":e.isDisabled||void 0,"data-pressed":d.isPressed||void 0,"data-hovered":u||void 0,"data-focused":s||void 0,"data-pending":r||void 0,"data-focus-visible":c||void 0},X.createElement(A3.Provider,{value:{id:m}},f.children))});function cAe(e){return e.isPending&&(e.onPress=void 0,e.onPressStart=void 0,e.onPressEnd=void 0,e.onPressChange=void 0,e.onPressUp=void 0,e.onKeyDown=void 0,e.onKeyUp=void 0,e.onClick=void 0,e.href=void 0),e}var N3=(0,X.createContext)(null),P3=(0,X.createContext)(null),lAe=(0,X.forwardRef)(function(e,t){[e,t]=X$(e,t,N3);let n=(0,X.useContext)(w6),r=X2(e),i=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,a=HQ(t,i.isOpen)||e.isExiting||!1,o=Xke(),{direction:s}=y1();if(o){let t=e.children;return typeof t==`function`&&(t=t({trigger:e.trigger||null,placement:`bottom`,isEntering:!1,isExiting:!1,defaultChildren:null})),X.createElement(X.Fragment,null,t)}return i&&!i.isOpen&&!a?null:X.createElement(uAe,{...e,triggerRef:e.triggerRef,state:i,popoverRef:t,isExiting:a,dir:s})});function uAe({state:e,isExiting:t,UNSTABLE_portalContainer:n,clearContexts:r,...i}){let a=(0,X.useRef)(null),o=(0,X.useRef)(null),s=(0,X.useContext)(P3),c=s&&i.trigger===`SubmenuTrigger`,{popoverProps:l,underlayProps:u,arrowProps:d,placement:f,triggerAnchorPoint:p}=cOe({...i,offset:i.offset??8,arrowRef:a,groupRef:c?s:o},e),m=i.popoverRef,h=VQ(m,!!f)||i.isEntering||!1,g=J$({...i,defaultClassName:`react-aria-Popover`,values:{trigger:i.trigger||null,placement:f,isEntering:h,isExiting:t}}),_=!i.isNonModal||i.trigger===`SubmenuTrigger`,[v,y]=(0,X.useState)(!1);LZ(()=>{m.current&&y(_&&!m.current.querySelector(`[role=dialog]`))},[m,_]),(0,X.useEffect)(()=>{v&&i.trigger!==`SubmenuTrigger`&&m.current&&!m.current.contains(document.activeElement)&&N$(m.current)},[v,m,i.trigger]);let b=(0,X.useMemo)(()=>{let e=g.children;if(r)for(let t of r)e=X.createElement(t.Provider,{value:null},e);return e},[g.children,r]),x={...l.style,"--trigger-anchor-point":p?`${p.x}px ${p.y}px`:void 0,...g.style},S=X.createElement(`div`,{...eQ(iQ(i,{global:!0}),l),...g,role:v?`dialog`:void 0,tabIndex:v?-1:void 0,"aria-label":i[`aria-label`],"aria-labelledby":i[`aria-labelledby`],ref:m,slot:i.slot||void 0,style:x,dir:i.dir,"data-trigger":i.trigger,"data-placement":f,"data-entering":h||void 0,"data-exiting":t||void 0},!i.isNonModal&&X.createElement(U2,{onDismiss:e.close}),X.createElement(Q$.Provider,{value:{...d,placement:f,ref:a}},b),X.createElement(U2,{onDismiss:e.close}));return c?X.createElement(J2,{...i,shouldContainFocus:v,isExiting:t,portalContainer:n??s?.current??void 0},S):X.createElement(J2,{...i,shouldContainFocus:v,isExiting:t,portalContainer:n},!i.isNonModal&&e.isOpen&&X.createElement(`div`,{"data-testid":`underlay`,...u,style:{position:`fixed`,inset:0}}),X.createElement(`div`,{ref:o,style:{display:`contents`}},X.createElement(P3.Provider,{value:o},S)))}var F3=(0,X.createContext)(null);T3(`section`,(e,t,n)=>{let{name:r,render:i}=(0,X.useContext)(F3);return i(e,t,n,`react-aria-Section`)});var I3={CollectionRoot({collection:e,renderDropIndicator:t}){return L3(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return L3(e,t,n)}};function L3(e,t,n){return g3({items:t?e.getChildren(t.key):e,dependencies:[n],children(t){let r=t.render(t);return!n||t.type!==`item`?r:X.createElement(X.Fragment,null,n({type:`item`,key:t.key,dropPosition:`before`}),r,dAe(e,t,n))}})}function dAe(e,t,n){let r=t.key,i=e.getKeyAfter(r),a=i==null?null:e.getItem(i);for(;a!=null&&a.type!==`item`;)i=e.getKeyAfter(a.key),a=i==null?null:e.getItem(i);let o=t.nextKey==null?null:e.getItem(t.nextKey);for(;o!=null&&o.type!==`item`;)o=o.nextKey==null?null:e.getItem(o.nextKey);let s=[];if(o==null){let r=t;for(;r&&(!a||r.parentKey!==a.parentKey&&a.level<r.level);){let t=n({type:`item`,key:r.key,dropPosition:`after`});(0,X.isValidElement)(t)&&s.push((0,X.cloneElement)(t,{key:`${r.key}-after`})),r=r.parentKey==null?null:e.getItem(r.parentKey)}}return s}var R3=(0,X.createContext)(I3);function z3(e){return(0,X.useMemo)(()=>e==null?null:new Set([e]),[e])}var B3=(0,X.createContext)(null),fAe=(0,X.createContext)(null),V3=(0,X.createContext)({});w3(u3,function(e,t){return[e,t]=X$(e,t,V3),X.createElement(`header`,{className:`react-aria-Header`,...e,ref:t},e.children)});var H3=(0,X.createContext)({});(0,X.forwardRef)(function(e,t){return[e,t]=X$(e,t,H3),X.createElement(`kbd`,{dir:`ltr`,...e,ref:t})});function pAe(e){let t=iQ(e,{labelable:!0}),n;return e.orientation===`vertical`&&(n=`vertical`),e.elementType===`hr`?{separatorProps:t}:{separatorProps:{...t,role:`separator`,"aria-orientation":n}}}var U3=(0,X.createContext)({}),W3=class extends c3{filter(e,t){let n=t.getItem(this.prevKey);if(n&&n.type!==`separator`){let n=this.clone();return t.addDescendants(n,e),n}return null}};W3.type=`separator`,w3(W3,function(e,t){[e,t]=X$(e,t,U3);let{elementType:n,orientation:r,style:i,className:a,slot:o,...s}=e,c=n||`hr`;c===`hr`&&r===`vertical`&&(c=`div`);let{separatorProps:l}=pAe({...s,elementType:n,orientation:r}),u=iQ(e,{global:!0});return X.createElement(c,{...eQ(u,l),style:i,className:a??`react-aria-Separator`,ref:t,slot:o||void 0})});var G3=new WeakMap;function K3(e){return gTe()?e.altKey:e.ctrlKey}function q3(e,t){let n=`[data-key="${CSS.escape(String(t))}"]`,r=e.current?.dataset.collection;return r&&(n=`[data-collection="${CSS.escape(r)}"]${n}`),e.current?.querySelector(n)}var J3=new WeakMap;function mAe(e){let t=WZ();return J3.set(e,t),t}function hAe(e){return J3.get(e)}var gAe=1e3;function _Ae(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=(0,X.useRef)({search:``,timeout:void 0}).current;return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?e=>{let a=vAe(e.key);if(!(!a||e.ctrlKey||e.metaKey||!e.currentTarget.contains(e.target)||i.search.length===0&&a===` `)){if(a===` `&&i.search.trim().length>0&&(e.preventDefault(),`continuePropagation`in e||e.stopPropagation()),i.search+=a,t.getKeyForSearch!=null){let e=t.getKeyForSearch(i.search,n.focusedKey);e??=t.getKeyForSearch(i.search),e!=null&&(n.setFocusedKey(e),r&&r(e))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=``},gAe)}}:void 0}}}function vAe(e){return e.length===1||!/^[A-Z]/i.test(e)?e:``}function Y3(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:a=!1,disallowEmptySelection:o=!1,disallowSelectAll:s=!1,escapeKeyBehavior:c=`clearSelection`,selectOnFocus:l=t.selectionBehavior===`replace`,disallowTypeAhead:u=!1,shouldUseVirtualFocus:d,allowsTabNavigation:f=!1,isVirtualized:p,scrollRef:m=r,linkBehavior:h=`action`}=e,{direction:g}=y1(),_=gQ(),v=e=>{var i;if(e.altKey&&e.key===`Tab`&&e.preventDefault(),!((i=r.current)!=null&&i.contains(e.target)))return;let u=(n,i)=>{if(n!=null){if(t.isLink(n)&&h===`selection`&&l&&!K3(e)){(0,cK.flushSync)(()=>{t.setFocusedKey(n,i)});let a=q3(r,n),o=t.getItemProps(n);a&&_.open(a,e,o.href,o.routerOptions);return}if(t.setFocusedKey(n,i),t.isLink(n)&&h===`override`)return;e.shiftKey&&t.selectionMode===`multiple`?t.extendSelection(n):l&&!K3(e)&&t.replaceSelection(n)}};switch(e.key){case`ArrowDown`:if(n.getKeyBelow){let r=t.focusedKey==null?n.getFirstKey?.call(n):n.getKeyBelow?.call(n,t.focusedKey);r==null&&a&&(r=n.getFirstKey?.call(n,t.focusedKey)),r!=null&&(e.preventDefault(),u(r))}break;case`ArrowUp`:if(n.getKeyAbove){let r=t.focusedKey==null?n.getLastKey?.call(n):n.getKeyAbove?.call(n,t.focusedKey);r==null&&a&&(r=n.getLastKey?.call(n,t.focusedKey)),r!=null&&(e.preventDefault(),u(r))}break;case`ArrowLeft`:if(n.getKeyLeftOf){let r=t.focusedKey==null?null:n.getKeyLeftOf?.call(n,t.focusedKey);r==null&&a&&(r=g===`rtl`?n.getFirstKey?.call(n,t.focusedKey):n.getLastKey?.call(n,t.focusedKey)),r!=null&&(e.preventDefault(),u(r,g===`rtl`?`first`:`last`))}break;case`ArrowRight`:if(n.getKeyRightOf){let r=t.focusedKey==null?null:n.getKeyRightOf?.call(n,t.focusedKey);r==null&&a&&(r=g===`rtl`?n.getLastKey?.call(n,t.focusedKey):n.getFirstKey?.call(n,t.focusedKey)),r!=null&&(e.preventDefault(),u(r,g===`rtl`?`last`:`first`))}break;case`Home`:if(n.getFirstKey){if(t.focusedKey===null&&e.shiftKey)return;e.preventDefault();let r=n.getFirstKey(t.focusedKey,MQ(e));t.setFocusedKey(r),r!=null&&(MQ(e)&&e.shiftKey&&t.selectionMode===`multiple`?t.extendSelection(r):l&&t.replaceSelection(r))}break;case`End`:if(n.getLastKey){if(t.focusedKey===null&&e.shiftKey)return;e.preventDefault();let r=n.getLastKey(t.focusedKey,MQ(e));t.setFocusedKey(r),r!=null&&(MQ(e)&&e.shiftKey&&t.selectionMode===`multiple`?t.extendSelection(r):l&&t.replaceSelection(r))}break;case`PageDown`:if(n.getKeyPageBelow&&t.focusedKey!=null){let r=n.getKeyPageBelow(t.focusedKey);r!=null&&(e.preventDefault(),u(r))}break;case`PageUp`:if(n.getKeyPageAbove&&t.focusedKey!=null){let r=n.getKeyPageAbove(t.focusedKey);r!=null&&(e.preventDefault(),u(r))}break;case`a`:MQ(e)&&t.selectionMode===`multiple`&&s!==!0&&(e.preventDefault(),t.selectAll());break;case`Escape`:c===`clearSelection`&&!o&&t.selectedKeys.size!==0&&(e.stopPropagation(),e.preventDefault(),t.clearSelection());break;case`Tab`:if(!f){if(e.shiftKey)r.current.focus();else{let e=H0(r.current,{tabbable:!0}),t,n;do n=e.lastChild(),n&&(t=n);while(n);t&&!t.contains(document.activeElement)&&aQ(t)}break}}},y=(0,X.useRef)({top:0,left:0});FQ(m,`scroll`,p?void 0:()=>{y.current={top:m.current?.scrollTop??0,left:m.current?.scrollLeft??0}});let b=e=>{if(t.isFocused){e.currentTarget.contains(e.target)||t.setFocused(!1);return}if(e.currentTarget.contains(e.target)){if(t.setFocused(!0),t.focusedKey==null){let r=e=>{e!=null&&(t.setFocusedKey(e),l&&!t.isSelected(e)&&t.replaceSelection(e))},i=e.relatedTarget;i&&e.currentTarget.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_FOLLOWING?r(t.lastSelectedKey??n.getLastKey?.call(n)):r(t.firstSelectedKey??n.getFirstKey?.call(n))}else !p&&m.current&&(m.current.scrollTop=y.current.top,m.current.scrollLeft=y.current.left);if(t.focusedKey!=null&&m.current){let e=q3(r,t.focusedKey);e instanceof HTMLElement&&(!e.contains(document.activeElement)&&!d&&aQ(e),M$()===`keyboard`&&RQ(e,{containingElement:r.current}))}}},x=e=>{e.currentTarget.contains(e.relatedTarget)||t.setFocused(!1)},S=(0,X.useRef)(!1);FQ(r,MTe,d?e=>{let{detail:n}=e;e.stopPropagation(),t.setFocused(!0),n?.focusStrategy===`first`&&(S.current=!0)}:void 0);let C=EQ(()=>{let e=n.getFirstKey?.call(n)??null;if(e==null){let e=ZZ();q0(r.current),J0(e,null),t.collection.size>0&&(S.current=!1)}else t.setFocusedKey(e),S.current=!1});DQ(()=>{S.current&&C()},[t.collection,C]);let w=EQ(()=>{t.collection.size>0&&(S.current=!1)});DQ(()=>{w()},[t.focusedKey,w]),FQ(r,jTe,d?e=>{var n;e.stopPropagation(),t.setFocused(!1),(n=e.detail)!=null&&n.clearFocusKey&&t.setFocusedKey(null)}:void 0);let T=(0,X.useRef)(i),E=(0,X.useRef)(!1);(0,X.useEffect)(()=>{if(T.current){let e=null;i===`first`&&(e=n.getFirstKey?.call(n)??null),i===`last`&&(e=n.getLastKey?.call(n)??null);let a=t.selectedKeys;if(a.size){for(let n of a)if(t.canSelectItem(n)){e=n;break}}t.setFocused(!0),t.setFocusedKey(e),e==null&&!d&&r.current&&N$(r.current),t.collection.size>0&&(T.current=!1,E.current=!0)}});let D=(0,X.useRef)(t.focusedKey),O=(0,X.useRef)(null);(0,X.useEffect)(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==D.current||E.current)&&m.current&&r.current){let e=M$(),n=q3(r,t.focusedKey);if(!(n instanceof HTMLElement))return;(e===`keyboard`||E.current)&&(O.current&&cancelAnimationFrame(O.current),O.current=requestAnimationFrame(()=>{m.current&&(IQ(m.current,n),e!==`virtual`&&RQ(n,{containingElement:r.current}))}))}!d&&t.isFocused&&t.focusedKey==null&&D.current!=null&&r.current&&N$(r.current),D.current=t.focusedKey,E.current=!1}),(0,X.useEffect)(()=>()=>{O.current&&cancelAnimationFrame(O.current)},[]),FQ(r,`react-aria-focus-scope-restore`,e=>{e.preventDefault(),t.setFocused(!0)});let k={onKeyDown:v,onFocus:b,onBlur:x,onMouseDown(e){m.current===e.target&&e.preventDefault()}},{typeSelectProps:A}=_Ae({keyboardDelegate:n,selectionManager:t});u||(k=eQ(A,k));let j;d||(j=t.focusedKey==null?0:-1);let M=mAe(t.collection);return{collectionProps:eQ(k,{tabIndex:j,"data-collection":M})}}function X3(e){let{id:t,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:a,shouldUseVirtualFocus:o,focus:s,isDisabled:c,onAction:l,allowsDifferentPressOrigin:u,linkBehavior:d=`action`}=e,f=gQ();t=WZ(t);let p=e=>{if(e.pointerType===`keyboard`&&K3(e))n.toggleSelection(r);else{if(n.selectionMode===`none`)return;if(n.isLink(r)){if(d===`selection`&&i.current){let t=n.getItemProps(r);f.open(i.current,e,t.href,t.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(d===`override`||d===`none`)return}n.selectionMode===`single`?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):e&&e.shiftKey?n.extendSelection(r):n.selectionBehavior===`toggle`||e&&(MQ(e)||e.pointerType===`touch`||e.pointerType===`virtual`)?n.toggleSelection(r):n.replaceSelection(r)}};(0,X.useEffect)(()=>{r===n.focusedKey&&n.isFocused&&(o?q0(i.current):s?s():document.activeElement!==i.current&&i.current&&N$(i.current))},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,o]),c||=n.isDisabled(r);let m={};!o&&!c?m={tabIndex:r===n.focusedKey?0:-1,onFocus(e){e.target===i.current&&n.setFocusedKey(r)}}:c&&(m.onMouseDown=e=>{e.preventDefault()});let h=n.isLink(r)&&d===`override`,g=l&&e.UNSTABLE_itemBehavior===`action`,_=n.isLink(r)&&d!==`selection`&&d!==`none`,v=!c&&n.canSelectItem(r)&&!h&&!g,y=(l||_)&&!c,b=y&&(n.selectionBehavior===`replace`?!v:!v||n.isEmpty),x=y&&v&&n.selectionBehavior===`replace`,S=b||x,C=(0,X.useRef)(null),w=S&&v,T=(0,X.useRef)(!1),E=(0,X.useRef)(!1),D=n.getItemProps(r),O=e=>{if(l){var t;l(),(t=i.current)==null||t.dispatchEvent(new CustomEvent(`react-aria-item-action`,{bubbles:!0}))}_&&i.current&&f.open(i.current,e,D.href,D.routerOptions)},k={ref:i};if(a?(k.onPressStart=e=>{C.current=e.pointerType,T.current=w,e.pointerType===`keyboard`&&(!S||Q3())&&p(e)},u?(k.onPressUp=b?void 0:e=>{e.pointerType===`mouse`&&v&&p(e)},k.onPress=b?O:e=>{e.pointerType!==`keyboard`&&e.pointerType!==`mouse`&&v&&p(e)}):k.onPress=e=>{if(b||x&&e.pointerType!==`mouse`){if(e.pointerType===`keyboard`&&!Z3())return;O(e)}else e.pointerType!==`keyboard`&&v&&p(e)}):(k.onPressStart=e=>{C.current=e.pointerType,T.current=w,E.current=b,v&&(e.pointerType===`mouse`&&!b||e.pointerType===`keyboard`&&(!y||Q3()))&&p(e)},k.onPress=e=>{(e.pointerType===`touch`||e.pointerType===`pen`||e.pointerType===`virtual`||e.pointerType===`keyboard`&&S&&Z3()||e.pointerType===`mouse`&&E.current)&&(S?O(e):v&&p(e))}),m[`data-collection`]=hAe(n.collection),m[`data-key`]=r,k.preventFocusOnPress=o,o&&(k=eQ(k,{onPressStart(e){e.pointerType!==`touch`&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(e){e.pointerType===`touch`&&(n.setFocused(!0),n.setFocusedKey(r))}})),D)for(let e of[`onPressStart`,`onPressEnd`,`onPressChange`,`onPress`,`onPressUp`,`onClick`])D[e]&&(k[e]=KZ(k[e],D[e]));let{pressProps:A,isPressed:j}=f$(k),M=x?e=>{C.current===`mouse`&&(e.stopPropagation(),e.preventDefault(),O(e))}:void 0,{longPressProps:N}=fEe({isDisabled:!w,onLongPress(e){e.pointerType===`touch`&&(p(e),n.setSelectionBehavior(`toggle`))}}),P=e=>{C.current===`touch`&&T.current&&e.preventDefault()},ee=d!==`none`&&n.isLink(r)?e=>{_Q.isOpening||e.preventDefault()}:void 0;return{itemProps:eQ(m,v||b||o&&!c?A:{},w?N:{},{onDoubleClick:M,onDragStartCapture:P,onClick:ee,id:t},o?{onMouseDown:e=>e.preventDefault()}:void 0),isPressed:j,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:c,allowsSelection:v,hasAction:S}}function Z3(){return window.event?.key===`Enter`}function Q3(){let e=window.event;return e?.key===` `||e?.code===`Space`}var $3=class{getItemRect(e){let t=this.ref.current;if(!t)return null;let n=e==null?null:q3(this.ref,e);if(!n)return null;let r=t.getBoundingClientRect(),i=n.getBoundingClientRect();return{x:i.left-r.left-t.clientLeft+t.scrollLeft,y:i.top-r.top-t.clientTop+t.scrollTop,width:i.width,height:i.height}}getContentSize(){let e=this.ref.current;return{width:e?.scrollWidth??0,height:e?.scrollHeight??0}}getVisibleRect(){let e=this.ref.current;return{x:e?.scrollLeft??0,y:e?.scrollTop??0,width:e?.clientWidth??0,height:e?.clientHeight??0}}constructor(e){this.ref=e}},yAe=class{isDisabled(e){return this.disabledBehavior===`all`&&(e.props?.isDisabled||this.disabledKeys.has(e.key))}findNextNonDisabled(e,t){let n=e;for(;n!=null;){let e=this.collection.getItem(n);if(e?.type===`item`&&!this.isDisabled(e))return n;n=t(n)}return null}getNextKey(e){let t=e;return t=this.collection.getKeyAfter(t),this.findNextNonDisabled(t,e=>this.collection.getKeyAfter(e))}getPreviousKey(e){let t=e;return t=this.collection.getKeyBefore(t),this.findNextNonDisabled(t,e=>this.collection.getKeyBefore(e))}findKey(e,t,n){let r=e,i=this.layoutDelegate.getItemRect(r);if(!i||r==null)return null;let a=i;do{if(r=t(r),r==null)break;i=this.layoutDelegate.getItemRect(r)}while(i&&n(a,i)&&r!=null);return r}isSameRow(e,t){return e.y===t.y||e.x!==t.x}isSameColumn(e,t){return e.x===t.x||e.y!==t.y}getKeyBelow(e){return this.layout===`grid`&&this.orientation===`vertical`?this.findKey(e,e=>this.getNextKey(e),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout===`grid`&&this.orientation===`vertical`?this.findKey(e,e=>this.getPreviousKey(e),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,t){return t?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let t=this.direction===`ltr`?`getKeyRightOf`:`getKeyLeftOf`;return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[t](e))):this.layout===`grid`?this.orientation===`vertical`?this.getNextColumn(e,this.direction===`rtl`):this.findKey(e,e=>this.getNextColumn(e,this.direction===`rtl`),this.isSameColumn):this.orientation===`horizontal`?this.getNextColumn(e,this.direction===`rtl`):null}getKeyLeftOf(e){let t=this.direction===`ltr`?`getKeyLeftOf`:`getKeyRightOf`;return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[t](e))):this.layout===`grid`?this.orientation===`vertical`?this.getNextColumn(e,this.direction===`ltr`):this.findKey(e,e=>this.getNextColumn(e,this.direction===`ltr`),this.isSameColumn):this.orientation===`horizontal`?this.getNextColumn(e,this.direction===`ltr`):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyAfter(e))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyBefore(e))}getKeyPageAbove(e){let t=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;if(t&&!AQ(t))return this.getFirstKey();let r=e;if(this.orientation===`horizontal`){let e=Math.max(0,n.x+n.width-this.layoutDelegate.getVisibleRect().width);for(;n&&n.x>e&&r!=null;)r=this.getKeyAbove(r),n=r==null?null:this.layoutDelegate.getItemRect(r)}else{let e=Math.max(0,n.y+n.height-this.layoutDelegate.getVisibleRect().height);for(;n&&n.y>e&&r!=null;)r=this.getKeyAbove(r),n=r==null?null:this.layoutDelegate.getItemRect(r)}return r??this.getFirstKey()}getKeyPageBelow(e){let t=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;if(t&&!AQ(t))return this.getLastKey();let r=e;if(this.orientation===`horizontal`){let e=Math.min(this.layoutDelegate.getContentSize().width,n.y-n.width+this.layoutDelegate.getVisibleRect().width);for(;n&&n.x<e&&r!=null;)r=this.getKeyBelow(r),n=r==null?null:this.layoutDelegate.getItemRect(r)}else{let e=Math.min(this.layoutDelegate.getContentSize().height,n.y-n.height+this.layoutDelegate.getVisibleRect().height);for(;n&&n.y<e&&r!=null;)r=this.getKeyBelow(r),n=r==null?null:this.layoutDelegate.getItemRect(r)}return r??this.getLastKey()}getKeyForSearch(e,t){if(!this.collator)return null;let n=this.collection,r=t||this.getFirstKey();for(;r!=null;){let t=n.getItem(r);if(!t)return null;let i=t.textValue.slice(0,e.length);if(t.textValue&&this.collator.compare(i,e)===0)return r;r=this.getNextKey(r)}return null}constructor(...e){if(e.length===1){let t=e[0];this.collection=t.collection,this.ref=t.ref,this.collator=t.collator,this.disabledKeys=t.disabledKeys||new Set,this.disabledBehavior=t.disabledBehavior||`all`,this.orientation=t.orientation||`vertical`,this.direction=t.direction,this.layout=t.layout||`stack`,this.layoutDelegate=t.layoutDelegate||new $3(t.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout=`stack`,this.orientation=`vertical`,this.disabledBehavior=`all`,this.layoutDelegate=new $3(this.ref);this.layout===`stack`&&this.orientation===`vertical`&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}};function bAe(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:a,layoutDelegate:o}=e,s=NDe({usage:`search`,sensitivity:`base`}),c=t.disabledBehavior,l=(0,X.useMemo)(()=>a||new yAe({collection:n,disabledKeys:r,disabledBehavior:c,ref:i,collator:s,layoutDelegate:o}),[a,o,n,r,i,s,c]),{collectionProps:u}=Y3({...e,ref:i,selectionManager:t,keyboardDelegate:l});return{listProps:u}}function xAe(e,t,n){let{shouldFocusWrap:r=!0,onKeyDown:i,onKeyUp:a,...o}=e;!e[`aria-label`]&&e[`aria-labelledby`];let s=iQ(e,{labelable:!0}),{listProps:c}=bAe({...o,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:`override`});return G3.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:eQ(s,{onKeyDown:i,onKeyUp:a},{role:`menu`,...c,onKeyDown:t=>{var n;(t.key!==`Escape`||e.shouldUseVirtualFocus)&&((n=c.onKeyDown)==null||n.call(c,t))}})}}function e6(e){return null}e6.getCollectionNode=function*(e,t){let{childItems:n,title:r,children:i}=e,a=e.title||e.children,o=e.textValue||(typeof a==`string`?a:``)||e[`aria-label`]||``;!o&&t?.suppressTextValueWarning,yield{type:`item`,props:e,rendered:a,textValue:o,"aria-label":e[`aria-label`],hasChildNodes:SAe(e),*childNodes(){if(n)for(let e of n)yield{type:`item`,value:e};else if(r){let e=[];X.Children.forEach(i,t=>{e.push({type:`item`,element:t})}),yield*e}}}};function SAe(e){return e.hasChildItems==null?!!(e.childItems||e.title&&X.Children.count(e.children)>0):e.hasChildItems}var CAe=e6;function wAe(e){return null}wAe.getCollectionNode=function*(e){let{children:t,title:n,items:r}=e;yield{type:`section`,props:e,hasChildNodes:!0,rendered:n,"aria-label":e[`aria-label`],*childNodes(){if(typeof t==`function`){if(!r)throw Error(`props.children was a function but props.items is missing`);for(let e of r)yield{type:`item`,value:e,renderer:t}}else{let e=[];X.Children.forEach(t,t=>{e.push({type:`item`,element:t})}),yield*e}}}};var TAe=class{build(e,t){return this.context=t,t6(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:n}=e;if(X.isValidElement(t)&&t.type===X.Fragment)yield*this.iterateCollection({children:t.props.children,items:n});else if(typeof t==`function`){if(!n)throw Error(`props.children was a function but props.items is missing`);let e=0;for(let r of n)yield*this.getFullNode({value:r,index:e},{renderer:t}),e++}else{let e=[];X.Children.forEach(t,t=>{t&&e.push(t)});let n=0;for(let t of e){let e=this.getFullNode({element:t,index:n},{});for(let t of e)n++,yield t}}}getKey(e,t,n,r){if(e.key!=null)return e.key;if(t.type===`cell`&&t.key!=null)return`${r}${t.key}`;let i=t.value;if(i!=null){let e=i.key??i.id;if(e==null)throw Error(`No key found for item`);return e}return r?`${r}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,n,r){if(X.isValidElement(e.element)&&e.element.type===X.Fragment){let i=[];X.Children.forEach(e.element.props.children,e=>{i.push(e)});let a=e.index??0;for(let e of i)yield*this.getFullNode({element:e,index:a++},t,n,r);return}let i=e.element;if(!i&&e.value&&t&&t.renderer){let n=this.cache.get(e.value);if(n&&(!n.shouldInvalidate||!n.shouldInvalidate(this.context))){n.index=e.index,n.parentKey=r?r.key:null,yield n;return}i=t.renderer(e.value)}if(X.isValidElement(i)){let a=i.type;if(typeof a!=`function`&&typeof a.getCollectionNode!=`function`){let e=i.type;throw Error(`Unknown element <${e}> in collection.`)}let o=a.getCollectionNode(i.props,this.context),s=e.index??0,c=o.next();for(;!c.done&&c.value;){let a=c.value;e.index=s;let l=a.key??null;l??=a.element?null:this.getKey(i,e,t,n);let u=[...this.getFullNode({...a,key:l,index:s,wrapper:EAe(e.wrapper,a.wrapper)},this.getChildState(t,a),n?`${n}${i.key}`:i.key,r)];for(let t of u){if(t.value=a.value??e.value??null,t.value&&this.cache.set(t.value,t),e.type&&t.type!==e.type)throw Error(`Unsupported type <${n6(t.type)}> in <${n6(r?.type??`unknown parent type`)}>. Only <${n6(e.type)}> is supported.`);s++,yield t}c=o.next(u)}return}if(e.key==null||e.type==null)return;let a=this,o={type:e.type,props:e.props,key:e.key,parentKey:r?r.key:null,value:e.value??null,level:r?r.level+1:0,index:e.index,rendered:e.rendered,textValue:e.textValue??``,"aria-label":e[`aria-label`],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:t6(function*(){if(!e.hasChildNodes||!e.childNodes)return;let n=0;for(let r of e.childNodes()){r.key!=null&&(r.key=`${o.key}${r.key}`);let e=a.getFullNode({...r,index:n},a.getChildState(t,r),o.key,o);for(let t of e)n++,yield t}})};yield o}constructor(){this.cache=new WeakMap}};function t6(e){let t=[],n=null;return{*[Symbol.iterator](){for(let e of t)yield e;n||=e();for(let e of n)t.push(e),yield e}}}function EAe(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function n6(e){return e[0].toUpperCase()+e.slice(1)}function r6(e,t,n){let r=(0,X.useMemo)(()=>new TAe,[]),{children:i,items:a,collection:o}=e;return(0,X.useMemo)(()=>o||t(r.build({children:i,items:a},n)),[r,i,a,o,n,t])}function i6(e,t){return typeof t.getChildren==`function`?t.getChildren(e.key):e.childNodes}function DAe(e){return OAe(e,0)}function OAe(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function a6(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...o6(e,t),t],i=[...o6(e,n),n],a=r.slice(0,i.length).findIndex((e,t)=>e!==i[t]);return a===-1?r.findIndex(e=>e===n)>=0?1:(i.findIndex(e=>e===t),-1):(t=r[a],n=i[a],t.index-n.index)}function o6(e,t){let n=[],r=t;for(;r?.parentKey!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}var s6=new WeakMap;function kAe(e){let t=s6.get(e);if(t!=null)return t;let n=0,r=t=>{for(let i of t)i.type===`section`?r(i6(i,e)):i.type===`item`&&n++};return r(e),s6.set(e,n),n}function AAe(e,t,n){let{id:r,key:i,closeOnSelect:a,isVirtualized:o,"aria-haspopup":s,onPressStart:c,onPressUp:l,onPress:u,onPressChange:d,onPressEnd:f,onClick:p,onHoverStart:m,onHoverChange:h,onHoverEnd:g,onKeyDown:_,onKeyUp:v,onFocus:y,onFocusChange:b,onBlur:x,selectionManager:S=t.selectionManager}=e,C=!!s,w=C&&e[`aria-expanded`]===`true`,T=e.isDisabled??S.isDisabled(i),E=e.isSelected??S.isSelected(i),D=G3.get(t),O=t.collection.getItem(i),k=e.onClose||D.onClose,A=gQ(),j=()=>{var t;if(!C&&(!(O==null||(t=O.props)==null)&&t.onAction?O.props.onAction():e.onAction&&e.onAction(i),D.onAction)){let e=D.onAction;e(i)}},M=`menuitem`;C||(S.selectionMode===`single`?M=`menuitemradio`:S.selectionMode===`multiple`&&(M=`menuitemcheckbox`));let N=GZ(),P=GZ(),ee=GZ(),te={id:r,"aria-disabled":T||void 0,role:M,"aria-label":e[`aria-label`],"aria-labelledby":N,"aria-describedby":[P,ee].filter(Boolean).join(` `)||void 0,"aria-controls":e[`aria-controls`],"aria-haspopup":s,"aria-expanded":e[`aria-expanded`]};S.selectionMode!==`none`&&!C&&(te[`aria-checked`]=E),o&&(te[`aria-posinset`]=O?.index,te[`aria-setsize`]=kAe(t.collection));let F=(0,X.useRef)(!1),I=e=>{d?.(e),F.current=e},ne=(0,X.useRef)(null),re=e=>{e.pointerType!==`keyboard`&&(ne.current={pointerType:e.pointerType}),e.pointerType===`mouse`&&(F.current||e.target.click()),l?.(e)},ie=e=>{p?.(e),j(),STe(e,A,O.props.href,O?.props.routerOptions);let t=ne.current?.pointerType===`keyboard`?ne.current?.key===`Enter`||S.selectionMode===`none`||S.isLink(i):S.selectionMode!==`multiple`||S.isLink(i);t=a??t,k&&!C&&t&&k(),ne.current=null},{itemProps:L,isFocused:ae}=X3({id:r,selectionManager:S,key:i,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:`none`,shouldUseVirtualFocus:D.shouldUseVirtualFocus}),{pressProps:oe,isPressed:se}=f$({onPressStart:c,onPress:u,onPressUp:re,onPressChange:I,onPressEnd:f,isDisabled:T}),{hoverProps:ce}=U$({isDisabled:T,onHoverStart(e){!j$()&&!(w&&s)&&(S.setFocused(!0),S.setFocusedKey(i)),m?.(e)},onHoverChange:h,onHoverEnd:g}),{keyboardProps:le}=I$({onKeyDown:e=>{if(e.repeat){e.continuePropagation();return}switch(e.key){case` `:ne.current={pointerType:`keyboard`,key:` `},e.target.click();break;case`Enter`:ne.current={pointerType:`keyboard`,key:`Enter`},e.target.tagName!==`A`&&e.target.click();break;default:C||e.continuePropagation(),_?.(e);break}},onKeyUp:v}),{focusProps:ue}=P$({onBlur:x,onFocus:y,onFocusChange:b}),de=iQ(O?.props);delete de.id;let fe=vQ(O?.props);return{menuItemProps:{...te,...eQ(de,fe,C?{onFocus:L.onFocus,"data-collection":L[`data-collection`],"data-key":L[`data-key`]}:L,oe,ce,le,ue,D.shouldUseVirtualFocus||C?{onMouseDown:e=>e.preventDefault()}:void 0,T?void 0:{onClick:ie}),tabIndex:L.tabIndex!=null&&w&&!D.shouldUseVirtualFocus?-1:L.tabIndex},labelProps:{id:N},descriptionProps:{id:P},keyboardShortcutProps:{id:ee},isFocused:ae,isFocusVisible:ae&&S.isFocused&&j$()&&!w,isSelected:E,isPressed:se,isDisabled:T}}function jAe(e){let{heading:t,"aria-label":n}=e,r=WZ();return{itemProps:{role:`presentation`},headingProps:t?{id:r,role:`presentation`}:{},groupProps:{role:`group`,"aria-label":n,"aria-labelledby":t?r:void 0}}}var c6=2,MAe=50,NAe=1e3,l6=Math.PI/12;function PAe(e){let{menuRef:t,submenuRef:n,isOpen:r,isDisabled:i}=e,a=(0,X.useRef)(void 0),o=(0,X.useRef)(void 0),s=(0,X.useRef)(0),c=(0,X.useRef)(void 0),l=(0,X.useRef)(void 0),u=(0,X.useRef)(void 0),d=(0,X.useRef)(2),[f,p]=(0,X.useState)(!1);OQ({ref:n,onResize:()=>{n.current&&(o.current=n.current.getBoundingClientRect(),u.current=void 0)}});let m=()=>{p(!1),d.current=c6,a.current=void 0},h=$Te(),g=EQ(e=>{f&&e.preventDefault()});(0,X.useEffect)(()=>{f&&t.current?t.current.style.pointerEvents=`none`:t.current.style.pointerEvents=``},[t,f]),(0,X.useEffect)(()=>{let e=n.current,f=t.current;if(i||!e||!r||h!==`pointer`||!f){m();return}o.current=e.getBoundingClientRect();let _=e=>{if(e.pointerType===`touch`||e.pointerType===`pen`)return;let t=Date.now();if(t-s.current<MAe)return;clearTimeout(c.current),clearTimeout(l.current);let{clientX:n,clientY:r}=e;if(!a.current){a.current={x:n,y:r};return}if(!o.current)return;if(u.current||=n>o.current.right?`left`:`right`,n<f.getBoundingClientRect().left||n>f.getBoundingClientRect().right||r<f.getBoundingClientRect().top||r>f.getBoundingClientRect().bottom){m();return}let i=a.current.x,h=a.current.y,g=u.current===`right`?o.current.left-i:i-o.current.right,_=Math.atan2(h-o.current.top,g)+l6,v=Math.atan2(h-o.current.bottom,g)-l6,y=Math.atan2(h-r,u.current===`left`?-(n-i):n-i),b=y<_&&y>v;d.current=b?Math.min(d.current+1,c6):Math.max(d.current-1,0),d.current>=c6?p(!0):p(!1),s.current=t,a.current={x:n,y:r},b&&(c.current=setTimeout(()=>{m(),l.current=setTimeout(()=>{let e=document.elementFromPoint(n,r);e&&f.contains(e)&&e.dispatchEvent(new PointerEvent(`pointerover`,{bubbles:!0,cancelable:!0}))},100)},NAe))};return window.addEventListener(`pointermove`,_),window.addEventListener(`pointerdown`,g,!0),()=>{window.removeEventListener(`pointermove`,_),window.removeEventListener(`pointerdown`,g,!0),clearTimeout(c.current),clearTimeout(l.current),d.current=c6}},[i,r,t,h,p,g,n])}function FAe(e,t,n){let{parentMenuRef:r,submenuRef:i,type:a=`menu`,isDisabled:o,delay:s=200,shouldUseVirtualFocus:c}=e,l=WZ(),u=WZ(),{direction:d}=y1(),f=(0,X.useRef)(void 0),p=(0,X.useCallback)(()=>{f.current&&=(clearTimeout(f.current),void 0)},[f]),m=EQ(e=>{p(),t.open(e)}),h=EQ(()=>{p(),t.close()});LZ(()=>()=>{p()},[p]);let g=e=>{if(e.currentTarget.contains(document.activeElement))switch(e.key){case`ArrowLeft`:d===`ltr`&&e.currentTarget.contains(e.target)&&(e.preventDefault(),e.stopPropagation(),h(),!c&&n.current&&aQ(n.current));break;case`ArrowRight`:d===`rtl`&&e.currentTarget.contains(e.target)&&(e.preventDefault(),e.stopPropagation(),h(),!c&&n.current&&aQ(n.current));break;case`Escape`:var t;(t=i.current)!=null&&t.contains(e.target)&&(e.stopPropagation(),h(),!c&&n.current&&aQ(n.current));break}},_={id:u,"aria-labelledby":l,submenuLevel:t.submenuLevel,...a===`menu`&&{onClose:t.closeAll,autoFocus:t.focusStrategy??void 0,onKeyDown:g}},v=e=>{switch(e.key){case`ArrowRight`:o||(d===`ltr`?(e.preventDefault(),t.isOpen||m(`first`),a===`menu`&&i?.current&&document.activeElement===n?.current&&aQ(i.current)):t.isOpen?h():e.continuePropagation());break;case`ArrowLeft`:o||(d===`rtl`?(e.preventDefault(),t.isOpen||m(`first`),a===`menu`&&i?.current&&document.activeElement===n?.current&&aQ(i.current)):t.isOpen?h():e.continuePropagation());break;default:e.continuePropagation();break}},y=e=>{!o&&(e.pointerType===`virtual`||e.pointerType===`keyboard`)&&m(`first`)},b=e=>{!o&&(e.pointerType===`touch`||e.pointerType===`mouse`)&&m()},x=e=>{o||(e&&!t.isOpen?f.current||=setTimeout(()=>{m()},s):e||p())};FQ(r,`focusin`,e=>{var i;t.isOpen&&(i=r.current)!=null&&i.contains(e.target)&&e.target!==n.current&&h()});let S=e=>e!==n.current;return PAe({menuRef:r,submenuRef:i,isOpen:t.isOpen,isDisabled:o}),{submenuTriggerProps:{id:l,"aria-controls":t.isOpen?u:void 0,"aria-haspopup":o?void 0:a,"aria-expanded":t.isOpen?`true`:`false`,onPressStart:y,onPress:b,onHoverChange:x,onKeyDown:v,isOpen:t.isOpen},submenuProps:_,popoverProps:{isNonModal:!0,shouldCloseOnInteractOutside:S}}}function u6(e){let t=X2(e),[n,r]=(0,X.useState)(null),[i,a]=(0,X.useState)([]),o=()=>{a([]),t.close()};return{focusStrategy:n,...t,open(e=null){r(e),t.open()},toggle(e=null){r(e),t.toggle()},close(){o()},expandedKeysStack:i,openSubmenu:(e,t)=>{a(n=>t>n.length?n:[...n.slice(0,t),e])},closeSubmenu:(e,t)=>{a(n=>n[t]===e?n.slice(0,t):n)}}}function IAe(e,t){let{triggerKey:n}=e,{expandedKeysStack:r,openSubmenu:i,closeSubmenu:a,close:o}=t,[s]=(0,X.useState)(r?.length),c=(0,X.useMemo)(()=>r[s]===n,[r,n,s]),[l,u]=(0,X.useState)(null),d=(0,X.useCallback)(e=>{u(e??null),i(n,s)},[i,s,n]),f=(0,X.useCallback)(()=>{u(null),a(n,s)},[a,s,n]),p=(0,X.useCallback)(e=>{u(e??null),c?f():d(e)},[f,d,c]);return(0,X.useMemo)(()=>({focusStrategy:l,isOpen:c,open:d,close:f,closeAll:o,submenuLevel:s,setOpen:()=>{},toggle:p}),[c,d,f,o,l,p,s])}var LAe=class{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);var n;return t&&(n=t.prevKey)!=null?n:null}getKeyAfter(e){let t=this.keyMap.get(e);var n;return t&&(n=t.nextKey)!=null?n:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)??null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}constructor(e,{expandedKeys:t}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e,t||=new Set;let n=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&(e.type===`section`||t.has(e.key)))for(let t of e.childNodes)n(t)};for(let t of e)n(t);let r=null,i=0;for(let[e,t]of this.keyMap)r?(r.nextKey=e,t.prevKey=r.key):(this.firstKey=e,t.prevKey=void 0),t.type===`item`&&(t.index=i++),r=t,r.nextKey=void 0;this.lastKey=r?.key??null}},d6=class e extends Set{constructor(t,n,r){super(t),t instanceof e?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}};function RAe(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function f6(e){let{selectionMode:t=`none`,disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i=`toggle`,disabledBehavior:a=`all`}=e,o=(0,X.useRef)(!1),[,s]=(0,X.useState)(!1),c=(0,X.useRef)(null),l=(0,X.useRef)(null),[,u]=(0,X.useState)(null),[d,f]=JQ((0,X.useMemo)(()=>p6(e.selectedKeys),[e.selectedKeys]),(0,X.useMemo)(()=>p6(e.defaultSelectedKeys,new d6),[e.defaultSelectedKeys]),e.onSelectionChange),p=(0,X.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[m,h]=(0,X.useState)(i);i===`replace`&&m===`toggle`&&typeof d==`object`&&d.size===0&&h(`replace`);let g=(0,X.useRef)(i);return(0,X.useEffect)(()=>{i!==g.current&&(h(i),g.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:m,setSelectionBehavior:h,get isFocused(){return o.current},setFocused(e){o.current=e,s(e)},get focusedKey(){return c.current},get childFocusStrategy(){return l.current},setFocusedKey(e,t=`first`){c.current=e,l.current=t,u(e)},selectedKeys:d,setSelectedKeys(e){(r||!RAe(e,d))&&f(e)},disabledKeys:p,disabledBehavior:a}}function p6(e,t){return e?e===`all`?`all`:new d6(e):t}var m6=class e{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,t)}get selectedKeys(){return this.state.selectedKeys===`all`?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode===`none`)return!1;let t=this.getKey(e);return t==null?!1:this.state.selectedKeys===`all`?this.canSelectItem(t):this.state.selectedKeys.has(t)}get isEmpty(){return this.state.selectedKeys!==`all`&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys===`all`)return!0;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every(e=>t.has(e)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&a6(this.collection,n,e)<0)&&(e=n)}return e?.key??null}get lastSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&a6(this.collection,n,e)>0)&&(e=n)}return e?.key??null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode===`none`)return;if(this.selectionMode===`single`){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let n;if(this.state.selectedKeys===`all`)n=new d6([t],t,t);else{let e=this.state.selectedKeys,r=e.anchorKey??t;n=new d6(e,r,t);for(let i of this.getKeyRange(r,e.currentKey??t))n.delete(i);for(let e of this.getKeyRange(t,r))this.canSelectItem(e)&&n.add(e)}this.state.setSelectedKeys(n)}getKeyRange(e,t){let n=this.collection.getItem(e),r=this.collection.getItem(t);return n&&r?a6(this.collection,n,r)<=0?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){var n;if((n=this.layoutDelegate)!=null&&n.getKeyRange)return this.layoutDelegate.getKeyRange(e,t);let r=[],i=e;for(;i!=null;){let e=this.collection.getItem(i);if(e&&(e.type===`item`||e.type===`cell`&&this.allowsCellSelection)&&r.push(i),i===t)return r;i=this.collection.getKeyAfter(i)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t||t.type===`cell`&&this.allowsCellSelection)return e;for(;t&&t.type!==`item`&&t.parentKey!=null;)t=this.collection.getItem(t.parentKey);return!t||t.type!==`item`?null:t.key}toggleSelection(e){if(this.selectionMode===`none`)return;if(this.selectionMode===`single`&&!this.isSelected(e)){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let n=new d6(this.state.selectedKeys===`all`?this.getSelectAllKeys():this.state.selectedKeys);n.has(t)?n.delete(t):this.canSelectItem(t)&&(n.add(t),n.anchorKey=t,n.currentKey=t),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(e){if(this.selectionMode===`none`)return;let t=this.getKey(e);if(t==null)return;let n=this.canSelectItem(t)?new d6([t],t,t):new d6;this.state.setSelectedKeys(n)}setSelectedKeys(e){if(this.selectionMode===`none`)return;let t=new d6;for(let n of e){let e=this.getKey(n);if(e!=null&&(t.add(e),this.selectionMode===`single`))break}this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=[],t=n=>{for(;n!=null;){if(this.canSelectItem(n)){let r=this.collection.getItem(n);r?.type===`item`&&e.push(n),r?.hasChildNodes&&(this.allowsCellSelection||r.type!==`item`)&&t(DAe(i6(r,this.collection))?.key??null)}n=this.collection.getKeyAfter(n)}};return t(this.collection.getFirstKey()),e}selectAll(){!this.isSelectAll&&this.selectionMode===`multiple`&&this.state.setSelectedKeys(`all`)}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys===`all`||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new d6)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){this.selectionMode!==`none`&&(this.selectionMode===`single`?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior===`toggle`||t&&(t.pointerType===`touch`||t.pointerType===`virtual`)?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;for(let n of t)if(!e.has(n))return!1;return!0}canSelectItem(e){var t;if(this.state.selectionMode===`none`||this.state.disabledKeys.has(e))return!1;let n=this.collection.getItem(e);return!(!n||!(n==null||(t=n.props)==null)&&t.isDisabled||n.type===`cell`&&!this.allowsCellSelection)}isDisabled(e){var t,n;return this.state.disabledBehavior===`all`&&(this.state.disabledKeys.has(e)||!!(!((n=this.collection.getItem(e))==null||(t=n.props)==null)&&t.isDisabled))}isLink(e){var t,n;return!!(!((n=this.collection.getItem(e))==null||(t=n.props)==null)&&t.href)}getItemProps(e){return this.collection.getItem(e)?.props}withCollection(t){return new e(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(e,t,n){this.collection=e,this.state=t,this.allowsCellSelection=n?.allowsCellSelection??!1,this._isSelectAll=null,this.layoutDelegate=n?.layoutDelegate||null}};function zAe(e){let{onExpandedChange:t}=e,[n,r]=JQ(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),i=f6(e),a=(0,X.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=r6(e,(0,X.useCallback)(e=>new LAe(e,{expandedKeys:n}),[n]),null);return(0,X.useEffect)(()=>{i.focusedKey!=null&&!o.getItem(i.focusedKey)&&i.setFocusedKey(null)},[o,i.focusedKey]),{collection:o,expandedKeys:n,disabledKeys:a,toggleKey:e=>{r(BAe(n,e))},setExpandedKeys:r,selectionManager:new m6(o,i)}}function BAe(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}var h6=(0,X.createContext)(null),g6=(0,X.createContext)(null),_6=(0,X.createContext)(null),v6=(0,X.createContext)(null),y6=(0,X.createContext)(null),b6=class extends c3{filter(e,t,n){let r=e.getItem(this.firstChildKey);if(r&&n(r.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};b6.type=`submenutrigger`,T3(b6,(e,t,n)=>{let{CollectionBranch:r}=(0,X.useContext)(R3),i=(0,X.useContext)(g6),a=(0,X.useContext)(_6),o=IAe({triggerKey:n.key},a),s=(0,X.useRef)(null),c=TQ(t),{parentMenuRef:l,shouldUseVirtualFocus:u}=(0,X.useContext)(y6),{submenuTriggerProps:d,submenuProps:f,popoverProps:p}=FAe({parentMenuRef:l,submenuRef:s,delay:e.delay,shouldUseVirtualFocus:u},o,c);return X.createElement(q$,{values:[[S6,{...d,onAction:void 0,ref:c}],[h6,{ref:s,...f}],[w6,o],[N3,{trigger:`SubmenuTrigger`,triggerRef:c,placement:`end top`,"aria-labelledby":f[`aria-labelledby`],...p}]]},X.createElement(r,{collection:i.collection,parent:n}),e.children[1])},e=>e.children[0]),(0,X.forwardRef)(function(e,t){return[e,t]=X$(e,t,h6),X.createElement(x3,{content:X.createElement(O3,e)},n=>X.createElement(VAe,{props:e,collection:n,menuRef:t}))});function VAe({props:e,collection:t,menuRef:n}){[e,n]=X$(e,n,B3);let{filter:r,...i}=e,a=(0,X.useMemo)(()=>r?t.filter(r):t,[t,r]),o=zAe({...e,collection:a,children:void 0}),s=(0,X.useContext)(_6),{isVirtualized:c,CollectionRoot:l}=(0,X.useContext)(R3),{menuProps:u}=xAe({...e,isVirtualized:c,onClose:e.onClose||s?.close},o,n),d=J$({defaultClassName:`react-aria-Menu`,className:e.className,style:e.style,values:{isEmpty:o.collection.size===0}}),f=null;o.collection.size===0&&e.renderEmptyState&&(f=X.createElement(`div`,{role:`menuitem`,style:{display:`contents`}},e.renderEmptyState()));let p=iQ(e,{global:!0});return X.createElement(A0,null,X.createElement(`div`,{...eQ(p,d,u),ref:n,slot:e.slot||void 0,"data-empty":o.collection.size===0||void 0,onScroll:e.onScroll},X.createElement(q$,{values:[[g6,o],[U3,{elementType:`div`}],[F3,{name:`MenuSection`,render:x6}],[y6,{parentMenuRef:n,shouldUseVirtualFocus:i?.shouldUseVirtualFocus}],[S6,null],[B3,null],[fAe,null],[v6,o.selectionManager],[_6,s??u6({})]]},X.createElement(l,{collection:o.collection,persistedKeys:z3(o.selectionManager.focusedKey),scrollRef:n})),f))}var HAe=class extends m6{get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,t){return this.parent.setFocusedKey(e,t)}setFocused(e){this.parent.setFocused(e)}get childFocusStrategy(){return this.parent.childFocusStrategy}constructor(e,t){super(e.collection,t),this.parent=e}};function x6(e,t,n,r=`react-aria-MenuSection`){let i=(0,X.useContext)(g6),{CollectionBranch:a}=(0,X.useContext)(R3),[o,s]=Z$(),{headingProps:c,groupProps:l}=jAe({heading:s,"aria-label":n.props[`aria-label`]??void 0}),u=J$({defaultClassName:r,className:n.props?.className,style:n.props?.style,values:{}}),d=(0,X.useContext)(v6),f=f6(e),p=e.selectionMode==null?d:new HAe(d,f),m=iQ(e,{global:!0});return delete m.id,X.createElement(`section`,{...eQ(m,u,l),ref:t},X.createElement(q$,{values:[[V3,{...c,ref:o}],[v6,p]]},X.createElement(a,{collection:i.collection,parent:n})))}T3(f3,x6);var S6=(0,X.createContext)(null);w3(d3,function(e,t,n){[e,t]=X$(e,t,S6);let r=Y$(S6)?.id,i=(0,X.useContext)(g6),a=TQ(t),o=(0,X.useContext)(v6),{menuItemProps:s,labelProps:c,descriptionProps:l,keyboardShortcutProps:u,...d}=AAe({...e,id:r,key:n.key,selectionManager:o},i,a),{hoverProps:f,isHovered:p}=U$({isDisabled:d.isDisabled}),m=J$({...e,id:void 0,children:n.rendered,defaultClassName:`react-aria-MenuItem`,values:{...d,isHovered:p,isFocusVisible:d.isFocusVisible,selectionMode:o.selectionMode,selectionBehavior:o.selectionBehavior,hasSubmenu:!!e[`aria-haspopup`],isOpen:e[`aria-expanded`]===`true`}}),h=e.href?`a`:`div`,g=iQ(e,{global:!0});return delete g.id,delete g.onClick,X.createElement(h,{...eQ(g,m,s,f),ref:a,"data-disabled":d.isDisabled||void 0,"data-hovered":p||void 0,"data-focused":d.isFocused||void 0,"data-focus-visible":d.isFocusVisible||void 0,"data-pressed":d.isPressed||void 0,"data-selected":d.isSelected||void 0,"data-selection-mode":o.selectionMode===`none`?void 0:o.selectionMode,"data-has-submenu":!!e[`aria-haspopup`]||void 0,"data-open":e[`aria-expanded`]===`true`||void 0},X.createElement(q$,{values:[[T4,{slots:{[K$]:c,label:c,description:l}}],[H3,u]]},m.children))});function UAe(e,t){let{role:n=`dialog`}=e,r=GZ();r=e[`aria-label`]?void 0:r;let i=(0,X.useRef)(!1);return(0,X.useEffect)(()=>{if(t.current&&!t.current.contains(document.activeElement)){N$(t.current);let e=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(i.current=!0,t.current&&(t.current.blur(),N$(t.current)),i.current=!1)},500);return()=>{clearTimeout(e)}}},[t]),Y2(),{dialogProps:{...iQ(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e[`aria-labelledby`]||r,onBlur:e=>{i.current&&e.stopPropagation()}},titleProps:{id:r}}}var C6=(0,X.createContext)(null),w6=(0,X.createContext)(null);function WAe(e){let t=u6(e),n=(0,X.useRef)(null),{triggerProps:r,overlayProps:i}=JDe({type:`dialog`},t,n),[a,o]=(0,X.useState)(null);return OQ({ref:n,onResize:(0,X.useCallback)(()=>{n.current&&o(n.current.offsetWidth+`px`)},[n])}),r.id=WZ(),i[`aria-labelledby`]=r.id,X.createElement(q$,{values:[[w6,t],[_6,t],[C6,i],[N3,{trigger:`DialogTrigger`,triggerRef:n,"aria-labelledby":i[`aria-labelledby`],style:{"--trigger-width":a}}]]},X.createElement(sEe,{...r,ref:n,isPressed:t.isOpen},e.children))}(0,X.forwardRef)(function(e,t){let n=e[`aria-labelledby`];[e,t]=X$(e,t,C6);let{dialogProps:r,titleProps:i}=UAe({...e,"aria-labelledby":n},t),a=(0,X.useContext)(w6);!r[`aria-label`]&&!r[`aria-labelledby`]&&e[`aria-labelledby`]&&(r[`aria-labelledby`]=e[`aria-labelledby`]);let o=J$({defaultClassName:`react-aria-Dialog`,className:e.className,style:e.style,children:e.children,values:{close:a?.close||(()=>{})}}),s=iQ(e,{global:!0});return X.createElement(`section`,{...eQ(s,o,r),ref:t,slot:e.slot||void 0},X.createElement(q$,{values:[[w4,{slots:{[K$]:{},title:{...i,level:2}}}],[M3,{slots:{[K$]:{},close:{onPress:()=>a?.close()}}}]]},o.children))});var T6=({placement:e=`bottom-start`,hasChrome:t=!0,hasCloseButton:n=!1,closeLabel:r,offset:i=8,padding:a,popover:o,children:s,defaultVisible:c,visible:l,onVisibleChange:u,...d})=>{let f=a4(e),[p,m]=(0,X.useState)(c??!1),h=(0,X.useCallback)(e=>{m(e),u?.(e)},[u]),g=(0,X.useCallback)(()=>h(!1),[h]);return X.createElement(WAe,{defaultOpen:c,isOpen:l??p,onOpenChange:h,...d},X.createElement(oEe,null,s),X.createElement(lAe,{placement:f,offset:i,style:{outline:`none`}},X.createElement(Z4,{hasChrome:t,hideLabel:r,onHide:n?g:void 0,padding:a},typeof o==`function`?o({onHide:g}):o)))},E6=(0,X.forwardRef)((e,t)=>X.createElement(Z4,{ref:t,...e}));E6.displayName=`Tooltip`,(0,X.lazy)(()=>e(()=>import(`./WithTooltip-65CFNBJE-BLldOu9_.js`),[],import.meta.url).then(e=>({default:e.WithTooltip}))),(0,X.lazy)(()=>e(()=>import(`./WithTooltip-65CFNBJE-BLldOu9_.js`),[],import.meta.url).then(e=>({default:e.WithTooltipPure})));var{deprecate:GAe}=__STORYBOOK_MODULE_CLIENT_LOGGER__;$.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),$.span(),$.div(({theme:e})=>({marginTop:8,textAlign:`center`,"> *":{margin:`0 8px`,fontWeight:e.typography.weight.bold}})),$.div(({theme:e})=>({color:e.color.defaultText,lineHeight:`18px`})),$.div({padding:15,width:280,boxSizing:`border-box`});var{deprecate:KAe}=__STORYBOOK_MODULE_CLIENT_LOGGER__,qAe=ZM(KN(),1),{deprecate:JAe}=__STORYBOOK_MODULE_CLIENT_LOGGER__,YAe=$(({active:e,loading:t,disabled:n,...r})=>X.createElement(`span`,{...r}))(({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}:{}),XAe=$.span({display:`flex`,"& svg":{height:12,width:12,margin:`3px 0`,verticalAlign:`top`}}),ZAe=$.span({flex:1,textAlign:`left`,display:`flex`,flexDirection:`column`,minWidth:0},({isIndented:e})=>e?{marginLeft:24}:{}),QAe=$.span(({theme:e})=>({fontSize:`11px`,lineHeight:`14px`}),({active:e,theme:t})=>e?{color:t.color.secondary}:{},({theme:e,disabled:t})=>t?{color:e.textMutedColor}:{}),$Ae=$.span(({active:e,theme:t})=>e?{color:t.color.secondary}:{},()=>({display:`flex`,maxWidth:14})),eje=$.button(({theme:e})=>({width:`100%`,minWidth:0,border:`none`,borderRadius:e.appBorderRadius,background:`none`,fontSize:e.typography.size.s1,transition:`background 150ms ease-out`,color:e.color.dark,textDecoration:`none`,justifyContent:`space-between`,lineHeight:`18px`,padding:`7px 10px`,display:`flex`,alignItems:`center`,"& > * + *":{paddingLeft:10},"&:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:0}}),({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`}),tje=(0,qAe.default)(100)(({onClick:e,input:t,href:n,LinkWrapper:r})=>({...e&&{as:`button`,role:`button`,onClick:e},...t&&{as:`label`},...n&&{as:`a`,role:`link`,href:n,...r&&{as:r,to:n}}})),D6=(0,X.forwardRef)((e,t)=>{let{loading:n=!1,title:r=X.createElement(`span`,null,`Loading state`),center:i=null,right:a=null,active:o=!1,disabled:s=!1,isIndented:c=!1,href:l=void 0,onClick:u=void 0,icon:d,input:f,LinkWrapper:p=void 0,...m}=e,h={active:o,disabled:s},g=tje(e),_=d||f;return JAe("`ListItem` is deprecated and will be removed in Storybook 11, use `MenuItem` instead."),X.createElement(eje,{"data-deprecated":`ListItem`,ref:t,...m,...h,...g},X.createElement(X.Fragment,null,_&&X.createElement($Ae,{...h},_),r||i?X.createElement(ZAe,{isIndented:c&&!_},r&&X.createElement(YAe,{...h,loading:n},r),i&&X.createElement(QAe,{...h},i)):null,a&&X.createElement(XAe,{...h},a)))});D6.displayName=`ListItem`;var O6=D6,nje=$.div({minWidth:180,overflow:`hidden`,overflowY:`auto`,maxHeight:504},({theme:e})=>({borderRadius:e.appBorderRadius+2}),({theme:e})=>e.base===`dark`?{background:e.background.content}:{}),rje=$.div(({theme:e})=>({padding:4,"& + &":{borderTop:`1px solid ${e.appBorderColor}`}})),ije=({id:e,onClick:t,...n})=>{let{active:r,disabled:i,title:a,href:o}=n,s=(0,X.useCallback)(n=>t?.(n,{id:e,active:r,disabled:i,title:a,href:o}),[t,e,r,i,a,o]);return X.createElement(O6,{id:`list-item-${e}`,...n,...t&&{onClick:s}})},k6=({links:e,LinkWrapper:t,...n})=>{KAe("`TooltipLinkList` is deprecated and will be removed in Storybook 11, use `ActionList` or `MenuItem` and `WithMenu` instead.");let r=Array.isArray(e[0])?e:[e],i=r.some(e=>e.some(e=>`icon`in e&&e.icon||`input`in e&&e.input));return X.createElement(nje,{"data-deprecated":`TooltipLinkList`,...n,className:`sb-list`},r.filter(e=>e.length).map((e,n)=>X.createElement(rje,{key:e.map(e=>e.id).join(`~${n}~`)},e.map(e=>`content`in e?X.createElement(X.Fragment,{key:e.id},e.content):X.createElement(ije,{key:e.id,isIndented:i,LinkWrapper:t,...e})))))},{deprecate:A6}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{deprecate:aje}=__STORYBOOK_MODULE_CLIENT_LOGGER__,oje=$.div(({backgroundColor:e,border:t=!1,innerStyle:n={},scrollable:r,theme:i})=>({color:i.barTextColor,width:`100%`,minHeight:40,flexShrink:0,scrollbarColor:`${i.barTextColor} ${t?e||i.barBg:`transparent`}`,scrollbarWidth:`thin`,overflow:r?`auto`:`hidden`,overflowY:`hidden`,display:`flex`,alignItems:`center`,gap:r?0:6,paddingInline:r?0:6,...t?{boxShadow:`${i.appBorderColor} 0 -1px 0 0 inset`,background:e||i.barBg}:{},...n})),sje=$.div(({innerStyle:e})=>({minHeight:40,display:`flex`,alignItems:`center`,width:`100%`,gap:6,paddingInline:6,...e})),j6=(0,X.forwardRef)(({scrollable:e=!0,children:t,innerStyle:n,...r},i)=>X.createElement(oje,{...r,ref:i,innerStyle:e?void 0:n,scrollable:e},e?X.createElement(sje,{innerStyle:n},t):t));j6.displayName=`Bar`;var M6=$.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}:{});M6.displayName=`Side`;var cje=$.div(({bgColor:e})=>({display:`flex`,justifyContent:`space-between`,position:`relative`,flexWrap:`nowrap`,flexShrink:0,height:40,width:`100%`,backgroundColor:e||``})),lje=$(j6)({paddingInline:0}),N6=({children:e,backgroundColor:t,className:n=``,...r})=>{aje(`FlexBar is deprecated. Use Bar with justifyContent: "space-between" instead.`);let[i,a]=X.Children.toArray(e);return X.createElement(lje,{"data-deprecated":`FlexBar`,backgroundColor:t,className:`sb-bar ${n}`,...r},X.createElement(cje,{bgColor:t},X.createElement(M6,{scrollable:r.scrollable,left:!0},i),a?X.createElement(M6,{right:!0},a):null))};N6.displayName=`FlexBar`;var{deprecate:uje}=__STORYBOOK_MODULE_CLIENT_LOGGER__,dje=e=>typeof e.props.href==`string`,fje=e=>typeof e.props.href!=`string`;function pje({children:e,...t},n){let r={props:t,ref:n};if(dje(r))return X.createElement(`a`,{ref:r.ref,...r.props},e);if(fje(r))return X.createElement(`button`,{ref:r.ref,type:`button`,...r.props},e);throw Error(`invalid props`)}var P6=(0,X.forwardRef)(pje);P6.displayName=`ButtonOrLink`;var mje=$(P6,{shouldForwardProp:SG})({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}}),F6=(0,X.forwardRef)((e,t)=>(uje("The `TabButton` component is deprecated. Use `TabList` instead."),X.createElement(mje,{"data-deprecated":`TabButton`,ref:t,...e})));F6.displayName=`TabButton`;var hje=$.div(({theme:e})=>({height:`100%`,display:`flex`,padding:30,alignItems:`center`,justifyContent:`center`,flexDirection:`column`,gap:15,background:e.background.content})),gje=$.div({display:`flex`,flexDirection:`column`,gap:4,maxWidth:415}),_je=$.div(({theme:e})=>({fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,textAlign:`center`,color:e.color.defaultText})),vje=$.div(({theme:e})=>({fontSize:e.typography.size.s2-1})),yje=$.div(({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s2-1,textAlign:`center`,color:e.textMutedColor})),I6=({title:e,description:t,footer:n})=>X.createElement(hje,null,X.createElement(gje,null,X.createElement(_je,null,e),t&&X.createElement(yje,null,t)),n&&X.createElement(vje,null,n)),{deprecate:bje}=__STORYBOOK_MODULE_CLIENT_LOGGER__,L6=$.div(({active:e})=>e?{display:`block`}:{display:`none`}),xje=e=>(bje("The `childrenToList` tabs helper is deprecated. Use `TabsView` instead."),X.Children.toArray(e).map(({props:{title:e,id:t,color:n,children:r}})=>{let i=Array.isArray(r)?r[0]:r;return{title:e,id:t,...n?{color:n}:{},render:typeof i==`function`?i:({active:e})=>X.createElement(L6,{active:e,role:`tabpanel`},i)}})),{deprecate:Sje}=__STORYBOOK_MODULE_CLIENT_LOGGER__,Cje=$.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`})),wje=$(F6)(({active:e,theme:t,preActive:n})=>`
|
|
1345
1345
|
color: ${n||e?t.barSelectedColor:t.barTextColor};
|
|
1346
1346
|
.addon-collapsible-icon {
|
|
1347
1347
|
color: ${n||e?t.barSelectedColor:t.barTextColor};
|
|
@@ -1400,7 +1400,7 @@ ${t}`);let n=t.match(ske);if(!n)return X.createElement(X.Fragment,null,t);let[,r
|
|
|
1400
1400
|
${F8(.02,e.input.background)} 100%)`:`linear-gradient(to right,
|
|
1401
1401
|
${e.color.green} 0%, ${e.color.green} ${(r-t)/(n-t)*100}%,
|
|
1402
1402
|
${I8(.02,e.input.background)} ${(r-t)/(n-t)*100}%,
|
|
1403
|
-
${I8(.02,e.input.background)} 100%)`,borderRadius:6,boxShadow:`${e.base==`dark`?`hsl(0 0 100 / 0.4)`:`hsl(0 0 0 / 0.44)`} 0 0 0 1px inset`,cursor:i?`not-allowed`:`pointer`,height:6,width:`100%`},o={borderColor:A8(e.color.secondary,.4)},s={width:16,height:16,borderRadius:50,cursor:i?`not-allowed`:`grab`,background:e.input.background,border:`1px solid ${e.base==`dark`?`hsl(0 0 100 / 0.4)`:`hsl(0 0 0 / 0.44)`}`,boxShadow:e.base===`light`?`0 1px 3px 0px ${A8(e.appBorderColor,.2)}`:`unset`,transition:`all 150ms ease-out`},c={background:`${F8(.05,e.input.background)}`,transform:`scale3d(1.1, 1.1, 1.1) translateY(-1px)`,transition:`all 50ms ease-out`},l={background:`${e.input.background}`,transform:`scale3d(1, 1, 1) translateY(0px)`},u={borderColor:e.color.secondary,boxShadow:e.base===`light`?`0 0px 5px 0px ${e.color.secondary}`:`unset`};return{appearance:`none`,backgroundColor:`transparent`,width:`100%`,"&::-webkit-slider-runnable-track":a,"&::-moz-range-track":a,"&::-ms-track":{...a,color:`transparent`},"&::-moz-range-thumb":{...s,"&:hover":c,"&:active":l},"&::-webkit-slider-thumb":{...s,marginTop:`-6px`,appearance:`none`,"&:hover":c,"&:active":l},"&::-ms-thumb":{...s,marginTop:0,"&:hover":c,"&:active":l},"&:focus":{outline:`none`,"&::-webkit-slider-runnable-track":o,"&::-moz-range-track":o,"&::-ms-track":o,"&::-webkit-slider-thumb":u,"&::-moz-range-thumb":u,"&::-ms-thumb":u},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:`0`}}}}),u7=$.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:`nowrap`,fontFeatureSettings:`tnum`,fontVariantNumeric:`tabular-nums`}),wFe=$(u7)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:`right`,flexShrink:0})),TFe=$.div(({readOnly:e})=>({display:`flex`,alignItems:`center`,width:`100%`,opacity:e?.5:1}));function EFe(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var DFe=({name:e,value:t,onChange:n,min:r=0,max:i=100,step:a=1,onBlur:o,onFocus:s,argType:c})=>{let l=e=>{n(FPe(e.target.value))},u=t!==void 0,d=(0,X.useMemo)(()=>EFe(a),[a]),f=!!c?.table?.readonly,p=eK(e);return X.createElement(TFe,{readOnly:f},X.createElement(`label`,{htmlFor:p,className:`sb-sr-only`},e),X.createElement(u7,null,r),X.createElement(CFe,{id:p,type:`range`,disabled:f,onChange:l,name:e,min:r,max:i,step:a,onFocus:s,onBlur:o,value:t??r}),X.createElement(wFe,{numberOFDecimalsPlaces:d,max:i},u?t.toFixed(d):`--`,` / `,i))},OFe=$.label({display:`flex`}),kFe=$.div(({isMaxed:e})=>({marginLeft:`0.75rem`,paddingTop:`0.35rem`,color:e?`red`:void 0})),AFe=({name:e,value:t,onChange:n,onFocus:r,onBlur:i,maxLength:a,argType:o})=>{let s=e=>{n(e.target.value)},c=!!o?.table?.readonly,[l,u]=(0,X.useState)(!1),d=(0,X.useCallback)(()=>{n(``),u(!0)},[u]);if(t===void 0)return X.createElement(c4,{ariaLabel:!1,variant:`outline`,size:`medium`,disabled:c,id:tK(e),onClick:d},`Set string`);let f=typeof t==`string`;return X.createElement(OFe,null,X.createElement(X4.Textarea,{id:eK(e),maxLength:a,onChange:s,disabled:c,size:`flex`,placeholder:`Edit string...`,autoFocus:l,valid:f?void 0:`error`,name:e,value:f?t:``,onFocus:r,onBlur:i}),a&&X.createElement(kFe,{isMaxed:t?.length===a},t?.length??0,` / `,a))},jFe=$(X4.Input)({padding:10});function MFe(e){e.forEach(e=>{e.startsWith(`blob:`)&&URL.revokeObjectURL(e)})}var NFe=({onChange:e,name:t,accept:n=`image/*`,value:r,argType:i})=>{let a=(0,X.useRef)(null),o=i?.control?.readOnly;function s(t){t.target.files&&(e(Array.from(t.target.files).map(e=>URL.createObjectURL(e))),MFe(r||[]))}(0,X.useEffect)(()=>{r==null&&a.current&&(a.current.value=``)},[r,t]);let c=eK(t);return X.createElement(X.Fragment,null,X.createElement(`label`,{htmlFor:c,className:`sb-sr-only`},t),X.createElement(jFe,{ref:a,id:c,type:`file`,name:t,multiple:!0,disabled:o,onChange:s,accept:n,size:`flex`}))},PFe=(0,X.lazy)(()=>e(()=>import(`./Color-6BZIO3FS-B_lndV2A.js`),[],import.meta.url)),FFe={array:l7,object:l7,boolean:DPe,color:e=>X.createElement(X.Suspense,{fallback:X.createElement(`div`,null)},X.createElement(PFe,{...e})),date:NPe,number:LPe,check:G5,"inline-check":G5,radio:G5,"inline-radio":G5,select:G5,"multi-select":G5,range:DFe,text:AFe,file:NFe},d7=()=>X.createElement(X.Fragment,null,`-`),IFe=({row:e,arg:t,updateArgs:n,isHovered:r})=>{let{key:i,control:a}=e,[o,s]=(0,X.useState)(!1),[c,l]=(0,X.useState)({value:t});(0,X.useEffect)(()=>{o||l({value:t})},[o,t]);let u=(0,X.useCallback)(e=>(l({value:e}),n({[i]:e}),e),[n,i]),d=(0,X.useCallback)(()=>s(!1),[]),f=(0,X.useCallback)(()=>s(!0),[]);if(!a||a.disable){let t=a?.disable!==!0&&e?.type?.name!==`function`;return r&&t?X.createElement(AZ,{href:`https://storybook.js.org/docs/essentials/controls?ref=ui`,target:`_blank`,withArrow:!0},`Setup controls`):X.createElement(d7,null)}let p={name:i,argType:e,value:c.value,onChange:u,onBlur:d,onFocus:f},m=FFe[a.type]||d7;return X.createElement(m,{...p,...a,controlType:a.type})},LFe=$.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:tZ({theme:e}),div:{span:{fontWeight:`bold`}},"& code":{margin:0,display:`inline-block`,fontSize:e.typography.size.s1}}})),RFe=({tags:e})=>{let t=(e.params||[]).filter(e=>e.description),n=t.length!==0,r=e.deprecated!=null,i=e.returns!=null&&e.returns.description!=null;return!n&&!i&&!r?null:X.createElement(X.Fragment,null,X.createElement(LFe,null,X.createElement(`tbody`,null,r&&X.createElement(`tr`,{key:`deprecated`},X.createElement(`td`,{colSpan:2},X.createElement(`strong`,null,`Deprecated`),`: `,e.deprecated?.toString())),n&&t.map(e=>X.createElement(`tr`,{key:e.name},X.createElement(`td`,null,X.createElement(`code`,null,e.name)),X.createElement(`td`,null,e.description))),i&&X.createElement(`tr`,{key:`returns`},X.createElement(`td`,null,X.createElement(`code`,null,`Returns`)),X.createElement(`td`,null,e.returns?.description)))))};function zFe(e){return[...new Set(e)]}var f7=8,p7=$.div(({isExpanded:e})=>({display:`flex`,flexDirection:e?`column`:`row`,flexWrap:`wrap`,alignItems:`flex-start`,marginBottom:`-4px`,minWidth:100})),BFe=$.details({display:`flex`,flexDirection:`column`,summary:{order:2},"summary::-webkit-details-marker":{display:`none`},"summary::marker":{content:`none`}}),VFe=$.div({display:`flex`,flexDirection:`column`,flexWrap:`wrap`,alignItems:`flex-start`}),HFe=$.span(tZ,({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}})),UFe=$.summary(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,cursor:`pointer`,lineHeight:`normal`,margin:`0 0 4px`,padding:`1px 6px`,background:`none`,border:`none`})),WFe=$.button(tZ,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:`nowrap`,display:`flex`,alignItems:`center`,cursor:`pointer`,"&:hover":{border:e.base===`light`?`1px solid hsl(0 0 0 / 0.15)`:`1px solid hsl(0 0 100 / 0.15)`},"&:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:`2px`}})),GFe=$.div(({theme:e})=>({minWidth:200,maxWidth:800,paddingRight:16,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:`content-box`,"& code":{padding:`0 !important`}})),KFe=$(T_e)({marginLeft:4}),qFe=$(wq)({marginLeft:4}),JFe=()=>X.createElement(`span`,null,`-`),m7=({text:e,simple:t})=>X.createElement(HFe,{simple:t},e),YFe=e=>e?zFe(e.split(`|`).map(e=>e.trim())):[e],h7=e=>e.slice(0,f7).map(e=>X.createElement(m7,{key:e,text:e===``?`""`:e})),XFe=e=>e.slice(f7).map(e=>X.createElement(m7,{key:e,text:e===``?`""`:e})),ZFe=({value:e,initialExpandedArgs:t})=>{let{summary:n,detail:r}=e,[i,a]=(0,X.useState)(!1),[o,s]=(0,X.useState)(t||!1);if(n==null)return null;let c=typeof n.toString==`function`?n.toString():n;if(r==null){if(/[(){}[\]<>]/.test(c))return X.createElement(m7,{text:c});let e=YFe(c),t=e.length;return t>f7?X.createElement(p7,{isExpanded:o},h7(e),X.createElement(BFe,{open:o,onToggle:e=>s(e.currentTarget.open)},X.createElement(VFe,null,XFe(e)),X.createElement(UFe,{role:`button`},o?`Show less...`:`Show ${t-f7} more...`))):X.createElement(p7,null,h7(e))}return X.createElement(T6,{placement:`bottom`,visible:i,onVisibleChange:e=>{a(e)},hasCloseButton:!0,popover:X.createElement(GFe,null,X.createElement(lZ,{language:`jsx`,format:!1},r))},X.createElement(WFe,{className:`sbdocs-expandable`},X.createElement(`span`,null,c),i?X.createElement(KFe,null):X.createElement(qFe,null)))},g7=({value:e,initialExpandedArgs:t})=>e==null?X.createElement(JFe,null):X.createElement(ZFe,{value:e,initialExpandedArgs:t}),QFe=$.span({fontWeight:`bold`}),$Fe=$.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:`help`})),eIe=$.div(({theme:e})=>({"&&":{p:{margin:`0 0 10px 0`},a:{color:e.color.secondary}},code:{...tZ({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:`inline-block`},"& pre > code":{whiteSpace:`pre-wrap`}})),tIe=$.div(({theme:e,hasDescription:t})=>({color:e.base===`light`?z8(.1,e.color.defaultText):z8(.2,e.color.defaultText),marginTop:t?4:0})),nIe=$.div(({theme:e,hasDescription:t})=>({color:e.base===`light`?z8(.1,e.color.defaultText):z8(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),rIe=$.td(({expandable:e})=>({paddingLeft:e?`40px !important`:`20px !important`})),iIe=e=>e&&{summary:typeof e==`string`?e:e.name},_7=e=>{let[t,n]=(0,X.useState)(!1),{row:r,updateArgs:i,compact:a,expandable:o,initialExpandedArgs:s}=e,{name:c,description:l}=r,u=r.table||{},d=u.type||iIe(r.type),f=u.defaultValue||r.defaultValue,p=r.type?.required,m=l!=null&&l!==``;return X.createElement(`tr`,{onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1)},X.createElement(rIe,{expandable:o??!1},X.createElement(QFe,null,c),p?X.createElement($Fe,{title:`Required`},`*`):null),a?null:X.createElement(`td`,null,m&&X.createElement(eIe,null,X.createElement(P5,null,l)),u.jsDocTags==null?X.createElement(tIe,{hasDescription:m},X.createElement(g7,{value:d,initialExpandedArgs:s})):X.createElement(X.Fragment,null,X.createElement(nIe,{hasDescription:m},X.createElement(g7,{value:d,initialExpandedArgs:s})),X.createElement(RFe,{tags:u.jsDocTags}))),a?null:X.createElement(`td`,null,X.createElement(g7,{value:f,initialExpandedArgs:s})),i?X.createElement(`td`,null,X.createElement(IFe,{...e,isHovered:t})):null)},aIe=$.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})),oIe=$.div(({theme:e})=>({display:`flex`,fontSize:e.typography.size.s2-1,gap:25})),sIe=({inAddonPanel:e})=>{let[t,n]=(0,X.useState)(!0);return(0,X.useEffect)(()=>{let e=setTimeout(()=>{n(!1)},100);return()=>clearTimeout(e)},[]),t?null:X.createElement(aIe,{inAddonPanel:e},X.createElement(I6,{title:e?`Interactive story playground`:`Args table with interactive controls couldn't be auto-generated`,description:X.createElement(X.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:X.createElement(oIe,null,e&&X.createElement(X.Fragment,null,X.createElement(AZ,{href:`https://storybook.js.org/docs/essentials/controls?ref=ui`,target:`_blank`,withArrow:!0},X.createElement(xq,null),` Read docs`)),!e&&X.createElement(AZ,{href:`https://storybook.js.org/docs/essentials/controls?ref=ui`,target:`_blank`,withArrow:!0},X.createElement(xq,null),` Learn how to set that up`))}))},cIe=$(w_e)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base===`light`?z8(.25,e.color.defaultText):z8(.3,e.color.defaultText),border:`none`,display:`inline-block`})),lIe=$(Cq)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base===`light`?z8(.25,e.color.defaultText):z8(.3,e.color.defaultText),border:`none`,display:`inline-block`})),uIe=$.span(({theme:e})=>({display:`flex`,lineHeight:`20px`,alignItems:`center`})),dIe=$.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`?z8(.4,e.color.defaultText):z8(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),fIe=$.td(({theme:e})=>({position:`relative`,fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),pIe=$.td({position:`relative`}),mIe=$.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${I8(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:`row-resize`}})),v7=$.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`}),y7=({level:e=`section`,label:t,children:n,initialExpanded:r=!0,colSpan:i=3})=>{let[a,o]=(0,X.useState)(r),s=e===`subsection`?fIe:dIe,c=n?.length||0,l=e===`subsection`?`${c} item${c===1?``:`s`}`:``,u=`${a?`Hide`:`Show`} ${e===`subsection`?c:t} item${c===1?``:`s`}`;return X.createElement(X.Fragment,null,X.createElement(mIe,{title:u},X.createElement(s,{colSpan:1},X.createElement(v7,{onClick:e=>o(!a),tabIndex:0},u),X.createElement(uIe,null,a?X.createElement(cIe,null):X.createElement(lIe,null),t)),X.createElement(pIe,{colSpan:i-1},X.createElement(v7,{onClick:e=>o(!a),tabIndex:-1,style:{outline:`none`}},u),a?null:l)),a?n:null)},hIe=$.div(({theme:e})=>({width:`100%`,borderSpacing:0,color:e.color.defaultText})),b7=$.div(({theme:e})=>({display:`flex`,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),x7=$.div(({position:e,theme:t})=>{let 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}}}),S7=$.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})),gIe=()=>X.createElement(hIe,null,X.createElement(b7,null,X.createElement(x7,{position:`first`},X.createElement(S7,{width:`60%`})),X.createElement(x7,{position:`second`},X.createElement(S7,{width:`30%`})),X.createElement(x7,{position:`third`},X.createElement(S7,{width:`60%`})),X.createElement(x7,{position:`last`},X.createElement(S7,{width:`60%`}))),X.createElement(b7,null,X.createElement(x7,{position:`first`},X.createElement(S7,{width:`60%`})),X.createElement(x7,{position:`second`},X.createElement(S7,{width:`80%`}),X.createElement(S7,{width:`30%`})),X.createElement(x7,{position:`third`},X.createElement(S7,{width:`60%`})),X.createElement(x7,{position:`last`},X.createElement(S7,{width:`60%`}))),X.createElement(b7,null,X.createElement(x7,{position:`first`},X.createElement(S7,{width:`60%`})),X.createElement(x7,{position:`second`},X.createElement(S7,{width:`80%`}),X.createElement(S7,{width:`30%`})),X.createElement(x7,{position:`third`},X.createElement(S7,{width:`60%`})),X.createElement(x7,{position:`last`},X.createElement(S7,{width:`60%`}))),X.createElement(b7,null,X.createElement(x7,{position:`first`},X.createElement(S7,{width:`60%`})),X.createElement(x7,{position:`second`},X.createElement(S7,{width:`80%`}),X.createElement(S7,{width:`30%`})),X.createElement(x7,{position:`third`},X.createElement(S7,{width:`60%`})),X.createElement(x7,{position:`last`},X.createElement(S7,{width:`60%`})))),_Ie=$.table(({theme:e,compact:t,inAddonPanel:n,inTabPanel:r})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:`none`,verticalAlign:`top`,textOverflow:`ellipsis`},fontSize:e.typography.size.s2-1,lineHeight:`19px`,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.textMutedColor,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}},marginInline:n||r?0:1,paddingInline:r?3:0,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}}}}})),vIe=$.div({position:`relative`}),yIe=$.div({position:`absolute`,right:22,top:10}),bIe=$(c4)({margin:`-4px -12px -4px 0`}),xIe={alpha:(e,t)=>(e.name??``).localeCompare(t.name??``),requiredFirst:(e,t)=>!!t.type?.required-+!!e.type?.required||(e.name??``).localeCompare(t.name??``),none:null},SIe=(e,t)=>{let n={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return n;Object.entries(e).forEach(([e,t])=>{let{category:r,subcategory:i}=t?.table||{};if(r){let a=n.sections[r]||{ungrouped:[],subsections:{}};if(!i)a.ungrouped.push({key:e,...t});else{let n=a.subsections[i]||[];n.push({key:e,...t}),a.subsections[i]=n}n.sections[r]=a}else if(i){let r=n.ungroupedSubsections[i]||[];r.push({key:e,...t}),n.ungroupedSubsections[i]=r}else n.ungrouped.push({key:e,...t})});let r=xIe[t],i=e=>r?Object.keys(e).reduce((t,n)=>({...t,[n]:e[n].sort(r)}),{}):e;return{ungrouped:r?n.ungrouped.sort(r):n.ungrouped,ungroupedSubsections:i(n.ungroupedSubsections),sections:Object.keys(n.sections).reduce((e,t)=>({...e,[t]:{ungrouped:r?n.sections[t].ungrouped.sort(r):n.sections[t].ungrouped,subsections:i(n.sections[t].subsections)}}),{})}},CIe=(e,t,n)=>{try{return Xhe(e,t,n)}catch(e){return WMe.warn(e.message),!1}},C7=e=>{let{updateArgs:t,resetArgs:n,compact:r,inAddonPanel:i,inTabPanel:a,initialExpandedArgs:o,sort:s=`none`,isLoading:c}=e;if(`error`in e){let{error:t}=e;return X.createElement(B8,null,t,`\xA0`,X.createElement(AZ,{href:`http://storybook.js.org/docs/?ref=ui`,target:`_blank`,withArrow:!0},X.createElement(xq,null),` Read the docs`))}if(c)return X.createElement(gIe,null);let{rows:l,args:u,globals:d}=`rows`in e?e:{rows:void 0,args:void 0,globals:void 0},f=SIe(yNe(l||{},e=>!e?.table?.disable&&CIe(e,u||{},d||{})),s),p=f.ungrouped.length===0,m=Object.entries(f.sections).length===0,h=Object.entries(f.ungroupedSubsections).length===0;if(p&&m&&h)return X.createElement(sIe,{inAddonPanel:i});let g=1;t&&(g+=1),r||(g+=2);let _=Object.keys(f.sections).length>0,v={updateArgs:t,compact:r,inAddonPanel:i,initialExpandedArgs:o};return X.createElement(iZ,null,X.createElement(vIe,null,t&&!c&&n&&X.createElement(yIe,null,X.createElement(bIe,{variant:`ghost`,padding:`small`,onClick:()=>n(),ariaLabel:`Reset controls`},X.createElement(O_e,null))),X.createElement(_Ie,{compact:r,inAddonPanel:i,inTabPanel:a,className:`docblock-argstable sb-unstyled`},X.createElement(`thead`,{className:`docblock-argstable-head`},X.createElement(`tr`,null,X.createElement(`th`,null,X.createElement(`span`,null,`Name`)),r?null:X.createElement(`th`,null,X.createElement(`span`,null,`Description`)),r?null:X.createElement(`th`,null,X.createElement(`span`,null,`Default`)),t?X.createElement(`th`,null,X.createElement(`span`,null,`Control`)):null)),X.createElement(`tbody`,{className:`docblock-argstable-body`},f.ungrouped.map(e=>X.createElement(_7,{key:e.key,row:e,arg:u&&u[e.key],...v})),Object.entries(f.ungroupedSubsections).map(([e,t])=>X.createElement(y7,{key:e,label:e,level:`subsection`,colSpan:g},t.map(e=>X.createElement(_7,{key:e.key,row:e,arg:u&&u[e.key],expandable:_,...v})))),Object.entries(f.sections).map(([e,t])=>X.createElement(y7,{key:e,label:e,level:`section`,colSpan:g},t.ungrouped.map(e=>X.createElement(_7,{key:e.key,row:e,arg:u&&u[e.key],...v})),Object.entries(t.subsections).map(([e,t])=>X.createElement(y7,{key:e,label:e,level:`subsection`,colSpan:g},t.map(e=>X.createElement(_7,{key:e.key,row:e,arg:u&&u[e.key],expandable:_,...v}))))))))))},w7=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,T7=600,wIe=$.h1(nZ,({theme:e})=>({color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:`32px`,[`@media (min-width: ${T7}px)`]:{fontSize:e.typography.size.l1,lineHeight:`36px`,marginBottom:`16px`}})),TIe=$.h2(nZ,({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:`20px`,borderBottom:`none`,marginBottom:15,[`@media (min-width: ${T7}px)`]:{fontSize:e.typography.size.m1,lineHeight:`28px`,marginBottom:24},color:z8(.25,e.color.defaultText)})),EIe=$.div(({theme:e})=>{let 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`}},r={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`?z8(.1,e.color.defaultText):z8(.3,e.color.defaultText),backgroundColor:e.base===`light`?e.color.lighter:e.color.border};return{maxWidth:1e3,width:`100%`,minWidth:0,[w7(`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}},[w7(`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}},[w7(`div`)]:t,[w7(`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}},[w7(`h1`)]:{...t,...n,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[w7(`h2`)]:{...t,...n,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[w7(`h3`)]:{...t,...n,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[w7(`h4`)]:{...t,...n,fontSize:`${e.typography.size.s3}px`},[w7(`h5`)]:{...t,...n,fontSize:`${e.typography.size.s2}px`},[w7(`h6`)]:{...t,...n,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[w7(`hr`)]:{border:`0 none`,borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[w7(`img`)]:{maxWidth:`100%`},[w7(`li`)]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:`24px`,"& + li":{marginTop:`.25em`},"& ul, & ol":{marginTop:`.25em`,marginBottom:0},"& code":r},[w7(`ol`)]:{...t,margin:`16px 0`,paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[w7(`p`)]:{...t,margin:`16px 0`,fontSize:e.typography.size.s2,lineHeight:`24px`,color:e.color.defaultText,"& code":r},[w7(`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`}},[w7(`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`}}},[w7(`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}},[w7(`ul`)]:{...t,margin:`16px 0`,paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:`disc`}}}),DIe=$.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: ${T7}px)`]:{}})),OIe=({children:e,toc:t})=>X.createElement(DIe,{className:`sbdocs sbdocs-wrapper`},t,X.createElement(EIe,{className:`sbdocs sbdocs-content`},e));globalThis&&globalThis.__DOCS_CONTEXT__===void 0&&(globalThis.__DOCS_CONTEXT__=(0,X.createContext)(null),globalThis.__DOCS_CONTEXT__.displayName=`DocsContext`);var E7=globalThis?globalThis.__DOCS_CONTEXT__:(0,X.createContext)(null);function kIe(e,t){let n=AIe([e],t);return n&&n[0]}function AIe(e,t){let[n,r]=(0,X.useState)({});return(0,X.useEffect)(()=>{Promise.all(e.map(async e=>{let n=await t.loadStory(e);r(t=>t[e]===n?t:{...t,[e]:n})}))}),e.map(e=>{if(n[e])return n[e];try{return t.storyById(e)}catch{return}})}var D7=(e,t)=>{let{of:n,meta:r}=e;if(`of`in e&&n===void 0)throw Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");return r&&t.referenceMeta(r,!1),t.resolveOf(n||`story`,[`story`]).story.id},jIe=(e,t,n)=>{let{parameters:r={}}=t||{},{docs:i={}}=r,a=i.story||{};return i.disable?null:e.inline??a.inline??!1?{story:t,inline:!0,height:e.height??a.height,autoplay:e.autoplay??a.autoplay??!1,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:n.renderStoryToElement}:{story:t,inline:!1,height:e.height??a.height??a.iframeHeight??`100px`,primary:!!e.__primary}},MIe=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=(0,X.useContext)(E7),n=kIe(D7(e,t),t);if(!n)return X.createElement(M7,null);let r=jIe(e,n,t);return r?X.createElement(RIe,{...r}):null},O7=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}`}),k7=(e,t={})=>{let[n,r]=(globalThis.PREVIEW_URL||`iframe.html`).split(`?`),i=new URLSearchParams(r||``);return Object.entries(t).forEach(([e,t])=>{i.set(e,t)}),i.set(`id`,e),`${n}?${i.toString()}`},{window:NIe}=globalThis,PIe=class extends X.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=NIe.document.getElementById(e)}shouldComponentUpdate(e){let{scale:t}=e;return t!==this.props.scale&&this.setIframeBodyStyle({width:`${t*100}%`,height:`${t*100}%`,transform:`scale(${1/t})`,transformOrigin:`top left`}),!1}setIframeBodyStyle(e){return Object.assign(this.iframe.contentDocument.body.style,e)}render(){let{id:e,title:t,src:n,allowFullScreen:r,scale:i,...a}=this.props;return X.createElement(`iframe`,{id:e,title:t,src:n,...r?{allow:`fullscreen`}:{},loading:`lazy`,...a})}},A7=(0,X.createContext)({scale:1}),j7=({story:e,primary:t})=>`story--${e.id}${t?`--primary`:``}`,FIe=e=>{let t=(0,X.useRef)(),[n,r]=(0,X.useState)(!0),[i,a]=(0,X.useState)(),{story:o,height:s,autoplay:c,forceInitialArgs:l,renderStoryToElement:u}=e;return(0,X.useEffect)(()=>{if(!(o&&t.current))return()=>{};let e=t.current,n=u(o,e,{showMain:()=>{},showError:({title:e,description:t})=>a(Error(`${e} - ${t}`)),showException:e=>a(e)},{autoplay:c,forceInitialArgs:l});return r(!1),()=>{Promise.resolve().then(()=>n())}},[c,u,o]),i?X.createElement(`pre`,null,X.createElement(R4,{error:i})):X.createElement(X.Fragment,null,s?X.createElement(`style`,null,`#${j7(e)} { min-height: ${s}; transform: translateZ(0); overflow: auto }`):null,n&&X.createElement(M7,null),X.createElement(`div`,{ref:t,id:`${j7(e)}-inner`,"data-name":o.name}))},IIe=({story:e,height:t=`500px`})=>X.createElement(`div`,{style:{width:`100%`,height:t}},X.createElement(A7.Consumer,null,({scale:t})=>X.createElement(PIe,{key:`iframe`,id:`iframe--${e.id}`,title:e.name,src:k7(e.id,{viewMode:`story`}),allowFullScreen:!0,scale:t,style:{width:`100%`,height:`100%`,border:`0 none`}}))),LIe=$.strong(({theme:e})=>({color:e.color.orange})),RIe=e=>{let{inline:t,story:n}=e;return t&&!e.autoplay&&n.usesMount?X.createElement(LIe,null,`This story mounts inside of play. Set`,` `,X.createElement(`a`,{href:`https://storybook.js.org/docs/api/doc-blocks/doc-block-story?ref=ui#autoplay`},`autoplay`),` `,`to true to view this story.`):X.createElement(`div`,{id:j7(e),className:`sb-story sb-unstyled`,"data-story-block":`true`},t?X.createElement(FIe,{...e}):X.createElement(IIe,{...e}))},M7=()=>X.createElement(u8,null),zIe=$(U6)({position:`absolute`,left:0,right:0,top:0,transition:`transform .2s linear`,display:`flex`,alignItems:`center`}),N7=$.div({display:`flex`,alignItems:`center`,gap:4}),P7=$.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`})),BIe=({isLoading:e,storyId:t,zoom:n,resetZoom:r,...i})=>X.createElement(zIe,{innerStyle:{gap:4,paddingInline:7,justifyContent:`space-between`},...i},X.createElement(N7,{key:`left`},e?[1,2,3].map(e=>X.createElement(P7,{key:e})):X.createElement(X.Fragment,null,X.createElement(c4,{padding:`small`,variant:`ghost`,key:`zoomin`,onClick:e=>{e.preventDefault(),n(.8)},ariaLabel:`Zoom in`},X.createElement(p_e,null)),X.createElement(c4,{padding:`small`,variant:`ghost`,key:`zoomout`,onClick:e=>{e.preventDefault(),n(1.25)},ariaLabel:`Zoom out`},X.createElement(m_e,null)),X.createElement(c4,{padding:`small`,variant:`ghost`,key:`zoomreset`,onClick:e=>{e.preventDefault(),r()},ariaLabel:`Reset zoom`},X.createElement(h_e,null)))),e?X.createElement(N7,{key:`right`},X.createElement(P7,null)):t&&X.createElement(N7,{key:`right`},X.createElement(c4,{asChild:!0,padding:`small`,variant:`ghost`,key:`opener`,ariaLabel:`Open canvas in new tab`},X.createElement(`a`,{href:k7(t),target:`_blank`,rel:`noopener noreferrer`},X.createElement(C_e,null))))),VIe=$.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`?`100%`:`calc(100% - 20px)`,display:`block`}:{maxWidth:n===`fullscreen`?`100%`:`calc(100% - 20px)`,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)`}}:{}),F7=$(H8)(({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)`:F8(.05,e.background.content),color:e.color.lightest,button:{background:e.base===`light`?`rgba(0, 0, 0, 0.85)`:F8(.05,e.background.content)}})),HIe=$.div(({theme:e,withSource:t,isExpanded:n})=>({position:`relative`,overflow:`hidden`,margin:`25px 0 40px`,...O7(e),borderBottomLeftRadius:t&&n&&0,borderBottomRightRadius:t&&n&&0,borderBottomWidth:n&&0,"h3 + &":{marginTop:`16px`}}),({withToolbar:e})=>e&&{paddingTop:40}),UIe=(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)}};case t:return{source:X.createElement(F7,{...e,dark:!0}),actionItem:{title:`Hide code`,className:`docblock-code-toggle docblock-code-toggle--expanded`,onClick:()=>n(!1)}};default:return{source:X.createElement(F7,{...e,dark:!0}),actionItem:{title:`Show code`,className:`docblock-code-toggle`,onClick:()=>n(!0)}}}};function WIe(e){if(X.Children.count(e)===1){let t=e;if(t.props)return t.props}return null}var GIe=$(BIe)({position:`absolute`,top:0,left:0,right:0,height:40}),KIe=$.div({overflow:`hidden`,position:`relative`}),I7=({isLoading:t,isColumn:n,columns:r,children:i,withSource:a,withToolbar:o=!1,isExpanded:s=!1,additionalActions:c,className:l,layout:u=`padded`,inline:d=!1,...f})=>{let[p,m]=(0,X.useState)(s),{source:h,actionItem:g}=UIe(a,p,m),[_,v]=(0,X.useState)(1),y=[l,`sbdocs`,`sbdocs-preview`,`sb-unstyled`],b=a?[g]:[],[x,S]=(0,X.useState)(c?[...c]:[]),C=[...b,...x],{window:w}=globalThis,T=(0,X.useContext)(E7),E=(0,X.useCallback)(async t=>{let{createCopyToClipboardFunction:n}=await e(async()=>{let{createCopyToClipboardFunction:e}=await Promise.resolve().then(()=>vwe);return{createCopyToClipboardFunction:e}},void 0,import.meta.url);n()},[]),D=e=>{let t=w.getSelection();t&&t.type===`Range`||(e.preventDefault(),x.filter(e=>e.title===`Copied`).length===0&&E(h?.props.code??``).then(()=>{S([...x,{title:`Copied`,onClick:()=>{}}]),w.setTimeout(()=>S(x.filter(e=>e.title!==`Copied`)),1500)}))},O=WIe(i);return X.createElement(HIe,{withSource:a,withToolbar:o,...f,className:y.join(` `)},o&&X.createElement(GIe,{isLoading:t,border:!0,zoom:e=>v(_*e),resetZoom:()=>v(1),storyId:!t&&O?D7(O,T):void 0}),X.createElement(A7.Provider,{value:{scale:_}},X.createElement(KIe,{className:`docs-story`,onCopyCapture:a&&D},X.createElement(VIe,{isColumn:n||!Array.isArray(i),columns:r,layout:u,inline:d},X.createElement(I4.Element,{centered:u===`centered`,scale:d?_:1},Array.isArray(i)?i.map((e,t)=>X.createElement(`div`,{key:t},e)):X.createElement(`div`,null,i))),X.createElement(fK,{actionItems:C}))),a&&p&&h)};$(I7)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));var qIe=$(i8)({height:`fit-content`}),L7=({tabs:e,...t})=>{let n=Object.entries(e);if(n.length===1)return X.createElement(C7,{...n[0][1],...t});let r=n.map(([e,n],r)=>({id:`prop_table_div_${e}`,title:e,children:()=>{let i=r===0?t:{sort:t.sort};return X.createElement(C7,{inTabPanel:!0,key:`prop_table_${e}`,...n,...i})}}));return X.createElement(qIe,{tabs:r})};$.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base===`light`?z8(.4,e.color.defaultText):z8(.6,e.color.defaultText)})),$.div({overflow:`hidden`,whiteSpace:`nowrap`,textOverflow:`ellipsis`}),$.div({display:`flex`,flexDirection:`row`,alignItems:`baseline`,"&:not(:last-child)":{marginBottom:`1rem`}}),$.div(nZ,({theme:e})=>({...O7(e),margin:`25px 0 40px`,padding:`30px 20px`})),$.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText})),$.div(({theme:e})=>({color:z8(.3,e.color.defaultText)})),$.div({flex:`0 0 30%`,lineHeight:`20px`,marginTop:5}),$.div(({theme:e})=>({flex:1,textAlign:`center`,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:`hidden`,color:z8(.3,e.color.defaultText),"> div":{display:`inline-block`,overflow:`hidden`,maxWidth:`100%`,textOverflow:`ellipsis`},span:{display:`block`,marginTop:2}})),$.div({display:`flex`,flexDirection:`row`}),$.div(({background:e})=>({position:`relative`,flex:1,"&::before":{position:`absolute`,top:0,left:0,width:`100%`,height:`100%`,background:e,content:`""`}})),$.div(({theme:e})=>({...O7(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`})),$.div({display:`flex`,flexDirection:`column`,flex:1,position:`relative`,marginBottom:30}),$.div({flex:1,display:`flex`,flexDirection:`row`}),$.div({display:`flex`,alignItems:`flex-start`}),$.div({flex:`0 0 30%`}),$.div({flex:1}),$.div(({theme:e})=>({display:`flex`,flexDirection:`row`,alignItems:`center`,paddingBottom:20,fontWeight:e.typography.weight.bold,color:z8(.3,e.color.defaultText)})),$.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:`20px`,display:`flex`,flexDirection:`column`})),$.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`})),$.div(({theme:e})=>({...O7(e),overflow:`hidden`,height:40,width:40,display:`flex`,alignItems:`center`,justifyContent:`center`,flex:`none`,"> img, > svg":{width:20,height:20}})),$.div({display:`inline-flex`,flexDirection:`row`,alignItems:`center`,width:`100%`}),$.div({display:`grid`,gridTemplateColumns:`repeat(auto-fill, minmax(140px, 1fr))`,gridGap:`8px 16px`,gridAutoFlow:`row dense`,gridAutoRows:50});var{NAVIGATE_URL:JIe}=__STORYBOOK_MODULE_CORE_EVENTS__;function YIe(e){let t=[].forEach,n=[].some,r=typeof window<`u`&&document.body,i,a=!0,o=0;function s(e,t){let n=t.appendChild(l(e));if(e.children.length){let t=u(e.isCollapsed);e.children.forEach(e=>{s(e,t)}),n.appendChild(t)}}function c(e,t){let n=u(!1);if(t.forEach(e=>{s(e,n)}),i=e||i,i!==null)return i.firstChild&&i.removeChild(i.firstChild),t.length===0?i:i.appendChild(n)}function l(n){let r=document.createElement(`li`),i=document.createElement(`a`);return e.listItemClass&&r.setAttribute(`class`,e.listItemClass),e.onClick&&(i.onclick=e.onClick),e.includeTitleTags&&i.setAttribute(`title`,n.textContent),e.includeHtml&&n.childNodes.length?t.call(n.childNodes,e=>{i.appendChild(e.cloneNode(!0))}):i.textContent=n.textContent,i.setAttribute(`href`,`${e.basePath}#${n.id}`),i.setAttribute(`class`,`${e.linkClass+` `}node-name--${n.nodeName} ${e.extraLinkClasses}`),r.appendChild(i),r}function u(t){let n=e.orderedList?`ol`:`ul`,r=document.createElement(n),i=e.listClass+` `+e.extraListClasses;return t&&(i=i+` `+e.collapsibleClass,i=i+` `+e.isCollapsedClass),r.setAttribute(`class`,i),r}function d(){let t=S(),n=document.querySelector(e.positionFixedSelector);e.fixedSidebarOffset===`auto`&&(e.fixedSidebarOffset=i.offsetTop),t>e.fixedSidebarOffset?n.className.indexOf(e.positionFixedClass)===-1&&(n.className+=` `+e.positionFixedClass):n.className=n.className.replace(` `+e.positionFixedClass,``)}function f(t){let n=0;return t!==null&&(n=t.offsetTop,e.hasInnerContainers&&(n+=f(t.offsetParent))),n}function p(e,t){return e&&e.className!==t&&(e.className=t),e}function m(n,r){e.positionFixedSelector&&d();let s=n,c=r?.target?.getAttribute?r?.target?.getAttribute(`href`):null,l=c&&c.charAt(0)===`#`?y(c.replace(`#`,``)):!1,u=a||l;if(r&&o<5&&o++,u&&i&&s.length>0){let n=C(s),r=i.querySelector(`.${e.activeLinkClass}`),a=n.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,`\\$1`),u=window.location.hash.replace(`#`,``),d=a,f=b();c&&l?d=c.replace(`#`,``):u&&u!==a&&f&&(y(a)||o<=2)&&(d=u);let m=i.querySelector(`.${e.linkClass}[href="${e.basePath}#${d}"]`);if(r===m)return;let g=i.querySelectorAll(`.${e.linkClass}`);t.call(g,t=>{p(t,t.className.replace(` `+e.activeLinkClass,``))});let _=i.querySelectorAll(`.${e.listItemClass}`);t.call(_,t=>{p(t,t.className.replace(` `+e.activeListItemClass,``))}),m&&m.className.indexOf(e.activeLinkClass)===-1&&(m.className+=` `+e.activeLinkClass);let v=m?.parentNode;v&&v.className.indexOf(e.activeListItemClass)===-1&&(v.className+=` `+e.activeListItemClass);let x=i.querySelectorAll(`.${e.listClass}.${e.collapsibleClass}`);t.call(x,t=>{t.className.indexOf(e.isCollapsedClass)===-1&&(t.className+=` `+e.isCollapsedClass)}),m?.nextSibling&&m.nextSibling.className.indexOf(e.isCollapsedClass)!==-1&&p(m.nextSibling,m.nextSibling.className.replace(` `+e.isCollapsedClass,``)),h(m?.parentNode.parentNode)}}function h(t){return t&&t.className.indexOf(e.collapsibleClass)!==-1&&t.className.indexOf(e.isCollapsedClass)!==-1?(p(t,t.className.replace(` `+e.isCollapsedClass,``)),h(t.parentNode.parentNode)):t}function g(t){let n=t.target||t.srcElement;typeof n.className!=`string`||n.className.indexOf(e.linkClass)===-1||(a=!1)}function _(){a=!0}function v(){return a}function y(t){let n=x();return(document?.getElementById(t)).offsetTop>n.offsetHeight-n.clientHeight*1.4-e.bottomModeThreshold}function b(){let t=x(),n=t.scrollHeight>t.clientHeight,r=S()+t.clientHeight>t.offsetHeight-e.bottomModeThreshold;return n&&r}function x(){let t;return t=e.scrollContainer&&document.querySelector(e.scrollContainer)?document.querySelector(e.scrollContainer):document.documentElement||r,t}function S(){return x()?.scrollTop||0}function C(t,r=S()){let i;return n.call(t,(n,a)=>{if(f(n)>r+e.headingsOffset+10)return i=t[a===0?a:a-1],!0;if(a===t.length-1)return i=t[t.length-1],!0}),i}function w(e){let t=S(),n=C(e,t),r=b();if((!n||t<5)&&!r)window.location.hash===`#`||window.location.hash===``||window.history.pushState(null,null,`#`);else if(n&&!r){let e=`#${n.id}`;window.location.hash!==e&&window.history.pushState(null,null,e)}}return{enableTocAnimation:_,disableTocAnimation:g,render:c,updateToc:m,getCurrentlyHighlighting:v,getTopHeader:C,getScrollTop:S,updateUrlHashForHeader:w}}var XIe={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){},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){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:``,disableTocScrollSync:!1,tocScrollingWrapper:null,tocScrollOffset:30,bottomModeThreshold:30};function ZIe(e){let t=[].reduce;function n(e){return e[e.length-1]}function r(e){return+e.nodeName.toUpperCase().replace(`H`,``)}function i(e){try{return e instanceof window.HTMLElement||e instanceof window.parent.HTMLElement}catch{return e instanceof window.HTMLElement}}function a(t){if(!i(t))return t;if(e.ignoreHiddenElements&&(!t.offsetHeight||!t.offsetParent))return null;let n=t.getAttribute(`data-heading-label`)||(e.headingLabelCallback?String(e.headingLabelCallback(t.innerText)):(t.innerText||t.textContent).trim()),a={id:t.id,children:[],nodeName:t.nodeName,headingLevel:r(t),textContent:n};return e.includeHtml&&(a.childNodes=t.childNodes),e.headingObjectCallback?e.headingObjectCallback(a,t):a}function o(t,r){let i=a(t),o=i.headingLevel,s=r,c=n(s),l=o-(c?c.headingLevel:0);for(;l>0&&(c=n(s),!(c&&o===c.headingLevel));)c&&c.children!==void 0&&(s=c.children),l--;return o>=e.collapseDepth&&(i.isCollapsed=!0),s.push(i),s}function s(t,n){let r=n;e.ignoreSelector&&(r=n.split(`,`).map(function(t){return`${t.trim()}:not(${e.ignoreSelector})`}));try{return t.querySelectorAll(r)}catch{return console.warn(`Headers not found with selector: ${r}`),null}}function c(e){return t.call(e,function(e,t){let n=a(t);return n&&o(n,e.nest),e},{nest:[]})}return{nestHeadingsArray:c,selectHeadings:s}}function QIe(e){var t=e.duration,n=e.offset;if(typeof window>`u`||typeof location>`u`)return;var r=location.hash?o(location.href):location.href;i();function i(){document.body.addEventListener(`click`,r,!1);function r(r){!a(r.target)||r.target.className.indexOf(`no-smooth-scroll`)>-1||r.target.href.charAt(r.target.href.length-2)===`#`&&r.target.href.charAt(r.target.href.length-1)===`!`||r.target.className.indexOf(e.linkClass)===-1||$Ie(r.target.hash,{duration:t,offset:n,callback:function(){s(r.target.hash)}})}}function a(e){return e.tagName.toLowerCase()===`a`&&(e.hash.length>0||e.href.charAt(e.href.length-1)===`#`)&&(o(e.href)===r||o(e.href)+`#`===r)}function o(e){return e.slice(0,e.lastIndexOf(`#`))}function s(e){var t=document.getElementById(e.substring(1));t&&(/^(?:a|select|input|button|textarea)$/i.test(t.tagName)||(t.tabIndex=-1),t.focus())}}function $Ie(e,t){var n=window.pageYOffset,r={duration:t.duration,offset:t.offset||0,callback:t.callback,easing:t.easing||d},i=document.querySelector(`[id="`+decodeURI(e).split(`#`).join(``)+`"]`)||document.querySelector(`[id="`+e.split(`#`).join(``)+`"]`),a=typeof e==`string`?r.offset+(e?i&&i.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):e,o=typeof r.duration==`function`?r.duration(a):r.duration,s,c;requestAnimationFrame(function(e){s=e,l(e)});function l(e){c=e-s,window.scrollTo(0,r.easing(c,n,a,o)),c<o?requestAnimationFrame(l):u()}function u(){window.scrollTo(0,n+a),typeof r.callback==`function`&&r.callback()}function d(e,t,n,r){return e/=r/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)}}function eLe(e){let t=e.tocScrollingWrapper||e.tocElement||document.querySelector(e.tocSelector);if(t&&t.scrollHeight>t.clientHeight){let n=t.querySelector(`.${e.activeListItemClass}`);if(n){let r=n.offsetTop-e.tocScrollOffset;t.scrollTop=r>0?r:0}}}var R7={},z7,B7,V7,H7,U7;function W7(e){let t=!1;R7=rLe(XIe,e||{}),R7.scrollSmooth&&(R7.duration=R7.scrollSmoothDuration,R7.offset=R7.scrollSmoothOffset,QIe(R7)),z7=YIe(R7),B7=ZIe(R7),G7();let n=aLe(R7);if(n===null)return;let r=J7(R7);if(r===null||(V7=B7.selectHeadings(n,R7.headingSelector),V7===null))return;let i=B7.nestHeadingsArray(V7).nest;if(!R7.skipRendering)z7.render(r,i);else return this;let a=!1;H7=((e,t)=>iLe(e,t,R7.scrollHandlerType))(e=>{z7.updateToc(V7,e),!R7.disableTocScrollSync&&!a&&eLe(R7),R7.enableUrlHashUpdateOnScroll&&t&&z7.getCurrentlyHighlighting()&&z7.updateUrlHashForHeader(V7);let n=e?.target?.scrollingElement?.scrollTop===0;(e&&(e.eventPhase===0||e.currentTarget===null)||n)&&(z7.updateToc(V7),R7.scrollEndCallback?.(e))},R7.scrollHandlerTimeout||R7.throttleTimeout),t||=(H7(),!0),window.onhashchange=window.onscrollend=e=>{H7(e)},R7.scrollContainer&&document.querySelector(R7.scrollContainer)?(document.querySelector(R7.scrollContainer).addEventListener(`scroll`,H7,!1),document.querySelector(R7.scrollContainer).addEventListener(`resize`,H7,!1)):(document.addEventListener(`scroll`,H7,!1),document.addEventListener(`resize`,H7,!1));let o=null;U7=K7(e=>{a=!0,R7.scrollSmooth&&z7.disableTocAnimation(e),z7.updateToc(V7,e),o&&clearTimeout(o),o=setTimeout(()=>{z7.enableTocAnimation()},R7.scrollSmoothDuration),setTimeout(()=>{a=!1},R7.scrollSmoothDuration+100)},R7.throttleTimeout),R7.scrollContainer&&document.querySelector(R7.scrollContainer)?document.querySelector(R7.scrollContainer).addEventListener(`click`,U7,!1):document.addEventListener(`click`,U7,!1)}function G7(){let e=J7(R7);e!==null&&(R7.skipRendering||e&&(e.innerHTML=``),R7.scrollContainer&&document.querySelector(R7.scrollContainer)?(document.querySelector(R7.scrollContainer).removeEventListener(`scroll`,H7,!1),document.querySelector(R7.scrollContainer).removeEventListener(`resize`,H7,!1),z7&&document.querySelector(R7.scrollContainer).removeEventListener(`click`,U7,!1)):(document.removeEventListener(`scroll`,H7,!1),document.removeEventListener(`resize`,H7,!1),z7&&document.removeEventListener(`click`,U7,!1)))}function tLe(e){G7(),W7(e||R7)}var nLe=Object.prototype.hasOwnProperty;function rLe(...e){let t={};for(let n=0;n<e.length;n++){let r=e[n];for(let e in r)nLe.call(r,e)&&(t[e]=r[e])}return t}function K7(e,t,n){t||=250;let r,i;return function(...a){let o=n||this,s=+new Date;r&&s<r+t?(clearTimeout(i),i=setTimeout(()=>{r=s,e.apply(o,a)},t)):(r=s,e.apply(o,a))}}function q7(e,t){let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>e.apply(this,r),t)}}function iLe(e,t,n=`auto`){switch(n){case`debounce`:return q7(e,t);case`throttle`:return K7(e,t);default:return t<334?q7(e,t):K7(e,t)}}function aLe(e){try{return e.contentElement||document.querySelector(e.contentSelector)}catch{return console.warn(`Contents element not found: ${e.contentSelector}`),null}}function J7(e){try{return e.tocElement||document.querySelector(e.tocSelector)}catch{return console.warn(`TOC element not found: ${e.tocSelector}`),null}}var Y7={destroy:G7,init:W7,refresh:tLe},oLe=$.aside(()=>({width:`10rem`,"@media (max-width: 768px)":{display:`none`}})),sLe=$.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`}})),cLe=$.p(({theme:e})=>({fontWeight:600,fontSize:`0.875em`,color:e.color.defaultText,textTransform:`uppercase`,marginBottom:10})),lLe=({headingId:e,title:t})=>typeof t==`string`||!t?X.createElement(cLe,{as:`h2`,id:e,className:t?``:`sb-sr-only`},t||`Table of contents`):X.createElement(`div`,{id:e},t),uLe=({title:e,disable:t,headingSelector:n,contentsSelector:r,ignoreSelector:i,unsafeTocbotOptions:a,channel:o,className:s})=>{(0,X.useEffect)(()=>{if(t)return()=>{};let e={tocSelector:`.toc-wrapper`,contentSelector:r??`.sbdocs-content`,headingSelector:n??`h3`,ignoreSelector:i??`.docs-story *, .skip-toc`,headingsOffset:40,scrollSmoothOffset:-40,orderedList:!1,onClick:e=>{if(e.preventDefault(),e.currentTarget instanceof HTMLAnchorElement){let[,t]=e.currentTarget.href.split(`#`);t&&o.emit(JIe,`#${t}`)}},...a},s=setTimeout(()=>Y7.init(e),100);return()=>{clearTimeout(s),Y7.destroy()}},[o,t,i,r,n,a]);let c=`table-of-contents`;return X.createElement(oLe,{className:s},t?null:X.createElement(sLe,{"aria-labelledby":c},X.createElement(lLe,{headingId:c,title:e}),X.createElement(`div`,{className:`toc-wrapper`})))},dLe=e=>`anchor--${e}`,fLe=({storyId:e,children:t})=>X.createElement(`div`,{id:dLe(e),className:`sb-anchor`},t),{filterArgTypes:pLe}=__STORYBOOK_MODULE_PREVIEW_API__,X7=(e,t)=>(0,X.useContext)(E7).resolveOf(e,t),mLe=e=>e.split(`-`).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(``),hLe=e=>{if(e)return typeof e==`string`?e.includes(`-`)?mLe(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function gLe(e,t=`start`){e.scrollIntoView({behavior:`smooth`,block:t,inline:`nearest`})}var _Le=Object.create,Z7=Object.defineProperty,vLe=Object.getOwnPropertyDescriptor,Q7=Object.getOwnPropertyNames,yLe=Object.getPrototypeOf,bLe=Object.prototype.hasOwnProperty,$7=(e,t)=>function(){return t||(0,e[Q7(e)[0]])((t={exports:{}}).exports,t),t.exports},xLe=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of Q7(t))!bLe.call(e,i)&&i!==n&&Z7(e,i,{get:()=>t[i],enumerable:!(r=vLe(t,i))||r.enumerable});return e},e9=(e,t,n)=>(n=e==null?{}:_Le(yLe(e)),xLe(t||!e||!e.__esModule?Z7(n,`default`,{value:e,enumerable:!0}):n,e)),SLe=[`bubbles`,`cancelBubble`,`cancelable`,`composed`,`currentTarget`,`defaultPrevented`,`eventPhase`,`isTrusted`,`returnValue`,`srcElement`,`target`,`timeStamp`,`type`],CLe=[`detail`];function wLe(e){let t=SLe.filter(t=>e[t]!==void 0).reduce((t,n)=>(t[n]=e[n],t),{});if(e instanceof CustomEvent)for(let n of CLe.filter(t=>e[t]!==void 0))t[n]=e[n];return t}var t9=$7({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),TLe=$7({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),ELe=$7({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),DLe=$7({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),OLe=$7({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),kLe=$7({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),n9=$7({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),ALe=$7({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),jLe=$7({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),MLe=$7({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),NLe=$7({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),PLe=$7({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),FLe=$7({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),ILe=$7({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),LLe=$7({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(e,t){t.exports=Number.isNaN||function(e){return e!==e}}}),RLe=$7({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var n=LLe();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}}}),zLe=$7({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),r9=$7({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var n=zLe();if(n)try{n([],`length`)}catch{n=null}t.exports=n}}),BLe=$7({"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}}),i9=$7({"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 e={},t=Symbol(`test`),n=Object(t);if(typeof t==`string`||Object.prototype.toString.call(t)!==`[object Symbol]`||Object.prototype.toString.call(n)!==`[object Symbol]`)return!1;var r=42;for(var i in e[t]=r,e)return!1;if(typeof Object.keys==`function`&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0}}}),a9=$7({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var n=typeof Symbol<`u`&&Symbol,r=i9();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}}}),o9=$7({"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}}),s9=$7({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){t.exports=t9().getPrototypeOf||null}}),VLe=$7({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(e,t){var n=`Function.prototype.bind called on incompatible `,r=Object.prototype.toString,i=Math.max,a=`[object Function]`,o=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},s=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},c=function(e,t){for(var n=``,r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};t.exports=function(e){var t=this;if(typeof t!=`function`||r.apply(t)!==a)throw TypeError(n+t);for(var l=s(arguments,1),u,d=function(){if(this instanceof u){var n=t.apply(this,o(l,arguments));return Object(n)===n?n:this}return t.apply(e,o(l,arguments))},f=i(0,t.length-l.length),p=[],m=0;m<f;m++)p[m]=`$`+m;if(u=Function(`binder`,`return function (`+c(p,`,`)+`){ return binder.apply(this,arguments); }`)(d),t.prototype){var h=function(){};h.prototype=t.prototype,u.prototype=new h,h.prototype=null}return u}}}),c9=$7({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var n=VLe();t.exports=Function.prototype.bind||n}}),l9=$7({"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}}),u9=$7({"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}}),HLe=$7({"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}}),ULe=$7({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var n=c9(),r=u9(),i=l9();t.exports=HLe()||n.call(i,r)}}),d9=$7({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var n=c9(),r=n9(),i=l9(),a=ULe();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}}}),WLe=$7({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var n=d9(),r=r9(),i;try{i=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var a=!!i&&r&&r(Object.prototype,`__proto__`),o=Object,s=o.getPrototypeOf;t.exports=a&&typeof a.get==`function`?n([a.get]):typeof s==`function`?(function(e){return s(e==null?e:o(e))}):!1}}),GLe=$7({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var n=o9(),r=s9(),i=WLe();t.exports=n?function(e){return n(e)}:r?function(e){if(!e||typeof e!=`object`&&typeof e!=`function`)throw TypeError(`getProto: not an object`);return r(e)}:i?function(e){return i(e)}:null}}),f9=$7({"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e,t){var n=Function.prototype.call,r=Object.prototype.hasOwnProperty;t.exports=c9().call(n,r)}}),KLe=$7({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var n,r=t9(),i=TLe(),a=ELe(),o=DLe(),s=OLe(),c=kLe(),l=n9(),u=ALe(),d=jLe(),f=MLe(),p=NLe(),m=PLe(),h=FLe(),g=ILe(),_=RLe(),v=Function,y=function(e){try{return v(`"use strict"; return (`+e+`).constructor;`)()}catch{}},b=r9(),x=BLe(),S=function(){throw new l},C=b?(function(){try{return arguments.callee,S}catch{try{return b(arguments,`callee`).get}catch{return S}}})():S,w=a9()(),T=GLe(),E=s9(),D=o9(),O=u9(),k=l9(),A={},j=typeof Uint8Array>`u`||!T?n:T(Uint8Array),M={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?n:ArrayBuffer,"%ArrayIteratorPrototype%":w&&T?T([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":A,"%AsyncGenerator%":A,"%AsyncGeneratorFunction%":A,"%AsyncIteratorPrototype%":A,"%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%":a,"%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%":v,"%GeneratorFunction%":A,"%Int8Array%":typeof Int8Array>`u`?n:Int8Array,"%Int16Array%":typeof Int16Array>`u`?n:Int16Array,"%Int32Array%":typeof Int32Array>`u`?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&T?T(T([][Symbol.iterator]())):n,"%JSON%":typeof JSON==`object`?JSON:n,"%Map%":typeof Map>`u`?n:Map,"%MapIteratorPrototype%":typeof Map>`u`||!w||!T?n:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?n:Promise,"%Proxy%":typeof Proxy>`u`?n:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":typeof Reflect>`u`?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?n:Set,"%SetIteratorPrototype%":typeof Set>`u`||!w||!T?n:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&T?T(``[Symbol.iterator]()):n,"%Symbol%":w?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":C,"%TypedArray%":j,"%TypeError%":l,"%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%":u,"%WeakMap%":typeof WeakMap>`u`?n:WeakMap,"%WeakRef%":typeof WeakRef>`u`?n:WeakRef,"%WeakSet%":typeof WeakSet>`u`?n:WeakSet,"%Function.prototype.call%":k,"%Function.prototype.apply%":O,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":E,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":h,"%Math.round%":g,"%Math.sign%":_,"%Reflect.getPrototypeOf%":D};if(T)try{null.error}catch(e){N=T(T(e)),M[`%Error.prototype%`]=N}var N,P=function e(t){var n;if(t===`%AsyncFunction%`)n=y(`async function () {}`);else if(t===`%GeneratorFunction%`)n=y(`function* () {}`);else if(t===`%AsyncGeneratorFunction%`)n=y(`async function* () {}`);else if(t===`%AsyncGenerator%`){var r=e(`%AsyncGeneratorFunction%`);r&&(n=r.prototype)}else if(t===`%AsyncIteratorPrototype%`){var i=e(`%AsyncGenerator%`);i&&T&&(n=T(i.prototype))}return M[t]=n,n},ee={__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`]},te=c9(),F=f9(),I=te.call(k,Array.prototype.concat),ne=te.call(O,Array.prototype.splice),re=te.call(k,String.prototype.replace),ie=te.call(k,String.prototype.slice),L=te.call(k,RegExp.prototype.exec),ae=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,oe=/\\(\\)?/g,se=function(e){var t=ie(e,0,1),n=ie(e,-1);if(t===`%`&&n!==`%`)throw new c("invalid intrinsic syntax, expected closing `%`");if(n===`%`&&t!==`%`)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return re(e,ae,function(e,t,n,i){r[r.length]=n?re(i,oe,`$1`):t||e}),r},ce=function(e,t){var n=e,r;if(F(ee,n)&&(r=ee[n],n=`%`+r[0]+`%`),F(M,n)){var i=M[n];if(i===A&&(i=P(n)),typeof i>`u`&&!t)throw new l(`intrinsic `+e+` exists, but is not available. Please file an issue!`);return{alias:r,name:n,value:i}}throw new c(`intrinsic `+e+` does not exist!`)};t.exports=function(e,t){if(typeof e!=`string`||e.length===0)throw new l(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof t!=`boolean`)throw new l(`"allowMissing" argument must be a boolean`);if(L(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=se(e),r=n.length>0?n[0]:``,i=ce(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,u=i.alias;u&&(r=u[0],ne(n,I([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=ie(p,0,1),h=ie(p,-1);if((m===`"`||m===`'`||m==="`"||h===`"`||h===`'`||h==="`")&&m!==h)throw new c(`property names with quotes must have matching quotes`);if((p===`constructor`||!f)&&(s=!0),r+=`.`+p,a=`%`+r+`%`,F(M,a))o=M[a];else if(o!=null){if(!(p in o)){if(!t)throw new l(`base intrinsic for `+e+` exists, but the property is not available.`);return}if(b&&d+1>=n.length){var g=b(o,p);f=!!g,o=f&&`get`in g&&!(`originalValue`in g.get)?g.get:o[p]}else f=F(o,p),o=o[p];f&&!s&&(M[a]=o)}}return o}}}),p9=$7({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var n=KLe(),r=d9(),i=r([n(`%String.prototype.indexOf%`)]);t.exports=function(e,t){var a=n(e,!!t);return typeof a==`function`&&i(e,`.prototype.`)>-1?r([a]):a}}}),qLe=$7({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var n=i9();t.exports=function(){return n()&&!!Symbol.toStringTag}}}),m9=$7({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var n=p9(),r=qLe()(),i=f9(),a=r9(),o;r?(s=n(`RegExp.prototype.exec`),c={},l=function(){throw c},u={toString:l,valueOf:l},typeof Symbol.toPrimitive==`symbol`&&(u[Symbol.toPrimitive]=l),o=function(e){if(!e||typeof e!=`object`)return!1;var t=a(e,`lastIndex`);if(!(t&&i(t,`value`)))return!1;try{s(e,u)}catch(e){return e===c}}):(d=n(`Object.prototype.toString`),f=`[object RegExp]`,o=function(e){return!e||typeof e!=`object`&&typeof e!=`function`?!1:d(e)===f});var s,c,l,u,d,f;t.exports=o}}),JLe=$7({"node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js"(e,t){t.exports=r;var n=Object.prototype.toString;function r(e){if(!e)return!1;var t=n.call(e);return t===`[object Function]`||typeof e==`function`&&t!==`[object RegExp]`||typeof window<`u`&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)}}}),YLe=$7({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var n=p9(),r=m9(),i=n(`RegExp.prototype.exec`),a=n9();t.exports=function(e){if(!r(e))throw new a("`regex` must be a RegExp");return function(t){return i(e,t)!==null}}}}),XLe=$7({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var n=p9(),r=n(`Object.prototype.toString`),i=a9()(),a=YLe();i?(o=n(`Symbol.prototype.toString`),s=a(/^Symbol\(.*\)$/),c=function(e){return typeof e.valueOf()==`symbol`?s(o(e)):!1},t.exports=function(e){if(typeof e==`symbol`)return!0;if(!e||typeof e!=`object`||r(e)!==`[object Symbol]`)return!1;try{return c(e)}catch{return!1}}):t.exports=function(e){return!1};var o,s,c}}),ZLe=e9(m9()),QLe=e9(JLe()),$Le=e9(XLe());function eRe(e){return typeof e==`object`&&!!e&&Array.isArray(e)===!1}var tRe=typeof global==`object`&&global&&global.Object===Object&&global,nRe=typeof self==`object`&&self&&self.Object===Object&&self,h9=tRe||nRe||Function(`return this`)(),g9=h9.Symbol,_9=Object.prototype,rRe=_9.hasOwnProperty,iRe=_9.toString,v9=g9?g9.toStringTag:void 0;function aRe(e){var t=rRe.call(e,v9),n=e[v9];try{e[v9]=void 0;var r=!0}catch{}var i=iRe.call(e);return r&&(t?e[v9]=n:delete e[v9]),i}var oRe=aRe,sRe=Object.prototype.toString;function cRe(e){return sRe.call(e)}var lRe=cRe,uRe=`[object Null]`,dRe=`[object Undefined]`,y9=g9?g9.toStringTag:void 0;function fRe(e){return e==null?e===void 0?dRe:uRe:y9&&y9 in Object(e)?oRe(e):lRe(e)}var pRe=fRe,b9=g9?g9.prototype:void 0;b9&&b9.toString;function mRe(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}var x9=mRe,hRe=`[object AsyncFunction]`,gRe=`[object Function]`,_Re=`[object GeneratorFunction]`,vRe=`[object Proxy]`;function yRe(e){if(!x9(e))return!1;var t=pRe(e);return t==gRe||t==_Re||t==hRe||t==vRe}var bRe=yRe,S9=h9[`__core-js_shared__`],C9=(function(){var e=/[^.]+$/.exec(S9&&S9.keys&&S9.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``})();function xRe(e){return!!C9&&C9 in e}var SRe=xRe,CRe=Function.prototype.toString;function wRe(e){if(e!=null){try{return CRe.call(e)}catch{}try{return e+``}catch{}}return``}var TRe=wRe,ERe=/[\\^$.*+?()[\]{}|]/g,DRe=/^\[object .+?Constructor\]$/,ORe=Function.prototype,kRe=Object.prototype,ARe=ORe.toString,jRe=kRe.hasOwnProperty,MRe=RegExp(`^`+ARe.call(jRe).replace(ERe,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function NRe(e){return!x9(e)||SRe(e)?!1:(bRe(e)?MRe:DRe).test(TRe(e))}var PRe=NRe;function FRe(e,t){return e?.[t]}var IRe=FRe;function LRe(e,t){var n=IRe(e,t);return PRe(n)?n:void 0}var w9=LRe;function RRe(e,t){return e===t||e!==e&&t!==t}var zRe=RRe,T9=w9(Object,`create`);function BRe(){this.__data__=T9?T9(null):{},this.size=0}var VRe=BRe;function HRe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var URe=HRe,WRe=`__lodash_hash_undefined__`,GRe=Object.prototype.hasOwnProperty;function KRe(e){var t=this.__data__;if(T9){var n=t[e];return n===WRe?void 0:n}return GRe.call(t,e)?t[e]:void 0}var qRe=KRe,JRe=Object.prototype.hasOwnProperty;function YRe(e){var t=this.__data__;return T9?t[e]!==void 0:JRe.call(t,e)}var XRe=YRe,ZRe=`__lodash_hash_undefined__`;function QRe(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=T9&&t===void 0?ZRe:t,this}var $Re=QRe;function E9(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}E9.prototype.clear=VRe,E9.prototype.delete=URe,E9.prototype.get=qRe,E9.prototype.has=XRe,E9.prototype.set=$Re;var D9=E9;function eze(){this.__data__=[],this.size=0}var tze=eze;function nze(e,t){for(var n=e.length;n--;)if(zRe(e[n][0],t))return n;return-1}var O9=nze,rze=Array.prototype.splice;function ize(e){var t=this.__data__,n=O9(t,e);return n<0?!1:(n==t.length-1?t.pop():rze.call(t,n,1),--this.size,!0)}var aze=ize;function oze(e){var t=this.__data__,n=O9(t,e);return n<0?void 0:t[n][1]}var sze=oze;function cze(e){return O9(this.__data__,e)>-1}var lze=cze;function uze(e,t){var n=this.__data__,r=O9(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var dze=uze;function k9(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}k9.prototype.clear=tze,k9.prototype.delete=aze,k9.prototype.get=sze,k9.prototype.has=lze,k9.prototype.set=dze;var fze=k9,pze=w9(h9,`Map`);function mze(){this.size=0,this.__data__={hash:new D9,map:new(pze||fze),string:new D9}}var hze=mze;function gze(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}var _ze=gze;function vze(e,t){var n=e.__data__;return _ze(t)?n[typeof t==`string`?`string`:`hash`]:n.map}var A9=vze;function yze(e){var t=A9(this,e).delete(e);return this.size-=t?1:0,t}var bze=yze;function xze(e){return A9(this,e).get(e)}var Sze=xze;function Cze(e){return A9(this,e).has(e)}var wze=Cze;function Tze(e,t){var n=A9(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var Eze=Tze;function j9(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}j9.prototype.clear=hze,j9.prototype.delete=bze,j9.prototype.get=Sze,j9.prototype.has=wze,j9.prototype.set=Eze;var M9=j9,Dze=`Expected a function`;function N9(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(Dze);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(N9.Cache||M9),n}N9.Cache=M9;var Oze=N9,kze=500;function Aze(e){var t=Oze(e,function(e){return n.size===kze&&n.clear(),e}),n=t.cache;return t}var jze=Aze,Mze=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Nze=/\\(\\)?/g;jze(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(Mze,function(e,n,r,i){t.push(r?i.replace(Nze,`$1`):n||e)}),t});var Pze=eRe,Fze=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/;function P9(e){if(!Pze(e))return e;let t=e,n=!1;return typeof Event<`u`&&e instanceof Event&&(t=wLe(t),n=!0),t=Object.keys(t).reduce((e,r)=>{try{t[r]&&t[r].toJSON,e[r]=t[r]}catch{n=!0}return e},{}),n?t:e}var Ize=function(e){let t,n,r,i;return function(a,o){try{if(a===``)return i=[],t=new Map([[o,`[]`]]),n=new Map,r=[],o;let s=n.get(this)||this;for(;r.length&&s!==r[0];)r.shift(),i.pop();if(typeof o==`boolean`)return o;if(o===void 0)return e.allowUndefined?`_undefined_`:void 0;if(o===null)return null;if(typeof o==`number`)return o===-1/0?`_-Infinity_`:o===1/0?`_Infinity_`:Number.isNaN(o)?`_NaN_`:o;if(typeof o==`bigint`)return`_bigint_${o.toString()}`;if(typeof o==`string`)return Fze.test(o)?e.allowDate?`_date_${o}`:void 0:o;if((0,ZLe.default)(o))return e.allowRegExp?`_regexp_${o.flags}|${o.source}`:void 0;if((0,QLe.default)(o))return;if((0,$Le.default)(o)){if(!e.allowSymbol)return;let t=Symbol.keyFor(o);return t===void 0?`_symbol_${o.toString().slice(7,-1)}`:`_gsymbol_${t}`}if(r.length>=e.maxDepth)return Array.isArray(o)?`[Array(${o.length})]`:`[Object]`;if(o===this)return`_duplicate_${JSON.stringify(i)}`;if(o instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...o.cause?{cause:o.cause}:{},...o,name:o.name,message:o.message,stack:o.stack,"_constructor-name_":o.constructor.name}};if(o?.constructor?.name&&o.constructor.name!==`Object`&&!Array.isArray(o)){let e=t.get(o);if(!e){let e={__isClassInstance__:!0,__className__:o.constructor.name,...Object.getOwnPropertyNames(o).reduce((e,t)=>{try{e[t]=o[t]}catch{}return e},{})};return i.push(a),r.unshift(e),t.set(o,JSON.stringify(i)),o!==e&&n.set(o,e),e}return`_duplicate_${e}`}let c=t.get(o);if(!c){let e=Array.isArray(o)?o:P9(o);return i.push(a),r.unshift(e),t.set(o,JSON.stringify(i)),o!==e&&n.set(o,e),e}return`_duplicate_${c}`}catch{return}}},Lze={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},Rze=(e,t={})=>{let n={...Lze,...t};return JSON.stringify(P9(e),Ize(n),t.space)};function F9(e){return Rze(e,{maxDepth:50})}var I9=(0,X.createContext)({sources:{}}),zze=`--unknown--`,Bze=({children:e,channel:t})=>{let[n,r]=(0,X.useState)({});return(0,X.useEffect)(()=>{let e=(e,t=null,n=!1)=>{let{id:i,args:a=void 0,source:o,format:s}=typeof e==`string`?{id:e,source:t,format:n}:e,c=a?F9(a):zze;r(e=>({...e,[i]:{...e[i],[c]:{code:o||``,format:s}}}))};return t.on(VN,e),()=>t.off(VN,e)},[]),X.createElement(I9.Provider,{value:{sources:n}},e)};function Vze(e,t,n){let[r,i]=(0,X.useState)(`Transforming...`),a=t?t?.(e,n):e;return(0,X.useEffect)(()=>{async function e(){let e=await a;e!==r&&i(e)}e()}),typeof a==`object`&&typeof a.then==`function`?r:a}var Hze=(e,t,n)=>{let{sources:r}=n,i=r?.[e];return i?.[F9(t)]||i?.[`--unknown--`]||{code:``}},Uze=({snippet:e,storyContext:t,typeFromProps:n,transformFromProps:r})=>{let i=t.parameters??{},{__isArgsStory:a}=i,o=i.docs?.source||{},s=n||o.type||HN.AUTO,c=s===HN.DYNAMIC||s===HN.AUTO&&e&&a?e:o.originalSource||``,l=r??o.transform,u=l?Vze(c,l,t):c;return o.code===void 0?u:o.code},Wze=(e,t,n)=>{let{of:r}=e,i=(0,X.useMemo)(()=>{if(r)return t.resolveOf(r,[`story`]).story;try{return t.storyById()}catch{}},[t,r]),a=i?t.getStoryContext(i):{},o=e.__forceInitialArgs?a.initialArgs:a.unmappedArgs,s=i?Hze(i.id,o,n):null,c=Uze({snippet:s?s.code:``,storyContext:{...a,args:o},typeFromProps:e.type,transformFromProps:e.transform});if(`of`in e&&r===void 0)throw Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let l=i?.parameters?.docs?.source||{},u=e.format,d=e.language??l.language??`jsx`,f=e.dark??l.dark??!1;return!e.code&&!i?{error:`Oh no! The source is not available.`}:e.code?{code:e.code,format:u,language:d,dark:f}:(u=s?.format??!0,{code:c,format:u,language:d,dark:f})},Gze=e=>{let t=(0,X.useContext)(E7),n=(0,X.useContext)(I9),{of:r,source:i}=e;if(`of`in e&&r===void 0)throw Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{story:a}=X7(r||`story`,[`story`]),o=Wze({...i,...r&&{of:r}},t,n),s=e.layout??a.parameters.layout??a.parameters.docs?.canvas?.layout??`padded`,c=e.withToolbar??a.parameters.docs?.canvas?.withToolbar??!1,l=e.additionalActions??a.parameters.docs?.canvas?.additionalActions,u=e.sourceState??a.parameters.docs?.canvas?.sourceState??`hidden`,d=e.className??a.parameters.docs?.canvas?.className,f=e.story?.inline??a.parameters?.docs?.story?.inline??!1;return X.createElement(I7,{withSource:u===`none`?void 0:o,isExpanded:u===`shown`,withToolbar:c,additionalActions:l,className:d,layout:s,inline:f},X.createElement(MIe,{of:r||a.moduleExport,meta:e.meta,...e.story}))},{filterArgTypes:L9}=__STORYBOOK_MODULE_PREVIEW_API__,{RESET_STORY_ARGS:Kze,STORY_ARGS_UPDATED:R9,UPDATE_STORY_ARGS:qze}=__STORYBOOK_MODULE_CORE_EVENTS__,Jze=(e,t)=>{let n=Yze(e,t);if(!n)throw Error(`No result when story was defined`);return n},Yze=(e,t)=>{let n=e?t.getStoryContext(e):{args:{}},{id:r}=e||{id:`none`},[i,a]=(0,X.useState)(n.args);(0,X.useEffect)(()=>{let e=e=>{e.storyId===r&&a(e.args)};return t.channel.on(R9,e),()=>t.channel.off(R9,e)},[r,t.channel]);let o=(0,X.useCallback)(e=>t.channel.emit(qze,{storyId:r,updatedArgs:e}),[r,t.channel]),s=(0,X.useCallback)(e=>t.channel.emit(Kze,{storyId:r,argNames:e}),[r,t.channel]);return e&&[i,o,s]},{GLOBALS_UPDATED:z9}=__STORYBOOK_MODULE_CORE_EVENTS__,Xze=(e,t)=>{let[n,r]=(0,X.useState)(t.getStoryContext(e).globals);return(0,X.useEffect)(()=>{let e=e=>{r(e.globals)};return t.channel.on(z9,e),()=>t.channel.off(z9,e)},[t.channel]),[n]},{Tag:Zze}=__STORYBOOK_MODULE_PREVIEW_API__,B9=()=>(0,X.useContext)(E7).componentStories().find(e=>e.tags.includes(Zze.AUTODOCS));function Qze(e,t){let{extractArgTypes:n}=t.docs||{};if(!n)throw Error(`Args unsupported. See Args documentation for your framework.`);return n(e)}var $ze=e=>{let{of:t}=e,n=(0,X.useContext)(E7),r=B9(),i=t?n.resolveOf(t,[`story`]).story:r;if(!i)return null;let{parameters:a,argTypes:o,component:s,subcomponents:c}=i,l=a.docs?.controls||{},u=e.include??l.include,d=e.exclude??l.exclude,f=e.sort??l.sort,[p,m,h]=Jze(i,n),[g]=Xze(i,n),_=L9(o,u,d);if(!(c&&Object.keys(c||{}).length>0))return Object.keys(_).length>0||Object.keys(p).length>0?X.createElement(C7,{rows:_,sort:f,args:p,globals:g,updateArgs:m,resetArgs:h}):null;let v=hLe(s)||`Story`,y=Object.fromEntries(Object.entries(c||{}).map(([e,t])=>[e,{rows:L9(Qze(t,a),u,d),sort:f}])),b={[v]:{rows:_,sort:f},...y};return X.createElement(L7,{tabs:b,sort:f,args:p,globals:g,updateArgs:m,resetArgs:h})},{NAVIGATE_URL:eBe}=__STORYBOOK_MODULE_CORE_EVENTS__,{document:V9}=globalThis,H9=({className:e,children:t,...n})=>{if(typeof e!=`string`&&(typeof t!=`string`||!t.match(/[\n\r]/g)))return X.createElement(uZ,null,t);let r=e&&e.split(`-`);return X.createElement(H8,{language:r&&r[1]||`text`,format:!1,code:t,...n})};function U9(e,t){e.channel.emit(eBe,t)}var W9=d8.a,tBe=({hash:e,children:t})=>{let n=(0,X.useContext)(E7);return X.createElement(W9,{href:e,target:`_self`,onClick:t=>{let r=e.substring(1);V9.getElementById(r)&&U9(n,e)}},t)},G9=e=>{let{href:t,target:n,children:r,...i}=e,a=(0,X.useContext)(E7);return!t||n===`_blank`||/^https?:\/\//.test(t)?X.createElement(W9,{...e}):t.startsWith(`#`)?X.createElement(tBe,{hash:t},r):X.createElement(W9,{href:t,onClick:e=>{e.button===0&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&(e.preventDefault(),U9(a,e.currentTarget.getAttribute(`href`)||``))},target:n,...i},r)},K9=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],nBe=K9.reduce((e,t)=>({...e,[t]:$(t)({"& svg":{position:`relative`,top:`-0.1em`,visibility:`hidden`},"&:hover svg":{visibility:`visible`}})}),{}),rBe=$.a(()=>({float:`left`,lineHeight:`inherit`,paddingRight:`10px`,marginLeft:`-24px`,color:`inherit`})),iBe=({as:e,id:t,children:n,...r})=>{let i=(0,X.useContext)(E7),a=nBe[e],o=`#${t}`;return X.createElement(a,{id:t,...r},X.createElement(rBe,{"aria-hidden":`true`,href:o,tabIndex:-1,target:`_self`,onClick:e=>{V9.getElementById(t)&&U9(i,o)}},X.createElement(S_e,null)),n)},q9=e=>{let{as:t,id:n,children:r,...i}=e;if(n)return X.createElement(iBe,{as:t,id:n,...i},r);let a=t,{as:o,...s}=e;return X.createElement(a,{...$X(s,t)})},J9=K9.reduce((e,t)=>({...e,[t]:e=>X.createElement(q9,{as:t,...e})}),{}),aBe=e=>{if(!e.children)return null;if(typeof e.children!=`string`)throw Error(jV`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}'
|
|
1403
|
+
${I8(.02,e.input.background)} 100%)`,borderRadius:6,boxShadow:`${e.base==`dark`?`hsl(0 0 100 / 0.4)`:`hsl(0 0 0 / 0.44)`} 0 0 0 1px inset`,cursor:i?`not-allowed`:`pointer`,height:6,width:`100%`},o={borderColor:A8(e.color.secondary,.4)},s={width:16,height:16,borderRadius:50,cursor:i?`not-allowed`:`grab`,background:e.input.background,border:`1px solid ${e.base==`dark`?`hsl(0 0 100 / 0.4)`:`hsl(0 0 0 / 0.44)`}`,boxShadow:e.base===`light`?`0 1px 3px 0px ${A8(e.appBorderColor,.2)}`:`unset`,transition:`all 150ms ease-out`},c={background:`${F8(.05,e.input.background)}`,transform:`scale3d(1.1, 1.1, 1.1) translateY(-1px)`,transition:`all 50ms ease-out`},l={background:`${e.input.background}`,transform:`scale3d(1, 1, 1) translateY(0px)`},u={borderColor:e.color.secondary,boxShadow:e.base===`light`?`0 0px 5px 0px ${e.color.secondary}`:`unset`};return{appearance:`none`,backgroundColor:`transparent`,width:`100%`,"&::-webkit-slider-runnable-track":a,"&::-moz-range-track":a,"&::-ms-track":{...a,color:`transparent`},"&::-moz-range-thumb":{...s,"&:hover":c,"&:active":l},"&::-webkit-slider-thumb":{...s,marginTop:`-6px`,appearance:`none`,"&:hover":c,"&:active":l},"&::-ms-thumb":{...s,marginTop:0,"&:hover":c,"&:active":l},"&:focus":{outline:`none`,"&::-webkit-slider-runnable-track":o,"&::-moz-range-track":o,"&::-ms-track":o,"&::-webkit-slider-thumb":u,"&::-moz-range-thumb":u,"&::-ms-thumb":u},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:`0`}}}}),u7=$.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:`nowrap`,fontFeatureSettings:`tnum`,fontVariantNumeric:`tabular-nums`}),wFe=$(u7)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:`right`,flexShrink:0})),TFe=$.div(({readOnly:e})=>({display:`flex`,alignItems:`center`,width:`100%`,opacity:e?.5:1}));function EFe(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var DFe=({name:e,value:t,onChange:n,min:r=0,max:i=100,step:a=1,onBlur:o,onFocus:s,argType:c})=>{let l=e=>{n(FPe(e.target.value))},u=t!==void 0,d=(0,X.useMemo)(()=>EFe(a),[a]),f=!!c?.table?.readonly,p=eK(e);return X.createElement(TFe,{readOnly:f},X.createElement(`label`,{htmlFor:p,className:`sb-sr-only`},e),X.createElement(u7,null,r),X.createElement(CFe,{id:p,type:`range`,disabled:f,onChange:l,name:e,min:r,max:i,step:a,onFocus:s,onBlur:o,value:t??r}),X.createElement(wFe,{numberOFDecimalsPlaces:d,max:i},u?t.toFixed(d):`--`,` / `,i))},OFe=$.label({display:`flex`}),kFe=$.div(({isMaxed:e})=>({marginLeft:`0.75rem`,paddingTop:`0.35rem`,color:e?`red`:void 0})),AFe=({name:e,value:t,onChange:n,onFocus:r,onBlur:i,maxLength:a,argType:o})=>{let s=e=>{n(e.target.value)},c=!!o?.table?.readonly,[l,u]=(0,X.useState)(!1),d=(0,X.useCallback)(()=>{n(``),u(!0)},[u]);if(t===void 0)return X.createElement(c4,{ariaLabel:!1,variant:`outline`,size:`medium`,disabled:c,id:tK(e),onClick:d},`Set string`);let f=typeof t==`string`;return X.createElement(OFe,null,X.createElement(X4.Textarea,{id:eK(e),maxLength:a,onChange:s,disabled:c,size:`flex`,placeholder:`Edit string...`,autoFocus:l,valid:f?void 0:`error`,name:e,value:f?t:``,onFocus:r,onBlur:i}),a&&X.createElement(kFe,{isMaxed:t?.length===a},t?.length??0,` / `,a))},jFe=$(X4.Input)({padding:10});function MFe(e){e.forEach(e=>{e.startsWith(`blob:`)&&URL.revokeObjectURL(e)})}var NFe=({onChange:e,name:t,accept:n=`image/*`,value:r,argType:i})=>{let a=(0,X.useRef)(null),o=i?.control?.readOnly;function s(t){t.target.files&&(e(Array.from(t.target.files).map(e=>URL.createObjectURL(e))),MFe(r||[]))}(0,X.useEffect)(()=>{r==null&&a.current&&(a.current.value=``)},[r,t]);let c=eK(t);return X.createElement(X.Fragment,null,X.createElement(`label`,{htmlFor:c,className:`sb-sr-only`},t),X.createElement(jFe,{ref:a,id:c,type:`file`,name:t,multiple:!0,disabled:o,onChange:s,accept:n,size:`flex`}))},PFe=(0,X.lazy)(()=>e(()=>import(`./Color-6BZIO3FS-kyr31le_.js`),[],import.meta.url)),FFe={array:l7,object:l7,boolean:DPe,color:e=>X.createElement(X.Suspense,{fallback:X.createElement(`div`,null)},X.createElement(PFe,{...e})),date:NPe,number:LPe,check:G5,"inline-check":G5,radio:G5,"inline-radio":G5,select:G5,"multi-select":G5,range:DFe,text:AFe,file:NFe},d7=()=>X.createElement(X.Fragment,null,`-`),IFe=({row:e,arg:t,updateArgs:n,isHovered:r})=>{let{key:i,control:a}=e,[o,s]=(0,X.useState)(!1),[c,l]=(0,X.useState)({value:t});(0,X.useEffect)(()=>{o||l({value:t})},[o,t]);let u=(0,X.useCallback)(e=>(l({value:e}),n({[i]:e}),e),[n,i]),d=(0,X.useCallback)(()=>s(!1),[]),f=(0,X.useCallback)(()=>s(!0),[]);if(!a||a.disable){let t=a?.disable!==!0&&e?.type?.name!==`function`;return r&&t?X.createElement(AZ,{href:`https://storybook.js.org/docs/essentials/controls?ref=ui`,target:`_blank`,withArrow:!0},`Setup controls`):X.createElement(d7,null)}let p={name:i,argType:e,value:c.value,onChange:u,onBlur:d,onFocus:f},m=FFe[a.type]||d7;return X.createElement(m,{...p,...a,controlType:a.type})},LFe=$.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:tZ({theme:e}),div:{span:{fontWeight:`bold`}},"& code":{margin:0,display:`inline-block`,fontSize:e.typography.size.s1}}})),RFe=({tags:e})=>{let t=(e.params||[]).filter(e=>e.description),n=t.length!==0,r=e.deprecated!=null,i=e.returns!=null&&e.returns.description!=null;return!n&&!i&&!r?null:X.createElement(X.Fragment,null,X.createElement(LFe,null,X.createElement(`tbody`,null,r&&X.createElement(`tr`,{key:`deprecated`},X.createElement(`td`,{colSpan:2},X.createElement(`strong`,null,`Deprecated`),`: `,e.deprecated?.toString())),n&&t.map(e=>X.createElement(`tr`,{key:e.name},X.createElement(`td`,null,X.createElement(`code`,null,e.name)),X.createElement(`td`,null,e.description))),i&&X.createElement(`tr`,{key:`returns`},X.createElement(`td`,null,X.createElement(`code`,null,`Returns`)),X.createElement(`td`,null,e.returns?.description)))))};function zFe(e){return[...new Set(e)]}var f7=8,p7=$.div(({isExpanded:e})=>({display:`flex`,flexDirection:e?`column`:`row`,flexWrap:`wrap`,alignItems:`flex-start`,marginBottom:`-4px`,minWidth:100})),BFe=$.details({display:`flex`,flexDirection:`column`,summary:{order:2},"summary::-webkit-details-marker":{display:`none`},"summary::marker":{content:`none`}}),VFe=$.div({display:`flex`,flexDirection:`column`,flexWrap:`wrap`,alignItems:`flex-start`}),HFe=$.span(tZ,({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}})),UFe=$.summary(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,cursor:`pointer`,lineHeight:`normal`,margin:`0 0 4px`,padding:`1px 6px`,background:`none`,border:`none`})),WFe=$.button(tZ,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:`nowrap`,display:`flex`,alignItems:`center`,cursor:`pointer`,"&:hover":{border:e.base===`light`?`1px solid hsl(0 0 0 / 0.15)`:`1px solid hsl(0 0 100 / 0.15)`},"&:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:`2px`}})),GFe=$.div(({theme:e})=>({minWidth:200,maxWidth:800,paddingRight:16,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:`content-box`,"& code":{padding:`0 !important`}})),KFe=$(T_e)({marginLeft:4}),qFe=$(wq)({marginLeft:4}),JFe=()=>X.createElement(`span`,null,`-`),m7=({text:e,simple:t})=>X.createElement(HFe,{simple:t},e),YFe=e=>e?zFe(e.split(`|`).map(e=>e.trim())):[e],h7=e=>e.slice(0,f7).map(e=>X.createElement(m7,{key:e,text:e===``?`""`:e})),XFe=e=>e.slice(f7).map(e=>X.createElement(m7,{key:e,text:e===``?`""`:e})),ZFe=({value:e,initialExpandedArgs:t})=>{let{summary:n,detail:r}=e,[i,a]=(0,X.useState)(!1),[o,s]=(0,X.useState)(t||!1);if(n==null)return null;let c=typeof n.toString==`function`?n.toString():n;if(r==null){if(/[(){}[\]<>]/.test(c))return X.createElement(m7,{text:c});let e=YFe(c),t=e.length;return t>f7?X.createElement(p7,{isExpanded:o},h7(e),X.createElement(BFe,{open:o,onToggle:e=>s(e.currentTarget.open)},X.createElement(VFe,null,XFe(e)),X.createElement(UFe,{role:`button`},o?`Show less...`:`Show ${t-f7} more...`))):X.createElement(p7,null,h7(e))}return X.createElement(T6,{placement:`bottom`,visible:i,onVisibleChange:e=>{a(e)},hasCloseButton:!0,popover:X.createElement(GFe,null,X.createElement(lZ,{language:`jsx`,format:!1},r))},X.createElement(WFe,{className:`sbdocs-expandable`},X.createElement(`span`,null,c),i?X.createElement(KFe,null):X.createElement(qFe,null)))},g7=({value:e,initialExpandedArgs:t})=>e==null?X.createElement(JFe,null):X.createElement(ZFe,{value:e,initialExpandedArgs:t}),QFe=$.span({fontWeight:`bold`}),$Fe=$.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:`help`})),eIe=$.div(({theme:e})=>({"&&":{p:{margin:`0 0 10px 0`},a:{color:e.color.secondary}},code:{...tZ({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:`inline-block`},"& pre > code":{whiteSpace:`pre-wrap`}})),tIe=$.div(({theme:e,hasDescription:t})=>({color:e.base===`light`?z8(.1,e.color.defaultText):z8(.2,e.color.defaultText),marginTop:t?4:0})),nIe=$.div(({theme:e,hasDescription:t})=>({color:e.base===`light`?z8(.1,e.color.defaultText):z8(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),rIe=$.td(({expandable:e})=>({paddingLeft:e?`40px !important`:`20px !important`})),iIe=e=>e&&{summary:typeof e==`string`?e:e.name},_7=e=>{let[t,n]=(0,X.useState)(!1),{row:r,updateArgs:i,compact:a,expandable:o,initialExpandedArgs:s}=e,{name:c,description:l}=r,u=r.table||{},d=u.type||iIe(r.type),f=u.defaultValue||r.defaultValue,p=r.type?.required,m=l!=null&&l!==``;return X.createElement(`tr`,{onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1)},X.createElement(rIe,{expandable:o??!1},X.createElement(QFe,null,c),p?X.createElement($Fe,{title:`Required`},`*`):null),a?null:X.createElement(`td`,null,m&&X.createElement(eIe,null,X.createElement(P5,null,l)),u.jsDocTags==null?X.createElement(tIe,{hasDescription:m},X.createElement(g7,{value:d,initialExpandedArgs:s})):X.createElement(X.Fragment,null,X.createElement(nIe,{hasDescription:m},X.createElement(g7,{value:d,initialExpandedArgs:s})),X.createElement(RFe,{tags:u.jsDocTags}))),a?null:X.createElement(`td`,null,X.createElement(g7,{value:f,initialExpandedArgs:s})),i?X.createElement(`td`,null,X.createElement(IFe,{...e,isHovered:t})):null)},aIe=$.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})),oIe=$.div(({theme:e})=>({display:`flex`,fontSize:e.typography.size.s2-1,gap:25})),sIe=({inAddonPanel:e})=>{let[t,n]=(0,X.useState)(!0);return(0,X.useEffect)(()=>{let e=setTimeout(()=>{n(!1)},100);return()=>clearTimeout(e)},[]),t?null:X.createElement(aIe,{inAddonPanel:e},X.createElement(I6,{title:e?`Interactive story playground`:`Args table with interactive controls couldn't be auto-generated`,description:X.createElement(X.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:X.createElement(oIe,null,e&&X.createElement(X.Fragment,null,X.createElement(AZ,{href:`https://storybook.js.org/docs/essentials/controls?ref=ui`,target:`_blank`,withArrow:!0},X.createElement(xq,null),` Read docs`)),!e&&X.createElement(AZ,{href:`https://storybook.js.org/docs/essentials/controls?ref=ui`,target:`_blank`,withArrow:!0},X.createElement(xq,null),` Learn how to set that up`))}))},cIe=$(w_e)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base===`light`?z8(.25,e.color.defaultText):z8(.3,e.color.defaultText),border:`none`,display:`inline-block`})),lIe=$(Cq)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base===`light`?z8(.25,e.color.defaultText):z8(.3,e.color.defaultText),border:`none`,display:`inline-block`})),uIe=$.span(({theme:e})=>({display:`flex`,lineHeight:`20px`,alignItems:`center`})),dIe=$.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`?z8(.4,e.color.defaultText):z8(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),fIe=$.td(({theme:e})=>({position:`relative`,fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),pIe=$.td({position:`relative`}),mIe=$.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${I8(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:`row-resize`}})),v7=$.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`}),y7=({level:e=`section`,label:t,children:n,initialExpanded:r=!0,colSpan:i=3})=>{let[a,o]=(0,X.useState)(r),s=e===`subsection`?fIe:dIe,c=n?.length||0,l=e===`subsection`?`${c} item${c===1?``:`s`}`:``,u=`${a?`Hide`:`Show`} ${e===`subsection`?c:t} item${c===1?``:`s`}`;return X.createElement(X.Fragment,null,X.createElement(mIe,{title:u},X.createElement(s,{colSpan:1},X.createElement(v7,{onClick:e=>o(!a),tabIndex:0},u),X.createElement(uIe,null,a?X.createElement(cIe,null):X.createElement(lIe,null),t)),X.createElement(pIe,{colSpan:i-1},X.createElement(v7,{onClick:e=>o(!a),tabIndex:-1,style:{outline:`none`}},u),a?null:l)),a?n:null)},hIe=$.div(({theme:e})=>({width:`100%`,borderSpacing:0,color:e.color.defaultText})),b7=$.div(({theme:e})=>({display:`flex`,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),x7=$.div(({position:e,theme:t})=>{let 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}}}),S7=$.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})),gIe=()=>X.createElement(hIe,null,X.createElement(b7,null,X.createElement(x7,{position:`first`},X.createElement(S7,{width:`60%`})),X.createElement(x7,{position:`second`},X.createElement(S7,{width:`30%`})),X.createElement(x7,{position:`third`},X.createElement(S7,{width:`60%`})),X.createElement(x7,{position:`last`},X.createElement(S7,{width:`60%`}))),X.createElement(b7,null,X.createElement(x7,{position:`first`},X.createElement(S7,{width:`60%`})),X.createElement(x7,{position:`second`},X.createElement(S7,{width:`80%`}),X.createElement(S7,{width:`30%`})),X.createElement(x7,{position:`third`},X.createElement(S7,{width:`60%`})),X.createElement(x7,{position:`last`},X.createElement(S7,{width:`60%`}))),X.createElement(b7,null,X.createElement(x7,{position:`first`},X.createElement(S7,{width:`60%`})),X.createElement(x7,{position:`second`},X.createElement(S7,{width:`80%`}),X.createElement(S7,{width:`30%`})),X.createElement(x7,{position:`third`},X.createElement(S7,{width:`60%`})),X.createElement(x7,{position:`last`},X.createElement(S7,{width:`60%`}))),X.createElement(b7,null,X.createElement(x7,{position:`first`},X.createElement(S7,{width:`60%`})),X.createElement(x7,{position:`second`},X.createElement(S7,{width:`80%`}),X.createElement(S7,{width:`30%`})),X.createElement(x7,{position:`third`},X.createElement(S7,{width:`60%`})),X.createElement(x7,{position:`last`},X.createElement(S7,{width:`60%`})))),_Ie=$.table(({theme:e,compact:t,inAddonPanel:n,inTabPanel:r})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:`none`,verticalAlign:`top`,textOverflow:`ellipsis`},fontSize:e.typography.size.s2-1,lineHeight:`19px`,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.textMutedColor,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}},marginInline:n||r?0:1,paddingInline:r?3:0,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}}}}})),vIe=$.div({position:`relative`}),yIe=$.div({position:`absolute`,right:22,top:10}),bIe=$(c4)({margin:`-4px -12px -4px 0`}),xIe={alpha:(e,t)=>(e.name??``).localeCompare(t.name??``),requiredFirst:(e,t)=>!!t.type?.required-+!!e.type?.required||(e.name??``).localeCompare(t.name??``),none:null},SIe=(e,t)=>{let n={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return n;Object.entries(e).forEach(([e,t])=>{let{category:r,subcategory:i}=t?.table||{};if(r){let a=n.sections[r]||{ungrouped:[],subsections:{}};if(!i)a.ungrouped.push({key:e,...t});else{let n=a.subsections[i]||[];n.push({key:e,...t}),a.subsections[i]=n}n.sections[r]=a}else if(i){let r=n.ungroupedSubsections[i]||[];r.push({key:e,...t}),n.ungroupedSubsections[i]=r}else n.ungrouped.push({key:e,...t})});let r=xIe[t],i=e=>r?Object.keys(e).reduce((t,n)=>({...t,[n]:e[n].sort(r)}),{}):e;return{ungrouped:r?n.ungrouped.sort(r):n.ungrouped,ungroupedSubsections:i(n.ungroupedSubsections),sections:Object.keys(n.sections).reduce((e,t)=>({...e,[t]:{ungrouped:r?n.sections[t].ungrouped.sort(r):n.sections[t].ungrouped,subsections:i(n.sections[t].subsections)}}),{})}},CIe=(e,t,n)=>{try{return Xhe(e,t,n)}catch(e){return WMe.warn(e.message),!1}},C7=e=>{let{updateArgs:t,resetArgs:n,compact:r,inAddonPanel:i,inTabPanel:a,initialExpandedArgs:o,sort:s=`none`,isLoading:c}=e;if(`error`in e){let{error:t}=e;return X.createElement(B8,null,t,`\xA0`,X.createElement(AZ,{href:`http://storybook.js.org/docs/?ref=ui`,target:`_blank`,withArrow:!0},X.createElement(xq,null),` Read the docs`))}if(c)return X.createElement(gIe,null);let{rows:l,args:u,globals:d}=`rows`in e?e:{rows:void 0,args:void 0,globals:void 0},f=SIe(yNe(l||{},e=>!e?.table?.disable&&CIe(e,u||{},d||{})),s),p=f.ungrouped.length===0,m=Object.entries(f.sections).length===0,h=Object.entries(f.ungroupedSubsections).length===0;if(p&&m&&h)return X.createElement(sIe,{inAddonPanel:i});let g=1;t&&(g+=1),r||(g+=2);let _=Object.keys(f.sections).length>0,v={updateArgs:t,compact:r,inAddonPanel:i,initialExpandedArgs:o};return X.createElement(iZ,null,X.createElement(vIe,null,t&&!c&&n&&X.createElement(yIe,null,X.createElement(bIe,{variant:`ghost`,padding:`small`,onClick:()=>n(),ariaLabel:`Reset controls`},X.createElement(O_e,null))),X.createElement(_Ie,{compact:r,inAddonPanel:i,inTabPanel:a,className:`docblock-argstable sb-unstyled`},X.createElement(`thead`,{className:`docblock-argstable-head`},X.createElement(`tr`,null,X.createElement(`th`,null,X.createElement(`span`,null,`Name`)),r?null:X.createElement(`th`,null,X.createElement(`span`,null,`Description`)),r?null:X.createElement(`th`,null,X.createElement(`span`,null,`Default`)),t?X.createElement(`th`,null,X.createElement(`span`,null,`Control`)):null)),X.createElement(`tbody`,{className:`docblock-argstable-body`},f.ungrouped.map(e=>X.createElement(_7,{key:e.key,row:e,arg:u&&u[e.key],...v})),Object.entries(f.ungroupedSubsections).map(([e,t])=>X.createElement(y7,{key:e,label:e,level:`subsection`,colSpan:g},t.map(e=>X.createElement(_7,{key:e.key,row:e,arg:u&&u[e.key],expandable:_,...v})))),Object.entries(f.sections).map(([e,t])=>X.createElement(y7,{key:e,label:e,level:`section`,colSpan:g},t.ungrouped.map(e=>X.createElement(_7,{key:e.key,row:e,arg:u&&u[e.key],...v})),Object.entries(t.subsections).map(([e,t])=>X.createElement(y7,{key:e,label:e,level:`subsection`,colSpan:g},t.map(e=>X.createElement(_7,{key:e.key,row:e,arg:u&&u[e.key],expandable:_,...v}))))))))))},w7=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,T7=600,wIe=$.h1(nZ,({theme:e})=>({color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:`32px`,[`@media (min-width: ${T7}px)`]:{fontSize:e.typography.size.l1,lineHeight:`36px`,marginBottom:`16px`}})),TIe=$.h2(nZ,({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:`20px`,borderBottom:`none`,marginBottom:15,[`@media (min-width: ${T7}px)`]:{fontSize:e.typography.size.m1,lineHeight:`28px`,marginBottom:24},color:z8(.25,e.color.defaultText)})),EIe=$.div(({theme:e})=>{let 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`}},r={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`?z8(.1,e.color.defaultText):z8(.3,e.color.defaultText),backgroundColor:e.base===`light`?e.color.lighter:e.color.border};return{maxWidth:1e3,width:`100%`,minWidth:0,[w7(`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}},[w7(`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}},[w7(`div`)]:t,[w7(`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}},[w7(`h1`)]:{...t,...n,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[w7(`h2`)]:{...t,...n,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[w7(`h3`)]:{...t,...n,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[w7(`h4`)]:{...t,...n,fontSize:`${e.typography.size.s3}px`},[w7(`h5`)]:{...t,...n,fontSize:`${e.typography.size.s2}px`},[w7(`h6`)]:{...t,...n,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[w7(`hr`)]:{border:`0 none`,borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[w7(`img`)]:{maxWidth:`100%`},[w7(`li`)]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:`24px`,"& + li":{marginTop:`.25em`},"& ul, & ol":{marginTop:`.25em`,marginBottom:0},"& code":r},[w7(`ol`)]:{...t,margin:`16px 0`,paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[w7(`p`)]:{...t,margin:`16px 0`,fontSize:e.typography.size.s2,lineHeight:`24px`,color:e.color.defaultText,"& code":r},[w7(`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`}},[w7(`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`}}},[w7(`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}},[w7(`ul`)]:{...t,margin:`16px 0`,paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:`disc`}}}),DIe=$.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: ${T7}px)`]:{}})),OIe=({children:e,toc:t})=>X.createElement(DIe,{className:`sbdocs sbdocs-wrapper`},t,X.createElement(EIe,{className:`sbdocs sbdocs-content`},e));globalThis&&globalThis.__DOCS_CONTEXT__===void 0&&(globalThis.__DOCS_CONTEXT__=(0,X.createContext)(null),globalThis.__DOCS_CONTEXT__.displayName=`DocsContext`);var E7=globalThis?globalThis.__DOCS_CONTEXT__:(0,X.createContext)(null);function kIe(e,t){let n=AIe([e],t);return n&&n[0]}function AIe(e,t){let[n,r]=(0,X.useState)({});return(0,X.useEffect)(()=>{Promise.all(e.map(async e=>{let n=await t.loadStory(e);r(t=>t[e]===n?t:{...t,[e]:n})}))}),e.map(e=>{if(n[e])return n[e];try{return t.storyById(e)}catch{return}})}var D7=(e,t)=>{let{of:n,meta:r}=e;if(`of`in e&&n===void 0)throw Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");return r&&t.referenceMeta(r,!1),t.resolveOf(n||`story`,[`story`]).story.id},jIe=(e,t,n)=>{let{parameters:r={}}=t||{},{docs:i={}}=r,a=i.story||{};return i.disable?null:e.inline??a.inline??!1?{story:t,inline:!0,height:e.height??a.height,autoplay:e.autoplay??a.autoplay??!1,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:n.renderStoryToElement}:{story:t,inline:!1,height:e.height??a.height??a.iframeHeight??`100px`,primary:!!e.__primary}},MIe=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=(0,X.useContext)(E7),n=kIe(D7(e,t),t);if(!n)return X.createElement(M7,null);let r=jIe(e,n,t);return r?X.createElement(RIe,{...r}):null},O7=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}`}),k7=(e,t={})=>{let[n,r]=(globalThis.PREVIEW_URL||`iframe.html`).split(`?`),i=new URLSearchParams(r||``);return Object.entries(t).forEach(([e,t])=>{i.set(e,t)}),i.set(`id`,e),`${n}?${i.toString()}`},{window:NIe}=globalThis,PIe=class extends X.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=NIe.document.getElementById(e)}shouldComponentUpdate(e){let{scale:t}=e;return t!==this.props.scale&&this.setIframeBodyStyle({width:`${t*100}%`,height:`${t*100}%`,transform:`scale(${1/t})`,transformOrigin:`top left`}),!1}setIframeBodyStyle(e){return Object.assign(this.iframe.contentDocument.body.style,e)}render(){let{id:e,title:t,src:n,allowFullScreen:r,scale:i,...a}=this.props;return X.createElement(`iframe`,{id:e,title:t,src:n,...r?{allow:`fullscreen`}:{},loading:`lazy`,...a})}},A7=(0,X.createContext)({scale:1}),j7=({story:e,primary:t})=>`story--${e.id}${t?`--primary`:``}`,FIe=e=>{let t=(0,X.useRef)(),[n,r]=(0,X.useState)(!0),[i,a]=(0,X.useState)(),{story:o,height:s,autoplay:c,forceInitialArgs:l,renderStoryToElement:u}=e;return(0,X.useEffect)(()=>{if(!(o&&t.current))return()=>{};let e=t.current,n=u(o,e,{showMain:()=>{},showError:({title:e,description:t})=>a(Error(`${e} - ${t}`)),showException:e=>a(e)},{autoplay:c,forceInitialArgs:l});return r(!1),()=>{Promise.resolve().then(()=>n())}},[c,u,o]),i?X.createElement(`pre`,null,X.createElement(R4,{error:i})):X.createElement(X.Fragment,null,s?X.createElement(`style`,null,`#${j7(e)} { min-height: ${s}; transform: translateZ(0); overflow: auto }`):null,n&&X.createElement(M7,null),X.createElement(`div`,{ref:t,id:`${j7(e)}-inner`,"data-name":o.name}))},IIe=({story:e,height:t=`500px`})=>X.createElement(`div`,{style:{width:`100%`,height:t}},X.createElement(A7.Consumer,null,({scale:t})=>X.createElement(PIe,{key:`iframe`,id:`iframe--${e.id}`,title:e.name,src:k7(e.id,{viewMode:`story`}),allowFullScreen:!0,scale:t,style:{width:`100%`,height:`100%`,border:`0 none`}}))),LIe=$.strong(({theme:e})=>({color:e.color.orange})),RIe=e=>{let{inline:t,story:n}=e;return t&&!e.autoplay&&n.usesMount?X.createElement(LIe,null,`This story mounts inside of play. Set`,` `,X.createElement(`a`,{href:`https://storybook.js.org/docs/api/doc-blocks/doc-block-story?ref=ui#autoplay`},`autoplay`),` `,`to true to view this story.`):X.createElement(`div`,{id:j7(e),className:`sb-story sb-unstyled`,"data-story-block":`true`},t?X.createElement(FIe,{...e}):X.createElement(IIe,{...e}))},M7=()=>X.createElement(u8,null),zIe=$(U6)({position:`absolute`,left:0,right:0,top:0,transition:`transform .2s linear`,display:`flex`,alignItems:`center`}),N7=$.div({display:`flex`,alignItems:`center`,gap:4}),P7=$.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`})),BIe=({isLoading:e,storyId:t,zoom:n,resetZoom:r,...i})=>X.createElement(zIe,{innerStyle:{gap:4,paddingInline:7,justifyContent:`space-between`},...i},X.createElement(N7,{key:`left`},e?[1,2,3].map(e=>X.createElement(P7,{key:e})):X.createElement(X.Fragment,null,X.createElement(c4,{padding:`small`,variant:`ghost`,key:`zoomin`,onClick:e=>{e.preventDefault(),n(.8)},ariaLabel:`Zoom in`},X.createElement(p_e,null)),X.createElement(c4,{padding:`small`,variant:`ghost`,key:`zoomout`,onClick:e=>{e.preventDefault(),n(1.25)},ariaLabel:`Zoom out`},X.createElement(m_e,null)),X.createElement(c4,{padding:`small`,variant:`ghost`,key:`zoomreset`,onClick:e=>{e.preventDefault(),r()},ariaLabel:`Reset zoom`},X.createElement(h_e,null)))),e?X.createElement(N7,{key:`right`},X.createElement(P7,null)):t&&X.createElement(N7,{key:`right`},X.createElement(c4,{asChild:!0,padding:`small`,variant:`ghost`,key:`opener`,ariaLabel:`Open canvas in new tab`},X.createElement(`a`,{href:k7(t),target:`_blank`,rel:`noopener noreferrer`},X.createElement(C_e,null))))),VIe=$.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`?`100%`:`calc(100% - 20px)`,display:`block`}:{maxWidth:n===`fullscreen`?`100%`:`calc(100% - 20px)`,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)`}}:{}),F7=$(H8)(({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)`:F8(.05,e.background.content),color:e.color.lightest,button:{background:e.base===`light`?`rgba(0, 0, 0, 0.85)`:F8(.05,e.background.content)}})),HIe=$.div(({theme:e,withSource:t,isExpanded:n})=>({position:`relative`,overflow:`hidden`,margin:`25px 0 40px`,...O7(e),borderBottomLeftRadius:t&&n&&0,borderBottomRightRadius:t&&n&&0,borderBottomWidth:n&&0,"h3 + &":{marginTop:`16px`}}),({withToolbar:e})=>e&&{paddingTop:40}),UIe=(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)}};case t:return{source:X.createElement(F7,{...e,dark:!0}),actionItem:{title:`Hide code`,className:`docblock-code-toggle docblock-code-toggle--expanded`,onClick:()=>n(!1)}};default:return{source:X.createElement(F7,{...e,dark:!0}),actionItem:{title:`Show code`,className:`docblock-code-toggle`,onClick:()=>n(!0)}}}};function WIe(e){if(X.Children.count(e)===1){let t=e;if(t.props)return t.props}return null}var GIe=$(BIe)({position:`absolute`,top:0,left:0,right:0,height:40}),KIe=$.div({overflow:`hidden`,position:`relative`}),I7=({isLoading:t,isColumn:n,columns:r,children:i,withSource:a,withToolbar:o=!1,isExpanded:s=!1,additionalActions:c,className:l,layout:u=`padded`,inline:d=!1,...f})=>{let[p,m]=(0,X.useState)(s),{source:h,actionItem:g}=UIe(a,p,m),[_,v]=(0,X.useState)(1),y=[l,`sbdocs`,`sbdocs-preview`,`sb-unstyled`],b=a?[g]:[],[x,S]=(0,X.useState)(c?[...c]:[]),C=[...b,...x],{window:w}=globalThis,T=(0,X.useContext)(E7),E=(0,X.useCallback)(async t=>{let{createCopyToClipboardFunction:n}=await e(async()=>{let{createCopyToClipboardFunction:e}=await Promise.resolve().then(()=>vwe);return{createCopyToClipboardFunction:e}},void 0,import.meta.url);n()},[]),D=e=>{let t=w.getSelection();t&&t.type===`Range`||(e.preventDefault(),x.filter(e=>e.title===`Copied`).length===0&&E(h?.props.code??``).then(()=>{S([...x,{title:`Copied`,onClick:()=>{}}]),w.setTimeout(()=>S(x.filter(e=>e.title!==`Copied`)),1500)}))},O=WIe(i);return X.createElement(HIe,{withSource:a,withToolbar:o,...f,className:y.join(` `)},o&&X.createElement(GIe,{isLoading:t,border:!0,zoom:e=>v(_*e),resetZoom:()=>v(1),storyId:!t&&O?D7(O,T):void 0}),X.createElement(A7.Provider,{value:{scale:_}},X.createElement(KIe,{className:`docs-story`,onCopyCapture:a&&D},X.createElement(VIe,{isColumn:n||!Array.isArray(i),columns:r,layout:u,inline:d},X.createElement(I4.Element,{centered:u===`centered`,scale:d?_:1},Array.isArray(i)?i.map((e,t)=>X.createElement(`div`,{key:t},e)):X.createElement(`div`,null,i))),X.createElement(fK,{actionItems:C}))),a&&p&&h)};$(I7)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));var qIe=$(i8)({height:`fit-content`}),L7=({tabs:e,...t})=>{let n=Object.entries(e);if(n.length===1)return X.createElement(C7,{...n[0][1],...t});let r=n.map(([e,n],r)=>({id:`prop_table_div_${e}`,title:e,children:()=>{let i=r===0?t:{sort:t.sort};return X.createElement(C7,{inTabPanel:!0,key:`prop_table_${e}`,...n,...i})}}));return X.createElement(qIe,{tabs:r})};$.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base===`light`?z8(.4,e.color.defaultText):z8(.6,e.color.defaultText)})),$.div({overflow:`hidden`,whiteSpace:`nowrap`,textOverflow:`ellipsis`}),$.div({display:`flex`,flexDirection:`row`,alignItems:`baseline`,"&:not(:last-child)":{marginBottom:`1rem`}}),$.div(nZ,({theme:e})=>({...O7(e),margin:`25px 0 40px`,padding:`30px 20px`})),$.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText})),$.div(({theme:e})=>({color:z8(.3,e.color.defaultText)})),$.div({flex:`0 0 30%`,lineHeight:`20px`,marginTop:5}),$.div(({theme:e})=>({flex:1,textAlign:`center`,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:`hidden`,color:z8(.3,e.color.defaultText),"> div":{display:`inline-block`,overflow:`hidden`,maxWidth:`100%`,textOverflow:`ellipsis`},span:{display:`block`,marginTop:2}})),$.div({display:`flex`,flexDirection:`row`}),$.div(({background:e})=>({position:`relative`,flex:1,"&::before":{position:`absolute`,top:0,left:0,width:`100%`,height:`100%`,background:e,content:`""`}})),$.div(({theme:e})=>({...O7(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`})),$.div({display:`flex`,flexDirection:`column`,flex:1,position:`relative`,marginBottom:30}),$.div({flex:1,display:`flex`,flexDirection:`row`}),$.div({display:`flex`,alignItems:`flex-start`}),$.div({flex:`0 0 30%`}),$.div({flex:1}),$.div(({theme:e})=>({display:`flex`,flexDirection:`row`,alignItems:`center`,paddingBottom:20,fontWeight:e.typography.weight.bold,color:z8(.3,e.color.defaultText)})),$.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:`20px`,display:`flex`,flexDirection:`column`})),$.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`})),$.div(({theme:e})=>({...O7(e),overflow:`hidden`,height:40,width:40,display:`flex`,alignItems:`center`,justifyContent:`center`,flex:`none`,"> img, > svg":{width:20,height:20}})),$.div({display:`inline-flex`,flexDirection:`row`,alignItems:`center`,width:`100%`}),$.div({display:`grid`,gridTemplateColumns:`repeat(auto-fill, minmax(140px, 1fr))`,gridGap:`8px 16px`,gridAutoFlow:`row dense`,gridAutoRows:50});var{NAVIGATE_URL:JIe}=__STORYBOOK_MODULE_CORE_EVENTS__;function YIe(e){let t=[].forEach,n=[].some,r=typeof window<`u`&&document.body,i,a=!0,o=0;function s(e,t){let n=t.appendChild(l(e));if(e.children.length){let t=u(e.isCollapsed);e.children.forEach(e=>{s(e,t)}),n.appendChild(t)}}function c(e,t){let n=u(!1);if(t.forEach(e=>{s(e,n)}),i=e||i,i!==null)return i.firstChild&&i.removeChild(i.firstChild),t.length===0?i:i.appendChild(n)}function l(n){let r=document.createElement(`li`),i=document.createElement(`a`);return e.listItemClass&&r.setAttribute(`class`,e.listItemClass),e.onClick&&(i.onclick=e.onClick),e.includeTitleTags&&i.setAttribute(`title`,n.textContent),e.includeHtml&&n.childNodes.length?t.call(n.childNodes,e=>{i.appendChild(e.cloneNode(!0))}):i.textContent=n.textContent,i.setAttribute(`href`,`${e.basePath}#${n.id}`),i.setAttribute(`class`,`${e.linkClass+` `}node-name--${n.nodeName} ${e.extraLinkClasses}`),r.appendChild(i),r}function u(t){let n=e.orderedList?`ol`:`ul`,r=document.createElement(n),i=e.listClass+` `+e.extraListClasses;return t&&(i=i+` `+e.collapsibleClass,i=i+` `+e.isCollapsedClass),r.setAttribute(`class`,i),r}function d(){let t=S(),n=document.querySelector(e.positionFixedSelector);e.fixedSidebarOffset===`auto`&&(e.fixedSidebarOffset=i.offsetTop),t>e.fixedSidebarOffset?n.className.indexOf(e.positionFixedClass)===-1&&(n.className+=` `+e.positionFixedClass):n.className=n.className.replace(` `+e.positionFixedClass,``)}function f(t){let n=0;return t!==null&&(n=t.offsetTop,e.hasInnerContainers&&(n+=f(t.offsetParent))),n}function p(e,t){return e&&e.className!==t&&(e.className=t),e}function m(n,r){e.positionFixedSelector&&d();let s=n,c=r?.target?.getAttribute?r?.target?.getAttribute(`href`):null,l=c&&c.charAt(0)===`#`?y(c.replace(`#`,``)):!1,u=a||l;if(r&&o<5&&o++,u&&i&&s.length>0){let n=C(s),r=i.querySelector(`.${e.activeLinkClass}`),a=n.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,`\\$1`),u=window.location.hash.replace(`#`,``),d=a,f=b();c&&l?d=c.replace(`#`,``):u&&u!==a&&f&&(y(a)||o<=2)&&(d=u);let m=i.querySelector(`.${e.linkClass}[href="${e.basePath}#${d}"]`);if(r===m)return;let g=i.querySelectorAll(`.${e.linkClass}`);t.call(g,t=>{p(t,t.className.replace(` `+e.activeLinkClass,``))});let _=i.querySelectorAll(`.${e.listItemClass}`);t.call(_,t=>{p(t,t.className.replace(` `+e.activeListItemClass,``))}),m&&m.className.indexOf(e.activeLinkClass)===-1&&(m.className+=` `+e.activeLinkClass);let v=m?.parentNode;v&&v.className.indexOf(e.activeListItemClass)===-1&&(v.className+=` `+e.activeListItemClass);let x=i.querySelectorAll(`.${e.listClass}.${e.collapsibleClass}`);t.call(x,t=>{t.className.indexOf(e.isCollapsedClass)===-1&&(t.className+=` `+e.isCollapsedClass)}),m?.nextSibling&&m.nextSibling.className.indexOf(e.isCollapsedClass)!==-1&&p(m.nextSibling,m.nextSibling.className.replace(` `+e.isCollapsedClass,``)),h(m?.parentNode.parentNode)}}function h(t){return t&&t.className.indexOf(e.collapsibleClass)!==-1&&t.className.indexOf(e.isCollapsedClass)!==-1?(p(t,t.className.replace(` `+e.isCollapsedClass,``)),h(t.parentNode.parentNode)):t}function g(t){let n=t.target||t.srcElement;typeof n.className!=`string`||n.className.indexOf(e.linkClass)===-1||(a=!1)}function _(){a=!0}function v(){return a}function y(t){let n=x();return(document?.getElementById(t)).offsetTop>n.offsetHeight-n.clientHeight*1.4-e.bottomModeThreshold}function b(){let t=x(),n=t.scrollHeight>t.clientHeight,r=S()+t.clientHeight>t.offsetHeight-e.bottomModeThreshold;return n&&r}function x(){let t;return t=e.scrollContainer&&document.querySelector(e.scrollContainer)?document.querySelector(e.scrollContainer):document.documentElement||r,t}function S(){return x()?.scrollTop||0}function C(t,r=S()){let i;return n.call(t,(n,a)=>{if(f(n)>r+e.headingsOffset+10)return i=t[a===0?a:a-1],!0;if(a===t.length-1)return i=t[t.length-1],!0}),i}function w(e){let t=S(),n=C(e,t),r=b();if((!n||t<5)&&!r)window.location.hash===`#`||window.location.hash===``||window.history.pushState(null,null,`#`);else if(n&&!r){let e=`#${n.id}`;window.location.hash!==e&&window.history.pushState(null,null,e)}}return{enableTocAnimation:_,disableTocAnimation:g,render:c,updateToc:m,getCurrentlyHighlighting:v,getTopHeader:C,getScrollTop:S,updateUrlHashForHeader:w}}var XIe={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){},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){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:``,disableTocScrollSync:!1,tocScrollingWrapper:null,tocScrollOffset:30,bottomModeThreshold:30};function ZIe(e){let t=[].reduce;function n(e){return e[e.length-1]}function r(e){return+e.nodeName.toUpperCase().replace(`H`,``)}function i(e){try{return e instanceof window.HTMLElement||e instanceof window.parent.HTMLElement}catch{return e instanceof window.HTMLElement}}function a(t){if(!i(t))return t;if(e.ignoreHiddenElements&&(!t.offsetHeight||!t.offsetParent))return null;let n=t.getAttribute(`data-heading-label`)||(e.headingLabelCallback?String(e.headingLabelCallback(t.innerText)):(t.innerText||t.textContent).trim()),a={id:t.id,children:[],nodeName:t.nodeName,headingLevel:r(t),textContent:n};return e.includeHtml&&(a.childNodes=t.childNodes),e.headingObjectCallback?e.headingObjectCallback(a,t):a}function o(t,r){let i=a(t),o=i.headingLevel,s=r,c=n(s),l=o-(c?c.headingLevel:0);for(;l>0&&(c=n(s),!(c&&o===c.headingLevel));)c&&c.children!==void 0&&(s=c.children),l--;return o>=e.collapseDepth&&(i.isCollapsed=!0),s.push(i),s}function s(t,n){let r=n;e.ignoreSelector&&(r=n.split(`,`).map(function(t){return`${t.trim()}:not(${e.ignoreSelector})`}));try{return t.querySelectorAll(r)}catch{return console.warn(`Headers not found with selector: ${r}`),null}}function c(e){return t.call(e,function(e,t){let n=a(t);return n&&o(n,e.nest),e},{nest:[]})}return{nestHeadingsArray:c,selectHeadings:s}}function QIe(e){var t=e.duration,n=e.offset;if(typeof window>`u`||typeof location>`u`)return;var r=location.hash?o(location.href):location.href;i();function i(){document.body.addEventListener(`click`,r,!1);function r(r){!a(r.target)||r.target.className.indexOf(`no-smooth-scroll`)>-1||r.target.href.charAt(r.target.href.length-2)===`#`&&r.target.href.charAt(r.target.href.length-1)===`!`||r.target.className.indexOf(e.linkClass)===-1||$Ie(r.target.hash,{duration:t,offset:n,callback:function(){s(r.target.hash)}})}}function a(e){return e.tagName.toLowerCase()===`a`&&(e.hash.length>0||e.href.charAt(e.href.length-1)===`#`)&&(o(e.href)===r||o(e.href)+`#`===r)}function o(e){return e.slice(0,e.lastIndexOf(`#`))}function s(e){var t=document.getElementById(e.substring(1));t&&(/^(?:a|select|input|button|textarea)$/i.test(t.tagName)||(t.tabIndex=-1),t.focus())}}function $Ie(e,t){var n=window.pageYOffset,r={duration:t.duration,offset:t.offset||0,callback:t.callback,easing:t.easing||d},i=document.querySelector(`[id="`+decodeURI(e).split(`#`).join(``)+`"]`)||document.querySelector(`[id="`+e.split(`#`).join(``)+`"]`),a=typeof e==`string`?r.offset+(e?i&&i.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):e,o=typeof r.duration==`function`?r.duration(a):r.duration,s,c;requestAnimationFrame(function(e){s=e,l(e)});function l(e){c=e-s,window.scrollTo(0,r.easing(c,n,a,o)),c<o?requestAnimationFrame(l):u()}function u(){window.scrollTo(0,n+a),typeof r.callback==`function`&&r.callback()}function d(e,t,n,r){return e/=r/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)}}function eLe(e){let t=e.tocScrollingWrapper||e.tocElement||document.querySelector(e.tocSelector);if(t&&t.scrollHeight>t.clientHeight){let n=t.querySelector(`.${e.activeListItemClass}`);if(n){let r=n.offsetTop-e.tocScrollOffset;t.scrollTop=r>0?r:0}}}var R7={},z7,B7,V7,H7,U7;function W7(e){let t=!1;R7=rLe(XIe,e||{}),R7.scrollSmooth&&(R7.duration=R7.scrollSmoothDuration,R7.offset=R7.scrollSmoothOffset,QIe(R7)),z7=YIe(R7),B7=ZIe(R7),G7();let n=aLe(R7);if(n===null)return;let r=J7(R7);if(r===null||(V7=B7.selectHeadings(n,R7.headingSelector),V7===null))return;let i=B7.nestHeadingsArray(V7).nest;if(!R7.skipRendering)z7.render(r,i);else return this;let a=!1;H7=((e,t)=>iLe(e,t,R7.scrollHandlerType))(e=>{z7.updateToc(V7,e),!R7.disableTocScrollSync&&!a&&eLe(R7),R7.enableUrlHashUpdateOnScroll&&t&&z7.getCurrentlyHighlighting()&&z7.updateUrlHashForHeader(V7);let n=e?.target?.scrollingElement?.scrollTop===0;(e&&(e.eventPhase===0||e.currentTarget===null)||n)&&(z7.updateToc(V7),R7.scrollEndCallback?.(e))},R7.scrollHandlerTimeout||R7.throttleTimeout),t||=(H7(),!0),window.onhashchange=window.onscrollend=e=>{H7(e)},R7.scrollContainer&&document.querySelector(R7.scrollContainer)?(document.querySelector(R7.scrollContainer).addEventListener(`scroll`,H7,!1),document.querySelector(R7.scrollContainer).addEventListener(`resize`,H7,!1)):(document.addEventListener(`scroll`,H7,!1),document.addEventListener(`resize`,H7,!1));let o=null;U7=K7(e=>{a=!0,R7.scrollSmooth&&z7.disableTocAnimation(e),z7.updateToc(V7,e),o&&clearTimeout(o),o=setTimeout(()=>{z7.enableTocAnimation()},R7.scrollSmoothDuration),setTimeout(()=>{a=!1},R7.scrollSmoothDuration+100)},R7.throttleTimeout),R7.scrollContainer&&document.querySelector(R7.scrollContainer)?document.querySelector(R7.scrollContainer).addEventListener(`click`,U7,!1):document.addEventListener(`click`,U7,!1)}function G7(){let e=J7(R7);e!==null&&(R7.skipRendering||e&&(e.innerHTML=``),R7.scrollContainer&&document.querySelector(R7.scrollContainer)?(document.querySelector(R7.scrollContainer).removeEventListener(`scroll`,H7,!1),document.querySelector(R7.scrollContainer).removeEventListener(`resize`,H7,!1),z7&&document.querySelector(R7.scrollContainer).removeEventListener(`click`,U7,!1)):(document.removeEventListener(`scroll`,H7,!1),document.removeEventListener(`resize`,H7,!1),z7&&document.removeEventListener(`click`,U7,!1)))}function tLe(e){G7(),W7(e||R7)}var nLe=Object.prototype.hasOwnProperty;function rLe(...e){let t={};for(let n=0;n<e.length;n++){let r=e[n];for(let e in r)nLe.call(r,e)&&(t[e]=r[e])}return t}function K7(e,t,n){t||=250;let r,i;return function(...a){let o=n||this,s=+new Date;r&&s<r+t?(clearTimeout(i),i=setTimeout(()=>{r=s,e.apply(o,a)},t)):(r=s,e.apply(o,a))}}function q7(e,t){let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>e.apply(this,r),t)}}function iLe(e,t,n=`auto`){switch(n){case`debounce`:return q7(e,t);case`throttle`:return K7(e,t);default:return t<334?q7(e,t):K7(e,t)}}function aLe(e){try{return e.contentElement||document.querySelector(e.contentSelector)}catch{return console.warn(`Contents element not found: ${e.contentSelector}`),null}}function J7(e){try{return e.tocElement||document.querySelector(e.tocSelector)}catch{return console.warn(`TOC element not found: ${e.tocSelector}`),null}}var Y7={destroy:G7,init:W7,refresh:tLe},oLe=$.aside(()=>({width:`10rem`,"@media (max-width: 768px)":{display:`none`}})),sLe=$.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`}})),cLe=$.p(({theme:e})=>({fontWeight:600,fontSize:`0.875em`,color:e.color.defaultText,textTransform:`uppercase`,marginBottom:10})),lLe=({headingId:e,title:t})=>typeof t==`string`||!t?X.createElement(cLe,{as:`h2`,id:e,className:t?``:`sb-sr-only`},t||`Table of contents`):X.createElement(`div`,{id:e},t),uLe=({title:e,disable:t,headingSelector:n,contentsSelector:r,ignoreSelector:i,unsafeTocbotOptions:a,channel:o,className:s})=>{(0,X.useEffect)(()=>{if(t)return()=>{};let e={tocSelector:`.toc-wrapper`,contentSelector:r??`.sbdocs-content`,headingSelector:n??`h3`,ignoreSelector:i??`.docs-story *, .skip-toc`,headingsOffset:40,scrollSmoothOffset:-40,orderedList:!1,onClick:e=>{if(e.preventDefault(),e.currentTarget instanceof HTMLAnchorElement){let[,t]=e.currentTarget.href.split(`#`);t&&o.emit(JIe,`#${t}`)}},...a},s=setTimeout(()=>Y7.init(e),100);return()=>{clearTimeout(s),Y7.destroy()}},[o,t,i,r,n,a]);let c=`table-of-contents`;return X.createElement(oLe,{className:s},t?null:X.createElement(sLe,{"aria-labelledby":c},X.createElement(lLe,{headingId:c,title:e}),X.createElement(`div`,{className:`toc-wrapper`})))},dLe=e=>`anchor--${e}`,fLe=({storyId:e,children:t})=>X.createElement(`div`,{id:dLe(e),className:`sb-anchor`},t),{filterArgTypes:pLe}=__STORYBOOK_MODULE_PREVIEW_API__,X7=(e,t)=>(0,X.useContext)(E7).resolveOf(e,t),mLe=e=>e.split(`-`).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(``),hLe=e=>{if(e)return typeof e==`string`?e.includes(`-`)?mLe(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function gLe(e,t=`start`){e.scrollIntoView({behavior:`smooth`,block:t,inline:`nearest`})}var _Le=Object.create,Z7=Object.defineProperty,vLe=Object.getOwnPropertyDescriptor,Q7=Object.getOwnPropertyNames,yLe=Object.getPrototypeOf,bLe=Object.prototype.hasOwnProperty,$7=(e,t)=>function(){return t||(0,e[Q7(e)[0]])((t={exports:{}}).exports,t),t.exports},xLe=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of Q7(t))!bLe.call(e,i)&&i!==n&&Z7(e,i,{get:()=>t[i],enumerable:!(r=vLe(t,i))||r.enumerable});return e},e9=(e,t,n)=>(n=e==null?{}:_Le(yLe(e)),xLe(t||!e||!e.__esModule?Z7(n,`default`,{value:e,enumerable:!0}):n,e)),SLe=[`bubbles`,`cancelBubble`,`cancelable`,`composed`,`currentTarget`,`defaultPrevented`,`eventPhase`,`isTrusted`,`returnValue`,`srcElement`,`target`,`timeStamp`,`type`],CLe=[`detail`];function wLe(e){let t=SLe.filter(t=>e[t]!==void 0).reduce((t,n)=>(t[n]=e[n],t),{});if(e instanceof CustomEvent)for(let n of CLe.filter(t=>e[t]!==void 0))t[n]=e[n];return t}var t9=$7({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),TLe=$7({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),ELe=$7({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),DLe=$7({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),OLe=$7({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),kLe=$7({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),n9=$7({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),ALe=$7({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),jLe=$7({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),MLe=$7({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),NLe=$7({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),PLe=$7({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),FLe=$7({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),ILe=$7({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),LLe=$7({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(e,t){t.exports=Number.isNaN||function(e){return e!==e}}}),RLe=$7({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var n=LLe();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}}}),zLe=$7({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),r9=$7({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var n=zLe();if(n)try{n([],`length`)}catch{n=null}t.exports=n}}),BLe=$7({"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}}),i9=$7({"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 e={},t=Symbol(`test`),n=Object(t);if(typeof t==`string`||Object.prototype.toString.call(t)!==`[object Symbol]`||Object.prototype.toString.call(n)!==`[object Symbol]`)return!1;var r=42;for(var i in e[t]=r,e)return!1;if(typeof Object.keys==`function`&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0}}}),a9=$7({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var n=typeof Symbol<`u`&&Symbol,r=i9();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}}}),o9=$7({"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}}),s9=$7({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){t.exports=t9().getPrototypeOf||null}}),VLe=$7({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(e,t){var n=`Function.prototype.bind called on incompatible `,r=Object.prototype.toString,i=Math.max,a=`[object Function]`,o=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},s=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},c=function(e,t){for(var n=``,r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};t.exports=function(e){var t=this;if(typeof t!=`function`||r.apply(t)!==a)throw TypeError(n+t);for(var l=s(arguments,1),u,d=function(){if(this instanceof u){var n=t.apply(this,o(l,arguments));return Object(n)===n?n:this}return t.apply(e,o(l,arguments))},f=i(0,t.length-l.length),p=[],m=0;m<f;m++)p[m]=`$`+m;if(u=Function(`binder`,`return function (`+c(p,`,`)+`){ return binder.apply(this,arguments); }`)(d),t.prototype){var h=function(){};h.prototype=t.prototype,u.prototype=new h,h.prototype=null}return u}}}),c9=$7({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var n=VLe();t.exports=Function.prototype.bind||n}}),l9=$7({"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}}),u9=$7({"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}}),HLe=$7({"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}}),ULe=$7({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var n=c9(),r=u9(),i=l9();t.exports=HLe()||n.call(i,r)}}),d9=$7({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var n=c9(),r=n9(),i=l9(),a=ULe();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}}}),WLe=$7({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var n=d9(),r=r9(),i;try{i=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var a=!!i&&r&&r(Object.prototype,`__proto__`),o=Object,s=o.getPrototypeOf;t.exports=a&&typeof a.get==`function`?n([a.get]):typeof s==`function`?(function(e){return s(e==null?e:o(e))}):!1}}),GLe=$7({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var n=o9(),r=s9(),i=WLe();t.exports=n?function(e){return n(e)}:r?function(e){if(!e||typeof e!=`object`&&typeof e!=`function`)throw TypeError(`getProto: not an object`);return r(e)}:i?function(e){return i(e)}:null}}),f9=$7({"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e,t){var n=Function.prototype.call,r=Object.prototype.hasOwnProperty;t.exports=c9().call(n,r)}}),KLe=$7({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var n,r=t9(),i=TLe(),a=ELe(),o=DLe(),s=OLe(),c=kLe(),l=n9(),u=ALe(),d=jLe(),f=MLe(),p=NLe(),m=PLe(),h=FLe(),g=ILe(),_=RLe(),v=Function,y=function(e){try{return v(`"use strict"; return (`+e+`).constructor;`)()}catch{}},b=r9(),x=BLe(),S=function(){throw new l},C=b?(function(){try{return arguments.callee,S}catch{try{return b(arguments,`callee`).get}catch{return S}}})():S,w=a9()(),T=GLe(),E=s9(),D=o9(),O=u9(),k=l9(),A={},j=typeof Uint8Array>`u`||!T?n:T(Uint8Array),M={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?n:ArrayBuffer,"%ArrayIteratorPrototype%":w&&T?T([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":A,"%AsyncGenerator%":A,"%AsyncGeneratorFunction%":A,"%AsyncIteratorPrototype%":A,"%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%":a,"%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%":v,"%GeneratorFunction%":A,"%Int8Array%":typeof Int8Array>`u`?n:Int8Array,"%Int16Array%":typeof Int16Array>`u`?n:Int16Array,"%Int32Array%":typeof Int32Array>`u`?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&T?T(T([][Symbol.iterator]())):n,"%JSON%":typeof JSON==`object`?JSON:n,"%Map%":typeof Map>`u`?n:Map,"%MapIteratorPrototype%":typeof Map>`u`||!w||!T?n:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?n:Promise,"%Proxy%":typeof Proxy>`u`?n:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":typeof Reflect>`u`?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?n:Set,"%SetIteratorPrototype%":typeof Set>`u`||!w||!T?n:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&T?T(``[Symbol.iterator]()):n,"%Symbol%":w?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":C,"%TypedArray%":j,"%TypeError%":l,"%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%":u,"%WeakMap%":typeof WeakMap>`u`?n:WeakMap,"%WeakRef%":typeof WeakRef>`u`?n:WeakRef,"%WeakSet%":typeof WeakSet>`u`?n:WeakSet,"%Function.prototype.call%":k,"%Function.prototype.apply%":O,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":E,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":h,"%Math.round%":g,"%Math.sign%":_,"%Reflect.getPrototypeOf%":D};if(T)try{null.error}catch(e){N=T(T(e)),M[`%Error.prototype%`]=N}var N,P=function e(t){var n;if(t===`%AsyncFunction%`)n=y(`async function () {}`);else if(t===`%GeneratorFunction%`)n=y(`function* () {}`);else if(t===`%AsyncGeneratorFunction%`)n=y(`async function* () {}`);else if(t===`%AsyncGenerator%`){var r=e(`%AsyncGeneratorFunction%`);r&&(n=r.prototype)}else if(t===`%AsyncIteratorPrototype%`){var i=e(`%AsyncGenerator%`);i&&T&&(n=T(i.prototype))}return M[t]=n,n},ee={__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`]},te=c9(),F=f9(),I=te.call(k,Array.prototype.concat),ne=te.call(O,Array.prototype.splice),re=te.call(k,String.prototype.replace),ie=te.call(k,String.prototype.slice),L=te.call(k,RegExp.prototype.exec),ae=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,oe=/\\(\\)?/g,se=function(e){var t=ie(e,0,1),n=ie(e,-1);if(t===`%`&&n!==`%`)throw new c("invalid intrinsic syntax, expected closing `%`");if(n===`%`&&t!==`%`)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return re(e,ae,function(e,t,n,i){r[r.length]=n?re(i,oe,`$1`):t||e}),r},ce=function(e,t){var n=e,r;if(F(ee,n)&&(r=ee[n],n=`%`+r[0]+`%`),F(M,n)){var i=M[n];if(i===A&&(i=P(n)),typeof i>`u`&&!t)throw new l(`intrinsic `+e+` exists, but is not available. Please file an issue!`);return{alias:r,name:n,value:i}}throw new c(`intrinsic `+e+` does not exist!`)};t.exports=function(e,t){if(typeof e!=`string`||e.length===0)throw new l(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof t!=`boolean`)throw new l(`"allowMissing" argument must be a boolean`);if(L(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=se(e),r=n.length>0?n[0]:``,i=ce(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,u=i.alias;u&&(r=u[0],ne(n,I([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=ie(p,0,1),h=ie(p,-1);if((m===`"`||m===`'`||m==="`"||h===`"`||h===`'`||h==="`")&&m!==h)throw new c(`property names with quotes must have matching quotes`);if((p===`constructor`||!f)&&(s=!0),r+=`.`+p,a=`%`+r+`%`,F(M,a))o=M[a];else if(o!=null){if(!(p in o)){if(!t)throw new l(`base intrinsic for `+e+` exists, but the property is not available.`);return}if(b&&d+1>=n.length){var g=b(o,p);f=!!g,o=f&&`get`in g&&!(`originalValue`in g.get)?g.get:o[p]}else f=F(o,p),o=o[p];f&&!s&&(M[a]=o)}}return o}}}),p9=$7({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var n=KLe(),r=d9(),i=r([n(`%String.prototype.indexOf%`)]);t.exports=function(e,t){var a=n(e,!!t);return typeof a==`function`&&i(e,`.prototype.`)>-1?r([a]):a}}}),qLe=$7({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var n=i9();t.exports=function(){return n()&&!!Symbol.toStringTag}}}),m9=$7({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var n=p9(),r=qLe()(),i=f9(),a=r9(),o;r?(s=n(`RegExp.prototype.exec`),c={},l=function(){throw c},u={toString:l,valueOf:l},typeof Symbol.toPrimitive==`symbol`&&(u[Symbol.toPrimitive]=l),o=function(e){if(!e||typeof e!=`object`)return!1;var t=a(e,`lastIndex`);if(!(t&&i(t,`value`)))return!1;try{s(e,u)}catch(e){return e===c}}):(d=n(`Object.prototype.toString`),f=`[object RegExp]`,o=function(e){return!e||typeof e!=`object`&&typeof e!=`function`?!1:d(e)===f});var s,c,l,u,d,f;t.exports=o}}),JLe=$7({"node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js"(e,t){t.exports=r;var n=Object.prototype.toString;function r(e){if(!e)return!1;var t=n.call(e);return t===`[object Function]`||typeof e==`function`&&t!==`[object RegExp]`||typeof window<`u`&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)}}}),YLe=$7({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var n=p9(),r=m9(),i=n(`RegExp.prototype.exec`),a=n9();t.exports=function(e){if(!r(e))throw new a("`regex` must be a RegExp");return function(t){return i(e,t)!==null}}}}),XLe=$7({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var n=p9(),r=n(`Object.prototype.toString`),i=a9()(),a=YLe();i?(o=n(`Symbol.prototype.toString`),s=a(/^Symbol\(.*\)$/),c=function(e){return typeof e.valueOf()==`symbol`?s(o(e)):!1},t.exports=function(e){if(typeof e==`symbol`)return!0;if(!e||typeof e!=`object`||r(e)!==`[object Symbol]`)return!1;try{return c(e)}catch{return!1}}):t.exports=function(e){return!1};var o,s,c}}),ZLe=e9(m9()),QLe=e9(JLe()),$Le=e9(XLe());function eRe(e){return typeof e==`object`&&!!e&&Array.isArray(e)===!1}var tRe=typeof global==`object`&&global&&global.Object===Object&&global,nRe=typeof self==`object`&&self&&self.Object===Object&&self,h9=tRe||nRe||Function(`return this`)(),g9=h9.Symbol,_9=Object.prototype,rRe=_9.hasOwnProperty,iRe=_9.toString,v9=g9?g9.toStringTag:void 0;function aRe(e){var t=rRe.call(e,v9),n=e[v9];try{e[v9]=void 0;var r=!0}catch{}var i=iRe.call(e);return r&&(t?e[v9]=n:delete e[v9]),i}var oRe=aRe,sRe=Object.prototype.toString;function cRe(e){return sRe.call(e)}var lRe=cRe,uRe=`[object Null]`,dRe=`[object Undefined]`,y9=g9?g9.toStringTag:void 0;function fRe(e){return e==null?e===void 0?dRe:uRe:y9&&y9 in Object(e)?oRe(e):lRe(e)}var pRe=fRe,b9=g9?g9.prototype:void 0;b9&&b9.toString;function mRe(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}var x9=mRe,hRe=`[object AsyncFunction]`,gRe=`[object Function]`,_Re=`[object GeneratorFunction]`,vRe=`[object Proxy]`;function yRe(e){if(!x9(e))return!1;var t=pRe(e);return t==gRe||t==_Re||t==hRe||t==vRe}var bRe=yRe,S9=h9[`__core-js_shared__`],C9=(function(){var e=/[^.]+$/.exec(S9&&S9.keys&&S9.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``})();function xRe(e){return!!C9&&C9 in e}var SRe=xRe,CRe=Function.prototype.toString;function wRe(e){if(e!=null){try{return CRe.call(e)}catch{}try{return e+``}catch{}}return``}var TRe=wRe,ERe=/[\\^$.*+?()[\]{}|]/g,DRe=/^\[object .+?Constructor\]$/,ORe=Function.prototype,kRe=Object.prototype,ARe=ORe.toString,jRe=kRe.hasOwnProperty,MRe=RegExp(`^`+ARe.call(jRe).replace(ERe,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function NRe(e){return!x9(e)||SRe(e)?!1:(bRe(e)?MRe:DRe).test(TRe(e))}var PRe=NRe;function FRe(e,t){return e?.[t]}var IRe=FRe;function LRe(e,t){var n=IRe(e,t);return PRe(n)?n:void 0}var w9=LRe;function RRe(e,t){return e===t||e!==e&&t!==t}var zRe=RRe,T9=w9(Object,`create`);function BRe(){this.__data__=T9?T9(null):{},this.size=0}var VRe=BRe;function HRe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var URe=HRe,WRe=`__lodash_hash_undefined__`,GRe=Object.prototype.hasOwnProperty;function KRe(e){var t=this.__data__;if(T9){var n=t[e];return n===WRe?void 0:n}return GRe.call(t,e)?t[e]:void 0}var qRe=KRe,JRe=Object.prototype.hasOwnProperty;function YRe(e){var t=this.__data__;return T9?t[e]!==void 0:JRe.call(t,e)}var XRe=YRe,ZRe=`__lodash_hash_undefined__`;function QRe(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=T9&&t===void 0?ZRe:t,this}var $Re=QRe;function E9(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}E9.prototype.clear=VRe,E9.prototype.delete=URe,E9.prototype.get=qRe,E9.prototype.has=XRe,E9.prototype.set=$Re;var D9=E9;function eze(){this.__data__=[],this.size=0}var tze=eze;function nze(e,t){for(var n=e.length;n--;)if(zRe(e[n][0],t))return n;return-1}var O9=nze,rze=Array.prototype.splice;function ize(e){var t=this.__data__,n=O9(t,e);return n<0?!1:(n==t.length-1?t.pop():rze.call(t,n,1),--this.size,!0)}var aze=ize;function oze(e){var t=this.__data__,n=O9(t,e);return n<0?void 0:t[n][1]}var sze=oze;function cze(e){return O9(this.__data__,e)>-1}var lze=cze;function uze(e,t){var n=this.__data__,r=O9(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var dze=uze;function k9(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}k9.prototype.clear=tze,k9.prototype.delete=aze,k9.prototype.get=sze,k9.prototype.has=lze,k9.prototype.set=dze;var fze=k9,pze=w9(h9,`Map`);function mze(){this.size=0,this.__data__={hash:new D9,map:new(pze||fze),string:new D9}}var hze=mze;function gze(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}var _ze=gze;function vze(e,t){var n=e.__data__;return _ze(t)?n[typeof t==`string`?`string`:`hash`]:n.map}var A9=vze;function yze(e){var t=A9(this,e).delete(e);return this.size-=t?1:0,t}var bze=yze;function xze(e){return A9(this,e).get(e)}var Sze=xze;function Cze(e){return A9(this,e).has(e)}var wze=Cze;function Tze(e,t){var n=A9(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var Eze=Tze;function j9(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}j9.prototype.clear=hze,j9.prototype.delete=bze,j9.prototype.get=Sze,j9.prototype.has=wze,j9.prototype.set=Eze;var M9=j9,Dze=`Expected a function`;function N9(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(Dze);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(N9.Cache||M9),n}N9.Cache=M9;var Oze=N9,kze=500;function Aze(e){var t=Oze(e,function(e){return n.size===kze&&n.clear(),e}),n=t.cache;return t}var jze=Aze,Mze=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Nze=/\\(\\)?/g;jze(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(Mze,function(e,n,r,i){t.push(r?i.replace(Nze,`$1`):n||e)}),t});var Pze=eRe,Fze=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/;function P9(e){if(!Pze(e))return e;let t=e,n=!1;return typeof Event<`u`&&e instanceof Event&&(t=wLe(t),n=!0),t=Object.keys(t).reduce((e,r)=>{try{t[r]&&t[r].toJSON,e[r]=t[r]}catch{n=!0}return e},{}),n?t:e}var Ize=function(e){let t,n,r,i;return function(a,o){try{if(a===``)return i=[],t=new Map([[o,`[]`]]),n=new Map,r=[],o;let s=n.get(this)||this;for(;r.length&&s!==r[0];)r.shift(),i.pop();if(typeof o==`boolean`)return o;if(o===void 0)return e.allowUndefined?`_undefined_`:void 0;if(o===null)return null;if(typeof o==`number`)return o===-1/0?`_-Infinity_`:o===1/0?`_Infinity_`:Number.isNaN(o)?`_NaN_`:o;if(typeof o==`bigint`)return`_bigint_${o.toString()}`;if(typeof o==`string`)return Fze.test(o)?e.allowDate?`_date_${o}`:void 0:o;if((0,ZLe.default)(o))return e.allowRegExp?`_regexp_${o.flags}|${o.source}`:void 0;if((0,QLe.default)(o))return;if((0,$Le.default)(o)){if(!e.allowSymbol)return;let t=Symbol.keyFor(o);return t===void 0?`_symbol_${o.toString().slice(7,-1)}`:`_gsymbol_${t}`}if(r.length>=e.maxDepth)return Array.isArray(o)?`[Array(${o.length})]`:`[Object]`;if(o===this)return`_duplicate_${JSON.stringify(i)}`;if(o instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...o.cause?{cause:o.cause}:{},...o,name:o.name,message:o.message,stack:o.stack,"_constructor-name_":o.constructor.name}};if(o?.constructor?.name&&o.constructor.name!==`Object`&&!Array.isArray(o)){let e=t.get(o);if(!e){let e={__isClassInstance__:!0,__className__:o.constructor.name,...Object.getOwnPropertyNames(o).reduce((e,t)=>{try{e[t]=o[t]}catch{}return e},{})};return i.push(a),r.unshift(e),t.set(o,JSON.stringify(i)),o!==e&&n.set(o,e),e}return`_duplicate_${e}`}let c=t.get(o);if(!c){let e=Array.isArray(o)?o:P9(o);return i.push(a),r.unshift(e),t.set(o,JSON.stringify(i)),o!==e&&n.set(o,e),e}return`_duplicate_${c}`}catch{return}}},Lze={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},Rze=(e,t={})=>{let n={...Lze,...t};return JSON.stringify(P9(e),Ize(n),t.space)};function F9(e){return Rze(e,{maxDepth:50})}var I9=(0,X.createContext)({sources:{}}),zze=`--unknown--`,Bze=({children:e,channel:t})=>{let[n,r]=(0,X.useState)({});return(0,X.useEffect)(()=>{let e=(e,t=null,n=!1)=>{let{id:i,args:a=void 0,source:o,format:s}=typeof e==`string`?{id:e,source:t,format:n}:e,c=a?F9(a):zze;r(e=>({...e,[i]:{...e[i],[c]:{code:o||``,format:s}}}))};return t.on(VN,e),()=>t.off(VN,e)},[]),X.createElement(I9.Provider,{value:{sources:n}},e)};function Vze(e,t,n){let[r,i]=(0,X.useState)(`Transforming...`),a=t?t?.(e,n):e;return(0,X.useEffect)(()=>{async function e(){let e=await a;e!==r&&i(e)}e()}),typeof a==`object`&&typeof a.then==`function`?r:a}var Hze=(e,t,n)=>{let{sources:r}=n,i=r?.[e];return i?.[F9(t)]||i?.[`--unknown--`]||{code:``}},Uze=({snippet:e,storyContext:t,typeFromProps:n,transformFromProps:r})=>{let i=t.parameters??{},{__isArgsStory:a}=i,o=i.docs?.source||{},s=n||o.type||HN.AUTO,c=s===HN.DYNAMIC||s===HN.AUTO&&e&&a?e:o.originalSource||``,l=r??o.transform,u=l?Vze(c,l,t):c;return o.code===void 0?u:o.code},Wze=(e,t,n)=>{let{of:r}=e,i=(0,X.useMemo)(()=>{if(r)return t.resolveOf(r,[`story`]).story;try{return t.storyById()}catch{}},[t,r]),a=i?t.getStoryContext(i):{},o=e.__forceInitialArgs?a.initialArgs:a.unmappedArgs,s=i?Hze(i.id,o,n):null,c=Uze({snippet:s?s.code:``,storyContext:{...a,args:o},typeFromProps:e.type,transformFromProps:e.transform});if(`of`in e&&r===void 0)throw Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let l=i?.parameters?.docs?.source||{},u=e.format,d=e.language??l.language??`jsx`,f=e.dark??l.dark??!1;return!e.code&&!i?{error:`Oh no! The source is not available.`}:e.code?{code:e.code,format:u,language:d,dark:f}:(u=s?.format??!0,{code:c,format:u,language:d,dark:f})},Gze=e=>{let t=(0,X.useContext)(E7),n=(0,X.useContext)(I9),{of:r,source:i}=e;if(`of`in e&&r===void 0)throw Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{story:a}=X7(r||`story`,[`story`]),o=Wze({...i,...r&&{of:r}},t,n),s=e.layout??a.parameters.layout??a.parameters.docs?.canvas?.layout??`padded`,c=e.withToolbar??a.parameters.docs?.canvas?.withToolbar??!1,l=e.additionalActions??a.parameters.docs?.canvas?.additionalActions,u=e.sourceState??a.parameters.docs?.canvas?.sourceState??`hidden`,d=e.className??a.parameters.docs?.canvas?.className,f=e.story?.inline??a.parameters?.docs?.story?.inline??!1;return X.createElement(I7,{withSource:u===`none`?void 0:o,isExpanded:u===`shown`,withToolbar:c,additionalActions:l,className:d,layout:s,inline:f},X.createElement(MIe,{of:r||a.moduleExport,meta:e.meta,...e.story}))},{filterArgTypes:L9}=__STORYBOOK_MODULE_PREVIEW_API__,{RESET_STORY_ARGS:Kze,STORY_ARGS_UPDATED:R9,UPDATE_STORY_ARGS:qze}=__STORYBOOK_MODULE_CORE_EVENTS__,Jze=(e,t)=>{let n=Yze(e,t);if(!n)throw Error(`No result when story was defined`);return n},Yze=(e,t)=>{let n=e?t.getStoryContext(e):{args:{}},{id:r}=e||{id:`none`},[i,a]=(0,X.useState)(n.args);(0,X.useEffect)(()=>{let e=e=>{e.storyId===r&&a(e.args)};return t.channel.on(R9,e),()=>t.channel.off(R9,e)},[r,t.channel]);let o=(0,X.useCallback)(e=>t.channel.emit(qze,{storyId:r,updatedArgs:e}),[r,t.channel]),s=(0,X.useCallback)(e=>t.channel.emit(Kze,{storyId:r,argNames:e}),[r,t.channel]);return e&&[i,o,s]},{GLOBALS_UPDATED:z9}=__STORYBOOK_MODULE_CORE_EVENTS__,Xze=(e,t)=>{let[n,r]=(0,X.useState)(t.getStoryContext(e).globals);return(0,X.useEffect)(()=>{let e=e=>{r(e.globals)};return t.channel.on(z9,e),()=>t.channel.off(z9,e)},[t.channel]),[n]},{Tag:Zze}=__STORYBOOK_MODULE_PREVIEW_API__,B9=()=>(0,X.useContext)(E7).componentStories().find(e=>e.tags.includes(Zze.AUTODOCS));function Qze(e,t){let{extractArgTypes:n}=t.docs||{};if(!n)throw Error(`Args unsupported. See Args documentation for your framework.`);return n(e)}var $ze=e=>{let{of:t}=e,n=(0,X.useContext)(E7),r=B9(),i=t?n.resolveOf(t,[`story`]).story:r;if(!i)return null;let{parameters:a,argTypes:o,component:s,subcomponents:c}=i,l=a.docs?.controls||{},u=e.include??l.include,d=e.exclude??l.exclude,f=e.sort??l.sort,[p,m,h]=Jze(i,n),[g]=Xze(i,n),_=L9(o,u,d);if(!(c&&Object.keys(c||{}).length>0))return Object.keys(_).length>0||Object.keys(p).length>0?X.createElement(C7,{rows:_,sort:f,args:p,globals:g,updateArgs:m,resetArgs:h}):null;let v=hLe(s)||`Story`,y=Object.fromEntries(Object.entries(c||{}).map(([e,t])=>[e,{rows:L9(Qze(t,a),u,d),sort:f}])),b={[v]:{rows:_,sort:f},...y};return X.createElement(L7,{tabs:b,sort:f,args:p,globals:g,updateArgs:m,resetArgs:h})},{NAVIGATE_URL:eBe}=__STORYBOOK_MODULE_CORE_EVENTS__,{document:V9}=globalThis,H9=({className:e,children:t,...n})=>{if(typeof e!=`string`&&(typeof t!=`string`||!t.match(/[\n\r]/g)))return X.createElement(uZ,null,t);let r=e&&e.split(`-`);return X.createElement(H8,{language:r&&r[1]||`text`,format:!1,code:t,...n})};function U9(e,t){e.channel.emit(eBe,t)}var W9=d8.a,tBe=({hash:e,children:t})=>{let n=(0,X.useContext)(E7);return X.createElement(W9,{href:e,target:`_self`,onClick:t=>{let r=e.substring(1);V9.getElementById(r)&&U9(n,e)}},t)},G9=e=>{let{href:t,target:n,children:r,...i}=e,a=(0,X.useContext)(E7);return!t||n===`_blank`||/^https?:\/\//.test(t)?X.createElement(W9,{...e}):t.startsWith(`#`)?X.createElement(tBe,{hash:t},r):X.createElement(W9,{href:t,onClick:e=>{e.button===0&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&(e.preventDefault(),U9(a,e.currentTarget.getAttribute(`href`)||``))},target:n,...i},r)},K9=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],nBe=K9.reduce((e,t)=>({...e,[t]:$(t)({"& svg":{position:`relative`,top:`-0.1em`,visibility:`hidden`},"&:hover svg":{visibility:`visible`}})}),{}),rBe=$.a(()=>({float:`left`,lineHeight:`inherit`,paddingRight:`10px`,marginLeft:`-24px`,color:`inherit`})),iBe=({as:e,id:t,children:n,...r})=>{let i=(0,X.useContext)(E7),a=nBe[e],o=`#${t}`;return X.createElement(a,{id:t,...r},X.createElement(rBe,{"aria-hidden":`true`,href:o,tabIndex:-1,target:`_self`,onClick:e=>{V9.getElementById(t)&&U9(i,o)}},X.createElement(S_e,null)),n)},q9=e=>{let{as:t,id:n,children:r,...i}=e;if(n)return X.createElement(iBe,{as:t,id:n,...i},r);let a=t,{as:o,...s}=e;return X.createElement(a,{...$X(s,t)})},J9=K9.reduce((e,t)=>({...e,[t]:e=>X.createElement(q9,{as:t,...e})}),{}),aBe=e=>{if(!e.children)return null;if(typeof e.children!=`string`)throw Error(jV`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}'
|
|
1404
1404
|
This is often caused by not wrapping the child in a template string.
|
|
1405
1405
|
|
|
1406
1406
|
This is invalid:
|