@brightspot/ui 1.0.1-4 → 1.0.1-5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -33
- package/dist/LucideDynamicLoader.d.ts +5 -0
- package/dist/LucideDynamicLoader.d.ts.map +1 -0
- package/dist/LucideDynamicLoader.js +2 -1
- package/dist/LucideDynamicLoader.js.map +1 -0
- package/dist/LucideDynamicLoader.ts +1 -1
- package/dist/storybook/assets/{Badge.stories-BTUP8EEA.js → Badge.stories-BUWscv-N.js} +3 -7
- package/dist/storybook/assets/{Button.stories-Cr7Qwtjy.js → Button.stories-BxwD2JsV.js} +1 -1
- package/dist/storybook/assets/Color-64QXVMR3-tXPJkzyM.js +1 -0
- package/dist/storybook/assets/{Colors.stories-DTkJ49c0.js → Colors.stories-Cmp-AEM5.js} +2 -2
- package/dist/storybook/assets/{Heading.stories-DAeD9lW6.js → Heading.stories-C_fXiWQt.js} +1 -1
- package/dist/storybook/assets/{Icon.stories-cnRmIS9M.js → Icon.stories-BaAKG0vC.js} +1592 -9552
- package/dist/storybook/assets/Loader.stories-Bfft_9Qc.js +3 -0
- package/dist/storybook/assets/{ScrollShadow.stories-DPlCRYP5.js → ScrollShadow.stories-FG3lcV3j.js} +1 -1
- package/dist/storybook/assets/WithTooltip-SK46ZJ2J-BQsmdHUK.js +825 -0
- package/dist/storybook/assets/formatter-OMEEQ6HG-VMKmNmlI.js +1 -0
- package/dist/storybook/assets/iframe-D3S76tLX.js +1029 -0
- package/dist/storybook/assets/iframe-F_do0w2Z.css +1 -0
- package/dist/storybook/assets/index-BywqDQuf.js +1 -0
- package/dist/storybook/assets/syntaxhighlighter-CAVLW7PM-C8o3mi7K.js +6 -0
- package/dist/storybook/iframe.html +4 -4
- package/dist/storybook/index.html +2 -13
- package/dist/storybook/index.json +1 -1
- package/dist/storybook/project.json +1 -1
- package/dist/storybook/sb-addons/docs-1/manager-bundle.js +1 -149
- package/dist/storybook/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +158 -323
- package/dist/storybook/sb-manager/globals-runtime.js +79814 -65954
- package/dist/storybook/sb-manager/globals.js +7 -16
- package/dist/storybook/sb-manager/runtime.js +15451 -9508
- package/dist/storybook/vite-inject-mocker-entry.js +1 -17
- package/dist/tailwind-plugin-badge.d.ts +2 -0
- package/dist/tailwind-plugin-badge.d.ts.map +1 -0
- package/dist/tailwind-plugin-badge.js +4 -3
- package/dist/tailwind-plugin-badge.js.map +1 -0
- package/dist/tailwind-plugin-badge.ts +4 -4
- package/dist/tailwind-plugin-button.d.ts +2 -0
- package/dist/tailwind-plugin-button.d.ts.map +1 -0
- package/dist/tailwind-plugin-button.js +2 -5
- package/dist/tailwind-plugin-button.js.map +1 -0
- package/dist/tailwind-plugin-button.ts +8 -21
- package/dist/tailwind-plugin-heading.d.ts +2 -0
- package/dist/tailwind-plugin-heading.d.ts.map +1 -0
- package/dist/tailwind-plugin-heading.js +1 -0
- package/dist/tailwind-plugin-heading.js.map +1 -0
- package/dist/tailwind-plugin-icon.d.ts +2 -0
- package/dist/tailwind-plugin-icon.d.ts.map +1 -0
- package/dist/tailwind-plugin-icon.js +6 -5
- package/dist/tailwind-plugin-icon.js.map +1 -0
- package/dist/tailwind-plugin-icon.ts +14 -23
- package/dist/tailwind-plugin-loader.d.ts +2 -0
- package/dist/tailwind-plugin-loader.d.ts.map +1 -0
- package/dist/tailwind-plugin-loader.js +1 -0
- package/dist/tailwind-plugin-loader.js.map +1 -0
- package/dist/tailwind-plugin-scroll-shadow.d.ts +2 -0
- package/dist/tailwind-plugin-scroll-shadow.d.ts.map +1 -0
- package/dist/tailwind-plugin-scroll-shadow.js +16 -1
- package/dist/tailwind-plugin-scroll-shadow.js.map +1 -0
- package/dist/tailwind-plugin-scroll-shadow.ts +33 -22
- package/dist/tailwind-plugin-theme.d.ts +2 -0
- package/dist/tailwind-plugin-theme.d.ts.map +1 -0
- package/dist/tailwind-plugin-theme.js +2 -3
- package/dist/tailwind-plugin-theme.js.map +1 -0
- package/dist/tailwind-plugin-theme.ts +4 -15
- package/dist/tailwind.config.d.ts +693 -0
- package/dist/tailwind.config.d.ts.map +1 -0
- package/dist/tailwind.config.js +2 -4
- package/dist/tailwind.config.js.map +1 -0
- package/dist/tailwind.config.ts +2 -6
- package/dist/util/string.d.ts +3 -0
- package/dist/util/string.d.ts.map +1 -0
- package/dist/util/string.js +2 -1
- package/dist/util/string.js.map +1 -0
- package/dist/util/svg.d.ts +3 -0
- package/dist/util/svg.d.ts.map +1 -0
- package/dist/util/svg.js +1 -0
- package/dist/util/svg.js.map +1 -0
- package/package.json +18 -13
- package/dist/storybook/assets/Color-AVL7NMMY-FwGGzq-S.js +0 -1
- package/dist/storybook/assets/DocsRenderer-PQXLIZUC-czZuJbjz.js +0 -1286
- package/dist/storybook/assets/Loader.stories-i7TFXki_.js +0 -7
- package/dist/storybook/assets/iframe-CgQYHqh5.css +0 -1
- package/dist/storybook/assets/iframe-KLSeZXhG.js +0 -1059
- package/dist/storybook/assets/index-Du6pvkZG.js +0 -1
- package/dist/storybook/sb-manager/globals-module-info.js +0 -797
|
@@ -0,0 +1,1029 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Badge.stories-BUWscv-N.js","./preload-helper-PPVm8Dsz.js","./Button.stories-BxwD2JsV.js","./Colors.stories-Cmp-AEM5.js","./Heading.stories-C_fXiWQt.js","./Icon.stories-BaAKG0vC.js","./Loader.stories-Bfft_9Qc.js","./ScrollShadow.stories-FG3lcV3j.js","./WithTooltip-SK46ZJ2J-BQsmdHUK.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as Cr}from"./preload-helper-PPVm8Dsz.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(o){if(o.ep)return;o.ep=!0;const s=r(o);fetch(o.href,s)}})();var cu={},II=Object.create,tl=Object.defineProperty,MI=Object.getOwnPropertyDescriptor,Bb=Object.getOwnPropertyNames,qI=Object.getPrototypeOf,jI=Object.prototype.hasOwnProperty,i=(e,t)=>tl(e,"name",{value:t,configurable:!0}),Ms=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),$=(e,t)=>function(){return t||(0,e[Bb(e)[0]])((t={exports:{}}).exports,t),t.exports},Et=(e,t)=>{for(var r in t)tl(e,r,{get:t[r],enumerable:!0})},kI=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Bb(t))!jI.call(e,o)&&o!==r&&tl(e,o,{get:()=>t[o],enumerable:!(n=MI(t,o))||n.enumerable});return e},Ge=(e,t,r)=>(r=e!=null?II(qI(e)):{},kI(t||!e||!e.__esModule?tl(r,"default",{value:e,enumerable:!0}):r,e)),DI=$({"../node_modules/@ngard/tiny-isequal/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isEqual=(function(){var t=Object.prototype.toString,r=Object.getPrototypeOf,n=Object.getOwnPropertySymbols?function(o){return Object.keys(o).concat(Object.getOwnPropertySymbols(o))}:Object.keys;return function(o,s){return i(function a(c,u,d){var p,f,m,y=t.call(c),g=t.call(u);if(c===u)return!0;if(c==null||u==null)return!1;if(d.indexOf(c)>-1&&d.indexOf(u)>-1)return!0;if(d.push(c,u),y!=g||(p=n(c),f=n(u),p.length!=f.length||p.some(function(T){return!a(c[T],u[T],d)})))return!1;switch(y.slice(8,-1)){case"Symbol":return c.valueOf()==u.valueOf();case"Date":case"Number":return+c==+u||+c!=+c&&+u!=+u;case"RegExp":case"Function":case"String":case"Boolean":return""+c==""+u;case"Set":case"Map":p=c.entries(),f=u.entries();do if(!a((m=p.next()).value,f.next().value,d))return!1;while(!m.done);return!0;case"ArrayBuffer":c=new Uint8Array(c),u=new Uint8Array(u);case"DataView":c=new Uint8Array(c.buffer),u=new Uint8Array(u.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(c.length!=u.length)return!1;for(m=0;m<c.length;m++)if((m in c||m in u)&&(m in c!=m in u||!a(c[m],u[m],d)))return!1;return!0;case"Object":return a(r(c),r(u),d);default:return!1}},"n")(o,s,[])}})()}}),LI=$({"../node_modules/min-indent/index.js"(e,t){t.exports=r=>{const n=r.match(/^[ \t]*(?=\S)/gm);return n?n.reduce((o,s)=>Math.min(o,s.length),1/0):0}}}),FI=$({"../node_modules/strip-indent/index.js"(e,t){var r=LI();t.exports=n=>{const o=r(n);if(o===0)return n;const s=new RegExp(`^[ \\t]{${o}}`,"gm");return n.replace(s,"")}}}),BI=$({"../node_modules/indent-string/index.js"(e,t){t.exports=(r,n=1,o)=>{if(o={indent:" ",includeEmptyLines:!1,...o},typeof r!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof r}\``);if(typeof n!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof n}\``);if(typeof o.indent!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof o.indent}\``);if(n===0)return r;const s=o.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return r.replace(s,o.indent.repeat(n))}}}),$b=$({"../node_modules/redent/index.js"(e,t){var r=FI(),n=BI();t.exports=(o,s=0,a)=>n(r(o),s,a)}}),$I=$({"../node_modules/aria-query/lib/util/iteratorProxy.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(){var r=this,n=0,o={"@@iterator":i(function(){return o},"iterator"),next:i(function(){if(n<r.length){var a=r[n];return n=n+1,{done:!1,value:a}}else return{done:!0}},"next")};return o}i(t,"iteratorProxy"),e.default=t}}),us=$({"../node_modules/aria-query/lib/util/iterationDecorator.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var t=r($I());function r(s){return s&&s.__esModule?s:{default:s}}i(r,"_interopRequireDefault");function n(s){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},n(s)}i(n,"_typeof");function o(s,a){return typeof Symbol=="function"&&n(Symbol.iterator)==="symbol"&&Object.defineProperty(s,Symbol.iterator,{value:t.default.bind(a)}),s}i(o,"iterationDecorator")}}),JI=$({"../node_modules/aria-query/lib/ariaPropsMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(us());function r(f){return f&&f.__esModule?f:{default:f}}i(r,"_interopRequireDefault");function n(f,m){return u(f)||c(f,m)||s(f,m)||o()}i(n,"_slicedToArray");function o(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}i(o,"_nonIterableRest");function s(f,m){if(f){if(typeof f=="string")return a(f,m);var y={}.toString.call(f).slice(8,-1);return y==="Object"&&f.constructor&&(y=f.constructor.name),y==="Map"||y==="Set"?Array.from(f):y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y)?a(f,m):void 0}}i(s,"_unsupportedIterableToArray");function a(f,m){(m==null||m>f.length)&&(m=f.length);for(var y=0,g=Array(m);y<m;y++)g[y]=f[y];return g}i(a,"_arrayLikeToArray");function c(f,m){var y=f==null?null:typeof Symbol<"u"&&f[Symbol.iterator]||f["@@iterator"];if(y!=null){var g,T,E,v,_=[],A=!0,N=!1;try{if(E=(y=y.call(f)).next,m===0){if(Object(y)!==y)return;A=!1}else for(;!(A=(g=E.call(y)).done)&&(_.push(g.value),_.length!==m);A=!0);}catch(j){N=!0,T=j}finally{try{if(!A&&y.return!=null&&(v=y.return(),Object(v)!==v))return}finally{if(N)throw T}}return _}}i(c,"_iterableToArrayLimit");function u(f){if(Array.isArray(f))return f}i(u,"_arrayWithHoles");var d=[["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"}]],p={entries:i(function(){return d},"entries"),forEach:i(function(m){for(var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,g=0,T=d;g<T.length;g++){var E=n(T[g],2),v=E[0],_=E[1];m.call(y,_,v,d)}},"forEach"),get:i(function(m){var y=d.filter(function(g){return g[0]===m})[0];return y&&y[1]},"get"),has:i(function(m){return!!p.get(m)},"has"),keys:i(function(){return d.map(function(m){var y=n(m,1),g=y[0];return g})},"keys"),values:i(function(){return d.map(function(m){var y=n(m,2),g=y[1];return g})},"values")};e.default=(0,t.default)(p,p.entries())}}),UI=$({"../node_modules/aria-query/lib/domMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(us());function r(f){return f&&f.__esModule?f:{default:f}}i(r,"_interopRequireDefault");function n(f,m){return u(f)||c(f,m)||s(f,m)||o()}i(n,"_slicedToArray");function o(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
4
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}i(o,"_nonIterableRest");function s(f,m){if(f){if(typeof f=="string")return a(f,m);var y={}.toString.call(f).slice(8,-1);return y==="Object"&&f.constructor&&(y=f.constructor.name),y==="Map"||y==="Set"?Array.from(f):y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y)?a(f,m):void 0}}i(s,"_unsupportedIterableToArray");function a(f,m){(m==null||m>f.length)&&(m=f.length);for(var y=0,g=Array(m);y<m;y++)g[y]=f[y];return g}i(a,"_arrayLikeToArray");function c(f,m){var y=f==null?null:typeof Symbol<"u"&&f[Symbol.iterator]||f["@@iterator"];if(y!=null){var g,T,E,v,_=[],A=!0,N=!1;try{if(E=(y=y.call(f)).next,m===0){if(Object(y)!==y)return;A=!1}else for(;!(A=(g=E.call(y)).done)&&(_.push(g.value),_.length!==m);A=!0);}catch(j){N=!0,T=j}finally{try{if(!A&&y.return!=null&&(v=y.return(),Object(v)!==v))return}finally{if(N)throw T}}return _}}i(c,"_iterableToArrayLimit");function u(f){if(Array.isArray(f))return f}i(u,"_arrayWithHoles");var d=[["a",{reserved:!1}],["abbr",{reserved:!1}],["acronym",{reserved:!1}],["address",{reserved:!1}],["applet",{reserved:!1}],["area",{reserved:!1}],["article",{reserved:!1}],["aside",{reserved:!1}],["audio",{reserved:!1}],["b",{reserved:!1}],["base",{reserved:!0}],["bdi",{reserved:!1}],["bdo",{reserved:!1}],["big",{reserved:!1}],["blink",{reserved:!1}],["blockquote",{reserved:!1}],["body",{reserved:!1}],["br",{reserved:!1}],["button",{reserved:!1}],["canvas",{reserved:!1}],["caption",{reserved:!1}],["center",{reserved:!1}],["cite",{reserved:!1}],["code",{reserved:!1}],["col",{reserved:!0}],["colgroup",{reserved:!0}],["content",{reserved:!1}],["data",{reserved:!1}],["datalist",{reserved:!1}],["dd",{reserved:!1}],["del",{reserved:!1}],["details",{reserved:!1}],["dfn",{reserved:!1}],["dialog",{reserved:!1}],["dir",{reserved:!1}],["div",{reserved:!1}],["dl",{reserved:!1}],["dt",{reserved:!1}],["em",{reserved:!1}],["embed",{reserved:!1}],["fieldset",{reserved:!1}],["figcaption",{reserved:!1}],["figure",{reserved:!1}],["font",{reserved:!1}],["footer",{reserved:!1}],["form",{reserved:!1}],["frame",{reserved:!1}],["frameset",{reserved:!1}],["h1",{reserved:!1}],["h2",{reserved:!1}],["h3",{reserved:!1}],["h4",{reserved:!1}],["h5",{reserved:!1}],["h6",{reserved:!1}],["head",{reserved:!0}],["header",{reserved:!1}],["hgroup",{reserved:!1}],["hr",{reserved:!1}],["html",{reserved:!0}],["i",{reserved:!1}],["iframe",{reserved:!1}],["img",{reserved:!1}],["input",{reserved:!1}],["ins",{reserved:!1}],["kbd",{reserved:!1}],["keygen",{reserved:!1}],["label",{reserved:!1}],["legend",{reserved:!1}],["li",{reserved:!1}],["link",{reserved:!0}],["main",{reserved:!1}],["map",{reserved:!1}],["mark",{reserved:!1}],["marquee",{reserved:!1}],["menu",{reserved:!1}],["menuitem",{reserved:!1}],["meta",{reserved:!0}],["meter",{reserved:!1}],["nav",{reserved:!1}],["noembed",{reserved:!0}],["noscript",{reserved:!0}],["object",{reserved:!1}],["ol",{reserved:!1}],["optgroup",{reserved:!1}],["option",{reserved:!1}],["output",{reserved:!1}],["p",{reserved:!1}],["param",{reserved:!0}],["picture",{reserved:!0}],["pre",{reserved:!1}],["progress",{reserved:!1}],["q",{reserved:!1}],["rp",{reserved:!1}],["rt",{reserved:!1}],["rtc",{reserved:!1}],["ruby",{reserved:!1}],["s",{reserved:!1}],["samp",{reserved:!1}],["script",{reserved:!0}],["section",{reserved:!1}],["select",{reserved:!1}],["small",{reserved:!1}],["source",{reserved:!0}],["spacer",{reserved:!1}],["span",{reserved:!1}],["strike",{reserved:!1}],["strong",{reserved:!1}],["style",{reserved:!0}],["sub",{reserved:!1}],["summary",{reserved:!1}],["sup",{reserved:!1}],["table",{reserved:!1}],["tbody",{reserved:!1}],["td",{reserved:!1}],["textarea",{reserved:!1}],["tfoot",{reserved:!1}],["th",{reserved:!1}],["thead",{reserved:!1}],["time",{reserved:!1}],["title",{reserved:!0}],["tr",{reserved:!1}],["track",{reserved:!0}],["tt",{reserved:!1}],["u",{reserved:!1}],["ul",{reserved:!1}],["var",{reserved:!1}],["video",{reserved:!1}],["wbr",{reserved:!1}],["xmp",{reserved:!1}]],p={entries:i(function(){return d},"entries"),forEach:i(function(m){for(var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,g=0,T=d;g<T.length;g++){var E=n(T[g],2),v=E[0],_=E[1];m.call(y,_,v,d)}},"forEach"),get:i(function(m){var y=d.filter(function(g){return g[0]===m})[0];return y&&y[1]},"get"),has:i(function(m){return!!p.get(m)},"has"),keys:i(function(){return d.map(function(m){var y=n(m,1),g=y[0];return g})},"keys"),values:i(function(){return d.map(function(m){var y=n(m,2),g=y[1];return g})},"values")};e.default=(0,t.default)(p,p.entries())}}),VI=$({"../node_modules/aria-query/lib/etc/roles/abstract/commandRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]};e.default=t}}),HI=$({"../node_modules/aria-query/lib/etc/roles/abstract/compositeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),GI=$({"../node_modules/aria-query/lib/etc/roles/abstract/inputRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),zI=$({"../node_modules/aria-query/lib/etc/roles/abstract/landmarkRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),WI=$({"../node_modules/aria-query/lib/etc/roles/abstract/rangeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),KI=$({"../node_modules/aria-query/lib/etc/roles/abstract/roletypeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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:[]};e.default=t}}),YI=$({"../node_modules/aria-query/lib/etc/roles/abstract/sectionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),XI=$({"../node_modules/aria-query/lib/etc/roles/abstract/sectionheadRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}}),QI=$({"../node_modules/aria-query/lib/etc/roles/abstract/selectRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),ZI=$({"../node_modules/aria-query/lib/etc/roles/abstract/structureRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]};e.default=t}}),eM=$({"../node_modules/aria-query/lib/etc/roles/abstract/widgetRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]};e.default=t}}),tM=$({"../node_modules/aria-query/lib/etc/roles/abstract/windowRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-modal":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]};e.default=t}}),rM=$({"../node_modules/aria-query/lib/etc/roles/ariaAbstractRoles.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=y(VI()),r=y(HI()),n=y(GI()),o=y(zI()),s=y(WI()),a=y(KI()),c=y(YI()),u=y(XI()),d=y(QI()),p=y(ZI()),f=y(eM()),m=y(tM());function y(T){return T&&T.__esModule?T:{default:T}}i(y,"_interopRequireDefault");var g=[["command",t.default],["composite",r.default],["input",n.default],["landmark",o.default],["range",s.default],["roletype",a.default],["section",c.default],["sectionhead",u.default],["select",d.default],["structure",p.default],["widget",f.default],["window",m.default]];e.default=g}}),nM=$({"../node_modules/aria-query/lib/etc/roles/literal/alertRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),oM=$({"../node_modules/aria-query/lib/etc/roles/literal/alertdialogRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),iM=$({"../node_modules/aria-query/lib/etc/roles/literal/applicationRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),sM=$({"../node_modules/aria-query/lib/etc/roles/literal/articleRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),aM=$({"../node_modules/aria-query/lib/etc/roles/literal/bannerRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),lM=$({"../node_modules/aria-query/lib/etc/roles/literal/blockquoteRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),cM=$({"../node_modules/aria-query/lib/etc/roles/literal/buttonRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),uM=$({"../node_modules/aria-query/lib/etc/roles/literal/captionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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.default=t}}),dM=$({"../node_modules/aria-query/lib/etc/roles/literal/cellRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),pM=$({"../node_modules/aria-query/lib/etc/roles/literal/checkboxRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),fM=$({"../node_modules/aria-query/lib/etc/roles/literal/codeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),hM=$({"../node_modules/aria-query/lib/etc/roles/literal/columnheaderRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),mM=$({"../node_modules/aria-query/lib/etc/roles/literal/comboboxRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),yM=$({"../node_modules/aria-query/lib/etc/roles/literal/complementaryRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),gM=$({"../node_modules/aria-query/lib/etc/roles/literal/contentinfoRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),bM=$({"../node_modules/aria-query/lib/etc/roles/literal/definitionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),vM=$({"../node_modules/aria-query/lib/etc/roles/literal/deletionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),EM=$({"../node_modules/aria-query/lib/etc/roles/literal/dialogRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dialog"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","window"]]};e.default=t}}),TM=$({"../node_modules/aria-query/lib/etc/roles/literal/directoryRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{module:"DAISY Guide"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","list"]]};e.default=t}}),wM=$({"../node_modules/aria-query/lib/etc/roles/literal/documentRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),_M=$({"../node_modules/aria-query/lib/etc/roles/literal/emphasisRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),SM=$({"../node_modules/aria-query/lib/etc/roles/literal/feedRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["article"]],requiredProps:{},superClass:[["roletype","structure","section","list"]]};e.default=t}}),RM=$({"../node_modules/aria-query/lib/etc/roles/literal/figureRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),PM=$({"../node_modules/aria-query/lib/etc/roles/literal/formRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),AM=$({"../node_modules/aria-query/lib/etc/roles/literal/genericRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),OM=$({"../node_modules/aria-query/lib/etc/roles/literal/gridRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),CM=$({"../node_modules/aria-query/lib/etc/roles/literal/gridcellRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),xM=$({"../node_modules/aria-query/lib/etc/roles/literal/groupRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),NM=$({"../node_modules/aria-query/lib/etc/roles/literal/headingRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),IM=$({"../node_modules/aria-query/lib/etc/roles/literal/imgRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),MM=$({"../node_modules/aria-query/lib/etc/roles/literal/insertionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),qM=$({"../node_modules/aria-query/lib/etc/roles/literal/linkRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),jM=$({"../node_modules/aria-query/lib/etc/roles/literal/listRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),kM=$({"../node_modules/aria-query/lib/etc/roles/literal/listboxRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),DM=$({"../node_modules/aria-query/lib/etc/roles/literal/listitemRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),LM=$({"../node_modules/aria-query/lib/etc/roles/literal/logRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-live":"polite"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),FM=$({"../node_modules/aria-query/lib/etc/roles/literal/mainRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),BM=$({"../node_modules/aria-query/lib/etc/roles/literal/markRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),$M=$({"../node_modules/aria-query/lib/etc/roles/literal/marqueeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),JM=$({"../node_modules/aria-query/lib/etc/roles/literal/mathRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),UM=$({"../node_modules/aria-query/lib/etc/roles/literal/menuRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),VM=$({"../node_modules/aria-query/lib/etc/roles/literal/menubarRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),HM=$({"../node_modules/aria-query/lib/etc/roles/literal/menuitemRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),GM=$({"../node_modules/aria-query/lib/etc/roles/literal/menuitemcheckboxRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),zM=$({"../node_modules/aria-query/lib/etc/roles/literal/menuitemradioRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),WM=$({"../node_modules/aria-query/lib/etc/roles/literal/meterRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),KM=$({"../node_modules/aria-query/lib/etc/roles/literal/navigationRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),YM=$({"../node_modules/aria-query/lib/etc/roles/literal/noneRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]};e.default=t}}),XM=$({"../node_modules/aria-query/lib/etc/roles/literal/noteRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),QM=$({"../node_modules/aria-query/lib/etc/roles/literal/optionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),ZM=$({"../node_modules/aria-query/lib/etc/roles/literal/paragraphRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),eq=$({"../node_modules/aria-query/lib/etc/roles/literal/presentationRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),tq=$({"../node_modules/aria-query/lib/etc/roles/literal/progressbarRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),rq=$({"../node_modules/aria-query/lib/etc/roles/literal/radioRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),nq=$({"../node_modules/aria-query/lib/etc/roles/literal/radiogroupRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),oq=$({"../node_modules/aria-query/lib/etc/roles/literal/regionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),iq=$({"../node_modules/aria-query/lib/etc/roles/literal/rowRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),sq=$({"../node_modules/aria-query/lib/etc/roles/literal/rowgroupRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),aq=$({"../node_modules/aria-query/lib/etc/roles/literal/rowheaderRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),lq=$({"../node_modules/aria-query/lib/etc/roles/literal/scrollbarRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),cq=$({"../node_modules/aria-query/lib/etc/roles/literal/searchRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),uq=$({"../node_modules/aria-query/lib/etc/roles/literal/searchboxRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),dq=$({"../node_modules/aria-query/lib/etc/roles/literal/separatorRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),pq=$({"../node_modules/aria-query/lib/etc/roles/literal/sliderRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),fq=$({"../node_modules/aria-query/lib/etc/roles/literal/spinbuttonRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),hq=$({"../node_modules/aria-query/lib/etc/roles/literal/statusRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),mq=$({"../node_modules/aria-query/lib/etc/roles/literal/strongRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),yq=$({"../node_modules/aria-query/lib/etc/roles/literal/subscriptRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),gq=$({"../node_modules/aria-query/lib/etc/roles/literal/superscriptRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),bq=$({"../node_modules/aria-query/lib/etc/roles/literal/switchRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),vq=$({"../node_modules/aria-query/lib/etc/roles/literal/tabRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),Eq=$({"../node_modules/aria-query/lib/etc/roles/literal/tableRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),Tq=$({"../node_modules/aria-query/lib/etc/roles/literal/tablistRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),wq=$({"../node_modules/aria-query/lib/etc/roles/literal/tabpanelRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),_q=$({"../node_modules/aria-query/lib/etc/roles/literal/termRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),Sq=$({"../node_modules/aria-query/lib/etc/roles/literal/textboxRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),Rq=$({"../node_modules/aria-query/lib/etc/roles/literal/timeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),Pq=$({"../node_modules/aria-query/lib/etc/roles/literal/timerRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","status"]]};e.default=t}}),Aq=$({"../node_modules/aria-query/lib/etc/roles/literal/toolbarRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),Oq=$({"../node_modules/aria-query/lib/etc/roles/literal/tooltipRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),Cq=$({"../node_modules/aria-query/lib/etc/roles/literal/treeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),xq=$({"../node_modules/aria-query/lib/etc/roles/literal/treegridRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),Nq=$({"../node_modules/aria-query/lib/etc/roles/literal/treeitemRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),Iq=$({"../node_modules/aria-query/lib/etc/roles/ariaLiteralRoles.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=Y(nM()),r=Y(oM()),n=Y(iM()),o=Y(sM()),s=Y(aM()),a=Y(lM()),c=Y(cM()),u=Y(uM()),d=Y(dM()),p=Y(pM()),f=Y(fM()),m=Y(hM()),y=Y(mM()),g=Y(yM()),T=Y(gM()),E=Y(bM()),v=Y(vM()),_=Y(EM()),A=Y(TM()),N=Y(wM()),j=Y(_M()),C=Y(SM()),R=Y(RM()),w=Y(PM()),S=Y(AM()),k=Y(OM()),I=Y(CM()),V=Y(xM()),H=Y(NM()),P=Y(IM()),L=Y(MM()),B=Y(qM()),D=Y(jM()),K=Y(kM()),X=Y(DM()),ie=Y(LM()),se=Y(FM()),W=Y(BM()),ae=Y($M()),be=Y(JM()),ue=Y(UM()),ee=Y(VM()),Ae=Y(HM()),Oe=Y(GM()),Ve=Y(zM()),We=Y(WM()),J=Y(KM()),Q=Y(YM()),re=Y(XM()),oe=Y(QM()),ne=Y(ZM()),de=Y(eq()),me=Y(tq()),pe=Y(rq()),Be=Y(nq()),ot=Y(oq()),dt=Y(iq()),Tt=Y(sq()),it=Y(aq()),pt=Y(lq()),ft=Y(cq()),ht=Y(uq()),en=Y(dq()),Bo=Y(pq()),tn=Y(fq()),$o=Y(hq()),Jo=Y(mq()),Uo=Y(yq()),rn=Y(gq()),Vo=Y(bq()),Ho=Y(vq()),Go=Y(Eq()),zo=Y(Tq()),Wo=Y(wq()),Ko=Y(_q()),Yo=Y(Sq()),Xo=Y(Rq()),Qo=Y(Pq()),Zo=Y(Aq()),ei=Y(Oq()),ti=Y(Cq()),lr=Y(xq()),nn=Y(Nq());function Y(Nt){return Nt&&Nt.__esModule?Nt:{default:Nt}}i(Y,"_interopRequireDefault");var le=[["alert",t.default],["alertdialog",r.default],["application",n.default],["article",o.default],["banner",s.default],["blockquote",a.default],["button",c.default],["caption",u.default],["cell",d.default],["checkbox",p.default],["code",f.default],["columnheader",m.default],["combobox",y.default],["complementary",g.default],["contentinfo",T.default],["definition",E.default],["deletion",v.default],["dialog",_.default],["directory",A.default],["document",N.default],["emphasis",j.default],["feed",C.default],["figure",R.default],["form",w.default],["generic",S.default],["grid",k.default],["gridcell",I.default],["group",V.default],["heading",H.default],["img",P.default],["insertion",L.default],["link",B.default],["list",D.default],["listbox",K.default],["listitem",X.default],["log",ie.default],["main",se.default],["mark",W.default],["marquee",ae.default],["math",be.default],["menu",ue.default],["menubar",ee.default],["menuitem",Ae.default],["menuitemcheckbox",Oe.default],["menuitemradio",Ve.default],["meter",We.default],["navigation",J.default],["none",Q.default],["note",re.default],["option",oe.default],["paragraph",ne.default],["presentation",de.default],["progressbar",me.default],["radio",pe.default],["radiogroup",Be.default],["region",ot.default],["row",dt.default],["rowgroup",Tt.default],["rowheader",it.default],["scrollbar",pt.default],["search",ft.default],["searchbox",ht.default],["separator",en.default],["slider",Bo.default],["spinbutton",tn.default],["status",$o.default],["strong",Jo.default],["subscript",Uo.default],["superscript",rn.default],["switch",Vo.default],["tab",Ho.default],["table",Go.default],["tablist",zo.default],["tabpanel",Wo.default],["term",Ko.default],["textbox",Yo.default],["time",Xo.default],["timer",Qo.default],["toolbar",Zo.default],["tooltip",ei.default],["tree",ti.default],["treegrid",lr.default],["treeitem",nn.default]];e.default=le}}),Mq=$({"../node_modules/aria-query/lib/etc/roles/dpub/docAbstractRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),qq=$({"../node_modules/aria-query/lib/etc/roles/dpub/docAcknowledgmentsRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),jq=$({"../node_modules/aria-query/lib/etc/roles/dpub/docAfterwordRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),kq=$({"../node_modules/aria-query/lib/etc/roles/dpub/docAppendixRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),Dq=$({"../node_modules/aria-query/lib/etc/roles/dpub/docBacklinkRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),Lq=$({"../node_modules/aria-query/lib/etc/roles/dpub/docBiblioentryRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),Fq=$({"../node_modules/aria-query/lib/etc/roles/dpub/docBibliographyRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),Bq=$({"../node_modules/aria-query/lib/etc/roles/dpub/docBibliorefRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),$q=$({"../node_modules/aria-query/lib/etc/roles/dpub/docChapterRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),Jq=$({"../node_modules/aria-query/lib/etc/roles/dpub/docColophonRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),Uq=$({"../node_modules/aria-query/lib/etc/roles/dpub/docConclusionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),Vq=$({"../node_modules/aria-query/lib/etc/roles/dpub/docCoverRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),Hq=$({"../node_modules/aria-query/lib/etc/roles/dpub/docCreditRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),Gq=$({"../node_modules/aria-query/lib/etc/roles/dpub/docCreditsRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),zq=$({"../node_modules/aria-query/lib/etc/roles/dpub/docDedicationRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),Wq=$({"../node_modules/aria-query/lib/etc/roles/dpub/docEndnoteRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),Kq=$({"../node_modules/aria-query/lib/etc/roles/dpub/docEndnotesRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),Yq=$({"../node_modules/aria-query/lib/etc/roles/dpub/docEpigraphRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),Xq=$({"../node_modules/aria-query/lib/etc/roles/dpub/docEpilogueRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),Qq=$({"../node_modules/aria-query/lib/etc/roles/dpub/docErrataRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),Zq=$({"../node_modules/aria-query/lib/etc/roles/dpub/docExampleRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),ej=$({"../node_modules/aria-query/lib/etc/roles/dpub/docFootnoteRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),tj=$({"../node_modules/aria-query/lib/etc/roles/dpub/docForewordRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),rj=$({"../node_modules/aria-query/lib/etc/roles/dpub/docGlossaryRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),nj=$({"../node_modules/aria-query/lib/etc/roles/dpub/docGlossrefRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),oj=$({"../node_modules/aria-query/lib/etc/roles/dpub/docIndexRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),ij=$({"../node_modules/aria-query/lib/etc/roles/dpub/docIntroductionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),sj=$({"../node_modules/aria-query/lib/etc/roles/dpub/docNoterefRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),aj=$({"../node_modules/aria-query/lib/etc/roles/dpub/docNoticeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),lj=$({"../node_modules/aria-query/lib/etc/roles/dpub/docPagebreakRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),cj=$({"../node_modules/aria-query/lib/etc/roles/dpub/docPagefooterRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),uj=$({"../node_modules/aria-query/lib/etc/roles/dpub/docPageheaderRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),dj=$({"../node_modules/aria-query/lib/etc/roles/dpub/docPagelistRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),pj=$({"../node_modules/aria-query/lib/etc/roles/dpub/docPartRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),fj=$({"../node_modules/aria-query/lib/etc/roles/dpub/docPrefaceRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),hj=$({"../node_modules/aria-query/lib/etc/roles/dpub/docPrologueRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),mj=$({"../node_modules/aria-query/lib/etc/roles/dpub/docPullquoteRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),yj=$({"../node_modules/aria-query/lib/etc/roles/dpub/docQnaRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),gj=$({"../node_modules/aria-query/lib/etc/roles/dpub/docSubtitleRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),bj=$({"../node_modules/aria-query/lib/etc/roles/dpub/docTipRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),vj=$({"../node_modules/aria-query/lib/etc/roles/dpub/docTocRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),Ej=$({"../node_modules/aria-query/lib/etc/roles/ariaDpubRoles.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=ee(Mq()),r=ee(qq()),n=ee(jq()),o=ee(kq()),s=ee(Dq()),a=ee(Lq()),c=ee(Fq()),u=ee(Bq()),d=ee($q()),p=ee(Jq()),f=ee(Uq()),m=ee(Vq()),y=ee(Hq()),g=ee(Gq()),T=ee(zq()),E=ee(Wq()),v=ee(Kq()),_=ee(Yq()),A=ee(Xq()),N=ee(Qq()),j=ee(Zq()),C=ee(ej()),R=ee(tj()),w=ee(rj()),S=ee(nj()),k=ee(oj()),I=ee(ij()),V=ee(sj()),H=ee(aj()),P=ee(lj()),L=ee(cj()),B=ee(uj()),D=ee(dj()),K=ee(pj()),X=ee(fj()),ie=ee(hj()),se=ee(mj()),W=ee(yj()),ae=ee(gj()),be=ee(bj()),ue=ee(vj());function ee(Oe){return Oe&&Oe.__esModule?Oe:{default:Oe}}i(ee,"_interopRequireDefault");var Ae=[["doc-abstract",t.default],["doc-acknowledgments",r.default],["doc-afterword",n.default],["doc-appendix",o.default],["doc-backlink",s.default],["doc-biblioentry",a.default],["doc-bibliography",c.default],["doc-biblioref",u.default],["doc-chapter",d.default],["doc-colophon",p.default],["doc-conclusion",f.default],["doc-cover",m.default],["doc-credit",y.default],["doc-credits",g.default],["doc-dedication",T.default],["doc-endnote",E.default],["doc-endnotes",v.default],["doc-epigraph",_.default],["doc-epilogue",A.default],["doc-errata",N.default],["doc-example",j.default],["doc-footnote",C.default],["doc-foreword",R.default],["doc-glossary",w.default],["doc-glossref",S.default],["doc-index",k.default],["doc-introduction",I.default],["doc-noteref",V.default],["doc-notice",H.default],["doc-pagebreak",P.default],["doc-pagefooter",L.default],["doc-pageheader",B.default],["doc-pagelist",D.default],["doc-part",K.default],["doc-preface",X.default],["doc-prologue",ie.default],["doc-pullquote",se.default],["doc-qna",W.default],["doc-subtitle",ae.default],["doc-tip",be.default],["doc-toc",ue.default]];e.default=Ae}}),Tj=$({"../node_modules/aria-query/lib/etc/roles/graphics/graphicsDocumentRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),wj=$({"../node_modules/aria-query/lib/etc/roles/graphics/graphicsObjectRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),_j=$({"../node_modules/aria-query/lib/etc/roles/graphics/graphicsSymbolRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={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"]]};e.default=t}}),Sj=$({"../node_modules/aria-query/lib/etc/roles/ariaGraphicsRoles.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=o(Tj()),r=o(wj()),n=o(_j());function o(a){return a&&a.__esModule?a:{default:a}}i(o,"_interopRequireDefault");var s=[["graphics-document",t.default],["graphics-object",r.default],["graphics-symbol",n.default]];e.default=s}}),lp=$({"../node_modules/aria-query/lib/rolesMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=a(rM()),r=a(Iq()),n=a(Ej()),o=a(Sj()),s=a(us());function a(E){return E&&E.__esModule?E:{default:E}}i(a,"_interopRequireDefault");function c(E,v){var _=typeof Symbol<"u"&&E[Symbol.iterator]||E["@@iterator"];if(!_){if(Array.isArray(E)||(_=p(E))||v&&E&&typeof E.length=="number"){_&&(E=_);var A=0,N=i(function(){},"F");return{s:N,n:i(function(){return A>=E.length?{done:!0}:{done:!1,value:E[A++]}},"n"),e:i(function(S){throw S},"e"),f:N}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
5
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var j,C=!0,R=!1;return{s:i(function(){_=_.call(E)},"s"),n:i(function(){var S=_.next();return C=S.done,S},"n"),e:i(function(S){R=!0,j=S},"e"),f:i(function(){try{C||_.return==null||_.return()}finally{if(R)throw j}},"f")}}i(c,"_createForOfIteratorHelper");function u(E,v){return y(E)||m(E,v)||p(E,v)||d()}i(u,"_slicedToArray");function d(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
6
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}i(d,"_nonIterableRest");function p(E,v){if(E){if(typeof E=="string")return f(E,v);var _={}.toString.call(E).slice(8,-1);return _==="Object"&&E.constructor&&(_=E.constructor.name),_==="Map"||_==="Set"?Array.from(E):_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_)?f(E,v):void 0}}i(p,"_unsupportedIterableToArray");function f(E,v){(v==null||v>E.length)&&(v=E.length);for(var _=0,A=Array(v);_<v;_++)A[_]=E[_];return A}i(f,"_arrayLikeToArray");function m(E,v){var _=E==null?null:typeof Symbol<"u"&&E[Symbol.iterator]||E["@@iterator"];if(_!=null){var A,N,j,C,R=[],w=!0,S=!1;try{if(j=(_=_.call(E)).next,v===0){if(Object(_)!==_)return;w=!1}else for(;!(w=(A=j.call(_)).done)&&(R.push(A.value),R.length!==v);w=!0);}catch(k){S=!0,N=k}finally{try{if(!w&&_.return!=null&&(C=_.return(),Object(C)!==C))return}finally{if(S)throw N}}return R}}i(m,"_iterableToArrayLimit");function y(E){if(Array.isArray(E))return E}i(y,"_arrayWithHoles");var g=[].concat(t.default,r.default,n.default,o.default);g.forEach(function(E){var v=u(E,2),_=v[1],A=c(_.superClass),N;try{for(A.s();!(N=A.n()).done;){var j=N.value,C=c(j),R;try{var w=i(function(){var k=R.value,I=g.filter(function(B){var D=u(B,1),K=D[0];return K===k})[0];if(I)for(var V=I[1],H=0,P=Object.keys(V.props);H<P.length;H++){var L=P[H];Object.prototype.hasOwnProperty.call(_.props,L)||(_.props[L]=V.props[L])}},"_loop");for(C.s();!(R=C.n()).done;)w()}catch(S){C.e(S)}finally{C.f()}}}catch(S){A.e(S)}finally{A.f()}});var T={entries:i(function(){return g},"entries"),forEach:i(function(v){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,A=c(g),N;try{for(A.s();!(N=A.n()).done;){var j=u(N.value,2),C=j[0],R=j[1];v.call(_,R,C,g)}}catch(w){A.e(w)}finally{A.f()}},"forEach"),get:i(function(v){var _=g.filter(function(A){return A[0]===v})[0];return _&&_[1]},"get"),has:i(function(v){return!!T.get(v)},"has"),keys:i(function(){return g.map(function(v){var _=u(v,1),A=_[0];return A})},"keys"),values:i(function(){return g.map(function(v){var _=u(v,2),A=_[1];return A})},"values")};e.default=(0,s.default)(T,T.entries())}}),Rj=$({"../node_modules/aria-query/lib/elementRoleMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(us()),r=n(lp());function n(C){return C&&C.__esModule?C:{default:C}}i(n,"_interopRequireDefault");function o(C,R){return d(C)||u(C,R)||a(C,R)||s()}i(o,"_slicedToArray");function s(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
7
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}i(s,"_nonIterableRest");function a(C,R){if(C){if(typeof C=="string")return c(C,R);var w={}.toString.call(C).slice(8,-1);return w==="Object"&&C.constructor&&(w=C.constructor.name),w==="Map"||w==="Set"?Array.from(C):w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w)?c(C,R):void 0}}i(a,"_unsupportedIterableToArray");function c(C,R){(R==null||R>C.length)&&(R=C.length);for(var w=0,S=Array(R);w<R;w++)S[w]=C[w];return S}i(c,"_arrayLikeToArray");function u(C,R){var w=C==null?null:typeof Symbol<"u"&&C[Symbol.iterator]||C["@@iterator"];if(w!=null){var S,k,I,V,H=[],P=!0,L=!1;try{if(I=(w=w.call(C)).next,R===0){if(Object(w)!==w)return;P=!1}else for(;!(P=(S=I.call(w)).done)&&(H.push(S.value),H.length!==R);P=!0);}catch(B){L=!0,k=B}finally{try{if(!P&&w.return!=null&&(V=w.return(),Object(V)!==V))return}finally{if(L)throw k}}return H}}i(u,"_iterableToArrayLimit");function d(C){if(Array.isArray(C))return C}i(d,"_arrayWithHoles");var p=[],f=r.default.keys();for(v=0;v<f.length;v++)if(m=f[v],y=r.default.get(m),y)for(g=[].concat(y.baseConcepts,y.relatedConcepts),T=i(function(){var R=g[E];if(R.module==="HTML"){var w=R.concept;if(w){var S=p.filter(function(H){return A(H[0],w)})[0],k;S?k=S[1]:k=[];for(var I=!0,V=0;V<k.length;V++)if(k[V]===m){I=!1;break}I&&k.push(m),S||p.push([w,k])}}},"_loop"),E=0;E<g.length;E++)T();var m,y,g,T,E,v,_={entries:i(function(){return p},"entries"),forEach:i(function(R){for(var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,S=0,k=p;S<k.length;S++){var I=o(k[S],2),V=I[0],H=I[1];R.call(w,H,V,p)}},"forEach"),get:i(function(R){var w=p.filter(function(S){return R.name===S[0].name&&j(R.attributes,S[0].attributes)})[0];return w&&w[1]},"get"),has:i(function(R){return!!_.get(R)},"has"),keys:i(function(){return p.map(function(R){var w=o(R,1),S=w[0];return S})},"keys"),values:i(function(){return p.map(function(R){var w=o(R,2),S=w[1];return S})},"values")};function A(C,R){return C.name===R.name&&N(C.constraints,R.constraints)&&j(C.attributes,R.attributes)}i(A,"ariaRoleRelationConceptEquals");function N(C,R){if(C===void 0&&R!==void 0||C!==void 0&&R===void 0)return!1;if(C!==void 0&&R!==void 0){if(C.length!==R.length)return!1;for(var w=0;w<C.length;w++)if(C[w]!==R[w])return!1}return!0}i(N,"ariaRoleRelationConstraintsEquals");function j(C,R){if(C===void 0&&R!==void 0||C!==void 0&&R===void 0)return!1;if(C!==void 0&&R!==void 0){if(C.length!==R.length)return!1;for(var w=0;w<C.length;w++){if(C[w].name!==R[w].name||C[w].value!==R[w].value||C[w].constraints===void 0&&R[w].constraints!==void 0||C[w].constraints!==void 0&&R[w].constraints===void 0)return!1;if(C[w].constraints!==void 0&&R[w].constraints!==void 0){if(C[w].constraints.length!==R[w].constraints.length)return!1;for(var S=0;S<C[w].constraints.length;S++)if(C[w].constraints[S]!==R[w].constraints[S])return!1}}}return!0}i(j,"ariaRoleRelationConceptAttributeEquals"),e.default=(0,t.default)(_,_.entries())}}),Pj=$({"../node_modules/aria-query/lib/roleElementMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(us()),r=n(lp());function n(j){return j&&j.__esModule?j:{default:j}}i(n,"_interopRequireDefault");function o(j,C){return d(j)||u(j,C)||a(j,C)||s()}i(o,"_slicedToArray");function s(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
8
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}i(s,"_nonIterableRest");function a(j,C){if(j){if(typeof j=="string")return c(j,C);var R={}.toString.call(j).slice(8,-1);return R==="Object"&&j.constructor&&(R=j.constructor.name),R==="Map"||R==="Set"?Array.from(j):R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R)?c(j,C):void 0}}i(a,"_unsupportedIterableToArray");function c(j,C){(C==null||C>j.length)&&(C=j.length);for(var R=0,w=Array(C);R<C;R++)w[R]=j[R];return w}i(c,"_arrayLikeToArray");function u(j,C){var R=j==null?null:typeof Symbol<"u"&&j[Symbol.iterator]||j["@@iterator"];if(R!=null){var w,S,k,I,V=[],H=!0,P=!1;try{if(k=(R=R.call(j)).next,C===0){if(Object(R)!==R)return;H=!1}else for(;!(H=(w=k.call(R)).done)&&(V.push(w.value),V.length!==C);H=!0);}catch(L){P=!0,S=L}finally{try{if(!H&&R.return!=null&&(I=R.return(),Object(I)!==I))return}finally{if(P)throw S}}return V}}i(u,"_iterableToArrayLimit");function d(j){if(Array.isArray(j))return j}i(d,"_arrayWithHoles");var p=[],f=r.default.keys();for(A=0;A<f.length;A++)if(m=f[A],y=r.default.get(m),g=[],y){for(T=[].concat(y.baseConcepts,y.relatedConcepts),_=0;_<T.length;_++)E=T[_],E.module==="HTML"&&(v=E.concept,v!=null&&g.push(v));g.length>0&&p.push([m,g])}var m,y,g,T,E,v,_,A,N={entries:i(function(){return p},"entries"),forEach:i(function(C){for(var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,w=0,S=p;w<S.length;w++){var k=o(S[w],2),I=k[0],V=k[1];C.call(R,V,I,p)}},"forEach"),get:i(function(C){var R=p.filter(function(w){return w[0]===C})[0];return R&&R[1]},"get"),has:i(function(C){return!!N.get(C)},"has"),keys:i(function(){return p.map(function(C){var R=o(C,1),w=R[0];return w})},"keys"),values:i(function(){return p.map(function(C){var R=o(C,2),w=R[1];return w})},"values")};e.default=(0,t.default)(N,N.entries())}}),cp=$({"../node_modules/aria-query/lib/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.roles=e.roleElements=e.elementRoles=e.dom=e.aria=void 0;var t=a(JI()),r=a(UI()),n=a(lp()),o=a(Rj()),s=a(Pj());function a(c){return c&&c.__esModule?c:{default:c}}i(a,"_interopRequireDefault"),e.aria=t.default,e.dom=r.default,e.roles=n.default,e.elementRoles=o.default,e.roleElements=s.default}}),Jb=$({"../node_modules/picocolors/picocolors.browser.js"(e,t){var r=String,n=i(function(){return{isColorSupported:!1,reset:r,bold:r,dim:r,italic:r,underline:r,inverse:r,hidden:r,strikethrough:r,black:r,red:r,green:r,yellow:r,blue:r,magenta:r,cyan:r,white:r,gray:r,bgBlack:r,bgRed:r,bgGreen:r,bgYellow:r,bgBlue:r,bgMagenta:r,bgCyan:r,bgWhite:r,blackBright:r,redBright:r,greenBright:r,yellowBright:r,blueBright:r,magentaBright:r,cyanBright:r,whiteBright:r,bgBlackBright:r,bgRedBright:r,bgGreenBright:r,bgYellowBright:r,bgBlueBright:r,bgMagentaBright:r,bgCyanBright:r,bgWhiteBright:r}},"create");t.exports=n(),t.exports.createColors=n}}),Ub=$({"../node_modules/css.escape/css.escape.js"(e,t){(function(r,n){typeof e=="object"?t.exports=n(r):typeof define=="function"&&define.amd?define([],n.bind(r,r)):n(r)})(typeof global<"u"?global:e,function(r){if(r.CSS&&r.CSS.escape)return r.CSS.escape;var n=i(function(o){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");for(var s=String(o),a=s.length,c=-1,u,d="",p=s.charCodeAt(0);++c<a;){if(u=s.charCodeAt(c),u==0){d+="�";continue}if(u>=1&&u<=31||u==127||c==0&&u>=48&&u<=57||c==1&&u>=48&&u<=57&&p==45){d+="\\"+u.toString(16)+" ";continue}if(c==0&&a==1&&u==45){d+="\\"+s.charAt(c);continue}if(u>=128||u==45||u==95||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122){d+=s.charAt(c);continue}d+="\\"+s.charAt(c)}return d},"cssEscape");return r.CSS||(r.CSS={}),r.CSS.escape=n,n})}}),Vb=$({"../node_modules/pretty-format/node_modules/ansi-styles/index.js"(e,t){var r=10,n=i((a=0)=>c=>`\x1B[${38+a};5;${c}m`,"wrapAnsi256"),o=i((a=0)=>(c,u,d)=>`\x1B[${38+a};2;${c};${u};${d}m`,"wrapAnsi16m");function s(){const a=new Map,c={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};c.color.gray=c.color.blackBright,c.bgColor.bgGray=c.bgColor.bgBlackBright,c.color.grey=c.color.blackBright,c.bgColor.bgGrey=c.bgColor.bgBlackBright;for(const[u,d]of Object.entries(c)){for(const[p,f]of Object.entries(d))c[p]={open:`\x1B[${f[0]}m`,close:`\x1B[${f[1]}m`},d[p]=c[p],a.set(f[0],f[1]);Object.defineProperty(c,u,{value:d,enumerable:!1})}return Object.defineProperty(c,"codes",{value:a,enumerable:!1}),c.color.close="\x1B[39m",c.bgColor.close="\x1B[49m",c.color.ansi256=n(),c.color.ansi16m=o(),c.bgColor.ansi256=n(r),c.bgColor.ansi16m=o(r),Object.defineProperties(c,{rgbToAnsi256:{value:i((u,d,p)=>u===d&&d===p?u<8?16:u>248?231:Math.round((u-8)/247*24)+232:16+36*Math.round(u/255*5)+6*Math.round(d/255*5)+Math.round(p/255*5),"value"),enumerable:!1},hexToRgb:{value:i(u=>{const d=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(u.toString(16));if(!d)return[0,0,0];let{colorString:p}=d.groups;p.length===3&&(p=p.split("").map(m=>m+m).join(""));const f=Number.parseInt(p,16);return[f>>16&255,f>>8&255,f&255]},"value"),enumerable:!1},hexToAnsi256:{value:i(u=>c.rgbToAnsi256(...c.hexToRgb(u)),"value"),enumerable:!1}}),c}i(s,"assembleStyles"),Object.defineProperty(t,"exports",{enumerable:!0,get:s})}}),rl=$({"../node_modules/pretty-format/build/collections.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.printIteratorEntries=r,e.printIteratorValues=n,e.printListItems=o,e.printObjectProperties=s;var t=i((a,c)=>{const u=Object.keys(a).sort(c);return Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(a).forEach(d=>{Object.getOwnPropertyDescriptor(a,d).enumerable&&u.push(d)}),u},"getKeysOfEnumerableProperties");function r(a,c,u,d,p,f,m=": "){let y="",g=a.next();if(!g.done){y+=c.spacingOuter;const T=u+c.indent;for(;!g.done;){const E=f(g.value[0],c,T,d,p),v=f(g.value[1],c,T,d,p);y+=T+E+m+v,g=a.next(),g.done?c.min||(y+=","):y+=","+c.spacingInner}y+=c.spacingOuter+u}return y}i(r,"printIteratorEntries");function n(a,c,u,d,p,f){let m="",y=a.next();if(!y.done){m+=c.spacingOuter;const g=u+c.indent;for(;!y.done;)m+=g+f(y.value,c,g,d,p),y=a.next(),y.done?c.min||(m+=","):m+=","+c.spacingInner;m+=c.spacingOuter+u}return m}i(n,"printIteratorValues");function o(a,c,u,d,p,f){let m="";if(a.length){m+=c.spacingOuter;const y=u+c.indent;for(let g=0;g<a.length;g++)m+=y,g in a&&(m+=f(a[g],c,y,d,p)),g<a.length-1?m+=","+c.spacingInner:c.min||(m+=",");m+=c.spacingOuter+u}return m}i(o,"printListItems");function s(a,c,u,d,p,f){let m="";const y=t(a,c.compareKeys);if(y.length){m+=c.spacingOuter;const g=u+c.indent;for(let T=0;T<y.length;T++){const E=y[T],v=f(E,c,g,d,p),_=f(a[E],c,g,d,p);m+=g+v+": "+_,T<y.length-1?m+=","+c.spacingInner:c.min||(m+=",")}m+=c.spacingOuter+u}return m}i(s,"printObjectProperties")}}),Aj=$({"../node_modules/pretty-format/build/plugins/AsymmetricMatcher.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=rl(),r=(function(){return typeof globalThis<"u"?globalThis:typeof r<"u"?r:typeof self<"u"?self:typeof window<"u"?window:Function("return this")()})(),n=r["jest-symbol-do-not-touch"]||r.Symbol,o=typeof n=="function"&&n.for?n.for("jest.asymmetricMatcher"):1267621,s=" ",a=i((p,f,m,y,g,T)=>{const E=p.toString();return E==="ArrayContaining"||E==="ArrayNotContaining"?++y>f.maxDepth?"["+E+"]":E+s+"["+(0,t.printListItems)(p.sample,f,m,y,g,T)+"]":E==="ObjectContaining"||E==="ObjectNotContaining"?++y>f.maxDepth?"["+E+"]":E+s+"{"+(0,t.printObjectProperties)(p.sample,f,m,y,g,T)+"}":E==="StringMatching"||E==="StringNotMatching"||E==="StringContaining"||E==="StringNotContaining"?E+s+T(p.sample,f,m,y,g):p.toAsymmetricMatcher()},"serialize");e.serialize=a;var c=i(p=>p&&p.$$typeof===o,"test");e.test=c;var u={serialize:a,test:c},d=u;e.default=d}}),Oj=$({"../node_modules/pretty-format/node_modules/ansi-regex/index.js"(e,t){t.exports=({onlyFirst:r=!1}={})=>{const n=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(n,r?void 0:"g")}}}),Cj=$({"../node_modules/pretty-format/build/plugins/ConvertAnsi.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=n(Oj()),r=n(Vb());function n(d){return d&&d.__esModule?d:{default:d}}i(n,"_interopRequireDefault");var o=i(d=>d.replace((0,t.default)(),p=>{switch(p){case r.default.red.close:case r.default.green.close:case r.default.cyan.close:case r.default.gray.close:case r.default.white.close:case r.default.yellow.close:case r.default.bgRed.close:case r.default.bgGreen.close:case r.default.bgYellow.close:case r.default.inverse.close:case r.default.dim.close:case r.default.bold.close:case r.default.reset.open:case r.default.reset.close:return"</>";case r.default.red.open:return"<red>";case r.default.green.open:return"<green>";case r.default.cyan.open:return"<cyan>";case r.default.gray.open:return"<gray>";case r.default.white.open:return"<white>";case r.default.yellow.open:return"<yellow>";case r.default.bgRed.open:return"<bgRed>";case r.default.bgGreen.open:return"<bgGreen>";case r.default.bgYellow.open:return"<bgYellow>";case r.default.inverse.open:return"<inverse>";case r.default.dim.open:return"<dim>";case r.default.bold.open:return"<bold>";default:return""}}),"toHumanReadableAnsi"),s=i(d=>typeof d=="string"&&!!d.match((0,t.default)()),"test");e.test=s;var a=i((d,p,f,m,y,g)=>g(o(d),p,f,m,y),"serialize");e.serialize=a;var c={serialize:a,test:s},u=c;e.default=u}}),xj=$({"../node_modules/pretty-format/build/plugins/DOMCollection.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=rl(),r=" ",n=["DOMStringMap","NamedNodeMap"],o=/^(HTML\w*Collection|NodeList)$/,s=i(f=>n.indexOf(f)!==-1||o.test(f),"testName"),a=i(f=>f&&f.constructor&&!!f.constructor.name&&s(f.constructor.name),"test");e.test=a;var c=i(f=>f.constructor.name==="NamedNodeMap","isNamedNodeMap"),u=i((f,m,y,g,T,E)=>{const v=f.constructor.name;return++g>m.maxDepth?"["+v+"]":(m.min?"":v+r)+(n.indexOf(v)!==-1?"{"+(0,t.printObjectProperties)(c(f)?Array.from(f).reduce((_,A)=>(_[A.name]=A.value,_),{}):{...f},m,y,g,T,E)+"}":"["+(0,t.printListItems)(Array.from(f),m,y,g,T,E)+"]")},"serialize");e.serialize=u;var d={serialize:u,test:a},p=d;e.default=p}}),Nj=$({"../node_modules/pretty-format/build/plugins/lib/escapeHTML.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){return r.replace(/</g,"<").replace(/>/g,">")}i(t,"escapeHTML")}}),up=$({"../node_modules/pretty-format/build/plugins/lib/markup.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.printText=e.printProps=e.printElementAsLeaf=e.printElement=e.printComment=e.printChildren=void 0;var t=r(Nj());function r(d){return d&&d.__esModule?d:{default:d}}i(r,"_interopRequireDefault");var n=i((d,p,f,m,y,g,T)=>{const E=m+f.indent,v=f.colors;return d.map(_=>{const A=p[_];let N=T(A,f,E,y,g);return typeof A!="string"&&(N.indexOf(`
|
|
9
|
+
`)!==-1&&(N=f.spacingOuter+E+N+f.spacingOuter+m),N="{"+N+"}"),f.spacingInner+m+v.prop.open+_+v.prop.close+"="+v.value.open+N+v.value.close}).join("")},"printProps");e.printProps=n;var o=i((d,p,f,m,y,g)=>d.map(T=>p.spacingOuter+f+(typeof T=="string"?s(T,p):g(T,p,f,m,y))).join(""),"printChildren");e.printChildren=o;var s=i((d,p)=>{const f=p.colors.content;return f.open+(0,t.default)(d)+f.close},"printText");e.printText=s;var a=i((d,p)=>{const f=p.colors.comment;return f.open+"<!--"+(0,t.default)(d)+"-->"+f.close},"printComment");e.printComment=a;var c=i((d,p,f,m,y)=>{const g=m.colors.tag;return g.open+"<"+d+(p&&g.close+p+m.spacingOuter+y+g.open)+(f?">"+g.close+f+m.spacingOuter+y+g.open+"</"+d:(p&&!m.min?"":" ")+"/")+">"+g.close},"printElement");e.printElement=c;var u=i((d,p)=>{const f=p.colors.tag;return f.open+"<"+d+f.close+" …"+f.open+" />"+f.close},"printElementAsLeaf");e.printElementAsLeaf=u}}),Ij=$({"../node_modules/pretty-format/build/plugins/DOMElement.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=up(),r=1,n=3,o=8,s=11,a=/^((HTML|SVG)\w*)?Element$/,c=i(E=>{try{return typeof E.hasAttribute=="function"&&E.hasAttribute("is")}catch{return!1}},"testHasAttribute"),u=i(E=>{const v=E.constructor.name,{nodeType:_,tagName:A}=E,N=typeof A=="string"&&A.includes("-")||c(E);return _===r&&(a.test(v)||N)||_===n&&v==="Text"||_===o&&v==="Comment"||_===s&&v==="DocumentFragment"},"testNode"),d=i(E=>{var v;return(E==null||(v=E.constructor)===null||v===void 0?void 0:v.name)&&u(E)},"test");e.test=d;function p(E){return E.nodeType===n}i(p,"nodeIsText");function f(E){return E.nodeType===o}i(f,"nodeIsComment");function m(E){return E.nodeType===s}i(m,"nodeIsFragment");var y=i((E,v,_,A,N,j)=>{if(p(E))return(0,t.printText)(E.data,v);if(f(E))return(0,t.printComment)(E.data,v);const C=m(E)?"DocumentFragment":E.tagName.toLowerCase();return++A>v.maxDepth?(0,t.printElementAsLeaf)(C,v):(0,t.printElement)(C,(0,t.printProps)(m(E)?[]:Array.from(E.attributes).map(R=>R.name).sort(),m(E)?{}:Array.from(E.attributes).reduce((R,w)=>(R[w.name]=w.value,R),{}),v,_+v.indent,A,N,j),(0,t.printChildren)(Array.prototype.slice.call(E.childNodes||E.children),v,_+v.indent,A,N,j),v,_)},"serialize");e.serialize=y;var g={serialize:y,test:d},T=g;e.default=T}}),Mj=$({"../node_modules/pretty-format/build/plugins/Immutable.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=rl(),r="@@__IMMUTABLE_ITERABLE__@@",n="@@__IMMUTABLE_LIST__@@",o="@@__IMMUTABLE_KEYED__@@",s="@@__IMMUTABLE_MAP__@@",a="@@__IMMUTABLE_ORDERED__@@",c="@@__IMMUTABLE_RECORD__@@",u="@@__IMMUTABLE_SEQ__@@",d="@@__IMMUTABLE_SET__@@",p="@@__IMMUTABLE_STACK__@@",f=i(w=>"Immutable."+w,"getImmutableName"),m=i(w=>"["+w+"]","printAsLeaf"),y=" ",g="…",T=i((w,S,k,I,V,H,P)=>++I>S.maxDepth?m(f(P)):f(P)+y+"{"+(0,t.printIteratorEntries)(w.entries(),S,k,I,V,H)+"}","printImmutableEntries");function E(w){let S=0;return{next(){if(S<w._keys.length){const k=w._keys[S++];return{done:!1,value:[k,w.get(k)]}}return{done:!0,value:void 0}}}}i(E,"getRecordEntries");var v=i((w,S,k,I,V,H)=>{const P=f(w._name||"Record");return++I>S.maxDepth?m(P):P+y+"{"+(0,t.printIteratorEntries)(E(w),S,k,I,V,H)+"}"},"printImmutableRecord"),_=i((w,S,k,I,V,H)=>{const P=f("Seq");return++I>S.maxDepth?m(P):w[o]?P+y+"{"+(w._iter||w._object?(0,t.printIteratorEntries)(w.entries(),S,k,I,V,H):g)+"}":P+y+"["+(w._iter||w._array||w._collection||w._iterable?(0,t.printIteratorValues)(w.values(),S,k,I,V,H):g)+"]"},"printImmutableSeq"),A=i((w,S,k,I,V,H,P)=>++I>S.maxDepth?m(f(P)):f(P)+y+"["+(0,t.printIteratorValues)(w.values(),S,k,I,V,H)+"]","printImmutableValues"),N=i((w,S,k,I,V,H)=>w[s]?T(w,S,k,I,V,H,w[a]?"OrderedMap":"Map"):w[n]?A(w,S,k,I,V,H,"List"):w[d]?A(w,S,k,I,V,H,w[a]?"OrderedSet":"Set"):w[p]?A(w,S,k,I,V,H,"Stack"):w[u]?_(w,S,k,I,V,H):v(w,S,k,I,V,H),"serialize");e.serialize=N;var j=i(w=>w&&(w[r]===!0||w[c]===!0),"test");e.test=j;var C={serialize:N,test:j},R=C;e.default=R}}),qj=$({"../node_modules/pretty-format/node_modules/react-is/cjs/react-is.production.min.js"(e){var t=60103,r=60106,n=60107,o=60108,s=60114,a=60109,c=60110,u=60112,d=60113,p=60120,f=60115,m=60116,y=60121,g=60122,T=60117,E=60129,v=60131;typeof Symbol=="function"&&Symbol.for&&(_=Symbol.for,t=_("react.element"),r=_("react.portal"),n=_("react.fragment"),o=_("react.strict_mode"),s=_("react.profiler"),a=_("react.provider"),c=_("react.context"),u=_("react.forward_ref"),d=_("react.suspense"),p=_("react.suspense_list"),f=_("react.memo"),m=_("react.lazy"),y=_("react.block"),g=_("react.server.block"),T=_("react.fundamental"),E=_("react.debug_trace_mode"),v=_("react.legacy_hidden"));var _;function A(P){if(typeof P=="object"&&P!==null){var L=P.$$typeof;switch(L){case t:switch(P=P.type,P){case n:case s:case o:case d:case p:return P;default:switch(P=P&&P.$$typeof,P){case c:case u:case m:case f:case a:return P;default:return L}}case r:return L}}}i(A,"y");var N=a,j=t,C=u,R=n,w=m,S=f,k=r,I=s,V=o,H=d;e.ContextConsumer=c,e.ContextProvider=N,e.Element=j,e.ForwardRef=C,e.Fragment=R,e.Lazy=w,e.Memo=S,e.Portal=k,e.Profiler=I,e.StrictMode=V,e.Suspense=H,e.isAsyncMode=function(){return!1},e.isConcurrentMode=function(){return!1},e.isContextConsumer=function(P){return A(P)===c},e.isContextProvider=function(P){return A(P)===a},e.isElement=function(P){return typeof P=="object"&&P!==null&&P.$$typeof===t},e.isForwardRef=function(P){return A(P)===u},e.isFragment=function(P){return A(P)===n},e.isLazy=function(P){return A(P)===m},e.isMemo=function(P){return A(P)===f},e.isPortal=function(P){return A(P)===r},e.isProfiler=function(P){return A(P)===s},e.isStrictMode=function(P){return A(P)===o},e.isSuspense=function(P){return A(P)===d},e.isValidElementType=function(P){return typeof P=="string"||typeof P=="function"||P===n||P===s||P===E||P===o||P===d||P===p||P===v||typeof P=="object"&&P!==null&&(P.$$typeof===m||P.$$typeof===f||P.$$typeof===a||P.$$typeof===c||P.$$typeof===u||P.$$typeof===T||P.$$typeof===y||P[0]===g)},e.typeOf=A}}),jj=$({"../node_modules/pretty-format/node_modules/react-is/index.js"(e,t){t.exports=qj()}}),kj=$({"../node_modules/pretty-format/build/plugins/ReactElement.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=o(jj()),r=up();function n(m){if(typeof WeakMap!="function")return null;var y=new WeakMap,g=new WeakMap;return(n=i(function(T){return T?g:y},"_getRequireWildcardCache"))(m)}i(n,"_getRequireWildcardCache");function o(m,y){if(!y&&m&&m.__esModule)return m;if(m===null||typeof m!="object"&&typeof m!="function")return{default:m};var g=n(y);if(g&&g.has(m))return g.get(m);var T={},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var v in m)if(v!=="default"&&Object.prototype.hasOwnProperty.call(m,v)){var _=E?Object.getOwnPropertyDescriptor(m,v):null;_&&(_.get||_.set)?Object.defineProperty(T,v,_):T[v]=m[v]}return T.default=m,g&&g.set(m,T),T}i(o,"_interopRequireWildcard");var s=i((m,y=[])=>(Array.isArray(m)?m.forEach(g=>{s(g,y)}):m!=null&&m!==!1&&y.push(m),y),"getChildren"),a=i(m=>{const y=m.type;if(typeof y=="string")return y;if(typeof y=="function")return y.displayName||y.name||"Unknown";if(t.isFragment(m))return"React.Fragment";if(t.isSuspense(m))return"React.Suspense";if(typeof y=="object"&&y!==null){if(t.isContextProvider(m))return"Context.Provider";if(t.isContextConsumer(m))return"Context.Consumer";if(t.isForwardRef(m)){if(y.displayName)return y.displayName;const g=y.render.displayName||y.render.name||"";return g!==""?"ForwardRef("+g+")":"ForwardRef"}if(t.isMemo(m)){const g=y.displayName||y.type.displayName||y.type.name||"";return g!==""?"Memo("+g+")":"Memo"}}return"UNDEFINED"},"getType"),c=i(m=>{const{props:y}=m;return Object.keys(y).filter(g=>g!=="children"&&y[g]!==void 0).sort()},"getPropKeys"),u=i((m,y,g,T,E,v)=>++T>y.maxDepth?(0,r.printElementAsLeaf)(a(m),y):(0,r.printElement)(a(m),(0,r.printProps)(c(m),m.props,y,g+y.indent,T,E,v),(0,r.printChildren)(s(m.props.children),y,g+y.indent,T,E,v),y,g),"serialize");e.serialize=u;var d=i(m=>m!=null&&t.isElement(m),"test");e.test=d;var p={serialize:u,test:d},f=p;e.default=f}}),Dj=$({"../node_modules/pretty-format/build/plugins/ReactTestComponent.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=up(),r=(function(){return typeof globalThis<"u"?globalThis:typeof r<"u"?r:typeof self<"u"?self:typeof window<"u"?window:Function("return this")()})(),n=r["jest-symbol-do-not-touch"]||r.Symbol,o=typeof n=="function"&&n.for?n.for("react.test.json"):245830487,s=i(p=>{const{props:f}=p;return f?Object.keys(f).filter(m=>f[m]!==void 0).sort():[]},"getPropKeys"),a=i((p,f,m,y,g,T)=>++y>f.maxDepth?(0,t.printElementAsLeaf)(p.type,f):(0,t.printElement)(p.type,p.props?(0,t.printProps)(s(p),p.props,f,m+f.indent,y,g,T):"",p.children?(0,t.printChildren)(p.children,f,m+f.indent,y,g,T):"",f,m),"serialize");e.serialize=a;var c=i(p=>p&&p.$$typeof===o,"test");e.test=c;var u={serialize:a,test:c},d=u;e.default=d}}),Lj=$({"../node_modules/pretty-format/build/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.DEFAULT_OPTIONS=void 0,e.format=Oe,e.plugins=void 0;var t=p(Vb()),r=rl(),n=p(Aj()),o=p(Cj()),s=p(xj()),a=p(Ij()),c=p(Mj()),u=p(kj()),d=p(Dj());function p(J){return J&&J.__esModule?J:{default:J}}i(p,"_interopRequireDefault");var f=Object.prototype.toString,m=Date.prototype.toISOString,y=Error.prototype.toString,g=RegExp.prototype.toString,T=i(J=>typeof J.constructor=="function"&&J.constructor.name||"Object","getConstructorName"),E=i(J=>typeof window<"u"&&J===window,"isWindow"),v=/^Symbol\((.*)\)(.*)$/,_=/\n/gi,A=class extends Error{constructor(Q,re){super(Q),this.stack=re,this.name=this.constructor.name}};i(A,"PrettyFormatPluginError");var N=A;function j(J){return J==="[object Array]"||J==="[object ArrayBuffer]"||J==="[object DataView]"||J==="[object Float32Array]"||J==="[object Float64Array]"||J==="[object Int8Array]"||J==="[object Int16Array]"||J==="[object Int32Array]"||J==="[object Uint8Array]"||J==="[object Uint8ClampedArray]"||J==="[object Uint16Array]"||J==="[object Uint32Array]"}i(j,"isToStringedArrayType");function C(J){return Object.is(J,-0)?"-0":String(J)}i(C,"printNumber");function R(J){return`${J}n`}i(R,"printBigInt");function w(J,Q){return Q?"[Function "+(J.name||"anonymous")+"]":"[Function]"}i(w,"printFunction");function S(J){return String(J).replace(v,"Symbol($1)")}i(S,"printSymbol");function k(J){return"["+y.call(J)+"]"}i(k,"printError");function I(J,Q,re,oe){if(J===!0||J===!1)return""+J;if(J===void 0)return"undefined";if(J===null)return"null";const ne=typeof J;if(ne==="number")return C(J);if(ne==="bigint")return R(J);if(ne==="string")return oe?'"'+J.replace(/"|\\/g,"\\$&")+'"':'"'+J+'"';if(ne==="function")return w(J,Q);if(ne==="symbol")return S(J);const de=f.call(J);return de==="[object WeakMap]"?"WeakMap {}":de==="[object WeakSet]"?"WeakSet {}":de==="[object Function]"||de==="[object GeneratorFunction]"?w(J,Q):de==="[object Symbol]"?S(J):de==="[object Date]"?isNaN(+J)?"Date { NaN }":m.call(J):de==="[object Error]"?k(J):de==="[object RegExp]"?re?g.call(J).replace(/[\\^$*+?.()|[\]{}]/g,"\\$&"):g.call(J):J instanceof Error?k(J):null}i(I,"printBasicValue");function V(J,Q,re,oe,ne,de){if(ne.indexOf(J)!==-1)return"[Circular]";ne=ne.slice(),ne.push(J);const me=++oe>Q.maxDepth,pe=Q.min;if(Q.callToJSON&&!me&&J.toJSON&&typeof J.toJSON=="function"&&!de)return B(J.toJSON(),Q,re,oe,ne,!0);const Be=f.call(J);return Be==="[object Arguments]"?me?"[Arguments]":(pe?"":"Arguments ")+"["+(0,r.printListItems)(J,Q,re,oe,ne,B)+"]":j(Be)?me?"["+J.constructor.name+"]":(pe||!Q.printBasicPrototype&&J.constructor.name==="Array"?"":J.constructor.name+" ")+"["+(0,r.printListItems)(J,Q,re,oe,ne,B)+"]":Be==="[object Map]"?me?"[Map]":"Map {"+(0,r.printIteratorEntries)(J.entries(),Q,re,oe,ne,B," => ")+"}":Be==="[object Set]"?me?"[Set]":"Set {"+(0,r.printIteratorValues)(J.values(),Q,re,oe,ne,B)+"}":me||E(J)?"["+T(J)+"]":(pe||!Q.printBasicPrototype&&T(J)==="Object"?"":T(J)+" ")+"{"+(0,r.printObjectProperties)(J,Q,re,oe,ne,B)+"}"}i(V,"printComplexValue");function H(J){return J.serialize!=null}i(H,"isNewPlugin");function P(J,Q,re,oe,ne,de){let me;try{me=H(J)?J.serialize(Q,re,oe,ne,de,B):J.print(Q,pe=>B(pe,re,oe,ne,de),pe=>{const Be=oe+re.indent;return Be+pe.replace(_,`
|
|
10
|
+
`+Be)},{edgeSpacing:re.spacingOuter,min:re.min,spacing:re.spacingInner},re.colors)}catch(pe){throw new N(pe.message,pe.stack)}if(typeof me!="string")throw new Error(`pretty-format: Plugin must return type "string" but instead returned "${typeof me}".`);return me}i(P,"printPlugin");function L(J,Q){for(let re=0;re<J.length;re++)try{if(J[re].test(Q))return J[re]}catch(oe){throw new N(oe.message,oe.stack)}return null}i(L,"findPlugin");function B(J,Q,re,oe,ne,de){const me=L(Q.plugins,J);if(me!==null)return P(me,J,Q,re,oe,ne);const pe=I(J,Q.printFunctionName,Q.escapeRegex,Q.escapeString);return pe!==null?pe:V(J,Q,re,oe,ne,de)}i(B,"printer");var D={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},K=Object.keys(D),X={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:1/0,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:D};e.DEFAULT_OPTIONS=X;function ie(J){if(Object.keys(J).forEach(Q=>{if(!X.hasOwnProperty(Q))throw new Error(`pretty-format: Unknown option "${Q}".`)}),J.min&&J.indent!==void 0&&J.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.');if(J.theme!==void 0){if(J.theme===null)throw new Error('pretty-format: Option "theme" must not be null.');if(typeof J.theme!="object")throw new Error(`pretty-format: Option "theme" must be of type "object" but instead received "${typeof J.theme}".`)}}i(ie,"validateOptions");var se=i(J=>K.reduce((Q,re)=>{const oe=J.theme&&J.theme[re]!==void 0?J.theme[re]:D[re],ne=oe&&t.default[oe];if(ne&&typeof ne.close=="string"&&typeof ne.open=="string")Q[re]=ne;else throw new Error(`pretty-format: Option "theme" has a key "${re}" whose value "${oe}" is undefined in ansi-styles.`);return Q},Object.create(null)),"getColorsHighlight"),W=i(()=>K.reduce((J,Q)=>(J[Q]={close:"",open:""},J),Object.create(null)),"getColorsEmpty"),ae=i(J=>J&&J.printFunctionName!==void 0?J.printFunctionName:X.printFunctionName,"getPrintFunctionName"),be=i(J=>J&&J.escapeRegex!==void 0?J.escapeRegex:X.escapeRegex,"getEscapeRegex"),ue=i(J=>J&&J.escapeString!==void 0?J.escapeString:X.escapeString,"getEscapeString"),ee=i(J=>{var Q;return{callToJSON:J&&J.callToJSON!==void 0?J.callToJSON:X.callToJSON,colors:J&&J.highlight?se(J):W(),compareKeys:J&&typeof J.compareKeys=="function"?J.compareKeys:X.compareKeys,escapeRegex:be(J),escapeString:ue(J),indent:J&&J.min?"":Ae(J&&J.indent!==void 0?J.indent:X.indent),maxDepth:J&&J.maxDepth!==void 0?J.maxDepth:X.maxDepth,min:J&&J.min!==void 0?J.min:X.min,plugins:J&&J.plugins!==void 0?J.plugins:X.plugins,printBasicPrototype:(Q=J?.printBasicPrototype)!==null&&Q!==void 0?Q:!0,printFunctionName:ae(J),spacingInner:J&&J.min?" ":`
|
|
11
|
+
`,spacingOuter:J&&J.min?"":`
|
|
12
|
+
`}},"getConfig");function Ae(J){return new Array(J+1).join(" ")}i(Ae,"createIndent");function Oe(J,Q){if(Q&&(ie(Q),Q.plugins)){const oe=L(Q.plugins,J);if(oe!==null)return P(oe,J,ee(Q),"",0,[])}const re=I(J,ae(Q),be(Q),ue(Q));return re!==null?re:V(J,ee(Q),"",0,[])}i(Oe,"format");var Ve={AsymmetricMatcher:n.default,ConvertAnsi:o.default,DOMCollection:s.default,DOMElement:a.default,Immutable:c.default,ReactElement:u.default,ReactTestComponent:d.default};e.plugins=Ve;var We=Oe;e.default=We}}),Fj=$({"../node_modules/lz-string/libs/lz-string.js"(e,t){var r=(function(){var n=String.fromCharCode,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",a={};function c(d,p){if(!a[d]){a[d]={};for(var f=0;f<d.length;f++)a[d][d.charAt(f)]=f}return a[d][p]}i(c,"getBaseValue");var u={compressToBase64:i(function(d){if(d==null)return"";var p=u._compress(d,6,function(f){return o.charAt(f)});switch(p.length%4){default:case 0:return p;case 1:return p+"===";case 2:return p+"==";case 3:return p+"="}},"compressToBase64"),decompressFromBase64:i(function(d){return d==null?"":d==""?null:u._decompress(d.length,32,function(p){return c(o,d.charAt(p))})},"decompressFromBase64"),compressToUTF16:i(function(d){return d==null?"":u._compress(d,15,function(p){return n(p+32)})+" "},"compressToUTF16"),decompressFromUTF16:i(function(d){return d==null?"":d==""?null:u._decompress(d.length,16384,function(p){return d.charCodeAt(p)-32})},"decompressFromUTF16"),compressToUint8Array:i(function(d){for(var p=u.compress(d),f=new Uint8Array(p.length*2),m=0,y=p.length;m<y;m++){var g=p.charCodeAt(m);f[m*2]=g>>>8,f[m*2+1]=g%256}return f},"compressToUint8Array"),decompressFromUint8Array:i(function(d){if(d==null)return u.decompress(d);for(var p=new Array(d.length/2),f=0,m=p.length;f<m;f++)p[f]=d[f*2]*256+d[f*2+1];var y=[];return p.forEach(function(g){y.push(n(g))}),u.decompress(y.join(""))},"decompressFromUint8Array"),compressToEncodedURIComponent:i(function(d){return d==null?"":u._compress(d,6,function(p){return s.charAt(p)})},"compressToEncodedURIComponent"),decompressFromEncodedURIComponent:i(function(d){return d==null?"":d==""?null:(d=d.replace(/ /g,"+"),u._decompress(d.length,32,function(p){return c(s,d.charAt(p))}))},"decompressFromEncodedURIComponent"),compress:i(function(d){return u._compress(d,16,function(p){return n(p)})},"compress"),_compress:i(function(d,p,f){if(d==null)return"";var m,y,g={},T={},E="",v="",_="",A=2,N=3,j=2,C=[],R=0,w=0,S;for(S=0;S<d.length;S+=1)if(E=d.charAt(S),Object.prototype.hasOwnProperty.call(g,E)||(g[E]=N++,T[E]=!0),v=_+E,Object.prototype.hasOwnProperty.call(g,v))_=v;else{if(Object.prototype.hasOwnProperty.call(T,_)){if(_.charCodeAt(0)<256){for(m=0;m<j;m++)R=R<<1,w==p-1?(w=0,C.push(f(R)),R=0):w++;for(y=_.charCodeAt(0),m=0;m<8;m++)R=R<<1|y&1,w==p-1?(w=0,C.push(f(R)),R=0):w++,y=y>>1}else{for(y=1,m=0;m<j;m++)R=R<<1|y,w==p-1?(w=0,C.push(f(R)),R=0):w++,y=0;for(y=_.charCodeAt(0),m=0;m<16;m++)R=R<<1|y&1,w==p-1?(w=0,C.push(f(R)),R=0):w++,y=y>>1}A--,A==0&&(A=Math.pow(2,j),j++),delete T[_]}else for(y=g[_],m=0;m<j;m++)R=R<<1|y&1,w==p-1?(w=0,C.push(f(R)),R=0):w++,y=y>>1;A--,A==0&&(A=Math.pow(2,j),j++),g[v]=N++,_=String(E)}if(_!==""){if(Object.prototype.hasOwnProperty.call(T,_)){if(_.charCodeAt(0)<256){for(m=0;m<j;m++)R=R<<1,w==p-1?(w=0,C.push(f(R)),R=0):w++;for(y=_.charCodeAt(0),m=0;m<8;m++)R=R<<1|y&1,w==p-1?(w=0,C.push(f(R)),R=0):w++,y=y>>1}else{for(y=1,m=0;m<j;m++)R=R<<1|y,w==p-1?(w=0,C.push(f(R)),R=0):w++,y=0;for(y=_.charCodeAt(0),m=0;m<16;m++)R=R<<1|y&1,w==p-1?(w=0,C.push(f(R)),R=0):w++,y=y>>1}A--,A==0&&(A=Math.pow(2,j),j++),delete T[_]}else for(y=g[_],m=0;m<j;m++)R=R<<1|y&1,w==p-1?(w=0,C.push(f(R)),R=0):w++,y=y>>1;A--,A==0&&(A=Math.pow(2,j),j++)}for(y=2,m=0;m<j;m++)R=R<<1|y&1,w==p-1?(w=0,C.push(f(R)),R=0):w++,y=y>>1;for(;;)if(R=R<<1,w==p-1){C.push(f(R));break}else w++;return C.join("")},"_compress"),decompress:i(function(d){return d==null?"":d==""?null:u._decompress(d.length,32768,function(p){return d.charCodeAt(p)})},"decompress"),_decompress:i(function(d,p,f){var m=[],y=4,g=4,T=3,E="",v=[],_,A,N,j,C,R,w,S={val:f(0),position:p,index:1};for(_=0;_<3;_+=1)m[_]=_;for(N=0,C=Math.pow(2,2),R=1;R!=C;)j=S.val&S.position,S.position>>=1,S.position==0&&(S.position=p,S.val=f(S.index++)),N|=(j>0?1:0)*R,R<<=1;switch(N){case 0:for(N=0,C=Math.pow(2,8),R=1;R!=C;)j=S.val&S.position,S.position>>=1,S.position==0&&(S.position=p,S.val=f(S.index++)),N|=(j>0?1:0)*R,R<<=1;w=n(N);break;case 1:for(N=0,C=Math.pow(2,16),R=1;R!=C;)j=S.val&S.position,S.position>>=1,S.position==0&&(S.position=p,S.val=f(S.index++)),N|=(j>0?1:0)*R,R<<=1;w=n(N);break;case 2:return""}for(m[3]=w,A=w,v.push(w);;){if(S.index>d)return"";for(N=0,C=Math.pow(2,T),R=1;R!=C;)j=S.val&S.position,S.position>>=1,S.position==0&&(S.position=p,S.val=f(S.index++)),N|=(j>0?1:0)*R,R<<=1;switch(w=N){case 0:for(N=0,C=Math.pow(2,8),R=1;R!=C;)j=S.val&S.position,S.position>>=1,S.position==0&&(S.position=p,S.val=f(S.index++)),N|=(j>0?1:0)*R,R<<=1;m[g++]=n(N),w=g-1,y--;break;case 1:for(N=0,C=Math.pow(2,16),R=1;R!=C;)j=S.val&S.position,S.position>>=1,S.position==0&&(S.position=p,S.val=f(S.index++)),N|=(j>0?1:0)*R,R<<=1;m[g++]=n(N),w=g-1,y--;break;case 2:return v.join("")}if(y==0&&(y=Math.pow(2,T),T++),m[w])E=m[w];else if(w===g)E=A+A.charAt(0);else return null;v.push(E),m[g++]=A+E.charAt(0),y--,A=E,y==0&&(y=Math.pow(2,T),T++)}},"_decompress")};return u})();typeof define=="function"&&define.amd?define(function(){return r}):typeof t<"u"&&t!=null?t.exports=r:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return r})}}),Hb=$({"../node_modules/memoizerific/memoizerific.js"(e,t){(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return i(function r(n,o,s){function a(d,p){if(!o[d]){if(!n[d]){var f=typeof Ms=="function"&&Ms;if(!p&&f)return f(d,!0);if(c)return c(d,!0);var m=new Error("Cannot find module '"+d+"'");throw m.code="MODULE_NOT_FOUND",m}var y=o[d]={exports:{}};n[d][0].call(y.exports,function(g){var T=n[d][1][g];return a(T||g)},y,y.exports,r,n,o,s)}return o[d].exports}i(a,"s");for(var c=typeof Ms=="function"&&Ms,u=0;u<s.length;u++)a(s[u]);return a},"e")({1:[function(r,n,o){n.exports=function(s){if(typeof Map!="function"||s){var a=r("./similar");return new a}else return new Map}},{"./similar":2}],2:[function(r,n,o){function s(){return this.list=[],this.lastItem=void 0,this.size=0,this}i(s,"Similar"),s.prototype.get=function(a){var c;if(this.lastItem&&this.isEqual(this.lastItem.key,a))return this.lastItem.val;if(c=this.indexOf(a),c>=0)return this.lastItem=this.list[c],this.list[c].val},s.prototype.set=function(a,c){var u;return this.lastItem&&this.isEqual(this.lastItem.key,a)?(this.lastItem.val=c,this):(u=this.indexOf(a),u>=0?(this.lastItem=this.list[u],this.list[u].val=c,this):(this.lastItem={key:a,val:c},this.list.push(this.lastItem),this.size++,this))},s.prototype.delete=function(a){var c;if(this.lastItem&&this.isEqual(this.lastItem.key,a)&&(this.lastItem=void 0),c=this.indexOf(a),c>=0)return this.size--,this.list.splice(c,1)[0]},s.prototype.has=function(a){var c;return this.lastItem&&this.isEqual(this.lastItem.key,a)?!0:(c=this.indexOf(a),c>=0?(this.lastItem=this.list[c],!0):!1)},s.prototype.forEach=function(a,c){var u;for(u=0;u<this.size;u++)a.call(c||this,this.list[u].val,this.list[u].key,this)},s.prototype.indexOf=function(a){var c;for(c=0;c<this.size;c++)if(this.isEqual(this.list[c].key,a))return c;return-1},s.prototype.isEqual=function(a,c){return a===c||a!==a&&c!==c},n.exports=s},{}],3:[function(r,n,o){var s=r("map-or-similar");n.exports=function(d){var p=new s(!1),f=[];return function(m){var y=i(function(){var g=p,T,E,v=arguments.length-1,_=Array(v+1),A=!0,N;if((y.numArgs||y.numArgs===0)&&y.numArgs!==v+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(N=0;N<v;N++){if(_[N]={cacheItem:g,arg:arguments[N]},g.has(arguments[N])){g=g.get(arguments[N]);continue}A=!1,T=new s(!1),g.set(arguments[N],T),g=T}return A&&(g.has(arguments[v])?E=g.get(arguments[v]):A=!1),A||(E=m.apply(null,arguments),g.set(arguments[v],E)),d>0&&(_[v]={cacheItem:g,arg:arguments[v]},A?a(f,_):f.push(_),f.length>d&&c(f.shift())),y.wasMemoized=A,y.numArgs=v+1,E},"memoizerific");return y.limit=d,y.wasMemoized=!1,y.cache=p,y.lru=f,y}};function a(d,p){var f=d.length,m=p.length,y,g,T;for(g=0;g<f;g++){for(y=!0,T=0;T<m;T++)if(!u(d[g][T].arg,p[T].arg)){y=!1;break}if(y)break}d.push(d.splice(g,1)[0])}i(a,"moveToMostRecentLru");function c(d){var p=d.length,f=d[p-1],m,y;for(f.cacheItem.delete(f.arg),y=p-2;y>=0&&(f=d[y],m=f.cacheItem.get(f.arg),!m||!m.size);y--)f.cacheItem.delete(f.arg)}i(c,"removeCachedResult");function u(d,p){return d===p||d!==d&&p!==p}i(u,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})}}),Gb=$({"../node_modules/picoquery/lib/string-util.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.encodeString=n;var t=Array.from({length:256},(o,s)=>"%"+((s<16?"0":"")+s.toString(16)).toUpperCase()),r=new Int8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0]);function n(o){const s=o.length;if(s===0)return"";let a="",c=0,u=0;e:for(;u<s;u++){let d=o.charCodeAt(u);for(;d<128;){if(r[d]!==1&&(c<u&&(a+=o.slice(c,u)),c=u+1,a+=t[d]),++u===s)break e;d=o.charCodeAt(u)}if(c<u&&(a+=o.slice(c,u)),d<2048){c=u+1,a+=t[192|d>>6]+t[128|d&63];continue}if(d<55296||d>=57344){c=u+1,a+=t[224|d>>12]+t[128|d>>6&63]+t[128|d&63];continue}if(++u,u>=s)throw new Error("URI malformed");const p=o.charCodeAt(u)&1023;c=u+1,d=65536+((d&1023)<<10|p),a+=t[240|d>>18]+t[128|d>>12&63]+t[128|d>>6&63]+t[128|d&63]}return c===0?o:c<s?a+o.slice(c):a}i(n,"encodeString")}}),dp=$({"../node_modules/picoquery/lib/shared.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultOptions=e.defaultShouldSerializeObject=e.defaultValueSerializer=void 0;var t=Gb(),r=i(s=>{switch(typeof s){case"string":return(0,t.encodeString)(s);case"bigint":case"boolean":return""+s;case"number":if(Number.isFinite(s))return s<1e21?""+s:(0,t.encodeString)(""+s);break}return s instanceof Date?(0,t.encodeString)(s.toISOString()):""},"defaultValueSerializer");e.defaultValueSerializer=r;var n=i(s=>s instanceof Date,"defaultShouldSerializeObject");e.defaultShouldSerializeObject=n;var o=i(s=>s,"identityFunc");e.defaultOptions={nesting:!0,nestingSyntax:"dot",arrayRepeat:!1,arrayRepeatSyntax:"repeat",delimiter:38,valueDeserializer:o,valueSerializer:e.defaultValueSerializer,keyDeserializer:o,shouldSerializeObject:e.defaultShouldSerializeObject}}}),zb=$({"../node_modules/picoquery/lib/object-util.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getDeepObject=o,e.stringifyObject=p;var t=dp(),r=Gb();function n(f){return f==="__proto__"||f==="constructor"||f==="prototype"}i(n,"isPrototypeKey");function o(f,m,y,g,T){if(n(m))return f;const E=f[m];return typeof E=="object"&&E!==null?E:!g&&(T||typeof y=="number"||typeof y=="string"&&y*0===0&&y.indexOf(".")===-1)?f[m]=[]:f[m]={}}i(o,"getDeepObject");var s=20,a="[]",c="[",u="]",d=".";function p(f,m,y=0,g,T){const{nestingSyntax:E=t.defaultOptions.nestingSyntax,arrayRepeat:v=t.defaultOptions.arrayRepeat,arrayRepeatSyntax:_=t.defaultOptions.arrayRepeatSyntax,nesting:A=t.defaultOptions.nesting,delimiter:N=t.defaultOptions.delimiter,valueSerializer:j=t.defaultOptions.valueSerializer,shouldSerializeObject:C=t.defaultOptions.shouldSerializeObject}=m,R=typeof N=="number"?String.fromCharCode(N):N,w=T===!0&&v,S=E==="dot"||E==="js"&&!T;if(y>s)return"";let k="",I=!0,V=!1;for(const H in f){const P=f[H];if(P===void 0)continue;let L;g?(L=g,w?_==="bracket"&&(L+=a):S?(L+=d,L+=H):(L+=c,L+=H,L+=u)):L=H,I||(k+=R),typeof P=="object"&&P!==null&&!C(P)?(V=P.pop!==void 0,(A||v&&V)&&(k+=p(P,m,y+1,L,V))):(k+=(0,r.encodeString)(L),k+="=",k+=j(P,H)),I&&(I=!1)}return k}i(p,"stringifyObject")}}),Bj=$({"../node_modules/picoquery/lib/decode-uri-component.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeURIComponent=o;var t=12,r=0,n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,10,9,9,9,11,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,24,36,48,60,72,84,96,0,12,12,12,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0,0,24,24,24,0,0,0,0,0,0,0,0,0,24,24,0,0,0,0,0,0,0,0,0,0,48,48,48,0,0,0,0,0,0,0,0,0,0,48,48,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,127,63,63,63,0,31,15,15,15,7,7,7];function o(c){let u=c.indexOf("%");if(u===-1)return c;const d=c.length;let p="",f=0,m=0,y=u,g=t;for(;u>-1&&u<d;){const T=a(c[u+1],4),E=a(c[u+2],0),v=T|E,_=n[v];if(g=n[256+g+_],m=m<<6|v&n[364+_],g===t)p+=c.slice(f,y),p+=m<=65535?String.fromCharCode(m):String.fromCharCode(55232+(m>>10),56320+(m&1023)),m=0,f=u+3,u=y=c.indexOf("%",f);else{if(g===r)return null;if(u+=3,u<d&&c.charCodeAt(u)===37)continue;return null}}return p+c.slice(f)}i(o,"decodeURIComponent");var s={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};function a(c,u){const d=s[c];return d===void 0?255:d<<u}i(a,"hexCodeToInt")}}),$j=$({"../node_modules/picoquery/lib/parse.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.numberValueDeserializer=e.numberKeyDeserializer=void 0,e.parse=d;var t=zb(),r=dp(),n=Bj(),o=i(p=>{const f=Number(p);return Number.isNaN(f)?p:f},"numberKeyDeserializer");e.numberKeyDeserializer=o;var s=i(p=>{const f=Number(p);return Number.isNaN(f)?p:f},"numberValueDeserializer");e.numberValueDeserializer=s;var a=/\+/g,c=i(function(){},"Empty");c.prototype=Object.create(null);function u(p,f,m,y,g){let T=p.substring(f,m);return y&&(T=T.replace(a," ")),g&&(T=(0,n.decodeURIComponent)(T)||T),T}i(u,"computeKeySlice");function d(p,f){const{valueDeserializer:m=r.defaultOptions.valueDeserializer,keyDeserializer:y=r.defaultOptions.keyDeserializer,arrayRepeatSyntax:g=r.defaultOptions.arrayRepeatSyntax,nesting:T=r.defaultOptions.nesting,arrayRepeat:E=r.defaultOptions.arrayRepeat,nestingSyntax:v=r.defaultOptions.nestingSyntax,delimiter:_=r.defaultOptions.delimiter}=f??{},A=typeof _=="string"?_.charCodeAt(0):_,N=v==="js",j=new c;if(typeof p!="string")return j;const C=p.length;let R="",w=-1,S=-1,k=-1,I=j,V,H="",P="",L=!1,B=!1,D=!1,K=!1,X=!1,ie=!1,se=0,W=-1,ae=-1,be=-1;for(let ue=0;ue<C+1;ue++){if(se=ue!==C?p.charCodeAt(ue):A,se===A){if(ie=S>w,ie||(S=ue),k!==S-1&&(P=u(p,k+1,W>-1?W:S,D,L),H=y(P),V!==void 0&&(I=(0,t.getDeepObject)(I,V,H,N&&X,void 0))),ie||H!==""){ie&&(R=p.slice(S+1,ue),K&&(R=R.replace(a," ")),B&&(R=(0,n.decodeURIComponent)(R)||R));const ee=m(R,H);if(E){const Ae=I[H];Ae===void 0?W>-1?I[H]=[ee]:I[H]=ee:Ae.pop?Ae.push(ee):I[H]=[Ae,ee]}else I[H]=ee}R="",w=ue,S=ue,L=!1,B=!1,D=!1,K=!1,X=!1,W=-1,k=ue,I=j,V=void 0,H=""}else se===93?(E&&g==="bracket"&&be===91&&(W=ae),T&&(v==="index"||N)&&S<=w&&(k!==ae&&(P=u(p,k+1,ue,D,L),H=y(P),V!==void 0&&(I=(0,t.getDeepObject)(I,V,H,void 0,void 0)),V=H,D=!1,L=!1),k=ue,X=!1)):se===46?T&&(v==="dot"||N)&&S<=w&&(k!==ae&&(P=u(p,k+1,ue,D,L),H=y(P),V!==void 0&&(I=(0,t.getDeepObject)(I,V,H,N)),V=H,D=!1,L=!1),X=!0,k=ue):se===91?T&&(v==="index"||N)&&S<=w&&(k!==ae&&(P=u(p,k+1,ue,D,L),H=y(P),N&&V!==void 0&&(I=(0,t.getDeepObject)(I,V,H,N)),V=H,D=!1,L=!1,X=!1),k=ue):se===61?S<=w?S=ue:B=!0:se===43?S>w?K=!0:D=!0:se===37&&(S>w?B=!0:L=!0);ae=ue,be=se}return j}i(d,"parse")}}),Jj=$({"../node_modules/picoquery/lib/stringify.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=r;var t=zb();function r(n,o){if(n===null||typeof n!="object")return"";const s=o??{};return(0,t.stringifyObject)(n,s)}i(r,"stringify")}}),pp=$({"../node_modules/picoquery/lib/main.js"(e){var t=e&&e.__createBinding||(Object.create?function(s,a,c,u){u===void 0&&(u=c);var d=Object.getOwnPropertyDescriptor(a,c);(!d||("get"in d?!a.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:i(function(){return a[c]},"get")}),Object.defineProperty(s,u,d)}:function(s,a,c,u){u===void 0&&(u=c),s[u]=a[c]}),r=e&&e.__exportStar||function(s,a){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(a,c)&&t(a,s,c)};Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=e.parse=void 0;var n=$j();Object.defineProperty(e,"parse",{enumerable:!0,get:i(function(){return n.parse},"get")});var o=Jj();Object.defineProperty(e,"stringify",{enumerable:!0,get:i(function(){return o.stringify},"get")}),r(dp(),e)}}),Wb=$({"../node_modules/entities/lib/maps/entities.json"(e,t){t.exports={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
|
|
13
|
+
`,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""}}}),Uj=$({"../node_modules/entities/lib/maps/legacy.json"(e,t){t.exports={Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",amp:"&",AMP:"&",Aring:"Å",aring:"å",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",brvbar:"¦",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",iquest:"¿",Iuml:"Ï",iuml:"ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",Ntilde:"Ñ",ntilde:"ñ",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",Ograve:"Ò",ograve:"ò",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",Ouml:"Ö",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",THORN:"Þ",thorn:"þ",times:"×",Uacute:"Ú",uacute:"ú",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",Uuml:"Ü",uuml:"ü",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ"}}}),Kb=$({"../node_modules/entities/lib/maps/xml.json"(e,t){t.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}}}),Vj=$({"../node_modules/entities/lib/maps/decode.json"(e,t){t.exports={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}}}),Hj=$({"../node_modules/entities/lib/decode_codepoint.js"(e){var t=e&&e.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0});var r=t(Vj()),n=String.fromCodePoint||function(s){var a="";return s>65535&&(s-=65536,a+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),a+=String.fromCharCode(s),a};function o(s){return s>=55296&&s<=57343||s>1114111?"�":(s in r.default&&(s=r.default[s]),n(s))}i(o,"decodeCodePoint"),e.default=o}}),Dy=$({"../node_modules/entities/lib/decode.js"(e){var t=e&&e.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(e,"__esModule",{value:!0}),e.decodeHTML=e.decodeHTMLStrict=e.decodeXML=void 0;var r=t(Wb()),n=t(Uj()),o=t(Kb()),s=t(Hj()),a=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;e.decodeXML=c(o.default),e.decodeHTMLStrict=c(r.default);function c(p){var f=d(p);return function(m){return String(m).replace(a,f)}}i(c,"getStrictDecoder");var u=i(function(p,f){return p<f?1:-1},"sorter");e.decodeHTML=(function(){for(var p=Object.keys(n.default).sort(u),f=Object.keys(r.default).sort(u),m=0,y=0;m<f.length;m++)p[y]===f[m]?(f[m]+=";?",y++):f[m]+=";";var g=new RegExp("&(?:"+f.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),T=d(r.default);function E(v){return v.substr(-1)!==";"&&(v+=";"),T(v)}return i(E,"replacer"),function(v){return String(v).replace(g,E)}})();function d(p){return i(function(m){if(m.charAt(1)==="#"){var y=m.charAt(2);return y==="X"||y==="x"?s.default(parseInt(m.substr(3),16)):s.default(parseInt(m.substr(2),10))}return p[m.slice(1,-1)]||m},"replace")}i(d,"getReplacer")}}),Ly=$({"../node_modules/entities/lib/encode.js"(e){var t=e&&e.__importDefault||function(_){return _&&_.__esModule?_:{default:_}};Object.defineProperty(e,"__esModule",{value:!0}),e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=void 0;var r=t(Kb()),n=u(r.default),o=d(n);e.encodeXML=v(n);var s=t(Wb()),a=u(s.default),c=d(a);e.encodeHTML=y(a,c),e.encodeNonAsciiHTML=v(a);function u(_){return Object.keys(_).sort().reduce(function(A,N){return A[_[N]]="&"+N+";",A},{})}i(u,"getInverseObj");function d(_){for(var A=[],N=[],j=0,C=Object.keys(_);j<C.length;j++){var R=C[j];R.length===1?A.push("\\"+R):N.push(R)}A.sort();for(var w=0;w<A.length-1;w++){for(var S=w;S<A.length-1&&A[S].charCodeAt(1)+1===A[S+1].charCodeAt(1);)S+=1;var k=1+S-w;k<3||A.splice(w,k,A[w]+"-"+A[S])}return N.unshift("["+A.join("")+"]"),new RegExp(N.join("|"),"g")}i(d,"getInverseReplacer");var p=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,f=String.prototype.codePointAt!=null?(function(_){return _.codePointAt(0)}):(function(_){return(_.charCodeAt(0)-55296)*1024+_.charCodeAt(1)-56320+65536});function m(_){return"&#x"+(_.length>1?f(_):_.charCodeAt(0)).toString(16).toUpperCase()+";"}i(m,"singleCharReplacer");function y(_,A){return function(N){return N.replace(A,function(j){return _[j]}).replace(p,m)}}i(y,"getInverse");var g=new RegExp(o.source+"|"+p.source,"g");function T(_){return _.replace(g,m)}i(T,"escape"),e.escape=T;function E(_){return _.replace(o,m)}i(E,"escapeUTF8"),e.escapeUTF8=E;function v(_){return function(A){return A.replace(g,function(N){return _[N]||m(N)})}}i(v,"getASCIIEncoder")}}),Gj=$({"../node_modules/entities/lib/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var t=Dy(),r=Ly();function n(u,d){return(!d||d<=0?t.decodeXML:t.decodeHTML)(u)}i(n,"decode"),e.decode=n;function o(u,d){return(!d||d<=0?t.decodeXML:t.decodeHTMLStrict)(u)}i(o,"decodeStrict"),e.decodeStrict=o;function s(u,d){return(!d||d<=0?r.encodeXML:r.encodeHTML)(u)}i(s,"encode"),e.encode=s;var a=Ly();Object.defineProperty(e,"encodeXML",{enumerable:!0,get:i(function(){return a.encodeXML},"get")}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:i(function(){return a.encodeHTML},"get")}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:i(function(){return a.encodeNonAsciiHTML},"get")}),Object.defineProperty(e,"escape",{enumerable:!0,get:i(function(){return a.escape},"get")}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:i(function(){return a.escapeUTF8},"get")}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:i(function(){return a.encodeHTML},"get")}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:i(function(){return a.encodeHTML},"get")});var c=Dy();Object.defineProperty(e,"decodeXML",{enumerable:!0,get:i(function(){return c.decodeXML},"get")}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:i(function(){return c.decodeHTML},"get")}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:i(function(){return c.decodeHTMLStrict},"get")}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:i(function(){return c.decodeHTML},"get")}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:i(function(){return c.decodeHTML},"get")}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:i(function(){return c.decodeHTMLStrict},"get")}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:i(function(){return c.decodeHTMLStrict},"get")}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:i(function(){return c.decodeXML},"get")})}}),zj=$({"../node_modules/ansi-to-html/lib/ansi_to_html.js"(e,t){function r(P,L){if(!(P instanceof L))throw new TypeError("Cannot call a class as a function")}i(r,"_classCallCheck");function n(P,L){for(var B=0;B<L.length;B++){var D=L[B];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(P,D.key,D)}}i(n,"_defineProperties");function o(P,L,B){return L&&n(P.prototype,L),B&&n(P,B),P}i(o,"_createClass");function s(P,L){var B=typeof Symbol<"u"&&P[Symbol.iterator]||P["@@iterator"];if(!B){if(Array.isArray(P)||(B=a(P))||L&&P&&typeof P.length=="number"){B&&(P=B);var D=0,K=i(function(){},"F");return{s:K,n:i(function(){return D>=P.length?{done:!0}:{done:!1,value:P[D++]}},"n"),e:i(function(ae){throw ae},"e"),f:K}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
14
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var X=!0,ie=!1,se;return{s:i(function(){B=B.call(P)},"s"),n:i(function(){var ae=B.next();return X=ae.done,ae},"n"),e:i(function(ae){ie=!0,se=ae},"e"),f:i(function(){try{!X&&B.return!=null&&B.return()}finally{if(ie)throw se}},"f")}}i(s,"_createForOfIteratorHelper");function a(P,L){if(P){if(typeof P=="string")return c(P,L);var B=Object.prototype.toString.call(P).slice(8,-1);if(B==="Object"&&P.constructor&&(B=P.constructor.name),B==="Map"||B==="Set")return Array.from(P);if(B==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(B))return c(P,L)}}i(a,"_unsupportedIterableToArray");function c(P,L){(L==null||L>P.length)&&(L=P.length);for(var B=0,D=new Array(L);B<L;B++)D[B]=P[B];return D}i(c,"_arrayLikeToArray");var u=Gj(),d={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:p()};function p(){var P={0:"#000",1:"#A00",2:"#0A0",3:"#A50",4:"#00A",5:"#A0A",6:"#0AA",7:"#AAA",8:"#555",9:"#F55",10:"#5F5",11:"#FF5",12:"#55F",13:"#F5F",14:"#5FF",15:"#FFF"};return _(0,5).forEach(function(L){_(0,5).forEach(function(B){_(0,5).forEach(function(D){return f(L,B,D,P)})})}),_(0,23).forEach(function(L){var B=L+232,D=m(L*10+8);P[B]="#"+D+D+D}),P}i(p,"getDefaultColors");function f(P,L,B,D){var K=16+P*36+L*6+B,X=P>0?P*40+55:0,ie=L>0?L*40+55:0,se=B>0?B*40+55:0;D[K]=y([X,ie,se])}i(f,"setStyleColor");function m(P){for(var L=P.toString(16);L.length<2;)L="0"+L;return L}i(m,"toHexString");function y(P){var L=[],B=s(P),D;try{for(B.s();!(D=B.n()).done;){var K=D.value;L.push(m(K))}}catch(X){B.e(X)}finally{B.f()}return"#"+L.join("")}i(y,"toColorHexString");function g(P,L,B,D){var K;return L==="text"?K=j(B,D):L==="display"?K=E(P,B,D):L==="xterm256Foreground"?K=w(P,D.colors[B]):L==="xterm256Background"?K=S(P,D.colors[B]):L==="rgb"&&(K=T(P,B)),K}i(g,"generateOutput");function T(P,L){L=L.substring(2).slice(0,-1);var B=+L.substr(0,2),D=L.substring(5).split(";"),K=D.map(function(X){return("0"+Number(X).toString(16)).substr(-2)}).join("");return R(P,(B===38?"color:#":"background-color:#")+K)}i(T,"handleRgb");function E(P,L,B){L=parseInt(L,10);var D={"-1":i(function(){return"<br/>"},"_"),0:i(function(){return P.length&&v(P)},"_"),1:i(function(){return C(P,"b")},"_"),3:i(function(){return C(P,"i")},"_"),4:i(function(){return C(P,"u")},"_"),8:i(function(){return R(P,"display:none")},"_"),9:i(function(){return C(P,"strike")},"_"),22:i(function(){return R(P,"font-weight:normal;text-decoration:none;font-style:normal")},"_"),23:i(function(){return k(P,"i")},"_"),24:i(function(){return k(P,"u")},"_"),39:i(function(){return w(P,B.fg)},"_"),49:i(function(){return S(P,B.bg)},"_"),53:i(function(){return R(P,"text-decoration:overline")},"_")},K;return D[L]?K=D[L]():4<L&&L<7?K=C(P,"blink"):29<L&&L<38?K=w(P,B.colors[L-30]):39<L&&L<48?K=S(P,B.colors[L-40]):89<L&&L<98?K=w(P,B.colors[8+(L-90)]):99<L&&L<108&&(K=S(P,B.colors[8+(L-100)])),K}i(E,"handleDisplay");function v(P){var L=P.slice(0);return P.length=0,L.reverse().map(function(B){return"</"+B+">"}).join("")}i(v,"resetStyles");function _(P,L){for(var B=[],D=P;D<=L;D++)B.push(D);return B}i(_,"range");function A(P){return function(L){return(P===null||L.category!==P)&&P!=="all"}}i(A,"notCategory");function N(P){P=parseInt(P,10);var L=null;return P===0?L="all":P===1?L="bold":2<P&&P<5?L="underline":4<P&&P<7?L="blink":P===8?L="hide":P===9?L="strike":29<P&&P<38||P===39||89<P&&P<98?L="foreground-color":(39<P&&P<48||P===49||99<P&&P<108)&&(L="background-color"),L}i(N,"categoryForCode");function j(P,L){return L.escapeXML?u.encodeXML(P):P}i(j,"pushText");function C(P,L,B){return B||(B=""),P.push(L),"<".concat(L).concat(B?' style="'.concat(B,'"'):"",">")}i(C,"pushTag");function R(P,L){return C(P,"span",L)}i(R,"pushStyle");function w(P,L){return C(P,"span","color:"+L)}i(w,"pushForegroundColor");function S(P,L){return C(P,"span","background-color:"+L)}i(S,"pushBackgroundColor");function k(P,L){var B;if(P.slice(-1)[0]===L&&(B=P.pop()),B)return"</"+L+">"}i(k,"closeTag");function I(P,L,B){var D=!1,K=3;function X(){return""}i(X,"remove");function ie(ne,de){return B("xterm256Foreground",de),""}i(ie,"removeXterm256Foreground");function se(ne,de){return B("xterm256Background",de),""}i(se,"removeXterm256Background");function W(ne){return L.newline?B("display",-1):B("text",ne),""}i(W,"newline");function ae(ne,de){D=!0,de.trim().length===0&&(de="0"),de=de.trimRight(";").split(";");var me=s(de),pe;try{for(me.s();!(pe=me.n()).done;){var Be=pe.value;B("display",Be)}}catch(ot){me.e(ot)}finally{me.f()}return""}i(ae,"ansiMess");function be(ne){return B("text",ne),""}i(be,"realText");function ue(ne){return B("rgb",ne),""}i(ue,"rgb");var ee=[{pattern:/^\x08+/,sub:X},{pattern:/^\x1b\[[012]?K/,sub:X},{pattern:/^\x1b\[\(B/,sub:X},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:ue},{pattern:/^\x1b\[38;5;(\d+)m/,sub:ie},{pattern:/^\x1b\[48;5;(\d+)m/,sub:se},{pattern:/^\n/,sub:W},{pattern:/^\r+\n/,sub:W},{pattern:/^\r/,sub:W},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:ae},{pattern:/^\x1b\[\d?J/,sub:X},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:X},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:X},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:be}];function Ae(ne,de){de>K&&D||(D=!1,P=P.replace(ne.pattern,ne.sub))}i(Ae,"process");var Oe=[],Ve=P,We=Ve.length;e:for(;We>0;){for(var J=0,Q=0,re=ee.length;Q<re;J=++Q){var oe=ee[J];if(Ae(oe,J),P.length!==We){We=P.length;continue e}}if(P.length===We)break;Oe.push(0),We=P.length}return Oe}i(I,"tokenize");function V(P,L,B){return L!=="text"&&(P=P.filter(A(N(B))),P.push({token:L,data:B,category:N(B)})),P}i(V,"updateStickyStack");var H=(function(){function P(L){r(this,P),L=L||{},L.colors&&(L.colors=Object.assign({},d.colors,L.colors)),this.options=Object.assign({},d,L),this.stack=[],this.stickyStack=[]}return i(P,"Filter"),o(P,[{key:"toHtml",value:i(function(B){var D=this;B=typeof B=="string"?[B]:B;var K=this.stack,X=this.options,ie=[];return this.stickyStack.forEach(function(se){var W=g(K,se.token,se.data,X);W&&ie.push(W)}),I(B.join(""),X,function(se,W){var ae=g(K,se,W,X);ae&&ie.push(ae),X.stream&&(D.stickyStack=V(D.stickyStack,se,W))}),K.length&&ie.push(v(K)),ie.join("")},"toHtml")}]),P})();t.exports=H}}),Wj=$({"../node_modules/jsdoc-type-pratt-parser/dist/index.js"(e,t){(function(r,n){typeof e=="object"&&typeof t<"u"?n(e):typeof define=="function"&&define.amd?define(["exports"],n):(r=typeof globalThis<"u"?globalThis:r||self,n(r.jtpp={}))})(e,function(r){function n(l){return l.text!==void 0&&l.text!==""?`'${l.type}' with value '${l.text}'`:`'${l.type}'`}i(n,"tokenToString");const o=class Yb extends Error{constructor(h){super(`No parslet found for token: ${n(h)}`),this.token=h,Object.setPrototypeOf(this,Yb.prototype)}getToken(){return this.token}};i(o,"NoParsletFoundError");let s=o;const a=class Xb extends Error{constructor(h){super(`The parsing ended early. The next token was: ${n(h)}`),this.token=h,Object.setPrototypeOf(this,Xb.prototype)}getToken(){return this.token}};i(a,"EarlyEndOfParseError");let c=a;const u=class Qb extends Error{constructor(h,b){let x=`Unexpected type: '${h.type}'.`;b!==void 0&&(x+=` Message: ${b}`),super(x),Object.setPrototypeOf(this,Qb.prototype)}};i(u,"UnexpectedTypeError");let d=u;function p(l){return h=>h.startsWith(l)?{type:l,text:l}:null}i(p,"makePunctuationRule");function f(l){let h=0,b;const x=l[0];let F=!1;if(x!=="'"&&x!=='"')return null;for(;h<l.length;){if(h++,b=l[h],!F&&b===x){h++;break}F=!F&&b==="\\"}if(b!==x)throw new Error("Unterminated String");return l.slice(0,h)}i(f,"getQuoted");const m=new RegExp("[$_\\p{ID_Start}]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}","u"),y=new RegExp("[$\\-\\p{ID_Continue}\\u200C\\u200D]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}","u");function g(l){let h=l[0];if(!m.test(h))return null;let b=1;do{if(h=l[b],!y.test(h))break;b++}while(b<l.length);return l.slice(0,b)}i(g,"getIdentifier");const T=/^(NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity))/;function E(l){var h,b;return(b=(h=T.exec(l))===null||h===void 0?void 0:h[0])!==null&&b!==void 0?b:null}i(E,"getNumber");const v=i(l=>{const h=g(l);return h==null?null:{type:"Identifier",text:h}},"identifierRule");function _(l){return h=>{if(!h.startsWith(l))return null;const b=h[l.length];return b!==void 0&&y.test(b)?null:{type:l,text:l}}}i(_,"makeKeyWordRule");const A=i(l=>{const h=f(l);return h==null?null:{type:"StringValue",text:h}},"stringValueRule"),N=i(l=>l.length>0?null:{type:"EOF",text:""},"eofRule"),j=i(l=>{const h=E(l);return h===null?null:{type:"Number",text:h}},"numberRule"),C=[N,p("=>"),p("("),p(")"),p("{"),p("}"),p("["),p("]"),p("|"),p("&"),p("<"),p(">"),p(","),p(";"),p("*"),p("?"),p("!"),p("="),p(":"),p("..."),p("."),p("#"),p("~"),p("/"),p("@"),_("undefined"),_("null"),_("function"),_("this"),_("new"),_("module"),_("event"),_("extends"),_("external"),_("infer"),_("typeof"),_("keyof"),_("readonly"),_("import"),_("is"),_("in"),_("asserts"),j,v,A],R=/^\s*\n\s*/,w=class Bs{static create(h){const b=this.read(h);h=b.text;const x=this.read(h);return h=x.text,new Bs(h,void 0,b.token,x.token)}constructor(h,b,x,F){this.text="",this.text=h,this.previous=b,this.current=x,this.next=F}static read(h,b=!1){b=b||R.test(h),h=h.trim();for(const x of C){const F=x(h);if(F!==null){const z=Object.assign(Object.assign({},F),{startOfLine:b});return h=h.slice(z.text.length),{text:h,token:z}}}throw new Error("Unexpected Token "+h)}advance(){const h=Bs.read(this.text);return new Bs(h.text,this.current,this.next,h.token)}};i(w,"Lexer");let S=w;function k(l){if(l===void 0)throw new Error("Unexpected undefined");if(l.type==="JsdocTypeKeyValue"||l.type==="JsdocTypeParameterList"||l.type==="JsdocTypeProperty"||l.type==="JsdocTypeReadonlyProperty"||l.type==="JsdocTypeObjectField"||l.type==="JsdocTypeJsdocObjectField"||l.type==="JsdocTypeIndexSignature"||l.type==="JsdocTypeMappedType"||l.type==="JsdocTypeTypeParameter")throw new d(l);return l}i(k,"assertRootResult");function I(l){return l.type==="JsdocTypeKeyValue"?H(l):k(l)}i(I,"assertPlainKeyValueOrRootResult");function V(l){return l.type==="JsdocTypeName"?l:H(l)}i(V,"assertPlainKeyValueOrNameResult");function H(l){if(l.type!=="JsdocTypeKeyValue")throw new d(l);return l}i(H,"assertPlainKeyValueResult");function P(l){var h;if(l.type==="JsdocTypeVariadic"){if(((h=l.element)===null||h===void 0?void 0:h.type)==="JsdocTypeName")return l;throw new d(l)}if(l.type!=="JsdocTypeNumber"&&l.type!=="JsdocTypeName")throw new d(l);return l}i(P,"assertNumberOrVariadicNameResult");function L(l){if(l.type==="JsdocTypeTuple"||l.type==="JsdocTypeGeneric"&&l.meta.brackets==="square")return l;throw new d(l)}i(L,"assertArrayOrTupleResult");function B(l){return l.type==="JsdocTypeIndexSignature"||l.type==="JsdocTypeMappedType"}i(B,"isSquaredProperty");var D;(function(l){l[l.ALL=0]="ALL",l[l.PARAMETER_LIST=1]="PARAMETER_LIST",l[l.OBJECT=2]="OBJECT",l[l.KEY_VALUE=3]="KEY_VALUE",l[l.INDEX_BRACKETS=4]="INDEX_BRACKETS",l[l.UNION=5]="UNION",l[l.INTERSECTION=6]="INTERSECTION",l[l.PREFIX=7]="PREFIX",l[l.INFIX=8]="INFIX",l[l.TUPLE=9]="TUPLE",l[l.SYMBOL=10]="SYMBOL",l[l.OPTIONAL=11]="OPTIONAL",l[l.NULLABLE=12]="NULLABLE",l[l.KEY_OF_TYPE_OF=13]="KEY_OF_TYPE_OF",l[l.FUNCTION=14]="FUNCTION",l[l.ARROW=15]="ARROW",l[l.ARRAY_BRACKETS=16]="ARRAY_BRACKETS",l[l.GENERIC=17]="GENERIC",l[l.NAME_PATH=18]="NAME_PATH",l[l.PARENTHESIS=19]="PARENTHESIS",l[l.SPECIAL_TYPES=20]="SPECIAL_TYPES"})(D||(D={}));const K=class{constructor(h,b,x){this.grammar=h,typeof b=="string"?this._lexer=S.create(b):this._lexer=b,this.baseParser=x}get lexer(){return this._lexer}parse(){const h=this.parseType(D.ALL);if(this.lexer.current.type!=="EOF")throw new c(this.lexer.current);return h}parseType(h){return k(this.parseIntermediateType(h))}parseIntermediateType(h){const b=this.tryParslets(null,h);if(b===null)throw new s(this.lexer.current);return this.parseInfixIntermediateType(b,h)}parseInfixIntermediateType(h,b){let x=this.tryParslets(h,b);for(;x!==null;)h=x,x=this.tryParslets(h,b);return h}tryParslets(h,b){for(const x of this.grammar){const F=x(this,b,h);if(F!==null)return F}return null}consume(h){return Array.isArray(h)||(h=[h]),h.includes(this.lexer.current.type)?(this._lexer=this.lexer.advance(),!0):!1}acceptLexerState(h){this._lexer=h.lexer}};i(K,"Parser");let X=K;function ie(l){return l==="}"||l==="EOF"||l==="|"||l===","||l===")"||l===">"}i(ie,"isQuestionMarkUnknownType");const se=i((l,h,b)=>{const x=l.lexer.current.type,F=l.lexer.next.type;return b==null&&x==="?"&&!ie(F)||b!=null&&x==="?"?(l.consume("?"),b==null?{type:"JsdocTypeNullable",element:l.parseType(D.NULLABLE),meta:{position:"prefix"}}:{type:"JsdocTypeNullable",element:k(b),meta:{position:"suffix"}}):null},"nullableParslet");function W(l){const h=i((b,x,F)=>{const z=b.lexer.current.type,Z=b.lexer.next.type;if(F===null){if("parsePrefix"in l&&l.accept(z,Z))return l.parsePrefix(b)}else if("parseInfix"in l&&l.precedence>x&&l.accept(z,Z))return l.parseInfix(b,F);return null},"parslet");return Object.defineProperty(h,"name",{value:l.name}),h}i(W,"composeParslet");const ae=W({name:"optionalParslet",accept:i(l=>l==="=","accept"),precedence:D.OPTIONAL,parsePrefix:i(l=>(l.consume("="),{type:"JsdocTypeOptional",element:l.parseType(D.OPTIONAL),meta:{position:"prefix"}}),"parsePrefix"),parseInfix:i((l,h)=>(l.consume("="),{type:"JsdocTypeOptional",element:k(h),meta:{position:"suffix"}}),"parseInfix")}),be=W({name:"numberParslet",accept:i(l=>l==="Number","accept"),parsePrefix:i(l=>{const h=parseFloat(l.lexer.current.text);return l.consume("Number"),{type:"JsdocTypeNumber",value:h}},"parsePrefix")}),ue=W({name:"parenthesisParslet",accept:i(l=>l==="(","accept"),parsePrefix:i(l=>{if(l.consume("("),l.consume(")"))return{type:"JsdocTypeParameterList",elements:[]};const h=l.parseIntermediateType(D.ALL);if(!l.consume(")"))throw new Error("Unterminated parenthesis");return h.type==="JsdocTypeParameterList"?h:h.type==="JsdocTypeKeyValue"?{type:"JsdocTypeParameterList",elements:[h]}:{type:"JsdocTypeParenthesis",element:k(h)}},"parsePrefix")}),ee=W({name:"specialTypesParslet",accept:i((l,h)=>l==="?"&&ie(h)||l==="null"||l==="undefined"||l==="*","accept"),parsePrefix:i(l=>{if(l.consume("null"))return{type:"JsdocTypeNull"};if(l.consume("undefined"))return{type:"JsdocTypeUndefined"};if(l.consume("*"))return{type:"JsdocTypeAny"};if(l.consume("?"))return{type:"JsdocTypeUnknown"};throw new Error("Unacceptable token: "+l.lexer.current.text)},"parsePrefix")}),Ae=W({name:"notNullableParslet",accept:i(l=>l==="!","accept"),precedence:D.NULLABLE,parsePrefix:i(l=>(l.consume("!"),{type:"JsdocTypeNotNullable",element:l.parseType(D.NULLABLE),meta:{position:"prefix"}}),"parsePrefix"),parseInfix:i((l,h)=>(l.consume("!"),{type:"JsdocTypeNotNullable",element:k(h),meta:{position:"suffix"}}),"parseInfix")});function Oe({allowTrailingComma:l}){return W({name:"parameterListParslet",accept:i(h=>h===",","accept"),precedence:D.PARAMETER_LIST,parseInfix:i((h,b)=>{const x=[I(b)];h.consume(",");do try{const F=h.parseIntermediateType(D.PARAMETER_LIST);x.push(I(F))}catch(F){if(F instanceof s)break;throw F}while(h.consume(","));if(x.length>0&&x.slice(0,-1).some(F=>F.type==="JsdocTypeVariadic"))throw new Error("Only the last parameter may be a rest parameter");return{type:"JsdocTypeParameterList",elements:x}},"parseInfix")})}i(Oe,"createParameterListParslet");const Ve=W({name:"genericParslet",accept:i((l,h)=>l==="<"||l==="."&&h==="<","accept"),precedence:D.GENERIC,parseInfix:i((l,h)=>{const b=l.consume(".");l.consume("<");const x=[];let F=!1;if(l.consume("infer")){F=!0;const z=l.parseIntermediateType(D.SYMBOL);if(z.type!=="JsdocTypeName")throw new d(z,"A typescript asserts always has to have a name on the left side.");x.push(z)}else do x.push(l.parseType(D.PARAMETER_LIST));while(l.consume(","));if(!l.consume(">"))throw new Error("Unterminated generic parameter list");return Object.assign(Object.assign({type:"JsdocTypeGeneric",left:k(h),elements:x},F?{infer:!0}:{}),{meta:{brackets:"angle",dot:b}})},"parseInfix")}),We=W({name:"unionParslet",accept:i(l=>l==="|","accept"),precedence:D.UNION,parseInfix:i((l,h)=>{l.consume("|");const b=[];do b.push(l.parseType(D.UNION));while(l.consume("|"));return{type:"JsdocTypeUnion",elements:[k(h),...b]}},"parseInfix")}),J=[se,ae,be,ue,ee,Ae,Oe({allowTrailingComma:!0}),Ve,We,ae];function Q({allowSquareBracketsOnAnyType:l,allowJsdocNamePaths:h,pathGrammar:b}){return i(function(F,z,Z){if(Z==null||z>=D.NAME_PATH)return null;const ce=F.lexer.current.type,_e=F.lexer.next.type;if(!(ce==="."&&_e!=="<"||ce==="["&&(l||Z.type==="JsdocTypeName")||h&&(ce==="~"||ce==="#")))return null;let Me,dr=!1;F.consume(".")?Me="property":F.consume("[")?(Me="property-brackets",dr=!0):F.consume("~")?Me="inner":(F.consume("#"),Me="instance");const ci=b!==null?new X(b,F.lexer,F):F,Xe=ci.parseIntermediateType(D.NAME_PATH);F.acceptLexerState(ci);let $t;switch(Xe.type){case"JsdocTypeName":$t={type:"JsdocTypeProperty",value:Xe.value,meta:{quote:void 0}};break;case"JsdocTypeNumber":$t={type:"JsdocTypeProperty",value:Xe.value.toString(10),meta:{quote:void 0}};break;case"JsdocTypeStringValue":$t={type:"JsdocTypeProperty",value:Xe.value,meta:{quote:Xe.meta.quote}};break;case"JsdocTypeSpecialNamePath":if(Xe.specialType==="event")$t=Xe;else throw new d(Xe,"Type 'JsdocTypeSpecialNamePath' is only allowed with specialType 'event'");break;default:throw new d(Xe,"Expecting 'JsdocTypeName', 'JsdocTypeNumber', 'JsdocStringValue' or 'JsdocTypeSpecialNamePath'")}if(dr&&!F.consume("]")){const ui=F.lexer.current;throw new Error(`Unterminated square brackets. Next token is '${ui.type}' with text '${ui.text}'`)}return{type:"JsdocTypeNamePath",left:k(Z),right:$t,pathType:Me}},"namePathParslet")}i(Q,"createNamePathParslet");function re({allowedAdditionalTokens:l}){return W({name:"nameParslet",accept:i(h=>h==="Identifier"||h==="this"||h==="new"||l.includes(h),"accept"),parsePrefix:i(h=>{const{type:b,text:x}=h.lexer.current;return h.consume(b),{type:"JsdocTypeName",value:x}},"parsePrefix")})}i(re,"createNameParslet");const oe=W({name:"stringValueParslet",accept:i(l=>l==="StringValue","accept"),parsePrefix:i(l=>{const h=l.lexer.current.text;return l.consume("StringValue"),{type:"JsdocTypeStringValue",value:h.slice(1,-1),meta:{quote:h[0]==="'"?"single":"double"}}},"parsePrefix")});function ne({pathGrammar:l,allowedTypes:h}){return W({name:"specialNamePathParslet",accept:i(b=>h.includes(b),"accept"),parsePrefix:i(b=>{const x=b.lexer.current.type;if(b.consume(x),!b.consume(":"))return{type:"JsdocTypeName",value:x};let F,z=b.lexer.current;if(b.consume("StringValue"))F={type:"JsdocTypeSpecialNamePath",value:z.text.slice(1,-1),specialType:x,meta:{quote:z.text[0]==="'"?"single":"double"}};else{let _e="";const Ee=["Identifier","@","/"];for(;Ee.some(Me=>b.consume(Me));)_e+=z.text,z=b.lexer.current;F={type:"JsdocTypeSpecialNamePath",value:_e,specialType:x,meta:{quote:void 0}}}const Z=new X(l,b.lexer,b),ce=Z.parseInfixIntermediateType(F,D.ALL);return b.acceptLexerState(Z),k(ce)},"parsePrefix")})}i(ne,"createSpecialNamePathParslet");const de=[re({allowedAdditionalTokens:["external","module"]}),oe,be,Q({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:null})],me=[...de,ne({allowedTypes:["event"],pathGrammar:de})];function pe(l){let h;if(l.type==="JsdocTypeParameterList")h=l.elements;else if(l.type==="JsdocTypeParenthesis")h=[l.element];else throw new d(l);return h.map(b=>I(b))}i(pe,"getParameters");function Be(l){const h=pe(l);if(h.some(b=>b.type==="JsdocTypeKeyValue"))throw new Error("No parameter should be named");return h}i(Be,"getUnnamedParameters");function ot({allowNamedParameters:l,allowNoReturnType:h,allowWithoutParenthesis:b,allowNewAsFunctionKeyword:x}){return W({name:"functionParslet",accept:i((F,z)=>F==="function"||x&&F==="new"&&z==="(","accept"),parsePrefix:i(F=>{const z=F.consume("new");F.consume("function");const Z=F.lexer.current.type==="(";if(!Z){if(!b)throw new Error("function is missing parameter list");return{type:"JsdocTypeName",value:"function"}}let ce={type:"JsdocTypeFunction",parameters:[],arrow:!1,constructor:z,parenthesis:Z};const _e=F.parseIntermediateType(D.FUNCTION);if(l===void 0)ce.parameters=Be(_e);else{if(z&&_e.type==="JsdocTypeFunction"&&_e.arrow)return ce=_e,ce.constructor=!0,ce;ce.parameters=pe(_e);for(const Ee of ce.parameters)if(Ee.type==="JsdocTypeKeyValue"&&!l.includes(Ee.key))throw new Error(`only allowed named parameters are ${l.join(", ")} but got ${Ee.type}`)}if(F.consume(":"))ce.returnType=F.parseType(D.PREFIX);else if(!h)throw new Error("function is missing return type");return ce},"parsePrefix")})}i(ot,"createFunctionParslet");function dt({allowPostfix:l,allowEnclosingBrackets:h}){return W({name:"variadicParslet",accept:i(b=>b==="...","accept"),precedence:D.PREFIX,parsePrefix:i(b=>{b.consume("...");const x=h&&b.consume("[");try{const F=b.parseType(D.PREFIX);if(x&&!b.consume("]"))throw new Error("Unterminated variadic type. Missing ']'");return{type:"JsdocTypeVariadic",element:k(F),meta:{position:"prefix",squareBrackets:x}}}catch(F){if(F instanceof s){if(x)throw new Error("Empty square brackets for variadic are not allowed.");return{type:"JsdocTypeVariadic",meta:{position:void 0,squareBrackets:!1}}}else throw F}},"parsePrefix"),parseInfix:l?(b,x)=>(b.consume("..."),{type:"JsdocTypeVariadic",element:k(x),meta:{position:"suffix",squareBrackets:!1}}):void 0})}i(dt,"createVariadicParslet");const Tt=W({name:"symbolParslet",accept:i(l=>l==="(","accept"),precedence:D.SYMBOL,parseInfix:i((l,h)=>{if(h.type!=="JsdocTypeName")throw new Error("Symbol expects a name on the left side. (Reacting on '(')");l.consume("(");const b={type:"JsdocTypeSymbol",value:h.value};if(!l.consume(")")){const x=l.parseIntermediateType(D.SYMBOL);if(b.element=P(x),!l.consume(")"))throw new Error("Symbol does not end after value")}return b},"parseInfix")}),it=W({name:"arrayBracketsParslet",precedence:D.ARRAY_BRACKETS,accept:i((l,h)=>l==="["&&h==="]","accept"),parseInfix:i((l,h)=>(l.consume("["),l.consume("]"),{type:"JsdocTypeGeneric",left:{type:"JsdocTypeName",value:"Array"},elements:[k(h)],meta:{brackets:"square",dot:!1}}),"parseInfix")});function pt({objectFieldGrammar:l,allowKeyTypes:h}){return W({name:"objectParslet",accept:i(b=>b==="{","accept"),parsePrefix:i(b=>{b.consume("{");const x={type:"JsdocTypeObject",meta:{separator:"comma"},elements:[]};if(!b.consume("}")){let F;const z=new X(l,b.lexer,b);for(;;){z.acceptLexerState(b);let Z=z.parseIntermediateType(D.OBJECT);b.acceptLexerState(z),Z===void 0&&h&&(Z=b.parseIntermediateType(D.OBJECT));let ce=!1;if(Z.type==="JsdocTypeNullable"&&(ce=!0,Z=Z.element),Z.type==="JsdocTypeNumber"||Z.type==="JsdocTypeName"||Z.type==="JsdocTypeStringValue"){let Ee;Z.type==="JsdocTypeStringValue"&&(Ee=Z.meta.quote),x.elements.push({type:"JsdocTypeObjectField",key:Z.value.toString(),right:void 0,optional:ce,readonly:!1,meta:{quote:Ee}})}else if(Z.type==="JsdocTypeObjectField"||Z.type==="JsdocTypeJsdocObjectField")x.elements.push(Z);else throw new d(Z);if(b.lexer.current.startOfLine)F="linebreak",b.consume(",")||b.consume(";");else if(b.consume(","))F="comma";else if(b.consume(";"))F="semicolon";else break;if(b.lexer.current.type==="}")break}if(x.meta.separator=F??"comma",F==="linebreak"&&(x.meta.propertyIndent=" "),!b.consume("}"))throw new Error("Unterminated record type. Missing '}'")}return x},"parsePrefix")})}i(pt,"createObjectParslet");function ft({allowSquaredProperties:l,allowKeyTypes:h,allowReadonly:b,allowOptional:x}){return W({name:"objectFieldParslet",precedence:D.KEY_VALUE,accept:i(F=>F===":","accept"),parseInfix:i((F,z)=>{var Z;let ce=!1,_e=!1;x&&z.type==="JsdocTypeNullable"&&(ce=!0,z=z.element),b&&z.type==="JsdocTypeReadonlyProperty"&&(_e=!0,z=z.element);const Ee=(Z=F.baseParser)!==null&&Z!==void 0?Z:F;if(Ee.acceptLexerState(F),z.type==="JsdocTypeNumber"||z.type==="JsdocTypeName"||z.type==="JsdocTypeStringValue"||B(z)){if(B(z)&&!l)throw new d(z);Ee.consume(":");let Me;z.type==="JsdocTypeStringValue"&&(Me=z.meta.quote);const dr=Ee.parseType(D.KEY_VALUE);return F.acceptLexerState(Ee),{type:"JsdocTypeObjectField",key:B(z)?z:z.value.toString(),right:dr,optional:ce,readonly:_e,meta:{quote:Me}}}else{if(!h)throw new d(z);Ee.consume(":");const Me=Ee.parseType(D.KEY_VALUE);return F.acceptLexerState(Ee),{type:"JsdocTypeJsdocObjectField",left:k(z),right:Me}}},"parseInfix")})}i(ft,"createObjectFieldParslet");function ht({allowOptional:l,allowVariadic:h}){return W({name:"keyValueParslet",precedence:D.KEY_VALUE,accept:i(b=>b===":","accept"),parseInfix:i((b,x)=>{let F=!1,z=!1;if(l&&x.type==="JsdocTypeNullable"&&(F=!0,x=x.element),h&&x.type==="JsdocTypeVariadic"&&x.element!==void 0&&(z=!0,x=x.element),x.type!=="JsdocTypeName")throw new d(x);b.consume(":");const Z=b.parseType(D.KEY_VALUE);return{type:"JsdocTypeKeyValue",key:x.value,right:Z,optional:F,variadic:z}},"parseInfix")})}i(ht,"createKeyValueParslet");const en=[...J,ot({allowWithoutParenthesis:!0,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),oe,ne({allowedTypes:["module","external","event"],pathGrammar:me}),dt({allowEnclosingBrackets:!0,allowPostfix:!0}),re({allowedAdditionalTokens:["keyof"]}),Tt,it,Q({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:me})],Bo=[...en,pt({objectFieldGrammar:[re({allowedAdditionalTokens:["typeof","module","in"]}),ft({allowSquaredProperties:!1,allowKeyTypes:!0,allowOptional:!1,allowReadonly:!1}),...en],allowKeyTypes:!0}),ht({allowOptional:!0,allowVariadic:!0})],tn=W({name:"typeOfParslet",accept:i(l=>l==="typeof","accept"),parsePrefix:i(l=>(l.consume("typeof"),{type:"JsdocTypeTypeof",element:l.parseType(D.KEY_OF_TYPE_OF)}),"parsePrefix")}),$o=[re({allowedAdditionalTokens:["typeof","module","keyof","event","external","in"]}),se,ae,oe,be,ft({allowSquaredProperties:!1,allowKeyTypes:!1,allowOptional:!1,allowReadonly:!1})],Jo=[...J,pt({allowKeyTypes:!1,objectFieldGrammar:$o}),re({allowedAdditionalTokens:["event","external","in"]}),tn,ot({allowWithoutParenthesis:!1,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),dt({allowEnclosingBrackets:!1,allowPostfix:!1}),re({allowedAdditionalTokens:["keyof"]}),ne({allowedTypes:["module"],pathGrammar:me}),Q({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:me}),ht({allowOptional:!1,allowVariadic:!1}),Tt],Uo=W({name:"assertsParslet",accept:i(l=>l==="asserts","accept"),parsePrefix:i(l=>{l.consume("asserts");const h=l.parseIntermediateType(D.SYMBOL);if(h.type!=="JsdocTypeName")throw new d(h,"A typescript asserts always has to have a name on the left side.");return l.consume("is")?{type:"JsdocTypeAsserts",left:h,right:k(l.parseIntermediateType(D.INFIX))}:{type:"JsdocTypeAssertsPlain",element:h}},"parsePrefix")});function rn({allowQuestionMark:l}){return W({name:"tupleParslet",accept:i(h=>h==="[","accept"),parsePrefix:i(h=>{h.consume("[");const b={type:"JsdocTypeTuple",elements:[]};if(h.consume("]"))return b;const x=h.parseIntermediateType(D.ALL);if(x.type==="JsdocTypeParameterList"?x.elements[0].type==="JsdocTypeKeyValue"?b.elements=x.elements.map(H):b.elements=x.elements.map(k):x.type==="JsdocTypeKeyValue"?b.elements=[H(x)]:b.elements=[k(x)],!h.consume("]"))throw new Error("Unterminated '['");if(b.elements.some(F=>F.type==="JsdocTypeUnknown"))throw new Error("Question mark in tuple not allowed");return b},"parsePrefix")})}i(rn,"createTupleParslet");const Vo=W({name:"keyOfParslet",accept:i(l=>l==="keyof","accept"),parsePrefix:i(l=>(l.consume("keyof"),{type:"JsdocTypeKeyof",element:k(l.parseType(D.KEY_OF_TYPE_OF))}),"parsePrefix")}),Ho=W({name:"importParslet",accept:i(l=>l==="import","accept"),parsePrefix:i(l=>{if(l.consume("import"),!l.consume("("))throw new Error("Missing parenthesis after import keyword");const h=l.parseType(D.PREFIX);if(h.type!=="JsdocTypeStringValue")throw new Error("Only string values are allowed as paths for imports");if(!l.consume(")"))throw new Error("Missing closing parenthesis after import keyword");return{type:"JsdocTypeImport",element:h}},"parsePrefix")}),Go=W({name:"readonlyPropertyParslet",accept:i(l=>l==="readonly","accept"),parsePrefix:i(l=>(l.consume("readonly"),{type:"JsdocTypeReadonlyProperty",element:l.parseIntermediateType(D.KEY_VALUE)}),"parsePrefix")}),zo=W({name:"arrowFunctionParslet",precedence:D.ARROW,accept:i(l=>l==="=>","accept"),parseInfix:i((l,h)=>(l.consume("=>"),{type:"JsdocTypeFunction",parameters:pe(h).map(V),arrow:!0,constructor:!1,parenthesis:!0,returnType:l.parseType(D.OBJECT)}),"parseInfix")}),Wo=W({name:"genericArrowFunctionParslet",accept:i(l=>l==="<","accept"),parsePrefix:i(l=>{const h=[];l.consume("<");do{let x,F=l.parseIntermediateType(D.SYMBOL);if(F.type==="JsdocTypeOptional"&&(F=F.element,x=l.parseType(D.SYMBOL)),F.type!=="JsdocTypeName")throw new d(F);let z;l.consume("extends")&&(z=l.parseType(D.SYMBOL),z.type==="JsdocTypeOptional"&&(z=z.element,x=l.parseType(D.SYMBOL)));const Z={type:"JsdocTypeTypeParameter",name:F};if(z!==void 0&&(Z.constraint=z),x!==void 0&&(Z.defaultValue=x),h.push(Z),l.consume(">"))break}while(l.consume(","));const b=l.parseIntermediateType(D.SYMBOL);return b.typeParameters=h,b},"parsePrefix")}),Ko=W({name:"intersectionParslet",accept:i(l=>l==="&","accept"),precedence:D.INTERSECTION,parseInfix:i((l,h)=>{l.consume("&");const b=[];do b.push(l.parseType(D.INTERSECTION));while(l.consume("&"));return{type:"JsdocTypeIntersection",elements:[k(h),...b]}},"parseInfix")}),Yo=W({name:"predicateParslet",precedence:D.INFIX,accept:i(l=>l==="is","accept"),parseInfix:i((l,h)=>{if(h.type!=="JsdocTypeName")throw new d(h,"A typescript predicate always has to have a name on the left side.");return l.consume("is"),{type:"JsdocTypePredicate",left:h,right:k(l.parseIntermediateType(D.INFIX))}},"parseInfix")}),Xo=W({name:"objectSquareBracketPropertyParslet",accept:i(l=>l==="[","accept"),parsePrefix:i(l=>{if(l.baseParser===void 0)throw new Error("Only allowed inside object grammar");l.consume("[");const h=l.lexer.current.text;l.consume("Identifier");let b;if(l.consume(":")){const x=l.baseParser;x.acceptLexerState(l),b={type:"JsdocTypeIndexSignature",key:h,right:x.parseType(D.INDEX_BRACKETS)},l.acceptLexerState(x)}else if(l.consume("in")){const x=l.baseParser;x.acceptLexerState(l),b={type:"JsdocTypeMappedType",key:h,right:x.parseType(D.ARRAY_BRACKETS)},l.acceptLexerState(x)}else throw new Error("Missing ':' or 'in' inside square bracketed property.");if(!l.consume("]"))throw new Error("Unterminated square brackets");return b},"parsePrefix")}),Qo=W({name:"readonlyArrayParslet",accept:i(l=>l==="readonly","accept"),parsePrefix:i(l=>(l.consume("readonly"),{type:"JsdocTypeReadonlyArray",element:L(l.parseIntermediateType(D.ALL))}),"parsePrefix")}),Zo=W({name:"conditionalParslet",precedence:D.INFIX,accept:i(l=>l==="extends","accept"),parseInfix:i((l,h)=>{l.consume("extends");const b=l.parseType(D.KEY_OF_TYPE_OF).element,x=l.parseType(D.INFIX);return l.consume(":"),{type:"JsdocTypeConditional",checksType:k(h),extendsType:b,trueType:x,falseType:l.parseType(D.INFIX)}},"parseInfix")}),ei=[Go,re({allowedAdditionalTokens:["typeof","module","keyof","event","external","in"]}),se,ae,oe,be,ft({allowSquaredProperties:!0,allowKeyTypes:!1,allowOptional:!0,allowReadonly:!0}),Xo],ti=[...J,pt({allowKeyTypes:!1,objectFieldGrammar:ei}),Qo,tn,Vo,Ho,oe,ot({allowWithoutParenthesis:!0,allowNoReturnType:!1,allowNamedParameters:["this","new","args"],allowNewAsFunctionKeyword:!0}),rn({allowQuestionMark:!1}),dt({allowEnclosingBrackets:!1,allowPostfix:!1}),Uo,Zo,re({allowedAdditionalTokens:["event","external","in"]}),ne({allowedTypes:["module"],pathGrammar:me}),it,zo,Wo,Q({allowSquareBracketsOnAnyType:!0,allowJsdocNamePaths:!1,pathGrammar:me}),Ko,Yo,ht({allowVariadic:!0,allowOptional:!0})];function lr(l,h){switch(h){case"closure":return new X(Jo,l).parse();case"jsdoc":return new X(Bo,l).parse();case"typescript":return new X(ti,l).parse()}}i(lr,"parse");function nn(l,h=["typescript","closure","jsdoc"]){let b;for(const x of h)try{return lr(l,x)}catch(F){b=F}throw b}i(nn,"tryParse");function Y(l,h){const b=l[h.type];if(b===void 0)throw new Error(`In this set of transform rules exists no rule for type ${h.type}.`);return b(h,x=>Y(l,x))}i(Y,"transform");function le(l){throw new Error("This transform is not available. Are you trying the correct parsing mode?")}i(le,"notAvailableTransform");function Nt(l){const h={params:[]};for(const b of l.parameters)b.type==="JsdocTypeKeyValue"?b.key==="this"?h.this=b.right:b.key==="new"?h.new=b.right:h.params.push(b):h.params.push(b);return h}i(Nt,"extractSpecialParams");function Bt(l,h,b){return l==="prefix"?b+h:h+b}i(Bt,"applyPosition");function Ke(l,h){switch(h){case"double":return`"${l}"`;case"single":return`'${l}'`;case void 0:return l}}i(Ke,"quote");function on(){return{JsdocTypeParenthesis:i((l,h)=>`(${l.element!==void 0?h(l.element):""})`,"JsdocTypeParenthesis"),JsdocTypeKeyof:i((l,h)=>`keyof ${h(l.element)}`,"JsdocTypeKeyof"),JsdocTypeFunction:i((l,h)=>{var b;if(l.arrow){if(l.returnType===void 0)throw new Error("Arrow function needs a return type.");let x=`${l.typeParameters!==void 0?`<${(b=l.typeParameters.map(h).join(", "))!==null&&b!==void 0?b:""}>`:""}(${l.parameters.map(h).join(", ")}) => ${h(l.returnType)}`;return l.constructor&&(x="new "+x),x}else{let x=l.constructor?"new":"function";return l.parenthesis&&(x+=`(${l.parameters.map(h).join(", ")})`,l.returnType!==void 0&&(x+=`: ${h(l.returnType)}`)),x}},"JsdocTypeFunction"),JsdocTypeName:i(l=>l.value,"JsdocTypeName"),JsdocTypeTuple:i((l,h)=>`[${l.elements.map(h).join(", ")}]`,"JsdocTypeTuple"),JsdocTypeVariadic:i((l,h)=>l.meta.position===void 0?"...":Bt(l.meta.position,h(l.element),"..."),"JsdocTypeVariadic"),JsdocTypeNamePath:i((l,h)=>{const b=h(l.left),x=h(l.right);switch(l.pathType){case"inner":return`${b}~${x}`;case"instance":return`${b}#${x}`;case"property":return`${b}.${x}`;case"property-brackets":return`${b}[${x}]`}},"JsdocTypeNamePath"),JsdocTypeStringValue:i(l=>Ke(l.value,l.meta.quote),"JsdocTypeStringValue"),JsdocTypeAny:i(()=>"*","JsdocTypeAny"),JsdocTypeGeneric:i((l,h)=>{if(l.meta.brackets==="square"){const b=l.elements[0],x=h(b);return b.type==="JsdocTypeUnion"||b.type==="JsdocTypeIntersection"?`(${x})[]`:`${x}[]`}else return`${h(l.left)}${l.meta.dot?".":""}<${l.infer===!0?"infer ":""}${l.elements.map(h).join(", ")}>`},"JsdocTypeGeneric"),JsdocTypeImport:i((l,h)=>`import(${h(l.element)})`,"JsdocTypeImport"),JsdocTypeObjectField:i((l,h)=>{let b="";return l.readonly&&(b+="readonly "),typeof l.key=="string"?b+=Ke(l.key,l.meta.quote):b+=h(l.key),l.optional&&(b+="?"),l.right===void 0?b:b+`: ${h(l.right)}`},"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:i((l,h)=>`${h(l.left)}: ${h(l.right)}`,"JsdocTypeJsdocObjectField"),JsdocTypeKeyValue:i((l,h)=>{let b=l.key;return l.optional&&(b+="?"),l.variadic&&(b="..."+b),l.right===void 0?b:b+`: ${h(l.right)}`},"JsdocTypeKeyValue"),JsdocTypeSpecialNamePath:i(l=>`${l.specialType}:${Ke(l.value,l.meta.quote)}`,"JsdocTypeSpecialNamePath"),JsdocTypeNotNullable:i((l,h)=>Bt(l.meta.position,h(l.element),"!"),"JsdocTypeNotNullable"),JsdocTypeNull:i(()=>"null","JsdocTypeNull"),JsdocTypeNullable:i((l,h)=>Bt(l.meta.position,h(l.element),"?"),"JsdocTypeNullable"),JsdocTypeNumber:i(l=>l.value.toString(),"JsdocTypeNumber"),JsdocTypeObject:i((l,h)=>{var b,x;return`{${(l.meta.separator==="linebreak"&&l.elements.length>1?`
|
|
15
|
+
`+((b=l.meta.propertyIndent)!==null&&b!==void 0?b:""):"")+l.elements.map(h).join(l.meta.separator==="comma"?", ":l.meta.separator==="linebreak"?`
|
|
16
|
+
`+((x=l.meta.propertyIndent)!==null&&x!==void 0?x:""):"; ")+(l.meta.separator==="linebreak"&&l.elements.length>1?`
|
|
17
|
+
`:"")}}`},"JsdocTypeObject"),JsdocTypeOptional:i((l,h)=>Bt(l.meta.position,h(l.element),"="),"JsdocTypeOptional"),JsdocTypeSymbol:i((l,h)=>`${l.value}(${l.element!==void 0?h(l.element):""})`,"JsdocTypeSymbol"),JsdocTypeTypeof:i((l,h)=>`typeof ${h(l.element)}`,"JsdocTypeTypeof"),JsdocTypeUndefined:i(()=>"undefined","JsdocTypeUndefined"),JsdocTypeUnion:i((l,h)=>l.elements.map(h).join(" | "),"JsdocTypeUnion"),JsdocTypeUnknown:i(()=>"?","JsdocTypeUnknown"),JsdocTypeIntersection:i((l,h)=>l.elements.map(h).join(" & "),"JsdocTypeIntersection"),JsdocTypeProperty:i(l=>Ke(l.value,l.meta.quote),"JsdocTypeProperty"),JsdocTypePredicate:i((l,h)=>`${h(l.left)} is ${h(l.right)}`,"JsdocTypePredicate"),JsdocTypeIndexSignature:i((l,h)=>`[${l.key}: ${h(l.right)}]`,"JsdocTypeIndexSignature"),JsdocTypeMappedType:i((l,h)=>`[${l.key} in ${h(l.right)}]`,"JsdocTypeMappedType"),JsdocTypeAsserts:i((l,h)=>`asserts ${h(l.left)} is ${h(l.right)}`,"JsdocTypeAsserts"),JsdocTypeReadonlyArray:i((l,h)=>`readonly ${h(l.element)}`,"JsdocTypeReadonlyArray"),JsdocTypeAssertsPlain:i((l,h)=>`asserts ${h(l.element)}`,"JsdocTypeAssertsPlain"),JsdocTypeConditional:i((l,h)=>`${h(l.checksType)} extends ${h(l.extendsType)} ? ${h(l.trueType)} : ${h(l.falseType)}`,"JsdocTypeConditional"),JsdocTypeTypeParameter:i((l,h)=>`${h(l.name)}${l.constraint!==void 0?` extends ${h(l.constraint)}`:""}${l.defaultValue!==void 0?` = ${h(l.defaultValue)}`:""}`,"JsdocTypeTypeParameter")}}i(on,"stringifyRules");const Ic=on();function ri(l){return Y(Ic,l)}i(ri,"stringify");const Mc=["null","true","false","break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield"];function Ye(l){const h={type:"NameExpression",name:l};return Mc.includes(l)&&(h.reservedWord=!0),h}i(Ye,"makeName");const qc={JsdocTypeOptional:i((l,h)=>{const b=h(l.element);return b.optional=!0,b},"JsdocTypeOptional"),JsdocTypeNullable:i((l,h)=>{const b=h(l.element);return b.nullable=!0,b},"JsdocTypeNullable"),JsdocTypeNotNullable:i((l,h)=>{const b=h(l.element);return b.nullable=!1,b},"JsdocTypeNotNullable"),JsdocTypeVariadic:i((l,h)=>{if(l.element===void 0)throw new Error("dots without value are not allowed in catharsis mode");const b=h(l.element);return b.repeatable=!0,b},"JsdocTypeVariadic"),JsdocTypeAny:i(()=>({type:"AllLiteral"}),"JsdocTypeAny"),JsdocTypeNull:i(()=>({type:"NullLiteral"}),"JsdocTypeNull"),JsdocTypeStringValue:i(l=>Ye(Ke(l.value,l.meta.quote)),"JsdocTypeStringValue"),JsdocTypeUndefined:i(()=>({type:"UndefinedLiteral"}),"JsdocTypeUndefined"),JsdocTypeUnknown:i(()=>({type:"UnknownLiteral"}),"JsdocTypeUnknown"),JsdocTypeFunction:i((l,h)=>{const b=Nt(l),x={type:"FunctionType",params:b.params.map(h)};return b.this!==void 0&&(x.this=h(b.this)),b.new!==void 0&&(x.new=h(b.new)),l.returnType!==void 0&&(x.result=h(l.returnType)),x},"JsdocTypeFunction"),JsdocTypeGeneric:i((l,h)=>({type:"TypeApplication",applications:l.elements.map(b=>h(b)),expression:h(l.left)}),"JsdocTypeGeneric"),JsdocTypeSpecialNamePath:i(l=>Ye(l.specialType+":"+Ke(l.value,l.meta.quote)),"JsdocTypeSpecialNamePath"),JsdocTypeName:i(l=>l.value!=="function"?Ye(l.value):{type:"FunctionType",params:[]},"JsdocTypeName"),JsdocTypeNumber:i(l=>Ye(l.value.toString()),"JsdocTypeNumber"),JsdocTypeObject:i((l,h)=>{const b={type:"RecordType",fields:[]};for(const x of l.elements)x.type!=="JsdocTypeObjectField"&&x.type!=="JsdocTypeJsdocObjectField"?b.fields.push({type:"FieldType",key:h(x),value:void 0}):b.fields.push(h(x));return b},"JsdocTypeObject"),JsdocTypeObjectField:i((l,h)=>{if(typeof l.key!="string")throw new Error("Index signatures and mapped types are not supported");return{type:"FieldType",key:Ye(Ke(l.key,l.meta.quote)),value:l.right===void 0?void 0:h(l.right)}},"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:i((l,h)=>({type:"FieldType",key:h(l.left),value:h(l.right)}),"JsdocTypeJsdocObjectField"),JsdocTypeUnion:i((l,h)=>({type:"TypeUnion",elements:l.elements.map(b=>h(b))}),"JsdocTypeUnion"),JsdocTypeKeyValue:i((l,h)=>({type:"FieldType",key:Ye(l.key),value:l.right===void 0?void 0:h(l.right)}),"JsdocTypeKeyValue"),JsdocTypeNamePath:i((l,h)=>{const b=h(l.left);let x;l.right.type==="JsdocTypeSpecialNamePath"?x=h(l.right).name:x=Ke(l.right.value,l.right.meta.quote);const F=l.pathType==="inner"?"~":l.pathType==="instance"?"#":".";return Ye(`${b.name}${F}${x}`)},"JsdocTypeNamePath"),JsdocTypeSymbol:i(l=>{let h="",b=l.element,x=!1;return b?.type==="JsdocTypeVariadic"&&(b.meta.position==="prefix"?h="...":x=!0,b=b.element),b?.type==="JsdocTypeName"?h+=b.value:b?.type==="JsdocTypeNumber"&&(h+=b.value.toString()),x&&(h+="..."),Ye(`${l.value}(${h})`)},"JsdocTypeSymbol"),JsdocTypeParenthesis:i((l,h)=>h(k(l.element)),"JsdocTypeParenthesis"),JsdocTypeMappedType:le,JsdocTypeIndexSignature:le,JsdocTypeImport:le,JsdocTypeKeyof:le,JsdocTypeTuple:le,JsdocTypeTypeof:le,JsdocTypeIntersection:le,JsdocTypeProperty:le,JsdocTypePredicate:le,JsdocTypeAsserts:le,JsdocTypeReadonlyArray:le,JsdocTypeAssertsPlain:le,JsdocTypeConditional:le,JsdocTypeTypeParameter:le};function ni(l){return Y(qc,l)}i(ni,"catharsisTransform");function st(l){switch(l){case void 0:return"none";case"single":return"single";case"double":return"double"}}i(st,"getQuoteStyle");function oi(l){switch(l){case"inner":return"INNER_MEMBER";case"instance":return"INSTANCE_MEMBER";case"property":return"MEMBER";case"property-brackets":return"MEMBER"}}i(oi,"getMemberType");function cr(l,h){return h.length===2?{type:l,left:h[0],right:h[1]}:{type:l,left:h[0],right:cr(l,h.slice(1))}}i(cr,"nestResults");const jc={JsdocTypeOptional:i((l,h)=>({type:"OPTIONAL",value:h(l.element),meta:{syntax:l.meta.position==="prefix"?"PREFIX_EQUAL_SIGN":"SUFFIX_EQUALS_SIGN"}}),"JsdocTypeOptional"),JsdocTypeNullable:i((l,h)=>({type:"NULLABLE",value:h(l.element),meta:{syntax:l.meta.position==="prefix"?"PREFIX_QUESTION_MARK":"SUFFIX_QUESTION_MARK"}}),"JsdocTypeNullable"),JsdocTypeNotNullable:i((l,h)=>({type:"NOT_NULLABLE",value:h(l.element),meta:{syntax:l.meta.position==="prefix"?"PREFIX_BANG":"SUFFIX_BANG"}}),"JsdocTypeNotNullable"),JsdocTypeVariadic:i((l,h)=>{const b={type:"VARIADIC",meta:{syntax:l.meta.position==="prefix"?"PREFIX_DOTS":l.meta.position==="suffix"?"SUFFIX_DOTS":"ONLY_DOTS"}};return l.element!==void 0&&(b.value=h(l.element)),b},"JsdocTypeVariadic"),JsdocTypeName:i(l=>({type:"NAME",name:l.value}),"JsdocTypeName"),JsdocTypeTypeof:i((l,h)=>({type:"TYPE_QUERY",name:h(l.element)}),"JsdocTypeTypeof"),JsdocTypeTuple:i((l,h)=>({type:"TUPLE",entries:l.elements.map(h)}),"JsdocTypeTuple"),JsdocTypeKeyof:i((l,h)=>({type:"KEY_QUERY",value:h(l.element)}),"JsdocTypeKeyof"),JsdocTypeImport:i(l=>({type:"IMPORT",path:{type:"STRING_VALUE",quoteStyle:st(l.element.meta.quote),string:l.element.value}}),"JsdocTypeImport"),JsdocTypeUndefined:i(()=>({type:"NAME",name:"undefined"}),"JsdocTypeUndefined"),JsdocTypeAny:i(()=>({type:"ANY"}),"JsdocTypeAny"),JsdocTypeFunction:i((l,h)=>{const b=Nt(l),x={type:l.arrow?"ARROW":"FUNCTION",params:b.params.map(F=>{if(F.type==="JsdocTypeKeyValue"){if(F.right===void 0)throw new Error("Function parameter without ':' is not expected to be 'KEY_VALUE'");return{type:"NAMED_PARAMETER",name:F.key,typeName:h(F.right)}}else return h(F)}),new:null,returns:null};return b.this!==void 0?x.this=h(b.this):l.arrow||(x.this=null),b.new!==void 0&&(x.new=h(b.new)),l.returnType!==void 0&&(x.returns=h(l.returnType)),x},"JsdocTypeFunction"),JsdocTypeGeneric:i((l,h)=>{const b={type:"GENERIC",subject:h(l.left),objects:l.elements.map(h),meta:{syntax:l.meta.brackets==="square"?"SQUARE_BRACKET":l.meta.dot?"ANGLE_BRACKET_WITH_DOT":"ANGLE_BRACKET"}};return l.meta.brackets==="square"&&l.elements[0].type==="JsdocTypeFunction"&&!l.elements[0].parenthesis&&(b.objects[0]={type:"NAME",name:"function"}),b},"JsdocTypeGeneric"),JsdocTypeObjectField:i((l,h)=>{if(typeof l.key!="string")throw new Error("Index signatures and mapped types are not supported");if(l.right===void 0)return{type:"RECORD_ENTRY",key:l.key,quoteStyle:st(l.meta.quote),value:null,readonly:!1};let b=h(l.right);return l.optional&&(b={type:"OPTIONAL",value:b,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:l.key.toString(),quoteStyle:st(l.meta.quote),value:b,readonly:!1}},"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:i(()=>{throw new Error("Keys may not be typed in jsdoctypeparser.")},"JsdocTypeJsdocObjectField"),JsdocTypeKeyValue:i((l,h)=>{if(l.right===void 0)return{type:"RECORD_ENTRY",key:l.key,quoteStyle:"none",value:null,readonly:!1};let b=h(l.right);return l.optional&&(b={type:"OPTIONAL",value:b,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:l.key,quoteStyle:"none",value:b,readonly:!1}},"JsdocTypeKeyValue"),JsdocTypeObject:i((l,h)=>{const b=[];for(const x of l.elements)(x.type==="JsdocTypeObjectField"||x.type==="JsdocTypeJsdocObjectField")&&b.push(h(x));return{type:"RECORD",entries:b}},"JsdocTypeObject"),JsdocTypeSpecialNamePath:i(l=>{if(l.specialType!=="module")throw new Error(`jsdoctypeparser does not support type ${l.specialType} at this point.`);return{type:"MODULE",value:{type:"FILE_PATH",quoteStyle:st(l.meta.quote),path:l.value}}},"JsdocTypeSpecialNamePath"),JsdocTypeNamePath:i((l,h)=>{let b=!1,x,F;l.right.type==="JsdocTypeSpecialNamePath"&&l.right.specialType==="event"?(b=!0,x=l.right.value,F=st(l.right.meta.quote)):(x=l.right.value,F=st(l.right.meta.quote));const z={type:oi(l.pathType),owner:h(l.left),name:x,quoteStyle:F,hasEventPrefix:b};if(z.owner.type==="MODULE"){const Z=z.owner;return z.owner=z.owner.value,Z.value=z,Z}else return z},"JsdocTypeNamePath"),JsdocTypeUnion:i((l,h)=>cr("UNION",l.elements.map(h)),"JsdocTypeUnion"),JsdocTypeParenthesis:i((l,h)=>({type:"PARENTHESIS",value:h(k(l.element))}),"JsdocTypeParenthesis"),JsdocTypeNull:i(()=>({type:"NAME",name:"null"}),"JsdocTypeNull"),JsdocTypeUnknown:i(()=>({type:"UNKNOWN"}),"JsdocTypeUnknown"),JsdocTypeStringValue:i(l=>({type:"STRING_VALUE",quoteStyle:st(l.meta.quote),string:l.value}),"JsdocTypeStringValue"),JsdocTypeIntersection:i((l,h)=>cr("INTERSECTION",l.elements.map(h)),"JsdocTypeIntersection"),JsdocTypeNumber:i(l=>({type:"NUMBER_VALUE",number:l.value.toString()}),"JsdocTypeNumber"),JsdocTypeSymbol:le,JsdocTypeProperty:le,JsdocTypePredicate:le,JsdocTypeMappedType:le,JsdocTypeIndexSignature:le,JsdocTypeAsserts:le,JsdocTypeReadonlyArray:le,JsdocTypeAssertsPlain:le,JsdocTypeConditional:le,JsdocTypeTypeParameter:le};function ii(l){return Y(jc,l)}i(ii,"jtpTransform");function si(){return{JsdocTypeIntersection:i((l,h)=>({type:"JsdocTypeIntersection",elements:l.elements.map(h)}),"JsdocTypeIntersection"),JsdocTypeGeneric:i((l,h)=>({type:"JsdocTypeGeneric",left:h(l.left),elements:l.elements.map(h),meta:{dot:l.meta.dot,brackets:l.meta.brackets}}),"JsdocTypeGeneric"),JsdocTypeNullable:i(l=>l,"JsdocTypeNullable"),JsdocTypeUnion:i((l,h)=>({type:"JsdocTypeUnion",elements:l.elements.map(h)}),"JsdocTypeUnion"),JsdocTypeUnknown:i(l=>l,"JsdocTypeUnknown"),JsdocTypeUndefined:i(l=>l,"JsdocTypeUndefined"),JsdocTypeTypeof:i((l,h)=>({type:"JsdocTypeTypeof",element:h(l.element)}),"JsdocTypeTypeof"),JsdocTypeSymbol:i((l,h)=>{const b={type:"JsdocTypeSymbol",value:l.value};return l.element!==void 0&&(b.element=h(l.element)),b},"JsdocTypeSymbol"),JsdocTypeOptional:i((l,h)=>({type:"JsdocTypeOptional",element:h(l.element),meta:{position:l.meta.position}}),"JsdocTypeOptional"),JsdocTypeObject:i((l,h)=>({type:"JsdocTypeObject",meta:{separator:"comma"},elements:l.elements.map(h)}),"JsdocTypeObject"),JsdocTypeNumber:i(l=>l,"JsdocTypeNumber"),JsdocTypeNull:i(l=>l,"JsdocTypeNull"),JsdocTypeNotNullable:i((l,h)=>({type:"JsdocTypeNotNullable",element:h(l.element),meta:{position:l.meta.position}}),"JsdocTypeNotNullable"),JsdocTypeSpecialNamePath:i(l=>l,"JsdocTypeSpecialNamePath"),JsdocTypeObjectField:i((l,h)=>({type:"JsdocTypeObjectField",key:l.key,right:l.right===void 0?void 0:h(l.right),optional:l.optional,readonly:l.readonly,meta:l.meta}),"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:i((l,h)=>({type:"JsdocTypeJsdocObjectField",left:h(l.left),right:h(l.right)}),"JsdocTypeJsdocObjectField"),JsdocTypeKeyValue:i((l,h)=>({type:"JsdocTypeKeyValue",key:l.key,right:l.right===void 0?void 0:h(l.right),optional:l.optional,variadic:l.variadic}),"JsdocTypeKeyValue"),JsdocTypeImport:i((l,h)=>({type:"JsdocTypeImport",element:h(l.element)}),"JsdocTypeImport"),JsdocTypeAny:i(l=>l,"JsdocTypeAny"),JsdocTypeStringValue:i(l=>l,"JsdocTypeStringValue"),JsdocTypeNamePath:i(l=>l,"JsdocTypeNamePath"),JsdocTypeVariadic:i((l,h)=>{const b={type:"JsdocTypeVariadic",meta:{position:l.meta.position,squareBrackets:l.meta.squareBrackets}};return l.element!==void 0&&(b.element=h(l.element)),b},"JsdocTypeVariadic"),JsdocTypeTuple:i((l,h)=>({type:"JsdocTypeTuple",elements:l.elements.map(h)}),"JsdocTypeTuple"),JsdocTypeName:i(l=>l,"JsdocTypeName"),JsdocTypeFunction:i((l,h)=>{const b={type:"JsdocTypeFunction",arrow:l.arrow,parameters:l.parameters.map(h),constructor:l.constructor,parenthesis:l.parenthesis};return l.returnType!==void 0&&(b.returnType=h(l.returnType)),b},"JsdocTypeFunction"),JsdocTypeKeyof:i((l,h)=>({type:"JsdocTypeKeyof",element:h(l.element)}),"JsdocTypeKeyof"),JsdocTypeParenthesis:i((l,h)=>({type:"JsdocTypeParenthesis",element:h(l.element)}),"JsdocTypeParenthesis"),JsdocTypeProperty:i(l=>l,"JsdocTypeProperty"),JsdocTypePredicate:i((l,h)=>({type:"JsdocTypePredicate",left:h(l.left),right:h(l.right)}),"JsdocTypePredicate"),JsdocTypeIndexSignature:i((l,h)=>({type:"JsdocTypeIndexSignature",key:l.key,right:h(l.right)}),"JsdocTypeIndexSignature"),JsdocTypeMappedType:i((l,h)=>({type:"JsdocTypeMappedType",key:l.key,right:h(l.right)}),"JsdocTypeMappedType"),JsdocTypeAsserts:i((l,h)=>({type:"JsdocTypeAsserts",left:h(l.left),right:h(l.right)}),"JsdocTypeAsserts"),JsdocTypeReadonlyArray:i((l,h)=>({type:"JsdocTypeReadonlyArray",element:h(l.element)}),"JsdocTypeReadonlyArray"),JsdocTypeAssertsPlain:i((l,h)=>({type:"JsdocTypeAssertsPlain",element:h(l.element)}),"JsdocTypeAssertsPlain"),JsdocTypeConditional:i((l,h)=>({type:"JsdocTypeConditional",checksType:h(l.checksType),extendsType:h(l.extendsType),trueType:h(l.trueType),falseType:h(l.falseType)}),"JsdocTypeConditional"),JsdocTypeTypeParameter:i((l,h)=>({type:"JsdocTypeTypeParameter",name:h(l.name),constraint:l.constraint!==void 0?h(l.constraint):void 0,defaultValue:l.defaultValue!==void 0?h(l.defaultValue):void 0}),"JsdocTypeTypeParameter")}}i(si,"identityTransformRules");const ai={JsdocTypeAny:[],JsdocTypeFunction:["parameters","returnType"],JsdocTypeGeneric:["left","elements"],JsdocTypeImport:[],JsdocTypeIndexSignature:["right"],JsdocTypeIntersection:["elements"],JsdocTypeKeyof:["element"],JsdocTypeKeyValue:["right"],JsdocTypeMappedType:["right"],JsdocTypeName:[],JsdocTypeNamePath:["left","right"],JsdocTypeNotNullable:["element"],JsdocTypeNull:[],JsdocTypeNullable:["element"],JsdocTypeNumber:[],JsdocTypeObject:["elements"],JsdocTypeObjectField:["right"],JsdocTypeJsdocObjectField:["left","right"],JsdocTypeOptional:["element"],JsdocTypeParenthesis:["element"],JsdocTypeSpecialNamePath:[],JsdocTypeStringValue:[],JsdocTypeSymbol:["element"],JsdocTypeTuple:["elements"],JsdocTypeTypeof:["element"],JsdocTypeUndefined:[],JsdocTypeUnion:["elements"],JsdocTypeUnknown:[],JsdocTypeVariadic:["element"],JsdocTypeProperty:[],JsdocTypePredicate:["left","right"],JsdocTypeAsserts:["left","right"],JsdocTypeReadonlyArray:["element"],JsdocTypeAssertsPlain:["element"],JsdocTypeConditional:["checksType","extendsType","trueType","falseType"],JsdocTypeTypeParameter:["name","constraint","defaultValue"]};function ur(l,h,b,x,F){x?.(l,h,b);const z=ai[l.type];for(const Z of z){const ce=l[Z];if(ce!==void 0)if(Array.isArray(ce))for(const _e of ce)ur(_e,l,Z,x,F);else ur(ce,l,Z,x,F)}F?.(l,h,b)}i(ur,"_traverse");function li(l,h,b){ur(l,void 0,void 0,h,b)}i(li,"traverse"),r.catharsisTransform=ni,r.identityTransformRules=si,r.jtpTransform=ii,r.parse=lr,r.stringify=ri,r.stringifyRules=on,r.transform=Y,r.traverse=li,r.tryParse=nn,r.visitorKeys=ai})}}),Kj=$({"../node_modules/browser-dtector/browser-dtector.umd.min.js"(e,t){(function(r,n){typeof e=="object"&&typeof t<"u"?t.exports=n():typeof define=="function"&&define.amd?define(n):(r=typeof globalThis<"u"?globalThis:r||self).BrowserDetector=n()})(e,function(){function r(u,d){for(var p=0;p<d.length;p++){var f=d[p];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(u,(m=f.key,y=void 0,typeof(y=(function(g,T){if(typeof g!="object"||g===null)return g;var E=g[Symbol.toPrimitive];if(E!==void 0){var v=E.call(g,T);if(typeof v!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(T==="string"?String:Number)(g)})(m,"string"))=="symbol"?y:String(y)),f)}var m,y}i(r,"e");var n={chrome:"Google Chrome",brave:"Brave",crios:"Google Chrome",edge:"Microsoft Edge",edg:"Microsoft Edge",edgios:"Microsoft Edge",fennec:"Mozilla Firefox",jsdom:"JsDOM",mozilla:"Mozilla Firefox",fxios:"Mozilla Firefox",msie:"Microsoft Internet Explorer",opera:"Opera",opios:"Opera",opr:"Opera",opt:"Opera",rv:"Microsoft Internet Explorer",safari:"Safari",samsungbrowser:"Samsung Browser",electron:"Electron"},o={android:"Android",androidTablet:"Android Tablet",cros:"Chrome OS",fennec:"Android Tablet",ipad:"IPad",iphone:"IPhone",jsdom:"JsDOM",linux:"Linux",mac:"Macintosh",tablet:"Android Tablet",win:"Windows","windows phone":"Windows Phone",xbox:"Microsoft Xbox"},s=i(function(u){var d=new RegExp("^-?\\d+(?:.\\d{0,".concat(arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1,"})?")),p=Number(u).toString().match(d);return p?p[0]:null},"n"),a=i(function(){return typeof window<"u"?window.navigator:null},"i"),c=(function(){function u(m){var y;(function(g,T){if(!(g instanceof T))throw new TypeError("Cannot call a class as a function")})(this,u),this.userAgent=m||((y=a())===null||y===void 0?void 0:y.userAgent)||null}i(u,"t");var d,p,f;return d=u,p=[{key:"parseUserAgent",value:i(function(m){var y,g,T,E={},v=m||this.userAgent||"",_=v.toLowerCase().replace(/\s\s+/g," "),A=/(edge)\/([\w.]+)/.exec(_)||/(edg)[/]([\w.]+)/.exec(_)||/(opr)[/]([\w.]+)/.exec(_)||/(opt)[/]([\w.]+)/.exec(_)||/(fxios)[/]([\w.]+)/.exec(_)||/(edgios)[/]([\w.]+)/.exec(_)||/(jsdom)[/]([\w.]+)/.exec(_)||/(samsungbrowser)[/]([\w.]+)/.exec(_)||/(electron)[/]([\w.]+)/.exec(_)||/(chrome)[/]([\w.]+)/.exec(_)||/(crios)[/]([\w.]+)/.exec(_)||/(opios)[/]([\w.]+)/.exec(_)||/(version)(applewebkit)[/]([\w.]+).*(safari)[/]([\w.]+)/.exec(_)||/(webkit)[/]([\w.]+).*(version)[/]([\w.]+).*(safari)[/]([\w.]+)/.exec(_)||/(applewebkit)[/]([\w.]+).*(safari)[/]([\w.]+)/.exec(_)||/(webkit)[/]([\w.]+)/.exec(_)||/(opera)(?:.*version|)[/]([\w.]+)/.exec(_)||/(msie) ([\w.]+)/.exec(_)||/(fennec)[/]([\w.]+)/.exec(_)||_.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(_)||_.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(_)||[],N=/(ipad)/.exec(_)||/(ipod)/.exec(_)||/(iphone)/.exec(_)||/(jsdom)/.exec(_)||/(windows phone)/.exec(_)||/(xbox)/.exec(_)||/(win)/.exec(_)||/(tablet)/.exec(_)||/(android)/.test(_)&&/(mobile)/.test(_)===!1&&["androidTablet"]||/(android)/.exec(_)||/(mac)/.exec(_)||/(linux)/.exec(_)||/(cros)/.exec(_)||[],j=A[5]||A[3]||A[1]||null,C=N[0]||null,R=A[4]||A[2]||null,w=a();j==="chrome"&&typeof(w==null||(y=w.brave)===null||y===void 0?void 0:y.isBrave)=="function"&&(j="brave"),j&&(E[j]=!0),C&&(E[C]=!0);var S=!!(E.tablet||E.android||E.androidTablet),k=!!(E.ipad||E.tablet||E.androidTablet),I=!!(E.android||E.androidTablet||E.tablet||E.ipad||E.ipod||E.iphone||E["windows phone"]),V=!!(E.cros||E.mac||E.linux||E.win),H=!!(E.brave||E.chrome||E.crios||E.opr||E.safari||E.edg||E.electron),P=!!(E.msie||E.rv);return{name:(g=n[j])!==null&&g!==void 0?g:null,platform:(T=o[C])!==null&&T!==void 0?T:null,userAgent:v,version:R,shortVersion:R?s(parseFloat(R),2):null,isAndroid:S,isTablet:k,isMobile:I,isDesktop:V,isWebkit:H,isIE:P}},"value")},{key:"getBrowserInfo",value:i(function(){var m=this.parseUserAgent();return{name:m.name,platform:m.platform,userAgent:m.userAgent,version:m.version,shortVersion:m.shortVersion}},"value")}],f=[{key:"VERSION",get:i(function(){return"3.4.0"},"get")}],p&&r(d.prototype,p),f&&r(d,f),Object.defineProperty(d,"prototype",{writable:!1}),u})();return c})}}),fp={};Et(fp,{ARGTYPES_INFO_REQUEST:()=>vv,ARGTYPES_INFO_RESPONSE:()=>fu,CHANNEL_CREATED:()=>Xj,CHANNEL_WS_DISCONNECT:()=>Zb,CONFIG_ERROR:()=>ev,CREATE_NEW_STORYFILE_REQUEST:()=>Qj,CREATE_NEW_STORYFILE_RESPONSE:()=>Zj,CURRENT_STORY_WAS_SET:()=>uu,DOCS_PREPARED:()=>tv,DOCS_RENDERED:()=>mp,FILE_COMPONENT_SEARCH_REQUEST:()=>ek,FILE_COMPONENT_SEARCH_RESPONSE:()=>tk,FORCE_REMOUNT:()=>ia,FORCE_RE_RENDER:()=>yp,GLOBALS_UPDATED:()=>Fi,NAVIGATE_URL:()=>rk,OPEN_IN_EDITOR_REQUEST:()=>Ek,OPEN_IN_EDITOR_RESPONSE:()=>Tk,PLAY_FUNCTION_THREW_EXCEPTION:()=>rv,PRELOAD_ENTRIES:()=>ov,PREVIEW_BUILDER_PROGRESS:()=>nk,PREVIEW_INITIALIZED:()=>iv,PREVIEW_KEYDOWN:()=>sv,REGISTER_SUBSCRIPTION:()=>ok,REQUEST_WHATS_NEW_DATA:()=>hk,RESET_STORY_ARGS:()=>gp,RESULT_WHATS_NEW_DATA:()=>mk,SAVE_STORY_REQUEST:()=>bk,SAVE_STORY_RESPONSE:()=>vk,SELECT_STORY:()=>ik,SET_CONFIG:()=>sk,SET_CURRENT_STORY:()=>bp,SET_FILTER:()=>ak,SET_GLOBALS:()=>av,SET_INDEX:()=>lk,SET_STORIES:()=>ck,SET_WHATS_NEW_CACHE:()=>yk,SHARED_STATE_CHANGED:()=>uk,SHARED_STATE_SET:()=>dk,STORIES_COLLAPSE_ALL:()=>pk,STORIES_EXPAND_ALL:()=>fk,STORY_ARGS_UPDATED:()=>lv,STORY_CHANGED:()=>cv,STORY_ERRORED:()=>uv,STORY_FINISHED:()=>pu,STORY_HOT_UPDATED:()=>yv,STORY_INDEX_INVALIDATED:()=>dv,STORY_MISSING:()=>du,STORY_PREPARED:()=>pv,STORY_RENDERED:()=>sa,STORY_RENDER_PHASE_CHANGED:()=>Tn,STORY_SPECIFIED:()=>fv,STORY_THREW_EXCEPTION:()=>hv,STORY_UNCHANGED:()=>mv,TELEMETRY_ERROR:()=>bv,TOGGLE_WHATS_NEW_NOTIFICATIONS:()=>gk,UNHANDLED_ERRORS_WHILE_PLAYING:()=>nv,UPDATE_GLOBALS:()=>vp,UPDATE_QUERY_PARAMS:()=>gv,UPDATE_STORY_ARGS:()=>Ep,default:()=>Yj});var hp=(e=>(e.CHANNEL_WS_DISCONNECT="channelWSDisconnect",e.CHANNEL_CREATED="channelCreated",e.CONFIG_ERROR="configError",e.STORY_INDEX_INVALIDATED="storyIndexInvalidated",e.STORY_SPECIFIED="storySpecified",e.SET_CONFIG="setConfig",e.SET_STORIES="setStories",e.SET_INDEX="setIndex",e.SET_CURRENT_STORY="setCurrentStory",e.CURRENT_STORY_WAS_SET="currentStoryWasSet",e.FORCE_RE_RENDER="forceReRender",e.FORCE_REMOUNT="forceRemount",e.PRELOAD_ENTRIES="preloadStories",e.STORY_PREPARED="storyPrepared",e.DOCS_PREPARED="docsPrepared",e.STORY_CHANGED="storyChanged",e.STORY_UNCHANGED="storyUnchanged",e.STORY_RENDERED="storyRendered",e.STORY_FINISHED="storyFinished",e.STORY_MISSING="storyMissing",e.STORY_ERRORED="storyErrored",e.STORY_THREW_EXCEPTION="storyThrewException",e.STORY_RENDER_PHASE_CHANGED="storyRenderPhaseChanged",e.STORY_HOT_UPDATED="storyHotUpdated",e.PLAY_FUNCTION_THREW_EXCEPTION="playFunctionThrewException",e.UNHANDLED_ERRORS_WHILE_PLAYING="unhandledErrorsWhilePlaying",e.UPDATE_STORY_ARGS="updateStoryArgs",e.STORY_ARGS_UPDATED="storyArgsUpdated",e.RESET_STORY_ARGS="resetStoryArgs",e.SET_FILTER="setFilter",e.SET_GLOBALS="setGlobals",e.UPDATE_GLOBALS="updateGlobals",e.GLOBALS_UPDATED="globalsUpdated",e.REGISTER_SUBSCRIPTION="registerSubscription",e.PREVIEW_INITIALIZED="previewInitialized",e.PREVIEW_KEYDOWN="previewKeydown",e.PREVIEW_BUILDER_PROGRESS="preview_builder_progress",e.SELECT_STORY="selectStory",e.STORIES_COLLAPSE_ALL="storiesCollapseAll",e.STORIES_EXPAND_ALL="storiesExpandAll",e.DOCS_RENDERED="docsRendered",e.SHARED_STATE_CHANGED="sharedStateChanged",e.SHARED_STATE_SET="sharedStateSet",e.NAVIGATE_URL="navigateUrl",e.UPDATE_QUERY_PARAMS="updateQueryParams",e.REQUEST_WHATS_NEW_DATA="requestWhatsNewData",e.RESULT_WHATS_NEW_DATA="resultWhatsNewData",e.SET_WHATS_NEW_CACHE="setWhatsNewCache",e.TOGGLE_WHATS_NEW_NOTIFICATIONS="toggleWhatsNewNotifications",e.TELEMETRY_ERROR="telemetryError",e.FILE_COMPONENT_SEARCH_REQUEST="fileComponentSearchRequest",e.FILE_COMPONENT_SEARCH_RESPONSE="fileComponentSearchResponse",e.SAVE_STORY_REQUEST="saveStoryRequest",e.SAVE_STORY_RESPONSE="saveStoryResponse",e.ARGTYPES_INFO_REQUEST="argtypesInfoRequest",e.ARGTYPES_INFO_RESPONSE="argtypesInfoResponse",e.CREATE_NEW_STORYFILE_REQUEST="createNewStoryfileRequest",e.CREATE_NEW_STORYFILE_RESPONSE="createNewStoryfileResponse",e.OPEN_IN_EDITOR_REQUEST="openInEditorRequest",e.OPEN_IN_EDITOR_RESPONSE="openInEditorResponse",e))(hp||{}),Yj=hp,{CHANNEL_WS_DISCONNECT:Zb,CHANNEL_CREATED:Xj,CONFIG_ERROR:ev,CREATE_NEW_STORYFILE_REQUEST:Qj,CREATE_NEW_STORYFILE_RESPONSE:Zj,CURRENT_STORY_WAS_SET:uu,DOCS_PREPARED:tv,DOCS_RENDERED:mp,FILE_COMPONENT_SEARCH_REQUEST:ek,FILE_COMPONENT_SEARCH_RESPONSE:tk,FORCE_RE_RENDER:yp,FORCE_REMOUNT:ia,GLOBALS_UPDATED:Fi,NAVIGATE_URL:rk,PLAY_FUNCTION_THREW_EXCEPTION:rv,UNHANDLED_ERRORS_WHILE_PLAYING:nv,PRELOAD_ENTRIES:ov,PREVIEW_INITIALIZED:iv,PREVIEW_BUILDER_PROGRESS:nk,PREVIEW_KEYDOWN:sv,REGISTER_SUBSCRIPTION:ok,RESET_STORY_ARGS:gp,SELECT_STORY:ik,SET_CONFIG:sk,SET_CURRENT_STORY:bp,SET_FILTER:ak,SET_GLOBALS:av,SET_INDEX:lk,SET_STORIES:ck,SHARED_STATE_CHANGED:uk,SHARED_STATE_SET:dk,STORIES_COLLAPSE_ALL:pk,STORIES_EXPAND_ALL:fk,STORY_ARGS_UPDATED:lv,STORY_CHANGED:cv,STORY_ERRORED:uv,STORY_INDEX_INVALIDATED:dv,STORY_MISSING:du,STORY_PREPARED:pv,STORY_RENDER_PHASE_CHANGED:Tn,STORY_RENDERED:sa,STORY_FINISHED:pu,STORY_SPECIFIED:fv,STORY_THREW_EXCEPTION:hv,STORY_UNCHANGED:mv,STORY_HOT_UPDATED:yv,UPDATE_GLOBALS:vp,UPDATE_QUERY_PARAMS:gv,UPDATE_STORY_ARGS:Ep,REQUEST_WHATS_NEW_DATA:hk,RESULT_WHATS_NEW_DATA:mk,SET_WHATS_NEW_CACHE:yk,TOGGLE_WHATS_NEW_NOTIFICATIONS:gk,TELEMETRY_ERROR:bv,SAVE_STORY_REQUEST:bk,SAVE_STORY_RESPONSE:vk,ARGTYPES_INFO_REQUEST:vv,ARGTYPES_INFO_RESPONSE:fu,OPEN_IN_EDITOR_REQUEST:Ek,OPEN_IN_EDITOR_RESPONSE:Tk}=hp,Ev={};Et(Ev,{global:()=>te});var te=(()=>{let e;return typeof window<"u"?e=window:typeof globalThis<"u"?e=globalThis:typeof global<"u"?e=global:typeof self<"u"?e=self:e={},e})(),Tv={"@storybook/global":"__STORYBOOK_MODULE_GLOBAL__","storybook/test":"__STORYBOOK_MODULE_TEST__","storybook/actions":"__STORYBOOK_MODULE_ACTIONS__","storybook/preview-api":"__STORYBOOK_MODULE_PREVIEW_API__","storybook/internal/channels":"__STORYBOOK_MODULE_CHANNELS__","storybook/internal/client-logger":"__STORYBOOK_MODULE_CLIENT_LOGGER__","storybook/internal/core-events":"__STORYBOOK_MODULE_CORE_EVENTS__","storybook/internal/preview-errors":"__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__","storybook/internal/types":"__STORYBOOK_MODULE_TYPES__","storybook/internal/preview-api":"__STORYBOOK_MODULE_PREVIEW_API__"},wk=Object.keys(Tv),wv={};Et(wv,{Channel:()=>nl,HEARTBEAT_INTERVAL:()=>ME,HEARTBEAT_MAX_LATENCY:()=>qE,PostMessageTransport:()=>IE,WebsocketTransport:()=>kE,createBrowserChannel:()=>DE,default:()=>zL});function ve(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Array.from(typeof e=="string"?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var o=n.reduce(function(c,u){var d=u.match(/\n([\t ]+|(?!\s).)/g);return d?c.concat(d.map(function(p){var f,m;return(m=(f=p.match(/[\t ]/g))===null||f===void 0?void 0:f.length)!==null&&m!==void 0?m:0})):c},[]);if(o.length){var s=new RegExp(`
|
|
18
|
+
[ ]{`+Math.min.apply(Math,o)+"}","g");n=n.map(function(c){return c.replace(s,`
|
|
19
|
+
`)})}n[0]=n[0].replace(/^\r?\n/,"");var a=n[0];return t.forEach(function(c,u){var d=a.match(/(?:^|\n)( *)$/),p=d?d[1]:"",f=c;typeof c=="string"&&c.includes(`
|
|
20
|
+
`)&&(f=String(c).split(`
|
|
21
|
+
`).map(function(m,y){return y===0?m:""+p+m}).join(`
|
|
22
|
+
`)),a+=f+n[u+1]}),a}i(ve,"dedent");var Fy=new Map,_k="UNIVERSAL_STORE:",It={PENDING:"PENDING",RESOLVED:"RESOLVED",REJECTED:"REJECTED"},Kr=class fe{constructor(t,r){if(this.debugging=!1,this.listeners=new Map([["*",new Set]]),this.getState=i(()=>(this.debug("getState",{state:this.state}),this.state),"getState"),this.subscribe=i((n,o)=>{const s=typeof n=="function",a=s?"*":n,c=s?n:o;if(this.debug("subscribe",{eventType:a,listener:c}),!c)throw new TypeError(`Missing first subscribe argument, or second if first is the event type, when subscribing to a UniversalStore with id '${this.id}'`);return this.listeners.has(a)||this.listeners.set(a,new Set),this.listeners.get(a).add(c),()=>{this.debug("unsubscribe",{eventType:a,listener:c}),this.listeners.has(a)&&(this.listeners.get(a).delete(c),this.listeners.get(a)?.size===0&&this.listeners.delete(a))}},"subscribe"),this.send=i(n=>{if(this.debug("send",{event:n}),this.status!==fe.Status.READY)throw new TypeError(ve`Cannot send event before store is ready. You can get the current status with store.status,
|
|
23
|
+
or await store.readyPromise to wait for the store to be ready before sending events.
|
|
24
|
+
${JSON.stringify({event:n,id:this.id,actor:this.actor,environment:this.environment},null,2)}`);this.emitToListeners(n,{actor:this.actor}),this.emitToChannel(n,{actor:this.actor})},"send"),this.debugging=t.debug??!1,!fe.isInternalConstructing)throw new TypeError("UniversalStore is not constructable - use UniversalStore.create() instead");if(fe.isInternalConstructing=!1,this.id=t.id,this.actorId=Date.now().toString(36)+Math.random().toString(36).substring(2),this.actorType=t.leader?fe.ActorType.LEADER:fe.ActorType.FOLLOWER,this.state=t.initialState,this.channelEventName=`${_k}${this.id}`,this.debug("constructor",{options:t,environmentOverrides:r,channelEventName:this.channelEventName}),this.actor.type===fe.ActorType.LEADER)this.syncing={state:It.RESOLVED,promise:Promise.resolve()};else{let n,o;const s=new Promise((a,c)=>{n=i(()=>{this.syncing.state===It.PENDING&&(this.syncing.state=It.RESOLVED,a())},"syncingResolve"),o=i(u=>{this.syncing.state===It.PENDING&&(this.syncing.state=It.REJECTED,c(u))},"syncingReject")});this.syncing={state:It.PENDING,promise:s,resolve:n,reject:o}}this.getState=this.getState.bind(this),this.setState=this.setState.bind(this),this.subscribe=this.subscribe.bind(this),this.onStateChange=this.onStateChange.bind(this),this.send=this.send.bind(this),this.emitToChannel=this.emitToChannel.bind(this),this.prepareThis=this.prepareThis.bind(this),this.emitToListeners=this.emitToListeners.bind(this),this.handleChannelEvents=this.handleChannelEvents.bind(this),this.debug=this.debug.bind(this),this.channel=r?.channel??fe.preparation.channel,this.environment=r?.environment??fe.preparation.environment,this.channel&&this.environment?(fe.preparation.resolve({channel:this.channel,environment:this.environment}),this.prepareThis({channel:this.channel,environment:this.environment})):fe.preparation.promise.then(this.prepareThis)}static setupPreparationPromise(){let t,r;const n=new Promise((o,s)=>{t=i(a=>{o(a)},"resolveRef"),r=i((...a)=>{s(a)},"rejectRef")});fe.preparation={resolve:t,reject:r,promise:n}}get actor(){return Object.freeze({id:this.actorId,type:this.actorType,environment:this.environment??fe.Environment.UNKNOWN})}get status(){if(!this.channel||!this.environment)return fe.Status.UNPREPARED;switch(this.syncing?.state){case It.PENDING:case void 0:return fe.Status.SYNCING;case It.REJECTED:return fe.Status.ERROR;case It.RESOLVED:default:return fe.Status.READY}}untilReady(){return Promise.all([fe.preparation.promise,this.syncing?.promise])}static create(t){if(!t||typeof t?.id!="string")throw new TypeError("id is required and must be a string, when creating a UniversalStore");t.debug&&console.debug(ve`[UniversalStore]
|
|
25
|
+
create`,{options:t});const r=Fy.get(t.id);if(r)return console.warn(ve`UniversalStore with id "${t.id}" already exists in this environment, re-using existing.
|
|
26
|
+
You should reuse the existing instance instead of trying to create a new one.`),r;fe.isInternalConstructing=!0;const n=new fe(t);return Fy.set(t.id,n),n}static __prepare(t,r){fe.preparation.channel=t,fe.preparation.environment=r,fe.preparation.resolve({channel:t,environment:r})}setState(t){const r=this.state,n=typeof t=="function"?t(r):t;if(this.debug("setState",{newState:n,previousState:r,updater:t}),this.status!==fe.Status.READY)throw new TypeError(ve`Cannot set state before store is ready. You can get the current status with store.status,
|
|
27
|
+
or await store.readyPromise to wait for the store to be ready before sending events.
|
|
28
|
+
${JSON.stringify({newState:n,id:this.id,actor:this.actor,environment:this.environment},null,2)}`);this.state=n;const o={type:fe.InternalEventType.SET_STATE,payload:{state:n,previousState:r}};this.emitToChannel(o,{actor:this.actor}),this.emitToListeners(o,{actor:this.actor})}onStateChange(t){return this.debug("onStateChange",{listener:t}),this.subscribe(fe.InternalEventType.SET_STATE,({payload:r},n)=>{t(r.state,r.previousState,n)})}emitToChannel(t,r){this.debug("emitToChannel",{event:t,eventInfo:r,channel:!!this.channel}),this.channel?.emit(this.channelEventName,{event:t,eventInfo:r})}prepareThis({channel:t,environment:r}){this.channel=t,this.environment=r,this.debug("prepared",{channel:!!t,environment:r}),this.channel.on(this.channelEventName,this.handleChannelEvents),this.actor.type===fe.ActorType.LEADER?this.emitToChannel({type:fe.InternalEventType.LEADER_CREATED},{actor:this.actor}):(this.emitToChannel({type:fe.InternalEventType.FOLLOWER_CREATED},{actor:this.actor}),this.emitToChannel({type:fe.InternalEventType.EXISTING_STATE_REQUEST},{actor:this.actor}),setTimeout(()=>{this.syncing.reject(new TypeError(`No existing state found for follower with id: '${this.id}'. Make sure a leader with the same id exists before creating a follower.`))},1e3))}emitToListeners(t,r){const n=this.listeners.get(t.type),o=this.listeners.get("*");this.debug("emitToListeners",{event:t,eventInfo:r,eventTypeListeners:n,everythingListeners:o}),[...n??[],...o??[]].forEach(s=>s(t,r))}handleChannelEvents(t){const{event:r,eventInfo:n}=t;if([n.actor.id,n.forwardingActor?.id].includes(this.actor.id)){this.debug("handleChannelEvents: Ignoring event from self",{channelEvent:t});return}else if(this.syncing?.state===It.PENDING&&r.type!==fe.InternalEventType.EXISTING_STATE_RESPONSE){this.debug("handleChannelEvents: Ignoring event while syncing",{channelEvent:t});return}if(this.debug("handleChannelEvents",{channelEvent:t}),this.actor.type===fe.ActorType.LEADER){let o=!0;switch(r.type){case fe.InternalEventType.EXISTING_STATE_REQUEST:o=!1;const s={type:fe.InternalEventType.EXISTING_STATE_RESPONSE,payload:this.state};this.debug("handleChannelEvents: responding to existing state request",{responseEvent:s}),this.emitToChannel(s,{actor:this.actor}),this.emitToListeners(s,{actor:this.actor});break;case fe.InternalEventType.LEADER_CREATED:o=!1,this.syncing.state=It.REJECTED,this.debug("handleChannelEvents: erroring due to second leader being created",{event:r}),console.error(ve`Detected multiple UniversalStore leaders created with the same id "${this.id}".
|
|
29
|
+
Only one leader can exists at a time, your stores are now in an invalid state.
|
|
30
|
+
Leaders detected:
|
|
31
|
+
this: ${JSON.stringify(this.actor,null,2)}
|
|
32
|
+
other: ${JSON.stringify(n.actor,null,2)}`);break}o&&(this.debug("handleChannelEvents: forwarding event",{channelEvent:t}),this.emitToChannel(r,{actor:n.actor,forwardingActor:this.actor}))}if(this.actor.type===fe.ActorType.FOLLOWER)switch(r.type){case fe.InternalEventType.EXISTING_STATE_RESPONSE:if(this.debug("handleChannelEvents: Setting state from leader's existing state response",{event:r}),this.syncing?.state!==It.PENDING)break;this.syncing.resolve?.();const o={type:fe.InternalEventType.SET_STATE,payload:{state:r.payload,previousState:this.state}};this.state=r.payload,this.emitToListeners(o,n);break}switch(r.type){case fe.InternalEventType.SET_STATE:this.debug("handleChannelEvents: Setting state",{event:r}),this.state=r.payload.state;break}this.emitToListeners(r,{actor:n.actor})}debug(t,r){this.debugging&&console.debug(ve`[UniversalStore::${this.id}::${this.environment??fe.Environment.UNKNOWN}]
|
|
33
|
+
${t}`,JSON.stringify({data:r,actor:this.actor,state:this.state,status:this.status},null,2))}static __reset(){fe.preparation.reject(new Error("reset")),fe.setupPreparationPromise(),fe.isInternalConstructing=!1}};i(Kr,"UniversalStore");Kr.ActorType={LEADER:"LEADER",FOLLOWER:"FOLLOWER"};Kr.Environment={SERVER:"SERVER",MANAGER:"MANAGER",PREVIEW:"PREVIEW",UNKNOWN:"UNKNOWN",MOCK:"MOCK"};Kr.InternalEventType={EXISTING_STATE_REQUEST:"__EXISTING_STATE_REQUEST",EXISTING_STATE_RESPONSE:"__EXISTING_STATE_RESPONSE",SET_STATE:"__SET_STATE",LEADER_CREATED:"__LEADER_CREATED",FOLLOWER_CREATED:"__FOLLOWER_CREATED"};Kr.Status={UNPREPARED:"UNPREPARED",SYNCING:"SYNCING",READY:"READY",ERROR:"ERROR"};Kr.isInternalConstructing=!1;Kr.setupPreparationPromise();var kc=Kr,Sk=i(e=>e.transports!==void 0,"isMulti"),Rk=i(()=>Math.random().toString(16).slice(2),"generateRandomId"),_v=class{constructor(t={}){this.sender=Rk(),this.events={},this.data={},this.transports=[],this.isAsync=t.async||!1,Sk(t)?(this.transports=t.transports||[],this.transports.forEach(r=>{r.setHandler(n=>this.handleEvent(n))})):this.transports=t.transport?[t.transport]:[],this.transports.forEach(r=>{r.setHandler(n=>this.handleEvent(n))})}get hasTransport(){return this.transports.length>0}addListener(t,r){this.events[t]=this.events[t]||[],this.events[t].push(r)}emit(t,...r){const n={type:t,args:r,from:this.sender};let o={};r.length>=1&&r[0]&&r[0].options&&(o=r[0].options);const s=i(()=>{this.transports.forEach(a=>{a.send(n,o)}),this.handleEvent(n)},"handler");this.isAsync?setImmediate(s):s()}last(t){return this.data[t]}eventNames(){return Object.keys(this.events)}listenerCount(t){const r=this.listeners(t);return r?r.length:0}listeners(t){return this.events[t]||void 0}once(t,r){const n=this.onceListener(t,r);this.addListener(t,n)}removeAllListeners(t){t?this.events[t]&&delete this.events[t]:this.events={}}removeListener(t,r){const n=this.listeners(t);n&&(this.events[t]=n.filter(o=>o!==r))}on(t,r){this.addListener(t,r)}off(t,r){this.removeListener(t,r)}handleEvent(t){const r=this.listeners(t.type);r&&r.length&&r.forEach(n=>{n.apply(t,t.args)}),this.data[t.type]=t.args}onceListener(t,r){const n=i((...o)=>(this.removeListener(t,n),r(...o)),"onceListener");return n}};i(_v,"Channel");var nl=_v,Sv={};Et(Sv,{deprecate:()=>Tp,logger:()=>De,once:()=>Ue,pretty:()=>Ot});var{LOGLEVEL:Pk}=te,Mr={trace:1,debug:2,info:3,warn:4,error:5,silent:10},Ak=Pk,$n=Mr[Ak]||Mr.info,De={trace:i((e,...t)=>{$n<=Mr.trace&&console.trace(e,...t)},"trace"),debug:i((e,...t)=>{$n<=Mr.debug&&console.debug(e,...t)},"debug"),info:i((e,...t)=>{$n<=Mr.info&&console.info(e,...t)},"info"),warn:i((e,...t)=>{$n<=Mr.warn&&console.warn(e,...t)},"warn"),error:i((e,...t)=>{$n<=Mr.error&&console.error(e,...t)},"error"),log:i((e,...t)=>{$n<Mr.silent&&console.log(e,...t)},"log")},hu=new Set,Ue=i(e=>(t,...r)=>{if(!hu.has(t))return hu.add(t),De[e](t,...r)},"once");Ue.clear=()=>hu.clear();Ue.trace=Ue("trace");Ue.debug=Ue("debug");Ue.info=Ue("info");Ue.warn=Ue("warn");Ue.error=Ue("error");Ue.log=Ue("log");var Tp=Ue("warn"),Ot=i(e=>(...t)=>{const r=[];if(t.length){const n=/<span\s+style=(['"])([^'"]*)\1\s*>/gi,o=/<\/span>/gi;let s;for(r.push(t[0].replace(n,"%c").replace(o,"%c"));s=n.exec(t[0]);)r.push(s[2]),r.push("");for(let a=1;a<t.length;a++)r.push(t[a])}De[e].apply(De,r)},"pretty");Ot.trace=Ot("trace");Ot.debug=Ot("debug");Ot.info=Ot("info");Ot.warn=Ot("warn");Ot.error=Ot("error");var Ok=Object.create,Rv=Object.defineProperty,Ck=Object.getOwnPropertyDescriptor,Pv=Object.getOwnPropertyNames,xk=Object.getPrototypeOf,Nk=Object.prototype.hasOwnProperty,ge=i((e,t)=>i(function(){return t||(0,e[Pv(e)[0]])((t={exports:{}}).exports,t),t.exports},"__require"),"__commonJS"),Ik=i((e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Pv(t))!Nk.call(e,o)&&o!==r&&Rv(e,o,{get:i(()=>t[o],"get"),enumerable:!(n=Ck(t,o))||n.enumerable});return e},"__copyProps"),wp=i((e,t,r)=>(r=e!=null?Ok(xk(e)):{},Ik(t||!e||!e.__esModule?Rv(r,"default",{value:e,enumerable:!0}):r,e)),"__toESM"),Mk=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],qk=["detail"];function Av(e){const t=Mk.filter(r=>e[r]!==void 0).reduce((r,n)=>(r[n]=e[n],r),{});if(e instanceof CustomEvent)for(const r of qk.filter(n=>e[n]!==void 0))t[r]=e[r];return t}i(Av,"extractEventHiddenProperties");var Ov=ge({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),jk=ge({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),kk=ge({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),Dk=ge({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),Lk=ge({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),Fk=ge({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),_p=ge({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),Bk=ge({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),$k=ge({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),Jk=ge({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),Uk=ge({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),Vk=ge({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),Hk=ge({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),Gk=ge({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),zk=ge({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(e,t){t.exports=Number.isNaN||i(function(n){return n!==n},"isNaN2")}}),Wk=ge({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var r=zk();t.exports=i(function(o){return r(o)||o===0?o:o<0?-1:1},"sign")}}),Kk=ge({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),Sp=ge({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var r=Kk();if(r)try{r([],"length")}catch{r=null}t.exports=r}}),Yk=ge({"node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(e,t){var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}t.exports=r}}),Cv=ge({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(e,t){t.exports=i(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var n={},o=Symbol("test"),s=Object(o);if(typeof o=="string"||Object.prototype.toString.call(o)!=="[object Symbol]"||Object.prototype.toString.call(s)!=="[object Symbol]")return!1;var a=42;n[o]=a;for(var c in n)return!1;if(typeof Object.keys=="function"&&Object.keys(n).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(n).length!==0)return!1;var u=Object.getOwnPropertySymbols(n);if(u.length!==1||u[0]!==o||!Object.prototype.propertyIsEnumerable.call(n,o))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var d=Object.getOwnPropertyDescriptor(n,o);if(d.value!==a||d.enumerable!==!0)return!1}return!0},"hasSymbols")}}),xv=ge({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=Cv();t.exports=i(function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()},"hasNativeSymbols")}}),Nv=ge({"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}}),Iv=ge({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){var r=Ov();t.exports=r.getPrototypeOf||null}}),Xk=ge({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(e,t){var r="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,o=Math.max,s="[object Function]",a=i(function(p,f){for(var m=[],y=0;y<p.length;y+=1)m[y]=p[y];for(var g=0;g<f.length;g+=1)m[g+p.length]=f[g];return m},"concatty2"),c=i(function(p,f){for(var m=[],y=f||0,g=0;y<p.length;y+=1,g+=1)m[g]=p[y];return m},"slicy2"),u=i(function(d,p){for(var f="",m=0;m<d.length;m+=1)f+=d[m],m+1<d.length&&(f+=p);return f},"joiny");t.exports=i(function(p){var f=this;if(typeof f!="function"||n.apply(f)!==s)throw new TypeError(r+f);for(var m=c(arguments,1),y,g=i(function(){if(this instanceof y){var A=f.apply(this,a(m,arguments));return Object(A)===A?A:this}return f.apply(p,a(m,arguments))},"binder"),T=o(0,f.length-m.length),E=[],v=0;v<T;v++)E[v]="$"+v;if(y=Function("binder","return function ("+u(E,",")+"){ return binder.apply(this,arguments); }")(g),f.prototype){var _=i(function(){},"Empty2");_.prototype=f.prototype,y.prototype=new _,_.prototype=null}return y},"bind")}}),ol=ge({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var r=Xk();t.exports=Function.prototype.bind||r}}),Rp=ge({"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}}),Mv=ge({"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}}),Qk=ge({"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}}),Zk=ge({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var r=ol(),n=Mv(),o=Rp(),s=Qk();t.exports=s||r.call(o,n)}}),qv=ge({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var r=ol(),n=_p(),o=Rp(),s=Zk();t.exports=i(function(c){if(c.length<1||typeof c[0]!="function")throw new n("a function is required");return s(r,o,c)},"callBindBasic")}}),eD=ge({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var r=qv(),n=Sp(),o;try{o=[].__proto__===Array.prototype}catch(u){if(!u||typeof u!="object"||!("code"in u)||u.code!=="ERR_PROTO_ACCESS")throw u}var s=!!o&&n&&n(Object.prototype,"__proto__"),a=Object,c=a.getPrototypeOf;t.exports=s&&typeof s.get=="function"?r([s.get]):typeof c=="function"?i(function(d){return c(d==null?d:a(d))},"getDunder"):!1}}),tD=ge({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var r=Nv(),n=Iv(),o=eD();t.exports=r?i(function(a){return r(a)},"getProto"):n?i(function(a){if(!a||typeof a!="object"&&typeof a!="function")throw new TypeError("getProto: not an object");return n(a)},"getProto"):o?i(function(a){return o(a)},"getProto"):null}}),jv=ge({"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e,t){var r=Function.prototype.call,n=Object.prototype.hasOwnProperty,o=ol();t.exports=o.call(r,n)}}),rD=ge({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var r,n=Ov(),o=jk(),s=kk(),a=Dk(),c=Lk(),u=Fk(),d=_p(),p=Bk(),f=$k(),m=Jk(),y=Uk(),g=Vk(),T=Hk(),E=Gk(),v=Wk(),_=Function,A=i(function(J){try{return _('"use strict"; return ('+J+").constructor;")()}catch{}},"getEvalledConstructor"),N=Sp(),j=Yk(),C=i(function(){throw new d},"throwTypeError"),R=N?(function(){try{return arguments.callee,C}catch{try{return N(arguments,"callee").get}catch{return C}}})():C,w=xv()(),S=tD(),k=Iv(),I=Nv(),V=Mv(),H=Rp(),P={},L=typeof Uint8Array>"u"||!S?r:S(Uint8Array),B={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":w&&S?S([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":P,"%AsyncGenerator%":P,"%AsyncGeneratorFunction%":P,"%AsyncIteratorPrototype%":P,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":s,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":_,"%GeneratorFunction%":P,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&S?S(S([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!w||!S?r:S(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":N,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":a,"%ReferenceError%":c,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!w||!S?r:S(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&S?S(""[Symbol.iterator]()):r,"%Symbol%":w?Symbol:r,"%SyntaxError%":u,"%ThrowTypeError%":R,"%TypedArray%":L,"%TypeError%":d,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":p,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":H,"%Function.prototype.apply%":V,"%Object.defineProperty%":j,"%Object.getPrototypeOf%":k,"%Math.abs%":f,"%Math.floor%":m,"%Math.max%":y,"%Math.min%":g,"%Math.pow%":T,"%Math.round%":E,"%Math.sign%":v,"%Reflect.getPrototypeOf%":I};if(S)try{null.error}catch(J){D=S(S(J)),B["%Error.prototype%"]=D}var D,K=i(function J(Q){var re;if(Q==="%AsyncFunction%")re=A("async function () {}");else if(Q==="%GeneratorFunction%")re=A("function* () {}");else if(Q==="%AsyncGeneratorFunction%")re=A("async function* () {}");else if(Q==="%AsyncGenerator%"){var oe=J("%AsyncGeneratorFunction%");oe&&(re=oe.prototype)}else if(Q==="%AsyncIteratorPrototype%"){var ne=J("%AsyncGenerator%");ne&&S&&(re=S(ne.prototype))}return B[Q]=re,re},"doEval2"),X={__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"]},ie=ol(),se=jv(),W=ie.call(H,Array.prototype.concat),ae=ie.call(V,Array.prototype.splice),be=ie.call(H,String.prototype.replace),ue=ie.call(H,String.prototype.slice),ee=ie.call(H,RegExp.prototype.exec),Ae=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Oe=/\\(\\)?/g,Ve=i(function(Q){var re=ue(Q,0,1),oe=ue(Q,-1);if(re==="%"&&oe!=="%")throw new u("invalid intrinsic syntax, expected closing `%`");if(oe==="%"&&re!=="%")throw new u("invalid intrinsic syntax, expected opening `%`");var ne=[];return be(Q,Ae,function(de,me,pe,Be){ne[ne.length]=pe?be(Be,Oe,"$1"):me||de}),ne},"stringToPath3"),We=i(function(Q,re){var oe=Q,ne;if(se(X,oe)&&(ne=X[oe],oe="%"+ne[0]+"%"),se(B,oe)){var de=B[oe];if(de===P&&(de=K(oe)),typeof de>"u"&&!re)throw new d("intrinsic "+Q+" exists, but is not available. Please file an issue!");return{alias:ne,name:oe,value:de}}throw new u("intrinsic "+Q+" does not exist!")},"getBaseIntrinsic2");t.exports=i(function(Q,re){if(typeof Q!="string"||Q.length===0)throw new d("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof re!="boolean")throw new d('"allowMissing" argument must be a boolean');if(ee(/^%?[^%]*%?$/,Q)===null)throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var oe=Ve(Q),ne=oe.length>0?oe[0]:"",de=We("%"+ne+"%",re),me=de.name,pe=de.value,Be=!1,ot=de.alias;ot&&(ne=ot[0],ae(oe,W([0,1],ot)));for(var dt=1,Tt=!0;dt<oe.length;dt+=1){var it=oe[dt],pt=ue(it,0,1),ft=ue(it,-1);if((pt==='"'||pt==="'"||pt==="`"||ft==='"'||ft==="'"||ft==="`")&&pt!==ft)throw new u("property names with quotes must have matching quotes");if((it==="constructor"||!Tt)&&(Be=!0),ne+="."+it,me="%"+ne+"%",se(B,me))pe=B[me];else if(pe!=null){if(!(it in pe)){if(!re)throw new d("base intrinsic for "+Q+" exists, but the property is not available.");return}if(N&&dt+1>=oe.length){var ht=N(pe,it);Tt=!!ht,Tt&&"get"in ht&&!("originalValue"in ht.get)?pe=ht.get:pe=pe[it]}else Tt=se(pe,it),pe=pe[it];Tt&&!Be&&(B[me]=pe)}}return pe},"GetIntrinsic")}}),Pp=ge({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var r=rD(),n=qv(),o=n([r("%String.prototype.indexOf%")]);t.exports=i(function(a,c){var u=r(a,!!c);return typeof u=="function"&&o(a,".prototype.")>-1?n([u]):u},"callBoundIntrinsic")}}),nD=ge({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var r=Cv();t.exports=i(function(){return r()&&!!Symbol.toStringTag},"hasToStringTagShams")}}),kv=ge({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var r=Pp(),n=nD()(),o=jv(),s=Sp(),a;n?(c=r("RegExp.prototype.exec"),u={},d=i(function(){throw u},"throwRegexMarker"),p={toString:d,valueOf:d},typeof Symbol.toPrimitive=="symbol"&&(p[Symbol.toPrimitive]=d),a=i(function(g){if(!g||typeof g!="object")return!1;var T=s(g,"lastIndex"),E=T&&o(T,"value");if(!E)return!1;try{c(g,p)}catch(v){return v===u}},"isRegex")):(f=r("Object.prototype.toString"),m="[object RegExp]",a=i(function(g){return!g||typeof g!="object"&&typeof g!="function"?!1:f(g)===m},"isRegex"));var c,u,d,p,f,m;t.exports=a}}),oD=ge({"node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js"(e,t){t.exports=n;var r=Object.prototype.toString;function n(o){if(!o)return!1;var s=r.call(o);return s==="[object Function]"||typeof o=="function"&&s!=="[object RegExp]"||typeof window<"u"&&(o===window.setTimeout||o===window.alert||o===window.confirm||o===window.prompt)}i(n,"isFunction3")}}),iD=ge({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var r=Pp(),n=kv(),o=r("RegExp.prototype.exec"),s=_p();t.exports=i(function(c){if(!n(c))throw new s("`regex` must be a RegExp");return i(function(d){return o(c,d)!==null},"test")},"regexTester")}}),sD=ge({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var r=Pp(),n=r("Object.prototype.toString"),o=xv()(),s=iD();o?(a=r("Symbol.prototype.toString"),c=s(/^Symbol\(.*\)$/),u=i(function(p){return typeof p.valueOf()!="symbol"?!1:c(a(p))},"isRealSymbolObject"),t.exports=i(function(p){if(typeof p=="symbol")return!0;if(!p||typeof p!="object"||n(p)!=="[object Symbol]")return!1;try{return u(p)}catch{return!1}},"isSymbol3")):t.exports=i(function(p){return!1},"isSymbol3");var a,c,u}}),aD=wp(kv()),lD=wp(oD()),cD=wp(sD());function Dv(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}i(Dv,"isObject");var uD=typeof global=="object"&&global&&global.Object===Object&&global,dD=uD,pD=typeof self=="object"&&self&&self.Object===Object&&self,fD=dD||pD||Function("return this")(),Ap=fD,hD=Ap.Symbol,so=hD,Lv=Object.prototype,mD=Lv.hasOwnProperty,yD=Lv.toString,di=so?so.toStringTag:void 0;function Fv(e){var t=mD.call(e,di),r=e[di];try{e[di]=void 0;var n=!0}catch{}var o=yD.call(e);return n&&(t?e[di]=r:delete e[di]),o}i(Fv,"getRawTag");var gD=Fv,bD=Object.prototype,vD=bD.toString;function Bv(e){return vD.call(e)}i(Bv,"objectToString");var ED=Bv,TD="[object Null]",wD="[object Undefined]",By=so?so.toStringTag:void 0;function $v(e){return e==null?e===void 0?wD:TD:By&&By in Object(e)?gD(e):ED(e)}i($v,"baseGetTag");var Jv=$v;function Uv(e){return e!=null&&typeof e=="object"}i(Uv,"isObjectLike");var _D=Uv,SD="[object Symbol]";function Vv(e){return typeof e=="symbol"||_D(e)&&Jv(e)==SD}i(Vv,"isSymbol");var Op=Vv;function Hv(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}i(Hv,"arrayMap");var RD=Hv,PD=Array.isArray,Cp=PD,$y=so?so.prototype:void 0,Jy=$y?$y.toString:void 0;function xp(e){if(typeof e=="string")return e;if(Cp(e))return RD(e,xp)+"";if(Op(e))return Jy?Jy.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}i(xp,"baseToString");var AD=xp;function Gv(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}i(Gv,"isObject2");var zv=Gv,OD="[object AsyncFunction]",CD="[object Function]",xD="[object GeneratorFunction]",ND="[object Proxy]";function Wv(e){if(!zv(e))return!1;var t=Jv(e);return t==CD||t==xD||t==OD||t==ND}i(Wv,"isFunction");var ID=Wv,MD=Ap["__core-js_shared__"],Dc=MD,Uy=(function(){var e=/[^.]+$/.exec(Dc&&Dc.keys&&Dc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function Kv(e){return!!Uy&&Uy in e}i(Kv,"isMasked");var qD=Kv,jD=Function.prototype,kD=jD.toString;function Yv(e){if(e!=null){try{return kD.call(e)}catch{}try{return e+""}catch{}}return""}i(Yv,"toSource");var DD=Yv,LD=/[\\^$.*+?()[\]{}|]/g,FD=/^\[object .+?Constructor\]$/,BD=Function.prototype,$D=Object.prototype,JD=BD.toString,UD=$D.hasOwnProperty,VD=RegExp("^"+JD.call(UD).replace(LD,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Xv(e){if(!zv(e)||qD(e))return!1;var t=ID(e)?VD:FD;return t.test(DD(e))}i(Xv,"baseIsNative");var HD=Xv;function Qv(e,t){return e?.[t]}i(Qv,"getValue");var GD=Qv;function Zv(e,t){var r=GD(e,t);return HD(r)?r:void 0}i(Zv,"getNative");var eE=Zv;function tE(e,t){return e===t||e!==e&&t!==t}i(tE,"eq");var zD=tE,WD=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,KD=/^\w*$/;function rE(e,t){if(Cp(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Op(e)?!0:KD.test(e)||!WD.test(e)||t!=null&&e in Object(t)}i(rE,"isKey");var YD=rE,XD=eE(Object,"create"),Bi=XD;function nE(){this.__data__=Bi?Bi(null):{},this.size=0}i(nE,"hashClear");var QD=nE;function oE(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}i(oE,"hashDelete");var ZD=oE,eL="__lodash_hash_undefined__",tL=Object.prototype,rL=tL.hasOwnProperty;function iE(e){var t=this.__data__;if(Bi){var r=t[e];return r===eL?void 0:r}return rL.call(t,e)?t[e]:void 0}i(iE,"hashGet");var nL=iE,oL=Object.prototype,iL=oL.hasOwnProperty;function sE(e){var t=this.__data__;return Bi?t[e]!==void 0:iL.call(t,e)}i(sE,"hashHas");var sL=sE,aL="__lodash_hash_undefined__";function aE(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Bi&&t===void 0?aL:t,this}i(aE,"hashSet");var lL=aE;function Mn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}i(Mn,"Hash");Mn.prototype.clear=QD;Mn.prototype.delete=ZD;Mn.prototype.get=nL;Mn.prototype.has=sL;Mn.prototype.set=lL;var Vy=Mn;function lE(){this.__data__=[],this.size=0}i(lE,"listCacheClear");var cL=lE;function cE(e,t){for(var r=e.length;r--;)if(zD(e[r][0],t))return r;return-1}i(cE,"assocIndexOf");var il=cE,uL=Array.prototype,dL=uL.splice;function uE(e){var t=this.__data__,r=il(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():dL.call(t,r,1),--this.size,!0}i(uE,"listCacheDelete");var pL=uE;function dE(e){var t=this.__data__,r=il(t,e);return r<0?void 0:t[r][1]}i(dE,"listCacheGet");var fL=dE;function pE(e){return il(this.__data__,e)>-1}i(pE,"listCacheHas");var hL=pE;function fE(e,t){var r=this.__data__,n=il(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}i(fE,"listCacheSet");var mL=fE;function qn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}i(qn,"ListCache");qn.prototype.clear=cL;qn.prototype.delete=pL;qn.prototype.get=fL;qn.prototype.has=hL;qn.prototype.set=mL;var yL=qn,gL=eE(Ap,"Map"),bL=gL;function hE(){this.size=0,this.__data__={hash:new Vy,map:new(bL||yL),string:new Vy}}i(hE,"mapCacheClear");var vL=hE;function mE(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}i(mE,"isKeyable");var EL=mE;function yE(e,t){var r=e.__data__;return EL(t)?r[typeof t=="string"?"string":"hash"]:r.map}i(yE,"getMapData");var sl=yE;function gE(e){var t=sl(this,e).delete(e);return this.size-=t?1:0,t}i(gE,"mapCacheDelete");var TL=gE;function bE(e){return sl(this,e).get(e)}i(bE,"mapCacheGet");var wL=bE;function vE(e){return sl(this,e).has(e)}i(vE,"mapCacheHas");var _L=vE;function EE(e,t){var r=sl(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}i(EE,"mapCacheSet");var SL=EE;function jn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}i(jn,"MapCache");jn.prototype.clear=vL;jn.prototype.delete=TL;jn.prototype.get=wL;jn.prototype.has=_L;jn.prototype.set=SL;var TE=jn,RL="Expected a function";function al(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(RL);var r=i(function(){var n=arguments,o=t?t.apply(this,n):n[0],s=r.cache;if(s.has(o))return s.get(o);var a=e.apply(this,n);return r.cache=s.set(o,a)||s,a},"memoized");return r.cache=new(al.Cache||TE),r}i(al,"memoize");al.Cache=TE;var PL=al,AL=500;function wE(e){var t=PL(e,function(n){return r.size===AL&&r.clear(),n}),r=t.cache;return t}i(wE,"memoizeCapped");var OL=wE,CL=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xL=/\\(\\)?/g,NL=OL(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(CL,function(r,n,o,s){t.push(o?s.replace(xL,"$1"):n||r)}),t}),IL=NL;function _E(e){return e==null?"":AD(e)}i(_E,"toString");var ML=_E;function SE(e,t){return Cp(e)?e:YD(e,t)?[e]:IL(ML(e))}i(SE,"castPath");var qL=SE;function RE(e){if(typeof e=="string"||Op(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}i(RE,"toKey");var jL=RE;function PE(e,t){t=qL(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[jL(t[r++])];return r&&r==n?e:void 0}i(PE,"baseGet");var kL=PE;function AE(e,t,r){var n=e==null?void 0:kL(e,t);return n===void 0?r:n}i(AE,"get");var DL=AE,Np=Dv,LL=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,Ip=i(e=>e.match(/^[\[\{\"\}].*[\]\}\"]$/),"isJSON");function Mp(e){if(!Np(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=Av(t),r=!0),t=Object.keys(t).reduce((n,o)=>{try{t[o]&&t[o].toJSON,n[o]=t[o]}catch{r=!0}return n},{}),r?t:e}i(Mp,"convertUnconventionalData");var FL=i(function(t){let r,n,o,s;return i(function(c,u){try{if(c==="")return s=[],r=new Map([[u,"[]"]]),n=new Map,o=[],u;const d=n.get(this)||this;for(;o.length&&d!==o[0];)o.shift(),s.pop();if(typeof u=="boolean")return u;if(u===void 0)return t.allowUndefined?"_undefined_":void 0;if(u===null)return null;if(typeof u=="number")return u===Number.NEGATIVE_INFINITY?"_-Infinity_":u===Number.POSITIVE_INFINITY?"_Infinity_":Number.isNaN(u)?"_NaN_":u;if(typeof u=="bigint")return`_bigint_${u.toString()}`;if(typeof u=="string")return LL.test(u)?t.allowDate?`_date_${u}`:void 0:u;if((0,aD.default)(u))return t.allowRegExp?`_regexp_${u.flags}|${u.source}`:void 0;if((0,lD.default)(u))return;if((0,cD.default)(u)){if(!t.allowSymbol)return;const f=Symbol.keyFor(u);return f!==void 0?`_gsymbol_${f}`:`_symbol_${u.toString().slice(7,-1)}`}if(o.length>=t.maxDepth)return Array.isArray(u)?`[Array(${u.length})]`:"[Object]";if(u===this)return`_duplicate_${JSON.stringify(s)}`;if(u instanceof Error&&t.allowError)return{__isConvertedError__:!0,errorProperties:{...u.cause?{cause:u.cause}:{},...u,name:u.name,message:u.message,stack:u.stack,"_constructor-name_":u.constructor.name}};if(u?.constructor?.name&&u.constructor.name!=="Object"&&!Array.isArray(u)){const f=r.get(u);if(!f){const m={__isClassInstance__:!0,__className__:u.constructor.name,...Object.getOwnPropertyNames(u).reduce((y,g)=>{try{y[g]=u[g]}catch{}return y},{})};return s.push(c),o.unshift(m),r.set(u,JSON.stringify(s)),u!==m&&n.set(u,m),m}return`_duplicate_${f}`}const p=r.get(u);if(!p){const f=Array.isArray(u)?u:Mp(u);return s.push(c),o.unshift(f),r.set(u,JSON.stringify(s)),u!==f&&n.set(u,f),f}return`_duplicate_${p}`}catch{return}},"replace")},"replacer2"),BL=i(function(t){const r=[];let n;return i(function(s,a){if(s===""&&(n=a,r.forEach(({target:c,container:u,replacement:d})=>{const p=Ip(d)?JSON.parse(d):d.split(".");p.length===0?u[c]=n:u[c]=DL(n,p)})),s==="_constructor-name_")return a;if(Np(a)&&a.__isConvertedError__){const{message:c,...u}=a.errorProperties,d=new Error(c);return Object.assign(d,u),d}if(typeof a=="string"&&a.startsWith("_regexp_")&&t.allowRegExp){const[,c,u]=a.match(/_regexp_([^|]*)\|(.*)/)||[];return new RegExp(u,c)}return typeof a=="string"&&a.startsWith("_date_")&&t.allowDate?new Date(a.replace("_date_","")):typeof a=="string"&&a.startsWith("_duplicate_")?(r.push({target:s,container:this,replacement:a.replace(/^_duplicate_/,"")}),null):typeof a=="string"&&a.startsWith("_symbol_")&&t.allowSymbol?Symbol(a.replace("_symbol_","")):typeof a=="string"&&a.startsWith("_gsymbol_")&&t.allowSymbol?Symbol.for(a.replace("_gsymbol_","")):typeof a=="string"&&a==="_-Infinity_"?Number.NEGATIVE_INFINITY:typeof a=="string"&&a==="_Infinity_"?Number.POSITIVE_INFINITY:typeof a=="string"&&a==="_NaN_"?Number.NaN:typeof a=="string"&&a.startsWith("_bigint_")&&typeof BigInt=="function"?BigInt(a.replace("_bigint_","")):a},"revive")},"reviver2"),OE={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},CE=i((e,t={})=>{const r={...OE,...t};return JSON.stringify(Mp(e),FL(r),t.space)},"stringify"),$L=i(()=>{const e=new Map;return i(function t(r){Np(r)&&Object.entries(r).forEach(([n,o])=>{o==="_undefined_"?r[n]=void 0:e.get(o)||(e.set(o,!0),t(o))}),Array.isArray(r)&&r.forEach((n,o)=>{n==="_undefined_"?(e.set(n,!0),r[o]=void 0):e.get(n)||(e.set(n,!0),t(n))})},"mutateUndefined")},"mutator"),xE=i((e,t={})=>{const r={...OE,...t},n=JSON.parse(e,BL(r));return $L()(n),n},"parse"),JL="Invariant failed";function rr(e,t){if(!e)throw new Error(JL)}i(rr,"invariant");var UL=i(e=>{const t=Array.from(document.querySelectorAll("iframe[data-is-storybook]")),[r,...n]=t.filter(s=>{try{return s.contentWindow?.location.origin===e.source.location.origin&&s.contentWindow?.location.pathname===e.source.location.pathname}catch{}try{return s.contentWindow===e.source}catch{}const a=s.getAttribute("src");let c;try{if(!a)return!1;({origin:c}=new URL(a,document.location.toString()))}catch{return!1}return c===e.origin}),o=r?.getAttribute("src");if(o&&n.length===0){const{protocol:s,host:a,pathname:c}=new URL(o,document.location.toString());return`${s}//${a}${c}`}return n.length>0&&De.error("found multiple candidates for event source"),null},"getEventSourceUrl"),{document:Lc,location:Fc}=te,Hy="storybook-channel",VL={maxDepth:25},NE=class{constructor(t){if(this.config=t,this.connected=!1,this.buffer=[],typeof te?.addEventListener=="function"&&te.addEventListener("message",this.handleEvent.bind(this),!1),t.page!=="manager"&&t.page!=="preview")throw new Error(`postmsg-channel: "config.page" cannot be "${t.page}"`)}setHandler(t){this.handler=(...r)=>{t.apply(this,r),!this.connected&&this.getLocalFrame().length&&(this.flush(),this.connected=!0)}}send(t,r){const{target:n,allowRegExp:o,allowSymbol:s,allowDate:a,allowError:c,allowUndefined:u,maxDepth:d,space:p}=r||{},f=Object.fromEntries(Object.entries({allowRegExp:o,allowSymbol:s,allowDate:a,allowError:c,allowUndefined:u,maxDepth:d,space:p}).filter(([E,v])=>typeof v<"u")),m={...VL,...te.CHANNEL_OPTIONS||{},...f},y=this.getFrames(n),g=new URLSearchParams(Fc?.search||""),T=CE({key:Hy,event:t,refId:g.get("refId")},m);return y.length?(this.buffer.length&&this.flush(),y.forEach(E=>{try{E.postMessage(T,"*")}catch{De.error("sending over postmessage fail")}}),Promise.resolve(null)):new Promise((E,v)=>{this.buffer.push({event:t,resolve:E,reject:v})})}flush(){const{buffer:t}=this;this.buffer=[],t.forEach(r=>{this.send(r.event).then(r.resolve).catch(r.reject)})}getFrames(t){if(this.config.page==="manager"){const n=Array.from(Lc.querySelectorAll("iframe[data-is-storybook][data-is-loaded]")).flatMap(o=>{try{return o.contentWindow&&o.dataset.isStorybook!==void 0&&o.id===t?[o.contentWindow]:[]}catch{return[]}});return n?.length?n:this.getCurrentFrames()}return te&&te.parent&&te.parent!==te.self?[te.parent]:[]}getCurrentFrames(){return this.config.page==="manager"?Array.from(Lc.querySelectorAll('[data-is-storybook="true"]')).flatMap(r=>r.contentWindow?[r.contentWindow]:[]):te&&te.parent?[te.parent]:[]}getLocalFrame(){return this.config.page==="manager"?Array.from(Lc.querySelectorAll("#storybook-preview-iframe")).flatMap(r=>r.contentWindow?[r.contentWindow]:[]):te&&te.parent?[te.parent]:[]}handleEvent(t){try{const{data:r}=t,{key:n,event:o,refId:s}=typeof r=="string"&&Ip(r)?xE(r,te.CHANNEL_OPTIONS||{}):r;if(n===Hy){const a=this.config.page==="manager"?'<span style="color: #37D5D3; background: black"> manager </span>':'<span style="color: #1EA7FD; background: black"> preview </span>',c=Object.values(fp).includes(o.type)?`<span style="color: #FF4785">${o.type}</span>`:`<span style="color: #FFAE00">${o.type}</span>`;if(s&&(o.refId=s),o.source=this.config.page==="preview"?t.origin:UL(t),!o.source){Ot.error(`${a} received ${c} but was unable to determine the source of the event`);return}const u=`${a} received ${c} (${r.length})`;Ot.debug(Fc.origin!==o.source?u:`${u} <span style="color: gray">(on ${Fc.origin} from ${o.source})</span>`,...o.args),rr(this.handler,"ChannelHandler should be set"),this.handler(o)}}catch(r){De.error(r)}}};i(NE,"PostMessageTransport");var IE=NE,{WebSocket:HL}=te,ME=15e3,qE=5e3,jE=class{constructor({url:t,onError:r,page:n}){this.buffer=[],this.isReady=!1,this.isClosed=!1,this.pingTimeout=0,this.socket=new HL(t),this.socket.onopen=()=>{this.isReady=!0,this.heartbeat(),this.flush()},this.socket.onmessage=({data:o})=>{const s=typeof o=="string"&&Ip(o)?xE(o):o;rr(this.handler),this.handler(s),s.type==="ping"&&(this.heartbeat(),this.send({type:"pong"}))},this.socket.onerror=o=>{r&&r(o)},this.socket.onclose=o=>{rr(this.handler),this.handler({type:Zb,args:[{reason:o.reason,code:o.code}],from:n||"preview"}),this.isClosed=!0,clearTimeout(this.pingTimeout)}}heartbeat(){clearTimeout(this.pingTimeout),this.pingTimeout=setTimeout(()=>{this.socket.close(3008,"timeout")},ME+qE)}setHandler(t){this.handler=t}send(t){this.isClosed||(this.isReady?this.sendNow(t):this.sendLater(t))}sendLater(t){this.buffer.push(t)}sendNow(t){const r=CE(t,{maxDepth:15,...te.CHANNEL_OPTIONS});this.socket.send(r)}flush(){const{buffer:t}=this;this.buffer=[],t.forEach(r=>this.send(r))}};i(jE,"WebsocketTransport");var kE=jE,{CONFIG_TYPE:GL}=te,zL=nl;function DE({page:e,extraTransports:t=[]}){const r=[new IE({page:e}),...t];if(GL==="DEVELOPMENT"){const o=window.location.protocol==="http:"?"ws":"wss",{hostname:s,port:a}=window.location,c=`${o}://${s}:${a}/storybook-server-channel`;r.push(new kE({url:c,onError:i(()=>{},"onError"),page:e}))}const n=new nl({transports:r});return kc.__prepare(n,e==="manager"?kc.Environment.MANAGER:kc.Environment.PREVIEW),n}i(DE,"createBrowserChannel");var LE={};Et(LE,{CalledExtractOnStoreError:()=>zE,CalledPreviewMethodBeforeInitializationError:()=>Rt,Category:()=>$E,ElementA11yParameterError:()=>ZL,EmptyIndexError:()=>rT,ImplicitActionsDuringRendering:()=>HE,MdxFileWithNoCsfReferencesError:()=>eT,MissingRenderToCanvasError:()=>KE,MissingStoryAfterHmrError:()=>UE,MissingStoryFromCsfFileError:()=>sT,MountMustBeDestructuredError:()=>qp,NextJsSharpError:()=>KL,NextjsRouterMocksNotAvailable:()=>YL,NoRenderFunctionError:()=>dT,NoStoryMatchError:()=>oT,NoStoryMountedError:()=>fT,StatusTypeIdMismatchError:()=>WL,StoryIndexFetchError:()=>QE,StoryStoreAccessedBeforeInitializationError:()=>lT,UnknownArgTypesError:()=>XL,UnsupportedViewportDimensionError:()=>QL});function mu({code:e,category:t}){const r=String(e).padStart(4,"0");return`SB_${t}_${r}`}i(mu,"parseErrorCode");function yu(e){if(/^(?!.*storybook\.js\.org)|[?&]ref=error\b/.test(e))return e;try{const t=new URL(e);return t.searchParams.set("ref","error"),t.toString()}catch{return e}}i(yu,"appendErrorRef");var FE=class BE extends Error{constructor(t){super(BE.getFullMessage(t)),this.data={},this.fromStorybook=!0,this.category=t.category,this.documentation=t.documentation??!1,this.code=t.code}get fullErrorCode(){return mu({code:this.code,category:this.category})}get name(){const t=this.constructor.name;return`${this.fullErrorCode} (${t})`}static getFullMessage({documentation:t,code:r,category:n,message:o}){let s;return t===!0?s=`https://storybook.js.org/error/${mu({code:r,category:n})}?ref=error`:typeof t=="string"?s=yu(t):Array.isArray(t)&&(s=`
|
|
34
|
+
${t.map(a=>` - ${yu(a)}`).join(`
|
|
35
|
+
`)}`),`${o}${s!=null?`
|
|
36
|
+
|
|
37
|
+
More info: ${s}
|
|
38
|
+
`:""}`}};i(FE,"StorybookError");var ze=FE,$E=(e=>(e.BLOCKS="BLOCKS",e.DOCS_TOOLS="DOCS-TOOLS",e.PREVIEW_CLIENT_LOGGER="PREVIEW_CLIENT-LOGGER",e.PREVIEW_CHANNELS="PREVIEW_CHANNELS",e.PREVIEW_CORE_EVENTS="PREVIEW_CORE-EVENTS",e.PREVIEW_INSTRUMENTER="PREVIEW_INSTRUMENTER",e.PREVIEW_API="PREVIEW_API",e.PREVIEW_REACT_DOM_SHIM="PREVIEW_REACT-DOM-SHIM",e.PREVIEW_ROUTER="PREVIEW_ROUTER",e.PREVIEW_THEMING="PREVIEW_THEMING",e.RENDERER_HTML="RENDERER_HTML",e.RENDERER_PREACT="RENDERER_PREACT",e.RENDERER_REACT="RENDERER_REACT",e.RENDERER_SERVER="RENDERER_SERVER",e.RENDERER_SVELTE="RENDERER_SVELTE",e.RENDERER_VUE="RENDERER_VUE",e.RENDERER_VUE3="RENDERER_VUE3",e.RENDERER_WEB_COMPONENTS="RENDERER_WEB-COMPONENTS",e.FRAMEWORK_NEXTJS="FRAMEWORK_NEXTJS",e.ADDON_VITEST="ADDON_VITEST",e.ADDON_A11Y="ADDON_A11Y",e))($E||{}),JE=class extends ze{constructor(t){super({category:"PREVIEW_API",code:1,message:ve`
|
|
39
|
+
Couldn't find story matching id '${t.storyId}' after HMR.
|
|
40
|
+
- Did you just rename a story?
|
|
41
|
+
- Did you remove it from your CSF file?
|
|
42
|
+
- Are you sure a story with the id '${t.storyId}' exists?
|
|
43
|
+
- Please check the values in the stories field of your main.js config and see if they would match your CSF File.
|
|
44
|
+
- Also check the browser console and terminal for potential error messages.`}),this.data=t}};i(JE,"MissingStoryAfterHmrError");var UE=JE,VE=class extends ze{constructor(t){super({category:"PREVIEW_API",code:2,documentation:"https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#using-implicit-actions-during-rendering-is-deprecated-for-example-in-the-play-function",message:ve`
|
|
45
|
+
We detected that you use an implicit action arg while ${t.phase} of your story.
|
|
46
|
+
${t.deprecated?`
|
|
47
|
+
This is deprecated and won't work in Storybook 8 anymore.
|
|
48
|
+
`:""}
|
|
49
|
+
Please provide an explicit spy to your args like this:
|
|
50
|
+
import { fn } from 'storybook/test';
|
|
51
|
+
...
|
|
52
|
+
args: {
|
|
53
|
+
${t.name}: fn()
|
|
54
|
+
}`}),this.data=t}};i(VE,"ImplicitActionsDuringRendering");var HE=VE,GE=class extends ze{constructor(){super({category:"PREVIEW_API",code:3,message:ve`
|
|
55
|
+
Cannot call \`storyStore.extract()\` without calling \`storyStore.cacheAllCsfFiles()\` first.
|
|
56
|
+
|
|
57
|
+
You probably meant to call \`await preview.extract()\` which does the above for you.`})}};i(GE,"CalledExtractOnStoreError");var zE=GE,WE=class extends ze{constructor(){super({category:"PREVIEW_API",code:4,message:ve`
|
|
58
|
+
Expected your framework's preset to export a \`renderToCanvas\` field.
|
|
59
|
+
|
|
60
|
+
Perhaps it needs to be upgraded for Storybook 7.0?`,documentation:"https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#mainjs-framework-field"})}};i(WE,"MissingRenderToCanvasError");var KE=WE,YE=class extends ze{constructor(t){super({category:"PREVIEW_API",code:5,message:ve`
|
|
61
|
+
Called \`Preview.${t.methodName}()\` before initialization.
|
|
62
|
+
|
|
63
|
+
The preview needs to load the story index before most methods can be called. If you want
|
|
64
|
+
to call \`${t.methodName}\`, try \`await preview.initializationPromise;\` first.
|
|
65
|
+
|
|
66
|
+
If you didn't call the above code, then likely it was called by an addon that needs to
|
|
67
|
+
do the above.`}),this.data=t}};i(YE,"CalledPreviewMethodBeforeInitializationError");var Rt=YE,XE=class extends ze{constructor(t){super({category:"PREVIEW_API",code:6,message:ve`
|
|
68
|
+
Error fetching \`/index.json\`:
|
|
69
|
+
|
|
70
|
+
${t.text}
|
|
71
|
+
|
|
72
|
+
If you are in development, this likely indicates a problem with your Storybook process,
|
|
73
|
+
check the terminal for errors.
|
|
74
|
+
|
|
75
|
+
If you are in a deployed Storybook, there may have been an issue deploying the full Storybook
|
|
76
|
+
build.`}),this.data=t}};i(XE,"StoryIndexFetchError");var QE=XE,ZE=class extends ze{constructor(t){super({category:"PREVIEW_API",code:7,message:ve`
|
|
77
|
+
Tried to render docs entry ${t.storyId} but it is a MDX file that has no CSF
|
|
78
|
+
references, or autodocs for a CSF file that some doesn't refer to itself.
|
|
79
|
+
|
|
80
|
+
This likely is an internal error in Storybook's indexing, or you've attached the
|
|
81
|
+
\`attached-mdx\` tag to an MDX file that is not attached.`}),this.data=t}};i(ZE,"MdxFileWithNoCsfReferencesError");var eT=ZE,tT=class extends ze{constructor(){super({category:"PREVIEW_API",code:8,message:ve`
|
|
82
|
+
Couldn't find any stories in your Storybook.
|
|
83
|
+
|
|
84
|
+
- Please check your stories field of your main.js config: does it match correctly?
|
|
85
|
+
- Also check the browser console and terminal for error messages.`})}};i(tT,"EmptyIndexError");var rT=tT,nT=class extends ze{constructor(t){super({category:"PREVIEW_API",code:9,message:ve`
|
|
86
|
+
Couldn't find story matching '${t.storySpecifier}'.
|
|
87
|
+
|
|
88
|
+
- Are you sure a story with that id exists?
|
|
89
|
+
- Please check your stories field of your main.js config.
|
|
90
|
+
- Also check the browser console and terminal for error messages.`}),this.data=t}};i(nT,"NoStoryMatchError");var oT=nT,iT=class extends ze{constructor(t){super({category:"PREVIEW_API",code:10,message:ve`
|
|
91
|
+
Couldn't find story matching id '${t.storyId}' after importing a CSF file.
|
|
92
|
+
|
|
93
|
+
The file was indexed as if the story was there, but then after importing the file in the browser
|
|
94
|
+
we didn't find the story. Possible reasons:
|
|
95
|
+
- You are using a custom story indexer that is misbehaving.
|
|
96
|
+
- You have a custom file loader that is removing or renaming exports.
|
|
97
|
+
|
|
98
|
+
Please check your browser console and terminal for errors that may explain the issue.`}),this.data=t}};i(iT,"MissingStoryFromCsfFileError");var sT=iT,aT=class extends ze{constructor(){super({category:"PREVIEW_API",code:11,message:ve`
|
|
99
|
+
Cannot access the Story Store until the index is ready.
|
|
100
|
+
|
|
101
|
+
It is not recommended to use methods directly on the Story Store anyway, in Storybook 9 we will
|
|
102
|
+
remove access to the store entirely`})}};i(aT,"StoryStoreAccessedBeforeInitializationError");var lT=aT,cT=class extends ze{constructor(t){super({category:"PREVIEW_API",code:12,message:ve`
|
|
103
|
+
Incorrect use of mount in the play function.
|
|
104
|
+
|
|
105
|
+
To use mount in the play function, you must satisfy the following two requirements:
|
|
106
|
+
|
|
107
|
+
1. You *must* destructure the mount property from the \`context\` (the argument passed to your play function).
|
|
108
|
+
This makes sure that Storybook does not start rendering the story before the play function begins.
|
|
109
|
+
|
|
110
|
+
2. Your Storybook framework or builder must be configured to transpile to ES2017 or newer.
|
|
111
|
+
This is because destructuring statements and async/await usages are otherwise transpiled away,
|
|
112
|
+
which prevents Storybook from recognizing your usage of \`mount\`.
|
|
113
|
+
|
|
114
|
+
Note that Angular is not supported. As async/await is transpiled to support the zone.js polyfill.
|
|
115
|
+
|
|
116
|
+
More info: https://storybook.js.org/docs/writing-tests/interaction-testing?ref=error#run-code-before-the-component-gets-rendered
|
|
117
|
+
|
|
118
|
+
Received the following play function:
|
|
119
|
+
${t.playFunction}`}),this.data=t}};i(cT,"MountMustBeDestructuredError");var qp=cT,uT=class extends ze{constructor(t){super({category:"PREVIEW_API",code:14,message:ve`
|
|
120
|
+
No render function available for storyId '${t.id}'
|
|
121
|
+
`}),this.data=t}};i(uT,"NoRenderFunctionError");var dT=uT,pT=class extends ze{constructor(){super({category:"PREVIEW_API",code:15,message:ve`
|
|
122
|
+
No component is mounted in your story.
|
|
123
|
+
|
|
124
|
+
This usually occurs when you destructure mount in the play function, but forget to call it.
|
|
125
|
+
|
|
126
|
+
For example:
|
|
127
|
+
|
|
128
|
+
async play({ mount, canvasElement }) {
|
|
129
|
+
// 👈 mount should be called: await mount();
|
|
130
|
+
const canvas = within(canvasElement);
|
|
131
|
+
const button = await canvas.findByRole('button');
|
|
132
|
+
await userEvent.click(button);
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
Make sure to either remove it or call mount in your play function.
|
|
136
|
+
`})}};i(pT,"NoStoryMountedError");var fT=pT,hT=class extends ze{constructor(t){super({category:"PREVIEW_API",code:16,message:`Status has typeId "${t.status.typeId}" but was added to store with typeId "${t.typeId}". Full status: ${JSON.stringify(t.status,null,2)}`}),this.data=t}};i(hT,"StatusTypeIdMismatchError");var WL=hT,mT=class extends ze{constructor(){super({category:"FRAMEWORK_NEXTJS",code:1,documentation:"https://storybook.js.org/docs/get-started/nextjs#faq",message:ve`
|
|
137
|
+
You are importing avif images, but you don't have sharp installed.
|
|
138
|
+
|
|
139
|
+
You have to install sharp in order to use image optimization features in Next.js.
|
|
140
|
+
`})}};i(mT,"NextJsSharpError");var KL=mT,yT=class extends ze{constructor(t){super({category:"FRAMEWORK_NEXTJS",code:2,message:ve`
|
|
141
|
+
Tried to access router mocks from "${t.importType}" but they were not created yet. You might be running code in an unsupported environment.
|
|
142
|
+
`}),this.data=t}};i(yT,"NextjsRouterMocksNotAvailable");var YL=yT,gT=class extends ze{constructor(t){super({category:"DOCS-TOOLS",code:1,documentation:"https://github.com/storybookjs/storybook/issues/26606",message:ve`
|
|
143
|
+
There was a failure when generating detailed ArgTypes in ${t.language} for:
|
|
144
|
+
${JSON.stringify(t.type,null,2)}
|
|
145
|
+
|
|
146
|
+
Storybook will fall back to use a generic type description instead.
|
|
147
|
+
|
|
148
|
+
This type is either not supported or it is a bug in the docgen generation in Storybook.
|
|
149
|
+
If you think this is a bug, please detail it as much as possible in the Github issue.
|
|
150
|
+
`}),this.data=t}};i(gT,"UnknownArgTypesError");var XL=gT,bT=class extends ze{constructor(t){super({category:"ADDON_VITEST",code:1,message:ve`
|
|
151
|
+
Encountered an unsupported value "${t.value}" when setting the viewport ${t.dimension} dimension.
|
|
152
|
+
|
|
153
|
+
The Storybook plugin only supports values in the following units:
|
|
154
|
+
- px, vh, vw, em, rem and %.
|
|
155
|
+
|
|
156
|
+
You can either change the viewport for this story to use one of the supported units or skip the test by adding '!test' to the story's tags per https://storybook.js.org/docs/writing-stories/tags
|
|
157
|
+
`}),this.data=t}};i(bT,"UnsupportedViewportDimensionError");var QL=bT,vT=class extends ze{constructor(){super({category:"ADDON_A11Y",code:1,documentation:"https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#a11y-addon-replace-element-parameter-with-context-parameter",message:'The "element" parameter in parameters.a11y has been removed. Use "context" instead.'})}};i(vT,"ElementA11yParameterError");var ZL=vT,ET={};Et(ET,{Addon_TypesEnum:()=>TT});var TT=(e=>(e.TAB="tab",e.PANEL="panel",e.TOOL="tool",e.TOOLEXTRA="toolextra",e.PREVIEW="preview",e.experimental_PAGE="page",e.experimental_TEST_PROVIDER="test-provider",e))(TT||{}),wT={};Et(wT,{ADDON_ID:()=>ll,CLEAR_ID:()=>r1,CYCLIC_KEY:()=>n1,EVENT_ID:()=>_T,PANEL_ID:()=>t1,PARAM_KEY:()=>e1,action:()=>Fo,actions:()=>IH,config:()=>ss,configureActions:()=>CH});var e1="actions",ll="storybook/actions",t1=`${ll}/panel`,_T=`${ll}/action-event`,r1=`${ll}/action-clear`,n1="$___storybook.isCyclic",gu={};Et(gu,{DocsContext:()=>vy,HooksContext:()=>kp,Preview:()=>eN,PreviewWeb:()=>TH,PreviewWithSelection:()=>uN,ReporterAPI:()=>yy,StoryStore:()=>Kx,UrlStore:()=>gN,WebView:()=>EN,addons:()=>Dt,applyHooks:()=>AT,combineArgs:()=>za,combineParameters:()=>xn,composeConfigs:()=>Nn,composeStepRunners:()=>fy,composeStories:()=>Hx,composeStory:()=>by,createPlaywrightTest:()=>Gx,decorateStory:()=>sy,defaultDecorateStory:()=>ly,emitTransformCode:()=>RN,filterArgTypes:()=>Fx,getCsfFactoryAnnotations:()=>gy,inferControls:()=>py,makeDecorator:()=>a1,mockChannel:()=>jp,normalizeArrays:()=>Ie,normalizeProjectAnnotations:()=>is,normalizeStory:()=>io,pauseAnimations:()=>_c,prepareMeta:()=>cy,prepareStory:()=>wc,sanitizeStoryContextUpdate:()=>ay,setDefaultProjectAnnotations:()=>Jx,setProjectAnnotations:()=>Vx,simulateDOMContentLoaded:()=>Xa,simulatePageLoad:()=>_N,sortStoriesV7:()=>lH,useArgs:()=>jT,useCallback:()=>ao,useChannel:()=>MT,useEffect:()=>Vr,useGlobals:()=>kT,useMemo:()=>Fp,useParameter:()=>qT,useReducer:()=>IT,useRef:()=>CT,useState:()=>NT,useStoryContext:()=>ps,userOrAutoTitle:()=>iH,userOrAutoTitleFromSpecifier:()=>Xx,waitForAnimations:()=>Sc});function jp(){const e={setHandler:i(()=>{},"setHandler"),send:i(()=>{},"send")};return new nl({transport:e})}i(jp,"mockChannel");var ST=class{constructor(){this.getChannel=i(()=>{if(!this.channel){const t=jp();return this.setChannel(t),t}return this.channel},"getChannel"),this.ready=i(()=>this.promise,"ready"),this.hasChannel=i(()=>!!this.channel,"hasChannel"),this.setChannel=i(t=>{this.channel=t,this.resolve()},"setChannel"),this.promise=new Promise(t=>{this.resolve=()=>t(this.getChannel())})}};i(ST,"AddonStore");var o1=ST,Bc="__STORYBOOK_ADDONS_PREVIEW";function RT(){return te[Bc]||(te[Bc]=new o1),te[Bc]}i(RT,"getAddonsStore");var Dt=RT(),PT=class{constructor(){this.hookListsMap=void 0,this.mountedDecorators=void 0,this.prevMountedDecorators=void 0,this.currentHooks=void 0,this.nextHookIndex=void 0,this.currentPhase=void 0,this.currentEffects=void 0,this.prevEffects=void 0,this.currentDecoratorName=void 0,this.hasUpdates=void 0,this.currentContext=void 0,this.renderListener=i(t=>{t===this.currentContext?.id&&(this.triggerEffects(),this.currentContext=null,this.removeRenderListeners())},"renderListener"),this.init()}init(){this.hookListsMap=new WeakMap,this.mountedDecorators=new Set,this.prevMountedDecorators=new Set,this.currentHooks=[],this.nextHookIndex=0,this.currentPhase="NONE",this.currentEffects=[],this.prevEffects=[],this.currentDecoratorName=null,this.hasUpdates=!1,this.currentContext=null}clean(){this.prevEffects.forEach(t=>{t.destroy&&t.destroy()}),this.init(),this.removeRenderListeners()}getNextHook(){const t=this.currentHooks[this.nextHookIndex];return this.nextHookIndex+=1,t}triggerEffects(){this.prevEffects.forEach(t=>{!this.currentEffects.includes(t)&&t.destroy&&t.destroy()}),this.currentEffects.forEach(t=>{this.prevEffects.includes(t)||(t.destroy=t.create())}),this.prevEffects=this.currentEffects,this.currentEffects=[]}addRenderListeners(){this.removeRenderListeners(),Dt.getChannel().on(sa,this.renderListener)}removeRenderListeners(){Dt.getChannel().removeListener(sa,this.renderListener)}};i(PT,"HooksContext");var kp=PT;function bu(e){const t=i((...r)=>{const{hooks:n}=typeof r[0]=="function"?r[1]:r[0],o=n.currentPhase,s=n.currentHooks,a=n.nextHookIndex,c=n.currentDecoratorName;n.currentDecoratorName=e.name,n.prevMountedDecorators.has(e)?(n.currentPhase="UPDATE",n.currentHooks=n.hookListsMap.get(e)||[]):(n.currentPhase="MOUNT",n.currentHooks=[],n.hookListsMap.set(e,n.currentHooks),n.prevMountedDecorators.add(e)),n.nextHookIndex=0;const u=te.STORYBOOK_HOOKS_CONTEXT;te.STORYBOOK_HOOKS_CONTEXT=n;const d=e(...r);if(te.STORYBOOK_HOOKS_CONTEXT=u,n.currentPhase==="UPDATE"&&n.getNextHook()!=null)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return n.currentPhase=o,n.currentHooks=s,n.nextHookIndex=a,n.currentDecoratorName=c,d},"hookified");return t.originalFn=e,t}i(bu,"hookify");var $c=0,i1=25,AT=i(e=>(t,r)=>{const n=e(bu(t),r.map(o=>bu(o)));return o=>{const{hooks:s}=o;s.prevMountedDecorators??=new Set,s.mountedDecorators=new Set([t,...r]),s.currentContext=o,s.hasUpdates=!1;let a=n(o);for($c=1;s.hasUpdates;)if(s.hasUpdates=!1,s.currentEffects=[],a=n(o),$c+=1,$c>i1)throw new Error("Too many re-renders. Storybook limits the number of renders to prevent an infinite loop.");return s.addRenderListeners(),a}},"applyHooks"),s1=i((e,t)=>e.length===t.length&&e.every((r,n)=>r===t[n]),"areDepsEqual"),Dp=i(()=>new Error("Storybook preview hooks can only be called inside decorators and story functions."),"invalidHooksError");function Lp(){return te.STORYBOOK_HOOKS_CONTEXT||null}i(Lp,"getHooksContextOrNull");function cl(){const e=Lp();if(e==null)throw Dp();return e}i(cl,"getHooksContextOrThrow");function OT(e,t,r){const n=cl();if(n.currentPhase==="MOUNT"){r!=null&&!Array.isArray(r)&&De.warn(`${e} received a final argument that is not an array (instead, received ${r}). When specified, the final argument must be an array.`);const o={name:e,deps:r};return n.currentHooks.push(o),t(o),o}if(n.currentPhase==="UPDATE"){const o=n.getNextHook();if(o==null)throw new Error("Rendered more hooks than during the previous render.");return o.name!==e&&De.warn(`Storybook has detected a change in the order of Hooks${n.currentDecoratorName?` called by ${n.currentDecoratorName}`:""}. This will lead to bugs and errors if not fixed.`),r!=null&&o.deps==null&&De.warn(`${e} received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.`),r!=null&&o.deps!=null&&r.length!==o.deps.length&&De.warn(`The final argument passed to ${e} changed size between renders. The order and size of this array must remain constant.
|
|
158
|
+
Previous: ${o.deps}
|
|
159
|
+
Incoming: ${r}`),(r==null||o.deps==null||!s1(r,o.deps))&&(t(o),o.deps=r),o}throw Dp()}i(OT,"useHook");function ds(e,t,r){const{memoizedState:n}=OT(e,o=>{o.memoizedState=t()},r);return n}i(ds,"useMemoLike");function Fp(e,t){return ds("useMemo",e,t)}i(Fp,"useMemo");function ao(e,t){return ds("useCallback",()=>e,t)}i(ao,"useCallback");function Bp(e,t){return ds(e,()=>({current:t}),[])}i(Bp,"useRefLike");function CT(e){return Bp("useRef",e)}i(CT,"useRef");function xT(){const e=Lp();if(e!=null&&e.currentPhase!=="NONE")e.hasUpdates=!0;else try{Dt.getChannel().emit(yp)}catch{De.warn("State updates of Storybook preview hooks work only in browser")}}i(xT,"triggerUpdate");function $p(e,t){const r=Bp(e,typeof t=="function"?t():t),n=i(o=>{r.current=typeof o=="function"?o(r.current):o,xT()},"setState");return[r.current,n]}i($p,"useStateLike");function NT(e){return $p("useState",e)}i(NT,"useState");function IT(e,t,r){const n=r!=null?()=>r(t):t,[o,s]=$p("useReducer",n);return[o,i(c=>s(u=>e(u,c)),"dispatch")]}i(IT,"useReducer");function Vr(e,t){const r=cl(),n=ds("useEffect",()=>({create:e}),t);r.currentEffects.includes(n)||r.currentEffects.push(n)}i(Vr,"useEffect");function MT(e,t=[]){const r=Dt.getChannel();return Vr(()=>(Object.entries(e).forEach(([n,o])=>r.on(n,o)),()=>{Object.entries(e).forEach(([n,o])=>r.removeListener(n,o))}),[...Object.keys(e),...t]),ao(r.emit.bind(r),[r])}i(MT,"useChannel");function ps(){const{currentContext:e}=cl();if(e==null)throw Dp();return e}i(ps,"useStoryContext");function qT(e,t){const{parameters:r}=ps();if(e)return r[e]??t}i(qT,"useParameter");function jT(){const e=Dt.getChannel(),{id:t,args:r}=ps(),n=ao(s=>e.emit(Ep,{storyId:t,updatedArgs:s}),[e,t]),o=ao(s=>e.emit(gp,{storyId:t,argNames:s}),[e,t]);return[r,n,o]}i(jT,"useArgs");function kT(){const e=Dt.getChannel(),{globals:t}=ps(),r=ao(n=>e.emit(vp,{globals:n}),[e]);return[t,r]}i(kT,"useGlobals");var a1=i(({name:e,parameterName:t,wrapper:r,skipIfNoParametersOrOptions:n=!1})=>{const o=i(s=>(a,c)=>{const u=c.parameters&&c.parameters[t];return u&&u.disable||n&&!s&&!u?a(c):r(a,c,{options:s,parameters:u})},"decorator");return(...s)=>typeof s[0]=="function"?o()(...s):(...a)=>{if(a.length>1)return s.length>1?o(s)(...a):o(...s)(...a);throw new Error(`Passing stories directly into ${e}() is not allowed,
|
|
160
|
+
instead use addDecorator(${e}) and pass options with the '${t}' parameter`)}},"makeDecorator");function DT(e){return e.replace(/_/g," ").replace(/-/g," ").replace(/\./g," ").replace(/([^\n])([A-Z])([a-z])/g,(t,r,n,o)=>`${r} ${n}${o}`).replace(/([a-z])([A-Z])/g,(t,r,n)=>`${r} ${n}`).replace(/([a-z])([0-9])/gi,(t,r,n)=>`${r} ${n}`).replace(/([0-9])([a-z])/gi,(t,r,n)=>`${r} ${n}`).replace(/(\s|^)(\w)/g,(t,r,n)=>`${r}${n.toUpperCase()}`).replace(/ +/g," ").trim()}i(DT,"toStartCaseStr");var Gy=Ge(DI(),1),LT=i(e=>e.map(t=>typeof t<"u").filter(Boolean).length,"count"),l1=i((e,t)=>{const{exists:r,eq:n,neq:o,truthy:s}=e;if(LT([r,n,o,s])>1)throw new Error(`Invalid conditional test ${JSON.stringify({exists:r,eq:n,neq:o})}`);if(typeof n<"u")return(0,Gy.isEqual)(t,n);if(typeof o<"u")return!(0,Gy.isEqual)(t,o);if(typeof r<"u"){const c=typeof t<"u";return r?c:!c}return(typeof s>"u"?!0:s)?!!t:!t},"testValue"),c1=i((e,t,r)=>{if(!e.if)return!0;const{arg:n,global:o}=e.if;if(LT([n,o])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:n,global:o})}`);const s=n?t[n]:r[o];return l1(e.if,s)},"includeConditionalArg");function FT(e){return e!=null&&BT(e).includes("mount")}i(FT,"mountDestructured");function BT(e){const t=e.toString().match(/[^(]*\(([^)]*)/);if(!t)return[];const r=vu(t[1]);if(!r.length)return[];const n=r[0];return n.startsWith("{")&&n.endsWith("}")?vu(n.slice(1,-1).replace(/\s/g,"")).map(s=>s.replace(/:.*|=.*/g,"")):[]}i(BT,"getUsedProps");function vu(e){const t=[],r=[];let n=0;for(let s=0;s<e.length;s++)if(e[s]==="{"||e[s]==="[")r.push(e[s]==="{"?"}":"]");else if(e[s]===r[r.length-1])r.pop();else if(!r.length&&e[s]===","){const a=e.substring(n,s).trim();a&&t.push(a),n=s+1}const o=e.substring(n).trim();return o&&t.push(o),t}i(vu,"splitByComma");var $T={};Et($T,{argsEnhancers:()=>p1});var JT=i((e,t)=>typeof t[e]>"u"&&!(e in t),"isInInitialArgs"),u1=i(e=>{const{initialArgs:t,argTypes:r,id:n,parameters:{actions:o}}=e;if(!o||o.disable||!o.argTypesRegex||!r)return{};const s=new RegExp(o.argTypesRegex);return Object.entries(r).filter(([c])=>!!s.test(c)).reduce((c,[u,d])=>(JT(u,t)&&(c[u]=Fo(u,{implicit:!0,id:n})),c),{})},"inferActionsFromArgTypesRegex"),d1=i(e=>{const{initialArgs:t,argTypes:r,parameters:{actions:n}}=e;return n?.disable||!r?{}:Object.entries(r).filter(([s,a])=>!!a.action).reduce((s,[a,c])=>(JT(a,t)&&(s[a]=Fo(typeof c.action=="string"?c.action:a)),s),{})},"addActionsFromArgTypes"),p1=[d1,u1],UT={};Et(UT,{loaders:()=>wU});var VT={};Et(VT,{buildQueries:()=>tJ,clearAllMocks:()=>em,configure:()=>rJ,createEvent:()=>nJ,expect:()=>vU,findAllByAltText:()=>iJ,findAllByDisplayValue:()=>sJ,findAllByLabelText:()=>aJ,findAllByPlaceholderText:()=>lJ,findAllByRole:()=>cJ,findAllByTestId:()=>uJ,findAllByText:()=>dJ,findAllByTitle:()=>pJ,findByAltText:()=>fJ,findByDisplayValue:()=>hJ,findByLabelText:()=>mJ,findByPlaceholderText:()=>yJ,findByRole:()=>gJ,findByTestId:()=>bJ,findByText:()=>vJ,findByTitle:()=>EJ,fireEvent:()=>oJ,fn:()=>Qh,getAllByAltText:()=>TJ,getAllByDisplayValue:()=>wJ,getAllByLabelText:()=>_J,getAllByPlaceholderText:()=>SJ,getAllByRole:()=>RJ,getAllByTestId:()=>PJ,getAllByText:()=>AJ,getAllByTitle:()=>OJ,getByAltText:()=>CJ,getByDisplayValue:()=>xJ,getByLabelText:()=>NJ,getByPlaceholderText:()=>IJ,getByRole:()=>MJ,getByTestId:()=>qJ,getByText:()=>jJ,getByTitle:()=>kJ,getConfig:()=>DJ,getDefaultNormalizer:()=>LJ,getElementError:()=>FJ,getNodeText:()=>BJ,getQueriesForElement:()=>$J,getRoles:()=>JJ,getSuggestedQuery:()=>UJ,isInaccessible:()=>VJ,isMockFunction:()=>gn,logDOM:()=>HJ,logRoles:()=>GJ,mocked:()=>sR,mocks:()=>As,onMockCall:()=>Xh,prettyDOM:()=>zJ,prettyFormat:()=>gU,queries:()=>WJ,queryAllByAltText:()=>KJ,queryAllByAttribute:()=>YJ,queryAllByDisplayValue:()=>XJ,queryAllByLabelText:()=>QJ,queryAllByPlaceholderText:()=>ZJ,queryAllByRole:()=>eU,queryAllByTestId:()=>tU,queryAllByText:()=>rU,queryAllByTitle:()=>nU,queryByAltText:()=>oU,queryByAttribute:()=>iU,queryByDisplayValue:()=>sU,queryByLabelText:()=>aU,queryByPlaceholderText:()=>lU,queryByRole:()=>cU,queryByTestId:()=>uU,queryByText:()=>dU,queryByTitle:()=>pU,queryHelpers:()=>fU,resetAllMocks:()=>tm,restoreAllMocks:()=>rm,sb:()=>EU,screen:()=>hU,spyOn:()=>WB,uninstrumentedUserEvent:()=>QC,userEvent:()=>bU,waitFor:()=>mU,waitForElementToBeRemoved:()=>yU,within:()=>XC});var f1={reset:[0,0],bold:[1,22,"\x1B[22m\x1B[1m"],dim:[2,22,"\x1B[22m\x1B[2m"],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]},HT=Object.entries(f1);function fs(e){return String(e)}i(fs,"a");fs.open="";fs.close="";HT.reduce((e,[t])=>(e[t]=fs,e),{isColorSupported:!1});function GT(e=!1){let t=typeof process<"u"?process:void 0,r=t?.env||{},n=t?.argv||[];return!("NO_COLOR"in r||n.includes("--no-color"))&&("FORCE_COLOR"in r||n.includes("--color")||t?.platform==="win32"||e&&r.TERM!=="dumb"||"CI"in r)||typeof window<"u"&&!!window.chrome}i(GT,"C");function zT(e=!1){let t=GT(e),r=i((a,c,u,d)=>{let p="",f=0;do p+=a.substring(f,d)+u,f=d+c.length,d=a.indexOf(c,f);while(~d);return p+a.substring(f)},"i"),n=i((a,c,u=a)=>{let d=i(p=>{let f=String(p),m=f.indexOf(c,a.length);return~m?a+r(f,c,u,m)+c:a+f+c},"o");return d.open=a,d.close=c,d},"g"),o={isColorSupported:t},s=i(a=>`\x1B[${a}m`,"d");for(let[a,c]of HT)o[a]=t?n(s(c[0]),s(c[1]),c[2]):fs;return o}i(zT,"p");var Je=zT();function Jp(e,t){return t.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(n){if(n!=="default"&&!(n in e)){var o=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:i(function(){return r[n]},"get")})}})}),Object.freeze(e)}i(Jp,"_mergeNamespaces");function WT(e,t){const r=Object.keys(e),n=t===null?r:r.sort(t);if(Object.getOwnPropertySymbols)for(const o of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,o).enumerable&&n.push(o);return n}i(WT,"getKeysOfEnumerableProperties");function Oo(e,t,r,n,o,s,a=": "){let c="",u=0,d=e.next();if(!d.done){c+=t.spacingOuter;const p=r+t.indent;for(;!d.done;){if(c+=p,u++===t.maxWidth){c+="…";break}const f=s(d.value[0],t,p,n,o),m=s(d.value[1],t,p,n,o);c+=f+a+m,d=e.next(),d.done?t.min||(c+=","):c+=`,${t.spacingInner}`}c+=t.spacingOuter+r}return c}i(Oo,"printIteratorEntries");function ul(e,t,r,n,o,s){let a="",c=0,u=e.next();if(!u.done){a+=t.spacingOuter;const d=r+t.indent;for(;!u.done;){if(a+=d,c++===t.maxWidth){a+="…";break}a+=s(u.value,t,d,n,o),u=e.next(),u.done?t.min||(a+=","):a+=`,${t.spacingInner}`}a+=t.spacingOuter+r}return a}i(ul,"printIteratorValues");function $i(e,t,r,n,o,s){let a="";e=e instanceof ArrayBuffer?new DataView(e):e;const c=i(d=>d instanceof DataView,"isDataView"),u=c(e)?e.byteLength:e.length;if(u>0){a+=t.spacingOuter;const d=r+t.indent;for(let p=0;p<u;p++){if(a+=d,p===t.maxWidth){a+="…";break}(c(e)||p in e)&&(a+=s(c(e)?e.getInt8(p):e[p],t,d,n,o)),p<u-1?a+=`,${t.spacingInner}`:t.min||(a+=",")}a+=t.spacingOuter+r}return a}i($i,"printListItems");function dl(e,t,r,n,o,s){let a="";const c=WT(e,t.compareKeys);if(c.length>0){a+=t.spacingOuter;const u=r+t.indent;for(let d=0;d<c.length;d++){const p=c[d],f=s(p,t,u,n,o),m=s(e[p],t,u,n,o);a+=`${u+f}: ${m}`,d<c.length-1?a+=`,${t.spacingInner}`:t.min||(a+=",")}a+=t.spacingOuter+r}return a}i(dl,"printObjectProperties");var h1=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,qs=" ",m1=i((e,t,r,n,o,s)=>{const a=e.toString();if(a==="ArrayContaining"||a==="ArrayNotContaining")return++n>t.maxDepth?`[${a}]`:`${a+qs}[${$i(e.sample,t,r,n,o,s)}]`;if(a==="ObjectContaining"||a==="ObjectNotContaining")return++n>t.maxDepth?`[${a}]`:`${a+qs}{${dl(e.sample,t,r,n,o,s)}}`;if(a==="StringMatching"||a==="StringNotMatching"||a==="StringContaining"||a==="StringNotContaining")return a+qs+s(e.sample,t,r,n,o);if(typeof e.toAsymmetricMatcher!="function")throw new TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},"serialize$5"),y1=i(e=>e&&e.$$typeof===h1,"test$5"),g1={serialize:m1,test:y1},b1=" ",KT=new Set(["DOMStringMap","NamedNodeMap"]),v1=/^(?:HTML\w*Collection|NodeList)$/;function YT(e){return KT.has(e)||v1.test(e)}i(YT,"testName");var E1=i(e=>e&&e.constructor&&!!e.constructor.name&&YT(e.constructor.name),"test$4");function XT(e){return e.constructor.name==="NamedNodeMap"}i(XT,"isNamedNodeMap");var T1=i((e,t,r,n,o,s)=>{const a=e.constructor.name;return++n>t.maxDepth?`[${a}]`:(t.min?"":a+b1)+(KT.has(a)?`{${dl(XT(e)?[...e].reduce((c,u)=>(c[u.name]=u.value,c),{}):{...e},t,r,n,o,s)}}`:`[${$i([...e],t,r,n,o,s)}]`)},"serialize$4"),w1={serialize:T1,test:E1};function Up(e){return e.replaceAll("<","<").replaceAll(">",">")}i(Up,"escapeHTML");function pl(e,t,r,n,o,s,a){const c=n+r.indent,u=r.colors;return e.map(d=>{const p=t[d];let f=a(p,r,c,o,s);return typeof p!="string"&&(f.includes(`
|
|
161
|
+
`)&&(f=r.spacingOuter+c+f+r.spacingOuter+n),f=`{${f}}`),`${r.spacingInner+n+u.prop.open+d+u.prop.close}=${u.value.open}${f}${u.value.close}`}).join("")}i(pl,"printProps");function fl(e,t,r,n,o,s){return e.map(a=>t.spacingOuter+r+(typeof a=="string"?Vp(a,t):s(a,t,r,n,o))).join("")}i(fl,"printChildren");function Vp(e,t){const r=t.colors.content;return r.open+Up(e)+r.close}i(Vp,"printText");function QT(e,t){const r=t.colors.comment;return`${r.open}<!--${Up(e)}-->${r.close}`}i(QT,"printComment");function hl(e,t,r,n,o){const s=n.colors.tag;return`${s.open}<${e}${t&&s.close+t+n.spacingOuter+o+s.open}${r?`>${s.close}${r}${n.spacingOuter}${o}${s.open}</${e}`:`${t&&!n.min?"":" "}/`}>${s.close}`}i(hl,"printElement");function ml(e,t){const r=t.colors.tag;return`${r.open}<${e}${r.close} …${r.open} />${r.close}`}i(ml,"printElementAsLeaf");var _1=1,ZT=3,ew=8,tw=11,S1=/^(?:(?:HTML|SVG)\w*)?Element$/;function rw(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return!1}}i(rw,"testHasAttribute");function nw(e){const t=e.constructor.name,{nodeType:r,tagName:n}=e,o=typeof n=="string"&&n.includes("-")||rw(e);return r===_1&&(S1.test(t)||o)||r===ZT&&t==="Text"||r===ew&&t==="Comment"||r===tw&&t==="DocumentFragment"}i(nw,"testNode");var R1=i(e=>{var t;return(e==null||(t=e.constructor)===null||t===void 0?void 0:t.name)&&nw(e)},"test$3");function ow(e){return e.nodeType===ZT}i(ow,"nodeIsText");function iw(e){return e.nodeType===ew}i(iw,"nodeIsComment");function $s(e){return e.nodeType===tw}i($s,"nodeIsFragment");var P1=i((e,t,r,n,o,s)=>{if(ow(e))return Vp(e.data,t);if(iw(e))return QT(e.data,t);const a=$s(e)?"DocumentFragment":e.tagName.toLowerCase();return++n>t.maxDepth?ml(a,t):hl(a,pl($s(e)?[]:Array.from(e.attributes,c=>c.name).sort(),$s(e)?{}:[...e.attributes].reduce((c,u)=>(c[u.name]=u.value,c),{}),t,r+t.indent,n,o,s),fl(Array.prototype.slice.call(e.childNodes||e.children),t,r+t.indent,n,o,s),t,r)},"serialize$3"),A1={serialize:P1,test:R1},O1="@@__IMMUTABLE_ITERABLE__@@",C1="@@__IMMUTABLE_LIST__@@",x1="@@__IMMUTABLE_KEYED__@@",N1="@@__IMMUTABLE_MAP__@@",zy="@@__IMMUTABLE_ORDERED__@@",I1="@@__IMMUTABLE_RECORD__@@",M1="@@__IMMUTABLE_SEQ__@@",q1="@@__IMMUTABLE_SET__@@",j1="@@__IMMUTABLE_STACK__@@",lo=i(e=>`Immutable.${e}`,"getImmutableName"),yl=i(e=>`[${e}]`,"printAsLeaf"),Ji=" ",Wy="…";function sw(e,t,r,n,o,s,a){return++n>t.maxDepth?yl(lo(a)):`${lo(a)+Ji}{${Oo(e.entries(),t,r,n,o,s)}}`}i(sw,"printImmutableEntries");function aw(e){let t=0;return{next(){if(t<e._keys.length){const r=e._keys[t++];return{done:!1,value:[r,e.get(r)]}}return{done:!0,value:void 0}}}}i(aw,"getRecordEntries");function lw(e,t,r,n,o,s){const a=lo(e._name||"Record");return++n>t.maxDepth?yl(a):`${a+Ji}{${Oo(aw(e),t,r,n,o,s)}}`}i(lw,"printImmutableRecord");function cw(e,t,r,n,o,s){const a=lo("Seq");return++n>t.maxDepth?yl(a):e[x1]?`${a+Ji}{${e._iter||e._object?Oo(e.entries(),t,r,n,o,s):Wy}}`:`${a+Ji}[${e._iter||e._array||e._collection||e._iterable?ul(e.values(),t,r,n,o,s):Wy}]`}i(cw,"printImmutableSeq");function Js(e,t,r,n,o,s,a){return++n>t.maxDepth?yl(lo(a)):`${lo(a)+Ji}[${ul(e.values(),t,r,n,o,s)}]`}i(Js,"printImmutableValues");var k1=i((e,t,r,n,o,s)=>e[N1]?sw(e,t,r,n,o,s,e[zy]?"OrderedMap":"Map"):e[C1]?Js(e,t,r,n,o,s,"List"):e[q1]?Js(e,t,r,n,o,s,e[zy]?"OrderedSet":"Set"):e[j1]?Js(e,t,r,n,o,s,"Stack"):e[M1]?cw(e,t,r,n,o,s):lw(e,t,r,n,o,s),"serialize$2"),D1=i(e=>e&&(e[O1]===!0||e[I1]===!0),"test$2"),L1={serialize:k1,test:D1};function Hp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}i(Hp,"getDefaultExportFromCjs");var Jc={exports:{}},Ne={},Ky;function uw(){if(Ky)return Ne;Ky=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),a=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");function g(T){if(typeof T=="object"&&T!==null){var E=T.$$typeof;switch(E){case e:switch(T=T.type,T){case r:case o:case n:case u:case d:case m:return T;default:switch(T=T&&T.$$typeof,T){case a:case c:case f:case p:return T;case s:return T;default:return E}}case t:return E}}}return i(g,"typeOf"),Ne.ContextConsumer=s,Ne.ContextProvider=a,Ne.Element=e,Ne.ForwardRef=c,Ne.Fragment=r,Ne.Lazy=f,Ne.Memo=p,Ne.Portal=t,Ne.Profiler=o,Ne.StrictMode=n,Ne.Suspense=u,Ne.SuspenseList=d,Ne.isContextConsumer=function(T){return g(T)===s},Ne.isContextProvider=function(T){return g(T)===a},Ne.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===e},Ne.isForwardRef=function(T){return g(T)===c},Ne.isFragment=function(T){return g(T)===r},Ne.isLazy=function(T){return g(T)===f},Ne.isMemo=function(T){return g(T)===p},Ne.isPortal=function(T){return g(T)===t},Ne.isProfiler=function(T){return g(T)===o},Ne.isStrictMode=function(T){return g(T)===n},Ne.isSuspense=function(T){return g(T)===u},Ne.isSuspenseList=function(T){return g(T)===d},Ne.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===r||T===o||T===n||T===u||T===d||typeof T=="object"&&T!==null&&(T.$$typeof===f||T.$$typeof===p||T.$$typeof===a||T.$$typeof===s||T.$$typeof===c||T.$$typeof===y||T.getModuleId!==void 0)},Ne.typeOf=g,Ne}i(uw,"requireReactIs_production");var Yy;function dw(){return Yy||(Yy=1,Jc.exports=uw()),Jc.exports}i(dw,"requireReactIs$1");var pw=dw(),F1=Hp(pw),B1=Jp({__proto__:null,default:F1},[pw]),Uc={exports:{}},Ce={},Xy;function fw(){if(Xy)return Ce;Xy=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),a=Symbol.for("react.context"),c=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),g;g=Symbol.for("react.module.reference");function T(E){if(typeof E=="object"&&E!==null){var v=E.$$typeof;switch(v){case e:switch(E=E.type,E){case r:case o:case n:case d:case p:return E;default:switch(E=E&&E.$$typeof,E){case c:case a:case u:case m:case f:case s:return E;default:return v}}case t:return v}}}return i(T,"v"),Ce.ContextConsumer=a,Ce.ContextProvider=s,Ce.Element=e,Ce.ForwardRef=u,Ce.Fragment=r,Ce.Lazy=m,Ce.Memo=f,Ce.Portal=t,Ce.Profiler=o,Ce.StrictMode=n,Ce.Suspense=d,Ce.SuspenseList=p,Ce.isAsyncMode=function(){return!1},Ce.isConcurrentMode=function(){return!1},Ce.isContextConsumer=function(E){return T(E)===a},Ce.isContextProvider=function(E){return T(E)===s},Ce.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===e},Ce.isForwardRef=function(E){return T(E)===u},Ce.isFragment=function(E){return T(E)===r},Ce.isLazy=function(E){return T(E)===m},Ce.isMemo=function(E){return T(E)===f},Ce.isPortal=function(E){return T(E)===t},Ce.isProfiler=function(E){return T(E)===o},Ce.isStrictMode=function(E){return T(E)===n},Ce.isSuspense=function(E){return T(E)===d},Ce.isSuspenseList=function(E){return T(E)===p},Ce.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===r||E===o||E===n||E===d||E===p||E===y||typeof E=="object"&&E!==null&&(E.$$typeof===m||E.$$typeof===f||E.$$typeof===s||E.$$typeof===a||E.$$typeof===u||E.$$typeof===g||E.getModuleId!==void 0)},Ce.typeOf=T,Ce}i(fw,"requireReactIs_production_min");var Qy;function hw(){return Qy||(Qy=1,Uc.exports=fw()),Uc.exports}i(hw,"requireReactIs");var mw=hw(),$1=Hp(mw),J1=Jp({__proto__:null,default:$1},[mw]),U1=["isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","isValidElementType"],ln=Object.fromEntries(U1.map(e=>[e,t=>J1[e](t)||B1[e](t)]));function Gp(e,t=[]){if(Array.isArray(e))for(const r of e)Gp(r,t);else e!=null&&e!==!1&&e!==""&&t.push(e);return t}i(Gp,"getChildren");function Eu(e){const t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(ln.isFragment(e))return"React.Fragment";if(ln.isSuspense(e))return"React.Suspense";if(typeof t=="object"&&t!==null){if(ln.isContextProvider(e))return"Context.Provider";if(ln.isContextConsumer(e))return"Context.Consumer";if(ln.isForwardRef(e)){if(t.displayName)return t.displayName;const r=t.render.displayName||t.render.name||"";return r===""?"ForwardRef":`ForwardRef(${r})`}if(ln.isMemo(e)){const r=t.displayName||t.type.displayName||t.type.name||"";return r===""?"Memo":`Memo(${r})`}}return"UNDEFINED"}i(Eu,"getType");function yw(e){const{props:t}=e;return Object.keys(t).filter(r=>r!=="children"&&t[r]!==void 0).sort()}i(yw,"getPropKeys$1");var V1=i((e,t,r,n,o,s)=>++n>t.maxDepth?ml(Eu(e),t):hl(Eu(e),pl(yw(e),e.props,t,r+t.indent,n,o,s),fl(Gp(e.props.children),t,r+t.indent,n,o,s),t,r),"serialize$1"),H1=i(e=>e!=null&&ln.isElement(e),"test$1"),G1={serialize:V1,test:H1},z1=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function gw(e){const{props:t}=e;return t?Object.keys(t).filter(r=>t[r]!==void 0).sort():[]}i(gw,"getPropKeys");var W1=i((e,t,r,n,o,s)=>++n>t.maxDepth?ml(e.type,t):hl(e.type,e.props?pl(gw(e),e.props,t,r+t.indent,n,o,s):"",e.children?fl(e.children,t,r+t.indent,n,o,s):"",t,r),"serialize"),K1=i(e=>e&&e.$$typeof===z1,"test"),Y1={serialize:W1,test:K1},bw=Object.prototype.toString,X1=Date.prototype.toISOString,Q1=Error.prototype.toString,Zy=RegExp.prototype.toString;function Pi(e){return typeof e.constructor=="function"&&e.constructor.name||"Object"}i(Pi,"getConstructorName");function vw(e){return typeof window<"u"&&e===window}i(vw,"isWindow");var Z1=/^Symbol\((.*)\)(.*)$/,eF=/\n/g,Ew=class extends Error{constructor(t,r){super(t),this.stack=r,this.name=this.constructor.name}};i(Ew,"PrettyFormatPluginError");var Tw=Ew;function ww(e){return e==="[object Array]"||e==="[object ArrayBuffer]"||e==="[object DataView]"||e==="[object Float32Array]"||e==="[object Float64Array]"||e==="[object Int8Array]"||e==="[object Int16Array]"||e==="[object Int32Array]"||e==="[object Uint8Array]"||e==="[object Uint8ClampedArray]"||e==="[object Uint16Array]"||e==="[object Uint32Array]"}i(ww,"isToStringedArrayType");function _w(e){return Object.is(e,-0)?"-0":String(e)}i(_w,"printNumber");function Sw(e){return`${e}n`}i(Sw,"printBigInt");function Tu(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}i(Tu,"printFunction");function wu(e){return String(e).replace(Z1,"Symbol($1)")}i(wu,"printSymbol");function _u(e){return`[${Q1.call(e)}]`}i(_u,"printError");function zp(e,t,r,n){if(e===!0||e===!1)return`${e}`;if(e===void 0)return"undefined";if(e===null)return"null";const o=typeof e;if(o==="number")return _w(e);if(o==="bigint")return Sw(e);if(o==="string")return n?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if(o==="function")return Tu(e,t);if(o==="symbol")return wu(e);const s=bw.call(e);return s==="[object WeakMap]"?"WeakMap {}":s==="[object WeakSet]"?"WeakSet {}":s==="[object Function]"||s==="[object GeneratorFunction]"?Tu(e,t):s==="[object Symbol]"?wu(e):s==="[object Date]"?Number.isNaN(+e)?"Date { NaN }":X1.call(e):s==="[object Error]"?_u(e):s==="[object RegExp]"?r?Zy.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):Zy.call(e):e instanceof Error?_u(e):null}i(zp,"printBasicValue");function Wp(e,t,r,n,o,s){if(o.includes(e))return"[Circular]";o=[...o],o.push(e);const a=++n>t.maxDepth,c=t.min;if(t.callToJSON&&!a&&e.toJSON&&typeof e.toJSON=="function"&&!s)return br(e.toJSON(),t,r,n,o,!0);const u=bw.call(e);return u==="[object Arguments]"?a?"[Arguments]":`${c?"":"Arguments "}[${$i(e,t,r,n,o,br)}]`:ww(u)?a?`[${e.constructor.name}]`:`${c||!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${$i(e,t,r,n,o,br)}]`:u==="[object Map]"?a?"[Map]":`Map {${Oo(e.entries(),t,r,n,o,br," => ")}}`:u==="[object Set]"?a?"[Set]":`Set {${ul(e.values(),t,r,n,o,br)}}`:a||vw(e)?`[${Pi(e)}]`:`${c||!t.printBasicPrototype&&Pi(e)==="Object"?"":`${Pi(e)} `}{${dl(e,t,r,n,o,br)}}`}i(Wp,"printComplexValue");var tF={test:i(e=>e&&e instanceof Error,"test"),serialize(e,t,r,n,o,s){if(o.includes(e))return"[Circular]";o=[...o,e];const a=++n>t.maxDepth,{message:c,cause:u,...d}=e,p={message:c,...typeof u<"u"?{cause:u}:{},...e instanceof AggregateError?{errors:e.errors}:{},...d},f=e.name!=="Error"?e.name:Pi(e);return a?`[${f}]`:`${f} {${Oo(Object.entries(p).values(),t,r,n,o,s)}}`}};function Rw(e){return e.serialize!=null}i(Rw,"isNewPlugin");function Kp(e,t,r,n,o,s){let a;try{a=Rw(e)?e.serialize(t,r,n,o,s,br):e.print(t,c=>br(c,r,n,o,s),c=>{const u=n+r.indent;return u+c.replaceAll(eF,`
|
|
162
|
+
${u}`)},{edgeSpacing:r.spacingOuter,min:r.min,spacing:r.spacingInner},r.colors)}catch(c){throw new Tw(c.message,c.stack)}if(typeof a!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof a}".`);return a}i(Kp,"printPlugin");function Yp(e,t){for(const r of e)try{if(r.test(t))return r}catch(n){throw new Tw(n.message,n.stack)}return null}i(Yp,"findPlugin");function br(e,t,r,n,o,s){const a=Yp(t.plugins,e);if(a!==null)return Kp(a,e,t,r,n,o);const c=zp(e,t.printFunctionName,t.escapeRegex,t.escapeString);return c!==null?c:Wp(e,t,r,n,o,s)}i(br,"printer");var Xp={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},Pw=Object.keys(Xp),Ut={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:Number.POSITIVE_INFINITY,maxWidth:Number.POSITIVE_INFINITY,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:Xp};function Aw(e){for(const t of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(Ut,t))throw new Error(`pretty-format: Unknown option "${t}".`);if(e.min&&e.indent!==void 0&&e.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.')}i(Aw,"validateOptions");function Ow(){return Pw.reduce((e,t)=>{const r=Xp[t],n=r&&Je[r];if(n&&typeof n.close=="string"&&typeof n.open=="string")e[t]=n;else throw new Error(`pretty-format: Option "theme" has a key "${t}" whose value "${r}" is undefined in ansi-styles.`);return e},Object.create(null))}i(Ow,"getColorsHighlight");function Cw(){return Pw.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}i(Cw,"getColorsEmpty");function Qp(e){return e?.printFunctionName??Ut.printFunctionName}i(Qp,"getPrintFunctionName");function Zp(e){return e?.escapeRegex??Ut.escapeRegex}i(Zp,"getEscapeRegex");function ef(e){return e?.escapeString??Ut.escapeString}i(ef,"getEscapeString");function Su(e){return{callToJSON:e?.callToJSON??Ut.callToJSON,colors:e?.highlight?Ow():Cw(),compareKeys:typeof e?.compareKeys=="function"||e?.compareKeys===null?e.compareKeys:Ut.compareKeys,escapeRegex:Zp(e),escapeString:ef(e),indent:e?.min?"":xw(e?.indent??Ut.indent),maxDepth:e?.maxDepth??Ut.maxDepth,maxWidth:e?.maxWidth??Ut.maxWidth,min:e?.min??Ut.min,plugins:e?.plugins??Ut.plugins,printBasicPrototype:e?.printBasicPrototype??!0,printFunctionName:Qp(e),spacingInner:e?.min?" ":`
|
|
163
|
+
`,spacingOuter:e?.min?"":`
|
|
164
|
+
`}}i(Su,"getConfig");function xw(e){return Array.from({length:e+1}).join(" ")}i(xw,"createIndent");function Ht(e,t){if(t&&(Aw(t),t.plugins)){const n=Yp(t.plugins,e);if(n!==null)return Kp(n,e,Su(t),"",0,[])}const r=zp(e,Qp(t),Zp(t),ef(t));return r!==null?r:Wp(e,Su(t),"",0,[])}i(Ht,"format");var tf={AsymmetricMatcher:g1,DOMCollection:w1,DOMElement:A1,Immutable:L1,ReactElement:G1,ReactTestComponent:Y1,Error:tF},eg={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},rF={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},co="…";function Nw(e,t){const r=eg[rF[t]]||eg[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}i(Nw,"colorise");function Iw({showHidden:e=!1,depth:t=2,colors:r=!1,customInspect:n=!0,showProxy:o=!1,maxArrayLength:s=1/0,breakLength:a=1/0,seen:c=[],truncate:u=1/0,stylize:d=String}={},p){const f={showHidden:!!e,depth:Number(t),colors:!!r,customInspect:!!n,showProxy:!!o,maxArrayLength:Number(s),breakLength:Number(a),truncate:Number(u),seen:c,inspect:p,stylize:d};return f.colors&&(f.stylize=Nw),f}i(Iw,"normaliseOptions");function Mw(e){return e>="\uD800"&&e<="\uDBFF"}i(Mw,"isHighSurrogate");function Pr(e,t,r=co){e=String(e);const n=r.length,o=e.length;if(n>t&&o>n)return r;if(o>t&&o>n){let s=t-n;return s>0&&Mw(e[s-1])&&(s=s-1),`${e.slice(0,s)}${r}`}return e}i(Pr,"truncate");function Lt(e,t,r,n=", "){r=r||t.inspect;const o=e.length;if(o===0)return"";const s=t.truncate;let a="",c="",u="";for(let d=0;d<o;d+=1){const p=d+1===e.length,f=d+2===e.length;u=`${co}(${e.length-d})`;const m=e[d];t.truncate=s-a.length-(p?0:n.length);const y=c||r(m,t)+(p?"":n),g=a.length+y.length,T=g+u.length;if(p&&g>s&&a.length+u.length<=s||!p&&!f&&T>s||(c=p?"":r(e[d+1],t)+(f?"":n),!p&&f&&T>s&&g+c.length>s))break;if(a+=y,!p&&!f&&g+c.length>=s){u=`${co}(${e.length-d-1})`;break}u=""}return`${a}${u}`}i(Lt,"inspectList");function qw(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}i(qw,"quoteComplexKey");function uo([e,t],r){return r.truncate-=2,typeof e=="string"?e=qw(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}i(uo,"inspectProperty");function jw(e,t){const r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return"[]";t.truncate-=4;const n=Lt(e,t);t.truncate-=n.length;let o="";return r.length&&(o=Lt(r.map(s=>[s,e[s]]),t,uo)),`[ ${n}${o?`, ${o}`:""} ]`}i(jw,"inspectArray");var nF=i(e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,"getArrayName");function Yt(e,t){const r=nF(e);t.truncate-=r.length+4;const n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return`${r}[]`;let o="";for(let a=0;a<e.length;a++){const c=`${t.stylize(Pr(e[a],t.truncate),"number")}${a===e.length-1?"":", "}`;if(t.truncate-=c.length,e[a]!==e.length&&t.truncate<=3){o+=`${co}(${e.length-e[a]+1})`;break}o+=c}let s="";return n.length&&(s=Lt(n.map(a=>[a,e[a]]),t,uo)),`${r}[ ${o}${s?`, ${s}`:""} ]`}i(Yt,"inspectTypedArray");function kw(e,t){const r=e.toJSON();if(r===null)return"Invalid Date";const n=r.split("T"),o=n[0];return t.stylize(`${o}T${Pr(n[1],t.truncate-o.length-1)}`,"date")}i(kw,"inspectDate");function Ru(e,t){const r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${Pr(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}i(Ru,"inspectFunction");function Dw([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}i(Dw,"inspectMapEntry");function Lw(e){const t=[];return e.forEach((r,n)=>{t.push([n,r])}),t}i(Lw,"mapToEntries");function Fw(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${Lt(Lw(e),t,Dw)} }`)}i(Fw,"inspectMap");var oF=Number.isNaN||(e=>e!==e);function Pu(e,t){return oF(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(Pr(String(e),t.truncate),"number")}i(Pu,"inspectNumber");function Au(e,t){let r=Pr(e.toString(),t.truncate-1);return r!==co&&(r+="n"),t.stylize(r,"bigint")}i(Au,"inspectBigInt");function Bw(e,t){const r=e.toString().split("/")[2],n=t.truncate-(2+r.length),o=e.source;return t.stylize(`/${Pr(o,n)}/${r}`,"regexp")}i(Bw,"inspectRegExp");function $w(e){const t=[];return e.forEach(r=>{t.push(r)}),t}i($w,"arrayFromSet");function Jw(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${Lt($w(e),t)} }`)}i(Jw,"inspectSet");var tg=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),iF={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},sF=16;function Uw(e){return iF[e]||`\\u${`0000${e.charCodeAt(0).toString(sF)}`.slice(-4)}`}i(Uw,"escape");function Ou(e,t){return tg.test(e)&&(e=e.replace(tg,Uw)),t.stylize(`'${Pr(e,t.truncate-2)}'`,"string")}i(Ou,"inspectString");function Cu(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}i(Cu,"inspectSymbol");var aF=i(()=>"Promise{…}","getPromiseValue"),lF=aF;function Ai(e,t){const r=Object.getOwnPropertyNames(e),n=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(r.length===0&&n.length===0)return"{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);const o=Lt(r.map(c=>[c,e[c]]),t,uo),s=Lt(n.map(c=>[c,e[c]]),t,uo);t.seen.pop();let a="";return o&&s&&(a=", "),`{ ${o}${a}${s} }`}i(Ai,"inspectObject");var Vc=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function Vw(e,t){let r="";return Vc&&Vc in e&&(r=e[Vc]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${Ai(e,t)}`}i(Vw,"inspectClass");function Hw(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${Lt(e,t)} ]`)}i(Hw,"inspectArguments");var cF=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function Gw(e,t){const r=Object.getOwnPropertyNames(e).filter(a=>cF.indexOf(a)===-1),n=e.name;t.truncate-=n.length;let o="";if(typeof e.message=="string"?o=Pr(e.message,t.truncate):r.unshift("message"),o=o?`: ${o}`:"",t.truncate-=o.length+5,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);const s=Lt(r.map(a=>[a,e[a]]),t,uo);return`${n}${o}${s?` { ${s} }`:""}`}i(Gw,"inspectObject");function zw([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}i(zw,"inspectAttribute");function aa(e,t){return Lt(e,t,Ww,`
|
|
165
|
+
`)}i(aa,"inspectNodeCollection");function Ww(e,t){switch(e.nodeType){case 1:return rf(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}i(Ww,"inspectNode");function rf(e,t){const r=e.getAttributeNames(),n=e.tagName.toLowerCase(),o=t.stylize(`<${n}`,"special"),s=t.stylize(">","special"),a=t.stylize(`</${n}>`,"special");t.truncate-=n.length*2+5;let c="";r.length>0&&(c+=" ",c+=Lt(r.map(p=>[p,e.getAttribute(p)]),t,zw," ")),t.truncate-=c.length;const u=t.truncate;let d=aa(e.children,t);return d&&d.length>u&&(d=`${co}(${e.children.length})`),`${o}${c}${s}${d}${a}`}i(rf,"inspectHTML");var uF=typeof Symbol=="function"&&typeof Symbol.for=="function",Hc=uF?Symbol.for("chai/inspect"):"@@chai/inspect",Gc=Symbol.for("nodejs.util.inspect.custom"),rg=new WeakMap,ng={},og={undefined:i((e,t)=>t.stylize("undefined","undefined"),"undefined"),null:i((e,t)=>t.stylize("null","null"),"null"),boolean:i((e,t)=>t.stylize(String(e),"boolean"),"boolean"),Boolean:i((e,t)=>t.stylize(String(e),"boolean"),"Boolean"),number:Pu,Number:Pu,bigint:Au,BigInt:Au,string:Ou,String:Ou,function:Ru,Function:Ru,symbol:Cu,Symbol:Cu,Array:jw,Date:kw,Map:Fw,Set:Jw,RegExp:Bw,Promise:lF,WeakSet:i((e,t)=>t.stylize("WeakSet{…}","special"),"WeakSet"),WeakMap:i((e,t)=>t.stylize("WeakMap{…}","special"),"WeakMap"),Arguments:Hw,Int8Array:Yt,Uint8Array:Yt,Uint8ClampedArray:Yt,Int16Array:Yt,Uint16Array:Yt,Int32Array:Yt,Uint32Array:Yt,Float32Array:Yt,Float64Array:Yt,Generator:i(()=>"","Generator"),DataView:i(()=>"","DataView"),ArrayBuffer:i(()=>"","ArrayBuffer"),Error:Gw,HTMLCollection:aa,NodeList:aa},dF=i((e,t,r,n)=>Hc in e&&typeof e[Hc]=="function"?e[Hc](t):Gc in e&&typeof e[Gc]=="function"?e[Gc](t.depth,t,n):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&rg.has(e.constructor)?rg.get(e.constructor)(e,t):ng[r]?ng[r](e,t):"","inspectCustom"),pF=Object.prototype.toString;function Oi(e,t={}){const r=Iw(t,Oi),{customInspect:n}=r;let o=e===null?"null":typeof e;if(o==="object"&&(o=pF.call(e).slice(8,-1)),o in og)return og[o](e,r);if(n&&e){const a=dF(e,r,o,Oi);if(a)return typeof a=="string"?a:Oi(a,r)}const s=e?Object.getPrototypeOf(e):!1;return s===Object.prototype||s===null?Ai(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?rf(e,r):"constructor"in e?e.constructor!==Object?Vw(e,r):Ai(e,r):e===Object(e)?Ai(e,r):r.stylize(String(e),o)}i(Oi,"inspect");var{AsymmetricMatcher:fF,DOMCollection:hF,DOMElement:mF,Immutable:yF,ReactElement:gF,ReactTestComponent:bF}=tf,ig=[bF,gF,mF,hF,yF,fF];function bt(e,t=10,{maxLength:r,...n}={}){const o=r??1e4;let s;try{s=Ht(e,{maxDepth:t,escapeString:!1,plugins:ig,...n})}catch{s=Ht(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:ig,...n})}return s.length>=o&&t>1?bt(e,Math.floor(Math.min(t,Number.MAX_SAFE_INTEGER)/2),{maxLength:r,...n}):s}i(bt,"stringify");var vF=/%[sdjifoOc%]/g;function Kw(...e){if(typeof e[0]!="string"){const s=[];for(let a=0;a<e.length;a++)s.push(Un(e[a],{depth:0,colors:!1}));return s.join(" ")}const t=e.length;let r=1;const n=e[0];let o=String(n).replace(vF,s=>{if(s==="%%")return"%";if(r>=t)return s;switch(s){case"%s":{const a=e[r++];return typeof a=="bigint"?`${a.toString()}n`:typeof a=="number"&&a===0&&1/a<0?"-0":typeof a=="object"&&a!==null?typeof a.toString=="function"&&a.toString!==Object.prototype.toString?a.toString():Un(a,{depth:0,colors:!1}):String(a)}case"%d":{const a=e[r++];return typeof a=="bigint"?`${a.toString()}n`:Number(a).toString()}case"%i":{const a=e[r++];return typeof a=="bigint"?`${a.toString()}n`:Number.parseInt(String(a)).toString()}case"%f":return Number.parseFloat(String(e[r++])).toString();case"%o":return Un(e[r++],{showHidden:!0,showProxy:!0});case"%O":return Un(e[r++]);case"%c":return r++,"";case"%j":try{return JSON.stringify(e[r++])}catch(a){const c=a.message;if(c.includes("circular structure")||c.includes("cyclic structures")||c.includes("cyclic object"))return"[Circular]";throw a}default:return s}});for(let s=e[r];r<t;s=e[++r])s===null||typeof s!="object"?o+=` ${s}`:o+=` ${Un(s)}`;return o}i(Kw,"format");function Un(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),Oi(e,t)}i(Un,"inspect");function nf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}i(nf,"getDefaultExportFromCjs");function Xt(e,t,r){const n=typeof e;if(!r.includes(n))throw new TypeError(`${t} value must be ${r.join(" or ")}, received "${n}"`)}i(Xt,"assertTypes");function Ci(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}i(Ci,"isObject");function Yw(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}i(Yw,"isFinalObj");function Ui(e){return Object.prototype.toString.apply(e).slice(8,-1)}i(Ui,"getType");function Xw(e,t){const r=typeof t=="function"?t:n=>t.add(n);Object.getOwnPropertyNames(e).forEach(r),Object.getOwnPropertySymbols(e).forEach(r)}i(Xw,"collectOwnProperties");function of(e){const t=new Set;return Yw(e)?[]:(Xw(e,t),Array.from(t))}i(of,"getOwnProperties");var Qw={forceWritable:!1};function xu(e,t=Qw){return la(e,new WeakMap,t)}i(xu,"deepClone");function la(e,t,r=Qw){let n,o;if(t.has(e))return t.get(e);if(Array.isArray(e)){for(o=Array.from({length:n=e.length}),t.set(e,o);n--;)o[n]=la(e[n],t,r);return o}if(Object.prototype.toString.call(e)==="[object Object]"){o=Object.create(Object.getPrototypeOf(e)),t.set(e,o);const s=of(e);for(const a of s){const c=Object.getOwnPropertyDescriptor(e,a);if(!c)continue;const u=la(e[a],t,r);r.forceWritable?Object.defineProperty(o,a,{enumerable:c.enumerable,configurable:!0,writable:!0,value:u}):"get"in c?Object.defineProperty(o,a,{...c,get(){return u}}):Object.defineProperty(o,a,{...c,value:u})}return o}return e}i(la,"clone");function Zw(){}i(Zw,"noop");var yt=-1,at=1,$e=0,e_=class{0;1;constructor(t,r){this[0]=t,this[1]=r}};i(e_,"Diff");var Fe=e_;function t_(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let r=0,n=Math.min(e.length,t.length),o=n,s=0;for(;r<o;)e.substring(s,o)===t.substring(s,o)?(r=o,s=r):n=o,o=Math.floor((n-r)/2+r);return o}i(t_,"diff_commonPrefix");function sf(e,t){if(!e||!t||e.charAt(e.length-1)!==t.charAt(t.length-1))return 0;let r=0,n=Math.min(e.length,t.length),o=n,s=0;for(;r<o;)e.substring(e.length-o,e.length-s)===t.substring(t.length-o,t.length-s)?(r=o,s=r):n=o,o=Math.floor((n-r)/2+r);return o}i(sf,"diff_commonSuffix");function Nu(e,t){const r=e.length,n=t.length;if(r===0||n===0)return 0;r>n?e=e.substring(r-n):r<n&&(t=t.substring(0,r));const o=Math.min(r,n);if(e===t)return o;let s=0,a=1;for(;;){const c=e.substring(o-a),u=t.indexOf(c);if(u===-1)return s;a+=u,(u===0||e.substring(o-a)===t.substring(0,a))&&(s=a,a++)}}i(Nu,"diff_commonOverlap_");function r_(e){let t=!1;const r=[];let n=0,o=null,s=0,a=0,c=0,u=0,d=0;for(;s<e.length;)e[s][0]===$e?(r[n++]=s,a=u,c=d,u=0,d=0,o=e[s][1]):(e[s][0]===at?u+=e[s][1].length:d+=e[s][1].length,o&&o.length<=Math.max(a,c)&&o.length<=Math.max(u,d)&&(e.splice(r[n-1],0,new Fe(yt,o)),e[r[n-1]+1][0]=at,n--,n--,s=n>0?r[n-1]:-1,a=0,c=0,u=0,d=0,o=null,t=!0)),s++;for(t&&af(e),n_(e),s=1;s<e.length;){if(e[s-1][0]===yt&&e[s][0]===at){const p=e[s-1][1],f=e[s][1],m=Nu(p,f),y=Nu(f,p);m>=y?(m>=p.length/2||m>=f.length/2)&&(e.splice(s,0,new Fe($e,f.substring(0,m))),e[s-1][1]=p.substring(0,p.length-m),e[s+1][1]=f.substring(m),s++):(y>=p.length/2||y>=f.length/2)&&(e.splice(s,0,new Fe($e,p.substring(0,y))),e[s-1][0]=at,e[s-1][1]=f.substring(0,f.length-y),e[s+1][0]=yt,e[s+1][1]=p.substring(y),s++),s++}s++}}i(r_,"diff_cleanupSemantic");var sg=/[^a-z0-9]/i,ag=/\s/,lg=/[\r\n]/,EF=/\n\r?\n$/,TF=/^\r?\n\r?\n/;function n_(e){let t=1;for(;t<e.length-1;){if(e[t-1][0]===$e&&e[t+1][0]===$e){let r=e[t-1][1],n=e[t][1],o=e[t+1][1];const s=sf(r,n);if(s){const p=n.substring(n.length-s);r=r.substring(0,r.length-s),n=p+n.substring(0,n.length-s),o=p+o}let a=r,c=n,u=o,d=gi(r,n)+gi(n,o);for(;n.charAt(0)===o.charAt(0);){r+=n.charAt(0),n=n.substring(1)+o.charAt(0),o=o.substring(1);const p=gi(r,n)+gi(n,o);p>=d&&(d=p,a=r,c=n,u=o)}e[t-1][1]!==a&&(a?e[t-1][1]=a:(e.splice(t-1,1),t--),e[t][1]=c,u?e[t+1][1]=u:(e.splice(t+1,1),t--))}t++}}i(n_,"diff_cleanupSemanticLossless");function af(e){e.push(new Fe($e,""));let t=0,r=0,n=0,o="",s="",a;for(;t<e.length;)switch(e[t][0]){case at:n++,s+=e[t][1],t++;break;case yt:r++,o+=e[t][1],t++;break;case $e:r+n>1?(r!==0&&n!==0&&(a=t_(s,o),a!==0&&(t-r-n>0&&e[t-r-n-1][0]===$e?e[t-r-n-1][1]+=s.substring(0,a):(e.splice(0,0,new Fe($e,s.substring(0,a))),t++),s=s.substring(a),o=o.substring(a)),a=sf(s,o),a!==0&&(e[t][1]=s.substring(s.length-a)+e[t][1],s=s.substring(0,s.length-a),o=o.substring(0,o.length-a))),t-=r+n,e.splice(t,r+n),o.length&&(e.splice(t,0,new Fe(yt,o)),t++),s.length&&(e.splice(t,0,new Fe(at,s)),t++),t++):t!==0&&e[t-1][0]===$e?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,n=0,r=0,o="",s="";break}e[e.length-1][1]===""&&e.pop();let c=!1;for(t=1;t<e.length-1;)e[t-1][0]===$e&&e[t+1][0]===$e&&(e[t][1].substring(e[t][1].length-e[t-1][1].length)===e[t-1][1]?(e[t][1]=e[t-1][1]+e[t][1].substring(0,e[t][1].length-e[t-1][1].length),e[t+1][1]=e[t-1][1]+e[t+1][1],e.splice(t-1,1),c=!0):e[t][1].substring(0,e[t+1][1].length)===e[t+1][1]&&(e[t-1][1]+=e[t+1][1],e[t][1]=e[t][1].substring(e[t+1][1].length)+e[t+1][1],e.splice(t+1,1),c=!0)),t++;c&&af(e)}i(af,"diff_cleanupMerge");function gi(e,t){if(!e||!t)return 6;const r=e.charAt(e.length-1),n=t.charAt(0),o=r.match(sg),s=n.match(sg),a=o&&r.match(ag),c=s&&n.match(ag),u=a&&r.match(lg),d=c&&n.match(lg),p=u&&e.match(EF),f=d&&t.match(TF);return p||f?5:u||d?4:o&&!a&&c?3:a||c?2:o||s?1:0}i(gi,"diff_cleanupSemanticScore_");var o_="Compared values have no visual difference.",wF="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",js={},cg;function i_(){if(cg)return js;cg=1,Object.defineProperty(js,"__esModule",{value:!0}),js.default=m;const e="diff-sequences",t=0,r=i((y,g,T,E,v)=>{let _=0;for(;y<g&&T<E&&v(y,T);)y+=1,T+=1,_+=1;return _},"countCommonItemsF"),n=i((y,g,T,E,v)=>{let _=0;for(;y<=g&&T<=E&&v(g,E);)g-=1,E-=1,_+=1;return _},"countCommonItemsR"),o=i((y,g,T,E,v,_,A)=>{let N=0,j=-y,C=_[N],R=C;_[N]+=r(C+1,g,E+C-j+1,T,v);const w=y<A?y:A;for(N+=1,j+=2;N<=w;N+=1,j+=2){if(N!==y&&R<_[N])C=_[N];else if(C=R+1,g<=C)return N-1;R=_[N],_[N]=C+r(C+1,g,E+C-j+1,T,v)}return A},"extendPathsF"),s=i((y,g,T,E,v,_,A)=>{let N=0,j=y,C=_[N],R=C;_[N]-=n(g,C-1,T,E+C-j-1,v);const w=y<A?y:A;for(N+=1,j-=2;N<=w;N+=1,j-=2){if(N!==y&&_[N]<R)C=_[N];else if(C=R-1,C<g)return N-1;R=_[N],_[N]=C-n(g,C-1,T,E+C-j-1,v)}return A},"extendPathsR"),a=i((y,g,T,E,v,_,A,N,j,C,R)=>{const w=E-g,S=T-g,I=v-E-S,V=-I-(y-1),H=-I+(y-1);let P=t;const L=y<N?y:N;for(let B=0,D=-y;B<=L;B+=1,D+=2){const K=B===0||B!==y&&P<A[B],X=K?A[B]:P,ie=K?X:X+1,se=w+ie-D,W=r(ie+1,T,se+1,v,_),ae=ie+W;if(P=A[B],A[B]=ae,V<=D&&D<=H){const be=(y-1-(D+I))/2;if(be<=C&&j[be]-1<=ae){const ue=w+X-(K?D+1:D-1),ee=n(g,X,E,ue,_),Ae=X-ee,Oe=ue-ee,Ve=Ae+1,We=Oe+1;R.nChangePreceding=y-1,y-1===Ve+We-g-E?(R.aEndPreceding=g,R.bEndPreceding=E):(R.aEndPreceding=Ve,R.bEndPreceding=We),R.nCommonPreceding=ee,ee!==0&&(R.aCommonPreceding=Ve,R.bCommonPreceding=We),R.nCommonFollowing=W,W!==0&&(R.aCommonFollowing=ie+1,R.bCommonFollowing=se+1);const J=ae+1,Q=se+W+1;return R.nChangeFollowing=y-1,y-1===T+v-J-Q?(R.aStartFollowing=T,R.bStartFollowing=v):(R.aStartFollowing=J,R.bStartFollowing=Q),!0}}}return!1},"extendOverlappablePathsF"),c=i((y,g,T,E,v,_,A,N,j,C,R)=>{const w=v-T,S=T-g,I=v-E-S,V=I-y,H=I+y;let P=t;const L=y<C?y:C;for(let B=0,D=y;B<=L;B+=1,D-=2){const K=B===0||B!==y&&j[B]<P,X=K?j[B]:P,ie=K?X:X-1,se=w+ie-D,W=n(g,ie-1,E,se-1,_),ae=ie-W;if(P=j[B],j[B]=ae,V<=D&&D<=H){const be=(y+(D-I))/2;if(be<=N&&ae-1<=A[be]){const ue=se-W;if(R.nChangePreceding=y,y===ae+ue-g-E?(R.aEndPreceding=g,R.bEndPreceding=E):(R.aEndPreceding=ae,R.bEndPreceding=ue),R.nCommonPreceding=W,W!==0&&(R.aCommonPreceding=ae,R.bCommonPreceding=ue),R.nChangeFollowing=y-1,y===1)R.nCommonFollowing=0,R.aStartFollowing=T,R.bStartFollowing=v;else{const ee=w+X-(K?D-1:D+1),Ae=r(X,T,ee,v,_);R.nCommonFollowing=Ae,Ae!==0&&(R.aCommonFollowing=X,R.bCommonFollowing=ee);const Oe=X+Ae,Ve=ee+Ae;y-1===T+v-Oe-Ve?(R.aStartFollowing=T,R.bStartFollowing=v):(R.aStartFollowing=Oe,R.bStartFollowing=Ve)}return!0}}}return!1},"extendOverlappablePathsR"),u=i((y,g,T,E,v,_,A,N,j)=>{const C=E-g,R=v-T,w=T-g,S=v-E,k=S-w;let I=w,V=w;if(A[0]=g-1,N[0]=T,k%2===0){const H=(y||k)/2,P=(w+S)/2;for(let L=1;L<=P;L+=1)if(I=o(L,T,v,C,_,A,I),L<H)V=s(L,g,E,R,_,N,V);else if(c(L,g,T,E,v,_,A,I,N,V,j))return}else{const H=((y||k)+1)/2,P=(w+S+1)/2;let L=1;for(I=o(L,T,v,C,_,A,I),L+=1;L<=P;L+=1)if(V=s(L-1,g,E,R,_,N,V),L<H)I=o(L,T,v,C,_,A,I);else if(a(L,g,T,E,v,_,A,I,N,V,j))return}throw new Error(`${e}: no overlap aStart=${g} aEnd=${T} bStart=${E} bEnd=${v}`)},"divide"),d=i((y,g,T,E,v,_,A,N,j,C)=>{if(v-E<T-g){if(_=!_,_&&A.length===1){const{foundSubsequence:ae,isCommon:be}=A[0];A[1]={foundSubsequence:i((ue,ee,Ae)=>{ae(ue,Ae,ee)},"foundSubsequence"),isCommon:i((ue,ee)=>be(ee,ue),"isCommon")}}const se=g,W=T;g=E,T=v,E=se,v=W}const{foundSubsequence:R,isCommon:w}=A[_?1:0];u(y,g,T,E,v,w,N,j,C);const{nChangePreceding:S,aEndPreceding:k,bEndPreceding:I,nCommonPreceding:V,aCommonPreceding:H,bCommonPreceding:P,nCommonFollowing:L,aCommonFollowing:B,bCommonFollowing:D,nChangeFollowing:K,aStartFollowing:X,bStartFollowing:ie}=C;g<k&&E<I&&d(S,g,k,E,I,_,A,N,j,C),V!==0&&R(V,H,P),L!==0&&R(L,B,D),X<T&&ie<v&&d(K,X,T,ie,v,_,A,N,j,C)},"findSubsequences"),p=i((y,g)=>{if(typeof g!="number")throw new TypeError(`${e}: ${y} typeof ${typeof g} is not a number`);if(!Number.isSafeInteger(g))throw new RangeError(`${e}: ${y} value ${g} is not a safe integer`);if(g<0)throw new RangeError(`${e}: ${y} value ${g} is a negative integer`)},"validateLength"),f=i((y,g)=>{const T=typeof g;if(T!=="function")throw new TypeError(`${e}: ${y} typeof ${T} is not a function`)},"validateCallback");function m(y,g,T,E){p("aLength",y),p("bLength",g),f("isCommon",T),f("foundSubsequence",E);const v=r(0,y,0,g,T);if(v!==0&&E(v,0,0),y!==v||g!==v){const _=v,A=v,N=n(_,y-1,A,g-1,T),j=y-N,C=g-N,R=v+N;y!==R&&g!==R&&d(0,_,j,A,C,!1,[{foundSubsequence:E,isCommon:T}],[t],[t],{aCommonFollowing:t,aCommonPreceding:t,aEndPreceding:t,aStartFollowing:t,bCommonFollowing:t,bCommonPreceding:t,bEndPreceding:t,bStartFollowing:t,nChangeFollowing:t,nChangePreceding:t,nCommonFollowing:t,nCommonPreceding:t}),N!==0&&E(N,j,C)}}return i(m,"diffSequence"),js}i(i_,"requireBuild");var _F=i_(),s_=nf(_F);function a_(e,t){return e.replace(/\s+$/,r=>t(r))}i(a_,"formatTrailingSpaces");function gl(e,t,r,n,o,s){return e.length!==0?r(`${n} ${a_(e,o)}`):n!==" "?r(n):t&&s.length!==0?r(`${n} ${s}`):""}i(gl,"printDiffLine");function lf(e,t,{aColor:r,aIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:s}){return gl(e,t,r,n,o,s)}i(lf,"printDeleteLine");function cf(e,t,{bColor:r,bIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:s}){return gl(e,t,r,n,o,s)}i(cf,"printInsertLine");function uf(e,t,{commonColor:r,commonIndicator:n,commonLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:s}){return gl(e,t,r,n,o,s)}i(uf,"printCommonLine");function Iu(e,t,r,n,{patchColor:o}){return o(`@@ -${e+1},${t-e} +${r+1},${n-r} @@`)}i(Iu,"createPatchMark");function l_(e,t){const r=e.length,n=t.contextLines,o=n+n;let s=r,a=!1,c=0,u=0;for(;u!==r;){const N=u;for(;u!==r&&e[u][0]===$e;)u+=1;if(N!==u)if(N===0)u>n&&(s-=u-n,a=!0);else if(u===r){const j=u-N;j>n&&(s-=j-n,a=!0)}else{const j=u-N;j>o&&(s-=j-o,c+=1)}for(;u!==r&&e[u][0]!==$e;)u+=1}const d=c!==0||a;c!==0?s+=c+1:a&&(s+=1);const p=s-1,f=[];let m=0;d&&f.push("");let y=0,g=0,T=0,E=0;const v=i(N=>{const j=f.length;f.push(uf(N,j===0||j===p,t)),T+=1,E+=1},"pushCommonLine"),_=i(N=>{const j=f.length;f.push(lf(N,j===0||j===p,t)),T+=1},"pushDeleteLine"),A=i(N=>{const j=f.length;f.push(cf(N,j===0||j===p,t)),E+=1},"pushInsertLine");for(u=0;u!==r;){let N=u;for(;u!==r&&e[u][0]===$e;)u+=1;if(N!==u)if(N===0){u>n&&(N=u-n,y=N,g=N,T=y,E=g);for(let j=N;j!==u;j+=1)v(e[j][1])}else if(u===r){const j=u-N>n?N+n:u;for(let C=N;C!==j;C+=1)v(e[C][1])}else{const j=u-N;if(j>o){const C=N+n;for(let w=N;w!==C;w+=1)v(e[w][1]);f[m]=Iu(y,T,g,E,t),m=f.length,f.push("");const R=j-o;y=T+R,g=E+R,T=y,E=g;for(let w=u-n;w!==u;w+=1)v(e[w][1])}else for(let C=N;C!==u;C+=1)v(e[C][1])}for(;u!==r&&e[u][0]===yt;)_(e[u][1]),u+=1;for(;u!==r&&e[u][0]===at;)A(e[u][1]),u+=1}return d&&(f[m]=Iu(y,T,g,E,t)),f.join(`
|
|
166
|
+
`)}i(l_,"joinAlignedDiffsNoExpand");function c_(e,t){return e.map((r,n,o)=>{const s=r[1],a=n===0||n===o.length-1;switch(r[0]){case yt:return lf(s,a,t);case at:return cf(s,a,t);default:return uf(s,a,t)}}).join(`
|
|
167
|
+
`)}i(c_,"joinAlignedDiffsExpand");var zc=i(e=>e,"noColor"),u_=5,SF=0;function d_(){return{aAnnotation:"Expected",aColor:Je.green,aIndicator:"-",bAnnotation:"Received",bColor:Je.red,bIndicator:"+",changeColor:Je.inverse,changeLineTrailingSpaceColor:zc,commonColor:Je.dim,commonIndicator:" ",commonLineTrailingSpaceColor:zc,compareKeys:void 0,contextLines:u_,emptyFirstOrLastLinePlaceholder:"",expand:!1,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:Je.yellow,printBasicPrototype:!1,truncateThreshold:SF,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:zc}}i(d_,"getDefaultOptions");function p_(e){return e&&typeof e=="function"?e:void 0}i(p_,"getCompareKeys");function f_(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0?e:u_}i(f_,"getContextLines");function Yr(e={}){return{...d_(),...e,compareKeys:p_(e.compareKeys),contextLines:f_(e.contextLines)}}i(Yr,"normalizeDiffOptions");function un(e){return e.length===1&&e[0].length===0}i(un,"isEmptyString");function h_(e){let t=0,r=0;return e.forEach(n=>{switch(n[0]){case yt:t+=1;break;case at:r+=1;break}}),{a:t,b:r}}i(h_,"countChanges");function m_({aAnnotation:e,aColor:t,aIndicator:r,bAnnotation:n,bColor:o,bIndicator:s,includeChangeCounts:a,omitAnnotationLines:c},u){if(c)return"";let d="",p="";if(a){const y=String(u.a),g=String(u.b),T=n.length-e.length,E=" ".repeat(Math.max(0,T)),v=" ".repeat(Math.max(0,-T)),_=g.length-y.length,A=" ".repeat(Math.max(0,_)),N=" ".repeat(Math.max(0,-_));d=`${E} ${r} ${A}${y}`,p=`${v} ${s} ${N}${g}`}const f=`${r} ${e}${d}`,m=`${s} ${n}${p}`;return`${t(f)}
|
|
168
|
+
${o(m)}
|
|
169
|
+
|
|
170
|
+
`}i(m_,"printAnnotation");function bl(e,t,r){return m_(r,h_(e))+(r.expand?c_(e,r):l_(e,r))+(t?r.truncateAnnotationColor(`
|
|
171
|
+
${r.truncateAnnotation}`):"")}i(bl,"printDiffLines");function hs(e,t,r){const n=Yr(r),[o,s]=df(un(e)?[]:e,un(t)?[]:t,n);return bl(o,s,n)}i(hs,"diffLinesUnified");function y_(e,t,r,n,o){if(un(e)&&un(r)&&(e=[],r=[]),un(t)&&un(n)&&(t=[],n=[]),e.length!==r.length||t.length!==n.length)return hs(e,t,o);const[s,a]=df(r,n,o);let c=0,u=0;return s.forEach(d=>{switch(d[0]){case yt:d[1]=e[c],c+=1;break;case at:d[1]=t[u],u+=1;break;default:d[1]=t[u],c+=1,u+=1}}),bl(s,a,Yr(o))}i(y_,"diffLinesUnified2");function df(e,t,r){const n=r?.truncateThreshold??!1,o=Math.max(Math.floor(r?.truncateThreshold??0),0),s=n?Math.min(e.length,o):e.length,a=n?Math.min(t.length,o):t.length,c=s!==e.length||a!==t.length,u=i((y,g)=>e[y]===t[g],"isCommon"),d=[];let p=0,f=0;for(s_(s,a,u,i((y,g,T)=>{for(;p!==g;p+=1)d.push(new Fe(yt,e[p]));for(;f!==T;f+=1)d.push(new Fe(at,t[f]));for(;y!==0;y-=1,p+=1,f+=1)d.push(new Fe($e,t[f]))},"foundSubsequence"));p!==s;p+=1)d.push(new Fe(yt,e[p]));for(;f!==a;f+=1)d.push(new Fe(at,t[f]));return[d,c]}i(df,"diffLinesRaw");function Mu(e){if(e===void 0)return"undefined";if(e===null)return"null";if(Array.isArray(e))return"array";if(typeof e=="boolean")return"boolean";if(typeof e=="function")return"function";if(typeof e=="number")return"number";if(typeof e=="string")return"string";if(typeof e=="bigint")return"bigint";if(typeof e=="object"){if(e!=null){if(e.constructor===RegExp)return"regexp";if(e.constructor===Map)return"map";if(e.constructor===Set)return"set";if(e.constructor===Date)return"date"}return"object"}else if(typeof e=="symbol")return"symbol";throw new Error(`value of unknown type: ${e}`)}i(Mu,"getType");function qu(e){return e.includes(`\r
|
|
172
|
+
`)?`\r
|
|
173
|
+
`:`
|
|
174
|
+
`}i(qu,"getNewLineSymbol");function g_(e,t,r){const n=r?.truncateThreshold??!1,o=Math.max(Math.floor(r?.truncateThreshold??0),0);let s=e.length,a=t.length;if(n){const y=e.includes(`
|
|
175
|
+
`),g=t.includes(`
|
|
176
|
+
`),T=qu(e),E=qu(t),v=y?`${e.split(T,o).join(T)}
|
|
177
|
+
`:e,_=g?`${t.split(E,o).join(E)}
|
|
178
|
+
`:t;s=v.length,a=_.length}const c=s!==e.length||a!==t.length,u=i((y,g)=>e[y]===t[g],"isCommon");let d=0,p=0;const f=[];return s_(s,a,u,i((y,g,T)=>{d!==g&&f.push(new Fe(yt,e.slice(d,g))),p!==T&&f.push(new Fe(at,t.slice(p,T))),d=g+y,p=T+y,f.push(new Fe($e,t.slice(T,p)))},"foundSubsequence")),d!==s&&f.push(new Fe(yt,e.slice(d))),p!==a&&f.push(new Fe(at,t.slice(p))),[f,c]}i(g_,"diffStrings");function b_(e,t,r){return t.reduce((n,o)=>n+(o[0]===$e?o[1]:o[0]===e&&o[1].length!==0?r(o[1]):""),"")}i(b_,"concatenateRelevantDiffs");var v_=class{op;line;lines;changeColor;constructor(t,r){this.op=t,this.line=[],this.lines=[],this.changeColor=r}pushSubstring(t){this.pushDiff(new Fe(this.op,t))}pushLine(){this.lines.push(this.line.length!==1?new Fe(this.op,b_(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new Fe(this.op,this.line[0][1])),this.line.length=0}isLineEmpty(){return this.line.length===0}pushDiff(t){this.line.push(t)}align(t){const r=t[1];if(r.includes(`
|
|
179
|
+
`)){const n=r.split(`
|
|
180
|
+
`),o=n.length-1;n.forEach((s,a)=>{a<o?(this.pushSubstring(s),this.pushLine()):s.length!==0&&this.pushSubstring(s)})}else this.pushDiff(t)}moveLinesTo(t){this.isLineEmpty()||this.pushLine(),t.push(...this.lines),this.lines.length=0}};i(v_,"ChangeBuffer");var ug=v_,E_=class{deleteBuffer;insertBuffer;lines;constructor(t,r){this.deleteBuffer=t,this.insertBuffer=r,this.lines=[]}pushDiffCommonLine(t){this.lines.push(t)}pushDiffChangeLines(t){const r=t[1].length===0;(!r||this.deleteBuffer.isLineEmpty())&&this.deleteBuffer.pushDiff(t),(!r||this.insertBuffer.isLineEmpty())&&this.insertBuffer.pushDiff(t)}flushChangeLines(){this.deleteBuffer.moveLinesTo(this.lines),this.insertBuffer.moveLinesTo(this.lines)}align(t){const r=t[0],n=t[1];if(n.includes(`
|
|
181
|
+
`)){const o=n.split(`
|
|
182
|
+
`),s=o.length-1;o.forEach((a,c)=>{if(c===0){const u=new Fe(r,a);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(u)):(this.pushDiffChangeLines(u),this.flushChangeLines())}else c<s?this.pushDiffCommonLine(new Fe(r,a)):a.length!==0&&this.pushDiffChangeLines(new Fe(r,a))})}else this.pushDiffChangeLines(t)}getLines(){return this.flushChangeLines(),this.lines}};i(E_,"CommonBuffer");var RF=E_;function T_(e,t){const r=new ug(yt,t),n=new ug(at,t),o=new RF(r,n);return e.forEach(s=>{switch(s[0]){case yt:r.align(s);break;case at:n.align(s);break;default:o.align(s)}}),o.getLines()}i(T_,"getAlignedDiffs");function w_(e,t){if(t){const r=e.length-1;return e.some((n,o)=>n[0]===$e&&(o!==r||n[1]!==`
|
|
183
|
+
`))}return e.some(r=>r[0]===$e)}i(w_,"hasCommonDiff");function __(e,t,r){if(e!==t&&e.length!==0&&t.length!==0){const n=e.includes(`
|
|
184
|
+
`)||t.includes(`
|
|
185
|
+
`),[o,s]=pf(n?`${e}
|
|
186
|
+
`:e,n?`${t}
|
|
187
|
+
`:t,!0,r);if(w_(o,n)){const a=Yr(r),c=T_(o,a.changeColor);return bl(c,s,a)}}return hs(e.split(`
|
|
188
|
+
`),t.split(`
|
|
189
|
+
`),r)}i(__,"diffStringsUnified");function pf(e,t,r,n){const[o,s]=g_(e,t,n);return r&&r_(o),[o,s]}i(pf,"diffStringsRaw");function ca(e,t){const{commonColor:r}=Yr(t);return r(e)}i(ca,"getCommonMessage");var{AsymmetricMatcher:PF,DOMCollection:AF,DOMElement:OF,Immutable:CF,ReactElement:xF,ReactTestComponent:NF}=tf,S_=[NF,xF,OF,AF,CF,PF,tf.Error],ju={maxDepth:20,plugins:S_},R_={callToJSON:!1,maxDepth:8,plugins:S_};function kn(e,t,r){if(Object.is(e,t))return"";const n=Mu(e);let o=n,s=!1;if(n==="object"&&typeof e.asymmetricMatch=="function"){if(e.$$typeof!==Symbol.for("jest.asymmetricMatcher")||typeof e.getExpectedType!="function")return;o=e.getExpectedType(),s=o==="string"}if(o!==Mu(t)){let a=function(A){return A.length<=E?A:`${A.slice(0,E)}...`};i(a,"truncate");const{aAnnotation:c,aColor:u,aIndicator:d,bAnnotation:p,bColor:f,bIndicator:m}=Yr(r),y=ua(R_,r);let g=Ht(e,y),T=Ht(t,y);const E=1e5;g=a(g),T=a(T);const v=`${u(`${d} ${c}:`)}
|
|
190
|
+
${g}`,_=`${f(`${m} ${p}:`)}
|
|
191
|
+
${T}`;return`${v}
|
|
192
|
+
|
|
193
|
+
${_}`}if(!s)switch(n){case"string":return hs(e.split(`
|
|
194
|
+
`),t.split(`
|
|
195
|
+
`),r);case"boolean":case"number":return P_(e,t,r);case"map":return Us(ku(e),ku(t),r);case"set":return Us(Du(e),Du(t),r);default:return Us(e,t,r)}}i(kn,"diff");function P_(e,t,r){const n=Ht(e,ju),o=Ht(t,ju);return n===o?"":hs(n.split(`
|
|
196
|
+
`),o.split(`
|
|
197
|
+
`),r)}i(P_,"comparePrimitive");function ku(e){return new Map(Array.from(e.entries()).sort())}i(ku,"sortMap");function Du(e){return new Set(Array.from(e.values()).sort())}i(Du,"sortSet");function Us(e,t,r){let n,o=!1;try{const a=ua(ju,r);n=Lu(e,t,a,r)}catch{o=!0}const s=ca(o_,r);if(n===void 0||n===s){const a=ua(R_,r);n=Lu(e,t,a,r),n!==s&&!o&&(n=`${ca(wF,r)}
|
|
198
|
+
|
|
199
|
+
${n}`)}return n}i(Us,"compareObjects");function ua(e,t){const{compareKeys:r,printBasicPrototype:n,maxDepth:o}=Yr(t);return{...e,compareKeys:r,printBasicPrototype:n,maxDepth:o??e.maxDepth}}i(ua,"getFormatOptions");function Lu(e,t,r,n){const o={...r,indent:0},s=Ht(e,o),a=Ht(t,o);if(s===a)return ca(o_,n);{const c=Ht(e,r),u=Ht(t,r);return y_(c.split(`
|
|
200
|
+
`),u.split(`
|
|
201
|
+
`),s.split(`
|
|
202
|
+
`),a.split(`
|
|
203
|
+
`),n)}}i(Lu,"getObjectsDifference");var dg=2e4;function Fu(e){return Ui(e)==="Object"&&typeof e.asymmetricMatch=="function"}i(Fu,"isAsymmetricMatcher");function Bu(e,t){const r=Ui(e),n=Ui(t);return r===n&&(r==="Object"||r==="Array")}i(Bu,"isReplaceable");function ff(e,t,r){const{aAnnotation:n,bAnnotation:o}=Yr(r);if(typeof t=="string"&&typeof e=="string"&&t.length>0&&e.length>0&&t.length<=dg&&e.length<=dg&&t!==e){if(t.includes(`
|
|
204
|
+
`)||e.includes(`
|
|
205
|
+
`))return __(t,e,r);const[p]=pf(t,e,!0),f=p.some(T=>T[0]===$e),m=A_(n,o),y=m(n)+C_($u(p,yt,f)),g=m(o)+O_($u(p,at,f));return`${y}
|
|
206
|
+
${g}`}const s=xu(t,{forceWritable:!0}),a=xu(e,{forceWritable:!0}),{replacedExpected:c,replacedActual:u}=hf(a,s);return kn(c,u,r)}i(ff,"printDiffOrStringify");function hf(e,t,r=new WeakSet,n=new WeakSet){return e instanceof Error&&t instanceof Error&&typeof e.cause<"u"&&typeof t.cause>"u"?(delete e.cause,{replacedActual:e,replacedExpected:t}):Bu(e,t)?r.has(e)||n.has(t)?{replacedActual:e,replacedExpected:t}:(r.add(e),n.add(t),of(t).forEach(o=>{const s=t[o],a=e[o];if(Fu(s))s.asymmetricMatch(a)&&(e[o]=s);else if(Fu(a))a.asymmetricMatch(s)&&(t[o]=a);else if(Bu(a,s)){const c=hf(a,s,r,n);e[o]=c.replacedActual,t[o]=c.replacedExpected}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}i(hf,"replaceAsymmetricMatcher");function A_(...e){const t=e.reduce((r,n)=>n.length>r?n.length:r,0);return r=>`${r}: ${" ".repeat(t-r.length)}`}i(A_,"getLabelPrinter");var IF="·";function mf(e){return e.replace(/\s+$/gm,t=>IF.repeat(t.length))}i(mf,"replaceTrailingSpaces");function O_(e){return Je.red(mf(bt(e)))}i(O_,"printReceived");function C_(e){return Je.green(mf(bt(e)))}i(C_,"printExpected");function $u(e,t,r){return e.reduce((n,o)=>n+(o[0]===$e?o[1]:o[0]===t?r?Je.inverse(o[1]):o[1]:""),"")}i($u,"getCommonAndChangedSubstrings");var MF="@@__IMMUTABLE_RECORD__@@",qF="@@__IMMUTABLE_ITERABLE__@@";function x_(e){return e&&(e[qF]||e[MF])}i(x_,"isImmutable");var jF=Object.getPrototypeOf({});function Ju(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e=="string"?`<unserializable>: ${e}`:"<unserializable>"}i(Ju,"getUnserializableMessage");function vr(e,t=new WeakMap){if(!e||typeof e=="string")return e;if(e instanceof Error&&"toJSON"in e&&typeof e.toJSON=="function"){const r=e.toJSON();return r&&r!==e&&typeof r=="object"&&(typeof e.message=="string"&&bi(()=>r.message??(r.message=e.message)),typeof e.stack=="string"&&bi(()=>r.stack??(r.stack=e.stack)),typeof e.name=="string"&&bi(()=>r.name??(r.name=e.name)),e.cause!=null&&bi(()=>r.cause??(r.cause=vr(e.cause,t)))),vr(r,t)}if(typeof e=="function")return`Function<${e.name||"anonymous"}>`;if(typeof e=="symbol")return e.toString();if(typeof e!="object")return e;if(typeof Buffer<"u"&&e instanceof Buffer)return`<Buffer(${e.length}) ...>`;if(typeof Uint8Array<"u"&&e instanceof Uint8Array)return`<Uint8Array(${e.length}) ...>`;if(x_(e))return vr(e.toJSON(),t);if(e instanceof Promise||e.constructor&&e.constructor.prototype==="AsyncFunction")return"Promise";if(typeof Element<"u"&&e instanceof Element)return e.tagName;if(typeof e.asymmetricMatch=="function")return`${e.toString()} ${Kw(e.sample)}`;if(typeof e.toJSON=="function")return vr(e.toJSON(),t);if(t.has(e))return t.get(e);if(Array.isArray(e)){const r=new Array(e.length);return t.set(e,r),e.forEach((n,o)=>{try{r[o]=vr(n,t)}catch(s){r[o]=Ju(s)}}),r}else{const r=Object.create(null);t.set(e,r);let n=e;for(;n&&n!==jF;)Object.getOwnPropertyNames(n).forEach(o=>{if(!(o in r))try{r[o]=vr(e[o],t)}catch(s){delete r[o],r[o]=Ju(s)}}),n=Object.getPrototypeOf(n);return r}}i(vr,"serializeValue");function bi(e){try{return e()}catch{}}i(bi,"safe");function N_(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}i(N_,"normalizeErrorMessage");function vl(e,t,r=new WeakSet){if(!e||typeof e!="object")return{message:String(e)};const n=e;(n.showDiff||n.showDiff===void 0&&n.expected!==void 0&&n.actual!==void 0)&&(n.diff=ff(n.actual,n.expected,{...t,...n.diffOptions})),"expected"in n&&typeof n.expected!="string"&&(n.expected=bt(n.expected,10)),"actual"in n&&typeof n.actual!="string"&&(n.actual=bt(n.actual,10));try{typeof n.message=="string"&&(n.message=N_(n.message))}catch{}try{!r.has(n)&&typeof n.cause=="object"&&(r.add(n),n.cause=vl(n.cause,t,r))}catch{}try{return vr(n)}catch(o){return vr(new Error(`Failed to fully serialize error: ${o?.message}
|
|
207
|
+
Inner error message: ${n?.message}`))}}i(vl,"processError");var pr={CALL:"storybook/instrumenter/call",SYNC:"storybook/instrumenter/sync",START:"storybook/instrumenter/start",BACK:"storybook/instrumenter/back",GOTO:"storybook/instrumenter/goto",NEXT:"storybook/instrumenter/next",END:"storybook/instrumenter/end"},Wc=globalThis.__STORYBOOK_ADDONS_PREVIEW,kF=new Error("This function ran after the play function completed. Did you forget to `await` it?"),pg=i(e=>Object.prototype.toString.call(e)==="[object Object]","isObject"),DF=i(e=>Object.prototype.toString.call(e)==="[object Module]","isModule"),LF=i(e=>{if(!pg(e)&&!DF(e))return!1;if(e.constructor===void 0)return!0;const t=e.constructor.prototype;return!!pg(t)},"isInstrumentable"),FF=i(e=>{try{return new e.constructor}catch{return{}}},"construct"),Kc=i(()=>({renderPhase:"preparing",isDebugging:!1,isPlaying:!1,isLocked:!1,cursor:0,calls:[],shadowCalls:[],callRefsByResult:new Map,chainedCallIds:new Set,ancestors:[],playUntil:void 0,resolvers:{},syncTimeout:void 0}),"getInitialState"),fg=i((e,t=!1)=>{const r=(t?e.shadowCalls:e.calls).filter(o=>o.retain);if(!r.length)return;const n=new Map(Array.from(e.callRefsByResult.entries()).filter(([,o])=>o.retain));return{cursor:r.length,calls:r,callRefsByResult:n}},"getRetainedState"),I_=class{constructor(){this.detached=!1,this.initialized=!1,this.state={},this.loadParentWindowState=i(()=>{try{this.state=te.window?.parent?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__||{}}catch{this.detached=!0}},"loadParentWindowState"),this.updateParentWindowState=i(()=>{try{te.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state}catch{this.detached=!0}},"updateParentWindowState"),this.loadParentWindowState();const t=i(({storyId:u,renderPhase:d,isPlaying:p=!0,isDebugging:f=!1})=>{const m=this.getState(u);this.setState(u,{...Kc(),...fg(m,f),renderPhase:d||m.renderPhase,shadowCalls:f?m.shadowCalls:[],chainedCallIds:f?m.chainedCallIds:new Set,playUntil:f?m.playUntil:void 0,isPlaying:p,isDebugging:f}),this.sync(u)},"resetState"),r=i(u=>({storyId:d,playUntil:p})=>{this.getState(d).isDebugging||this.setState(d,({calls:m})=>({calls:[],shadowCalls:m.map(y=>({...y,status:"waiting"})),isDebugging:!0}));const f=this.getLog(d);this.setState(d,({shadowCalls:m})=>{if(p||!f.length)return{playUntil:p};const y=m.findIndex(g=>g.id===f[0].callId);return{playUntil:m.slice(0,y).filter(g=>g.interceptable&&!g.ancestors?.length).slice(-1)[0]?.id}}),u.emit(ia,{storyId:d,isDebugging:!0})},"start"),n=i(u=>({storyId:d})=>{const p=this.getLog(d).filter(m=>!m.ancestors?.length),f=p.reduceRight((m,y,g)=>m>=0||y.status==="waiting"?m:g,-1);r(u)({storyId:d,playUntil:p[f-1]?.callId})},"back"),o=i(u=>({storyId:d,callId:p})=>{const{calls:f,shadowCalls:m,resolvers:y}=this.getState(d),g=f.find(({id:E})=>E===p),T=m.find(({id:E})=>E===p);if(!g&&T&&Object.values(y).length>0){const E=this.getLog(d).find(v=>v.status==="waiting")?.callId;T.id!==E&&this.setState(d,{playUntil:T.id}),Object.values(y).forEach(v=>v())}else r(u)({storyId:d,playUntil:p})},"goto"),s=i(u=>({storyId:d})=>{const{resolvers:p}=this.getState(d);if(Object.values(p).length>0)Object.values(p).forEach(f=>f());else{const f=this.getLog(d).find(m=>m.status==="waiting")?.callId;f?r(u)({storyId:d,playUntil:f}):a({storyId:d})}},"next"),a=i(({storyId:u})=>{this.setState(u,{playUntil:void 0,isDebugging:!1}),Object.values(this.getState(u).resolvers).forEach(d=>d())},"end"),c=i(({storyId:u,newPhase:d})=>{const{isDebugging:p}=this.getState(u);if(d==="preparing"&&p)return t({storyId:u,renderPhase:d,isDebugging:p});if(d==="playing")return t({storyId:u,renderPhase:d,isDebugging:p});d==="played"?this.setState(u,{renderPhase:d,isLocked:!1,isPlaying:!1,isDebugging:!1}):d==="errored"?this.setState(u,{renderPhase:d,isLocked:!1,isPlaying:!1}):d==="aborted"?this.setState(u,{renderPhase:d,isLocked:!0,isPlaying:!1}):this.setState(u,{renderPhase:d}),this.sync(u)},"renderPhaseChanged");Wc&&Wc.ready().then(()=>{this.channel=Wc.getChannel(),this.channel.on(ia,t),this.channel.on(Tn,c),this.channel.on(bp,()=>{this.initialized?this.cleanup():this.initialized=!0}),this.channel.on(pr.START,r(this.channel)),this.channel.on(pr.BACK,n(this.channel)),this.channel.on(pr.GOTO,o(this.channel)),this.channel.on(pr.NEXT,s(this.channel)),this.channel.on(pr.END,a)})}getState(t){return this.state[t]||Kc()}setState(t,r){if(t){const n=this.getState(t),o=typeof r=="function"?r(n):r;this.state={...this.state,[t]:{...n,...o}},this.updateParentWindowState()}}cleanup(){this.state=Object.entries(this.state).reduce((n,[o,s])=>{const a=fg(s);return a&&(n[o]=Object.assign(Kc(),a)),n},{});const r={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:[]};this.channel?.emit(pr.SYNC,r),this.updateParentWindowState()}getLog(t){const{calls:r,shadowCalls:n}=this.getState(t),o=[...n];r.forEach((a,c)=>{o[c]=a});const s=new Set;return o.reduceRight((a,c)=>(c.args.forEach(u=>{u?.__callId__&&s.add(u.__callId__)}),c.path.forEach(u=>{u.__callId__&&s.add(u.__callId__)}),(c.interceptable||c.exception)&&!s.has(c.id)&&(a.unshift({callId:c.id,status:c.status,ancestors:c.ancestors}),s.add(c.id)),a),[])}instrument(t,r,n=0){if(!LF(t))return t;const{mutate:o=!1,path:s=[]}=r,a=r.getKeys?r.getKeys(t,n):Object.keys(t);return n+=1,a.reduce((c,u)=>{const d=M_(t,u);if(typeof d?.get=="function"){if(d.configurable){const f=i(()=>d?.get?.bind(t)?.(),"getter");Object.defineProperty(c,u,{get:i(()=>this.instrument(f(),{...r,path:s.concat(u)},n),"get")})}return c}const p=t[u];return typeof p!="function"?(c[u]=this.instrument(p,{...r,path:s.concat(u)},n),c):"__originalFn__"in p&&typeof p.__originalFn__=="function"?(c[u]=p,c):(c[u]=(...f)=>this.track(u,p,t,f,r),c[u].__originalFn__=p,Object.defineProperty(c[u],"name",{value:u,writable:!1}),Object.keys(p).length>0&&Object.assign(c[u],this.instrument({...p},{...r,path:s.concat(u)},n)),c)},o?t:FF(t))}track(t,r,n,o,s){const a=o?.[0]?.__storyId__||te.__STORYBOOK_PREVIEW__?.selectionStore?.selection?.storyId,{cursor:c,ancestors:u}=this.getState(a);this.setState(a,{cursor:c+1});const d=`${u.slice(-1)[0]||a} [${c}] ${t}`,{path:p=[],intercept:f=!1,retain:m=!1}=s,y=typeof f=="function"?f(t,p):f,g={id:d,cursor:c,storyId:a,ancestors:u,path:p,method:t,args:o,interceptable:y,retain:m},E=(y&&!u.length?this.intercept:this.invoke).call(this,r,n,g,s);return this.instrument(E,{...s,mutate:!0,path:[{__callId__:g.id}]})}intercept(t,r,n,o){const{chainedCallIds:s,isDebugging:a,playUntil:c}=this.getState(n.storyId),u=s.has(n.id);return!a||u||c?(c===n.id&&this.setState(n.storyId,{playUntil:void 0}),this.invoke(t,r,n,o)):new Promise(d=>{this.setState(n.storyId,({resolvers:p})=>({isLocked:!1,resolvers:{...p,[n.id]:d}}))}).then(()=>(this.setState(n.storyId,d=>{const{[n.id]:p,...f}=d.resolvers;return{isLocked:!0,resolvers:f}}),this.invoke(t,r,n,o)))}invoke(t,r,n,o){const{callRefsByResult:s,renderPhase:a}=this.getState(n.storyId),c=25,u=i((f,m,y)=>{if(y.includes(f))return"[Circular]";if(y=[...y,f],m>c)return"...";if(s.has(f))return s.get(f);if(f instanceof Array)return f.map(g=>u(g,++m,y));if(f instanceof Date)return{__date__:{value:f.toISOString()}};if(f instanceof Error){const{name:g,message:T,stack:E}=f;return{__error__:{name:g,message:T,stack:E}}}if(f instanceof RegExp){const{flags:g,source:T}=f;return{__regexp__:{flags:g,source:T}}}if(f instanceof te.window?.HTMLElement){const{prefix:g,localName:T,id:E,classList:v,innerText:_}=f,A=Array.from(v);return{__element__:{prefix:g,localName:T,id:E,classNames:A,innerText:_}}}return typeof f=="function"?{__function__:{name:"getMockName"in f?f.getMockName():f.name}}:typeof f=="symbol"?{__symbol__:{description:f.description}}:typeof f=="object"&&f?.constructor?.name&&f?.constructor?.name!=="Object"?{__class__:{name:f.constructor.name}}:Object.prototype.toString.call(f)==="[object Object]"?Object.fromEntries(Object.entries(f).map(([g,T])=>[g,u(T,++m,y)])):f},"serializeValues"),d={...n,args:n.args.map(f=>u(f,0,[]))};n.path.forEach(f=>{f?.__callId__&&this.setState(n.storyId,({chainedCallIds:m})=>({chainedCallIds:new Set(Array.from(m).concat(f.__callId__))}))});const p=i(f=>{if(f instanceof Error){const{name:m,message:y,stack:g,callId:T=n.id}=f,{showDiff:E=void 0,diff:v=void 0,actual:_=void 0,expected:A=void 0}=f.name==="AssertionError"?vl(f):f,N={name:m,message:y,stack:g,callId:T,showDiff:E,diff:v,actual:_,expected:A};if(this.update({...d,status:"error",exception:N}),this.setState(n.storyId,j=>({callRefsByResult:new Map([...Array.from(j.callRefsByResult.entries()),[f,{__callId__:n.id,retain:n.retain}]])})),n.ancestors?.length)throw Object.prototype.hasOwnProperty.call(f,"callId")||Object.defineProperty(f,"callId",{value:n.id}),f}throw f},"handleException");try{if(a==="played"&&!n.retain)throw kF;const m=(o.getArgs?o.getArgs(n,this.getState(n.storyId)):n.args).map(g=>typeof g!="function"||q_(g)||Object.keys(g).length?g:(...T)=>{const{cursor:E,ancestors:v}=this.getState(n.storyId);this.setState(n.storyId,{cursor:0,ancestors:[...v,n.id]});const _=i(()=>this.setState(n.storyId,{cursor:E,ancestors:v}),"restore");let A=!1;try{const N=g(...T);return N instanceof Promise?(A=!0,N.finally(_)):N}finally{A||_()}}),y=t.apply(r,m);return y&&["object","function","symbol"].includes(typeof y)&&this.setState(n.storyId,g=>({callRefsByResult:new Map([...Array.from(g.callRefsByResult.entries()),[y,{__callId__:n.id,retain:n.retain}]])})),this.update({...d,status:y instanceof Promise?"active":"done"}),y instanceof Promise?y.then(g=>(this.update({...d,status:"done"}),g),p):y}catch(f){return p(f)}}update(t){this.channel?.emit(pr.CALL,t),this.setState(t.storyId,({calls:r})=>{const n=r.concat(t).reduce((o,s)=>Object.assign(o,{[s.id]:s}),{});return{calls:Object.values(n).sort((o,s)=>o.id.localeCompare(s.id,void 0,{numeric:!0}))}}),this.sync(t.storyId)}sync(t){const r=i(()=>{const{isLocked:n,isPlaying:o}=this.getState(t),s=this.getLog(t),a=s.filter(({ancestors:f})=>!f.length).find(f=>f.status==="waiting")?.callId,c=s.some(f=>f.status==="active");if(this.detached||n||c||s.length===0){const m={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:s};this.channel?.emit(pr.SYNC,m);return}const u=s.some(f=>f.status==="done"||f.status==="error"),p={controlStates:{detached:this.detached,start:u,back:u,goto:!0,next:o,end:o},logItems:s,pausedAt:a};this.channel?.emit(pr.SYNC,p)},"synchronize");this.setState(t,({syncTimeout:n})=>(clearTimeout(n),{syncTimeout:setTimeout(r,0)}))}};i(I_,"Instrumenter");var BF=I_;function Co(e,t={}){try{let r=!1,n=!1;return te.window?.location?.search?.includes("instrument=true")?r=!0:te.window?.location?.search?.includes("instrument=false")&&(n=!0),te.window?.parent===te.window&&!r||n?e:(te.window&&!te.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__&&(te.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__=new BF),(te.window?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(e,t))}catch(r){return Ue.warn(r),e}}i(Co,"instrument");function M_(e,t){let r=e;for(;r!=null;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}i(M_,"getPropertyDescriptor");function q_(e){if(typeof e!="function")return!1;const t=Object.getOwnPropertyDescriptor(e,"prototype");return t?!t.writable:!1}i(q_,"isClass");var j_=Object.defineProperty,G=i((e,t)=>j_(e,"name",{value:t,configurable:!0}),"__name"),yf=i((e,t)=>{for(var r in t)j_(e,r,{get:t[r],enumerable:!0})},"__export"),Zt={};yf(Zt,{addChainableMethod:i(()=>Nl,"addChainableMethod"),addLengthGuard:i(()=>Io,"addLengthGuard"),addMethod:i(()=>Ol,"addMethod"),addProperty:i(()=>Al,"addProperty"),checkError:i(()=>St,"checkError"),compareByInspect:i(()=>zi,"compareByInspect"),eql:i(()=>D_,"eql"),expectTypes:i(()=>_f,"expectTypes"),flag:i(()=>he,"flag"),getActual:i(()=>ys,"getActual"),getMessage:i(()=>wl,"getMessage"),getName:i(()=>bs,"getName"),getOperator:i(()=>jl,"getOperator"),getOwnEnumerableProperties:i(()=>ql,"getOwnEnumerableProperties"),getOwnEnumerablePropertySymbols:i(()=>Ml,"getOwnEnumerablePropertySymbols"),getPathInfo:i(()=>Pl,"getPathInfo"),hasProperty:i(()=>gs,"hasProperty"),inspect:i(()=>we,"inspect"),isNaN:i(()=>Ra,"isNaN"),isNumeric:i(()=>tt,"isNumeric"),isProxyEnabled:i(()=>No,"isProxyEnabled"),isRegExp:i(()=>Wi,"isRegExp"),objDisplay:i(()=>Lr,"objDisplay"),overwriteChainableMethod:i(()=>Il,"overwriteChainableMethod"),overwriteMethod:i(()=>xl,"overwriteMethod"),overwriteProperty:i(()=>Cl,"overwriteProperty"),proxify:i(()=>Dn,"proxify"),test:i(()=>El,"test"),transferFlags:i(()=>Ft,"transferFlags"),type:i(()=>xe,"type")});var St={};yf(St,{compatibleConstructor:i(()=>vf,"compatibleConstructor"),compatibleInstance:i(()=>bf,"compatibleInstance"),compatibleMessage:i(()=>Ef,"compatibleMessage"),getConstructorName:i(()=>Tf,"getConstructorName"),getMessage:i(()=>wf,"getMessage")});function ms(e){return e instanceof Error||Object.prototype.toString.call(e)==="[object Error]"}i(ms,"isErrorInstance");G(ms,"isErrorInstance");function gf(e){return Object.prototype.toString.call(e)==="[object RegExp]"}i(gf,"isRegExp");G(gf,"isRegExp");function bf(e,t){return ms(t)&&e===t}i(bf,"compatibleInstance");G(bf,"compatibleInstance");function vf(e,t){return ms(t)?e.constructor===t.constructor||e instanceof t.constructor:(typeof t=="object"||typeof t=="function")&&t.prototype?e.constructor===t||e instanceof t:!1}i(vf,"compatibleConstructor");G(vf,"compatibleConstructor");function Ef(e,t){const r=typeof e=="string"?e:e.message;return gf(t)?t.test(r):typeof t=="string"?r.indexOf(t)!==-1:!1}i(Ef,"compatibleMessage");G(Ef,"compatibleMessage");function Tf(e){let t=e;return ms(e)?t=e.constructor.name:typeof e=="function"&&(t=e.name,t===""&&(t=new e().name||t)),t}i(Tf,"getConstructorName");G(Tf,"getConstructorName");function wf(e){let t="";return e&&e.message?t=e.message:typeof e=="string"&&(t=e),t}i(wf,"getMessage");G(wf,"getMessage");function he(e,t,r){let n=e.__flags||(e.__flags=Object.create(null));if(arguments.length===3)n[t]=r;else return n[t]}i(he,"flag");G(he,"flag");function El(e,t){let r=he(e,"negate"),n=t[0];return r?!n:n}i(El,"test");G(El,"test");function xe(e){if(typeof e>"u")return"undefined";if(e===null)return"null";const t=e[Symbol.toStringTag];return typeof t=="string"?t:Object.prototype.toString.call(e).slice(8,-1)}i(xe,"type");G(xe,"type");var $F="captureStackTrace"in Error,pi,Pe=(pi=class extends Error{message;get name(){return"AssertionError"}get ok(){return!1}constructor(e="Unspecified AssertionError",t,r){super(e),this.message=e,$F&&Error.captureStackTrace(this,r||pi);for(const n in t)n in this||(this[n]=t[n])}toJSON(e){return{...this,name:this.name,message:this.message,ok:!1,stack:e!==!1?this.stack:void 0}}},i(pi,"_AssertionError"),G(pi,"AssertionError"),pi);function _f(e,t){let r=he(e,"message"),n=he(e,"ssfi");r=r?r+": ":"",e=he(e,"object"),t=t.map(function(a){return a.toLowerCase()}),t.sort();let o=t.map(function(a,c){let u=~["a","e","i","o","u"].indexOf(a.charAt(0))?"an":"a";return(t.length>1&&c===t.length-1?"or ":"")+u+" "+a}).join(", "),s=xe(e).toLowerCase();if(!t.some(function(a){return s===a}))throw new Pe(r+"object tested must be "+o+", but "+s+" given",void 0,n)}i(_f,"expectTypes");G(_f,"expectTypes");function ys(e,t){return t.length>4?t[4]:e._obj}i(ys,"getActual");G(ys,"getActual");var hg={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},JF={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},po="…";function Sf(e,t){const r=hg[JF[t]]||hg[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}i(Sf,"colorise");G(Sf,"colorise");function Rf({showHidden:e=!1,depth:t=2,colors:r=!1,customInspect:n=!0,showProxy:o=!1,maxArrayLength:s=1/0,breakLength:a=1/0,seen:c=[],truncate:u=1/0,stylize:d=String}={},p){const f={showHidden:!!e,depth:Number(t),colors:!!r,customInspect:!!n,showProxy:!!o,maxArrayLength:Number(s),breakLength:Number(a),truncate:Number(u),seen:c,inspect:p,stylize:d};return f.colors&&(f.stylize=Sf),f}i(Rf,"normaliseOptions");G(Rf,"normaliseOptions");function Pf(e){return e>="\uD800"&&e<="\uDBFF"}i(Pf,"isHighSurrogate");G(Pf,"isHighSurrogate");function ir(e,t,r=po){e=String(e);const n=r.length,o=e.length;if(n>t&&o>n)return r;if(o>t&&o>n){let s=t-n;return s>0&&Pf(e[s-1])&&(s=s-1),`${e.slice(0,s)}${r}`}return e}i(ir,"truncate");G(ir,"truncate");function Ct(e,t,r,n=", "){r=r||t.inspect;const o=e.length;if(o===0)return"";const s=t.truncate;let a="",c="",u="";for(let d=0;d<o;d+=1){const p=d+1===e.length,f=d+2===e.length;u=`${po}(${e.length-d})`;const m=e[d];t.truncate=s-a.length-(p?0:n.length);const y=c||r(m,t)+(p?"":n),g=a.length+y.length,T=g+u.length;if(p&&g>s&&a.length+u.length<=s||!p&&!f&&T>s||(c=p?"":r(e[d+1],t)+(f?"":n),!p&&f&&T>s&&g+c.length>s))break;if(a+=y,!p&&!f&&g+c.length>=s){u=`${po}(${e.length-d-1})`;break}u=""}return`${a}${u}`}i(Ct,"inspectList");G(Ct,"inspectList");function Af(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}i(Af,"quoteComplexKey");G(Af,"quoteComplexKey");function wn([e,t],r){return r.truncate-=2,typeof e=="string"?e=Af(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}i(wn,"inspectProperty");G(wn,"inspectProperty");function Of(e,t){const r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return"[]";t.truncate-=4;const n=Ct(e,t);t.truncate-=n.length;let o="";return r.length&&(o=Ct(r.map(s=>[s,e[s]]),t,wn)),`[ ${n}${o?`, ${o}`:""} ]`}i(Of,"inspectArray");G(Of,"inspectArray");var UF=G(e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,"getArrayName");function Jt(e,t){const r=UF(e);t.truncate-=r.length+4;const n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return`${r}[]`;let o="";for(let a=0;a<e.length;a++){const c=`${t.stylize(ir(e[a],t.truncate),"number")}${a===e.length-1?"":", "}`;if(t.truncate-=c.length,e[a]!==e.length&&t.truncate<=3){o+=`${po}(${e.length-e[a]+1})`;break}o+=c}let s="";return n.length&&(s=Ct(n.map(a=>[a,e[a]]),t,wn)),`${r}[ ${o}${s?`, ${s}`:""} ]`}i(Jt,"inspectTypedArray");G(Jt,"inspectTypedArray");function Cf(e,t){const r=e.toJSON();if(r===null)return"Invalid Date";const n=r.split("T"),o=n[0];return t.stylize(`${o}T${ir(n[1],t.truncate-o.length-1)}`,"date")}i(Cf,"inspectDate");G(Cf,"inspectDate");function da(e,t){const r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${ir(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}i(da,"inspectFunction");G(da,"inspectFunction");function xf([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}i(xf,"inspectMapEntry");G(xf,"inspectMapEntry");function Nf(e){const t=[];return e.forEach((r,n)=>{t.push([n,r])}),t}i(Nf,"mapToEntries");G(Nf,"mapToEntries");function If(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${Ct(Nf(e),t,xf)} }`)}i(If,"inspectMap");G(If,"inspectMap");var VF=Number.isNaN||(e=>e!==e);function pa(e,t){return VF(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(ir(String(e),t.truncate),"number")}i(pa,"inspectNumber");G(pa,"inspectNumber");function fa(e,t){let r=ir(e.toString(),t.truncate-1);return r!==po&&(r+="n"),t.stylize(r,"bigint")}i(fa,"inspectBigInt");G(fa,"inspectBigInt");function Mf(e,t){const r=e.toString().split("/")[2],n=t.truncate-(2+r.length),o=e.source;return t.stylize(`/${ir(o,n)}/${r}`,"regexp")}i(Mf,"inspectRegExp");G(Mf,"inspectRegExp");function qf(e){const t=[];return e.forEach(r=>{t.push(r)}),t}i(qf,"arrayFromSet");G(qf,"arrayFromSet");function jf(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${Ct(qf(e),t)} }`)}i(jf,"inspectSet");G(jf,"inspectSet");var mg=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),HF={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},GF=16;function kf(e){return HF[e]||`\\u${`0000${e.charCodeAt(0).toString(GF)}`.slice(-4)}`}i(kf,"escape");G(kf,"escape");function ha(e,t){return mg.test(e)&&(e=e.replace(mg,kf)),t.stylize(`'${ir(e,t.truncate-2)}'`,"string")}i(ha,"inspectString");G(ha,"inspectString");function ma(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}i(ma,"inspectSymbol");G(ma,"inspectSymbol");var zF=G(()=>"Promise{…}","getPromiseValue"),WF=zF;function Zn(e,t){const r=Object.getOwnPropertyNames(e),n=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(r.length===0&&n.length===0)return"{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);const o=Ct(r.map(c=>[c,e[c]]),t,wn),s=Ct(n.map(c=>[c,e[c]]),t,wn);t.seen.pop();let a="";return o&&s&&(a=", "),`{ ${o}${a}${s} }`}i(Zn,"inspectObject");G(Zn,"inspectObject");var Yc=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function Df(e,t){let r="";return Yc&&Yc in e&&(r=e[Yc]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${Zn(e,t)}`}i(Df,"inspectClass");G(Df,"inspectClass");function Lf(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${Ct(e,t)} ]`)}i(Lf,"inspectArguments");G(Lf,"inspectArguments");var KF=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function Ff(e,t){const r=Object.getOwnPropertyNames(e).filter(a=>KF.indexOf(a)===-1),n=e.name;t.truncate-=n.length;let o="";if(typeof e.message=="string"?o=ir(e.message,t.truncate):r.unshift("message"),o=o?`: ${o}`:"",t.truncate-=o.length+5,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);const s=Ct(r.map(a=>[a,e[a]]),t,wn);return`${n}${o}${s?` { ${s} }`:""}`}i(Ff,"inspectObject2");G(Ff,"inspectObject");function Bf([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}i(Bf,"inspectAttribute");G(Bf,"inspectAttribute");function Vi(e,t){return Ct(e,t,$f,`
|
|
208
|
+
`)}i(Vi,"inspectNodeCollection");G(Vi,"inspectNodeCollection");function $f(e,t){switch(e.nodeType){case 1:return Tl(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}i($f,"inspectNode");G($f,"inspectNode");function Tl(e,t){const r=e.getAttributeNames(),n=e.tagName.toLowerCase(),o=t.stylize(`<${n}`,"special"),s=t.stylize(">","special"),a=t.stylize(`</${n}>`,"special");t.truncate-=n.length*2+5;let c="";r.length>0&&(c+=" ",c+=Ct(r.map(p=>[p,e.getAttribute(p)]),t,Bf," ")),t.truncate-=c.length;const u=t.truncate;let d=Vi(e.children,t);return d&&d.length>u&&(d=`${po}(${e.children.length})`),`${o}${c}${s}${d}${a}`}i(Tl,"inspectHTML");G(Tl,"inspectHTML");var YF=typeof Symbol=="function"&&typeof Symbol.for=="function",Xc=YF?Symbol.for("chai/inspect"):"@@chai/inspect",Qc=Symbol.for("nodejs.util.inspect.custom"),yg=new WeakMap,gg={},bg={undefined:G((e,t)=>t.stylize("undefined","undefined"),"undefined"),null:G((e,t)=>t.stylize("null","null"),"null"),boolean:G((e,t)=>t.stylize(String(e),"boolean"),"boolean"),Boolean:G((e,t)=>t.stylize(String(e),"boolean"),"Boolean"),number:pa,Number:pa,bigint:fa,BigInt:fa,string:ha,String:ha,function:da,Function:da,symbol:ma,Symbol:ma,Array:Of,Date:Cf,Map:If,Set:jf,RegExp:Mf,Promise:WF,WeakSet:G((e,t)=>t.stylize("WeakSet{…}","special"),"WeakSet"),WeakMap:G((e,t)=>t.stylize("WeakMap{…}","special"),"WeakMap"),Arguments:Lf,Int8Array:Jt,Uint8Array:Jt,Uint8ClampedArray:Jt,Int16Array:Jt,Uint16Array:Jt,Int32Array:Jt,Uint32Array:Jt,Float32Array:Jt,Float64Array:Jt,Generator:G(()=>"","Generator"),DataView:G(()=>"","DataView"),ArrayBuffer:G(()=>"","ArrayBuffer"),Error:Ff,HTMLCollection:Vi,NodeList:Vi},XF=G((e,t,r)=>Xc in e&&typeof e[Xc]=="function"?e[Xc](t):Qc in e&&typeof e[Qc]=="function"?e[Qc](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&yg.has(e.constructor)?yg.get(e.constructor)(e,t):gg[r]?gg[r](e,t):"","inspectCustom"),QF=Object.prototype.toString;function Hi(e,t={}){const r=Rf(t,Hi),{customInspect:n}=r;let o=e===null?"null":typeof e;if(o==="object"&&(o=QF.call(e).slice(8,-1)),o in bg)return bg[o](e,r);if(n&&e){const a=XF(e,r,o);if(a)return typeof a=="string"?a:Hi(a,r)}const s=e?Object.getPrototypeOf(e):!1;return s===Object.prototype||s===null?Zn(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?Tl(e,r):"constructor"in e?e.constructor!==Object?Df(e,r):Zn(e,r):e===Object(e)?Zn(e,r):r.stylize(String(e),o)}i(Hi,"inspect");G(Hi,"inspect");var gt={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:["then","catch","inspect","toJSON"],deepEqual:null};function we(e,t,r,n){let o={colors:n,depth:typeof r>"u"?2:r,showHidden:t,truncate:gt.truncateThreshold?gt.truncateThreshold:1/0};return Hi(e,o)}i(we,"inspect2");G(we,"inspect");function Lr(e){let t=we(e),r=Object.prototype.toString.call(e);if(gt.truncateThreshold&&t.length>=gt.truncateThreshold){if(r==="[object Function]")return!e.name||e.name===""?"[Function]":"[Function: "+e.name+"]";if(r==="[object Array]")return"[ Array("+e.length+") ]";if(r==="[object Object]"){let n=Object.keys(e);return"{ Object ("+(n.length>2?n.splice(0,2).join(", ")+", ...":n.join(", "))+") }"}else return t}else return t}i(Lr,"objDisplay");G(Lr,"objDisplay");function wl(e,t){let r=he(e,"negate"),n=he(e,"object"),o=t[3],s=ys(e,t),a=r?t[2]:t[1],c=he(e,"message");return typeof a=="function"&&(a=a()),a=a||"",a=a.replace(/#\{this\}/g,function(){return Lr(n)}).replace(/#\{act\}/g,function(){return Lr(s)}).replace(/#\{exp\}/g,function(){return Lr(o)}),c?c+": "+a:a}i(wl,"getMessage2");G(wl,"getMessage");function Ft(e,t,r){let n=e.__flags||(e.__flags=Object.create(null));t.__flags||(t.__flags=Object.create(null)),r=arguments.length===3?r:!0;for(let o in n)(r||o!=="object"&&o!=="ssfi"&&o!=="lockSsfi"&&o!="message")&&(t.__flags[o]=n[o])}i(Ft,"transferFlags");G(Ft,"transferFlags");function ya(e){if(typeof e>"u")return"undefined";if(e===null)return"null";const t=e[Symbol.toStringTag];return typeof t=="string"?t:Object.prototype.toString.call(e).slice(8,-1)}i(ya,"type2");G(ya,"type");function _l(){this._key="chai/deep-eql__"+Math.random()+Date.now()}i(_l,"FakeMap");G(_l,"FakeMap");_l.prototype={get:G(i(function(t){return t[this._key]},"get"),"get"),set:G(i(function(t,r){Object.isExtensible(t)&&Object.defineProperty(t,this._key,{value:r,configurable:!0})},"set"),"set")};var k_=typeof WeakMap=="function"?WeakMap:_l;function ga(e,t,r){if(!r||Hr(e)||Hr(t))return null;var n=r.get(e);if(n){var o=n.get(t);if(typeof o=="boolean")return o}return null}i(ga,"memoizeCompare");G(ga,"memoizeCompare");function Wn(e,t,r,n){if(!(!r||Hr(e)||Hr(t))){var o=r.get(e);o?o.set(t,n):(o=new k_,o.set(t,n),r.set(e,o))}}i(Wn,"memoizeSet");G(Wn,"memoizeSet");var D_=xo;function xo(e,t,r){if(r&&r.comparator)return ba(e,t,r);var n=Sl(e,t);return n!==null?n:ba(e,t,r)}i(xo,"deepEqual");G(xo,"deepEqual");function Sl(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t?!0:Hr(e)||Hr(t)?!1:null}i(Sl,"simpleEqual");G(Sl,"simpleEqual");function ba(e,t,r){r=r||{},r.memoize=r.memoize===!1?!1:r.memoize||new k_;var n=r&&r.comparator,o=ga(e,t,r.memoize);if(o!==null)return o;var s=ga(t,e,r.memoize);if(s!==null)return s;if(n){var a=n(e,t);if(a===!1||a===!0)return Wn(e,t,r.memoize,a),a;var c=Sl(e,t);if(c!==null)return c}var u=ya(e);if(u!==ya(t))return Wn(e,t,r.memoize,!1),!1;Wn(e,t,r.memoize,!0);var d=Jf(e,t,u,r);return Wn(e,t,r.memoize,d),d}i(ba,"extensiveDeepEqual");G(ba,"extensiveDeepEqual");function Jf(e,t,r,n){switch(r){case"String":case"Number":case"Boolean":case"Date":return xo(e.valueOf(),t.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":return e===t;case"Error":return Rl(e,t,["name","message","code"],n);case"Arguments":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"Array":return _r(e,t,n);case"RegExp":return Uf(e,t);case"Generator":return Vf(e,t,n);case"DataView":return _r(new Uint8Array(e.buffer),new Uint8Array(t.buffer),n);case"ArrayBuffer":return _r(new Uint8Array(e),new Uint8Array(t),n);case"Set":return va(e,t,n);case"Map":return va(e,t,n);case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.Instant":case"Temporal.ZonedDateTime":case"Temporal.PlainYearMonth":case"Temporal.PlainMonthDay":return e.equals(t);case"Temporal.Duration":return e.total("nanoseconds")===t.total("nanoseconds");case"Temporal.TimeZone":case"Temporal.Calendar":return e.toString()===t.toString();default:return Gf(e,t,n)}}i(Jf,"extensiveDeepEqualByType");G(Jf,"extensiveDeepEqualByType");function Uf(e,t){return e.toString()===t.toString()}i(Uf,"regexpEqual");G(Uf,"regexpEqual");function va(e,t,r){try{if(e.size!==t.size)return!1;if(e.size===0)return!0}catch{return!1}var n=[],o=[];return e.forEach(G(i(function(a,c){n.push([a,c])},"gatherEntries"),"gatherEntries")),t.forEach(G(i(function(a,c){o.push([a,c])},"gatherEntries"),"gatherEntries")),_r(n.sort(),o.sort(),r)}i(va,"entriesEqual");G(va,"entriesEqual");function _r(e,t,r){var n=e.length;if(n!==t.length)return!1;if(n===0)return!0;for(var o=-1;++o<n;)if(xo(e[o],t[o],r)===!1)return!1;return!0}i(_r,"iterableEqual");G(_r,"iterableEqual");function Vf(e,t,r){return _r(Gi(e),Gi(t),r)}i(Vf,"generatorEqual");G(Vf,"generatorEqual");function Hf(e){return typeof Symbol<"u"&&typeof e=="object"&&typeof Symbol.iterator<"u"&&typeof e[Symbol.iterator]=="function"}i(Hf,"hasIteratorFunction");G(Hf,"hasIteratorFunction");function Ea(e){if(Hf(e))try{return Gi(e[Symbol.iterator]())}catch{return[]}return[]}i(Ea,"getIteratorEntries");G(Ea,"getIteratorEntries");function Gi(e){for(var t=e.next(),r=[t.value];t.done===!1;)t=e.next(),r.push(t.value);return r}i(Gi,"getGeneratorEntries");G(Gi,"getGeneratorEntries");function Ta(e){var t=[];for(var r in e)t.push(r);return t}i(Ta,"getEnumerableKeys");G(Ta,"getEnumerableKeys");function wa(e){for(var t=[],r=Object.getOwnPropertySymbols(e),n=0;n<r.length;n+=1){var o=r[n];Object.getOwnPropertyDescriptor(e,o).enumerable&&t.push(o)}return t}i(wa,"getEnumerableSymbols");G(wa,"getEnumerableSymbols");function Rl(e,t,r,n){var o=r.length;if(o===0)return!0;for(var s=0;s<o;s+=1)if(xo(e[r[s]],t[r[s]],n)===!1)return!1;return!0}i(Rl,"keysEqual");G(Rl,"keysEqual");function Gf(e,t,r){var n=Ta(e),o=Ta(t),s=wa(e),a=wa(t);if(n=n.concat(s),o=o.concat(a),n.length&&n.length===o.length)return _r(_a(n).sort(),_a(o).sort())===!1?!1:Rl(e,t,n,r);var c=Ea(e),u=Ea(t);return c.length&&c.length===u.length?(c.sort(),u.sort(),_r(c,u,r)):n.length===0&&c.length===0&&o.length===0&&u.length===0}i(Gf,"objectEqual");G(Gf,"objectEqual");function Hr(e){return e===null||typeof e!="object"}i(Hr,"isPrimitive");G(Hr,"isPrimitive");function _a(e){return e.map(G(i(function(r){return typeof r=="symbol"?r.toString():r},"mapSymbol"),"mapSymbol"))}i(_a,"mapSymbols");G(_a,"mapSymbols");function gs(e,t){return typeof e>"u"||e===null?!1:t in Object(e)}i(gs,"hasProperty");G(gs,"hasProperty");function zf(e){return e.replace(/([^\\])\[/g,"$1.[").match(/(\\\.|[^.]+?)+/g).map(n=>{if(n==="constructor"||n==="__proto__"||n==="prototype")return{};const s=/^\[(\d+)\]$/.exec(n);let a=null;return s?a={i:parseFloat(s[1])}:a={p:n.replace(/\\([.[\]])/g,"$1")},a})}i(zf,"parsePath");G(zf,"parsePath");function Sa(e,t,r){let n=e,o=null;r=typeof r>"u"?t.length:r;for(let s=0;s<r;s++){const a=t[s];n&&(typeof a.p>"u"?n=n[a.i]:n=n[a.p],s===r-1&&(o=n))}return o}i(Sa,"internalGetPathValue");G(Sa,"internalGetPathValue");function Pl(e,t){const r=zf(t),n=r[r.length-1],o={parent:r.length>1?Sa(e,r,r.length-1):e,name:n.p||n.i,value:Sa(e,r)};return o.exists=gs(o.parent,o.name),o}i(Pl,"getPathInfo");G(Pl,"getPathInfo");var fi,q=(fi=class{__flags={};constructor(e,t,r,n){return he(this,"ssfi",r||fi),he(this,"lockSsfi",n),he(this,"object",e),he(this,"message",t),he(this,"eql",gt.deepEqual||D_),Dn(this)}static get includeStack(){return console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),gt.includeStack}static set includeStack(e){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),gt.includeStack=e}static get showDiff(){return console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),gt.showDiff}static set showDiff(e){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),gt.showDiff=e}static addProperty(e,t){Al(this.prototype,e,t)}static addMethod(e,t){Ol(this.prototype,e,t)}static addChainableMethod(e,t,r){Nl(this.prototype,e,t,r)}static overwriteProperty(e,t){Cl(this.prototype,e,t)}static overwriteMethod(e,t){xl(this.prototype,e,t)}static overwriteChainableMethod(e,t,r){Il(this.prototype,e,t,r)}assert(e,t,r,n,o,s){const a=El(this,arguments);if(s!==!1&&(s=!0),n===void 0&&o===void 0&&(s=!1),gt.showDiff!==!0&&(s=!1),!a){t=wl(this,arguments);const u={actual:ys(this,arguments),expected:n,showDiff:s},d=jl(this,arguments);throw d&&(u.operator=d),new Pe(t,u,gt.includeStack?this.assert:he(this,"ssfi"))}}get _obj(){return he(this,"object")}set _obj(e){he(this,"object",e)}},i(fi,"_Assertion"),G(fi,"Assertion"),fi);function No(){return gt.useProxy&&typeof Proxy<"u"&&typeof Reflect<"u"}i(No,"isProxyEnabled");G(No,"isProxyEnabled");function Al(e,t,r){r=r===void 0?function(){}:r,Object.defineProperty(e,t,{get:G(i(function n(){!No()&&!he(this,"lockSsfi")&&he(this,"ssfi",n);let o=r.call(this);if(o!==void 0)return o;let s=new q;return Ft(this,s),s},"propertyGetter"),"propertyGetter"),configurable:!0})}i(Al,"addProperty");G(Al,"addProperty");var ZF=Object.getOwnPropertyDescriptor(function(){},"length");function Io(e,t,r){return ZF.configurable&&Object.defineProperty(e,"length",{get:G(function(){throw Error(r?"Invalid Chai property: "+t+'.length. Due to a compatibility issue, "length" cannot directly follow "'+t+'". Use "'+t+'.lengthOf" instead.':"Invalid Chai property: "+t+'.length. See docs for proper usage of "'+t+'".')},"get")}),e}i(Io,"addLengthGuard");G(Io,"addLengthGuard");function Wf(e){let t=Object.getOwnPropertyNames(e);function r(o){t.indexOf(o)===-1&&t.push(o)}i(r,"addProperty2"),G(r,"addProperty");let n=Object.getPrototypeOf(e);for(;n!==null;)Object.getOwnPropertyNames(n).forEach(r),n=Object.getPrototypeOf(n);return t}i(Wf,"getProperties");G(Wf,"getProperties");var vg=["__flags","__methods","_obj","assert"];function Dn(e,t){return No()?new Proxy(e,{get:G(i(function r(n,o){if(typeof o=="string"&>.proxyExcludedKeys.indexOf(o)===-1&&!Reflect.has(n,o)){if(t)throw Error("Invalid Chai property: "+t+"."+o+'. See docs for proper usage of "'+t+'".');let s=null,a=4;throw Wf(n).forEach(function(c){if(!Object.prototype.hasOwnProperty(c)&&vg.indexOf(c)===-1){let u=Kf(o,c,a);u<a&&(s=c,a=u)}}),Error(s!==null?"Invalid Chai property: "+o+'. Did you mean "'+s+'"?':"Invalid Chai property: "+o)}return vg.indexOf(o)===-1&&!he(n,"lockSsfi")&&he(n,"ssfi",r),Reflect.get(n,o)},"proxyGetter"),"proxyGetter")}):e}i(Dn,"proxify");G(Dn,"proxify");function Kf(e,t,r){if(Math.abs(e.length-t.length)>=r)return r;let n=[];for(let o=0;o<=e.length;o++)n[o]=Array(t.length+1).fill(0),n[o][0]=o;for(let o=0;o<t.length;o++)n[0][o]=o;for(let o=1;o<=e.length;o++){let s=e.charCodeAt(o-1);for(let a=1;a<=t.length;a++){if(Math.abs(o-a)>=r){n[o][a]=r;continue}n[o][a]=Math.min(n[o-1][a]+1,n[o][a-1]+1,n[o-1][a-1]+(s===t.charCodeAt(a-1)?0:1))}}return n[e.length][t.length]}i(Kf,"stringDistanceCapped");G(Kf,"stringDistanceCapped");function Ol(e,t,r){let n=G(function(){he(this,"lockSsfi")||he(this,"ssfi",n);let o=r.apply(this,arguments);if(o!==void 0)return o;let s=new q;return Ft(this,s),s},"methodWrapper");Io(n,t,!1),e[t]=Dn(n,t)}i(Ol,"addMethod");G(Ol,"addMethod");function Cl(e,t,r){let n=Object.getOwnPropertyDescriptor(e,t),o=G(function(){},"_super");n&&typeof n.get=="function"&&(o=n.get),Object.defineProperty(e,t,{get:G(i(function s(){!No()&&!he(this,"lockSsfi")&&he(this,"ssfi",s);let a=he(this,"lockSsfi");he(this,"lockSsfi",!0);let c=r(o).call(this);if(he(this,"lockSsfi",a),c!==void 0)return c;let u=new q;return Ft(this,u),u},"overwritingPropertyGetter"),"overwritingPropertyGetter"),configurable:!0})}i(Cl,"overwriteProperty");G(Cl,"overwriteProperty");function xl(e,t,r){let n=e[t],o=G(function(){throw new Error(t+" is not a function")},"_super");n&&typeof n=="function"&&(o=n);let s=G(function(){he(this,"lockSsfi")||he(this,"ssfi",s);let a=he(this,"lockSsfi");he(this,"lockSsfi",!0);let c=r(o).apply(this,arguments);if(he(this,"lockSsfi",a),c!==void 0)return c;let u=new q;return Ft(this,u),u},"overwritingMethodWrapper");Io(s,t,!1),e[t]=Dn(s,t)}i(xl,"overwriteMethod");G(xl,"overwriteMethod");var eB=typeof Object.setPrototypeOf=="function",Eg=G(function(){},"testFn"),tB=Object.getOwnPropertyNames(Eg).filter(function(e){let t=Object.getOwnPropertyDescriptor(Eg,e);return typeof t!="object"?!0:!t.configurable}),rB=Function.prototype.call,nB=Function.prototype.apply;function Nl(e,t,r,n){typeof n!="function"&&(n=G(function(){},"chainingBehavior"));let o={method:r,chainingBehavior:n};e.__methods||(e.__methods={}),e.__methods[t]=o,Object.defineProperty(e,t,{get:G(i(function(){o.chainingBehavior.call(this);let a=G(function(){he(this,"lockSsfi")||he(this,"ssfi",a);let c=o.method.apply(this,arguments);if(c!==void 0)return c;let u=new q;return Ft(this,u),u},"chainableMethodWrapper");if(Io(a,t,!0),eB){let c=Object.create(this);c.call=rB,c.apply=nB,Object.setPrototypeOf(a,c)}else Object.getOwnPropertyNames(e).forEach(function(u){if(tB.indexOf(u)!==-1)return;let d=Object.getOwnPropertyDescriptor(e,u);Object.defineProperty(a,u,d)});return Ft(this,a),Dn(a)},"chainableMethodGetter"),"chainableMethodGetter"),configurable:!0})}i(Nl,"addChainableMethod");G(Nl,"addChainableMethod");function Il(e,t,r,n){let o=e.__methods[t],s=o.chainingBehavior;o.chainingBehavior=G(i(function(){let u=n(s).call(this);if(u!==void 0)return u;let d=new q;return Ft(this,d),d},"overwritingChainableMethodGetter"),"overwritingChainableMethodGetter");let a=o.method;o.method=G(i(function(){let u=r(a).apply(this,arguments);if(u!==void 0)return u;let d=new q;return Ft(this,d),d},"overwritingChainableMethodWrapper"),"overwritingChainableMethodWrapper")}i(Il,"overwriteChainableMethod");G(Il,"overwriteChainableMethod");function zi(e,t){return we(e)<we(t)?-1:1}i(zi,"compareByInspect");G(zi,"compareByInspect");function Ml(e){return typeof Object.getOwnPropertySymbols!="function"?[]:Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})}i(Ml,"getOwnEnumerablePropertySymbols");G(Ml,"getOwnEnumerablePropertySymbols");function ql(e){return Object.keys(e).concat(Ml(e))}i(ql,"getOwnEnumerableProperties");G(ql,"getOwnEnumerableProperties");var Ra=Number.isNaN;function Yf(e){let t=xe(e);return["Array","Object","Function"].indexOf(t)!==-1}i(Yf,"isObjectType");G(Yf,"isObjectType");function jl(e,t){let r=he(e,"operator"),n=he(e,"negate"),o=t[3],s=n?t[2]:t[1];if(r)return r;if(typeof s=="function"&&(s=s()),s=s||"",!s||/\shave\s/.test(s))return;let a=Yf(o);return/\snot\s/.test(s)?a?"notDeepStrictEqual":"notStrictEqual":a?"deepStrictEqual":"strictEqual"}i(jl,"getOperator");G(jl,"getOperator");function bs(e){return e.name}i(bs,"getName");G(bs,"getName");function Wi(e){return Object.prototype.toString.call(e)==="[object RegExp]"}i(Wi,"isRegExp2");G(Wi,"isRegExp");function tt(e){return["Number","BigInt"].includes(xe(e))}i(tt,"isNumeric");G(tt,"isNumeric");var{flag:U}=Zt;["to","be","been","is","and","has","have","with","that","which","at","of","same","but","does","still","also"].forEach(function(e){q.addProperty(e)});q.addProperty("not",function(){U(this,"negate",!0)});q.addProperty("deep",function(){U(this,"deep",!0)});q.addProperty("nested",function(){U(this,"nested",!0)});q.addProperty("own",function(){U(this,"own",!0)});q.addProperty("ordered",function(){U(this,"ordered",!0)});q.addProperty("any",function(){U(this,"any",!0),U(this,"all",!1)});q.addProperty("all",function(){U(this,"all",!0),U(this,"any",!1)});var Tg={function:["function","asyncfunction","generatorfunction","asyncgeneratorfunction"],asyncfunction:["asyncfunction","asyncgeneratorfunction"],generatorfunction:["generatorfunction","asyncgeneratorfunction"],asyncgeneratorfunction:["asyncgeneratorfunction"]};function kl(e,t){t&&U(this,"message",t),e=e.toLowerCase();let r=U(this,"object"),n=~["a","e","i","o","u"].indexOf(e.charAt(0))?"an ":"a ";const o=xe(r).toLowerCase();Tg.function.includes(e)?this.assert(Tg[e].includes(o),"expected #{this} to be "+n+e,"expected #{this} not to be "+n+e):this.assert(e===o,"expected #{this} to be "+n+e,"expected #{this} not to be "+n+e)}i(kl,"an");G(kl,"an");q.addChainableMethod("an",kl);q.addChainableMethod("a",kl);function Xf(e,t){return Ra(e)&&Ra(t)||e===t}i(Xf,"SameValueZero");G(Xf,"SameValueZero");function Mo(){U(this,"contains",!0)}i(Mo,"includeChainingBehavior");G(Mo,"includeChainingBehavior");function qo(e,t){t&&U(this,"message",t);let r=U(this,"object"),n=xe(r).toLowerCase(),o=U(this,"message"),s=U(this,"negate"),a=U(this,"ssfi"),c=U(this,"deep"),u=c?"deep ":"",d=c?U(this,"eql"):Xf;o=o?o+": ":"";let p=!1;switch(n){case"string":p=r.indexOf(e)!==-1;break;case"weakset":if(c)throw new Pe(o+"unable to use .deep.include with WeakSet",void 0,a);p=r.has(e);break;case"map":r.forEach(function(f){p=p||d(f,e)});break;case"set":c?r.forEach(function(f){p=p||d(f,e)}):p=r.has(e);break;case"array":c?p=r.some(function(f){return d(f,e)}):p=r.indexOf(e)!==-1;break;default:{if(e!==Object(e))throw new Pe(o+"the given combination of arguments ("+n+" and "+xe(e).toLowerCase()+") is invalid for this assertion. You can use an array, a map, an object, a set, a string, or a weakset instead of a "+xe(e).toLowerCase(),void 0,a);let f=Object.keys(e),m=null,y=0;if(f.forEach(function(g){let T=new q(r);if(Ft(this,T,!0),U(T,"lockSsfi",!0),!s||f.length===1){T.property(g,e[g]);return}try{T.property(g,e[g])}catch(E){if(!St.compatibleConstructor(E,Pe))throw E;m===null&&(m=E),y++}},this),s&&f.length>1&&y===f.length)throw m;return}}this.assert(p,"expected #{this} to "+u+"include "+we(e),"expected #{this} to not "+u+"include "+we(e))}i(qo,"include");G(qo,"include");q.addChainableMethod("include",qo,Mo);q.addChainableMethod("contain",qo,Mo);q.addChainableMethod("contains",qo,Mo);q.addChainableMethod("includes",qo,Mo);q.addProperty("ok",function(){this.assert(U(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy")});q.addProperty("true",function(){this.assert(U(this,"object")===!0,"expected #{this} to be true","expected #{this} to be false",!U(this,"negate"))});q.addProperty("numeric",function(){const e=U(this,"object");this.assert(["Number","BigInt"].includes(xe(e)),"expected #{this} to be numeric","expected #{this} to not be numeric",!U(this,"negate"))});q.addProperty("callable",function(){const e=U(this,"object"),t=U(this,"ssfi"),r=U(this,"message"),n=r?`${r}: `:"",o=U(this,"negate"),s=o?`${n}expected ${we(e)} not to be a callable function`:`${n}expected ${we(e)} to be a callable function`,a=["Function","AsyncFunction","GeneratorFunction","AsyncGeneratorFunction"].includes(xe(e));if(a&&o||!a&&!o)throw new Pe(s,void 0,t)});q.addProperty("false",function(){this.assert(U(this,"object")===!1,"expected #{this} to be false","expected #{this} to be true",!!U(this,"negate"))});q.addProperty("null",function(){this.assert(U(this,"object")===null,"expected #{this} to be null","expected #{this} not to be null")});q.addProperty("undefined",function(){this.assert(U(this,"object")===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined")});q.addProperty("NaN",function(){this.assert(Ra(U(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN")});function Dl(){let e=U(this,"object");this.assert(e!=null,"expected #{this} to exist","expected #{this} to not exist")}i(Dl,"assertExist");G(Dl,"assertExist");q.addProperty("exist",Dl);q.addProperty("exists",Dl);q.addProperty("empty",function(){let e=U(this,"object"),t=U(this,"ssfi"),r=U(this,"message"),n;switch(r=r?r+": ":"",xe(e).toLowerCase()){case"array":case"string":n=e.length;break;case"map":case"set":n=e.size;break;case"weakmap":case"weakset":throw new Pe(r+".empty was passed a weak collection",void 0,t);case"function":{const o=r+".empty was passed a function "+bs(e);throw new Pe(o.trim(),void 0,t)}default:if(e!==Object(e))throw new Pe(r+".empty was passed non-string primitive "+we(e),void 0,t);n=Object.keys(e).length}this.assert(n===0,"expected #{this} to be empty","expected #{this} not to be empty")});function Ll(){let e=U(this,"object"),t=xe(e);this.assert(t==="Arguments","expected #{this} to be arguments but got "+t,"expected #{this} to not be arguments")}i(Ll,"checkArguments");G(Ll,"checkArguments");q.addProperty("arguments",Ll);q.addProperty("Arguments",Ll);function vs(e,t){t&&U(this,"message",t);let r=U(this,"object");if(U(this,"deep")){let n=U(this,"lockSsfi");U(this,"lockSsfi",!0),this.eql(e),U(this,"lockSsfi",n)}else this.assert(e===r,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",e,this._obj,!0)}i(vs,"assertEqual");G(vs,"assertEqual");q.addMethod("equal",vs);q.addMethod("equals",vs);q.addMethod("eq",vs);function Fl(e,t){t&&U(this,"message",t);let r=U(this,"eql");this.assert(r(e,U(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",e,this._obj,!0)}i(Fl,"assertEql");G(Fl,"assertEql");q.addMethod("eql",Fl);q.addMethod("eqls",Fl);function Es(e,t){t&&U(this,"message",t);let r=U(this,"object"),n=U(this,"doLength"),o=U(this,"message"),s=o?o+": ":"",a=U(this,"ssfi"),c=xe(r).toLowerCase(),u=xe(e).toLowerCase();if(n&&c!=="map"&&c!=="set"&&new q(r,o,a,!0).to.have.property("length"),!n&&c==="date"&&u!=="date")throw new Pe(s+"the argument to above must be a date",void 0,a);if(!tt(e)&&(n||tt(r)))throw new Pe(s+"the argument to above must be a number",void 0,a);if(!n&&c!=="date"&&!tt(r)){let d=c==="string"?"'"+r+"'":r;throw new Pe(s+"expected "+d+" to be a number or a date",void 0,a)}if(n){let d="length",p;c==="map"||c==="set"?(d="size",p=r.size):p=r.length,this.assert(p>e,"expected #{this} to have a "+d+" above #{exp} but got #{act}","expected #{this} to not have a "+d+" above #{exp}",e,p)}else this.assert(r>e,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",e)}i(Es,"assertAbove");G(Es,"assertAbove");q.addMethod("above",Es);q.addMethod("gt",Es);q.addMethod("greaterThan",Es);function Ts(e,t){t&&U(this,"message",t);let r=U(this,"object"),n=U(this,"doLength"),o=U(this,"message"),s=o?o+": ":"",a=U(this,"ssfi"),c=xe(r).toLowerCase(),u=xe(e).toLowerCase(),d,p=!0;if(n&&c!=="map"&&c!=="set"&&new q(r,o,a,!0).to.have.property("length"),!n&&c==="date"&&u!=="date")d=s+"the argument to least must be a date";else if(!tt(e)&&(n||tt(r)))d=s+"the argument to least must be a number";else if(!n&&c!=="date"&&!tt(r)){let f=c==="string"?"'"+r+"'":r;d=s+"expected "+f+" to be a number or a date"}else p=!1;if(p)throw new Pe(d,void 0,a);if(n){let f="length",m;c==="map"||c==="set"?(f="size",m=r.size):m=r.length,this.assert(m>=e,"expected #{this} to have a "+f+" at least #{exp} but got #{act}","expected #{this} to have a "+f+" below #{exp}",e,m)}else this.assert(r>=e,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",e)}i(Ts,"assertLeast");G(Ts,"assertLeast");q.addMethod("least",Ts);q.addMethod("gte",Ts);q.addMethod("greaterThanOrEqual",Ts);function ws(e,t){t&&U(this,"message",t);let r=U(this,"object"),n=U(this,"doLength"),o=U(this,"message"),s=o?o+": ":"",a=U(this,"ssfi"),c=xe(r).toLowerCase(),u=xe(e).toLowerCase(),d,p=!0;if(n&&c!=="map"&&c!=="set"&&new q(r,o,a,!0).to.have.property("length"),!n&&c==="date"&&u!=="date")d=s+"the argument to below must be a date";else if(!tt(e)&&(n||tt(r)))d=s+"the argument to below must be a number";else if(!n&&c!=="date"&&!tt(r)){let f=c==="string"?"'"+r+"'":r;d=s+"expected "+f+" to be a number or a date"}else p=!1;if(p)throw new Pe(d,void 0,a);if(n){let f="length",m;c==="map"||c==="set"?(f="size",m=r.size):m=r.length,this.assert(m<e,"expected #{this} to have a "+f+" below #{exp} but got #{act}","expected #{this} to not have a "+f+" below #{exp}",e,m)}else this.assert(r<e,"expected #{this} to be below #{exp}","expected #{this} to be at least #{exp}",e)}i(ws,"assertBelow");G(ws,"assertBelow");q.addMethod("below",ws);q.addMethod("lt",ws);q.addMethod("lessThan",ws);function _s(e,t){t&&U(this,"message",t);let r=U(this,"object"),n=U(this,"doLength"),o=U(this,"message"),s=o?o+": ":"",a=U(this,"ssfi"),c=xe(r).toLowerCase(),u=xe(e).toLowerCase(),d,p=!0;if(n&&c!=="map"&&c!=="set"&&new q(r,o,a,!0).to.have.property("length"),!n&&c==="date"&&u!=="date")d=s+"the argument to most must be a date";else if(!tt(e)&&(n||tt(r)))d=s+"the argument to most must be a number";else if(!n&&c!=="date"&&!tt(r)){let f=c==="string"?"'"+r+"'":r;d=s+"expected "+f+" to be a number or a date"}else p=!1;if(p)throw new Pe(d,void 0,a);if(n){let f="length",m;c==="map"||c==="set"?(f="size",m=r.size):m=r.length,this.assert(m<=e,"expected #{this} to have a "+f+" at most #{exp} but got #{act}","expected #{this} to have a "+f+" above #{exp}",e,m)}else this.assert(r<=e,"expected #{this} to be at most #{exp}","expected #{this} to be above #{exp}",e)}i(_s,"assertMost");G(_s,"assertMost");q.addMethod("most",_s);q.addMethod("lte",_s);q.addMethod("lessThanOrEqual",_s);q.addMethod("within",function(e,t,r){r&&U(this,"message",r);let n=U(this,"object"),o=U(this,"doLength"),s=U(this,"message"),a=s?s+": ":"",c=U(this,"ssfi"),u=xe(n).toLowerCase(),d=xe(e).toLowerCase(),p=xe(t).toLowerCase(),f,m=!0,y=d==="date"&&p==="date"?e.toISOString()+".."+t.toISOString():e+".."+t;if(o&&u!=="map"&&u!=="set"&&new q(n,s,c,!0).to.have.property("length"),!o&&u==="date"&&(d!=="date"||p!=="date"))f=a+"the arguments to within must be dates";else if((!tt(e)||!tt(t))&&(o||tt(n)))f=a+"the arguments to within must be numbers";else if(!o&&u!=="date"&&!tt(n)){let g=u==="string"?"'"+n+"'":n;f=a+"expected "+g+" to be a number or a date"}else m=!1;if(m)throw new Pe(f,void 0,c);if(o){let g="length",T;u==="map"||u==="set"?(g="size",T=n.size):T=n.length,this.assert(T>=e&&T<=t,"expected #{this} to have a "+g+" within "+y,"expected #{this} to not have a "+g+" within "+y)}else this.assert(n>=e&&n<=t,"expected #{this} to be within "+y,"expected #{this} to not be within "+y)});function Bl(e,t){t&&U(this,"message",t);let r=U(this,"object"),n=U(this,"ssfi"),o=U(this,"message"),s;try{s=r instanceof e}catch(c){throw c instanceof TypeError?(o=o?o+": ":"",new Pe(o+"The instanceof assertion needs a constructor but "+xe(e)+" was given.",void 0,n)):c}let a=bs(e);a==null&&(a="an unnamed constructor"),this.assert(s,"expected #{this} to be an instance of "+a,"expected #{this} to not be an instance of "+a)}i(Bl,"assertInstanceOf");G(Bl,"assertInstanceOf");q.addMethod("instanceof",Bl);q.addMethod("instanceOf",Bl);function $l(e,t,r){r&&U(this,"message",r);let n=U(this,"nested"),o=U(this,"own"),s=U(this,"message"),a=U(this,"object"),c=U(this,"ssfi"),u=typeof e;if(s=s?s+": ":"",n){if(u!=="string")throw new Pe(s+"the argument to property must be a string when using nested syntax",void 0,c)}else if(u!=="string"&&u!=="number"&&u!=="symbol")throw new Pe(s+"the argument to property must be a string, number, or symbol",void 0,c);if(n&&o)throw new Pe(s+'The "nested" and "own" flags cannot be combined.',void 0,c);if(a==null)throw new Pe(s+"Target cannot be null or undefined.",void 0,c);let d=U(this,"deep"),p=U(this,"negate"),f=n?Pl(a,e):null,m=n?f.value:a[e],y=d?U(this,"eql"):(E,v)=>E===v,g="";d&&(g+="deep "),o&&(g+="own "),n&&(g+="nested "),g+="property ";let T;o?T=Object.prototype.hasOwnProperty.call(a,e):n?T=f.exists:T=gs(a,e),(!p||arguments.length===1)&&this.assert(T,"expected #{this} to have "+g+we(e),"expected #{this} to not have "+g+we(e)),arguments.length>1&&this.assert(T&&y(t,m),"expected #{this} to have "+g+we(e)+" of #{exp}, but got #{act}","expected #{this} to not have "+g+we(e)+" of #{act}",t,m),U(this,"object",m)}i($l,"assertProperty");G($l,"assertProperty");q.addMethod("property",$l);function Jl(e,t,r){U(this,"own",!0),$l.apply(this,arguments)}i(Jl,"assertOwnProperty");G(Jl,"assertOwnProperty");q.addMethod("ownProperty",Jl);q.addMethod("haveOwnProperty",Jl);function Ul(e,t,r){typeof t=="string"&&(r=t,t=null),r&&U(this,"message",r);let n=U(this,"object"),o=Object.getOwnPropertyDescriptor(Object(n),e),s=U(this,"eql");o&&t?this.assert(s(t,o),"expected the own property descriptor for "+we(e)+" on #{this} to match "+we(t)+", got "+we(o),"expected the own property descriptor for "+we(e)+" on #{this} to not match "+we(t),t,o,!0):this.assert(o,"expected #{this} to have an own property descriptor for "+we(e),"expected #{this} to not have an own property descriptor for "+we(e)),U(this,"object",o)}i(Ul,"assertOwnPropertyDescriptor");G(Ul,"assertOwnPropertyDescriptor");q.addMethod("ownPropertyDescriptor",Ul);q.addMethod("haveOwnPropertyDescriptor",Ul);function Vl(){U(this,"doLength",!0)}i(Vl,"assertLengthChain");G(Vl,"assertLengthChain");function Hl(e,t){t&&U(this,"message",t);let r=U(this,"object"),n=xe(r).toLowerCase(),o=U(this,"message"),s=U(this,"ssfi"),a="length",c;switch(n){case"map":case"set":a="size",c=r.size;break;default:new q(r,o,s,!0).to.have.property("length"),c=r.length}this.assert(c==e,"expected #{this} to have a "+a+" of #{exp} but got #{act}","expected #{this} to not have a "+a+" of #{act}",e,c)}i(Hl,"assertLength");G(Hl,"assertLength");q.addChainableMethod("length",Hl,Vl);q.addChainableMethod("lengthOf",Hl,Vl);function Gl(e,t){t&&U(this,"message",t);let r=U(this,"object");this.assert(e.exec(r),"expected #{this} to match "+e,"expected #{this} not to match "+e)}i(Gl,"assertMatch");G(Gl,"assertMatch");q.addMethod("match",Gl);q.addMethod("matches",Gl);q.addMethod("string",function(e,t){t&&U(this,"message",t);let r=U(this,"object"),n=U(this,"message"),o=U(this,"ssfi");new q(r,n,o,!0).is.a("string"),this.assert(~r.indexOf(e),"expected #{this} to contain "+we(e),"expected #{this} to not contain "+we(e))});function zl(e){let t=U(this,"object"),r=xe(t),n=xe(e),o=U(this,"ssfi"),s=U(this,"deep"),a,c="",u,d=!0,p=U(this,"message");p=p?p+": ":"";let f=p+"when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments";if(r==="Map"||r==="Set")c=s?"deeply ":"",u=[],t.forEach(function(v,_){u.push(_)}),n!=="Array"&&(e=Array.prototype.slice.call(arguments));else{switch(u=ql(t),n){case"Array":if(arguments.length>1)throw new Pe(f,void 0,o);break;case"Object":if(arguments.length>1)throw new Pe(f,void 0,o);e=Object.keys(e);break;default:e=Array.prototype.slice.call(arguments)}e=e.map(function(v){return typeof v=="symbol"?v:String(v)})}if(!e.length)throw new Pe(p+"keys required",void 0,o);let m=e.length,y=U(this,"any"),g=U(this,"all"),T=e,E=s?U(this,"eql"):(v,_)=>v===_;if(!y&&!g&&(g=!0),y&&(d=T.some(function(v){return u.some(function(_){return E(v,_)})})),g&&(d=T.every(function(v){return u.some(function(_){return E(v,_)})}),U(this,"contains")||(d=d&&e.length==u.length)),m>1){e=e.map(function(_){return we(_)});let v=e.pop();g&&(a=e.join(", ")+", and "+v),y&&(a=e.join(", ")+", or "+v)}else a=we(e[0]);a=(m>1?"keys ":"key ")+a,a=(U(this,"contains")?"contain ":"have ")+a,this.assert(d,"expected #{this} to "+c+a,"expected #{this} to not "+c+a,T.slice(0).sort(zi),u.sort(zi),!0)}i(zl,"assertKeys");G(zl,"assertKeys");q.addMethod("keys",zl);q.addMethod("key",zl);function Ss(e,t,r){r&&U(this,"message",r);let n=U(this,"object"),o=U(this,"ssfi"),s=U(this,"message"),a=U(this,"negate")||!1;new q(n,s,o,!0).is.a("function"),(Wi(e)||typeof e=="string")&&(t=e,e=null);let c,u=!1;try{n()}catch(y){u=!0,c=y}let d=e===void 0&&t===void 0,p=!!(e&&t),f=!1,m=!1;if(d||!d&&!a){let y="an error";e instanceof Error?y="#{exp}":e&&(y=St.getConstructorName(e));let g=c;if(c instanceof Error)g=c.toString();else if(typeof c=="string")g=c;else if(c&&(typeof c=="object"||typeof c=="function"))try{g=St.getConstructorName(c)}catch{}this.assert(u,"expected #{this} to throw "+y,"expected #{this} to not throw an error but #{act} was thrown",e&&e.toString(),g)}if(e&&c&&(e instanceof Error&&St.compatibleInstance(c,e)===a&&(p&&a?f=!0:this.assert(a,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(c&&!a?" but #{act} was thrown":""),e.toString(),c.toString())),St.compatibleConstructor(c,e)===a&&(p&&a?f=!0:this.assert(a,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(c?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&St.getConstructorName(e),c instanceof Error?c.toString():c&&St.getConstructorName(c)))),c&&t!==void 0&&t!==null){let y="including";Wi(t)&&(y="matching"),St.compatibleMessage(c,t)===a&&(p&&a?m=!0:this.assert(a,"expected #{this} to throw error "+y+" #{exp} but got #{act}","expected #{this} to throw error not "+y+" #{exp}",t,St.getMessage(c)))}f&&m&&this.assert(a,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(c?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&St.getConstructorName(e),c instanceof Error?c.toString():c&&St.getConstructorName(c)),U(this,"object",c)}i(Ss,"assertThrows");G(Ss,"assertThrows");q.addMethod("throw",Ss);q.addMethod("throws",Ss);q.addMethod("Throw",Ss);function Wl(e,t){t&&U(this,"message",t);let r=U(this,"object"),n=U(this,"itself"),o=typeof r=="function"&&!n?r.prototype[e]:r[e];this.assert(typeof o=="function","expected #{this} to respond to "+we(e),"expected #{this} to not respond to "+we(e))}i(Wl,"respondTo");G(Wl,"respondTo");q.addMethod("respondTo",Wl);q.addMethod("respondsTo",Wl);q.addProperty("itself",function(){U(this,"itself",!0)});function Kl(e,t){t&&U(this,"message",t);let r=U(this,"object"),n=e(r);this.assert(n,"expected #{this} to satisfy "+Lr(e),"expected #{this} to not satisfy"+Lr(e),!U(this,"negate"),n)}i(Kl,"satisfy");G(Kl,"satisfy");q.addMethod("satisfy",Kl);q.addMethod("satisfies",Kl);function Yl(e,t,r){r&&U(this,"message",r);let n=U(this,"object"),o=U(this,"message"),s=U(this,"ssfi");new q(n,o,s,!0).is.numeric;let a="A `delta` value is required for `closeTo`";if(t==null)throw new Pe(o?`${o}: ${a}`:a,void 0,s);if(new q(t,o,s,!0).is.numeric,a="A `expected` value is required for `closeTo`",e==null)throw new Pe(o?`${o}: ${a}`:a,void 0,s);new q(e,o,s,!0).is.numeric;const c=G(d=>d<0n?-d:d,"abs"),u=G(d=>parseFloat(parseFloat(d).toPrecision(12)),"strip");this.assert(u(c(n-e))<=t,"expected #{this} to be close to "+e+" +/- "+t,"expected #{this} not to be close to "+e+" +/- "+t)}i(Yl,"closeTo");G(Yl,"closeTo");q.addMethod("closeTo",Yl);q.addMethod("approximately",Yl);function Qf(e,t,r,n,o){let s=Array.from(t),a=Array.from(e);if(!n){if(a.length!==s.length)return!1;s=s.slice()}return a.every(function(c,u){if(o)return r?r(c,s[u]):c===s[u];if(!r){let d=s.indexOf(c);return d===-1?!1:(n||s.splice(d,1),!0)}return s.some(function(d,p){return r(c,d)?(n||s.splice(p,1),!0):!1})})}i(Qf,"isSubsetOf");G(Qf,"isSubsetOf");q.addMethod("members",function(e,t){t&&U(this,"message",t);let r=U(this,"object"),n=U(this,"message"),o=U(this,"ssfi");new q(r,n,o,!0).to.be.iterable,new q(e,n,o,!0).to.be.iterable;let s=U(this,"contains"),a=U(this,"ordered"),c,u,d;s?(c=a?"an ordered superset":"a superset",u="expected #{this} to be "+c+" of #{exp}",d="expected #{this} to not be "+c+" of #{exp}"):(c=a?"ordered members":"members",u="expected #{this} to have the same "+c+" as #{exp}",d="expected #{this} to not have the same "+c+" as #{exp}");let p=U(this,"deep")?U(this,"eql"):void 0;this.assert(Qf(e,r,p,s,a),u,d,e,r,!0)});q.addProperty("iterable",function(e){e&&U(this,"message",e);let t=U(this,"object");this.assert(t!=null&&t[Symbol.iterator],"expected #{this} to be an iterable","expected #{this} to not be an iterable",t)});function Zf(e,t){t&&U(this,"message",t);let r=U(this,"object"),n=U(this,"message"),o=U(this,"ssfi"),s=U(this,"contains"),a=U(this,"deep"),c=U(this,"eql");new q(e,n,o,!0).to.be.an("array"),s?this.assert(e.some(function(u){return r.indexOf(u)>-1}),"expected #{this} to contain one of #{exp}","expected #{this} to not contain one of #{exp}",e,r):a?this.assert(e.some(function(u){return c(r,u)}),"expected #{this} to deeply equal one of #{exp}","expected #{this} to deeply equal one of #{exp}",e,r):this.assert(e.indexOf(r)>-1,"expected #{this} to be one of #{exp}","expected #{this} to not be one of #{exp}",e,r)}i(Zf,"oneOf");G(Zf,"oneOf");q.addMethod("oneOf",Zf);function Xl(e,t,r){r&&U(this,"message",r);let n=U(this,"object"),o=U(this,"message"),s=U(this,"ssfi");new q(n,o,s,!0).is.a("function");let a;t?(new q(e,o,s,!0).to.have.property(t),a=e[t]):(new q(e,o,s,!0).is.a("function"),a=e()),n();let c=t==null?e():e[t],u=t==null?a:"."+t;U(this,"deltaMsgObj",u),U(this,"initialDeltaValue",a),U(this,"finalDeltaValue",c),U(this,"deltaBehavior","change"),U(this,"realDelta",c!==a),this.assert(a!==c,"expected "+u+" to change","expected "+u+" to not change")}i(Xl,"assertChanges");G(Xl,"assertChanges");q.addMethod("change",Xl);q.addMethod("changes",Xl);function Ql(e,t,r){r&&U(this,"message",r);let n=U(this,"object"),o=U(this,"message"),s=U(this,"ssfi");new q(n,o,s,!0).is.a("function");let a;t?(new q(e,o,s,!0).to.have.property(t),a=e[t]):(new q(e,o,s,!0).is.a("function"),a=e()),new q(a,o,s,!0).is.a("number"),n();let c=t==null?e():e[t],u=t==null?a:"."+t;U(this,"deltaMsgObj",u),U(this,"initialDeltaValue",a),U(this,"finalDeltaValue",c),U(this,"deltaBehavior","increase"),U(this,"realDelta",c-a),this.assert(c-a>0,"expected "+u+" to increase","expected "+u+" to not increase")}i(Ql,"assertIncreases");G(Ql,"assertIncreases");q.addMethod("increase",Ql);q.addMethod("increases",Ql);function Zl(e,t,r){r&&U(this,"message",r);let n=U(this,"object"),o=U(this,"message"),s=U(this,"ssfi");new q(n,o,s,!0).is.a("function");let a;t?(new q(e,o,s,!0).to.have.property(t),a=e[t]):(new q(e,o,s,!0).is.a("function"),a=e()),new q(a,o,s,!0).is.a("number"),n();let c=t==null?e():e[t],u=t==null?a:"."+t;U(this,"deltaMsgObj",u),U(this,"initialDeltaValue",a),U(this,"finalDeltaValue",c),U(this,"deltaBehavior","decrease"),U(this,"realDelta",a-c),this.assert(c-a<0,"expected "+u+" to decrease","expected "+u+" to not decrease")}i(Zl,"assertDecreases");G(Zl,"assertDecreases");q.addMethod("decrease",Zl);q.addMethod("decreases",Zl);function eh(e,t){t&&U(this,"message",t);let r=U(this,"deltaMsgObj"),n=U(this,"initialDeltaValue"),o=U(this,"finalDeltaValue"),s=U(this,"deltaBehavior"),a=U(this,"realDelta"),c;s==="change"?c=Math.abs(o-n)===Math.abs(e):c=a===Math.abs(e),this.assert(c,"expected "+r+" to "+s+" by "+e,"expected "+r+" to not "+s+" by "+e)}i(eh,"assertDelta");G(eh,"assertDelta");q.addMethod("by",eh);q.addProperty("extensible",function(){let e=U(this,"object"),t=e===Object(e)&&Object.isExtensible(e);this.assert(t,"expected #{this} to be extensible","expected #{this} to not be extensible")});q.addProperty("sealed",function(){let e=U(this,"object"),t=e===Object(e)?Object.isSealed(e):!0;this.assert(t,"expected #{this} to be sealed","expected #{this} to not be sealed")});q.addProperty("frozen",function(){let e=U(this,"object"),t=e===Object(e)?Object.isFrozen(e):!0;this.assert(t,"expected #{this} to be frozen","expected #{this} to not be frozen")});q.addProperty("finite",function(e){let t=U(this,"object");this.assert(typeof t=="number"&&isFinite(t),"expected #{this} to be a finite number","expected #{this} to not be a finite number")});function Ki(e,t){return e===t?!0:typeof t!=typeof e?!1:typeof e!="object"||e===null?e===t:t?Array.isArray(e)?Array.isArray(t)?e.every(function(r){return t.some(function(n){return Ki(r,n)})}):!1:e instanceof Date?t instanceof Date?e.getTime()===t.getTime():!1:Object.keys(e).every(function(r){let n=e[r],o=t[r];return typeof n=="object"&&n!==null&&o!==null?Ki(n,o):typeof n=="function"?n(o):o===n}):!1}i(Ki,"compareSubset");G(Ki,"compareSubset");q.addMethod("containSubset",function(e){const t=he(this,"object"),r=gt.showDiff;this.assert(Ki(e,t),"expected #{act} to contain subset #{exp}","expected #{act} to not contain subset #{exp}",e,t,r)});function Fr(e,t){return new q(e,t)}i(Fr,"expect");G(Fr,"expect");Fr.fail=function(e,t,r,n){throw arguments.length<2&&(r=e,e=void 0),r=r||"expect.fail()",new Pe(r,{actual:e,expected:t,operator:n},Fr.fail)};var L_={};yf(L_,{Should:i(()=>iB,"Should"),should:i(()=>oB,"should")});function ec(){function e(){return this instanceof String||this instanceof Number||this instanceof Boolean||typeof Symbol=="function"&&this instanceof Symbol||typeof BigInt=="function"&&this instanceof BigInt?new q(this.valueOf(),null,e):new q(this,null,e)}i(e,"shouldGetter"),G(e,"shouldGetter");function t(n){Object.defineProperty(this,"should",{value:n,enumerable:!0,configurable:!0,writable:!0})}i(t,"shouldSetter"),G(t,"shouldSetter"),Object.defineProperty(Object.prototype,"should",{set:t,get:e,configurable:!0});let r={};return r.fail=function(n,o,s,a){throw arguments.length<2&&(s=n,n=void 0),s=s||"should.fail()",new Pe(s,{actual:n,expected:o,operator:a},r.fail)},r.equal=function(n,o,s){new q(n,s).to.equal(o)},r.Throw=function(n,o,s,a){new q(n,a).to.Throw(o,s)},r.exist=function(n,o){new q(n,o).to.exist},r.not={},r.not.equal=function(n,o,s){new q(n,s).to.not.equal(o)},r.not.Throw=function(n,o,s,a){new q(n,a).to.not.Throw(o,s)},r.not.exist=function(n,o){new q(n,o).to.not.exist},r.throw=r.Throw,r.not.throw=r.not.Throw,r}i(ec,"loadShould");G(ec,"loadShould");var oB=ec,iB=ec;function M(e,t){new q(null,null,M,!0).assert(e,t,"[ negation message unavailable ]")}i(M,"assert");G(M,"assert");M.fail=function(e,t,r,n){throw arguments.length<2&&(r=e,e=void 0),r=r||"assert.fail()",new Pe(r,{actual:e,expected:t,operator:n},M.fail)};M.isOk=function(e,t){new q(e,t,M.isOk,!0).is.ok};M.isNotOk=function(e,t){new q(e,t,M.isNotOk,!0).is.not.ok};M.equal=function(e,t,r){let n=new q(e,r,M.equal,!0);n.assert(t==he(n,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",t,e,!0)};M.notEqual=function(e,t,r){let n=new q(e,r,M.notEqual,!0);n.assert(t!=he(n,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",t,e,!0)};M.strictEqual=function(e,t,r){new q(e,r,M.strictEqual,!0).to.equal(t)};M.notStrictEqual=function(e,t,r){new q(e,r,M.notStrictEqual,!0).to.not.equal(t)};M.deepEqual=M.deepStrictEqual=function(e,t,r){new q(e,r,M.deepEqual,!0).to.eql(t)};M.notDeepEqual=function(e,t,r){new q(e,r,M.notDeepEqual,!0).to.not.eql(t)};M.isAbove=function(e,t,r){new q(e,r,M.isAbove,!0).to.be.above(t)};M.isAtLeast=function(e,t,r){new q(e,r,M.isAtLeast,!0).to.be.least(t)};M.isBelow=function(e,t,r){new q(e,r,M.isBelow,!0).to.be.below(t)};M.isAtMost=function(e,t,r){new q(e,r,M.isAtMost,!0).to.be.most(t)};M.isTrue=function(e,t){new q(e,t,M.isTrue,!0).is.true};M.isNotTrue=function(e,t){new q(e,t,M.isNotTrue,!0).to.not.equal(!0)};M.isFalse=function(e,t){new q(e,t,M.isFalse,!0).is.false};M.isNotFalse=function(e,t){new q(e,t,M.isNotFalse,!0).to.not.equal(!1)};M.isNull=function(e,t){new q(e,t,M.isNull,!0).to.equal(null)};M.isNotNull=function(e,t){new q(e,t,M.isNotNull,!0).to.not.equal(null)};M.isNaN=function(e,t){new q(e,t,M.isNaN,!0).to.be.NaN};M.isNotNaN=function(e,t){new q(e,t,M.isNotNaN,!0).not.to.be.NaN};M.exists=function(e,t){new q(e,t,M.exists,!0).to.exist};M.notExists=function(e,t){new q(e,t,M.notExists,!0).to.not.exist};M.isUndefined=function(e,t){new q(e,t,M.isUndefined,!0).to.equal(void 0)};M.isDefined=function(e,t){new q(e,t,M.isDefined,!0).to.not.equal(void 0)};M.isCallable=function(e,t){new q(e,t,M.isCallable,!0).is.callable};M.isNotCallable=function(e,t){new q(e,t,M.isNotCallable,!0).is.not.callable};M.isObject=function(e,t){new q(e,t,M.isObject,!0).to.be.a("object")};M.isNotObject=function(e,t){new q(e,t,M.isNotObject,!0).to.not.be.a("object")};M.isArray=function(e,t){new q(e,t,M.isArray,!0).to.be.an("array")};M.isNotArray=function(e,t){new q(e,t,M.isNotArray,!0).to.not.be.an("array")};M.isString=function(e,t){new q(e,t,M.isString,!0).to.be.a("string")};M.isNotString=function(e,t){new q(e,t,M.isNotString,!0).to.not.be.a("string")};M.isNumber=function(e,t){new q(e,t,M.isNumber,!0).to.be.a("number")};M.isNotNumber=function(e,t){new q(e,t,M.isNotNumber,!0).to.not.be.a("number")};M.isNumeric=function(e,t){new q(e,t,M.isNumeric,!0).is.numeric};M.isNotNumeric=function(e,t){new q(e,t,M.isNotNumeric,!0).is.not.numeric};M.isFinite=function(e,t){new q(e,t,M.isFinite,!0).to.be.finite};M.isBoolean=function(e,t){new q(e,t,M.isBoolean,!0).to.be.a("boolean")};M.isNotBoolean=function(e,t){new q(e,t,M.isNotBoolean,!0).to.not.be.a("boolean")};M.typeOf=function(e,t,r){new q(e,r,M.typeOf,!0).to.be.a(t)};M.notTypeOf=function(e,t,r){new q(e,r,M.notTypeOf,!0).to.not.be.a(t)};M.instanceOf=function(e,t,r){new q(e,r,M.instanceOf,!0).to.be.instanceOf(t)};M.notInstanceOf=function(e,t,r){new q(e,r,M.notInstanceOf,!0).to.not.be.instanceOf(t)};M.include=function(e,t,r){new q(e,r,M.include,!0).include(t)};M.notInclude=function(e,t,r){new q(e,r,M.notInclude,!0).not.include(t)};M.deepInclude=function(e,t,r){new q(e,r,M.deepInclude,!0).deep.include(t)};M.notDeepInclude=function(e,t,r){new q(e,r,M.notDeepInclude,!0).not.deep.include(t)};M.nestedInclude=function(e,t,r){new q(e,r,M.nestedInclude,!0).nested.include(t)};M.notNestedInclude=function(e,t,r){new q(e,r,M.notNestedInclude,!0).not.nested.include(t)};M.deepNestedInclude=function(e,t,r){new q(e,r,M.deepNestedInclude,!0).deep.nested.include(t)};M.notDeepNestedInclude=function(e,t,r){new q(e,r,M.notDeepNestedInclude,!0).not.deep.nested.include(t)};M.ownInclude=function(e,t,r){new q(e,r,M.ownInclude,!0).own.include(t)};M.notOwnInclude=function(e,t,r){new q(e,r,M.notOwnInclude,!0).not.own.include(t)};M.deepOwnInclude=function(e,t,r){new q(e,r,M.deepOwnInclude,!0).deep.own.include(t)};M.notDeepOwnInclude=function(e,t,r){new q(e,r,M.notDeepOwnInclude,!0).not.deep.own.include(t)};M.match=function(e,t,r){new q(e,r,M.match,!0).to.match(t)};M.notMatch=function(e,t,r){new q(e,r,M.notMatch,!0).to.not.match(t)};M.property=function(e,t,r){new q(e,r,M.property,!0).to.have.property(t)};M.notProperty=function(e,t,r){new q(e,r,M.notProperty,!0).to.not.have.property(t)};M.propertyVal=function(e,t,r,n){new q(e,n,M.propertyVal,!0).to.have.property(t,r)};M.notPropertyVal=function(e,t,r,n){new q(e,n,M.notPropertyVal,!0).to.not.have.property(t,r)};M.deepPropertyVal=function(e,t,r,n){new q(e,n,M.deepPropertyVal,!0).to.have.deep.property(t,r)};M.notDeepPropertyVal=function(e,t,r,n){new q(e,n,M.notDeepPropertyVal,!0).to.not.have.deep.property(t,r)};M.ownProperty=function(e,t,r){new q(e,r,M.ownProperty,!0).to.have.own.property(t)};M.notOwnProperty=function(e,t,r){new q(e,r,M.notOwnProperty,!0).to.not.have.own.property(t)};M.ownPropertyVal=function(e,t,r,n){new q(e,n,M.ownPropertyVal,!0).to.have.own.property(t,r)};M.notOwnPropertyVal=function(e,t,r,n){new q(e,n,M.notOwnPropertyVal,!0).to.not.have.own.property(t,r)};M.deepOwnPropertyVal=function(e,t,r,n){new q(e,n,M.deepOwnPropertyVal,!0).to.have.deep.own.property(t,r)};M.notDeepOwnPropertyVal=function(e,t,r,n){new q(e,n,M.notDeepOwnPropertyVal,!0).to.not.have.deep.own.property(t,r)};M.nestedProperty=function(e,t,r){new q(e,r,M.nestedProperty,!0).to.have.nested.property(t)};M.notNestedProperty=function(e,t,r){new q(e,r,M.notNestedProperty,!0).to.not.have.nested.property(t)};M.nestedPropertyVal=function(e,t,r,n){new q(e,n,M.nestedPropertyVal,!0).to.have.nested.property(t,r)};M.notNestedPropertyVal=function(e,t,r,n){new q(e,n,M.notNestedPropertyVal,!0).to.not.have.nested.property(t,r)};M.deepNestedPropertyVal=function(e,t,r,n){new q(e,n,M.deepNestedPropertyVal,!0).to.have.deep.nested.property(t,r)};M.notDeepNestedPropertyVal=function(e,t,r,n){new q(e,n,M.notDeepNestedPropertyVal,!0).to.not.have.deep.nested.property(t,r)};M.lengthOf=function(e,t,r){new q(e,r,M.lengthOf,!0).to.have.lengthOf(t)};M.hasAnyKeys=function(e,t,r){new q(e,r,M.hasAnyKeys,!0).to.have.any.keys(t)};M.hasAllKeys=function(e,t,r){new q(e,r,M.hasAllKeys,!0).to.have.all.keys(t)};M.containsAllKeys=function(e,t,r){new q(e,r,M.containsAllKeys,!0).to.contain.all.keys(t)};M.doesNotHaveAnyKeys=function(e,t,r){new q(e,r,M.doesNotHaveAnyKeys,!0).to.not.have.any.keys(t)};M.doesNotHaveAllKeys=function(e,t,r){new q(e,r,M.doesNotHaveAllKeys,!0).to.not.have.all.keys(t)};M.hasAnyDeepKeys=function(e,t,r){new q(e,r,M.hasAnyDeepKeys,!0).to.have.any.deep.keys(t)};M.hasAllDeepKeys=function(e,t,r){new q(e,r,M.hasAllDeepKeys,!0).to.have.all.deep.keys(t)};M.containsAllDeepKeys=function(e,t,r){new q(e,r,M.containsAllDeepKeys,!0).to.contain.all.deep.keys(t)};M.doesNotHaveAnyDeepKeys=function(e,t,r){new q(e,r,M.doesNotHaveAnyDeepKeys,!0).to.not.have.any.deep.keys(t)};M.doesNotHaveAllDeepKeys=function(e,t,r){new q(e,r,M.doesNotHaveAllDeepKeys,!0).to.not.have.all.deep.keys(t)};M.throws=function(e,t,r,n){(typeof t=="string"||t instanceof RegExp)&&(r=t,t=null);let o=new q(e,n,M.throws,!0).to.throw(t,r);return he(o,"object")};M.doesNotThrow=function(e,t,r,n){(typeof t=="string"||t instanceof RegExp)&&(r=t,t=null),new q(e,n,M.doesNotThrow,!0).to.not.throw(t,r)};M.operator=function(e,t,r,n){let o;switch(t){case"==":o=e==r;break;case"===":o=e===r;break;case">":o=e>r;break;case">=":o=e>=r;break;case"<":o=e<r;break;case"<=":o=e<=r;break;case"!=":o=e!=r;break;case"!==":o=e!==r;break;default:throw n=n&&n+": ",new Pe(n+'Invalid operator "'+t+'"',void 0,M.operator)}let s=new q(o,n,M.operator,!0);s.assert(he(s,"object")===!0,"expected "+we(e)+" to be "+t+" "+we(r),"expected "+we(e)+" to not be "+t+" "+we(r))};M.closeTo=function(e,t,r,n){new q(e,n,M.closeTo,!0).to.be.closeTo(t,r)};M.approximately=function(e,t,r,n){new q(e,n,M.approximately,!0).to.be.approximately(t,r)};M.sameMembers=function(e,t,r){new q(e,r,M.sameMembers,!0).to.have.same.members(t)};M.notSameMembers=function(e,t,r){new q(e,r,M.notSameMembers,!0).to.not.have.same.members(t)};M.sameDeepMembers=function(e,t,r){new q(e,r,M.sameDeepMembers,!0).to.have.same.deep.members(t)};M.notSameDeepMembers=function(e,t,r){new q(e,r,M.notSameDeepMembers,!0).to.not.have.same.deep.members(t)};M.sameOrderedMembers=function(e,t,r){new q(e,r,M.sameOrderedMembers,!0).to.have.same.ordered.members(t)};M.notSameOrderedMembers=function(e,t,r){new q(e,r,M.notSameOrderedMembers,!0).to.not.have.same.ordered.members(t)};M.sameDeepOrderedMembers=function(e,t,r){new q(e,r,M.sameDeepOrderedMembers,!0).to.have.same.deep.ordered.members(t)};M.notSameDeepOrderedMembers=function(e,t,r){new q(e,r,M.notSameDeepOrderedMembers,!0).to.not.have.same.deep.ordered.members(t)};M.includeMembers=function(e,t,r){new q(e,r,M.includeMembers,!0).to.include.members(t)};M.notIncludeMembers=function(e,t,r){new q(e,r,M.notIncludeMembers,!0).to.not.include.members(t)};M.includeDeepMembers=function(e,t,r){new q(e,r,M.includeDeepMembers,!0).to.include.deep.members(t)};M.notIncludeDeepMembers=function(e,t,r){new q(e,r,M.notIncludeDeepMembers,!0).to.not.include.deep.members(t)};M.includeOrderedMembers=function(e,t,r){new q(e,r,M.includeOrderedMembers,!0).to.include.ordered.members(t)};M.notIncludeOrderedMembers=function(e,t,r){new q(e,r,M.notIncludeOrderedMembers,!0).to.not.include.ordered.members(t)};M.includeDeepOrderedMembers=function(e,t,r){new q(e,r,M.includeDeepOrderedMembers,!0).to.include.deep.ordered.members(t)};M.notIncludeDeepOrderedMembers=function(e,t,r){new q(e,r,M.notIncludeDeepOrderedMembers,!0).to.not.include.deep.ordered.members(t)};M.oneOf=function(e,t,r){new q(e,r,M.oneOf,!0).to.be.oneOf(t)};M.isIterable=function(e,t){if(e==null||!e[Symbol.iterator])throw t=t?`${t} expected ${we(e)} to be an iterable`:`expected ${we(e)} to be an iterable`,new Pe(t,void 0,M.isIterable)};M.changes=function(e,t,r,n){arguments.length===3&&typeof t=="function"&&(n=r,r=null),new q(e,n,M.changes,!0).to.change(t,r)};M.changesBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let s=n;n=r,o=s}else arguments.length===3&&(n=r,r=null);new q(e,o,M.changesBy,!0).to.change(t,r).by(n)};M.doesNotChange=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new q(e,n,M.doesNotChange,!0).to.not.change(t,r)};M.changesButNotBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let s=n;n=r,o=s}else arguments.length===3&&(n=r,r=null);new q(e,o,M.changesButNotBy,!0).to.change(t,r).but.not.by(n)};M.increases=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new q(e,n,M.increases,!0).to.increase(t,r)};M.increasesBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let s=n;n=r,o=s}else arguments.length===3&&(n=r,r=null);new q(e,o,M.increasesBy,!0).to.increase(t,r).by(n)};M.doesNotIncrease=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new q(e,n,M.doesNotIncrease,!0).to.not.increase(t,r)};M.increasesButNotBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let s=n;n=r,o=s}else arguments.length===3&&(n=r,r=null);new q(e,o,M.increasesButNotBy,!0).to.increase(t,r).but.not.by(n)};M.decreases=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new q(e,n,M.decreases,!0).to.decrease(t,r)};M.decreasesBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let s=n;n=r,o=s}else arguments.length===3&&(n=r,r=null);new q(e,o,M.decreasesBy,!0).to.decrease(t,r).by(n)};M.doesNotDecrease=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new q(e,n,M.doesNotDecrease,!0).to.not.decrease(t,r)};M.doesNotDecreaseBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let s=n;n=r,o=s}else arguments.length===3&&(n=r,r=null);return new q(e,o,M.doesNotDecreaseBy,!0).to.not.decrease(t,r).by(n)};M.decreasesButNotBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){let s=n;n=r,o=s}else arguments.length===3&&(n=r,r=null);new q(e,o,M.decreasesButNotBy,!0).to.decrease(t,r).but.not.by(n)};M.ifError=function(e){if(e)throw e};M.isExtensible=function(e,t){new q(e,t,M.isExtensible,!0).to.be.extensible};M.isNotExtensible=function(e,t){new q(e,t,M.isNotExtensible,!0).to.not.be.extensible};M.isSealed=function(e,t){new q(e,t,M.isSealed,!0).to.be.sealed};M.isNotSealed=function(e,t){new q(e,t,M.isNotSealed,!0).to.not.be.sealed};M.isFrozen=function(e,t){new q(e,t,M.isFrozen,!0).to.be.frozen};M.isNotFrozen=function(e,t){new q(e,t,M.isNotFrozen,!0).to.not.be.frozen};M.isEmpty=function(e,t){new q(e,t,M.isEmpty,!0).to.be.empty};M.isNotEmpty=function(e,t){new q(e,t,M.isNotEmpty,!0).to.not.be.empty};M.containsSubset=function(e,t,r){new q(e,r).to.containSubset(t)};M.doesNotContainSubset=function(e,t,r){new q(e,r).to.not.containSubset(t)};var sB=[["isOk","ok"],["isNotOk","notOk"],["throws","throw"],["throws","Throw"],["isExtensible","extensible"],["isNotExtensible","notExtensible"],["isSealed","sealed"],["isNotSealed","notSealed"],["isFrozen","frozen"],["isNotFrozen","notFrozen"],["isEmpty","empty"],["isNotEmpty","notEmpty"],["isCallable","isFunction"],["isNotCallable","isNotFunction"],["containsSubset","containSubset"]];for(const[e,t]of sB)M[t]=M[e];var wg=[];function mn(e){const t={use:mn,AssertionError:Pe,util:Zt,config:gt,expect:Fr,assert:M,Assertion:q,...L_};return~wg.indexOf(e)||(e(t,Zt),wg.push(e)),t}i(mn,"use");G(mn,"use");var F_={};Et(F_,{toBeChecked:()=>jh,toBeDisabled:()=>Ah,toBeEmpty:()=>ph,toBeEmptyDOMElement:()=>fh,toBeEnabled:()=>Oh,toBeInTheDOM:()=>Aa,toBeInTheDocument:()=>dh,toBeInvalid:()=>Nh,toBePartiallyChecked:()=>Dh,toBePartiallyPressed:()=>Jh,toBePressed:()=>$h,toBeRequired:()=>Ch,toBeValid:()=>Ih,toBeVisible:()=>wh,toContainElement:()=>Oa,toContainHTML:()=>hh,toHaveAccessibleDescription:()=>Ca,toHaveAccessibleErrorMessage:()=>yh,toHaveAccessibleName:()=>Na,toHaveAttribute:()=>gh,toHaveClass:()=>bh,toHaveDescription:()=>Lh,toHaveDisplayValue:()=>qh,toHaveErrorMessage:()=>Fh,toHaveFocus:()=>vh,toHaveFormValues:()=>Eh,toHaveRole:()=>xa,toHaveSelection:()=>Bh,toHaveStyle:()=>Ia,toHaveTextContent:()=>mh,toHaveValue:()=>Mh});var _g=Ge($b(),1),B_=class extends Error{reason;filename;line;column;source;constructor(t,r,n,o,s){super(`${t}:${n}:${o}: ${r}`),this.reason=r,this.filename=t,this.line=n,this.column=o,this.source=s}};i(B_,"t");var aB=B_,$_=class{start;end;source;constructor(t,r,n){this.start=t,this.end=r,this.source=n}};i($_,"e");var lB=$_,Qe;(function(e){e.stylesheet="stylesheet",e.rule="rule",e.declaration="declaration",e.comment="comment",e.container="container",e.charset="charset",e.document="document",e.customMedia="custom-media",e.fontFace="font-face",e.host="host",e.import="import",e.keyframes="keyframes",e.keyframe="keyframe",e.layer="layer",e.media="media",e.namespace="namespace",e.page="page",e.startingStyle="starting-style",e.supports="supports"})(Qe||(Qe={}));var Sg=i((e,t,r)=>{let n=r,o=1e4;do{const s=t.map(u=>e.indexOf(u,n));s.push(e.indexOf("\\",n));const a=s.filter(u=>u!==-1);if(a.length===0)return-1;const c=Math.min(...a);if(e[c]!=="\\")return c;n=c+2,o--}while(o>0);throw new Error("Too many escaping")},"s"),Uu=i((e,t,r)=>{let n=r,o=1e4;do{const s=t.map(u=>e.indexOf(u,n));s.push(e.indexOf("(",n)),s.push(e.indexOf('"',n)),s.push(e.indexOf("'",n)),s.push(e.indexOf("\\",n));const a=s.filter(u=>u!==-1);if(a.length===0)return-1;const c=Math.min(...a);switch(e[c]){case"\\":n=c+2;break;case"(":{const u=Uu(e,[")"],c+1);if(u===-1)return-1;n=u+1}break;case'"':{const u=Sg(e,['"'],c+1);if(u===-1)return-1;n=u+1}break;case"'":{const u=Sg(e,["'"],c+1);if(u===-1)return-1;n=u+1}break;default:return c}o--}while(o>0);throw new Error("Too many escaping")},"n"),Zc=/\/\*[^]*?(?:\*\/|$)/g;function wt(e){return e?e.trim():""}i(wt,"o");function Pa(e,t){const r=e&&typeof e.type=="string",n=r?e:t;for(const o in e){const s=e[o];Array.isArray(s)?s.forEach(a=>{Pa(a,n)}):s&&typeof s=="object"&&Pa(s,n)}return r&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}i(Pa,"c");var cB=i((e,t)=>{t=t||{};let r=1,n=1;function o(){const w={line:r,column:n};return S=>(S.position=new lB(w,{line:r,column:n},t?.source||""),f(),S)}i(o,"u");const s=[];function a(w){const S=new aB(t?.source||"",w,r,n,e);if(!t?.silent)throw S;s.push(S)}i(a,"l");function c(){const w=/^{\s*/.exec(e);return!!w&&(p(w),!0)}i(c,"f");function u(){const w=/^}/.exec(e);return!!w&&(p(w),!0)}i(u,"d");function d(){let w;const S=[];for(f(),m(S);e.length&&e.charAt(0)!=="}"&&(w=C()||R(),w);)S.push(w),m(S);return S}i(d,"y");function p(w){const S=w[0];return(function(k){const I=k.match(/\n/g);I&&(r+=I.length);const V=k.lastIndexOf(`
|
|
209
|
+
`);n=~V?k.length-V:n+k.length})(S),e=e.slice(S.length),w}i(p,"g");function f(){const w=/^\s*/.exec(e);w&&p(w)}i(f,"$");function m(w){w=w||[];let S=y();for(;S;)w.push(S),S=y();return w}i(m,"x");function y(){const w=o();if(e.charAt(0)!=="/"||e.charAt(1)!=="*")return;const S=/^\/\*[^]*?\*\//.exec(e);return S?(p(S),w({type:Qe.comment,comment:S[0].slice(2,-2)})):a("End of comment missing")}i(y,"V");function g(){const w=/^([^{]+)/.exec(e);if(w)return p(w),((S,k)=>{const I=[];let V=0;for(;V<S.length;){const H=Uu(S,k,V);if(H===-1)return I.push(S.substring(V)),I;I.push(S.substring(V,H)),V=H+1}return I})(wt(w[0]).replace(Zc,""),[","]).map(S=>wt(S))}i(g,"k");function T(){const w=o(),S=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/.exec(e);if(!S)return;p(S);const k=wt(S[0]),I=/^:\s*/.exec(e);if(!I)return a("property missing ':'");p(I);let V="";const H=Uu(e,[";","}"]);H!==-1&&(V=e.substring(0,H),p([V]),V=wt(V).replace(Zc,""));const P=w({type:Qe.declaration,property:k.replace(Zc,""),value:V}),L=/^[;\s]*/.exec(e);return L&&p(L),P}i(T,"v");function E(){const w=[];if(!c())return a("missing '{'");m(w);let S=T();for(;S;)w.push(S),m(w),S=T();return u()?w:a("missing '}'")}i(E,"w");function v(){const w=[],S=o();let k=/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/.exec(e);for(;k;){const I=p(k);w.push(I[1]);const V=/^,\s*/.exec(e);V&&p(V),k=/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/.exec(e)}if(w.length)return S({type:Qe.keyframe,values:w,declarations:E()||[]})}i(v,"b");const _=j("import"),A=j("charset"),N=j("namespace");function j(w){const S=new RegExp("^@"+w+`\\s*((?::?[^;'"]|"(?:\\\\"|[^"])*?"|'(?:\\\\'|[^'])*?')+)(?:;|$)`);return()=>{const k=o(),I=S.exec(e);if(!I)return;const V=p(I),H={type:w};return H[w]=V[1].trim(),k(H)}}i(j,"M");function C(){if(e[0]==="@")return(function(){const w=o(),S=/^@([-\w]+)?keyframes\s*/.exec(e);if(!S)return;const k=p(S)[1],I=/^([-\w]+)\s*/.exec(e);if(!I)return a("@keyframes missing name");const V=p(I)[1];if(!c())return a("@keyframes missing '{'");let H=m(),P=v();for(;P;)H.push(P),H=H.concat(m()),P=v();return u()?w({type:Qe.keyframes,name:V,vendor:k,keyframes:H}):a("@keyframes missing '}'")})()||(function(){const w=o(),S=/^@media *([^{]+)/.exec(e);if(!S)return;const k=wt(p(S)[1]);if(!c())return a("@media missing '{'");const I=m().concat(d());return u()?w({type:Qe.media,media:k,rules:I}):a("@media missing '}'")})()||(function(){const w=o(),S=/^@custom-media\s+(--\S+)\s+([^{;\s][^{;]*);/.exec(e);if(!S)return;const k=p(S);return w({type:Qe.customMedia,name:wt(k[1]),media:wt(k[2])})})()||(function(){const w=o(),S=/^@supports *([^{]+)/.exec(e);if(!S)return;const k=wt(p(S)[1]);if(!c())return a("@supports missing '{'");const I=m().concat(d());return u()?w({type:Qe.supports,supports:k,rules:I}):a("@supports missing '}'")})()||_()||A()||N()||(function(){const w=o(),S=/^@([-\w]+)?document *([^{]+)/.exec(e);if(!S)return;const k=p(S),I=wt(k[1]),V=wt(k[2]);if(!c())return a("@document missing '{'");const H=m().concat(d());return u()?w({type:Qe.document,document:V,vendor:I,rules:H}):a("@document missing '}'")})()||(function(){const w=o(),S=/^@page */.exec(e);if(!S)return;p(S);const k=g()||[];if(!c())return a("@page missing '{'");let I=m(),V=T();for(;V;)I.push(V),I=I.concat(m()),V=T();return u()?w({type:Qe.page,selectors:k,declarations:I}):a("@page missing '}'")})()||(function(){const w=o(),S=/^@host\s*/.exec(e);if(!S)return;if(p(S),!c())return a("@host missing '{'");const k=m().concat(d());return u()?w({type:Qe.host,rules:k}):a("@host missing '}'")})()||(function(){const w=o(),S=/^@font-face\s*/.exec(e);if(!S)return;if(p(S),!c())return a("@font-face missing '{'");let k=m(),I=T();for(;I;)k.push(I),k=k.concat(m()),I=T();return u()?w({type:Qe.fontFace,declarations:k}):a("@font-face missing '}'")})()||(function(){const w=o(),S=/^@container *([^{]+)/.exec(e);if(!S)return;const k=wt(p(S)[1]);if(!c())return a("@container missing '{'");const I=m().concat(d());return u()?w({type:Qe.container,container:k,rules:I}):a("@container missing '}'")})()||(function(){const w=o(),S=/^@starting-style\s*/.exec(e);if(!S)return;if(p(S),!c())return a("@starting-style missing '{'");const k=m().concat(d());return u()?w({type:Qe.startingStyle,rules:k}):a("@starting-style missing '}'")})()||(function(){const w=o(),S=/^@layer *([^{;@]+)/.exec(e);if(!S)return;const k=wt(p(S)[1]);if(!c()){const V=/^[;\s]*/.exec(e);return V&&p(V),w({type:Qe.layer,layer:k})}const I=m().concat(d());return u()?w({type:Qe.layer,layer:k,rules:I}):a("@layer missing '}'")})()}i(C,"A");function R(){const w=o(),S=g();return S?(m(),w({type:Qe.rule,selectors:S,declarations:E()||[]})):a("selector missing")}return i(R,"S"),Pa((function(){const w=d();return{type:Qe.stylesheet,stylesheet:{source:t?.source,rules:w,parsingErrors:s}}})())},"m"),uB=Object.prototype.toString;function Vu(e){return typeof e=="function"||uB.call(e)==="[object Function]"}i(Vu,"isCallable");function J_(e){var t=Number(e);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))}i(J_,"toInteger");var dB=Math.pow(2,53)-1;function U_(e){var t=J_(e);return Math.min(Math.max(t,0),dB)}i(U_,"toLength");function qt(e,t){var r=Array,n=Object(e);if(e==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");if(typeof t<"u"&&!Vu(t))throw new TypeError("Array.from: when provided, the second argument must be a function");for(var o=U_(n.length),s=Vu(r)?Object(new r(o)):new Array(o),a=0,c;a<o;)c=n[a],t?s[a]=t(c,a):s[a]=c,a+=1;return s.length=o,s}i(qt,"arrayFrom");function fo(e){"@babel/helpers - typeof";return fo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fo(e)}i(fo,"_typeof");function V_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}i(V_,"_classCallCheck");function Hu(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,th(n.key),n)}}i(Hu,"_defineProperties");function H_(e,t,r){return t&&Hu(e.prototype,t),r&&Hu(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}i(H_,"_createClass");function G_(e,t,r){return t=th(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}i(G_,"_defineProperty");function th(e){var t=z_(e,"string");return fo(t)==="symbol"?t:String(t)}i(th,"_toPropertyKey");function z_(e,t){if(fo(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(fo(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}i(z_,"_toPrimitive");var pB=(function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];V_(this,e),G_(this,"items",void 0),this.items=t}return i(e,"SetLike"),H_(e,[{key:"add",value:i(function(r){return this.has(r)===!1&&this.items.push(r),this},"add")},{key:"clear",value:i(function(){this.items=[]},"clear")},{key:"delete",value:i(function(r){var n=this.items.length;return this.items=this.items.filter(function(o){return o!==r}),n!==this.items.length},"_delete")},{key:"forEach",value:i(function(r){var n=this;this.items.forEach(function(o){r(o,o,n)})},"forEach")},{key:"has",value:i(function(r){return this.items.indexOf(r)!==-1},"has")},{key:"size",get:i(function(){return this.items.length},"get")}]),e})(),fB=typeof Set>"u"?Set:pB;function lt(e){var t;return(t=e.localName)!==null&&t!==void 0?t:e.tagName.toLowerCase()}i(lt,"getLocalName");var hB={article:"article",aside:"complementary",button:"button",datalist:"listbox",dd:"definition",details:"group",dialog:"dialog",dt:"term",fieldset:"group",figure:"figure",form:"form",footer:"contentinfo",h1:"heading",h2:"heading",h3:"heading",h4:"heading",h5:"heading",h6:"heading",header:"banner",hr:"separator",html:"document",legend:"legend",li:"listitem",math:"math",main:"main",menu:"list",nav:"navigation",ol:"list",optgroup:"group",option:"option",output:"status",progress:"progressbar",section:"region",summary:"button",table:"table",tbody:"rowgroup",textarea:"textbox",tfoot:"rowgroup",td:"cell",th:"columnheader",thead:"rowgroup",tr:"row",ul:"list"},mB={caption:new Set(["aria-label","aria-labelledby"]),code:new Set(["aria-label","aria-labelledby"]),deletion:new Set(["aria-label","aria-labelledby"]),emphasis:new Set(["aria-label","aria-labelledby"]),generic:new Set(["aria-label","aria-labelledby","aria-roledescription"]),insertion:new Set(["aria-label","aria-labelledby"]),none:new Set(["aria-label","aria-labelledby"]),paragraph:new Set(["aria-label","aria-labelledby"]),presentation:new Set(["aria-label","aria-labelledby"]),strong:new Set(["aria-label","aria-labelledby"]),subscript:new Set(["aria-label","aria-labelledby"]),superscript:new Set(["aria-label","aria-labelledby"])};function W_(e,t){return["aria-atomic","aria-busy","aria-controls","aria-current","aria-description","aria-describedby","aria-details","aria-dropeffect","aria-flowto","aria-grabbed","aria-hidden","aria-keyshortcuts","aria-label","aria-labelledby","aria-live","aria-owns","aria-relevant","aria-roledescription"].some(function(r){var n;return e.hasAttribute(r)&&!((n=mB[t])!==null&&n!==void 0&&n.has(r))})}i(W_,"hasGlobalAriaAttributes");function rh(e,t){return W_(e,t)}i(rh,"ignorePresentationalRole");function K_(e){var t=X_(e);if(t===null||Gu.indexOf(t)!==-1){var r=Y_(e);if(Gu.indexOf(t||"")===-1||rh(e,r||""))return r}return t}i(K_,"getRole");function Y_(e){var t=hB[lt(e)];if(t!==void 0)return t;switch(lt(e)){case"a":case"area":case"link":if(e.hasAttribute("href"))return"link";break;case"img":return e.getAttribute("alt")===""&&!rh(e,"img")?"presentation":"img";case"input":{var r=e,n=r.type;switch(n){case"button":case"image":case"reset":case"submit":return"button";case"checkbox":case"radio":return n;case"range":return"slider";case"email":case"tel":case"text":case"url":return e.hasAttribute("list")?"combobox":"textbox";case"search":return e.hasAttribute("list")?"combobox":"searchbox";case"number":return"spinbutton";default:return null}}case"select":return e.hasAttribute("multiple")||e.size>1?"listbox":"combobox"}return null}i(Y_,"getImplicitRole");function X_(e){var t=e.getAttribute("role");if(t!==null){var r=t.trim().split(" ")[0];if(r.length>0)return r}return null}i(X_,"getExplicitRole");var Gu=["presentation","none"];function je(e){return e!==null&&e.nodeType===e.ELEMENT_NODE}i(je,"isElement");function nh(e){return je(e)&<(e)==="caption"}i(nh,"isHTMLTableCaptionElement");function xi(e){return je(e)&<(e)==="input"}i(xi,"isHTMLInputElement");function Q_(e){return je(e)&<(e)==="optgroup"}i(Q_,"isHTMLOptGroupElement");function Z_(e){return je(e)&<(e)==="select"}i(Z_,"isHTMLSelectElement");function eS(e){return je(e)&<(e)==="table"}i(eS,"isHTMLTableElement");function tS(e){return je(e)&<(e)==="textarea"}i(tS,"isHTMLTextAreaElement");function rS(e){var t=e.ownerDocument===null?e:e.ownerDocument,r=t.defaultView;if(r===null)throw new TypeError("no window available");return r}i(rS,"safeWindow");function nS(e){return je(e)&<(e)==="fieldset"}i(nS,"isHTMLFieldSetElement");function oS(e){return je(e)&<(e)==="legend"}i(oS,"isHTMLLegendElement");function iS(e){return je(e)&<(e)==="slot"}i(iS,"isHTMLSlotElement");function sS(e){return je(e)&&e.ownerSVGElement!==void 0}i(sS,"isSVGElement");function aS(e){return je(e)&<(e)==="svg"}i(aS,"isSVGSVGElement");function lS(e){return sS(e)&<(e)==="title"}i(lS,"isSVGTitleElement");function Yi(e,t){if(je(e)&&e.hasAttribute(t)){var r=e.getAttribute(t).split(" "),n=e.getRootNode?e.getRootNode():e.ownerDocument;return r.map(function(o){return n.getElementById(o)}).filter(function(o){return o!==null})}return[]}i(Yi,"queryIdRefs");function er(e,t){return je(e)?t.indexOf(K_(e))!==-1:!1}i(er,"hasAnyConcreteRoles");function cS(e){return e.trim().replace(/\s\s+/g," ")}i(cS,"asFlatString");function uS(e,t){if(!je(e))return!1;if(e.hasAttribute("hidden")||e.getAttribute("aria-hidden")==="true")return!0;var r=t(e);return r.getPropertyValue("display")==="none"||r.getPropertyValue("visibility")==="hidden"}i(uS,"isHidden");function dS(e){return er(e,["button","combobox","listbox","textbox"])||oh(e,"range")}i(dS,"isControl");function oh(e,t){if(!je(e))return!1;switch(t){case"range":return er(e,["meter","progressbar","scrollbar","slider","spinbutton"]);default:throw new TypeError("No knowledge about abstract role '".concat(t,"'. This is likely a bug :("))}}i(oh,"hasAbstractRole");function zu(e,t){var r=qt(e.querySelectorAll(t));return Yi(e,"aria-owns").forEach(function(n){r.push.apply(r,qt(n.querySelectorAll(t)))}),r}i(zu,"querySelectorAllSubtree");function pS(e){return Z_(e)?e.selectedOptions||zu(e,"[selected]"):zu(e,'[aria-selected="true"]')}i(pS,"querySelectedOptions");function fS(e){return er(e,Gu)}i(fS,"isMarkedPresentational");function hS(e){return nh(e)}i(hS,"isNativeHostLanguageTextAlternativeElement");function mS(e){return er(e,["button","cell","checkbox","columnheader","gridcell","heading","label","legend","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"])}i(mS,"allowsNameFromContent");function yS(e){return!1}i(yS,"isDescendantOfNativeHostLanguageTextAlternativeElement");function gS(e){return xi(e)||tS(e)?e.value:e.textContent||""}i(gS,"getValueOfTextbox");function Wu(e){var t=e.getPropertyValue("content");return/^["'].*["']$/.test(t)?t.slice(1,-1):""}i(Wu,"getTextualContent");function ih(e){var t=lt(e);return t==="button"||t==="input"&&e.getAttribute("type")!=="hidden"||t==="meter"||t==="output"||t==="progress"||t==="select"||t==="textarea"}i(ih,"isLabelableElement");function sh(e){if(ih(e))return e;var t=null;return e.childNodes.forEach(function(r){if(t===null&&je(r)){var n=sh(r);n!==null&&(t=n)}}),t}i(sh,"findLabelableElement");function bS(e){if(e.control!==void 0)return e.control;var t=e.getAttribute("for");return t!==null?e.ownerDocument.getElementById(t):sh(e)}i(bS,"getControlOfLabel");function vS(e){var t=e.labels;if(t===null)return t;if(t!==void 0)return qt(t);if(!ih(e))return null;var r=e.ownerDocument;return qt(r.querySelectorAll("label")).filter(function(n){return bS(n)===e})}i(vS,"getLabels");function ES(e){var t=e.assignedNodes();return t.length===0?qt(e.childNodes):t}i(ES,"getSlotContents");function ah(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=new fB,n=rS(e),o=t.compute,s=o===void 0?"name":o,a=t.computedStyleSupportsPseudoElements,c=a===void 0?t.getComputedStyle!==void 0:a,u=t.getComputedStyle,d=u===void 0?n.getComputedStyle.bind(n):u,p=t.hidden,f=p===void 0?!1:p;function m(v,_){var A="";if(je(v)&&c){var N=d(v,"::before"),j=Wu(N);A="".concat(j," ").concat(A)}var C=iS(v)?ES(v):qt(v.childNodes).concat(Yi(v,"aria-owns"));if(C.forEach(function(S){var k=E(S,{isEmbeddedInLabel:_.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),I=je(S)?d(S).getPropertyValue("display"):"inline",V=I!=="inline"?" ":"";A+="".concat(V).concat(k).concat(V)}),je(v)&&c){var R=d(v,"::after"),w=Wu(R);A="".concat(A," ").concat(w)}return A.trim()}i(m,"computeMiscTextAlternative");function y(v,_){var A=v.getAttributeNode(_);return A!==null&&!r.has(A)&&A.value.trim()!==""?(r.add(A),A.value):null}i(y,"useAttribute");function g(v){return je(v)?y(v,"title"):null}i(g,"computeTooltipAttributeValue");function T(v){if(!je(v))return null;if(nS(v)){r.add(v);for(var _=qt(v.childNodes),A=0;A<_.length;A+=1){var N=_[A];if(oS(N))return E(N,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(eS(v)){r.add(v);for(var j=qt(v.childNodes),C=0;C<j.length;C+=1){var R=j[C];if(nh(R))return E(R,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(aS(v)){r.add(v);for(var w=qt(v.childNodes),S=0;S<w.length;S+=1){var k=w[S];if(lS(k))return k.textContent}return null}else if(lt(v)==="img"||lt(v)==="area"){var I=y(v,"alt");if(I!==null)return I}else if(Q_(v)){var V=y(v,"label");if(V!==null)return V}if(xi(v)&&(v.type==="button"||v.type==="submit"||v.type==="reset")){var H=y(v,"value");if(H!==null)return H;if(v.type==="submit")return"Submit";if(v.type==="reset")return"Reset"}var P=vS(v);if(P!==null&&P.length!==0)return r.add(v),qt(P).map(function(K){return E(K,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(K){return K.length>0}).join(" ");if(xi(v)&&v.type==="image"){var L=y(v,"alt");if(L!==null)return L;var B=y(v,"title");return B!==null?B:"Submit Query"}if(er(v,["button"])){var D=m(v,{isEmbeddedInLabel:!1});if(D!=="")return D}return null}i(T,"computeElementTextAlternative");function E(v,_){if(r.has(v))return"";if(!f&&uS(v,d)&&!_.isReferenced)return r.add(v),"";var A=je(v)?v.getAttributeNode("aria-labelledby"):null,N=A!==null&&!r.has(A)?Yi(v,"aria-labelledby"):[];if(s==="name"&&!_.isReferenced&&N.length>0)return r.add(A),N.map(function(I){return E(I,{isEmbeddedInLabel:_.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(" ");var j=_.recursion&&dS(v)&&s==="name";if(!j){var C=(je(v)&&v.getAttribute("aria-label")||"").trim();if(C!==""&&s==="name")return r.add(v),C;if(!fS(v)){var R=T(v);if(R!==null)return r.add(v),R}}if(er(v,["menu"]))return r.add(v),"";if(j||_.isEmbeddedInLabel||_.isReferenced){if(er(v,["combobox","listbox"])){r.add(v);var w=pS(v);return w.length===0?xi(v)?v.value:"":qt(w).map(function(I){return E(I,{isEmbeddedInLabel:_.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(" ")}if(oh(v,"range"))return r.add(v),v.hasAttribute("aria-valuetext")?v.getAttribute("aria-valuetext"):v.hasAttribute("aria-valuenow")?v.getAttribute("aria-valuenow"):v.getAttribute("value")||"";if(er(v,["textbox"]))return r.add(v),gS(v)}if(mS(v)||je(v)&&_.isReferenced||hS(v)||yS()){var S=m(v,{isEmbeddedInLabel:_.isEmbeddedInLabel});if(S!=="")return r.add(v),S}if(v.nodeType===v.TEXT_NODE)return r.add(v),v.textContent||"";if(_.recursion)return r.add(v),m(v,{isEmbeddedInLabel:_.isEmbeddedInLabel});var k=g(v);return k!==null?(r.add(v),k):(r.add(v),"")}return i(E,"computeTextAlternative"),cS(E(e,{isEmbeddedInLabel:!1,isReferenced:s==="description",recursion:!1}))}i(ah,"computeTextAlternative");function ho(e){"@babel/helpers - typeof";return ho=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ho(e)}i(ho,"_typeof");function Ku(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}i(Ku,"ownKeys");function Yu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ku(Object(r),!0).forEach(function(n){TS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ku(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}i(Yu,"_objectSpread");function TS(e,t,r){return t=wS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}i(TS,"_defineProperty");function wS(e){var t=_S(e,"string");return ho(t)==="symbol"?t:String(t)}i(wS,"_toPropertyKey");function _S(e,t){if(ho(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ho(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}i(_S,"_toPrimitive");function SS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Yi(e,"aria-describedby").map(function(s){return ah(s,Yu(Yu({},t),{},{compute:"description"}))}).join(" ");if(r===""){var n=e.getAttribute("aria-description");r=n===null?"":n}if(r===""){var o=e.getAttribute("title");r=o===null?"":o}return r}i(SS,"computeAccessibleDescription");function RS(e){return er(e,["caption","code","deletion","emphasis","generic","insertion","none","paragraph","presentation","strong","subscript","superscript"])}i(RS,"prohibitsNaming");function PS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return RS(e)?"":ah(e,t)}i(PS,"computeAccessibleName");var lh=Ge(cp(),1),yB=Ge(Jb(),1),gB=Ge(Ub(),1),AS=class extends Error{constructor(t,r,n,o){super(),Error.captureStackTrace&&Error.captureStackTrace(this,n);let s="";try{s=o.utils.printWithType("Received",r,o.utils.printReceived)}catch{}this.message=[o.utils.matcherHint(`${o.isNot?".not":""}.${n.name}`,"received",""),"",`${o.utils.RECEIVED_COLOR("received")} value must ${t}.`,s].join(`
|
|
210
|
+
`)}};i(AS,"GenericTypeError");var OS=AS,CS=class extends OS{constructor(...t){super("be an HTMLElement or an SVGElement",...t)}};i(CS,"HtmlElementTypeError");var Rg=CS,xS=class extends OS{constructor(...t){super("be a Node",...t)}};i(xS,"NodeTypeError");var Pg=xS;function ch(e,t,...r){if(!e||!e.ownerDocument||!e.ownerDocument.defaultView)throw new t(e,...r)}i(ch,"checkHasWindow");function NS(e,...t){ch(e,Pg,...t);const r=e.ownerDocument.defaultView;if(!(e instanceof r.Node))throw new Pg(e,...t)}i(NS,"checkNode");function Se(e,...t){ch(e,Rg,...t);const r=e.ownerDocument.defaultView;if(!(e instanceof r.HTMLElement)&&!(e instanceof r.SVGElement))throw new Rg(e,...t)}i(Se,"checkHtmlElement");var IS=class extends Error{constructor(t,r,n){super(),Error.captureStackTrace&&Error.captureStackTrace(this,r),this.message=[t.message,"",n.utils.RECEIVED_COLOR("Failing css:"),n.utils.RECEIVED_COLOR(`${t.css}`)].join(`
|
|
211
|
+
`)}};i(IS,"InvalidCSSError");var bB=IS;function MS(e,...t){const r=cB(`selector { ${e} }`,{silent:!0}).stylesheet;if(r.parsingErrors&&r.parsingErrors.length>0){const{reason:o,line:s}=r.parsingErrors[0];throw new bB({css:e,message:`Syntax error parsing expected css: ${o} on line: ${s}`},...t)}return r.rules[0].declarations.filter(o=>o.type==="declaration").reduce((o,{property:s,value:a})=>Object.assign(o,{[s]:a}),{})}i(MS,"parseCSS");function Xu(e,t){return typeof t=="string"?t:e.utils.stringify(t)}i(Xu,"display");function He(e,t,r,n,o,s){return[`${t}
|
|
212
|
+
`,`${r}:
|
|
213
|
+
${e.utils.EXPECTED_COLOR((0,_g.default)(Xu(e,n),2))}`,`${o}:
|
|
214
|
+
${e.utils.RECEIVED_COLOR((0,_g.default)(Xu(e,s),2))}`].join(`
|
|
215
|
+
`)}i(He,"getMessage");function qS(e,t){return t instanceof RegExp?t.test(e):e.includes(String(t))}i(qS,"matches");function Rs(e,t){console.warn(`Warning: ${e} has been deprecated and will be removed in future updates.`,t)}i(Rs,"deprecate");function Ps(e){return e.replace(/\s+/g," ").trim()}i(Ps,"normalize");function Sr(e){return e.tagName&&e.tagName.toLowerCase()}i(Sr,"getTag");function jS({multiple:e,options:t}){const r=[...t].filter(n=>n.selected);if(e)return[...r].map(n=>n.value);if(r.length!==0)return r[0].value}i(jS,"getSelectValue");function kS(e){switch(e.type){case"number":return e.value===""?null:Number(e.value);case"checkbox":return e.checked;default:return e.value}}i(kS,"getInputValue");var vB=["meter","progressbar","slider","spinbutton"];function DS(e){if(vB.includes(e.getAttribute("role")))return Number(e.getAttribute("aria-valuenow"))}i(DS,"getAccessibleValue");function uh(e){if(e)switch(e.tagName.toLowerCase()){case"input":return kS(e);case"select":return jS(e);default:return e.value??DS(e)}}i(uh,"getSingleElementValue");function LS(e,{wordConnector:t=", ",lastWordConnector:r=" and "}={}){return[e.slice(0,-1).join(t),e[e.length-1]].join(e.length>1?r:"")}i(LS,"toSentence");function tc(e,t){return Array.isArray(e)&&Array.isArray(t)?[...new Set(e)].every(r=>new Set(t).has(r)):e===t}i(tc,"compareAsSet");function Aa(e,t){return Rs("toBeInTheDOM","Please use toBeInTheDocument for searching the entire document and toContainElement for searching a specific container."),e&&Se(e,Aa,this),t&&Se(t,Aa,this),{pass:t?t.contains(e):!!e,message:i(()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeInTheDOM`,"element",""),"","Received:",` ${this.utils.printReceived(e&&e.cloneNode(!1))}`].join(`
|
|
216
|
+
`),"message")}}i(Aa,"toBeInTheDOM");function dh(e){(e!==null||!this.isNot)&&Se(e,dh,this);const t=e===null?!1:e.ownerDocument===e.getRootNode({composed:!0}),r=i(()=>`expected document not to contain element, found ${this.utils.stringify(e.cloneNode(!0))} instead`,"errorFound"),n=i(()=>"element could not be found in the document","errorNotFound");return{pass:t,message:i(()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeInTheDocument`,"element",""),"",this.utils.RECEIVED_COLOR(this.isNot?r():n())].join(`
|
|
217
|
+
`),"message")}}i(dh,"toBeInTheDocument");function ph(e){return Rs("toBeEmpty","Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM."),Se(e,ph,this),{pass:e.innerHTML==="",message:i(()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeEmpty`,"element",""),"","Received:",` ${this.utils.printReceived(e.innerHTML)}`].join(`
|
|
218
|
+
`),"message")}}i(ph,"toBeEmpty");function fh(e){return Se(e,fh,this),{pass:FS(e),message:i(()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeEmptyDOMElement`,"element",""),"","Received:",` ${this.utils.printReceived(e.innerHTML)}`].join(`
|
|
219
|
+
`),"message")}}i(fh,"toBeEmptyDOMElement");function FS(e){return[...e.childNodes].filter(r=>r.nodeType!==8).length===0}i(FS,"isEmptyElement");function Oa(e,t){return Se(e,Oa,this),t!==null&&Se(t,Oa,this),{pass:e.contains(t),message:i(()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toContainElement`,"element","element"),"",this.utils.RECEIVED_COLOR(`${this.utils.stringify(e.cloneNode(!1))} ${this.isNot?"contains:":"does not contain:"} ${this.utils.stringify(t&&t.cloneNode(!1))}
|
|
220
|
+
`)].join(`
|
|
221
|
+
`),"message")}}i(Oa,"toContainElement");function BS(e,t){const r=e.ownerDocument.createElement("div");return r.innerHTML=t,r.innerHTML}i(BS,"getNormalizedHtml");function hh(e,t){if(Se(e,hh,this),typeof t!="string")throw new Error(`.toContainHTML() expects a string value, got ${t}`);return{pass:e.outerHTML.includes(BS(e,t)),message:i(()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toContainHTML`,"element",""),"Expected:",` ${this.utils.EXPECTED_COLOR(t)}`,"Received:",` ${this.utils.printReceived(e.cloneNode(!0))}`].join(`
|
|
222
|
+
`),"message")}}i(hh,"toContainHTML");function mh(e,t,r={normalizeWhitespace:!0}){NS(e,mh,this);const n=r.normalizeWhitespace?Ps(e.textContent):e.textContent.replace(/\u00a0/g," "),o=n!==""&&t==="";return{pass:!o&&qS(n,t),message:i(()=>{const s=this.isNot?"not to":"to";return He(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveTextContent`,"element",""),o?"Checking with empty string will always match, use .toBeEmptyDOMElement() instead":`Expected element ${s} have text content`,t,"Received",n)},"message")}}i(mh,"toHaveTextContent");function Ca(e,t){Se(e,Ca,this);const r=SS(e),n=arguments.length===1;let o=!1;return n?o=r!=="":o=t instanceof RegExp?t.test(r):this.equals(r,t),{pass:o,message:i(()=>{const s=this.isNot?"not to":"to";return He(this,this.utils.matcherHint(`${this.isNot?".not":""}.${Ca.name}`,"element",""),`Expected element ${s} have accessible description`,t,"Received",r)},"message")}}i(Ca,"toHaveAccessibleDescription");var hi="aria-invalid",EB=["false"];function yh(e,t){Se(e,yh,this);const r=this.isNot?"not to":"to",n=this.isNot?".not.toHaveAccessibleErrorMessage":".toHaveAccessibleErrorMessage",o=e.getAttribute("aria-errormessage");if(!!o&&/\s+/.test(o))return{pass:!1,message:i(()=>He(this,this.utils.matcherHint(n,"element"),"Expected element's `aria-errormessage` attribute to be empty or a single, valid ID","","Received",`aria-errormessage="${o}"`),"message")};const a=e.getAttribute(hi);if(!e.hasAttribute(hi)||EB.includes(a))return{pass:!1,message:i(()=>He(this,this.utils.matcherHint(n,"element"),"Expected element to be marked as invalid with attribute",`${hi}="${String(!0)}"`,"Received",e.hasAttribute("aria-invalid")?`${hi}="${e.getAttribute(hi)}`:null),"message")};const u=Ps(e.ownerDocument.getElementById(o)?.textContent??"");return{pass:t===void 0?!!u:t instanceof RegExp?t.test(u):this.equals(u,t),message:i(()=>He(this,this.utils.matcherHint(n,"element"),`Expected element ${r} have accessible error message`,t??"","Received",u),"message")}}i(yh,"toHaveAccessibleErrorMessage");var TB=US(lh.elementRoles);function xa(e,t){Se(e,xa,this);const r=$S(e);return{pass:r.some(o=>o===t),message:i(()=>{const o=this.isNot?"not to":"to";return He(this,this.utils.matcherHint(`${this.isNot?".not":""}.${xa.name}`,"element",""),`Expected element ${o} have role`,t,"Received",r.join(", "))},"message")}}i(xa,"toHaveRole");function $S(e){return e.hasAttribute("role")?e.getAttribute("role").split(" ").filter(Boolean):JS(e)}i($S,"getExplicitOrImplicitRoles");function JS(e){for(const{match:t,roles:r}of TB)if(t(e))return[...r];return[]}i(JS,"getImplicitAriaRoles");function US(e){function t({name:a,attributes:c}){return`${a}${c.map(({name:u,value:d,constraints:p=[]})=>p.indexOf("undefined")!==-1?`:not([${u}])`:d?`[${u}="${d}"]`:`[${u}]`).join("")}`}i(t,"makeElementSelector");function r({attributes:a=[]}){return a.length}i(r,"getSelectorSpecificity");function n({specificity:a},{specificity:c}){return c-a}i(n,"bySelectorSpecificity");function o(a){let{attributes:c=[]}=a;const u=c.findIndex(p=>p.value&&p.name==="type"&&p.value==="text");u>=0&&(c=[...c.slice(0,u),...c.slice(u+1)]);const d=t({...a,attributes:c});return p=>u>=0&&p.type!=="text"?!1:p.matches(d)}i(o,"match");let s=[];for(const[a,c]of e.entries())s=[...s,{match:o(a),roles:Array.from(c),specificity:r(a)}];return s.sort(n)}i(US,"buildElementRoleList");function Na(e,t){Se(e,Na,this);const r=PS(e),n=arguments.length===1;let o=!1;return n?o=r!=="":o=t instanceof RegExp?t.test(r):this.equals(r,t),{pass:o,message:i(()=>{const s=this.isNot?"not to":"to";return He(this,this.utils.matcherHint(`${this.isNot?".not":""}.${Na.name}`,"element",""),`Expected element ${s} have accessible name`,t,"Received",r)},"message")}}i(Na,"toHaveAccessibleName");function Qu(e,t,r){return r===void 0?t:`${t}=${e(r)}`}i(Qu,"printAttribute");function VS(e,t,r){return r===void 0?`element.hasAttribute(${e(t)})`:`element.getAttribute(${e(t)}) === ${e(r)}`}i(VS,"getAttributeComment");function gh(e,t,r){Se(e,gh,this);const n=r!==void 0,o=e.hasAttribute(t),s=e.getAttribute(t);return{pass:n?o&&this.equals(s,r):o,message:i(()=>{const a=this.isNot?"not to":"to",c=o?Qu(this.utils.stringify,t,s):null,u=this.utils.matcherHint(`${this.isNot?".not":""}.toHaveAttribute`,"element",this.utils.printExpected(t),{secondArgument:n?this.utils.printExpected(r):void 0,comment:VS(this.utils.stringify,t,r)});return He(this,u,`Expected the element ${a} have attribute`,Qu(this.utils.stringify,t,r),"Received",c)},"message")}}i(gh,"toHaveAttribute");function HS(e){const t=e.pop();let r,n;return typeof t=="object"&&!(t instanceof RegExp)?(r=e,n=t):(r=e.concat(t),n={exact:!1}),{expectedClassNames:r,options:n}}i(HS,"getExpectedClassNamesAndOptions");function Zu(e){return e?e.split(/\s+/).filter(t=>t.length>0):[]}i(Zu,"splitClassNames");function ed(e,t){return e.every(r=>typeof r=="string"?t.includes(r):t.some(n=>r.test(n)))}i(ed,"isSubset$1");function bh(e,...t){Se(e,bh,this);const{expectedClassNames:r,options:n}=HS(t),o=Zu(e.getAttribute("class")),s=r.reduce((c,u)=>c.concat(typeof u=="string"||!u?Zu(u):u),[]),a=s.some(c=>c instanceof RegExp);if(n.exact&&a)throw new Error("Exact option does not support RegExp expected class names");return n.exact?{pass:ed(s,o)&&s.length===o.length,message:i(()=>{const c=this.isNot?"not to":"to";return He(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveClass`,"element",this.utils.printExpected(s.join(" "))),`Expected the element ${c} have EXACTLY defined classes`,s.join(" "),"Received",o.join(" "))},"message")}:s.length>0?{pass:ed(s,o),message:i(()=>{const c=this.isNot?"not to":"to";return He(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveClass`,"element",this.utils.printExpected(s.join(" "))),`Expected the element ${c} have class`,s.join(" "),"Received",o.join(" "))},"message")}:{pass:this.isNot?o.length>0:!1,message:i(()=>this.isNot?He(this,this.utils.matcherHint(".not.toHaveClass","element",""),"Expected the element to have classes","(none)","Received",o.join(" ")):[this.utils.matcherHint(".toHaveClass","element"),"At least one expected class must be provided."].join(`
|
|
223
|
+
`),"message")}}i(bh,"toHaveClass");function GS(e,t){const r={},n=e.createElement("div");return Object.keys(t).forEach(o=>{n.style[o]=t[o],r[o]=n.style[o]}),r}i(GS,"getStyleDeclaration");function zS(e,t){return!!Object.keys(e).length&&Object.entries(e).every(([r,n])=>{const o=r.startsWith("--"),s=[r];return o||s.push(r.toLowerCase()),s.some(a=>t[a]===n||t.getPropertyValue(a)===n)})}i(zS,"isSubset");function td(e){return Object.keys(e).sort().map(t=>`${t}: ${e[t]};`).join(`
|
|
224
|
+
`)}i(td,"printoutStyles");function WS(e,t,r){const n=Array.from(r).filter(s=>t[s]!==void 0).reduce((s,a)=>Object.assign(s,{[a]:r.getPropertyValue(a)}),{});return e(td(t),td(n)).replace(`${yB.default.red("+ Received")}
|
|
225
|
+
`,"")}i(WS,"expectedDiff");function Ia(e,t){Se(e,Ia,this);const r=typeof t=="object"?t:MS(t,Ia,this),{getComputedStyle:n}=e.ownerDocument.defaultView,o=GS(e.ownerDocument,r),s=n(e);return{pass:zS(o,s),message:i(()=>{const a=`${this.isNot?".not":""}.toHaveStyle`;return[this.utils.matcherHint(a,"element",""),WS(this.utils.diff,o,s)].join(`
|
|
226
|
+
|
|
227
|
+
`)},"message")}}i(Ia,"toHaveStyle");function vh(e){return Se(e,vh,this),{pass:e.ownerDocument.activeElement===e,message:i(()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toHaveFocus`,"element",""),"",...this.isNot?["Received element is focused:",` ${this.utils.printReceived(e)}`]:["Expected element with focus:",` ${this.utils.printExpected(e)}`,"Received element with focus:",` ${this.utils.printReceived(e.ownerDocument.activeElement)}`]].join(`
|
|
228
|
+
`),"message")}}i(vh,"toHaveFocus");function KS(e){const t=[...new Set(e.map(r=>r.type))];if(t.length!==1)throw new Error("Multiple form elements with the same name must be of the same type");switch(t[0]){case"radio":{const r=e.find(n=>n.checked);return r?r.value:void 0}case"checkbox":return e.filter(r=>r.checked).map(r=>r.value);default:return e.map(r=>r.value)}}i(KS,"getMultiElementValue");function YS(e,t){const r=[...e.querySelectorAll(`[name="${(0,gB.default)(t)}"]`)];if(r.length!==0)switch(r.length){case 1:return uh(r[0]);default:return KS(r)}}i(YS,"getFormValue");function XS(e){return/\[\]$/.test(e)?e.slice(0,-2):e}i(XS,"getPureName");function QS(e){return Array.from(e.elements).map(r=>r.name).reduce((r,n)=>({...r,[XS(n)]:YS(e,n)}),{})}i(QS,"getAllFormValues");function Eh(e,t){if(Se(e,Eh,this),!e.elements)throw new Error("toHaveFormValues must be called on a form or a fieldset");const r=QS(e);return{pass:Object.entries(t).every(([n,o])=>tc(r[n],o)),message:i(()=>{const n=this.isNot?"not to":"to",o=`${this.isNot?".not":""}.toHaveFormValues`,s=Object.keys(r).filter(a=>t.hasOwnProperty(a)).reduce((a,c)=>({...a,[c]:r[c]}),{});return[this.utils.matcherHint(o,"element",""),`Expected the element ${n} have form values`,this.utils.diff(t,s)].join(`
|
|
229
|
+
|
|
230
|
+
`)},"message")}}i(Eh,"toHaveFormValues");function ZS(e){const{getComputedStyle:t}=e.ownerDocument.defaultView,{display:r,visibility:n,opacity:o}=t(e);return r!=="none"&&n!=="hidden"&&n!=="collapse"&&o!=="0"&&o!==0}i(ZS,"isStyleVisible");function e0(e,t){let r;return t?r=e.nodeName==="DETAILS"&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0:r=e.nodeName==="DETAILS"?e.hasAttribute("open"):!0,!e.hasAttribute("hidden")&&r}i(e0,"isAttributeVisible");function Th(e,t){return ZS(e)&&e0(e,t)&&(!e.parentElement||Th(e.parentElement,e))}i(Th,"isElementVisible");function wh(e){Se(e,wh,this);const t=e.ownerDocument===e.getRootNode({composed:!0}),r=t&&Th(e);return{pass:r,message:i(()=>{const n=r?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeVisible`,"element",""),"",`Received element ${n} visible${t?"":" (element is not in the document)"}:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
231
|
+
`)},"message")}}i(wh,"toBeVisible");var wB=["fieldset","input","select","optgroup","option","button","textarea"];function t0(e,t){return Sr(e)==="legend"&&Sr(t)==="fieldset"&&e.isSameNode(Array.from(t.children).find(r=>Sr(r)==="legend"))}i(t0,"isFirstLegendChildOfFieldset");function r0(e,t){return Sh(t)&&!t0(e,t)}i(r0,"isElementDisabledByParent");function n0(e){return e.includes("-")}i(n0,"isCustomElement");function _h(e){const t=Sr(e);return wB.includes(t)||n0(t)}i(_h,"canElementBeDisabled");function Sh(e){return _h(e)&&e.hasAttribute("disabled")}i(Sh,"isElementDisabled");function Rh(e){const t=e.parentElement;return!!t&&(r0(e,t)||Rh(t))}i(Rh,"isAncestorDisabled");function Ph(e){return _h(e)&&(Sh(e)||Rh(e))}i(Ph,"isElementOrAncestorDisabled");function Ah(e){Se(e,Ah,this);const t=Ph(e);return{pass:t,message:i(()=>{const r=t?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeDisabled`,"element",""),"",`Received element ${r} disabled:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
232
|
+
`)},"message")}}i(Ah,"toBeDisabled");function Oh(e){Se(e,Oh,this);const t=!Ph(e);return{pass:t,message:i(()=>{const r=t?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeEnabled`,"element",""),"",`Received element ${r} enabled:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
233
|
+
`)},"message")}}i(Oh,"toBeEnabled");var _B=["select","textarea"],SB=["input","select","textarea"],RB=["color","hidden","range","submit","image","reset"],PB=["checkbox","combobox","gridcell","listbox","radiogroup","spinbutton","textbox","tree"];function o0(e){return _B.includes(Sr(e))&&e.hasAttribute("required")}i(o0,"isRequiredOnFormTagsExceptInput");function i0(e){return Sr(e)==="input"&&e.hasAttribute("required")&&(e.hasAttribute("type")&&!RB.includes(e.getAttribute("type"))||!e.hasAttribute("type"))}i(i0,"isRequiredOnSupportedInput");function s0(e){return e.hasAttribute("aria-required")&&e.getAttribute("aria-required")==="true"&&(SB.includes(Sr(e))||e.hasAttribute("role")&&PB.includes(e.getAttribute("role")))}i(s0,"isElementRequiredByARIA");function Ch(e){Se(e,Ch,this);const t=o0(e)||i0(e)||s0(e);return{pass:t,message:i(()=>{const r=t?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeRequired`,"element",""),"",`Received element ${r} required:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
234
|
+
`)},"message")}}i(Ch,"toBeRequired");var AB=["form","input","select","textarea"];function a0(e){return e.hasAttribute("aria-invalid")&&e.getAttribute("aria-invalid")!=="false"}i(a0,"isElementHavingAriaInvalid");function l0(e){return AB.includes(Sr(e))}i(l0,"isSupportsValidityMethod");function xh(e){const t=a0(e);return l0(e)?t||!e.checkValidity():t}i(xh,"isElementInvalid");function Nh(e){Se(e,Nh,this);const t=xh(e);return{pass:t,message:i(()=>{const r=t?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeInvalid`,"element",""),"",`Received element ${r} currently invalid:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
235
|
+
`)},"message")}}i(Nh,"toBeInvalid");function Ih(e){Se(e,Ih,this);const t=!xh(e);return{pass:t,message:i(()=>{const r=t?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeValid`,"element",""),"",`Received element ${r} currently valid:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
236
|
+
`)},"message")}}i(Ih,"toBeValid");function Mh(e,t){if(Se(e,Mh,this),e.tagName.toLowerCase()==="input"&&["checkbox","radio"].includes(e.type))throw new Error("input with type=checkbox or type=radio cannot be used with .toHaveValue(). Use .toBeChecked() for type=checkbox or .toHaveFormValues() instead");const r=uh(e),n=t!==void 0;let o=t,s=r;return t==r&&t!==r&&(o=`${t} (${typeof t})`,s=`${r} (${typeof r})`),{pass:n?tc(r,t):!!r,message:i(()=>{const a=this.isNot?"not to":"to",c=this.utils.matcherHint(`${this.isNot?".not":""}.toHaveValue`,"element",t);return He(this,c,`Expected the element ${a} have value`,n?o:"(any)","Received",s)},"message")}}i(Mh,"toHaveValue");function qh(e,t){Se(e,qh,this);const r=e.tagName.toLowerCase();if(!["select","input","textarea"].includes(r))throw new Error(".toHaveDisplayValue() currently supports only input, textarea or select elements, try with another matcher instead.");if(r==="input"&&["radio","checkbox"].includes(e.type))throw new Error(`.toHaveDisplayValue() currently does not support input[type="${e.type}"], try with another matcher instead.`);const n=c0(r,e),o=u0(t),s=o.filter(u=>n.some(d=>u instanceof RegExp?u.test(d):this.equals(d,String(u)))).length,a=s===n.length,c=s===o.length;return{pass:a&&c,message:i(()=>He(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveDisplayValue`,"element",""),`Expected element ${this.isNot?"not ":""}to have display value`,t,"Received",n),"message")}}i(qh,"toHaveDisplayValue");function c0(e,t){return e==="select"?Array.from(t).filter(r=>r.selected).map(r=>r.textContent):[t.value]}i(c0,"getValues");function u0(e){return e instanceof Array?e:[e]}i(u0,"getExpectedValues");function jh(e){Se(e,jh,this);const t=i(()=>e.tagName.toLowerCase()==="input"&&["checkbox","radio"].includes(e.type),"isValidInput"),r=i(()=>kh(e.getAttribute("role"))&&["true","false"].includes(e.getAttribute("aria-checked")),"isValidAriaElement");if(!t()&&!r())return{pass:!1,message:i(()=>`only inputs with type="checkbox" or type="radio" or elements with ${d0()} and a valid aria-checked attribute can be used with .toBeChecked(). Use .toHaveValue() instead`,"message")};const n=i(()=>t()?e.checked:e.getAttribute("aria-checked")==="true","isChecked");return{pass:n(),message:i(()=>{const o=n()?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeChecked`,"element",""),"",`Received element ${o} checked:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
237
|
+
`)},"message")}}i(jh,"toBeChecked");function d0(){return LS(p0().map(e=>`role="${e}"`),{lastWordConnector:" or "})}i(d0,"supportedRolesSentence");function p0(){return lh.roles.keys().filter(kh)}i(p0,"supportedRoles");function kh(e){return lh.roles.get(e)?.props["aria-checked"]!==void 0}i(kh,"roleSupportsChecked");function Dh(e){Se(e,Dh,this);const t=i(()=>e.tagName.toLowerCase()==="input"&&e.type==="checkbox","isValidInput"),r=i(()=>e.getAttribute("role")==="checkbox","isValidAriaElement");if(!t()&&!r())return{pass:!1,message:i(()=>'only inputs with type="checkbox" or elements with role="checkbox" and a valid aria-checked attribute can be used with .toBePartiallyChecked(). Use .toHaveValue() instead',"message")};const n=i(()=>{const o=e.getAttribute("aria-checked")==="mixed";return t()&&e.indeterminate||o},"isPartiallyChecked");return{pass:n(),message:i(()=>{const o=n()?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBePartiallyChecked`,"element",""),"",`Received element ${o} partially checked:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
238
|
+
`)},"message")}}i(Dh,"toBePartiallyChecked");function Lh(e,t){Rs("toHaveDescription","Please use toHaveAccessibleDescription."),Se(e,Lh,this);const r=t!==void 0,o=(e.getAttribute("aria-describedby")||"").split(/\s+/).filter(Boolean);let s="";if(o.length>0){const a=e.ownerDocument,c=o.map(u=>a.getElementById(u)).filter(Boolean);s=Ps(c.map(u=>u.textContent).join(" "))}return{pass:r?t instanceof RegExp?t.test(s):this.equals(s,t):!!s,message:i(()=>{const a=this.isNot?"not to":"to";return He(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveDescription`,"element",""),`Expected the element ${a} have description`,this.utils.printExpected(t),"Received",this.utils.printReceived(s))},"message")}}i(Lh,"toHaveDescription");function Fh(e,t){if(Rs("toHaveErrorMessage","Please use toHaveAccessibleErrorMessage."),Se(e,Fh,this),!e.hasAttribute("aria-invalid")||e.getAttribute("aria-invalid")==="false"){const a=this.isNot?".not":"";return{pass:!1,message:i(()=>He(this,this.utils.matcherHint(`${a}.toHaveErrorMessage`,"element",""),"Expected the element to have invalid state indicated by",'aria-invalid="true"',"Received",e.hasAttribute("aria-invalid")?`aria-invalid="${e.getAttribute("aria-invalid")}"`:this.utils.printReceived("")),"message")}}const r=t!==void 0,o=(e.getAttribute("aria-errormessage")||"").split(/\s+/).filter(Boolean);let s="";if(o.length>0){const a=e.ownerDocument,c=o.map(u=>a.getElementById(u)).filter(Boolean);s=Ps(c.map(u=>u.textContent).join(" "))}return{pass:r?t instanceof RegExp?t.test(s):this.equals(s,t):!!s,message:i(()=>{const a=this.isNot?"not to":"to";return He(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveErrorMessage`,"element",""),`Expected the element ${a} have error message`,this.utils.printExpected(t),"Received",this.utils.printReceived(s))},"message")}}i(Fh,"toHaveErrorMessage");function f0(e){const t=e.ownerDocument.getSelection();if(["input","textarea"].includes(e.tagName.toLowerCase()))return["radio","checkbox"].includes(e.type)?"":e.value.toString().substring(e.selectionStart,e.selectionEnd);if(t.anchorNode===null||t.focusNode===null)return"";const r=t.getRangeAt(0),n=e.ownerDocument.createRange();if(t.containsNode(e,!1))n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n);else if(!(e.contains(t.anchorNode)&&e.contains(t.focusNode))){const s=e===r.startContainer||e.contains(r.startContainer),a=e===r.endContainer||e.contains(r.endContainer);t.removeAllRanges(),(s||a)&&(n.selectNodeContents(e),s&&n.setStart(r.startContainer,r.startOffset),a&&n.setEnd(r.endContainer,r.endOffset),t.addRange(n))}const o=t.toString();return t.removeAllRanges(),t.addRange(r),o}i(f0,"getSelection");function Bh(e,t){Se(e,Bh,this);const r=t!==void 0;if(r&&typeof t!="string")throw new Error("expected selection must be a string or undefined");const n=f0(e);return{pass:r?tc(n,t):!!n,message:i(()=>{const o=this.isNot?"not to":"to",s=this.utils.matcherHint(`${this.isNot?".not":""}.toHaveSelection`,"element",t);return He(this,s,`Expected the element ${o} have selection`,r?t:"(any)","Received",n)},"message")}}i(Bh,"toHaveSelection");function $h(e){Se(e,$h,this);const t=(e.getAttribute("role")||"").split(" ").map(a=>a.trim()),r=e.tagName.toLowerCase()==="button"||e.tagName.toLowerCase()==="input"&&e.type==="button"||t.includes("button"),n=e.getAttribute("aria-pressed");return!r||!(n==="true"||n==="false")?{pass:!1,message:i(()=>'Only button or input with type="button" or element with role="button" and a valid aria-pressed attribute can be used with .toBePressed()',"message")}:{pass:r&&n==="true",message:i(()=>{const a=this.utils.matcherHint(`${this.isNot?".not":""}.toBePressed`,"element","");return He(this,a,"Expected element to have",`aria-pressed="${this.isNot?"false":"true"}"`,"Received",`aria-pressed="${n}"`)},"message")}}i($h,"toBePressed");function Jh(e){Se(e,Jh,this);const t=(e.getAttribute("role")||"").split(" ").map(a=>a.trim()),r=e.tagName.toLowerCase()==="button"||e.tagName.toLowerCase()==="input"&&e.type==="button"||t.includes("button"),n=e.getAttribute("aria-pressed");return!r||!(n==="true"||n==="false"||n==="mixed")?{pass:!1,message:i(()=>'Only button or input with type="button" or element with role="button" and a valid aria-pressed attribute can be used with .toBePartiallyPressed()',"message")}:{pass:r&&n==="mixed",message:i(()=>{const a=this.isNot?"not to":"to",c=this.utils.matcherHint(`${this.isNot?".not":""}.toBePartiallyPressed`,"element","");return He(this,c,`Expected element ${a} have`,'aria-pressed="mixed"',"Received",`aria-pressed="${n}"`)},"message")}}i(Jh,"toBePartiallyPressed");Ge($b(),1);Ge(cp(),1);Ge(Jb(),1);Ge(Ub(),1);var eu,Ag;function h0(){if(Ag)return eu;Ag=1;var e,t,r,n,o,s,a,c,u,d,p,f,m,y,g,T,E,v,_;return m=/\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,f=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,e=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu,g=/(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y,p=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,T=/[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y,_=/[\t\v\f\ufeff\p{Zs}]+/yu,c=/\r?\n|[\r\u2028\u2029]/y,u=/\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y,y=/\/\/.*/y,r=/[<>.:={}]|\/(?![\/*])/y,t=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,n=/(['"])(?:(?!\1)[^])*(\1)?/y,o=/[^<>{}]+/y,v=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,E=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,s=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,a=/^(?:return|throw|yield)$/,d=RegExp(c.source),eu=i(function*(A,{jsx:N=!1}={}){var j,C,R,w,S,k,I,V,H,P,L,B,D,K;for({length:k}=A,w=0,S="",K=[{tag:"JS"}],j=[],L=0,B=!1;w<k;){switch(V=K[K.length-1],V.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if(A[w]==="/"&&(v.test(S)||s.test(S))&&(m.lastIndex=w,I=m.exec(A))){w=m.lastIndex,S=I[0],B=!0,yield{type:"RegularExpressionLiteral",value:I[0],closed:I[1]!==void 0&&I[1]!=="\\"};continue}if(f.lastIndex=w,I=f.exec(A)){switch(D=I[0],H=f.lastIndex,P=D,D){case"(":S==="?NonExpressionParenKeyword"&&K.push({tag:"JSNonExpressionParen",nesting:L}),L++,B=!1;break;case")":L--,B=!0,V.tag==="JSNonExpressionParen"&&L===V.nesting&&(K.pop(),P="?NonExpressionParenEnd",B=!1);break;case"{":f.lastIndex=0,R=!E.test(S)&&(v.test(S)||s.test(S)),j.push(R),B=!1;break;case"}":switch(V.tag){case"InterpolationInTemplate":if(j.length===V.nesting){T.lastIndex=w,I=T.exec(A),w=T.lastIndex,S=I[0],I[1]==="${"?(S="?InterpolationInTemplate",B=!1,yield{type:"TemplateMiddle",value:I[0]}):(K.pop(),B=!0,yield{type:"TemplateTail",value:I[0],closed:I[1]==="`"});continue}break;case"InterpolationInJSX":if(j.length===V.nesting){K.pop(),w+=1,S="}",yield{type:"JSXPunctuator",value:"}"};continue}}B=j.pop(),P=B?"?ExpressionBraceEnd":"}";break;case"]":B=!0;break;case"++":case"--":P=B?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(N&&(v.test(S)||s.test(S))){K.push({tag:"JSXTag"}),w+=1,S="<",yield{type:"JSXPunctuator",value:D};continue}B=!1;break;default:B=!1}w=H,S=P,yield{type:"Punctuator",value:D};continue}if(e.lastIndex=w,I=e.exec(A)){switch(w=e.lastIndex,P=I[0],I[0]){case"for":case"if":case"while":case"with":S!=="."&&S!=="?."&&(P="?NonExpressionParenKeyword")}S=P,B=!s.test(I[0]),yield{type:I[1]==="#"?"PrivateIdentifier":"IdentifierName",value:I[0]};continue}if(g.lastIndex=w,I=g.exec(A)){w=g.lastIndex,S=I[0],B=!0,yield{type:"StringLiteral",value:I[0],closed:I[2]!==void 0};continue}if(p.lastIndex=w,I=p.exec(A)){w=p.lastIndex,S=I[0],B=!0,yield{type:"NumericLiteral",value:I[0]};continue}if(T.lastIndex=w,I=T.exec(A)){w=T.lastIndex,S=I[0],I[1]==="${"?(S="?InterpolationInTemplate",K.push({tag:"InterpolationInTemplate",nesting:j.length}),B=!1,yield{type:"TemplateHead",value:I[0]}):(B=!0,yield{type:"NoSubstitutionTemplate",value:I[0],closed:I[1]==="`"});continue}break;case"JSXTag":case"JSXTagEnd":if(r.lastIndex=w,I=r.exec(A)){switch(w=r.lastIndex,P=I[0],I[0]){case"<":K.push({tag:"JSXTag"});break;case">":K.pop(),S==="/"||V.tag==="JSXTagEnd"?(P="?JSX",B=!0):K.push({tag:"JSXChildren"});break;case"{":K.push({tag:"InterpolationInJSX",nesting:j.length}),P="?InterpolationInJSX",B=!1;break;case"/":S==="<"&&(K.pop(),K[K.length-1].tag==="JSXChildren"&&K.pop(),K.push({tag:"JSXTagEnd"}))}S=P,yield{type:"JSXPunctuator",value:I[0]};continue}if(t.lastIndex=w,I=t.exec(A)){w=t.lastIndex,S=I[0],yield{type:"JSXIdentifier",value:I[0]};continue}if(n.lastIndex=w,I=n.exec(A)){w=n.lastIndex,S=I[0],yield{type:"JSXString",value:I[0],closed:I[2]!==void 0};continue}break;case"JSXChildren":if(o.lastIndex=w,I=o.exec(A)){w=o.lastIndex,S=I[0],yield{type:"JSXText",value:I[0]};continue}switch(A[w]){case"<":K.push({tag:"JSXTag"}),w++,S="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":K.push({tag:"InterpolationInJSX",nesting:j.length}),w++,S="?InterpolationInJSX",B=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(_.lastIndex=w,I=_.exec(A)){w=_.lastIndex,yield{type:"WhiteSpace",value:I[0]};continue}if(c.lastIndex=w,I=c.exec(A)){w=c.lastIndex,B=!1,a.test(S)&&(S="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:I[0]};continue}if(u.lastIndex=w,I=u.exec(A)){w=u.lastIndex,d.test(I[0])&&(B=!1,a.test(S)&&(S="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:I[0],closed:I[1]!==void 0};continue}if(y.lastIndex=w,I=y.exec(A)){w=y.lastIndex,B=!1,yield{type:"SingleLineComment",value:I[0]};continue}C=String.fromCodePoint(A.codePointAt(w)),w+=C.length,S=C,B=!1,yield{type:V.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:C}}},"jsTokens_1"),eu}i(h0,"requireJsTokens");var OB=h0();nf(OB);var m0={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"]};new Set(m0.keyword);new Set(m0.strict);function Ni(e,t){if(!e)throw new Error(t)}i(Ni,"assert");function dn(e,t){return typeof t===e}i(dn,"isType");function y0(e){return e instanceof Promise}i(y0,"isPromise");function mo(e,t,r){Object.defineProperty(e,t,r)}i(mo,"define");function yn(e,t,r){mo(e,t,{value:r,configurable:!0,writable:!0})}i(yn,"defineValue");var Br=Symbol.for("tinyspy:spy"),CB=new Set,xB=i(e=>{e.called=!1,e.callCount=0,e.calls=[],e.results=[],e.resolves=[],e.next=[]},"reset"),NB=i(e=>(mo(e,Br,{value:{reset:i(()=>xB(e[Br]),"reset")}}),e[Br]),"defineState"),rd=i(e=>e[Br]||NB(e),"getInternalState");function g0(e){Ni(dn("function",e)||dn("undefined",e),"cannot spy on a non-function value");let t=i(function(...n){let o=rd(t);o.called=!0,o.callCount++,o.calls.push(n);let s=o.next.shift();if(s){o.results.push(s);let[p,f]=s;if(p==="ok")return f;throw f}let a,c="ok",u=o.results.length;if(o.impl)try{new.target?a=Reflect.construct(o.impl,n,new.target):a=o.impl.apply(this,n),c="ok"}catch(p){throw a=p,c="error",o.results.push([c,p]),p}let d=[c,a];return y0(a)&&a.then(p=>o.resolves[u]=["ok",p],p=>o.resolves[u]=["error",p]),o.results.push(d),a},"fn");yn(t,"_isMockFunction",!0),yn(t,"length",e?e.length:0),yn(t,"name",e&&e.name||"spy");let r=rd(t);return r.reset(),r.impl=e,t}i(g0,"createInternalSpy");function b0(e){return!!e&&e._isMockFunction===!0}i(b0,"isMockFunction");var v0=i((e,t)=>{let r=Object.getOwnPropertyDescriptor(e,t);if(r)return[e,r];let n=Object.getPrototypeOf(e);for(;n!==null;){let o=Object.getOwnPropertyDescriptor(n,t);if(o)return[n,o];n=Object.getPrototypeOf(n)}},"getDescriptor"),Og=i((e,t)=>{t!=null&&typeof t=="function"&&t.prototype!=null&&Object.setPrototypeOf(e.prototype,t.prototype)},"setPototype");function Uh(e,t,r){Ni(!dn("undefined",e),"spyOn could not find an object to spy upon"),Ni(dn("object",e)||dn("function",e),"cannot spyOn on a primitive value");let[n,o]=(()=>{if(!dn("object",t))return[t,"value"];if("getter"in t&&"setter"in t)throw new Error("cannot spy on both getter and setter");if("getter"in t)return[t.getter,"get"];if("setter"in t)return[t.setter,"set"];throw new Error("specify getter or setter to spy on")})(),[s,a]=v0(e,n)||[];Ni(a||n in e,`${String(n)} does not exist`);let c=!1;o==="value"&&a&&!a.value&&a.get&&(o="get",c=!0,r=a.get());let u;a?u=a[o]:o!=="value"?u=i(()=>e[n],"original"):u=e[n],u&&w0(u)&&(u=u[Br].getOriginal());let d=i(y=>{let{value:g,...T}=a||{configurable:!0,writable:!0};o!=="value"&&delete T.writable,T[o]=y,mo(e,n,T)},"reassign"),p=i(()=>{s!==e?Reflect.deleteProperty(e,n):a&&!u?mo(e,n,a):d(u)},"restore");r||(r=u);let f=T0(g0(r),r);o==="value"&&Og(f,u);let m=f[Br];return yn(m,"restore",p),yn(m,"getOriginal",()=>c?u():u),yn(m,"willCall",y=>(m.impl=y,f)),d(c?()=>(Og(f,r),f):f),CB.add(f),f}i(Uh,"internalSpyOn");var IB=new Set(["length","name","prototype"]);function E0(e){let t=new Set,r={};for(;e&&e!==Object.prototype&&e!==Function.prototype;){let n=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(let o of n)r[o]||IB.has(o)||(t.add(o),r[o]=Object.getOwnPropertyDescriptor(e,o));e=Object.getPrototypeOf(e)}return{properties:t,descriptors:r}}i(E0,"getAllProperties");function T0(e,t){if(!t||Br in t)return e;let{properties:r,descriptors:n}=E0(t);for(let o of r){let s=n[o];v0(e,o)||mo(e,o,s)}return e}i(T0,"wrap");function w0(e){return b0(e)&&"getOriginal"in e[Br]}i(w0,"isSpyFunction");var As=new Set;function gn(e){return typeof e=="function"&&"_isMockFunction"in e&&e._isMockFunction}i(gn,"isMockFunction");function _0(e,t,r){const o=r?{[{get:"getter",set:"setter"}[r]]:t}:t;let s;const a=S0(e,t),c=a&&a[r||"value"];gn(c)&&(s=c.mock._state());try{const u=Uh(e,o),d=Vh(u);return s&&d.mock._state(s),d}catch(u){throw u instanceof TypeError&&Symbol.toStringTag&&e[Symbol.toStringTag]==="Module"&&(u.message.includes("Cannot redefine property")||u.message.includes("Cannot replace module namespace")||u.message.includes("can't redefine non-configurable property"))?new TypeError(`Cannot spy on export "${String(o)}". Module namespace is not configurable in ESM. See: https://vitest.dev/guide/browser/#limitations`,{cause:u}):u}}i(_0,"spyOn");var MB=0;function Vh(e){const t=e;let r,n=[],o=!1,s=[],a=[],c=[];const u=rd(e),d={get calls(){return u.calls},get contexts(){return a},get instances(){return s},get invocationCallOrder(){return c},get results(){return u.results.map(([y,g])=>({type:y==="error"?"throw":"return",value:g}))},get settledResults(){return u.resolves.map(([y,g])=>({type:y==="error"?"rejected":"fulfilled",value:g}))},get lastCall(){return u.calls[u.calls.length-1]},_state(y){return y&&(r=y.implementation,n=y.onceImplementations,o=y.implementationChangedTemporarily),{implementation:r,onceImplementations:n,implementationChangedTemporarily:o}}};function p(...y){return s.push(this),a.push(this),c.push(++MB),(o?r:n.shift()||r||u.getOriginal()||(()=>{})).apply(this,y)}i(p,"mockCall");let f=t.name;t.getMockName=()=>f||"vi.fn()",t.mockName=y=>(f=y,t),t.mockClear=()=>(u.reset(),s=[],a=[],c=[],t),t.mockReset=()=>(t.mockClear(),r=void 0,n=[],t),t.mockRestore=()=>(t.mockReset(),u.restore(),t),Symbol.dispose&&(t[Symbol.dispose]=()=>t.mockRestore()),t.getMockImplementation=()=>o?r:n.at(0)||r,t.mockImplementation=y=>(r=y,u.willCall(p),t),t.mockImplementationOnce=y=>(n.push(y),t);function m(y,g){const T=r;r=y,u.willCall(p),o=!0;const E=i(()=>{r=T,o=!1},"reset"),v=g();return typeof v=="object"&&v&&typeof v.then=="function"?v.then(()=>(E(),t)):(E(),t)}return i(m,"withImplementation"),t.withImplementation=m,t.mockReturnThis=()=>t.mockImplementation(function(){return this}),t.mockReturnValue=y=>t.mockImplementation(()=>y),t.mockReturnValueOnce=y=>t.mockImplementationOnce(()=>y),t.mockResolvedValue=y=>t.mockImplementation(()=>Promise.resolve(y)),t.mockResolvedValueOnce=y=>t.mockImplementationOnce(()=>Promise.resolve(y)),t.mockRejectedValue=y=>t.mockImplementation(()=>Promise.reject(y)),t.mockRejectedValueOnce=y=>t.mockImplementationOnce(()=>Promise.reject(y)),Object.defineProperty(t,"mock",{get:i(()=>d,"get")}),u.willCall(p),As.add(t),t}i(Vh,"enhanceSpy");function nd(e){const t=Vh(Uh({spy:e||function(){}},"spy"));return e&&t.mockImplementation(e),t}i(nd,"fn");function S0(e,t){const r=Object.getOwnPropertyDescriptor(e,t);if(r)return r;let n=Object.getPrototypeOf(e);for(;n!==null;){const o=Object.getOwnPropertyDescriptor(n,t);if(o)return o;n=Object.getPrototypeOf(n)}}i(S0,"getDescriptor");var Xi=Symbol.for("matchers-object"),Qi=Symbol.for("$$jest-matchers-object-storybook"),Hh=Symbol.for("expect-global"),od=Symbol.for("asymmetric-matchers-object"),qB={toSatisfy(e,t,r){const{printReceived:n,printExpected:o,matcherHint:s}=this.utils,a=t(e);return{pass:a,message:i(()=>a?`${s(".not.toSatisfy","received","")}
|
|
239
|
+
|
|
240
|
+
Expected value to not satisfy:
|
|
241
|
+
${r||o(t)}
|
|
242
|
+
Received:
|
|
243
|
+
${n(e)}`:`${s(".toSatisfy","received","")}
|
|
244
|
+
|
|
245
|
+
Expected value to satisfy:
|
|
246
|
+
${r||o(t)}
|
|
247
|
+
|
|
248
|
+
Received:
|
|
249
|
+
${n(e)}`,"message")}},toBeOneOf(e,t){const{equals:r,customTesters:n}=this,{printReceived:o,printExpected:s,matcherHint:a}=this.utils;if(!Array.isArray(t))throw new TypeError(`You must provide an array to ${a(".toBeOneOf")}, not '${typeof t}'.`);const c=t.length===0||t.some(u=>r(u,e,n));return{pass:c,message:i(()=>c?`${a(".not.toBeOneOf","received","")}
|
|
250
|
+
|
|
251
|
+
Expected value to not be one of:
|
|
252
|
+
${s(t)}
|
|
253
|
+
Received:
|
|
254
|
+
${o(e)}`:`${a(".toBeOneOf","received","")}
|
|
255
|
+
|
|
256
|
+
Expected value to be one of:
|
|
257
|
+
${s(t)}
|
|
258
|
+
|
|
259
|
+
Received:
|
|
260
|
+
${o(e)}`,"message")}}},Ma=Je.green,Gh=Je.red,jB=Je.inverse,kB=Je.bold,xr=Je.dim;function R0(e,t="received",r="expected",n={}){const{comment:o="",isDirectExpectCall:s=!1,isNot:a=!1,promise:c="",secondArgument:u="",expectedColor:d=Ma,receivedColor:p=Gh,secondArgumentColor:f=Ma}=n;let m="",y="expect";return!s&&t!==""&&(m+=xr(`${y}(`)+p(t),y=")"),c!==""&&(m+=xr(`${y}.`)+c,y=""),a&&(m+=`${xr(`${y}.`)}not`,y=""),e.includes(".")?y+=e:(m+=xr(`${y}.`)+e,y=""),r===""?y+="()":(m+=xr(`${y}(`)+d(r),u&&(m+=xr(", ")+f(u)),y=")"),o!==""&&(y+=` // ${o}`),y!==""&&(m+=xr(y)),m}i(R0,"matcherHint");var DB="·";function zh(e){return e.replace(/\s+$/gm,t=>DB.repeat(t.length))}i(zh,"replaceTrailingSpaces");function P0(e){return Gh(zh(bt(e)))}i(P0,"printReceived");function A0(e){return Ma(zh(bt(e)))}i(A0,"printExpected");function Wh(){return{EXPECTED_COLOR:Ma,RECEIVED_COLOR:Gh,INVERTED_COLOR:jB,BOLD_WEIGHT:kB,DIM_COLOR:xr,diff:kn,matcherHint:R0,printReceived:P0,printExpected:A0,printDiffOrStringify:ff,printWithType:O0}}i(Wh,"getMatcherUtils");function O0(e,t,r){const n=Ui(t),o=n!=="null"&&n!=="undefined"?`${e} has type: ${n}
|
|
261
|
+
`:"",s=`${e} has value: ${r(t)}`;return o+s}i(O0,"printWithType");function rc(){return globalThis[Qi].customEqualityTesters}i(rc,"getCustomEqualityTesters");function Re(e,t,r,n){return r=r||[],eo(e,t,[],[],r,n?Kh:N0)}i(Re,"equals");function id(e){return!!e&&typeof e=="object"&&"asymmetricMatch"in e&&kt("Function",e.asymmetricMatch)}i(id,"isAsymmetric");function C0(e,t){const r=id(e),n=id(t);if(!(r&&n)){if(r)return e.asymmetricMatch(t);if(n)return t.asymmetricMatch(e)}}i(C0,"asymmetricMatch");function eo(e,t,r,n,o,s){let a=!0;const c=C0(e,t);if(c!==void 0)return c;const u={equals:Re};for(let g=0;g<o.length;g++){const T=o[g].call(u,e,t,o);if(T!==void 0)return T}if(typeof URL=="function"&&e instanceof URL&&t instanceof URL)return e.href===t.href;if(Object.is(e,t))return!0;if(e===null||t===null)return e===t;const d=Object.prototype.toString.call(e);if(d!==Object.prototype.toString.call(t))return!1;switch(d){case"[object Boolean]":case"[object String]":case"[object Number]":return typeof e!=typeof t?!1:typeof e!="object"&&typeof t!="object"?Object.is(e,t):Object.is(e.valueOf(),t.valueOf());case"[object Date]":{const g=+e,T=+t;return g===T||Number.isNaN(g)&&Number.isNaN(T)}case"[object RegExp]":return e.source===t.source&&e.flags===t.flags;case"[object Temporal.Instant]":case"[object Temporal.ZonedDateTime]":case"[object Temporal.PlainDateTime]":case"[object Temporal.PlainDate]":case"[object Temporal.PlainTime]":case"[object Temporal.PlainYearMonth]":case"[object Temporal.PlainMonthDay]":return e.equals(t);case"[object Temporal.Duration]":return e.toString()===t.toString()}if(typeof e!="object"||typeof t!="object")return!1;if(ad(e)&&ad(t))return e.isEqualNode(t);let p=r.length;for(;p--;){if(r[p]===e)return n[p]===t;if(n[p]===t)return!1}if(r.push(e),n.push(t),d==="[object Array]"&&e.length!==t.length)return!1;if(e instanceof Error&&t instanceof Error)try{return x0(e,t,r,n,o,s)}finally{r.pop(),n.pop()}const f=sd(e,s);let m,y=f.length;if(sd(t,s).length!==y)return!1;for(;y--;)if(m=f[y],a=s(t,m)&&eo(e[m],t[m],r,n,o,s),!a)return!1;return r.pop(),n.pop(),a}i(eo,"eq");function x0(e,t,r,n,o,s){let a=Object.getPrototypeOf(e)===Object.getPrototypeOf(t)&&e.name===t.name&&e.message===t.message;return typeof t.cause<"u"&&a&&(a=eo(e.cause,t.cause,r,n,o,s)),e instanceof AggregateError&&t instanceof AggregateError&&a&&(a=eo(e.errors,t.errors,r,n,o,s)),a&&(a=eo({...e},{...t},r,n,o,s)),a}i(x0,"isErrorEqual");function sd(e,t){const r=[];for(const n in e)t(e,n)&&r.push(n);return r.concat(Object.getOwnPropertySymbols(e).filter(n=>Object.getOwnPropertyDescriptor(e,n).enumerable))}i(sd,"keys");function N0(e,t){return Kh(e,t)&&e[t]!==void 0}i(N0,"hasDefinedKey");function Kh(e,t){return Object.prototype.hasOwnProperty.call(e,t)}i(Kh,"hasKey");function kt(e,t){return Object.prototype.toString.apply(t)===`[object ${e}]`}i(kt,"isA");function ad(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"&&"nodeName"in e&&typeof e.nodeName=="string"&&"isEqualNode"in e&&typeof e.isEqualNode=="function"}i(ad,"isDomNode");var I0="@@__IMMUTABLE_KEYED__@@",M0="@@__IMMUTABLE_SET__@@",LB="@@__IMMUTABLE_LIST__@@",nc="@@__IMMUTABLE_ORDERED__@@",FB="@@__IMMUTABLE_RECORD__@@";function q0(e){return!!(e&&e[I0]&&!e[nc])}i(q0,"isImmutableUnorderedKeyed");function j0(e){return!!(e&&e[M0]&&!e[nc])}i(j0,"isImmutableUnorderedSet");function Os(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}i(Os,"isObjectLiteral");function k0(e){return!!(e&&Os(e)&&e[LB])}i(k0,"isImmutableList");function D0(e){return!!(e&&Os(e)&&e[I0]&&e[nc])}i(D0,"isImmutableOrderedKeyed");function L0(e){return!!(e&&Os(e)&&e[M0]&&e[nc])}i(L0,"isImmutableOrderedSet");function F0(e){return!!(e&&Os(e)&&e[FB])}i(F0,"isImmutableRecord");var B0=Symbol.iterator;function ld(e){return!!(e!=null&&e[B0])}i(ld,"hasIterator");function At(e,t,r=[],n=[],o=[]){if(typeof e!="object"||typeof t!="object"||Array.isArray(e)||Array.isArray(t)||!ld(e)||!ld(t))return;if(e.constructor!==t.constructor)return!1;let s=n.length;for(;s--;)if(n[s]===e)return o[s]===t;n.push(e),o.push(t);const a=[...r.filter(d=>d!==At),c];function c(d,p){return At(d,p,[...r],[...n],[...o])}if(i(c,"iterableEqualityWithStack"),e.size!==void 0){if(e.size!==t.size)return!1;if(kt("Set",e)||j0(e)){let d=!0;for(const p of e)if(!t.has(p)){let f=!1;for(const m of t)Re(p,m,a)===!0&&(f=!0);if(f===!1){d=!1;break}}return n.pop(),o.pop(),d}else if(kt("Map",e)||q0(e)){let d=!0;for(const p of e)if(!t.has(p[0])||!Re(p[1],t.get(p[0]),a)){let f=!1;for(const m of t){const y=Re(p[0],m[0],a);let g=!1;y===!0&&(g=Re(p[1],m[1],a)),g===!0&&(f=!0)}if(f===!1){d=!1;break}}return n.pop(),o.pop(),d}}const u=t[B0]();for(const d of e){const p=u.next();if(p.done||!Re(d,p.value,a))return!1}if(!u.next().done)return!1;if(!k0(e)&&!D0(e)&&!L0(e)&&!F0(e)){const d=Object.entries(e),p=Object.entries(t);if(!Re(d,p,a))return!1}return n.pop(),o.pop(),!0}i(At,"iterableEquality");function oc(e,t){return!e||typeof e!="object"||e===Object.prototype?!1:Object.prototype.hasOwnProperty.call(e,t)||oc(Object.getPrototypeOf(e),t)}i(oc,"hasPropertyInObject");function $0(e){return Ci(e)&&!(e instanceof Error)&&!Array.isArray(e)&&!(e instanceof Date)}i($0,"isObjectWithKeys");function jo(e,t,r=[]){const n=r.filter(s=>s!==jo),o=i((s=new WeakMap)=>(a,c)=>{if($0(c))return Object.keys(c).every(u=>{if(c[u]!=null&&typeof c[u]=="object"){if(s.has(c[u]))return Re(a[u],c[u],n);s.set(c[u],!0)}const d=a!=null&&oc(a,u)&&Re(a[u],c[u],[...n,o(s)]);return s.delete(c[u]),d})},"subsetEqualityWithContext");return o()(e,t)}i(jo,"subsetEquality");function cd(e,t){if(!(e==null||t==null||e.constructor===t.constructor))return!1}i(cd,"typeEquality");function ud(e,t){let r=e,n=t;if(!(e instanceof DataView&&t instanceof DataView)){if(!(e instanceof ArrayBuffer)||!(t instanceof ArrayBuffer))return;try{r=new DataView(e),n=new DataView(t)}catch{return}}if(r.byteLength!==n.byteLength)return!1;for(let o=0;o<r.byteLength;o++)if(r.getUint8(o)!==n.getUint8(o))return!1;return!0}i(ud,"arrayBufferEquality");function qa(e,t,r=[]){if(!Array.isArray(e)||!Array.isArray(t))return;const n=Object.keys(e),o=Object.keys(t),s=r.filter(a=>a!==qa);return Re(e,t,s,!0)&&Re(n,o)}i(qa,"sparseArrayEquality");function J0(e,t="#{this}",r="#{exp}"){const n=`expected ${t} to be ${r} // Object.is equality`;return["toStrictEqual","toEqual"].includes(e)?`${n}
|
|
262
|
+
|
|
263
|
+
If it should pass with deep equality, replace "toBe" with "${e}"
|
|
264
|
+
|
|
265
|
+
Expected: ${t}
|
|
266
|
+
Received: serializes to the same string
|
|
267
|
+
`:n}i(J0,"generateToBeMessage");function U0(e,t){return`${t} ${e}${t===1?"":"s"}`}i(U0,"pluralize");function Vs(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e).filter(t=>{var r;return(r=Object.getOwnPropertyDescriptor(e,t))===null||r===void 0?void 0:r.enumerable})]}i(Vs,"getObjectKeys");function V0(e,t,r){let n=0;const o=i((s=new WeakMap)=>(a,c)=>{if(Array.isArray(a)){if(Array.isArray(c)&&c.length===a.length)return c.map((u,d)=>o(s)(a[d],u))}else{if(a instanceof Date)return a;if(Ci(a)&&Ci(c)){if(Re(a,c,[...r,At,jo]))return c;const u={};s.set(a,u),typeof a.constructor=="function"&&typeof a.constructor.name=="string"&&Object.defineProperty(u,"constructor",{enumerable:!1,value:a.constructor});for(const d of Vs(a))oc(c,d)?u[d]=s.has(a[d])?s.get(a[d]):o(s)(a[d],c[d]):s.has(a[d])||(n+=1,Ci(a[d])&&(n+=Vs(a[d]).length),o(s)(a[d],c[d]));if(Vs(u).length>0)return u}}return a},"getObjectSubsetWithContext");return{subset:o()(e,t),stripped:n}}i(V0,"getObjectSubset");if(!Object.prototype.hasOwnProperty.call(globalThis,Xi)){const e=new WeakMap;Object.defineProperty(globalThis,Xi,{get:i(()=>e,"get")})}if(!Object.prototype.hasOwnProperty.call(globalThis,Qi)){const e=Object.create(null),t=[];Object.defineProperty(globalThis,Qi,{configurable:!0,get:i(()=>({state:globalThis[Xi].get(globalThis[Hh]),matchers:e,customEqualityTesters:t}),"get")})}if(!Object.prototype.hasOwnProperty.call(globalThis,od)){const e=Object.create(null);Object.defineProperty(globalThis,od,{get:i(()=>e,"get")})}function Zi(e){return globalThis[Xi].get(e)}i(Zi,"getState");function Hs(e,t){const r=globalThis[Xi],n=r.get(t)||{},o=Object.defineProperties(n,{...Object.getOwnPropertyDescriptors(n),...Object.getOwnPropertyDescriptors(e)});r.set(t,o)}i(Hs,"setState");var H0=class{$$typeof=Symbol.for("jest.asymmetricMatcher");constructor(t,r=!1){this.sample=t,this.inverse=r}getMatcherContext(t){return{...Zi(t||globalThis[Hh]),equals:Re,isNot:this.inverse,customTesters:rc(),utils:{...Wh(),diff:kn,stringify:bt,iterableEquality:At,subsetEquality:jo}}}};i(H0,"AsymmetricMatcher");var Ar=H0;Ar.prototype[Symbol.for("chai/inspect")]=function(e){const t=bt(this,e.depth,{min:!0});return t.length<=e.truncate?t:`${this.toString()}{…}`};var G0=class extends Ar{constructor(t,r=!1){if(!kt("String",t))throw new Error("Expected is not a string");super(t,r)}asymmetricMatch(t){const r=kt("String",t)&&t.includes(this.sample);return this.inverse?!r:r}toString(){return`String${this.inverse?"Not":""}Containing`}getExpectedType(){return"string"}};i(G0,"StringContaining");var Cg=G0,z0=class extends Ar{asymmetricMatch(t){return t!=null}toString(){return"Anything"}toAsymmetricMatcher(){return"Anything"}};i(z0,"Anything");var BB=z0,W0=class extends Ar{constructor(t,r=!1){super(t,r)}getPrototype(t){return Object.getPrototypeOf?Object.getPrototypeOf(t):t.constructor.prototype===t?null:t.constructor.prototype}hasProperty(t,r){return t?Object.prototype.hasOwnProperty.call(t,r)?!0:this.hasProperty(this.getPrototype(t),r):!1}asymmetricMatch(t){if(typeof this.sample!="object")throw new TypeError(`You must provide an object to ${this.toString()}, not '${typeof this.sample}'.`);let r=!0;const n=this.getMatcherContext();for(const o in this.sample)if(!this.hasProperty(t,o)||!Re(this.sample[o],t[o],n.customTesters)){r=!1;break}return this.inverse?!r:r}toString(){return`Object${this.inverse?"Not":""}Containing`}getExpectedType(){return"object"}};i(W0,"ObjectContaining");var xg=W0,K0=class extends Ar{constructor(t,r=!1){super(t,r)}asymmetricMatch(t){if(!Array.isArray(this.sample))throw new TypeError(`You must provide an array to ${this.toString()}, not '${typeof this.sample}'.`);const r=this.getMatcherContext(),n=this.sample.length===0||Array.isArray(t)&&this.sample.every(o=>t.some(s=>Re(o,s,r.customTesters)));return this.inverse?!n:n}toString(){return`Array${this.inverse?"Not":""}Containing`}getExpectedType(){return"array"}};i(K0,"ArrayContaining");var Ng=K0,Y0=class extends Ar{constructor(t){if(typeof t>"u")throw new TypeError("any() expects to be passed a constructor function. Please pass one or use anything() to match any object.");super(t)}fnNameFor(t){if(t.name)return t.name;const n=Function.prototype.toString.call(t).match(/^(?:async)?\s*function\s*(?:\*\s*)?([\w$]+)\s*\(/);return n?n[1]:"<anonymous>"}asymmetricMatch(t){return this.sample===String?typeof t=="string"||t instanceof String:this.sample===Number?typeof t=="number"||t instanceof Number:this.sample===Function?typeof t=="function"||typeof t=="function":this.sample===Boolean?typeof t=="boolean"||t instanceof Boolean:this.sample===BigInt?typeof t=="bigint"||t instanceof BigInt:this.sample===Symbol?typeof t=="symbol"||t instanceof Symbol:this.sample===Object?typeof t=="object":t instanceof this.sample}toString(){return"Any"}getExpectedType(){return this.sample===String?"string":this.sample===Number?"number":this.sample===Function?"function":this.sample===Object?"object":this.sample===Boolean?"boolean":this.fnNameFor(this.sample)}toAsymmetricMatcher(){return`Any<${this.fnNameFor(this.sample)}>`}};i(Y0,"Any");var $B=Y0,X0=class extends Ar{constructor(t,r=!1){if(!kt("String",t)&&!kt("RegExp",t))throw new Error("Expected is not a String or a RegExp");super(new RegExp(t),r)}asymmetricMatch(t){const r=kt("String",t)&&this.sample.test(t);return this.inverse?!r:r}toString(){return`String${this.inverse?"Not":""}Matching`}getExpectedType(){return"string"}};i(X0,"StringMatching");var Ig=X0,Q0=class extends Ar{precision;constructor(t,r=2,n=!1){if(!kt("Number",t))throw new Error("Expected is not a Number");if(!kt("Number",r))throw new Error("Precision is not a Number");super(t),this.inverse=n,this.precision=r}asymmetricMatch(t){if(!kt("Number",t))return!1;let r=!1;return t===Number.POSITIVE_INFINITY&&this.sample===Number.POSITIVE_INFINITY||t===Number.NEGATIVE_INFINITY&&this.sample===Number.NEGATIVE_INFINITY?r=!0:r=Math.abs(this.sample-t)<10**-this.precision/2,this.inverse?!r:r}toString(){return`Number${this.inverse?"Not":""}CloseTo`}getExpectedType(){return"number"}toAsymmetricMatcher(){return[this.toString(),this.sample,`(${U0("digit",this.precision)})`].join(" ")}};i(Q0,"CloseTo");var Mg=Q0,JB=i((e,t)=>{t.addMethod(e.expect,"anything",()=>new BB),t.addMethod(e.expect,"any",r=>new $B(r)),t.addMethod(e.expect,"stringContaining",r=>new Cg(r)),t.addMethod(e.expect,"objectContaining",r=>new xg(r)),t.addMethod(e.expect,"arrayContaining",r=>new Ng(r)),t.addMethod(e.expect,"stringMatching",r=>new Ig(r)),t.addMethod(e.expect,"closeTo",(r,n)=>new Mg(r,n)),e.expect.not={stringContaining:i(r=>new Cg(r,!0),"stringContaining"),objectContaining:i(r=>new xg(r,!0),"objectContaining"),arrayContaining:i(r=>new Ng(r,!0),"arrayContaining"),stringMatching:i(r=>new Ig(r,!0),"stringMatching"),closeTo:i((r,n)=>new Mg(r,n,!0),"closeTo")}},"JestAsymmetricMatchers");function dd(e,t,r){const n=e.flag(t,"negate")?"not.":"",o=`${e.flag(t,"_name")}(${r?"expected":""})`,s=e.flag(t,"promise");return`expect(actual)${s?`.${s}`:""}.${n}${o}`}i(dd,"createAssertionMessage");function pd(e,t,r,n){const o=e;if(o&&t instanceof Promise){t=t.finally(()=>{if(!o.promises)return;const a=o.promises.indexOf(t);a!==-1&&o.promises.splice(a,1)}),o.promises||(o.promises=[]),o.promises.push(t);let s=!1;return o.onFinished??(o.onFinished=[]),o.onFinished.push(()=>{if(!s){var a;const u=(((a=globalThis.__vitest_worker__)===null||a===void 0?void 0:a.onFilterStackTrace)||(d=>d||""))(n.stack);console.warn([`Promise returned by \`${r}\` was not awaited. `,"Vitest currently auto-awaits hanging assertions at the end of the test, but this will cause the test to fail in Vitest 3. ",`Please remember to await the assertion.
|
|
268
|
+
`,u].join(""))}}),{then(a,c){return s=!0,t.then(a,c)},catch(a){return t.catch(a)},finally(a){return t.finally(a)},[Symbol.toStringTag]:"Promise"}}return t}i(pd,"recordAsyncExpect");function fd(e,t){var r;e.result||(e.result={state:"fail"}),e.result.state="fail",(r=e.result).errors||(r.errors=[]),e.result.errors.push(vl(t))}i(fd,"handleTestError");function Yh(e,t,r){return function(...n){if(t!=="withTest"&&e.flag(this,"_name",t),!e.flag(this,"soft"))return r.apply(this,n);const o=e.flag(this,"vitest-test");if(!o)throw new Error("expect.soft() can only be used inside a test");try{const s=r.apply(this,n);return s&&typeof s=="object"&&typeof s.then=="function"?s.then(Zw,a=>{fd(o,a)}):s}catch(s){fd(o,s)}}}i(Yh,"wrapAssertion");var UB=i((e,t)=>{const{AssertionError:r}=e,n=rc();function o(d,p){const f=i(m=>{const y=Yh(t,m,p);t.addMethod(e.Assertion.prototype,m,y),t.addMethod(globalThis[Qi].matchers,m,y)},"addMethod");Array.isArray(d)?d.forEach(m=>f(m)):f(d)}i(o,"def"),["throw","throws","Throw"].forEach(d=>{t.overwriteMethod(e.Assertion.prototype,d,p=>function(...f){const m=t.flag(this,"promise"),y=t.flag(this,"object"),g=t.flag(this,"negate");if(m==="rejects")t.flag(this,"object",()=>{throw y});else if(m==="resolves"&&typeof y!="function"){if(g)return;{const T=t.flag(this,"message")||"expected promise to throw an error, but it didn't",E={showDiff:!1};throw new r(T,E,t.flag(this,"ssfi"))}}p.apply(this,f)})}),o("withTest",function(d){return t.flag(this,"vitest-test",d),this}),o("toEqual",function(d){const p=t.flag(this,"object"),f=Re(p,d,[...n,At]);return this.assert(f,"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",d,p)}),o("toStrictEqual",function(d){const p=t.flag(this,"object"),f=Re(p,d,[...n,At,cd,qa,ud],!0);return this.assert(f,"expected #{this} to strictly equal #{exp}","expected #{this} to not strictly equal #{exp}",d,p)}),o("toBe",function(d){const p=this._obj,f=Object.is(p,d);let m="";return f||(Re(p,d,[...n,At,cd,qa,ud],!0)?m="toStrictEqual":Re(p,d,[...n,At])&&(m="toEqual")),this.assert(f,J0(m),"expected #{this} not to be #{exp} // Object.is equality",d,p)}),o("toMatchObject",function(d){const p=this._obj,f=Re(p,d,[...n,At,jo]),m=t.flag(this,"negate"),{subset:y,stripped:g}=V0(p,d,n);if(f&&m||!f&&!m){const T=t.getMessage(this,[f,"expected #{this} to match object #{exp}","expected #{this} to not match object #{exp}",d,y,!1]),E=g===0?T:`${T}
|
|
269
|
+
(${g} matching ${g===1?"property":"properties"} omitted from actual)`;throw new r(E,{showDiff:!0,expected:d,actual:y})}}),o("toMatch",function(d){const p=this._obj;if(typeof p!="string")throw new TypeError(`.toMatch() expects to receive a string, but got ${typeof p}`);return this.assert(typeof d=="string"?p.includes(d):p.match(d),"expected #{this} to match #{exp}","expected #{this} not to match #{exp}",d,p)}),o("toContain",function(d){const p=this._obj;if(typeof Node<"u"&&p instanceof Node){if(!(d instanceof Node))throw new TypeError(`toContain() expected a DOM node as the argument, but got ${typeof d}`);return this.assert(p.contains(d),"expected #{this} to contain element #{exp}","expected #{this} not to contain element #{exp}",d,p)}if(typeof DOMTokenList<"u"&&p instanceof DOMTokenList){Xt(d,"class name",["string"]);const m=t.flag(this,"negate")?p.value.replace(d,"").trim():`${p.value} ${d}`;return this.assert(p.contains(d),`expected "${p.value}" to contain "${d}"`,`expected "${p.value}" not to contain "${d}"`,m,p.value)}return typeof p=="string"&&typeof d=="string"?this.assert(p.includes(d),"expected #{this} to contain #{exp}","expected #{this} not to contain #{exp}",d,p):(p!=null&&typeof p!="string"&&t.flag(this,"object",Array.from(p)),this.contain(d))}),o("toContainEqual",function(d){const p=t.flag(this,"object"),f=Array.from(p).findIndex(m=>Re(m,d,n));this.assert(f!==-1,"expected #{this} to deep equally contain #{exp}","expected #{this} to not deep equally contain #{exp}",d)}),o("toBeTruthy",function(){const d=t.flag(this,"object");this.assert(!!d,"expected #{this} to be truthy","expected #{this} to not be truthy",!0,d)}),o("toBeFalsy",function(){const d=t.flag(this,"object");this.assert(!d,"expected #{this} to be falsy","expected #{this} to not be falsy",!1,d)}),o("toBeGreaterThan",function(d){const p=this._obj;return Xt(p,"actual",["number","bigint"]),Xt(d,"expected",["number","bigint"]),this.assert(p>d,`expected ${p} to be greater than ${d}`,`expected ${p} to be not greater than ${d}`,d,p,!1)}),o("toBeGreaterThanOrEqual",function(d){const p=this._obj;return Xt(p,"actual",["number","bigint"]),Xt(d,"expected",["number","bigint"]),this.assert(p>=d,`expected ${p} to be greater than or equal to ${d}`,`expected ${p} to be not greater than or equal to ${d}`,d,p,!1)}),o("toBeLessThan",function(d){const p=this._obj;return Xt(p,"actual",["number","bigint"]),Xt(d,"expected",["number","bigint"]),this.assert(p<d,`expected ${p} to be less than ${d}`,`expected ${p} to be not less than ${d}`,d,p,!1)}),o("toBeLessThanOrEqual",function(d){const p=this._obj;return Xt(p,"actual",["number","bigint"]),Xt(d,"expected",["number","bigint"]),this.assert(p<=d,`expected ${p} to be less than or equal to ${d}`,`expected ${p} to be not less than or equal to ${d}`,d,p,!1)}),o("toBeNaN",function(){const d=t.flag(this,"object");this.assert(Number.isNaN(d),"expected #{this} to be NaN","expected #{this} not to be NaN",Number.NaN,d)}),o("toBeUndefined",function(){const d=t.flag(this,"object");this.assert(d===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined",void 0,d)}),o("toBeNull",function(){const d=t.flag(this,"object");this.assert(d===null,"expected #{this} to be null","expected #{this} not to be null",null,d)}),o("toBeDefined",function(){const d=t.flag(this,"object");this.assert(typeof d<"u","expected #{this} to be defined","expected #{this} to be undefined",d)}),o("toBeTypeOf",function(d){const p=typeof this._obj,f=d===p;return this.assert(f,"expected #{this} to be type of #{exp}","expected #{this} not to be type of #{exp}",d,p)}),o("toBeInstanceOf",function(d){return this.instanceOf(d)}),o("toHaveLength",function(d){return this.have.length(d)}),o("toHaveProperty",function(...d){Array.isArray(d[0])&&(d[0]=d[0].map(_=>String(_).replace(/([.[\]])/g,"\\$1")).join("."));const p=this._obj,[f,m]=d,y=i(()=>Object.prototype.hasOwnProperty.call(p,f)?{value:p[f],exists:!0}:t.getPathInfo(p,f),"getValue"),{value:g,exists:T}=y(),E=T&&(d.length===1||Re(m,g,n)),v=d.length===1?"":` with value ${t.objDisplay(m)}`;return this.assert(E,`expected #{this} to have property "${f}"${v}`,`expected #{this} to not have property "${f}"${v}`,m,T?g:void 0)}),o("toBeCloseTo",function(d,p=2){const f=this._obj;let m=!1,y=0,g=0;return d===Number.POSITIVE_INFINITY&&f===Number.POSITIVE_INFINITY||d===Number.NEGATIVE_INFINITY&&f===Number.NEGATIVE_INFINITY?m=!0:(y=10**-p/2,g=Math.abs(f-d),m=g<y),this.assert(m,`expected #{this} to be close to #{exp}, received difference is ${g}, but expected ${y}`,`expected #{this} to not be close to #{exp}, received difference is ${g}, but expected ${y}`,d,f,!1)});function s(d){if(!gn(d._obj))throw new TypeError(`${t.inspect(d._obj)} is not a spy or a call to a spy!`)}i(s,"assertIsMock");function a(d){return s(d),d._obj}i(a,"getSpy"),o(["toHaveBeenCalledTimes","toBeCalledTimes"],function(d){const p=a(this),f=p.getMockName(),m=p.mock.calls.length;return this.assert(m===d,`expected "${f}" to be called #{exp} times, but got ${m} times`,`expected "${f}" to not be called #{exp} times`,d,m,!1)}),o("toHaveBeenCalledOnce",function(){const d=a(this),p=d.getMockName(),f=d.mock.calls.length;return this.assert(f===1,`expected "${p}" to be called once, but got ${f} times`,`expected "${p}" to not be called once`,1,f,!1)}),o(["toHaveBeenCalled","toBeCalled"],function(){const d=a(this),p=d.getMockName(),f=d.mock.calls.length,m=f>0,y=t.flag(this,"negate");let g=t.getMessage(this,[m,`expected "${p}" to be called at least once`,`expected "${p}" to not be called at all, but actually been called ${f} times`,!0,m]);if(m&&y&&(g=Gs(d,g)),m&&y||!m&&!y)throw new r(g)});function c(d,p){return d.length===p.length&&d.every((f,m)=>Re(f,p[m],[...n,At]))}i(c,"equalsArgumentArray"),o(["toHaveBeenCalledWith","toBeCalledWith"],function(...d){const p=a(this),f=p.getMockName(),m=p.mock.calls.some(T=>c(T,d)),y=t.flag(this,"negate"),g=t.getMessage(this,[m,`expected "${f}" to be called with arguments: #{exp}`,`expected "${f}" to not be called with arguments: #{exp}`,d]);if(m&&y||!m&&!y)throw new r(Gs(p,g,d))}),o("toHaveBeenCalledExactlyOnceWith",function(...d){const p=a(this),f=p.getMockName(),m=p.mock.calls.length,g=p.mock.calls.some(v=>c(v,d))&&m===1,T=t.flag(this,"negate"),E=t.getMessage(this,[g,`expected "${f}" to be called once with arguments: #{exp}`,`expected "${f}" to not be called once with arguments: #{exp}`,d]);if(g&&T||!g&&!T)throw new r(Gs(p,E,d))}),o(["toHaveBeenNthCalledWith","nthCalledWith"],function(d,...p){const f=a(this),m=f.getMockName(),y=f.mock.calls[d-1],g=f.mock.calls.length,T=d<=g;this.assert(y&&c(y,p),`expected ${to(d)} "${m}" call to have been called with #{exp}${T?"":`, but called only ${g} times`}`,`expected ${to(d)} "${m}" call to not have been called with #{exp}`,p,y,T)}),o(["toHaveBeenLastCalledWith","lastCalledWith"],function(...d){const p=a(this),f=p.getMockName(),m=p.mock.calls[p.mock.calls.length-1];this.assert(m&&c(m,d),`expected last "${f}" call to have been called with #{exp}`,`expected last "${f}" call to not have been called with #{exp}`,d,m)});function u(d,p,f){const m=d.mock.invocationCallOrder,y=p.mock.invocationCallOrder;return m.length===0?!f:y.length===0?!1:m[0]<y[0]}i(u,"isSpyCalledBeforeAnotherSpy"),o(["toHaveBeenCalledBefore"],function(d,p=!0){const f=a(this);if(!gn(d))throw new TypeError(`${t.inspect(d)} is not a spy or a call to a spy`);this.assert(u(f,d,p),`expected "${f.getMockName()}" to have been called before "${d.getMockName()}"`,`expected "${f.getMockName()}" to not have been called before "${d.getMockName()}"`,d,f)}),o(["toHaveBeenCalledAfter"],function(d,p=!0){const f=a(this);if(!gn(d))throw new TypeError(`${t.inspect(d)} is not a spy or a call to a spy`);this.assert(u(d,f,p),`expected "${f.getMockName()}" to have been called after "${d.getMockName()}"`,`expected "${f.getMockName()}" to not have been called after "${d.getMockName()}"`,d,f)}),o(["toThrow","toThrowError"],function(d){if(typeof d=="string"||typeof d>"u"||d instanceof RegExp)return this.throws(d===""?/^$/:d);const p=this._obj,f=t.flag(this,"promise"),m=t.flag(this,"negate");let y=null;if(f==="rejects")y=p;else if(f==="resolves"&&typeof p!="function"){if(m)return;{const g=t.flag(this,"message")||"expected promise to throw an error, but it didn't",T={showDiff:!1};throw new r(g,T,t.flag(this,"ssfi"))}}else{let g=!1;try{p()}catch(T){g=!0,y=T}if(!g&&!m){const T=t.flag(this,"message")||"expected function to throw an error, but it didn't",E={showDiff:!1};throw new r(T,E,t.flag(this,"ssfi"))}}if(typeof d=="function"){const g=d.name||d.prototype.constructor.name;return this.assert(y&&y instanceof d,`expected error to be instance of ${g}`,`expected error not to be instance of ${g}`,d,y)}if(d instanceof Error){const g=Re(y,d,[...n,At]);return this.assert(g,"expected a thrown error to be #{exp}","expected a thrown error not to be #{exp}",d,y)}if(typeof d=="object"&&"asymmetricMatch"in d&&typeof d.asymmetricMatch=="function"){const g=d;return this.assert(y&&g.asymmetricMatch(y),"expected error to match asymmetric matcher","expected error not to match asymmetric matcher",g,y)}throw new Error(`"toThrow" expects string, RegExp, function, Error instance or asymmetric matcher, got "${typeof d}"`)}),[{name:"toHaveResolved",condition:i(d=>d.mock.settledResults.length>0&&d.mock.settledResults.some(({type:p})=>p==="fulfilled"),"condition"),action:"resolved"},{name:["toHaveReturned","toReturn"],condition:i(d=>d.mock.calls.length>0&&d.mock.results.some(({type:p})=>p!=="throw"),"condition"),action:"called"}].forEach(({name:d,condition:p,action:f})=>{o(d,function(){const m=a(this),y=m.getMockName(),g=p(m);this.assert(g,`expected "${y}" to be successfully ${f} at least once`,`expected "${y}" to not be successfully ${f}`,g,!g,!1)})}),[{name:"toHaveResolvedTimes",condition:i((d,p)=>d.mock.settledResults.reduce((f,{type:m})=>m==="fulfilled"?++f:f,0)===p,"condition"),action:"resolved"},{name:["toHaveReturnedTimes","toReturnTimes"],condition:i((d,p)=>d.mock.results.reduce((f,{type:m})=>m==="throw"?f:++f,0)===p,"condition"),action:"called"}].forEach(({name:d,condition:p,action:f})=>{o(d,function(m){const y=a(this),g=y.getMockName(),T=p(y,m);this.assert(T,`expected "${g}" to be successfully ${f} ${m} times`,`expected "${g}" to not be successfully ${f} ${m} times`,`expected resolved times: ${m}`,`received resolved times: ${T}`,!1)})}),[{name:"toHaveResolvedWith",condition:i((d,p)=>d.mock.settledResults.some(({type:f,value:m})=>f==="fulfilled"&&Re(p,m)),"condition"),action:"resolve"},{name:["toHaveReturnedWith","toReturnWith"],condition:i((d,p)=>d.mock.results.some(({type:f,value:m})=>f==="return"&&Re(p,m)),"condition"),action:"return"}].forEach(({name:d,condition:p,action:f})=>{o(d,function(m){const y=a(this),g=p(y,m),T=t.flag(this,"negate");if(g&&T||!g&&!T){const E=y.getMockName(),v=t.getMessage(this,[g,`expected "${E}" to ${f} with: #{exp} at least once`,`expected "${E}" to not ${f} with: #{exp}`,m]),_=f==="return"?y.mock.results:y.mock.settledResults;throw new r(Z0(y,_,v,m))}})}),[{name:"toHaveLastResolvedWith",condition:i((d,p)=>{const f=d.mock.settledResults[d.mock.settledResults.length-1];return f&&f.type==="fulfilled"&&Re(f.value,p)},"condition"),action:"resolve"},{name:["toHaveLastReturnedWith","lastReturnedWith"],condition:i((d,p)=>{const f=d.mock.results[d.mock.results.length-1];return f&&f.type==="return"&&Re(f.value,p)},"condition"),action:"return"}].forEach(({name:d,condition:p,action:f})=>{o(d,function(m){const y=a(this),g=f==="return"?y.mock.results:y.mock.settledResults,T=g[g.length-1],E=y.getMockName();this.assert(p(y,m),`expected last "${E}" call to ${f} #{exp}`,`expected last "${E}" call to not ${f} #{exp}`,m,T?.value)})}),[{name:"toHaveNthResolvedWith",condition:i((d,p,f)=>{const m=d.mock.settledResults[p-1];return m&&m.type==="fulfilled"&&Re(m.value,f)},"condition"),action:"resolve"},{name:["toHaveNthReturnedWith","nthReturnedWith"],condition:i((d,p,f)=>{const m=d.mock.results[p-1];return m&&m.type==="return"&&Re(m.value,f)},"condition"),action:"return"}].forEach(({name:d,condition:p,action:f})=>{o(d,function(m,y){const g=a(this),T=g.getMockName(),v=(f==="return"?g.mock.results:g.mock.settledResults)[m-1],_=`${to(m)} call`;this.assert(p(g,m,y),`expected ${_} "${T}" call to ${f} #{exp}`,`expected ${_} "${T}" call to not ${f} #{exp}`,y,v?.value)})}),o("withContext",function(d){for(const p in d)t.flag(this,p,d[p]);return this}),t.addProperty(e.Assertion.prototype,"resolves",i(function(){const p=new Error("resolves");t.flag(this,"promise","resolves"),t.flag(this,"error",p);const f=t.flag(this,"vitest-test"),m=t.flag(this,"object");if(t.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .resolves");if(typeof m?.then!="function")throw new TypeError(`You must provide a Promise to expect() when using .resolves, not '${typeof m}'.`);const y=new Proxy(this,{get:i((g,T,E)=>{const v=Reflect.get(g,T,E);return typeof v!="function"?v instanceof e.Assertion?y:v:(..._)=>{t.flag(this,"_name",T);const A=m.then(N=>(t.flag(this,"object",N),v.call(this,..._)),N=>{const j=new r(`promise rejected "${t.inspect(N)}" instead of resolving`,{showDiff:!1});throw j.cause=N,j.stack=p.stack.replace(p.message,j.message),j});return pd(f,A,dd(t,this,!!_.length),p)}},"get")});return y},"__VITEST_RESOLVES__")),t.addProperty(e.Assertion.prototype,"rejects",i(function(){const p=new Error("rejects");t.flag(this,"promise","rejects"),t.flag(this,"error",p);const f=t.flag(this,"vitest-test"),m=t.flag(this,"object"),y=typeof m=="function"?m():m;if(t.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .rejects");if(typeof y?.then!="function")throw new TypeError(`You must provide a Promise to expect() when using .rejects, not '${typeof y}'.`);const g=new Proxy(this,{get:i((T,E,v)=>{const _=Reflect.get(T,E,v);return typeof _!="function"?_ instanceof e.Assertion?g:_:(...A)=>{t.flag(this,"_name",E);const N=y.then(j=>{const C=new r(`promise resolved "${t.inspect(j)}" instead of rejecting`,{showDiff:!0,expected:new Error("rejected promise"),actual:j});throw C.stack=p.stack.replace(p.message,C.message),C},j=>(t.flag(this,"object",j),_.call(this,...A)));return pd(f,N,dd(t,this,!!A.length),p)}},"get")});return g},"__VITEST_REJECTS__"))},"JestChaiExpect");function to(e){const t=e%10,r=e%100;return t===1&&r!==11?`${e}st`:t===2&&r!==12?`${e}nd`:t===3&&r!==13?`${e}rd`:`${e}th`}i(to,"ordinalOf");function Gs(e,t,r){return e.mock.calls.length&&(t+=Je.gray(`
|
|
270
|
+
|
|
271
|
+
Received:
|
|
272
|
+
|
|
273
|
+
${e.mock.calls.map((n,o)=>{let s=Je.bold(` ${to(o+1)} ${e.getMockName()} call:
|
|
274
|
+
|
|
275
|
+
`);return r?s+=kn(r,n,{omitAnnotationLines:!0}):s+=bt(n).split(`
|
|
276
|
+
`).map(a=>` ${a}`).join(`
|
|
277
|
+
`),s+=`
|
|
278
|
+
`,s}).join(`
|
|
279
|
+
`)}`)),t+=Je.gray(`
|
|
280
|
+
|
|
281
|
+
Number of calls: ${Je.bold(e.mock.calls.length)}
|
|
282
|
+
`),t}i(Gs,"formatCalls");function Z0(e,t,r,n){return t.length&&(r+=Je.gray(`
|
|
283
|
+
|
|
284
|
+
Received:
|
|
285
|
+
|
|
286
|
+
${t.map((o,s)=>{let a=Je.bold(` ${to(s+1)} ${e.getMockName()} call return:
|
|
287
|
+
|
|
288
|
+
`);return n?a+=kn(n,o.value,{omitAnnotationLines:!0}):a+=bt(o).split(`
|
|
289
|
+
`).map(c=>` ${c}`).join(`
|
|
290
|
+
`),a+=`
|
|
291
|
+
`,a}).join(`
|
|
292
|
+
`)}`)),r+=Je.gray(`
|
|
293
|
+
|
|
294
|
+
Number of calls: ${Je.bold(e.mock.calls.length)}
|
|
295
|
+
`),r}i(Z0,"formatReturns");function eR(e,t){const r=e._obj,n=Zt.flag(e,"negate"),o=Zt.flag(e,"promise")||"",s={...Wh(),diff:kn,stringify:bt,iterableEquality:At,subsetEquality:jo};return{state:{...Zi(t),customTesters:rc(),isNot:n,utils:s,promise:o,equals:Re,suppressedErrors:[],soft:Zt.flag(e,"soft"),poll:Zt.flag(e,"poll")},isNot:n,obj:r}}i(eR,"getMatcherState");var tR=class extends Error{constructor(t,r,n){super(t),this.actual=r,this.expected=n}};i(tR,"JestExtendError");var qg=tR;function rR(e,t,r){return(n,o)=>{Object.entries(r).forEach(([s,a])=>{function c(...m){const{state:y,isNot:g,obj:T}=eR(this,t),E=a.call(y,T,...m);if(E&&typeof E=="object"&&typeof E.then=="function")return E.then(({pass:C,message:R,actual:w,expected:S})=>{if(C&&g||!C&&!g)throw new qg(R(),w,S)});const{pass:v,message:_,actual:A,expected:N}=E;if(v&&g||!v&&!g)throw new qg(_(),A,N)}i(c,"expectWrapper");const u=Yh(o,s,c);o.addMethod(globalThis[Qi].matchers,s,u),o.addMethod(e.Assertion.prototype,s,u);const d=class extends Ar{constructor(y=!1,...g){super(g,y)}asymmetricMatch(y){const{pass:g}=a.call(this.getMatcherContext(t),y,...this.sample);return this.inverse?!g:g}toString(){return`${this.inverse?"not.":""}${s}`}getExpectedType(){return"any"}toAsymmetricMatcher(){return`${this.toString()}<${this.sample.map(y=>bt(y)).join(", ")}>`}};i(d,"CustomMatcher");let p=d;const f=i((...m)=>new p(!1,...m),"customMatcher");Object.defineProperty(t,s,{configurable:!0,enumerable:!0,value:f,writable:!0}),Object.defineProperty(t.not,s,{configurable:!0,enumerable:!0,value:i((...m)=>new p(!0,...m),"value"),writable:!0}),Object.defineProperty(globalThis[od],s,{configurable:!0,enumerable:!0,value:f,writable:!0})})}}i(rR,"JestExtendPlugin");var VB=i((e,t)=>{t.addMethod(e.expect,"extend",(r,n)=>{mn(rR(e,r,n))})},"JestExtend");function nR(){mn(VB),mn(UB),mn(JB);const e=i((n,o)=>{const{assertionCalls:s}=Zi(e);return Hs({assertionCalls:s+1,soft:!1},e),Fr(n,o)},"expect");Object.assign(e,Fr),e.getState=()=>Zi(e),e.setState=n=>Hs(n,e),e.extend=n=>Fr.extend(e,n),e.soft=(...n)=>{const o=e(...n);return e.setState({soft:!0}),o},e.extend(qB),e.unreachable=n=>{M.fail(`expected${n?` "${n}" `:" "}not to be reached`)};function t(n){const o=i(()=>new Error(`expected number of assertions to be ${n}, but got ${e.getState().assertionCalls}`),"errorGen");"captureStackTrace"in Error&&typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(o(),t),e.setState({expectedAssertionsNumber:n,expectedAssertionsNumberErrorGen:o})}i(t,"assertions");function r(){const n=new Error("expected any number of assertion, but got none");"captureStackTrace"in Error&&typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(n,r),e.setState({isExpectingAssertions:!0,isExpectingAssertionsError:n})}return i(r,"hasAssertions"),Hs({assertionCalls:0,isExpectingAssertions:!1,isExpectingAssertionsError:null,expectedAssertionsNumber:null,expectedAssertionsNumberErrorGen:null},e),Zt.addMethod(e,"assertions",t),Zt.addMethod(e,"hasAssertions",r),e.extend(F_),e}i(nR,"createExpect");var oR=nR();Object.defineProperty(globalThis,Hh,{value:oR,writable:!0,configurable:!0});function iR(e,t,r){Object.defineProperty(e,t,r)}i(iR,"f");var zs=Symbol.for("tinyspy:spy"),HB=i(e=>{e.called=!1,e.callCount=0,e.calls=[],e.results=[],e.resolves=[],e.next=[]},"P"),GB=i(e=>(iR(e,zs,{value:{reset:i(()=>HB(e[zs]),"reset")}}),e[zs]),"K"),zB=i(e=>e[zs]||GB(e),"T"),hd=new Set;function Xh(e){return hd.add(e),()=>void hd.delete(e)}i(Xh,"onMockCall");var WB=i((...e)=>{const t=_0(...e);return Zh(t)},"spyOn");function Qh(e){const t=e?nd(e):nd();return Zh(t)}i(Qh,"fn");function Zh(e){const t=md(e),r=t.mockImplementation.bind(null);return t.mockImplementation=n=>md(r(n)),t}i(Zh,"reactiveMock");function md(e){const t=zB(e),r=t.impl;return t.willCall(function(...n){return hd.forEach(o=>o(e,n)),r?.apply(this,n)}),e}i(md,"listenWhenCalled");function em(){As.forEach(e=>e.mockClear())}i(em,"clearAllMocks");function tm(){As.forEach(e=>e.mockReset())}i(tm,"resetAllMocks");function rm(){As.forEach(e=>e.mockRestore())}i(rm,"restoreAllMocks");function sR(e,t={}){return e}i(sR,"mocked");var aR={};Et(aR,{buildQueries:()=>ar,configure:()=>iP,createEvent:()=>Mi,findAllByAltText:()=>ZP,findAllByDisplayValue:()=>zP,findAllByLabelText:()=>PP,findAllByPlaceholderText:()=>jP,findAllByRole:()=>fA,findAllByTestId:()=>vA,findAllByText:()=>$P,findAllByTitle:()=>iA,findByAltText:()=>eA,findByDisplayValue:()=>WP,findByLabelText:()=>AP,findByPlaceholderText:()=>kP,findByRole:()=>hA,findByTestId:()=>EA,findByText:()=>JP,findByTitle:()=>sA,fireEvent:()=>vo,getAllByAltText:()=>XP,getAllByDisplayValue:()=>HP,getAllByLabelText:()=>OP,getAllByPlaceholderText:()=>MP,getAllByRole:()=>dA,getAllByTestId:()=>gA,getAllByText:()=>FP,getAllByTitle:()=>nA,getByAltText:()=>QP,getByDisplayValue:()=>GP,getByLabelText:()=>CP,getByPlaceholderText:()=>qP,getByRole:()=>pA,getByTestId:()=>bA,getByText:()=>BP,getByTitle:()=>oA,getConfig:()=>Te,getDefaultNormalizer:()=>ac,getElementError:()=>xs,getMultipleElementsFoundError:()=>Ns,getNodeText:()=>ko,getQueriesForElement:()=>Da,getRoles:()=>wm,getSuggestedQuery:()=>ts,isInaccessible:()=>Cs,logDOM:()=>wd,logRoles:()=>g$,makeFindQuery:()=>Sn,makeGetAllQuery:()=>uc,makeSingleQuery:()=>_n,prettyDOM:()=>bo,prettyFormat:()=>nm,queries:()=>ka,queryAllByAltText:()=>KP,queryAllByAttribute:()=>Qr,queryAllByDisplayValue:()=>UP,queryAllByLabelText:()=>xP,queryAllByPlaceholderText:()=>NP,queryAllByRole:()=>cA,queryAllByTestId:()=>mA,queryAllByText:()=>DP,queryAllByTitle:()=>tA,queryByAltText:()=>YP,queryByAttribute:()=>Sm,queryByDisplayValue:()=>VP,queryByLabelText:()=>SP,queryByPlaceholderText:()=>IP,queryByRole:()=>uA,queryByTestId:()=>yA,queryByText:()=>LP,queryByTitle:()=>rA,queryHelpers:()=>b$,screen:()=>L$,waitFor:()=>cc,waitForElementToBeRemoved:()=>wA,within:()=>Da,wrapAllByQueryWithSuggestion:()=>vt,wrapSingleQueryWithSuggestion:()=>$r});var nm=Ge(Lj()),KB=Object.prototype.toString;function yd(e){return typeof e=="function"||KB.call(e)==="[object Function]"}i(yd,"isCallable");function lR(e){var t=Number(e);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))}i(lR,"toInteger");var YB=Math.pow(2,53)-1;function cR(e){var t=lR(e);return Math.min(Math.max(t,0),YB)}i(cR,"toLength");function jt(e,t){var r=Array,n=Object(e);if(e==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");if(typeof t<"u"&&!yd(t))throw new TypeError("Array.from: when provided, the second argument must be a function");for(var o=cR(n.length),s=yd(r)?Object(new r(o)):new Array(o),a=0,c;a<o;)c=n[a],t?s[a]=t(c,a):s[a]=c,a+=1;return s.length=o,s}i(jt,"arrayFrom");function yo(e){"@babel/helpers - typeof";return yo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yo(e)}i(yo,"_typeof");function uR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}i(uR,"_classCallCheck");function gd(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,om(n.key),n)}}i(gd,"_defineProperties");function dR(e,t,r){return t&&gd(e.prototype,t),r&&gd(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}i(dR,"_createClass");function pR(e,t,r){return t=om(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}i(pR,"_defineProperty");function om(e){var t=fR(e,"string");return yo(t)==="symbol"?t:String(t)}i(om,"_toPropertyKey");function fR(e,t){if(yo(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(yo(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}i(fR,"_toPrimitive");var XB=(function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];uR(this,e),pR(this,"items",void 0),this.items=t}return i(e,"SetLike"),dR(e,[{key:"add",value:i(function(r){return this.has(r)===!1&&this.items.push(r),this},"add")},{key:"clear",value:i(function(){this.items=[]},"clear")},{key:"delete",value:i(function(r){var n=this.items.length;return this.items=this.items.filter(function(o){return o!==r}),n!==this.items.length},"_delete")},{key:"forEach",value:i(function(r){var n=this;this.items.forEach(function(o){r(o,o,n)})},"forEach")},{key:"has",value:i(function(r){return this.items.indexOf(r)!==-1},"has")},{key:"size",get:i(function(){return this.items.length},"get")}]),e})(),QB=typeof Set>"u"?Set:XB;function ct(e){var t;return(t=e.localName)!==null&&t!==void 0?t:e.tagName.toLowerCase()}i(ct,"getLocalName");var ZB={article:"article",aside:"complementary",button:"button",datalist:"listbox",dd:"definition",details:"group",dialog:"dialog",dt:"term",fieldset:"group",figure:"figure",form:"form",footer:"contentinfo",h1:"heading",h2:"heading",h3:"heading",h4:"heading",h5:"heading",h6:"heading",header:"banner",hr:"separator",html:"document",legend:"legend",li:"listitem",math:"math",main:"main",menu:"list",nav:"navigation",ol:"list",optgroup:"group",option:"option",output:"status",progress:"progressbar",section:"region",summary:"button",table:"table",tbody:"rowgroup",textarea:"textbox",tfoot:"rowgroup",td:"cell",th:"columnheader",thead:"rowgroup",tr:"row",ul:"list"},e$={caption:new Set(["aria-label","aria-labelledby"]),code:new Set(["aria-label","aria-labelledby"]),deletion:new Set(["aria-label","aria-labelledby"]),emphasis:new Set(["aria-label","aria-labelledby"]),generic:new Set(["aria-label","aria-labelledby","aria-roledescription"]),insertion:new Set(["aria-label","aria-labelledby"]),paragraph:new Set(["aria-label","aria-labelledby"]),presentation:new Set(["aria-label","aria-labelledby"]),strong:new Set(["aria-label","aria-labelledby"]),subscript:new Set(["aria-label","aria-labelledby"]),superscript:new Set(["aria-label","aria-labelledby"])};function hR(e,t){return["aria-atomic","aria-busy","aria-controls","aria-current","aria-describedby","aria-details","aria-dropeffect","aria-flowto","aria-grabbed","aria-hidden","aria-keyshortcuts","aria-label","aria-labelledby","aria-live","aria-owns","aria-relevant","aria-roledescription"].some(function(r){var n;return e.hasAttribute(r)&&!((n=e$[t])!==null&&n!==void 0&&n.has(r))})}i(hR,"hasGlobalAriaAttributes");function im(e,t){return hR(e,t)}i(im,"ignorePresentationalRole");function mR(e){var t=gR(e);if(t===null||t==="presentation"){var r=yR(e);if(t!=="presentation"||im(e,r||""))return r}return t}i(mR,"getRole");function yR(e){var t=ZB[ct(e)];if(t!==void 0)return t;switch(ct(e)){case"a":case"area":case"link":if(e.hasAttribute("href"))return"link";break;case"img":return e.getAttribute("alt")===""&&!im(e,"img")?"presentation":"img";case"input":{var r=e,n=r.type;switch(n){case"button":case"image":case"reset":case"submit":return"button";case"checkbox":case"radio":return n;case"range":return"slider";case"email":case"tel":case"text":case"url":return e.hasAttribute("list")?"combobox":"textbox";case"search":return e.hasAttribute("list")?"combobox":"searchbox";case"number":return"spinbutton";default:return null}}case"select":return e.hasAttribute("multiple")||e.size>1?"listbox":"combobox"}return null}i(yR,"getImplicitRole");function gR(e){var t=e.getAttribute("role");if(t!==null){var r=t.trim().split(" ")[0];if(r.length>0)return r}return null}i(gR,"getExplicitRole");function ke(e){return e!==null&&e.nodeType===e.ELEMENT_NODE}i(ke,"isElement");function sm(e){return ke(e)&&ct(e)==="caption"}i(sm,"isHTMLTableCaptionElement");function Ii(e){return ke(e)&&ct(e)==="input"}i(Ii,"isHTMLInputElement");function bR(e){return ke(e)&&ct(e)==="optgroup"}i(bR,"isHTMLOptGroupElement");function vR(e){return ke(e)&&ct(e)==="select"}i(vR,"isHTMLSelectElement");function ER(e){return ke(e)&&ct(e)==="table"}i(ER,"isHTMLTableElement");function TR(e){return ke(e)&&ct(e)==="textarea"}i(TR,"isHTMLTextAreaElement");function wR(e){var t=e.ownerDocument===null?e:e.ownerDocument,r=t.defaultView;if(r===null)throw new TypeError("no window available");return r}i(wR,"safeWindow");function _R(e){return ke(e)&&ct(e)==="fieldset"}i(_R,"isHTMLFieldSetElement");function SR(e){return ke(e)&&ct(e)==="legend"}i(SR,"isHTMLLegendElement");function RR(e){return ke(e)&&ct(e)==="slot"}i(RR,"isHTMLSlotElement");function PR(e){return ke(e)&&e.ownerSVGElement!==void 0}i(PR,"isSVGElement");function AR(e){return ke(e)&&ct(e)==="svg"}i(AR,"isSVGSVGElement");function OR(e){return PR(e)&&ct(e)==="title"}i(OR,"isSVGTitleElement");function es(e,t){if(ke(e)&&e.hasAttribute(t)){var r=e.getAttribute(t).split(" "),n=e.getRootNode?e.getRootNode():e.ownerDocument;return r.map(function(o){return n.getElementById(o)}).filter(function(o){return o!==null})}return[]}i(es,"queryIdRefs");function tr(e,t){return ke(e)?t.indexOf(mR(e))!==-1:!1}i(tr,"hasAnyConcreteRoles");function CR(e){return e.trim().replace(/\s\s+/g," ")}i(CR,"asFlatString");function xR(e,t){if(!ke(e))return!1;if(e.hasAttribute("hidden")||e.getAttribute("aria-hidden")==="true")return!0;var r=t(e);return r.getPropertyValue("display")==="none"||r.getPropertyValue("visibility")==="hidden"}i(xR,"isHidden");function NR(e){return tr(e,["button","combobox","listbox","textbox"])||am(e,"range")}i(NR,"isControl");function am(e,t){if(!ke(e))return!1;switch(t){case"range":return tr(e,["meter","progressbar","scrollbar","slider","spinbutton"]);default:throw new TypeError("No knowledge about abstract role '".concat(t,"'. This is likely a bug :("))}}i(am,"hasAbstractRole");function bd(e,t){var r=jt(e.querySelectorAll(t));return es(e,"aria-owns").forEach(function(n){r.push.apply(r,jt(n.querySelectorAll(t)))}),r}i(bd,"querySelectorAllSubtree");function IR(e){return vR(e)?e.selectedOptions||bd(e,"[selected]"):bd(e,'[aria-selected="true"]')}i(IR,"querySelectedOptions");function MR(e){return tr(e,["none","presentation"])}i(MR,"isMarkedPresentational");function qR(e){return sm(e)}i(qR,"isNativeHostLanguageTextAlternativeElement");function jR(e){return tr(e,["button","cell","checkbox","columnheader","gridcell","heading","label","legend","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"])}i(jR,"allowsNameFromContent");function kR(e){return!1}i(kR,"isDescendantOfNativeHostLanguageTextAlternativeElement");function DR(e){return Ii(e)||TR(e)?e.value:e.textContent||""}i(DR,"getValueOfTextbox");function vd(e){var t=e.getPropertyValue("content");return/^["'].*["']$/.test(t)?t.slice(1,-1):""}i(vd,"getTextualContent");function lm(e){var t=ct(e);return t==="button"||t==="input"&&e.getAttribute("type")!=="hidden"||t==="meter"||t==="output"||t==="progress"||t==="select"||t==="textarea"}i(lm,"isLabelableElement");function cm(e){if(lm(e))return e;var t=null;return e.childNodes.forEach(function(r){if(t===null&&ke(r)){var n=cm(r);n!==null&&(t=n)}}),t}i(cm,"findLabelableElement");function LR(e){if(e.control!==void 0)return e.control;var t=e.getAttribute("for");return t!==null?e.ownerDocument.getElementById(t):cm(e)}i(LR,"getControlOfLabel");function FR(e){var t=e.labels;if(t===null)return t;if(t!==void 0)return jt(t);if(!lm(e))return null;var r=e.ownerDocument;return jt(r.querySelectorAll("label")).filter(function(n){return LR(n)===e})}i(FR,"getLabels");function BR(e){var t=e.assignedNodes();return t.length===0?jt(e.childNodes):t}i(BR,"getSlotContents");function um(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=new QB,n=wR(e),o=t.compute,s=o===void 0?"name":o,a=t.computedStyleSupportsPseudoElements,c=a===void 0?t.getComputedStyle!==void 0:a,u=t.getComputedStyle,d=u===void 0?n.getComputedStyle.bind(n):u,p=t.hidden,f=p===void 0?!1:p;function m(v,_){var A="";if(ke(v)&&c){var N=d(v,"::before"),j=vd(N);A="".concat(j," ").concat(A)}var C=RR(v)?BR(v):jt(v.childNodes).concat(es(v,"aria-owns"));if(C.forEach(function(S){var k=E(S,{isEmbeddedInLabel:_.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),I=ke(S)?d(S).getPropertyValue("display"):"inline",V=I!=="inline"?" ":"";A+="".concat(V).concat(k).concat(V)}),ke(v)&&c){var R=d(v,"::after"),w=vd(R);A="".concat(A," ").concat(w)}return A.trim()}i(m,"computeMiscTextAlternative");function y(v,_){var A=v.getAttributeNode(_);return A!==null&&!r.has(A)&&A.value.trim()!==""?(r.add(A),A.value):null}i(y,"useAttribute");function g(v){return ke(v)?y(v,"title"):null}i(g,"computeTooltipAttributeValue");function T(v){if(!ke(v))return null;if(_R(v)){r.add(v);for(var _=jt(v.childNodes),A=0;A<_.length;A+=1){var N=_[A];if(SR(N))return E(N,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(ER(v)){r.add(v);for(var j=jt(v.childNodes),C=0;C<j.length;C+=1){var R=j[C];if(sm(R))return E(R,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(AR(v)){r.add(v);for(var w=jt(v.childNodes),S=0;S<w.length;S+=1){var k=w[S];if(OR(k))return k.textContent}return null}else if(ct(v)==="img"||ct(v)==="area"){var I=y(v,"alt");if(I!==null)return I}else if(bR(v)){var V=y(v,"label");if(V!==null)return V}if(Ii(v)&&(v.type==="button"||v.type==="submit"||v.type==="reset")){var H=y(v,"value");if(H!==null)return H;if(v.type==="submit")return"Submit";if(v.type==="reset")return"Reset"}var P=FR(v);if(P!==null&&P.length!==0)return r.add(v),jt(P).map(function(K){return E(K,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(K){return K.length>0}).join(" ");if(Ii(v)&&v.type==="image"){var L=y(v,"alt");if(L!==null)return L;var B=y(v,"title");return B!==null?B:"Submit Query"}if(tr(v,["button"])){var D=m(v,{isEmbeddedInLabel:!1});if(D!=="")return D}return null}i(T,"computeElementTextAlternative");function E(v,_){if(r.has(v))return"";if(!f&&xR(v,d)&&!_.isReferenced)return r.add(v),"";var A=ke(v)?v.getAttributeNode("aria-labelledby"):null,N=A!==null&&!r.has(A)?es(v,"aria-labelledby"):[];if(s==="name"&&!_.isReferenced&&N.length>0)return r.add(A),N.map(function(I){return E(I,{isEmbeddedInLabel:_.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(" ");var j=_.recursion&&NR(v)&&s==="name";if(!j){var C=(ke(v)&&v.getAttribute("aria-label")||"").trim();if(C!==""&&s==="name")return r.add(v),C;if(!MR(v)){var R=T(v);if(R!==null)return r.add(v),R}}if(tr(v,["menu"]))return r.add(v),"";if(j||_.isEmbeddedInLabel||_.isReferenced){if(tr(v,["combobox","listbox"])){r.add(v);var w=IR(v);return w.length===0?Ii(v)?v.value:"":jt(w).map(function(I){return E(I,{isEmbeddedInLabel:_.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(" ")}if(am(v,"range"))return r.add(v),v.hasAttribute("aria-valuetext")?v.getAttribute("aria-valuetext"):v.hasAttribute("aria-valuenow")?v.getAttribute("aria-valuenow"):v.getAttribute("value")||"";if(tr(v,["textbox"]))return r.add(v),DR(v)}if(jR(v)||ke(v)&&_.isReferenced||qR(v)||kR()){var S=m(v,{isEmbeddedInLabel:_.isEmbeddedInLabel});if(S!=="")return r.add(v),S}if(v.nodeType===v.TEXT_NODE)return r.add(v),v.textContent||"";if(_.recursion)return r.add(v),m(v,{isEmbeddedInLabel:_.isEmbeddedInLabel});var k=g(v);return k!==null?(r.add(v),k):(r.add(v),"")}return i(E,"computeTextAlternative"),CR(E(e,{isEmbeddedInLabel:!1,isReferenced:s==="description",recursion:!1}))}i(um,"computeTextAlternative");function go(e){"@babel/helpers - typeof";return go=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},go(e)}i(go,"_typeof");function Ed(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}i(Ed,"ownKeys");function Td(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ed(Object(r),!0).forEach(function(n){$R(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ed(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}i(Td,"_objectSpread");function $R(e,t,r){return t=JR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}i($R,"_defineProperty");function JR(e){var t=UR(e,"string");return go(t)==="symbol"?t:String(t)}i(JR,"_toPropertyKey");function UR(e,t){if(go(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(go(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}i(UR,"_toPrimitive");function dm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=es(e,"aria-describedby").map(function(o){return um(o,Td(Td({},t),{},{compute:"description"}))}).join(" ");if(r===""){var n=e.getAttribute("title");r=n===null?"":n}return r}i(dm,"computeAccessibleDescription");function VR(e){return tr(e,["caption","code","deletion","emphasis","generic","insertion","paragraph","presentation","strong","subscript","superscript"])}i(VR,"prohibitsNaming");function ic(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return VR(e)?"":um(e,t)}i(ic,"computeAccessibleName");var Mt=Ge(cp()),t$=Ge(Fj());function pm(e){return e.replace(/</g,"<").replace(/>/g,">")}i(pm,"escapeHTML");var r$=i((e,t,r,n,o,s,a)=>{const c=n+r.indent,u=r.colors;return e.map(d=>{const p=t[d];let f=a(p,r,c,o,s);return typeof p!="string"&&(f.indexOf(`
|
|
296
|
+
`)!==-1&&(f=r.spacingOuter+c+f+r.spacingOuter+n),f="{"+f+"}"),r.spacingInner+n+u.prop.open+d+u.prop.close+"="+u.value.open+f+u.value.close}).join("")},"printProps"),n$=3,o$=i((e,t,r,n,o,s)=>e.map(a=>{const c=typeof a=="string"?HR(a,t):s(a,t,r,n,o);return c===""&&typeof a=="object"&&a!==null&&a.nodeType!==n$?"":t.spacingOuter+r+c}).join(""),"printChildren"),HR=i((e,t)=>{const r=t.colors.content;return r.open+pm(e)+r.close},"printText"),i$=i((e,t)=>{const r=t.colors.comment;return r.open+"<!--"+pm(e)+"-->"+r.close},"printComment"),s$=i((e,t,r,n,o)=>{const s=n.colors.tag;return s.open+"<"+e+(t&&s.close+t+n.spacingOuter+o+s.open)+(r?">"+s.close+r+n.spacingOuter+o+s.open+"</"+e:(t&&!n.min?"":" ")+"/")+">"+s.close},"printElement"),a$=i((e,t)=>{const r=t.colors.tag;return r.open+"<"+e+r.close+" …"+r.open+" />"+r.close},"printElementAsLeaf"),l$=1,GR=3,zR=8,WR=11,c$=/^((HTML|SVG)\w*)?Element$/,KR=i(e=>{const{tagName:t}=e;return!!(typeof t=="string"&&t.includes("-")||typeof e.hasAttribute=="function"&&e.hasAttribute("is"))},"isCustomElement"),u$=i(e=>{const t=e.constructor.name,{nodeType:r}=e;return r===l$&&(c$.test(t)||KR(e))||r===GR&&t==="Text"||r===zR&&t==="Comment"||r===WR&&t==="DocumentFragment"},"testNode");function YR(e){return e.nodeType===GR}i(YR,"nodeIsText");function XR(e){return e.nodeType===zR}i(XR,"nodeIsComment");function Ws(e){return e.nodeType===WR}i(Ws,"nodeIsFragment");function QR(e){return{test:i(t=>{var r;return((t==null||(r=t.constructor)==null?void 0:r.name)||KR(t))&&u$(t)},"test"),serialize:i((t,r,n,o,s,a)=>{if(YR(t))return HR(t.data,r);if(XR(t))return i$(t.data,r);const c=Ws(t)?"DocumentFragment":t.tagName.toLowerCase();return++o>r.maxDepth?a$(c,r):s$(c,r$(Ws(t)?[]:Array.from(t.attributes).map(u=>u.name).sort(),Ws(t)?{}:Array.from(t.attributes).reduce((u,d)=>(u[d.name]=d.value,u),{}),r,n+r.indent,o,s,a),o$(Array.prototype.slice.call(t.childNodes||t.children).filter(e),r,n+r.indent,o,s,a),r,n)},"serialize")}}i(QR,"createDOMElementFilter");var ZR=null,fm=null,hm=null;try{const e=module&&module.require;fm=e.call(module,"fs").readFileSync,hm=e.call(module,"@babel/code-frame").codeFrameColumns,ZR=e.call(module,"picocolors")}catch{}function eP(e){const t=e.indexOf("(")+1,r=e.indexOf(")"),n=e.slice(t,r),o=n.split(":"),[s,a,c]=[o[0],parseInt(o[1],10),parseInt(o[2],10)];let u="";try{u=fm(s,"utf-8")}catch{return""}const d=hm(u,{start:{line:a,column:c}},{highlightCode:!0,linesBelow:0});return ZR.dim(n)+`
|
|
297
|
+
`+d+`
|
|
298
|
+
`}i(eP,"getCodeFrame");function tP(){if(!fm||!hm)return"";const t=new Error().stack.split(`
|
|
299
|
+
`).slice(1).find(r=>!r.includes("node_modules/"));return eP(t)}i(tP,"getUserCodeFrame");var rP=3;function Ks(){return typeof jest<"u"&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,"clock"):!1}i(Ks,"jestFakeTimersAreEnabled");function sc(){if(typeof window>"u")throw new Error("Could not find default container");return window.document}i(sc,"getDocument");function mm(e){if(e.defaultView)return e.defaultView;if(e.ownerDocument&&e.ownerDocument.defaultView)return e.ownerDocument.defaultView;if(e.window)return e.window;throw e.ownerDocument&&e.ownerDocument.defaultView===null?new Error("It looks like the window object is not available for the provided node."):e.then instanceof Function?new Error("It looks like you passed a Promise object instead of a DOM node. Did you do something like `fireEvent.click(screen.findBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`, or await the findBy query `fireEvent.click(await screen.findBy...`?"):Array.isArray(e)?new Error("It looks like you passed an Array instead of a DOM node. Did you do something like `fireEvent.click(screen.getAllBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`?"):typeof e.debug=="function"&&typeof e.logTestingPlaygroundURL=="function"?new Error("It looks like you passed a `screen` object. Did you do something like `fireEvent.click(screen, ...` when you meant to use a query, e.g. `fireEvent.click(screen.getBy..., `?"):new Error("The given node is not an Element, the node type is: "+typeof e+".")}i(mm,"getWindowFromNode");function sr(e){if(!e||typeof e.querySelector!="function"||typeof e.querySelectorAll!="function")throw new TypeError("Expected container to be an Element, a Document or a DocumentFragment but got "+t(e)+".");function t(r){return typeof r=="object"?r===null?"null":r.constructor.name:typeof r}i(t,"getTypeName")}i(sr,"checkContainerType");var d$=i(()=>{if(typeof process>"u")return!1;let e;try{var t;const r=(t=cu)==null?void 0:t.COLORS;r&&(e=JSON.parse(r))}catch{}return typeof e=="boolean"?e:process.versions!==void 0&&process.versions.node!==void 0},"shouldHighlight"),{DOMCollection:p$}=nm.plugins,f$=1,h$=8;function nP(e){return e.nodeType!==h$&&(e.nodeType!==f$||!e.matches(Te().defaultIgnore))}i(nP,"filterCommentsAndDefaultIgnoreTagsTags");function bo(e,t,r){if(r===void 0&&(r={}),e||(e=sc().body),typeof t!="number"&&(t=typeof process<"u"&&typeof cu<"u"&&cu.DEBUG_PRINT_LIMIT||7e3),t===0)return"";e.documentElement&&(e=e.documentElement);let n=typeof e;if(n==="object"?n=e.constructor.name:e={},!("outerHTML"in e))throw new TypeError("Expected an element or document but got "+n);const{filterNode:o=nP,...s}=r,a=nm.format(e,{plugins:[QR(o),p$],printFunctionName:!1,highlight:d$(),...s});return t!==void 0&&e.outerHTML.length>t?a.slice(0,t)+"...":a}i(bo,"prettyDOM");var wd=i(function(){const e=tP();console.log(e?bo(...arguments)+`
|
|
300
|
+
|
|
301
|
+
`+e:bo(...arguments))},"logDOM"),bn={testIdAttribute:"data-testid",asyncUtilTimeout:1e3,asyncWrapper:i(e=>e(),"asyncWrapper"),unstable_advanceTimersWrapper:i(e=>e(),"unstable_advanceTimersWrapper"),eventWrapper:i(e=>e(),"eventWrapper"),defaultHidden:!1,defaultIgnore:"script, style",showOriginalStackTrace:!1,throwSuggestions:!1,getElementError(e,t){const r=bo(t),n=new Error([e,"Ignored nodes: comments, "+bn.defaultIgnore+`
|
|
302
|
+
`+r].filter(Boolean).join(`
|
|
303
|
+
|
|
304
|
+
`));return n.name="TestingLibraryElementError",n},_disableExpensiveErrorDiagnostics:!1,computedStyleSupportsPseudoElements:!1};function oP(e){try{return bn._disableExpensiveErrorDiagnostics=!0,e()}finally{bn._disableExpensiveErrorDiagnostics=!1}}i(oP,"runWithExpensiveErrorDiagnosticsDisabled");function iP(e){typeof e=="function"&&(e=e(bn)),bn={...bn,...e}}i(iP,"configure");function Te(){return bn}i(Te,"getConfig");var m$=["button","meter","output","progress","select","textarea","input"];function ym(e){return m$.includes(e.nodeName.toLowerCase())?"":e.nodeType===rP?e.textContent:Array.from(e.childNodes).map(t=>ym(t)).join("")}i(ym,"getTextContent");function ja(e){let t;return e.tagName.toLowerCase()==="label"?t=ym(e):t=e.value||e.textContent,t}i(ja,"getLabelContent");function gm(e){if(e.labels!==void 0){var t;return(t=e.labels)!=null?t:[]}if(!sP(e))return[];const r=e.ownerDocument.querySelectorAll("label");return Array.from(r).filter(n=>n.control===e)}i(gm,"getRealLabels");function sP(e){return/BUTTON|METER|OUTPUT|PROGRESS|SELECT|TEXTAREA/.test(e.tagName)||e.tagName==="INPUT"&&e.getAttribute("type")!=="hidden"}i(sP,"isLabelable");function bm(e,t,r){let{selector:n="*"}=r===void 0?{}:r;const o=t.getAttribute("aria-labelledby"),s=o?o.split(" "):[];return s.length?s.map(a=>{const c=e.querySelector('[id="'+a+'"]');return c?{content:ja(c),formControl:null}:{content:"",formControl:null}}):Array.from(gm(t)).map(a=>{const c=ja(a),d=Array.from(a.querySelectorAll("button, input, meter, output, progress, select, textarea")).filter(p=>p.matches(n))[0];return{content:c,formControl:d}})}i(bm,"getLabels");function vm(e){if(e==null)throw new Error("It looks like "+e+" was passed instead of a matcher. Did you do something like getByText("+e+")?")}i(vm,"assertNotNullOrUndefined");function Ln(e,t,r,n){if(typeof e!="string")return!1;vm(r);const o=n(e);return typeof r=="string"||typeof r=="number"?o.toLowerCase().includes(r.toString().toLowerCase()):typeof r=="function"?r(o,t):Em(r,o)}i(Ln,"fuzzyMatches");function nr(e,t,r,n){if(typeof e!="string")return!1;vm(r);const o=n(e);return r instanceof Function?r(o,t):r instanceof RegExp?Em(r,o):o===String(r)}i(nr,"matches");function ac(e){let{trim:t=!0,collapseWhitespace:r=!0}=e===void 0?{}:e;return n=>{let o=n;return o=t?o.trim():o,o=r?o.replace(/\s+/g," "):o,o}}i(ac,"getDefaultNormalizer");function Xr(e){let{trim:t,collapseWhitespace:r,normalizer:n}=e;if(!n)return ac({trim:t,collapseWhitespace:r});if(typeof t<"u"||typeof r<"u")throw new Error('trim and collapseWhitespace are not supported with a normalizer. If you want to use the default trim and collapseWhitespace logic in your normalizer, use "getDefaultNormalizer({trim, collapseWhitespace})" and compose that into your normalizer');return n}i(Xr,"makeNormalizer");function Em(e,t){const r=e.test(t);return e.global&&e.lastIndex!==0&&(console.warn("To match all elements we had to reset the lastIndex of the RegExp because the global flag is enabled. We encourage to remove the global flag from the RegExp."),e.lastIndex=0),r}i(Em,"matchRegExp");function ko(e){return e.matches("input[type=submit], input[type=button], input[type=reset]")?e.value:Array.from(e.childNodes).filter(t=>t.nodeType===rP&&!!t.textContent).map(t=>t.textContent).join("")}i(ko,"getNodeText");var y$=aP(Mt.elementRoles);function Tm(e){return e.hidden===!0||e.getAttribute("aria-hidden")==="true"||e.ownerDocument.defaultView.getComputedStyle(e).display==="none"}i(Tm,"isSubtreeInaccessible");function Cs(e,t){t===void 0&&(t={});const{isSubtreeInaccessible:r=Tm}=t;if(e.ownerDocument.defaultView.getComputedStyle(e).visibility==="hidden")return!0;let o=e;for(;o;){if(r(o))return!0;o=o.parentElement}return!1}i(Cs,"isInaccessible");function lc(e){for(const{match:t,roles:r}of y$)if(t(e))return[...r];return[]}i(lc,"getImplicitAriaRoles");function aP(e){function t(a){let{name:c,attributes:u}=a;return""+c+u.map(d=>{let{name:p,value:f,constraints:m=[]}=d;const y=m.indexOf("undefined")!==-1,g=m.indexOf("set")!==-1;return typeof f<"u"?"["+p+'="'+f+'"]':y?":not(["+p+"])":g?"["+p+"]:not(["+p+'=""])':"["+p+"]"}).join("")}i(t,"makeElementSelector");function r(a){let{attributes:c=[]}=a;return c.length}i(r,"getSelectorSpecificity");function n(a,c){let{specificity:u}=a,{specificity:d}=c;return d-u}i(n,"bySelectorSpecificity");function o(a){let{attributes:c=[]}=a;const u=c.findIndex(p=>p.value&&p.name==="type"&&p.value==="text");u>=0&&(c=[...c.slice(0,u),...c.slice(u+1)]);const d=t({...a,attributes:c});return p=>u>=0&&p.type!=="text"?!1:p.matches(d)}i(o,"match");let s=[];for(const[a,c]of e.entries())s=[...s,{match:o(a),roles:Array.from(c),specificity:r(a)}];return s.sort(n)}i(aP,"buildElementRoleList");function wm(e,t){let{hidden:r=!1}=t===void 0?{}:t;function n(o){return[o,...Array.from(o.children).reduce((s,a)=>[...s,...n(a)],[])]}return i(n,"flattenDOM"),n(e).filter(o=>r===!1?Cs(o)===!1:!0).reduce((o,s)=>{let a=[];return s.hasAttribute("role")?a=s.getAttribute("role").split(" ").slice(0,1):a=lc(s),a.reduce((c,u)=>Array.isArray(c[u])?{...c,[u]:[...c[u],s]}:{...c,[u]:[s]},o)},{})}i(wm,"getRoles");function _m(e,t){let{hidden:r,includeDescription:n}=t;const o=wm(e,{hidden:r});return Object.entries(o).filter(s=>{let[a]=s;return a!=="generic"}).map(s=>{let[a,c]=s;const u="-".repeat(50),d=c.map(p=>{const f='Name "'+ic(p,{computedStyleSupportsPseudoElements:Te().computedStyleSupportsPseudoElements})+`":
|
|
305
|
+
`,m=bo(p.cloneNode(!1));if(n){const y='Description "'+dm(p,{computedStyleSupportsPseudoElements:Te().computedStyleSupportsPseudoElements})+`":
|
|
306
|
+
`;return""+f+y+m}return""+f+m}).join(`
|
|
307
|
+
|
|
308
|
+
`);return a+`:
|
|
309
|
+
|
|
310
|
+
`+d+`
|
|
311
|
+
|
|
312
|
+
`+u}).join(`
|
|
313
|
+
`)}i(_m,"prettyRoles");var g$=i(function(e,t){let{hidden:r=!1}=t===void 0?{}:t;return console.log(_m(e,{hidden:r}))},"logRoles");function lP(e){return e.tagName==="OPTION"?e.selected:Do(e,"aria-selected")}i(lP,"computeAriaSelected");function cP(e){return e.getAttribute("aria-busy")==="true"}i(cP,"computeAriaBusy");function uP(e){if(!("indeterminate"in e&&e.indeterminate))return"checked"in e?e.checked:Do(e,"aria-checked")}i(uP,"computeAriaChecked");function dP(e){return Do(e,"aria-pressed")}i(dP,"computeAriaPressed");function pP(e){var t,r;return(t=(r=Do(e,"aria-current"))!=null?r:e.getAttribute("aria-current"))!=null?t:!1}i(pP,"computeAriaCurrent");function fP(e){return Do(e,"aria-expanded")}i(fP,"computeAriaExpanded");function Do(e,t){const r=e.getAttribute(t);if(r==="true")return!0;if(r==="false")return!1}i(Do,"checkBooleanAttribute");function hP(e){const t={H1:1,H2:2,H3:3,H4:4,H5:5,H6:6};return e.getAttribute("aria-level")&&Number(e.getAttribute("aria-level"))||t[e.tagName]}i(hP,"computeHeadingLevel");function mP(e){const t=e.getAttribute("aria-valuenow");return t===null?void 0:+t}i(mP,"computeAriaValueNow");function yP(e){const t=e.getAttribute("aria-valuemax");return t===null?void 0:+t}i(yP,"computeAriaValueMax");function gP(e){const t=e.getAttribute("aria-valuemin");return t===null?void 0:+t}i(gP,"computeAriaValueMin");function bP(e){const t=e.getAttribute("aria-valuetext");return t===null?void 0:t}i(bP,"computeAriaValueText");var jg=ac();function vP(e){return e.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&")}i(vP,"escapeRegExp");function _d(e){return new RegExp(vP(e.toLowerCase()),"i")}i(_d,"getRegExpMatcher");function hr(e,t,r,n){let{variant:o,name:s}=n,a="";const c={},u=[["Role","TestId"].includes(e)?r:_d(r)];s&&(c.name=_d(s)),e==="Role"&&Cs(t)&&(c.hidden=!0,a=`Element is inaccessible. This means that the element and all its children are invisible to screen readers.
|
|
314
|
+
If you are using the aria-hidden prop, make sure this is the right choice for your case.
|
|
315
|
+
`),Object.keys(c).length>0&&u.push(c);const d=o+"By"+e;return{queryName:e,queryMethod:d,queryArgs:u,variant:o,warning:a,toString(){a&&console.warn(a);let[p,f]=u;return p=typeof p=="string"?"'"+p+"'":p,f=f?", { "+Object.entries(f).map(m=>{let[y,g]=m;return y+": "+g}).join(", ")+" }":"",d+"("+p+f+")"}}}i(hr,"makeSuggestion");function mr(e,t,r){return r&&(!t||t.toLowerCase()===e.toLowerCase())}i(mr,"canSuggest");function ts(e,t,r){var n,o;if(t===void 0&&(t="get"),e.matches(Te().defaultIgnore))return;const s=(n=e.getAttribute("role"))!=null?n:(o=lc(e))==null?void 0:o[0];if(s!=="generic"&&mr("Role",r,s))return hr("Role",e,s,{variant:t,name:ic(e,{computedStyleSupportsPseudoElements:Te().computedStyleSupportsPseudoElements})});const a=bm(document,e).map(m=>m.content).join(" ");if(mr("LabelText",r,a))return hr("LabelText",e,a,{variant:t});const c=e.getAttribute("placeholder");if(mr("PlaceholderText",r,c))return hr("PlaceholderText",e,c,{variant:t});const u=jg(ko(e));if(mr("Text",r,u))return hr("Text",e,u,{variant:t});if(mr("DisplayValue",r,e.value))return hr("DisplayValue",e,jg(e.value),{variant:t});const d=e.getAttribute("alt");if(mr("AltText",r,d))return hr("AltText",e,d,{variant:t});const p=e.getAttribute("title");if(mr("Title",r,p))return hr("Title",e,p,{variant:t});const f=e.getAttribute(Te().testIdAttribute);if(mr("TestId",r,f))return hr("TestId",e,f,{variant:t})}i(ts,"getSuggestedQuery");function vi(e,t){e.stack=t.stack.replace(t.message,e.message)}i(vi,"copyStackTrace");function EP(e,t){let{container:r=sc(),timeout:n=Te().asyncUtilTimeout,showOriginalStackTrace:o=Te().showOriginalStackTrace,stackTraceError:s,interval:a=50,onTimeout:c=i(d=>(Object.defineProperty(d,"message",{value:Te().getElementError(d.message,r).message}),d),"onTimeout"),mutationObserverOptions:u={subtree:!0,childList:!0,attributes:!0,characterData:!0}}=t;if(typeof e!="function")throw new TypeError("Received `callback` arg must be a function");return new Promise(async(d,p)=>{let f,m,y,g=!1,T="idle";const E=setTimeout(j,n),v=Ks();if(v){const{unstable_advanceTimersWrapper:C}=Te();for(N();!g;){if(!Ks()){const R=new Error("Changed from using fake timers to real timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to real timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830");o||vi(R,s),p(R);return}if(await C(async()=>{jest.advanceTimersByTime(a)}),g)break;N()}}else{try{sr(r)}catch(R){p(R);return}m=setInterval(A,a);const{MutationObserver:C}=mm(r);y=new C(A),y.observe(r,u),N()}function _(C,R){g=!0,clearTimeout(E),v||(clearInterval(m),y.disconnect()),C?p(C):d(R)}i(_,"onDone");function A(){if(Ks()){const C=new Error("Changed from using real timers to fake timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to fake timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830");return o||vi(C,s),p(C)}else return N()}i(A,"checkRealTimersCallback");function N(){if(T!=="pending")try{const C=oP(e);typeof C?.then=="function"?(T="pending",C.then(R=>{T="resolved",_(null,R)},R=>{T="rejected",f=R})):_(null,C)}catch(C){f=C}}i(N,"checkCallback");function j(){let C;f?(C=f,!o&&C.name==="TestingLibraryElementError"&&vi(C,s)):(C=new Error("Timed out in waitFor."),o||vi(C,s)),_(c(C),null)}i(j,"handleTimeout")})}i(EP,"waitFor");function cc(e,t){const r=new Error("STACK_TRACE_MESSAGE");return Te().asyncWrapper(()=>EP(e,{stackTraceError:r,...t}))}i(cc,"waitForWrapper");function xs(e,t){return Te().getElementError(e,t)}i(xs,"getElementError");function Ns(e,t){return xs(e+"\n\n(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).",t)}i(Ns,"getMultipleElementsFoundError");function Qr(e,t,r,n){let{exact:o=!0,collapseWhitespace:s,trim:a,normalizer:c}=n===void 0?{}:n;const u=o?nr:Ln,d=Xr({collapseWhitespace:s,trim:a,normalizer:c});return Array.from(t.querySelectorAll("["+e+"]")).filter(p=>u(p.getAttribute(e),p,r,d))}i(Qr,"queryAllByAttribute");function Sm(e,t,r,n){const o=Qr(e,t,r,n);if(o.length>1)throw Ns("Found multiple elements by ["+e+"="+r+"]",t);return o[0]||null}i(Sm,"queryByAttribute");function _n(e,t){return function(r){for(var n=arguments.length,o=new Array(n>1?n-1:0),s=1;s<n;s++)o[s-1]=arguments[s];const a=e(r,...o);if(a.length>1){const c=a.map(u=>xs(null,u).message).join(`
|
|
316
|
+
|
|
317
|
+
`);throw Ns(t(r,...o)+`
|
|
318
|
+
|
|
319
|
+
Here are the matching elements:
|
|
320
|
+
|
|
321
|
+
`+c,r)}return a[0]||null}}i(_n,"makeSingleQuery");function Rm(e,t){return Te().getElementError(`A better query is available, try this:
|
|
322
|
+
`+e.toString()+`
|
|
323
|
+
`,t)}i(Rm,"getSuggestionError");function uc(e,t){return function(r){for(var n=arguments.length,o=new Array(n>1?n-1:0),s=1;s<n;s++)o[s-1]=arguments[s];const a=e(r,...o);if(!a.length)throw Te().getElementError(t(r,...o),r);return a}}i(uc,"makeGetAllQuery");function Sn(e){return(t,r,n,o)=>cc(()=>e(t,r,n),{container:t,...o})}i(Sn,"makeFindQuery");var $r=i((e,t,r)=>function(n){for(var o=arguments.length,s=new Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];const c=e(n,...s),[{suggest:u=Te().throwSuggestions}={}]=s.slice(-1);if(c&&u){const d=ts(c,r);if(d&&!t.endsWith(d.queryName))throw Rm(d.toString(),n)}return c},"wrapSingleQueryWithSuggestion"),vt=i((e,t,r)=>function(n){for(var o=arguments.length,s=new Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];const c=e(n,...s),[{suggest:u=Te().throwSuggestions}={}]=s.slice(-1);if(c.length&&u){const d=[...new Set(c.map(p=>{var f;return(f=ts(p,r))==null?void 0:f.toString()}))];if(d.length===1&&!t.endsWith(ts(c[0],r).queryName))throw Rm(d[0],n)}return c},"wrapAllByQueryWithSuggestion");function ar(e,t,r){const n=$r(_n(e,t),e.name,"query"),o=uc(e,r),s=_n(o,t),a=$r(s,e.name,"get"),c=vt(o,e.name.replace("query","get"),"getAll"),u=Sn(vt(o,e.name,"findAll")),d=Sn($r(s,e.name,"find"));return[n,c,a,u,d]}i(ar,"buildQueries");var b$=Object.freeze({__proto__:null,getElementError:xs,wrapAllByQueryWithSuggestion:vt,wrapSingleQueryWithSuggestion:$r,getMultipleElementsFoundError:Ns,queryAllByAttribute:Qr,queryByAttribute:Sm,makeSingleQuery:_n,makeGetAllQuery:uc,makeFindQuery:Sn,buildQueries:ar});function TP(e){return Array.from(e.querySelectorAll("label,input")).map(t=>({node:t,textToMatch:ja(t)})).filter(t=>{let{textToMatch:r}=t;return r!==null})}i(TP,"queryAllLabels");var v$=i(function(e,t,r){let{exact:n=!0,trim:o,collapseWhitespace:s,normalizer:a}=r===void 0?{}:r;const c=n?nr:Ln,u=Xr({collapseWhitespace:s,trim:o,normalizer:a});return TP(e).filter(p=>{let{node:f,textToMatch:m}=p;return c(m,f,t,u)}).map(p=>{let{node:f}=p;return f})},"queryAllLabelsByText"),rs=i(function(e,t,r){let{selector:n="*",exact:o=!0,collapseWhitespace:s,trim:a,normalizer:c}=r===void 0?{}:r;sr(e);const u=o?nr:Ln,d=Xr({collapseWhitespace:s,trim:a,normalizer:c}),p=Array.from(e.querySelectorAll("*")).filter(f=>gm(f).length||f.hasAttribute("aria-labelledby")).reduce((f,m)=>{const y=bm(e,m,{selector:n});y.filter(T=>!!T.formControl).forEach(T=>{u(T.content,T.formControl,t,d)&&T.formControl&&f.push(T.formControl)});const g=y.filter(T=>!!T.content).map(T=>T.content);return u(g.join(" "),m,t,d)&&f.push(m),g.length>1&&g.forEach((T,E)=>{u(T,m,t,d)&&f.push(m);const v=[...g];v.splice(E,1),v.length>1&&u(v.join(" "),m,t,d)&&f.push(m)}),f},[]).concat(Qr("aria-label",e,t,{exact:o,normalizer:d}));return Array.from(new Set(p)).filter(f=>f.matches(n))},"queryAllByLabelText"),Rn=i(function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];const s=rs(e,t,...n);if(!s.length){const a=v$(e,t,...n);if(a.length){const c=a.map(u=>wP(e,u)).filter(u=>!!u);throw c.length?Te().getElementError(c.map(u=>"Found a label with the text of: "+t+", however the element associated with this label (<"+u+" />) is non-labellable [https://html.spec.whatwg.org/multipage/forms.html#category-label]. If you really need to label a <"+u+" />, you can use aria-label or aria-labelledby instead.").join(`
|
|
324
|
+
|
|
325
|
+
`),e):Te().getElementError("Found a label with the text of: "+t+`, however no form control was found associated to that label. Make sure you're using the "for" attribute or "aria-labelledby" attribute correctly.`,e)}else throw Te().getElementError("Unable to find a label with the text of: "+t,e)}return s},"getAllByLabelText");function wP(e,t){const r=t.getAttribute("for");if(!r)return null;const n=e.querySelector('[id="'+r+'"]');return n?n.tagName.toLowerCase():null}i(wP,"getTagNameOfElementAssociatedWithLabelViaFor");var _P=i((e,t)=>"Found multiple elements with the text of: "+t,"getMultipleError$7"),SP=$r(_n(rs,_P),rs.name,"query"),RP=_n(Rn,_P),PP=Sn(vt(Rn,Rn.name,"findAll")),AP=Sn($r(RP,Rn.name,"find")),OP=vt(Rn,Rn.name,"getAll"),CP=$r(RP,Rn.name,"get"),xP=vt(rs,rs.name,"queryAll"),Sd=i(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return sr(t[0]),Qr("placeholder",...t)},"queryAllByPlaceholderText"),E$=i((e,t)=>"Found multiple elements with the placeholder text of: "+t,"getMultipleError$6"),T$=i((e,t)=>"Unable to find an element with the placeholder text of: "+t,"getMissingError$6"),NP=vt(Sd,Sd.name,"queryAll"),[IP,MP,qP,jP,kP]=ar(Sd,E$,T$),Rd=i(function(e,t,r){let{selector:n="*",exact:o=!0,collapseWhitespace:s,trim:a,ignore:c=Te().defaultIgnore,normalizer:u}=r===void 0?{}:r;sr(e);const d=o?nr:Ln,p=Xr({collapseWhitespace:s,trim:a,normalizer:u});let f=[];return typeof e.matches=="function"&&e.matches(n)&&(f=[e]),[...f,...Array.from(e.querySelectorAll(n))].filter(m=>!c||!m.matches(c)).filter(m=>d(ko(m),m,t,p))},"queryAllByText"),w$=i((e,t)=>"Found multiple elements with the text: "+t,"getMultipleError$5"),_$=i(function(e,t,r){r===void 0&&(r={});const{collapseWhitespace:n,trim:o,normalizer:s,selector:a}=r,u=Xr({collapseWhitespace:n,trim:o,normalizer:s})(t.toString()),d=u!==t.toString(),p=(a??"*")!=="*";return"Unable to find an element with the text: "+(d?u+" (normalized from '"+t+"')":t)+(p?", which matches selector '"+a+"'":"")+". This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible."},"getMissingError$5"),DP=vt(Rd,Rd.name,"queryAll"),[LP,FP,BP,$P,JP]=ar(Rd,w$,_$),Pd=i(function(e,t,r){let{exact:n=!0,collapseWhitespace:o,trim:s,normalizer:a}=r===void 0?{}:r;sr(e);const c=n?nr:Ln,u=Xr({collapseWhitespace:o,trim:s,normalizer:a});return Array.from(e.querySelectorAll("input,textarea,select")).filter(d=>d.tagName==="SELECT"?Array.from(d.options).filter(f=>f.selected).some(f=>c(ko(f),f,t,u)):c(d.value,d,t,u))},"queryAllByDisplayValue"),S$=i((e,t)=>"Found multiple elements with the display value: "+t+".","getMultipleError$4"),R$=i((e,t)=>"Unable to find an element with the display value: "+t+".","getMissingError$4"),UP=vt(Pd,Pd.name,"queryAll"),[VP,HP,GP,zP,WP]=ar(Pd,S$,R$),P$=/^(img|input|area|.+-.+)$/i,Ad=i(function(e,t,r){return r===void 0&&(r={}),sr(e),Qr("alt",e,t,r).filter(n=>P$.test(n.tagName))},"queryAllByAltText"),A$=i((e,t)=>"Found multiple elements with the alt text: "+t,"getMultipleError$3"),O$=i((e,t)=>"Unable to find an element with the alt text: "+t,"getMissingError$3"),KP=vt(Ad,Ad.name,"queryAll"),[YP,XP,QP,ZP,eA]=ar(Ad,A$,O$),C$=i(e=>{var t;return e.tagName.toLowerCase()==="title"&&((t=e.parentElement)==null?void 0:t.tagName.toLowerCase())==="svg"},"isSvgTitle"),Od=i(function(e,t,r){let{exact:n=!0,collapseWhitespace:o,trim:s,normalizer:a}=r===void 0?{}:r;sr(e);const c=n?nr:Ln,u=Xr({collapseWhitespace:o,trim:s,normalizer:a});return Array.from(e.querySelectorAll("[title], svg > title")).filter(d=>c(d.getAttribute("title"),d,t,u)||C$(d)&&c(ko(d),d,t,u))},"queryAllByTitle"),x$=i((e,t)=>"Found multiple elements with the title: "+t+".","getMultipleError$2"),N$=i((e,t)=>"Unable to find an element with the title: "+t+".","getMissingError$2"),tA=vt(Od,Od.name,"queryAll"),[rA,nA,oA,iA,sA]=ar(Od,x$,N$),Cd=i(function(e,t,r){let{hidden:n=Te().defaultHidden,name:o,description:s,queryFallbacks:a=!1,selected:c,busy:u,checked:d,pressed:p,current:f,level:m,expanded:y,value:{now:g,min:T,max:E,text:v}={}}=r===void 0?{}:r;if(sr(e),c!==void 0){var _;if(((_=Mt.roles.get(t))==null?void 0:_.props["aria-selected"])===void 0)throw new Error('"aria-selected" is not supported on role "'+t+'".')}if(u!==void 0){var A;if(((A=Mt.roles.get(t))==null?void 0:A.props["aria-busy"])===void 0)throw new Error('"aria-busy" is not supported on role "'+t+'".')}if(d!==void 0){var N;if(((N=Mt.roles.get(t))==null?void 0:N.props["aria-checked"])===void 0)throw new Error('"aria-checked" is not supported on role "'+t+'".')}if(p!==void 0){var j;if(((j=Mt.roles.get(t))==null?void 0:j.props["aria-pressed"])===void 0)throw new Error('"aria-pressed" is not supported on role "'+t+'".')}if(f!==void 0){var C;if(((C=Mt.roles.get(t))==null?void 0:C.props["aria-current"])===void 0)throw new Error('"aria-current" is not supported on role "'+t+'".')}if(m!==void 0&&t!=="heading")throw new Error('Role "'+t+'" cannot have "level" property.');if(g!==void 0){var R;if(((R=Mt.roles.get(t))==null?void 0:R.props["aria-valuenow"])===void 0)throw new Error('"aria-valuenow" is not supported on role "'+t+'".')}if(E!==void 0){var w;if(((w=Mt.roles.get(t))==null?void 0:w.props["aria-valuemax"])===void 0)throw new Error('"aria-valuemax" is not supported on role "'+t+'".')}if(T!==void 0){var S;if(((S=Mt.roles.get(t))==null?void 0:S.props["aria-valuemin"])===void 0)throw new Error('"aria-valuemin" is not supported on role "'+t+'".')}if(v!==void 0){var k;if(((k=Mt.roles.get(t))==null?void 0:k.props["aria-valuetext"])===void 0)throw new Error('"aria-valuetext" is not supported on role "'+t+'".')}if(y!==void 0){var I;if(((I=Mt.roles.get(t))==null?void 0:I.props["aria-expanded"])===void 0)throw new Error('"aria-expanded" is not supported on role "'+t+'".')}const V=new WeakMap;function H(P){return V.has(P)||V.set(P,Tm(P)),V.get(P)}return i(H,"cachedIsSubtreeInaccessible"),Array.from(e.querySelectorAll(aA(t))).filter(P=>{if(P.hasAttribute("role")){const D=P.getAttribute("role");if(a)return D.split(" ").filter(Boolean).some(X=>X===t);const[K]=D.split(" ");return K===t}return lc(P).some(D=>D===t)}).filter(P=>{if(c!==void 0)return c===lP(P);if(u!==void 0)return u===cP(P);if(d!==void 0)return d===uP(P);if(p!==void 0)return p===dP(P);if(f!==void 0)return f===pP(P);if(y!==void 0)return y===fP(P);if(m!==void 0)return m===hP(P);if(g!==void 0||E!==void 0||T!==void 0||v!==void 0){let B=!0;if(g!==void 0&&B&&(B=g===mP(P)),E!==void 0&&B&&(B=E===yP(P)),T!==void 0&&B&&(B=T===gP(P)),v!==void 0){var L;B&&(B=nr((L=bP(P))!=null?L:null,P,v,D=>D))}return B}return!0}).filter(P=>o===void 0?!0:nr(ic(P,{computedStyleSupportsPseudoElements:Te().computedStyleSupportsPseudoElements}),P,o,L=>L)).filter(P=>s===void 0?!0:nr(dm(P,{computedStyleSupportsPseudoElements:Te().computedStyleSupportsPseudoElements}),P,s,L=>L)).filter(P=>n===!1?Cs(P,{isSubtreeInaccessible:H})===!1:!0)},"queryAllByRole");function aA(e){var t;const r='*[role~="'+e+'"]',n=(t=Mt.roleElements.get(e))!=null?t:new Set,o=new Set(Array.from(n).map(s=>{let{name:a}=s;return a}));return[r].concat(Array.from(o)).join(",")}i(aA,"makeRoleSelector");var lA=i(e=>{let t="";return e===void 0?t="":typeof e=="string"?t=' and name "'+e+'"':t=" and name `"+e+"`",t},"getNameHint"),I$=i(function(e,t,r){let{name:n}=r===void 0?{}:r;return'Found multiple elements with the role "'+t+'"'+lA(n)},"getMultipleError$1"),M$=i(function(e,t,r){let{hidden:n=Te().defaultHidden,name:o,description:s}=r===void 0?{}:r;if(Te()._disableExpensiveErrorDiagnostics)return'Unable to find role="'+t+'"'+lA(o);let a="";Array.from(e.children).forEach(p=>{a+=_m(p,{hidden:n,includeDescription:s!==void 0})});let c;a.length===0?n===!1?c="There are no accessible roles. But there might be some inaccessible roles. If you wish to access them, then set the `hidden` option to `true`. Learn more about this here: https://testing-library.com/docs/dom-testing-library/api-queries#byrole":c="There are no available roles.":c=(`
|
|
326
|
+
Here are the `+(n===!1?"accessible":"available")+` roles:
|
|
327
|
+
|
|
328
|
+
`+a.replace(/\n/g,`
|
|
329
|
+
`).replace(/\n\s\s\n/g,`
|
|
330
|
+
|
|
331
|
+
`)+`
|
|
332
|
+
`).trim();let u="";o===void 0?u="":typeof o=="string"?u=' and name "'+o+'"':u=" and name `"+o+"`";let d="";return s===void 0?d="":typeof s=="string"?d=' and description "'+s+'"':d=" and description `"+s+"`",(`
|
|
333
|
+
Unable to find an `+(n===!1?"accessible ":"")+'element with the role "'+t+'"'+u+d+`
|
|
334
|
+
|
|
335
|
+
`+c).trim()},"getMissingError$1"),cA=vt(Cd,Cd.name,"queryAll"),[uA,dA,pA,fA,hA]=ar(Cd,I$,M$),Pm=i(()=>Te().testIdAttribute,"getTestIdAttribute"),xd=i(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return sr(t[0]),Qr(Pm(),...t)},"queryAllByTestId"),q$=i((e,t)=>"Found multiple elements by: ["+Pm()+'="'+t+'"]',"getMultipleError"),j$=i((e,t)=>"Unable to find an element by: ["+Pm()+'="'+t+'"]',"getMissingError"),mA=vt(xd,xd.name,"queryAll"),[yA,gA,bA,vA,EA]=ar(xd,q$,j$),ka=Object.freeze({__proto__:null,queryAllByLabelText:xP,queryByLabelText:SP,getAllByLabelText:OP,getByLabelText:CP,findAllByLabelText:PP,findByLabelText:AP,queryByPlaceholderText:IP,queryAllByPlaceholderText:NP,getByPlaceholderText:qP,getAllByPlaceholderText:MP,findAllByPlaceholderText:jP,findByPlaceholderText:kP,queryByText:LP,queryAllByText:DP,getByText:BP,getAllByText:FP,findAllByText:$P,findByText:JP,queryByDisplayValue:VP,queryAllByDisplayValue:UP,getByDisplayValue:GP,getAllByDisplayValue:HP,findAllByDisplayValue:zP,findByDisplayValue:WP,queryByAltText:YP,queryAllByAltText:KP,getByAltText:QP,getAllByAltText:XP,findAllByAltText:ZP,findByAltText:eA,queryByTitle:rA,queryAllByTitle:tA,getByTitle:oA,getAllByTitle:nA,findAllByTitle:iA,findByTitle:sA,queryByRole:uA,queryAllByRole:cA,getAllByRole:dA,getByRole:pA,findAllByRole:fA,findByRole:hA,queryByTestId:yA,queryAllByTestId:mA,getByTestId:bA,getAllByTestId:gA,findAllByTestId:vA,findByTestId:EA});function Da(e,t,r){return t===void 0&&(t=ka),r===void 0&&(r={}),Object.keys(t).reduce((n,o)=>{const s=t[o];return n[o]=s.bind(null,e),n},r)}i(Da,"getQueriesForElement");var TA=i(e=>!e||Array.isArray(e)&&!e.length,"isRemoved");function Nd(e){if(TA(e))throw new Error("The element(s) given to waitForElementToBeRemoved are already removed. waitForElementToBeRemoved requires that the element(s) exist(s) before waiting for removal.")}i(Nd,"initialCheck");async function wA(e,t){const r=new Error("Timed out in waitForElementToBeRemoved.");if(typeof e!="function"){Nd(e);const o=(Array.isArray(e)?e:[e]).map(s=>{let a=s.parentElement;if(a===null)return()=>null;for(;a.parentElement;)a=a.parentElement;return()=>a.contains(s)?s:null});e=i(()=>o.map(s=>s()).filter(Boolean),"callback")}return Nd(e()),cc(()=>{let n;try{n=e()}catch(o){if(o.name==="TestingLibraryElementError")return;throw o}if(!TA(n))throw r},t)}i(wA,"waitForElementToBeRemoved");var kg={copy:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},cut:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},paste:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionEnd:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionStart:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionUpdate:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keyDown:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},keyPress:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},keyUp:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},focus:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},blur:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},focusIn:{EventType:"FocusEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},focusOut:{EventType:"FocusEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},change:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!1}},input:{EventType:"InputEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},invalid:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!0}},submit:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!0}},reset:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!0}},click:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,button:0,composed:!0}},contextMenu:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dblClick:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},drag:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragEnd:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragEnter:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragExit:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragLeave:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragOver:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragStart:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},drop:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseDown:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseEnter:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseLeave:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseMove:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseOut:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseOver:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseUp:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},select:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!1}},touchCancel:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},touchEnd:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},touchMove:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},touchStart:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},resize:{EventType:"UIEvent",defaultInit:{bubbles:!1,cancelable:!1}},scroll:{EventType:"UIEvent",defaultInit:{bubbles:!1,cancelable:!1}},wheel:{EventType:"WheelEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},abort:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},canPlay:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},canPlayThrough:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},durationChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},emptied:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},encrypted:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},ended:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadedData:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadedMetadata:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadStart:{EventType:"ProgressEvent",defaultInit:{bubbles:!1,cancelable:!1}},pause:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},play:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},playing:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},progress:{EventType:"ProgressEvent",defaultInit:{bubbles:!1,cancelable:!1}},rateChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},seeked:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},seeking:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},stalled:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},suspend:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},timeUpdate:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},volumeChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},waiting:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},load:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},error:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},animationStart:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},animationEnd:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},animationIteration:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionCancel:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionEnd:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!0}},transitionRun:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionStart:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},pointerOver:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerEnter:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},pointerDown:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerMove:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerUp:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerCancel:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},pointerOut:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerLeave:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},gotPointerCapture:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},lostPointerCapture:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},popState:{EventType:"PopStateEvent",defaultInit:{bubbles:!0,cancelable:!1}},offline:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},online:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},pageHide:{EventType:"PageTransitionEvent",defaultInit:{bubbles:!0,cancelable:!0}},pageShow:{EventType:"PageTransitionEvent",defaultInit:{bubbles:!0,cancelable:!0}}},Dg={doubleClick:"dblClick"};function vo(e,t){return Te().eventWrapper(()=>{if(!t)throw new Error("Unable to fire an event - please provide an event object.");if(!e)throw new Error('Unable to fire a "'+t.type+'" event - please provide a DOM element.');return e.dispatchEvent(t)})}i(vo,"fireEvent");function Mi(e,t,r,n){let{EventType:o="Event",defaultInit:s={}}=n===void 0?{}:n;if(!t)throw new Error('Unable to fire a "'+e+'" event - please provide a DOM element.');const a={...s,...r},{target:{value:c,files:u,...d}={}}=a;c!==void 0&&_A(t,c),u!==void 0&&Object.defineProperty(t,"files",{configurable:!0,enumerable:!0,writable:!0,value:u}),Object.assign(t,d);const p=mm(t),f=p[o]||p.Event;let m;if(typeof f=="function")m=new f(e,a);else{m=p.document.createEvent(o);const{bubbles:g,cancelable:T,detail:E,...v}=a;m.initEvent(e,g,T,E),Object.keys(v).forEach(_=>{m[_]=v[_]})}return["dataTransfer","clipboardData"].forEach(g=>{const T=a[g];typeof T=="object"&&(typeof p.DataTransfer=="function"?Object.defineProperty(m,g,{value:Object.getOwnPropertyNames(T).reduce((E,v)=>(Object.defineProperty(E,v,{value:T[v]}),E),new p.DataTransfer)}):Object.defineProperty(m,g,{value:T}))}),m}i(Mi,"createEvent");Object.keys(kg).forEach(e=>{const{EventType:t,defaultInit:r}=kg[e],n=e.toLowerCase();Mi[e]=(o,s)=>Mi(n,o,s,{EventType:t,defaultInit:r}),vo[e]=(o,s)=>vo(o,Mi[e](o,s))});function _A(e,t){const{set:r}=Object.getOwnPropertyDescriptor(e,"value")||{},n=Object.getPrototypeOf(e),{set:o}=Object.getOwnPropertyDescriptor(n,"value")||{};if(o&&r!==o)o.call(e,t);else if(r)r.call(e,t);else throw new Error("The given element does not have a value setter")}i(_A,"setNativeValue");Object.keys(Dg).forEach(e=>{const t=Dg[e];vo[e]=function(){return vo[t](...arguments)}});function SA(e){return e.replace(/[ \t]*[\n][ \t]*/g,`
|
|
336
|
+
`)}i(SA,"unindent");function RA(e){return t$.default.compressToEncodedURIComponent(SA(e))}i(RA,"encode");function PA(e){return"https://testing-playground.com/#markup="+RA(e)}i(PA,"getPlaygroundUrl");var k$=i((e,t,r)=>Array.isArray(e)?e.forEach(n=>wd(n,t,r)):wd(e,t,r),"debug"),D$=i(function(e){if(e===void 0&&(e=sc().body),!e||!("innerHTML"in e)){console.log("The element you're providing isn't a valid DOM element.");return}if(!e.innerHTML){console.log("The provided element doesn't have any children.");return}const t=PA(e.innerHTML);return console.log(`Open this URL in your browser
|
|
337
|
+
|
|
338
|
+
`+t),t},"logTestingPlaygroundURL"),Lg={debug:k$,logTestingPlaygroundURL:D$},L$=typeof document<"u"&&document.body?Da(document.body,ka,Lg):Object.keys(ka).reduce((e,t)=>(e[t]=()=>{throw new TypeError("For queries bound to document.body a global document has to be available... Learn more: https://testing-library.com/s/screen-global-error")},e),Lg);function ye(e,t,r){return e.namespaceURI&&e.namespaceURI!=="http://www.w3.org/1999/xhtml"||(t=Array.isArray(t)?t:[t],!t.includes(e.tagName.toLowerCase()))?!1:r?Object.entries(r).every(([n,o])=>e[n]===o):!0}i(ye,"isElementType");function xt(e){var t;if(AA(e)&&e.defaultView)return e.defaultView;if(!((t=e.ownerDocument)===null||t===void 0)&&t.defaultView)return e.ownerDocument.defaultView;throw new Error(`Could not determine window of node. Node was ${OA(e)}`)}i(xt,"getWindow");function AA(e){return e.nodeType===9}i(AA,"isDocument");function OA(e){return typeof e=="function"?`function ${e.name}`:e===null?"null":String(e)}i(OA,"describe");function Am(e,t){return new Promise((r,n)=>{const o=new t;o.onerror=n,o.onabort=n,o.onload=()=>{r(String(o.result))},o.readAsText(e)})}i(Am,"readBlobText");function dc(e,t){const r={...t,length:t.length,item:i(n=>r[n],"item"),[Symbol.iterator]:i(function*(){for(let o=0;o<r.length;o++)yield r[o]},"nextFile")};return r.constructor=e.FileList,e.FileList&&Object.setPrototypeOf(r,e.FileList.prototype),Object.freeze(r),r}i(dc,"createFileList");function Er(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}i(Er,"_define_property");var CA=class{getAsFile(){return this.file}getAsString(t){typeof this.data=="string"&&t(this.data)}webkitGetAsEntry(){throw new Error("not implemented")}constructor(t,r){Er(this,"kind",void 0),Er(this,"type",void 0),Er(this,"file",null),Er(this,"data",void 0),typeof t=="string"?(this.kind="string",this.type=String(r),this.data=t):(this.kind="file",this.type=t.type,this.file=t)}};i(CA,"DataTransferItemStub");var xA=CA,NA=class extends Array{add(...t){const r=new xA(t[0],t[1]);return this.push(r),r}clear(){this.splice(0,this.length)}remove(t){this.splice(t,1)}};i(NA,"DataTransferItemListStub");var F$=NA;function Ei(e,t){const[r,n]=e.split("/"),o=!n||n==="*";return s=>t?s.type===(o?r:e):o?s.type.startsWith(`${r}/`):s.type===r}i(Ei,"getTypeMatcher");function IA(e){var t;return new(t=class{getData(r){var n;const o=(n=this.items.find(Ei(r,!0)))!==null&&n!==void 0?n:this.items.find(Ei(r,!1));let s="";return o?.getAsString(a=>{s=a}),s}setData(r,n){const o=this.items.findIndex(Ei(r,!0)),s=new xA(n,r);o>=0?this.items.splice(o,1,s):this.items.push(s)}clearData(r){if(r){const n=this.items.findIndex(Ei(r,!0));n>=0&&this.items.remove(n)}else this.items.clear()}get types(){const r=[];return this.files.length&&r.push("Files"),this.items.forEach(n=>r.push(n.type)),Object.freeze(r),r}setDragImage(){}constructor(){Er(this,"dropEffect","none"),Er(this,"effectAllowed","uninitialized"),Er(this,"items",new F$),Er(this,"files",dc(e,[]))}},i(t,"DataTransferStub"),t)}i(IA,"createDataTransferStub");function pc(e,t=[]){const r=typeof e.DataTransfer>"u"?IA(e):new e.DataTransfer;return Object.defineProperty(r,"files",{get:i(()=>dc(e,t),"get")}),r}i(pc,"createDataTransfer");async function MA(e,t){return t.kind==="file"?t.getAsFile():new e.Blob([await new Promise(r=>t.getAsString(r))],{type:t.type})}i(MA,"getBlobFromDataTransferItem");function Om(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}i(Om,"_define_property");function Cm(e,...t){var r;const n=Object.fromEntries(t.map(o=>[typeof o=="string"?"text/plain":o.type,Promise.resolve(o)]));return typeof e.ClipboardItem<"u"?new e.ClipboardItem(n):new(r=class{get types(){return Array.from(Object.keys(this.data))}async getType(o){const s=await this.data[o];if(!s)throw new Error(`${o} is not one of the available MIME types on this item.`);return s instanceof e.Blob?s:new e.Blob([s],{type:o})}constructor(o){Om(this,"data",void 0),this.data=o}},i(r,"ClipboardItem"),r)(n)}i(Cm,"createClipboardItem");var Eo=Symbol("Manage ClipboardSub");function Id(e,t){var r;return Object.assign(new(r=class extends e.EventTarget{async read(){return Array.from(this.items)}async readText(){let n="";for(const o of this.items){const s=o.types.includes("text/plain")?"text/plain":o.types.find(a=>a.startsWith("text/"));s&&(n+=await o.getType(s).then(a=>Am(a,e.FileReader)))}return n}async write(n){this.items=n}async writeText(n){this.items=[Cm(e,n)]}constructor(...n){super(...n),Om(this,"items",[])}},i(r,"Clipboard"),r),{[Eo]:t})}i(Id,"createClipboardStub");function fc(e){return!!e?.[Eo]}i(fc,"isClipboardStub");function qA(e){if(fc(e.navigator.clipboard))return e.navigator.clipboard[Eo];const t=Object.getOwnPropertyDescriptor(e.navigator,"clipboard");let r;const n={resetClipboardStub:i(()=>{r=Id(e,n)},"resetClipboardStub"),detachClipboardStub:i(()=>{t?Object.defineProperty(e.navigator,"clipboard",t):Object.defineProperty(e.navigator,"clipboard",{value:void 0,configurable:!0})},"detachClipboardStub")};return r=Id(e,n),Object.defineProperty(e.navigator,"clipboard",{get:i(()=>r,"get"),configurable:!0}),r[Eo]}i(qA,"attachClipboardStubToView");function jA(e){fc(e.navigator.clipboard)&&e.navigator.clipboard[Eo].resetClipboardStub()}i(jA,"resetClipboardStubOnView");function kA(e){fc(e.navigator.clipboard)&&e.navigator.clipboard[Eo].detachClipboardStub()}i(kA,"detachClipboardStubFromView");async function DA(e){const t=e.defaultView,r=t?.navigator.clipboard,n=r&&await r.read();if(!n)throw new Error("The Clipboard API is unavailable.");const o=pc(t);for(const s of n)for(const a of s.types)o.setData(a,await s.getType(a).then(c=>Am(c,t.FileReader)));return o}i(DA,"readDataTransferFromClipboard");async function xm(e,t){const r=xt(e),n=r.navigator.clipboard,o=[];for(let a=0;a<t.items.length;a++){const c=t.items[a],u=await MA(r,c);o.push(Cm(r,u))}if(!(n&&await n.write(o).then(()=>!0,()=>!1)))throw new Error("The Clipboard API is unavailable.")}i(xm,"writeDataTransferToClipboard");var La=globalThis;typeof La.afterEach=="function"&&La.afterEach(()=>{typeof globalThis.window<"u"&&jA(globalThis.window)});typeof La.afterAll=="function"&&La.afterAll(()=>{typeof globalThis.window<"u"&&kA(globalThis.window)});var LA=["input:not([type=hidden]):not([disabled])","button:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[contenteditable=""]','[contenteditable="true"]',"a[href]","[tabindex]:not([disabled])"].join(", ");function hc(e){return e.matches(LA)}i(hc,"isFocusable");function FA(e){return new e.constructor(e.type,e)}i(FA,"cloneEvent");function or(e){for(let r=e;r;r=r.parentElement)if(ye(r,["button","input","select","textarea","optgroup","option"])){if(r.hasAttribute("disabled"))return!0}else if(ye(r,"fieldset")){var t;if(r.hasAttribute("disabled")&&!(!((t=r.querySelector(":scope > legend"))===null||t===void 0)&&t.contains(e)))return!0}else if(r.tagName.includes("-")&&r.constructor.formAssociated&&r.hasAttribute("disabled"))return!0;return!1}i(or,"isDisabled");function Lo(e){const t=e.activeElement;return t?.shadowRoot?Lo(t.shadowRoot):or(t)?e.ownerDocument?e.ownerDocument.body:e.body:t}i(Lo,"getActiveElement");function Ys(e){var t;return(t=Lo(e))!==null&&t!==void 0?t:e.body}i(Ys,"getActiveElementOrBody");function BA(e,t){let r=e;do{if(t(r))return r;r=r.parentElement}while(r&&r!==e.ownerDocument.body)}i(BA,"findClosest");function Gr(e){return e.hasAttribute("contenteditable")&&(e.getAttribute("contenteditable")=="true"||e.getAttribute("contenteditable")=="")}i(Gr,"isContentEditable");function To(e){const t=$A(e);return t&&(t.closest('[contenteditable=""]')||t.closest('[contenteditable="true"]'))}i(To,"getContentEditable");function $A(e){return e.nodeType===1?e:e.parentElement}i($A,"getElement");var JA=(function(e){return e.button="button",e.color="color",e.file="file",e.image="image",e.reset="reset",e.submit="submit",e.checkbox="checkbox",e.radio="radio",e})(JA||{});function Nm(e){return ye(e,"button")||ye(e,"input")&&e.type in JA}i(Nm,"isClickableInput");function Pn(e){return Im(e)&&!e.readOnly||Gr(e)}i(Pn,"isEditable");var UA=(function(e){return e.text="text",e.date="date",e["datetime-local"]="datetime-local",e.email="email",e.month="month",e.number="number",e.password="password",e.search="search",e.tel="tel",e.time="time",e.url="url",e.week="week",e})(UA||{});function Im(e){return ye(e,"textarea")||ye(e,"input")&&e.type in UA}i(Im,"isEditableInputOrTextArea");function zt(e){return Mm(e)&&Im(e)}i(zt,"hasOwnSelection");function VA(e){return Mm(e)&&Nm(e)}i(VA,"hasNoSelection");function Mm(e){return e.nodeType===1}i(Mm,"isElement");function HA(e){const t=e.ownerDocument.getSelection();if(t?.focusNode&&zt(e)){const n=To(t.focusNode);if(n){if(!t.isCollapsed){var r;const o=((r=n.firstChild)===null||r===void 0?void 0:r.nodeType)===3?n.firstChild:n;t.setBaseAndExtent(o,0,o,0)}}else t.setBaseAndExtent(e,0,e,0)}}i(HA,"updateSelectionOnFocus");function An(e,t){return Te().eventWrapper(e)}i(An,"wrapEvent");function Rr(e){const t=BA(e,hc),r=Lo(e.ownerDocument);(t??e.ownerDocument.body)!==r&&(An(t?()=>t.focus():()=>r?.blur()),HA(t??e.ownerDocument.body))}i(Rr,"focusElement");function GA(e){!hc(e)||!(Lo(e.ownerDocument)===e)||An(()=>e.blur())}i(GA,"blurElement");var zr={};zr.click=(e,t,r)=>{const n=t.closest("button,input,label,select,textarea"),o=n&&ye(n,"label")&&n.control;if(o&&o!==t)return()=>{hc(o)&&(Rr(o),r.dispatchEvent(o,FA(e)))};if(ye(t,"input",{type:"file"}))return()=>{GA(t),t.dispatchEvent(new(xt(t)).Event("fileDialog")),Rr(t)}};var wo=Symbol("Displayed value in UI"),Tr=Symbol("Displayed selection in UI"),Fa=Symbol("Initial value to compare on blur");function zA(e){return typeof e=="object"&&wo in e}i(zA,"isUIValue");function WA(e){return!!e&&typeof e=="object"&&Tr in e}i(WA,"isUISelectionStart");function KA(e,t){e[Fa]===void 0&&(e[Fa]=e.value),e[wo]=t,e.value=Object.assign(new String(t),{[wo]:!0})}i(KA,"setUIValue");function Wt(e){return e[wo]===void 0?e.value:String(e[wo])}i(Wt,"getUIValue");function mc(e){e[wo]=void 0}i(mc,"setUIValueClean");function qm(e){e[Fa]=void 0}i(qm,"clearInitialValue");function YA(e){return e[Fa]}i(YA,"getInitialValue");function XA(e,t){e[Tr]=t}i(XA,"setUISelectionRaw");function Fn(e,{focusOffset:t,anchorOffset:r=t},n="replace"){const o=Wt(e).length,s=i(f=>Math.max(0,Math.min(o,f)),"sanitizeOffset"),a=n==="replace"||e[Tr]===void 0?s(r):e[Tr].anchorOffset,c=s(t),u=Math.min(a,c),d=Math.max(a,c);if(e[Tr]={anchorOffset:a,focusOffset:c},e.selectionStart===u&&e.selectionEnd===d)return;const p=Object.assign(new Number(u),{[Tr]:!0});try{e.setSelectionRange(p,d)}catch{}}i(Fn,"setUISelection");function _o(e){var t,r,n;const o=(n=e[Tr])!==null&&n!==void 0?n:{anchorOffset:(t=e.selectionStart)!==null&&t!==void 0?t:0,focusOffset:(r=e.selectionEnd)!==null&&r!==void 0?r:0};return{...o,startOffset:Math.min(o.anchorOffset,o.focusOffset),endOffset:Math.max(o.anchorOffset,o.focusOffset)}}i(_o,"getUISelection");function QA(e){return!!e[Tr]}i(QA,"hasUISelection");function qi(e){e[Tr]=void 0}i(qi,"setUISelectionClean");var Ba=globalThis.parseInt;function ZA(e){const t=e.replace(/\D/g,"");if(t.length<2)return e;const r=Ba(t[0],10),n=Ba(t[1],10);if(r>=3||r===2&&n>=4){let o;return r>=3?o=1:o=2,Md(t,o)}return e.length===2?e:Md(t,2)}i(ZA,"buildTimeValue");function Md(e,t){const r=e.slice(0,t),n=Math.min(Ba(r,10),23),o=e.slice(t),s=Ba(o,10),a=Math.min(s,59);return`${n.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`}i(Md,"build");function jm(e,t){const r=e.cloneNode();return r.value=t,r.value===t}i(jm,"isValidDateOrTimeValue");var eO=(function(e){return e.email="email",e.password="password",e.search="search",e.telephone="telephone",e.text="text",e.url="url",e})(eO||{});function tO(e){var t;const r=(t=e.getAttribute("maxlength"))!==null&&t!==void 0?t:"";return/^\d+$/.test(r)&&Number(r)>=0?Number(r):void 0}i(tO,"getMaxLength");function rO(e){return ye(e,"textarea")||ye(e,"input")&&e.type in eO}i(rO,"supportsMaxLength");function km(e,t,r,n){if(ji(e)&&t+r>=0&&t+r<=e.nodeValue.length)return{node:e,offset:t+r};const o=qd(e,t,r);if(o){if(ji(o))return{node:o,offset:r>0?Math.min(1,o.nodeValue.length):Math.max(o.nodeValue.length-1,0)};if(ye(o,"br")){const s=qd(o,void 0,r);return s?ji(s)?{node:s,offset:r>0?0:s.nodeValue.length}:r<0&&ye(s,"br")?{node:o.parentNode,offset:Ti(o)}:{node:s.parentNode,offset:Ti(s)+(r>0?0:1)}:r<0&&n==="deleteContentBackward"?{node:o.parentNode,offset:Ti(o)}:void 0}else return{node:o.parentNode,offset:Ti(o)+(r>0?1:0)}}}i(km,"getNextCursorPosition");function qd(e,t,r){const n=Number(t)+(r<0?-1:0);return t!==void 0&&yc(e)&&n>=0&&n<e.children.length&&(e=e.children[n]),oO(e,r===1?"next":"previous",nO)}i(qd,"getNextCharacterContentNode");function nO(e){if(ji(e))return!0;if(yc(e)){if(ye(e,["input","textarea"]))return e.type!=="hidden";if(ye(e,"br"))return!0}return!1}i(nO,"isTreatedAsCharacterContent");function Ti(e){let t=0;for(;e.previousSibling;)t++,e=e.previousSibling;return t}i(Ti,"getOffset");function yc(e){return e.nodeType===1}i(yc,"isElement");function ji(e){return e.nodeType===3}i(ji,"isTextNode");function oO(e,t,r){for(;;){var n;const o=e[`${t}Sibling`];if(o){if(e=iO(o,t==="next"?"first":"last"),r(e))return e}else if(e.parentNode&&(!yc(e.parentNode)||!Gr(e.parentNode)&&e.parentNode!==((n=e.ownerDocument)===null||n===void 0?void 0:n.body)))e=e.parentNode;else break}}i(oO,"walkNodes");function iO(e,t){for(;e.hasChildNodes();)e=e[`${t}Child`];return e}i(iO,"getDescendant");var ns=Symbol("Track programmatic changes for React workaround");function sO(e){return Object.getOwnPropertyNames(e).some(t=>t.startsWith("__react"))&&xt(e).REACT_VERSION===17}i(sO,"isReact17Element");function aO(e){sO(e)&&(e[ns]={previousValue:String(e.value),tracked:[]})}i(aO,"startTrackValue");function lO(e,t){var r,n;(n=e[ns])===null||n===void 0||(r=n.tracked)===null||r===void 0||r.push(t),e[ns]||(mc(e),Fn(e,{focusOffset:t.length}))}i(lO,"trackOrSetValue");function cO(e,t){var r;const n=e[ns];if(e[ns]=void 0,!(!(n==null||(r=n.tracked)===null||r===void 0)&&r.length))return;const o=n.tracked.length===2&&n.tracked[0]===n.previousValue&&n.tracked[1]===e.value;o||mc(e),QA(e)&&Fn(e,{focusOffset:o?t:e.value.length})}i(cO,"commitValueAfterInput");function Dm(e){const t=uO(e);if(t&&zt(t))return{type:"input",selection:_o(t)};const r=t?.ownerDocument.getSelection();return{type:To(e)&&r?.anchorNode&&To(r.anchorNode)?"contenteditable":"default",selection:r}}i(Dm,"getTargetTypeAndSelection");function uO(e){return e.nodeType===1?e:e.parentElement}i(uO,"getElement");function dO(e){const t=Dm(e);if(t.type==="input")return t.selection;if(t.type==="contenteditable"){var r;return(r=t.selection)===null||r===void 0?void 0:r.getRangeAt(0)}}i(dO,"getInputRange");function Wr({focusNode:e,focusOffset:t,anchorNode:r=e,anchorOffset:n=t}){var o,s;if(Dm(e).type==="input")return Fn(e,{anchorOffset:n,focusOffset:t});(s=r.ownerDocument)===null||s===void 0||(o=s.getSelection())===null||o===void 0||o.setBaseAndExtent(r,n,e,t)}i(Wr,"setSelection");function Lm(e){return ye(e,"input")&&["date","time"].includes(e.type)}i(Lm,"isDateOrTime");function On(e,t,r,n="insertText"){const o=dO(t);o&&(!Lm(t)&&!e.dispatchUIEvent(t,"beforeinput",{inputType:n,data:r})||("startContainer"in o?pO(e,t,o,r,n):fO(e,t,o,r,n)))}i(On,"input");function pO(e,t,r,n,o){let s=!1;if(!r.collapsed)s=!0,r.deleteContents();else if(["deleteContentBackward","deleteContentForward"].includes(o)){const a=km(r.startContainer,r.startOffset,o==="deleteContentBackward"?-1:1,o);if(a){s=!0;const c=r.cloneRange();c.comparePoint(a.node,a.offset)<0?c.setStart(a.node,a.offset):c.setEnd(a.node,a.offset),c.deleteContents()}}if(n)if(r.endContainer.nodeType===3){const a=r.endOffset;r.endContainer.insertData(a,n),r.setStart(r.endContainer,a+n.length),r.setEnd(r.endContainer,a+n.length)}else{const a=t.ownerDocument.createTextNode(n);r.insertNode(a),r.setStart(a,n.length),r.setEnd(a,n.length)}(s||n)&&e.dispatchUIEvent(t,"input",{inputType:o})}i(pO,"editContenteditable");function fO(e,t,r,n,o){let s=n;if(rO(t)){const d=tO(t);if(d!==void 0&&n.length>0){const p=d-t.value.length;if(p>0)s=n.substring(0,p);else return}}const{newValue:a,newOffset:c,oldValue:u}=hO(s,t,r,o);a===u&&c===r.startOffset&&c===r.endOffset||ye(t,"input",{type:"number"})&&!mO(a)||(KA(t,a),Wr({focusNode:t,anchorOffset:c,focusOffset:c}),Lm(t)?jm(t,a)&&(jd(e,t,c,{}),e.dispatchUIEvent(t,"change"),qm(t)):jd(e,t,c,{data:n,inputType:o}))}i(fO,"editInputElement");function hO(e,t,{startOffset:r,endOffset:n},o){const s=Wt(t),a=Math.max(0,r===n&&o==="deleteContentBackward"?r-1:r),c=s.substring(0,a),u=Math.min(s.length,r===n&&o==="deleteContentForward"?r+1:n),d=s.substring(u,s.length);let p=`${c}${e}${d}`,f=a+e.length;if(ye(t,"input",{type:"time"})){const m=ZA(p);m!==""&&jm(t,m)&&(p=m,f=m.length)}return{oldValue:s,newValue:p,newOffset:f}}i(hO,"calculateNewValue");function jd(e,t,r,n){e.dispatchUIEvent(t,"input",n),cO(t,r)}i(jd,"commitInput");function mO(e){var t,r;const n=e.split("e",2);return!(/[^\d.\-e]/.test(e)||Number((t=e.match(/-/g))===null||t===void 0?void 0:t.length)>2||Number((r=e.match(/\./g))===null||r===void 0?void 0:r.length)>1||n[1]&&!/^-?\d*$/.test(n[1]))}i(mO,"isValidNumberInput");zr.cut=(e,t,r)=>()=>{Pn(t)&&On(r,t,"","deleteByCut")};function yO(e){return e?Gr(e)?e.textContent:Wt(e):null}i(yO,"getValueOrTextContent");function gO(e){const t=xt(e);for(let r=e;r?.ownerDocument;r=r.parentElement){const{display:n,visibility:o}=t.getComputedStyle(r);if(n==="none"||o==="hidden")return!1}return!0}i(gO,"isVisible");function bO(e,t){const r=e.ownerDocument,n=r.querySelectorAll(LA),o=Array.from(n).filter(u=>u===e||!(Number(u.getAttribute("tabindex"))<0||or(u)));Number(e.getAttribute("tabindex"))>=0&&o.sort((u,d)=>{const p=Number(u.getAttribute("tabindex")),f=Number(d.getAttribute("tabindex"));return p===f?0:p===0?1:f===0?-1:p-f});const s={};let a=[r.body];const c=ye(e,"input",{type:"radio"})?e.name:void 0;o.forEach(u=>{const d=u;if(ye(d,"input",{type:"radio"})&&d.name){if(d===e){a.push(d);return}else if(d.name===c)return;if(d.checked){a=a.filter(p=>!ye(p,"input",{type:"radio",name:d.name})),a.push(d),s[d.name]=d;return}if(typeof s[d.name]<"u")return}a.push(d)});for(let u=a.findIndex(d=>d===e);;)if(u+=t?-1:1,u===a.length?u=0:u===-1&&(u=a.length-1),a[u]===e||a[u]===r.body||gO(a[u]))return a[u]}i(bO,"getTabDestination");function kd(e,t){if(zt(e)){const r=_o(e);Wr({focusNode:e,focusOffset:r.startOffset===r.endOffset?r.focusOffset+t:t<0?r.startOffset:r.endOffset})}else{const r=e.ownerDocument.getSelection();if(!r?.focusNode)return;if(r.isCollapsed){const n=km(r.focusNode,r.focusOffset,t);n&&Wr({focusNode:n.node,focusOffset:n.offset})}else r[t<0?"collapseToStart":"collapseToEnd"]()}}i(kd,"moveSelection");function Fm(e){if(zt(e))return Wr({focusNode:e,anchorOffset:0,focusOffset:Wt(e).length});var t;const r=(t=To(e))!==null&&t!==void 0?t:e.ownerDocument.body;Wr({focusNode:r,anchorOffset:0,focusOffset:r.childNodes.length})}i(Fm,"selectAll");function vO(e){if(zt(e))return _o(e).startOffset===0&&_o(e).endOffset===Wt(e).length;var t;const r=(t=To(e))!==null&&t!==void 0?t:e.ownerDocument.body,n=e.ownerDocument.getSelection();return n?.anchorNode===r&&n.focusNode===r&&n.anchorOffset===0&&n.focusOffset===r.childNodes.length}i(vO,"isAllSelected");function Kn(e,t,r){var n;if(zt(e))return Wr({focusNode:e,anchorOffset:t,focusOffset:r});if(Gr(e)&&((n=e.firstChild)===null||n===void 0?void 0:n.nodeType)===3)return Wr({focusNode:e.firstChild,anchorOffset:t,focusOffset:r});throw new Error("Not implemented. The result of this interaction is unreliable.")}i(Kn,"setSelectionRange");function wi(e,t,r){const n=xt(t),o=Array.from(t.ownerDocument.querySelectorAll(t.name?`input[type="radio"][name="${n.CSS.escape(t.name)}"]`:'input[type="radio"][name=""], input[type="radio"]:not([name])'));for(let s=o.findIndex(a=>a===t)+r;;s+=r){if(o[s]||(s=r>0?0:o.length-1),o[s]===t)return;if(!or(o[s])){Rr(o[s]),e.dispatchUIEvent(o[s],"click");return}}}i(wi,"walkRadio");zr.keydown=(e,t,r)=>{var n,o;return(o=(n=Fg[e.key])===null||n===void 0?void 0:n.call(Fg,e,t,r))!==null&&o!==void 0?o:B$(e,t,r)};var Fg={ArrowDown:i((e,t,r)=>{if(ye(t,"input",{type:"radio"}))return()=>wi(r,t,1)},"ArrowDown"),ArrowLeft:i((e,t,r)=>ye(t,"input",{type:"radio"})?()=>wi(r,t,-1):()=>kd(t,-1),"ArrowLeft"),ArrowRight:i((e,t,r)=>ye(t,"input",{type:"radio"})?()=>wi(r,t,1):()=>kd(t,1),"ArrowRight"),ArrowUp:i((e,t,r)=>{if(ye(t,"input",{type:"radio"}))return()=>wi(r,t,-1)},"ArrowUp"),Backspace:i((e,t,r)=>{if(Pn(t))return()=>{On(r,t,"","deleteContentBackward")}},"Backspace"),Delete:i((e,t,r)=>{if(Pn(t))return()=>{On(r,t,"","deleteContentForward")}},"Delete"),End:i((e,t)=>{if(ye(t,["input","textarea"])||Gr(t))return()=>{var r,n;const o=(n=(r=yO(t))===null||r===void 0?void 0:r.length)!==null&&n!==void 0?n:0;Kn(t,o,o)}},"End"),Home:i((e,t)=>{if(ye(t,["input","textarea"])||Gr(t))return()=>{Kn(t,0,0)}},"Home"),PageDown:i((e,t)=>{if(ye(t,["input"]))return()=>{const r=Wt(t).length;Kn(t,r,r)}},"PageDown"),PageUp:i((e,t)=>{if(ye(t,["input"]))return()=>{Kn(t,0,0)}},"PageUp"),Tab:i((e,t,r)=>()=>{const n=bO(t,r.system.keyboard.modifiers.Shift);Rr(n),zt(n)&&Fn(n,{anchorOffset:0,focusOffset:n.value.length})},"Tab")},B$=i((e,t,r)=>{if(e.code==="KeyA"&&r.system.keyboard.modifiers.Control)return()=>Fm(t)},"combinationBehavior");zr.keypress=(e,t,r)=>{if(e.key==="Enter"){if(ye(t,"button")||ye(t,"input")&&$$.includes(t.type)||ye(t,"a")&&t.href)return()=>{r.dispatchUIEvent(t,"click")};if(ye(t,"input")){const n=t.form,o=n?.querySelector('input[type="submit"], button:not([type]), button[type="submit"]');return o?()=>r.dispatchUIEvent(o,"click"):n&&J$.includes(t.type)&&n.querySelectorAll("input").length===1?()=>r.dispatchUIEvent(n,"submit"):void 0}}if(Pn(t)){const n=e.key==="Enter"?Gr(t)&&!r.system.keyboard.modifiers.Shift?"insertParagraph":"insertLineBreak":"insertText",o=e.key==="Enter"?`
|
|
339
|
+
`:e.key;return()=>On(r,t,o,n)}};var $$=["button","color","file","image","reset","submit"],J$=["email","month","password","search","tel","text","url","week"];zr.keyup=(e,t,r)=>{var n;return(n=Bg[e.key])===null||n===void 0?void 0:n.call(Bg,e,t,r)};var Bg={" ":i((e,t,r)=>{if(Nm(t))return()=>r.dispatchUIEvent(t,"click")}," ")};zr.paste=(e,t,r)=>{if(Pn(t))return()=>{var n;const o=(n=e.clipboardData)===null||n===void 0?void 0:n.getData("text");o&&On(r,t,o,"insertFromPaste")}};var EO={auxclick:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},beforeinput:{EventType:"InputEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},blur:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},click:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},contextmenu:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},copy:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},change:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!1}},cut:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dblclick:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},focus:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},focusin:{EventType:"FocusEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},focusout:{EventType:"FocusEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},keydown:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keypress:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keyup:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},paste:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},input:{EventType:"InputEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},mousedown:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseenter:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseleave:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mousemove:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseout:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseover:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseup:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerover:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerenter:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},pointerdown:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointermove:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerup:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointercancel:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},pointerout:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerleave:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},submit:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!0}}};function Bm(e){return EO[e].EventType}i(Bm,"getEventClass");var U$=["MouseEvent","PointerEvent"];function TO(e){return U$.includes(Bm(e))}i(TO,"isMouseEvent");function wO(e){return Bm(e)==="KeyboardEvent"}i(wO,"isKeyboardEvent");var V$={ClipboardEvent:[SO],Event:[],FocusEvent:[Vn,RO],InputEvent:[Vn,PO],MouseEvent:[Vn,Xs,Dd],PointerEvent:[Vn,Xs,Dd,OO],KeyboardEvent:[Vn,Xs,AO]};function $m(e,t,r){const n=xt(t),{EventType:o,defaultInit:s}=EO[e],a=new(_O(n))[o](e,s);return V$[o].forEach(c=>c(a,r??{})),a}i($m,"createEvent");function _O(e){var t,r,n,o,s,a,c,u,d,p,f,m,y,g,T,E;const v=(E=e.Event)!==null&&E!==void 0?E:(t=class{},i(t,"Event"),t);var _;const A=(_=e.AnimationEvent)!==null&&_!==void 0?_:(r=class extends v{},i(r,"AnimationEvent"),r);var N;const j=(N=e.ClipboardEvent)!==null&&N!==void 0?N:(n=class extends v{},i(n,"ClipboardEvent"),n);var C;const R=(C=e.PopStateEvent)!==null&&C!==void 0?C:(o=class extends v{},i(o,"PopStateEvent"),o);var w;const S=(w=e.ProgressEvent)!==null&&w!==void 0?w:(s=class extends v{},i(s,"ProgressEvent"),s);var k;const I=(k=e.TransitionEvent)!==null&&k!==void 0?k:(a=class extends v{},i(a,"TransitionEvent"),a);var V;const H=(V=e.UIEvent)!==null&&V!==void 0?V:(c=class extends v{},i(c,"UIEvent"),c);var P;const L=(P=e.CompositionEvent)!==null&&P!==void 0?P:(u=class extends H{},i(u,"CompositionEvent"),u);var B;const D=(B=e.FocusEvent)!==null&&B!==void 0?B:(d=class extends H{},i(d,"FocusEvent"),d);var K;const X=(K=e.InputEvent)!==null&&K!==void 0?K:(p=class extends H{},i(p,"InputEvent"),p);var ie;const se=(ie=e.KeyboardEvent)!==null&&ie!==void 0?ie:(f=class extends H{},i(f,"KeyboardEvent"),f);var W;const ae=(W=e.MouseEvent)!==null&&W!==void 0?W:(m=class extends H{},i(m,"MouseEvent"),m);var be;const ue=(be=e.DragEvent)!==null&&be!==void 0?be:(y=class extends ae{},i(y,"DragEvent"),y);var ee;const Ae=(ee=e.PointerEvent)!==null&&ee!==void 0?ee:(g=class extends ae{},i(g,"PointerEvent"),g);var Oe;const Ve=(Oe=e.TouchEvent)!==null&&Oe!==void 0?Oe:(T=class extends H{},i(T,"TouchEvent"),T);return{Event:v,AnimationEvent:A,ClipboardEvent:j,PopStateEvent:R,ProgressEvent:S,TransitionEvent:I,UIEvent:H,CompositionEvent:L,FocusEvent:D,InputEvent:X,KeyboardEvent:se,MouseEvent:ae,DragEvent:ue,PointerEvent:Ae,TouchEvent:Ve}}i(_O,"getEventConstructors");function Or(e,t){for(const[r,n]of Object.entries(t))Object.defineProperty(e,r,{get:i(()=>n??null,"get")})}i(Or,"assignProps");function Le(e){return Number(e??0)}i(Le,"sanitizeNumber");function SO(e,{clipboardData:t}){Or(e,{clipboardData:t})}i(SO,"initClipboardEvent");function RO(e,{relatedTarget:t}){Or(e,{relatedTarget:t})}i(RO,"initFocusEvent");function PO(e,{data:t,inputType:r,isComposing:n}){Or(e,{data:t,isComposing:!!n,inputType:String(r)})}i(PO,"initInputEvent");function Vn(e,{view:t,detail:r}){Or(e,{view:t,detail:Le(r??0)})}i(Vn,"initUIEvent");function Xs(e,{altKey:t,ctrlKey:r,metaKey:n,shiftKey:o,modifierAltGraph:s,modifierCapsLock:a,modifierFn:c,modifierFnLock:u,modifierNumLock:d,modifierScrollLock:p,modifierSymbol:f,modifierSymbolLock:m}){Or(e,{altKey:!!t,ctrlKey:!!r,metaKey:!!n,shiftKey:!!o,getModifierState(y){return!!{Alt:t,AltGraph:s,CapsLock:a,Control:r,Fn:c,FnLock:u,Meta:n,NumLock:d,ScrollLock:p,Shift:o,Symbol:f,SymbolLock:m}[y]}})}i(Xs,"initUIEventModifiers");function AO(e,{key:t,code:r,location:n,repeat:o,isComposing:s,charCode:a}){Or(e,{key:String(t),code:String(r),location:Le(n),repeat:!!o,isComposing:!!s,charCode:a})}i(AO,"initKeyboardEvent");function Dd(e,{x:t,y:r,screenX:n,screenY:o,clientX:s=t,clientY:a=r,button:c,buttons:u,relatedTarget:d,offsetX:p,offsetY:f,pageX:m,pageY:y}){Or(e,{screenX:Le(n),screenY:Le(o),clientX:Le(s),x:Le(s),clientY:Le(a),y:Le(a),button:Le(c),buttons:Le(u),relatedTarget:d,offsetX:Le(p),offsetY:Le(f),pageX:Le(m),pageY:Le(y)})}i(Dd,"initMouseEvent");function OO(e,{pointerId:t,width:r,height:n,pressure:o,tangentialPressure:s,tiltX:a,tiltY:c,twist:u,pointerType:d,isPrimary:p}){Or(e,{pointerId:Le(t),width:Le(r??1),height:Le(n??1),pressure:Le(o),tangentialPressure:Le(s),tiltX:Le(a),tiltY:Le(c),twist:Le(u),pointerType:String(d),isPrimary:!!p})}i(OO,"initPointerEvent");function CO(e,t,r,n=!1){(TO(t)||wO(t))&&(r={...r,...this.system.getUIEventModifiers()});const o=$m(t,e,r);return Jm.call(this,e,o,n)}i(CO,"dispatchUIEvent");function Jm(e,t,r=!1){var n;const o=t.type,s=r?()=>{}:(n=zr[o])===null||n===void 0?void 0:n.call(zr,t,e,this);if(s){t.preventDefault();let a=!1;return Object.defineProperty(t,"defaultPrevented",{get:i(()=>a,"get")}),Object.defineProperty(t,"preventDefault",{value:i(()=>{a=t.cancelable},"value")}),An(()=>e.dispatchEvent(t)),a||s(),!a}return An(()=>e.dispatchEvent(t))}i(Jm,"dispatchEvent");function qr(e,t,r){const n=$m(t,e,r);An(()=>e.dispatchEvent(n))}i(qr,"dispatchDOMEvent");var $g=Symbol("patched focus/blur methods");function Um(e){if(e.prototype[$g])return;const{focus:t,blur:r}=e.prototype;Object.defineProperties(e.prototype,{focus:{configurable:!0,get:i(()=>o,"get")},blur:{configurable:!0,get:i(()=>s,"get")},[$g]:{configurable:!0,get:i(()=>({focus:t,blur:r}),"get")}});let n;function o(a){if(this.ownerDocument.visibilityState!=="hidden")return t.call(this,a);const c=Ld(this.ownerDocument);if(c===this)return;const u=Symbol("focus call");n=u,c&&(r.call(c),qr(c,"blur",{relatedTarget:this}),qr(c,"focusout",{relatedTarget:n===u?this:null})),n===u&&(t.call(this,a),qr(this,"focus",{relatedTarget:c})),n===u&&qr(this,"focusin",{relatedTarget:c})}i(o,"patchedFocus");function s(){if(this.ownerDocument.visibilityState!=="hidden")return r.call(this);const a=Ld(this.ownerDocument);if(a!==this)return;n=Symbol("blur call"),r.call(this),qr(a,"blur",{relatedTarget:null}),qr(a,"focusout",{relatedTarget:null})}i(s,"patchedBlur")}i(Um,"patchFocus");function Ld(e){const t=Lo(e);return t?.tagName==="BODY"?null:t}i(Ld,"getActiveTarget");var tu=Symbol("Interceptor for programmatical calls");function pn(e,t,r){const n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=Object.getOwnPropertyDescriptor(e,t),s=n?.set?"set":"value";if(typeof n?.[s]!="function"||n[s][tu])throw new Error(`Element ${e.tagName} does not implement "${String(t)}".`);function a(...c){const{applyNative:u=!1,realArgs:d,then:p}=r.call(this,...c),f=(!u&&o||n)[s];s==="set"?f.call(this,d):f.call(this,...d),p?.()}i(a,"intercept"),a[tu]=tu,Object.defineProperty(e,t,{...o??n,[s]:a})}i(pn,"prepareInterceptor");function xO(e){pn(e,"value",i(function(r){const n=zA(r);return n&&aO(this),{applyNative:!!n,realArgs:NO(this,r),then:n?void 0:()=>lO(this,String(r))}},"interceptorImpl"))}i(xO,"prepareValueInterceptor");function NO(e,t){return ye(e,"input",{type:"number"})&&String(t)!==""&&!Number.isNaN(Number(t))?String(Number(t)):String(t)}i(NO,"sanitizeValue");function IO(e){pn(e,"setSelectionRange",i(function(r,...n){const o=WA(r);return{applyNative:!!o,realArgs:[Number(r),...n],then:i(()=>o?void 0:qi(e),"then")}},"interceptorImpl")),pn(e,"selectionStart",i(function(r){return{realArgs:r,then:i(()=>qi(e),"then")}},"interceptorImpl")),pn(e,"selectionEnd",i(function(r){return{realArgs:r,then:i(()=>qi(e),"then")}},"interceptorImpl")),pn(e,"select",i(function(){return{realArgs:[],then:i(()=>XA(e,{anchorOffset:0,focusOffset:Wt(e).length}),"then")}},"interceptorImpl"))}i(IO,"prepareSelectionInterceptor");function MO(e){pn(e,"setRangeText",i(function(...r){return{realArgs:r,then:i(()=>{mc(e),qi(e)},"then")}},"interceptorImpl"))}i(MO,"prepareRangeTextInterceptor");var ro=Symbol("Node prepared with document state workarounds");function Vm(e){e[ro]||(e.addEventListener("focus",t=>{const r=t.target;Fd(r)},{capture:!0,passive:!0}),e.activeElement&&Fd(e.activeElement),e.addEventListener("blur",t=>{const r=t.target,n=YA(r);n!==void 0&&(r.value!==n&&qr(r,"change"),qm(r))},{capture:!0,passive:!0}),e[ro]=ro)}i(Vm,"prepareDocument");function Fd(e){e[ro]||(ye(e,["input","textarea"])&&(xO(e),IO(e),MO(e)),e[ro]=ro)}i(Fd,"prepareElement");function qO(e){return jO(e)?e:e.ownerDocument}i(qO,"getDocumentFromNode");function jO(e){return e.nodeType===9}i(jO,"isDocument");var Pt=(function(e){return e[e.Trigger=2]="Trigger",e[e.Call=1]="Call",e})({});function Yn(e,t){e.levelRefs[t]={}}i(Yn,"setLevelRef");function _i(e,t){return e.levelRefs[t]}i(_i,"getLevelRef");function Cn(e){const t=e.delay;if(typeof t=="number")return Promise.all([new Promise(r=>globalThis.setTimeout(()=>r(),t)),e.advanceTimers(t)])}i(Cn,"wait");var Qs=(function(e){return e[e.EachTrigger=4]="EachTrigger",e[e.EachApiCall=2]="EachApiCall",e[e.EachTarget=1]="EachTarget",e[e.Never=0]="Never",e})({});function Nr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}i(Nr,"_define_property");var Kt=(function(e){return e[e.STANDARD=0]="STANDARD",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.NUMPAD=3]="NUMPAD",e})({}),H$=["Alt","AltGraph","Control","Fn","Meta","Shift","Symbol"];function Bd(e){return H$.includes(e)}i(Bd,"isModifierKey");var G$=["CapsLock","FnLock","NumLock","ScrollLock","SymbolLock"];function $d(e){return G$.includes(e)}i($d,"isModifierLock");var kO=class{isKeyPressed(t){return this.pressed.has(String(t.code))}getPressedKeys(){return this.pressed.values().map(t=>t.keyDef)}async keydown(t,r){const n=String(r.key),o=String(r.code),s=Ys(t.config.document);this.setKeydownTarget(s),this.pressed.add(o,r),Bd(n)&&(this.modifiers[n]=!0);const a=t.dispatchUIEvent(s,"keydown",{key:n,code:o});$d(n)&&!this.modifiers[n]&&(this.modifiers[n]=!0,this.modifierLockStart[n]=!0),a&&this.pressed.setUnprevented(o),a&&this.hasKeyPress(n)&&t.dispatchUIEvent(Ys(t.config.document),"keypress",{key:n,code:o,charCode:r.key==="Enter"?13:String(r.key).charCodeAt(0)})}async keyup(t,r){const n=String(r.key),o=String(r.code),s=this.pressed.isUnprevented(o);this.pressed.delete(o),Bd(n)&&!this.pressed.values().find(a=>a.keyDef.key===n)&&(this.modifiers[n]=!1),t.dispatchUIEvent(Ys(t.config.document),"keyup",{key:n,code:o},!s),$d(n)&&this.modifiers[n]&&(this.modifierLockStart[n]?this.modifierLockStart[n]=!1:this.modifiers[n]=!1)}setKeydownTarget(t){t!==this.lastKeydownTarget&&(this.carryChar=""),this.lastKeydownTarget=t}hasKeyPress(t){return(t.length===1||t==="Enter")&&!this.modifiers.Control&&!this.modifiers.Alt}constructor(t){Nr(this,"system",void 0),Nr(this,"modifiers",{Alt:!1,AltGraph:!1,CapsLock:!1,Control:!1,Fn:!1,FnLock:!1,Meta:!1,NumLock:!1,ScrollLock:!1,Shift:!1,Symbol:!1,SymbolLock:!1}),Nr(this,"pressed",new class{add(r,n){var o,s,a;(a=(o=this.registry)[s=r])!==null&&a!==void 0||(o[s]={keyDef:n,unpreventedDefault:!1})}has(r){return!!this.registry[r]}setUnprevented(r){const n=this.registry[r];n&&(n.unpreventedDefault=!0)}isUnprevented(r){var n;return!!(!((n=this.registry[r])===null||n===void 0)&&n.unpreventedDefault)}delete(r){delete this.registry[r]}values(){return Object.values(this.registry)}constructor(){Nr(this,"registry",{})}}),Nr(this,"carryChar",""),Nr(this,"lastKeydownTarget",void 0),Nr(this,"modifierLockStart",{}),this.system=t}};i(kO,"KeyboardHost");var z$=kO,W$=[..."0123456789".split("").map(e=>({code:`Digit${e}`,key:e})),...")!@#$%^&*(".split("").map((e,t)=>({code:`Digit${t}`,key:e,shiftKey:!0})),..."abcdefghijklmnopqrstuvwxyz".split("").map(e=>({code:`Key${e.toUpperCase()}`,key:e})),..."ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("").map(e=>({code:`Key${e}`,key:e,shiftKey:!0})),{code:"BracketLeft",key:"["},{code:"BracketLeft",key:"{",shiftKey:!0},{code:"BracketRight",key:"]"},{code:"BracketRight",key:"}",shiftKey:!0},{code:"Space",key:" "},{code:"AltLeft",key:"Alt",location:Kt.LEFT},{code:"AltRight",key:"Alt",location:Kt.RIGHT},{code:"ShiftLeft",key:"Shift",location:Kt.LEFT},{code:"ShiftRight",key:"Shift",location:Kt.RIGHT},{code:"ControlLeft",key:"Control",location:Kt.LEFT},{code:"ControlRight",key:"Control",location:Kt.RIGHT},{code:"MetaLeft",key:"Meta",location:Kt.LEFT},{code:"MetaRight",key:"Meta",location:Kt.RIGHT},{code:"OSLeft",key:"OS",location:Kt.LEFT},{code:"OSRight",key:"OS",location:Kt.RIGHT},{code:"ContextMenu",key:"ContextMenu"},{code:"Tab",key:"Tab"},{code:"CapsLock",key:"CapsLock"},{code:"Backspace",key:"Backspace"},{code:"Enter",key:"Enter"},{code:"Escape",key:"Escape"},{code:"ArrowUp",key:"ArrowUp"},{code:"ArrowDown",key:"ArrowDown"},{code:"ArrowLeft",key:"ArrowLeft"},{code:"ArrowRight",key:"ArrowRight"},{code:"Home",key:"Home"},{code:"End",key:"End"},{code:"Delete",key:"Delete"},{code:"PageUp",key:"PageUp"},{code:"PageDown",key:"PageDown"},{code:"Fn",key:"Fn"},{code:"Symbol",key:"Symbol"},{code:"AltRight",key:"AltGraph"}],K$=[{name:"MouseLeft",pointerType:"mouse",button:"primary"},{name:"MouseRight",pointerType:"mouse",button:"secondary"},{name:"MouseMiddle",pointerType:"mouse",button:"auxiliary"},{name:"TouchA",pointerType:"touch"},{name:"TouchB",pointerType:"touch"},{name:"TouchC",pointerType:"touch"}];function DO(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}i(DO,"_define_property");var LO=class{getButtons(){let t=0;for(const r of Object.keys(this.pressed))t|=2**Number(r);return t}down(t){const r=$a(t.button);if(r in this.pressed){this.pressed[r].push(t);return}return this.pressed[r]=[t],r}up(t){const r=$a(t.button);if(r in this.pressed&&(this.pressed[r]=this.pressed[r].filter(n=>n.name!==t.name),this.pressed[r].length===0))return delete this.pressed[r],r}constructor(){DO(this,"pressed",{})}};i(LO,"Buttons");var FO=LO,Jg={primary:0,secondary:1,auxiliary:2,back:3,X1:3,forward:4,X2:4};function $a(e=0){return e in Jg?Jg[e]:Number(e)}i($a,"getMouseButtonId");var Ug={1:2,2:1};function Ja(e){return e=$a(e),e in Ug?Ug[e]:e}i(Ja,"getMouseEventButton");function BO(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}i(BO,"_define_property");var $O=class{get countPressed(){return this.pressedKeys.size}isPressed(t){return this.pressedKeys.has(t.name)}addPressed(t){return this.pressedKeys.add(t.name)}removePressed(t){return this.pressedKeys.delete(t.name)}constructor(){BO(this,"pressedKeys",new Set)}};i($O,"Device");var Y$=$O;function no(e,t){const r=[];for(let s=e;s;s=s.parentElement)r.push(s);const n=[];for(let s=t;s;s=s.parentElement)n.push(s);let o=0;for(;!(o>=r.length||o>=n.length||r[r.length-1-o]!==n[n.length-1-o]);o++);return[r.slice(0,r.length-o),n.slice(0,n.length-o),n.slice(n.length-o)]}i(no,"getTreeDiff");function Ua({target:e,node:t,offset:r}){return zt(e)?{node:e,offset:r??Wt(e).length}:t?{node:t,offset:r??(t.nodeType===3?t.nodeValue.length:t.childNodes.length)}:Hm(e,r)}i(Ua,"resolveCaretPosition");function Hm(e,t,r=!0){let n=t===void 0?e.childNodes.length-1:0;const o=t===void 0?-1:1;for(;t===void 0?n>=(r?Math.max(e.childNodes.length-1,0):0):n<=e.childNodes.length;){if(t&&n===e.childNodes.length)throw new Error("The given offset is out of bounds.");const s=e.childNodes.item(n),a=String(s.textContent);if(a.length)if(t!==void 0&&a.length<t)t-=a.length;else{if(s.nodeType===1)return Hm(s,t,!1);if(s.nodeType===3)return{node:s,offset:t??s.nodeValue.length}}n+=o}return{node:e,offset:e.childNodes.length}}i(Hm,"findNodeAtTextOffset");function JO({document:e,target:t,clickCount:r,node:n,offset:o}){if(VA(t))return;const s=zt(t),a=String(s?Wt(t):t.textContent),[c,u]=n?[o,o]:UO(a,o,r);if(s)return Fn(t,{anchorOffset:c??a.length,focusOffset:u??a.length}),{node:t,start:c??0,end:u??a.length};{const{node:d,offset:p}=Ua({target:t,node:n,offset:c}),{node:f,offset:m}=Ua({target:t,node:n,offset:u}),y=t.ownerDocument.createRange();try{y.setStart(d,p),y.setEnd(f,m)}catch{throw new Error("The given offset is out of bounds.")}const g=e.getSelection();return g?.removeAllRanges(),g?.addRange(y.cloneRange()),y}}i(JO,"setSelectionPerMouseDown");function UO(e,t,r){if(r%3===1||e.length===0)return[t,t];const n=t??e.length;return r%3===2?[n-e.substr(0,t).match(/(\w+|\s+|\W)?$/)[0].length,t===void 0?t:t+e.substr(t).match(/^(\w+|\s+|\W)?/)[0].length]:[n-e.substr(0,t).match(/[^\r\n]*$/)[0].length,t===void 0?t:t+e.substr(t).match(/^[^\r\n]*/)[0].length]}i(UO,"getTextRange");function VO(e,{document:t,target:r,node:n,offset:o}){const s=Ua({target:r,node:n,offset:o});if("node"in e){if(s.node===e.node){const a=s.offset<e.start?e.end:e.start,c=s.offset>e.end||s.offset<e.start?s.offset:e.end;Fn(e.node,{anchorOffset:a,focusOffset:c})}}else{const a=e.cloneRange(),c=a.comparePoint(s.node,s.offset);c<0?a.setStart(s.node,s.offset):c>0&&a.setEnd(s.node,s.offset);const u=t.getSelection();u?.removeAllRanges(),u?.addRange(a.cloneRange())}}i(VO,"modifySelectionPerMouseMove");function Gm(e,t){var r,n,o,s,a,c,u,d,p,f,m,y,g,T,E,v,_,A,N,j,C,R,w,S;return e.target!==t.target||((r=e.coords)===null||r===void 0?void 0:r.x)!==((n=t.coords)===null||n===void 0?void 0:n.x)||((o=e.coords)===null||o===void 0?void 0:o.y)!==((s=t.coords)===null||s===void 0?void 0:s.y)||((a=e.coords)===null||a===void 0?void 0:a.clientX)!==((c=t.coords)===null||c===void 0?void 0:c.clientX)||((u=e.coords)===null||u===void 0?void 0:u.clientY)!==((d=t.coords)===null||d===void 0?void 0:d.clientY)||((p=e.coords)===null||p===void 0?void 0:p.offsetX)!==((f=t.coords)===null||f===void 0?void 0:f.offsetX)||((m=e.coords)===null||m===void 0?void 0:m.offsetY)!==((y=t.coords)===null||y===void 0?void 0:y.offsetY)||((g=e.coords)===null||g===void 0?void 0:g.pageX)!==((T=t.coords)===null||T===void 0?void 0:T.pageX)||((E=e.coords)===null||E===void 0?void 0:E.pageY)!==((v=t.coords)===null||v===void 0?void 0:v.pageY)||((_=e.coords)===null||_===void 0?void 0:_.screenX)!==((A=t.coords)===null||A===void 0?void 0:A.screenX)||((N=e.coords)===null||N===void 0?void 0:N.screenY)!==((j=t.coords)===null||j===void 0?void 0:j.screenY)||((C=e.caret)===null||C===void 0?void 0:C.node)!==((R=t.caret)===null||R===void 0?void 0:R.node)||((w=e.caret)===null||w===void 0?void 0:w.offset)!==((S=t.caret)===null||S===void 0?void 0:S.offset)}i(Gm,"isDifferentPointerPosition");function Ir(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}i(Ir,"_define_property");var HO=class{move(t,r,n){const o=this.position,s=this.getTarget(t);if(this.position=r,!Gm(o,r))return;const a=this.getTarget(t),c=this.getEventInit("mousemove"),[u,d]=no(s,a);return{leave:i(()=>{s!==a&&(t.dispatchUIEvent(s,"mouseout",c),u.forEach(p=>t.dispatchUIEvent(p,"mouseleave",c)))},"leave"),enter:i(()=>{s!==a&&(t.dispatchUIEvent(a,"mouseover",c),d.forEach(p=>t.dispatchUIEvent(p,"mouseenter",c)))},"enter"),move:i(()=>{n||(t.dispatchUIEvent(a,"mousemove",c),this.modifySelecting(t))},"move")}}down(t,r,n){const o=this.buttons.down(r);if(o===void 0)return;const s=this.getTarget(t);this.buttonDownTarget[o]=s;const a=this.getEventInit("mousedown",r.button),c=or(s);!n&&(c||t.dispatchUIEvent(s,"mousedown",a))&&(this.startSelecting(t,a.detail),Rr(s)),!c&&Ja(r.button)===2&&t.dispatchUIEvent(s,"contextmenu",this.getEventInit("contextmenu",r.button))}up(t,r,n){const o=this.buttons.up(r);if(o===void 0)return;const s=this.getTarget(t);if(!or(s)){if(!n){const c=this.getEventInit("mouseup",r.button);t.dispatchUIEvent(s,"mouseup",c),this.endSelecting()}const a=no(this.buttonDownTarget[o],s)[2][0];if(a){const c=this.getEventInit("click",r.button);c.detail&&(t.dispatchUIEvent(a,c.button===0?"click":"auxclick",c),c.button===0&&c.detail===2&&t.dispatchUIEvent(a,"dblclick",{...this.getEventInit("dblclick",r.button),detail:c.detail}))}}}resetClickCount(){this.clickCount.reset()}getEventInit(t,r){const n={...this.position.coords};return n.button=Ja(r),n.buttons=this.buttons.getButtons(),t==="mousedown"?n.detail=this.clickCount.getOnDown(n.button):t==="mouseup"?n.detail=this.clickCount.getOnUp(n.button):(t==="click"||t==="auxclick")&&(n.detail=this.clickCount.incOnClick(n.button)),n}getTarget(t){var r;return(r=this.position.target)!==null&&r!==void 0?r:t.config.document.body}startSelecting(t,r){var n,o;this.selecting=JO({document:t.config.document,target:this.getTarget(t),node:(n=this.position.caret)===null||n===void 0?void 0:n.node,offset:(o=this.position.caret)===null||o===void 0?void 0:o.offset,clickCount:r})}modifySelecting(t){var r,n;this.selecting&&VO(this.selecting,{document:t.config.document,target:this.getTarget(t),node:(r=this.position.caret)===null||r===void 0?void 0:r.node,offset:(n=this.position.caret)===null||n===void 0?void 0:n.offset})}endSelecting(){this.selecting=void 0}constructor(){Ir(this,"position",{}),Ir(this,"buttons",new FO),Ir(this,"selecting",void 0),Ir(this,"buttonDownTarget",{}),Ir(this,"clickCount",new class{incOnClick(t){const r=this.down[t]===void 0?void 0:Number(this.down[t])+1;return this.count=this.count[t]===void 0?{}:{[t]:Number(this.count[t])+1},r}getOnDown(t){var r;this.down={[t]:(r=this.count[t])!==null&&r!==void 0?r:0};var n;return this.count={[t]:(n=this.count[t])!==null&&n!==void 0?n:0},Number(this.count[t])+1}getOnUp(t){return this.down[t]===void 0?void 0:Number(this.down[t])+1}reset(){this.count={}}constructor(){Ir(this,"down",{}),Ir(this,"count",{})}})}};i(HO,"Mouse");var X$=HO;function os(e,t){var r;return((r=zm(e,t))===null||r===void 0?void 0:r.pointerEvents)!=="none"}i(os,"hasPointerEvents");function GO(e){const t=xt(e);for(let r=e,n=[];r?.ownerDocument;r=r.parentElement){n.push(r);const o=t.getComputedStyle(r).pointerEvents;if(o&&!["inherit","unset"].includes(o))return{pointerEvents:o,tree:n}}}i(GO,"closestPointerEventsDeclaration");var Vg=Symbol("Last check for pointer-events");function zm(e,t){const r=t[Vg];if(!(e.config.pointerEventsCheck!==Qs.Never&&(!r||Jd(e.config.pointerEventsCheck,Qs.EachApiCall)&&r[Pt.Call]!==_i(e,Pt.Call)||Jd(e.config.pointerEventsCheck,Qs.EachTrigger)&&r[Pt.Trigger]!==_i(e,Pt.Trigger))))return r?.result;const o=GO(t);return t[Vg]={[Pt.Call]:_i(e,Pt.Call),[Pt.Trigger]:_i(e,Pt.Trigger),result:o},o}i(zm,"checkPointerEvents");function Xn(e,t){const r=zm(e,t);if(r?.pointerEvents==="none")throw new Error([`Unable to perform pointer interaction as the element ${r.tree.length>1?"inherits":"has"} \`pointer-events: none\`:`,"",zO(r.tree)].join(`
|
|
340
|
+
`))}i(Xn,"assertPointerEvents");function zO(e){return e.reverse().map((t,r)=>["".padEnd(r),t.tagName,t.id&&`#${t.id}`,t.hasAttribute("data-testid")&&`(testId=${t.getAttribute("data-testid")})`,WO(t),e.length>1&&r===0&&" <-- This element declared `pointer-events: none`",e.length>1&&r===e.length-1&&" <-- Asserted pointer events here"].filter(Boolean).join("")).join(`
|
|
341
|
+
`)}i(zO,"printTree");function WO(e){var t;let r;if(e.hasAttribute("aria-label"))r=e.getAttribute("aria-label");else if(e.hasAttribute("aria-labelledby")){var n,o;r=(o=e.ownerDocument.getElementById(e.getAttribute("aria-labelledby")))===null||o===void 0||(n=o.textContent)===null||n===void 0?void 0:n.trim()}else if(ye(e,["button","input","meter","output","progress","select","textarea"])&&(!((t=e.labels)===null||t===void 0)&&t.length))r=Array.from(e.labels).map(a=>{var c;return(c=a.textContent)===null||c===void 0?void 0:c.trim()}).join("|");else if(ye(e,"button")){var s;r=(s=e.textContent)===null||s===void 0?void 0:s.trim()}return r=r?.replace(/\n/g," "),Number(r?.length)>30&&(r=`${r?.substring(0,29)}…`),r?`(label=${r})`:""}i(WO,"getLabelDescr");function Jd(e,t){return(e&t)>0}i(Jd,"hasBitFlag");function Qt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}i(Qt,"_define_property");var KO=class{init(t){const r=this.getTarget(t),[,n]=no(null,r),o=this.getEventInit();return Xn(t,r),t.dispatchUIEvent(r,"pointerover",o),n.forEach(s=>t.dispatchUIEvent(s,"pointerenter",o)),this}move(t,r){const n=this.position,o=this.getTarget(t);if(this.position=r,!Gm(n,r))return;const s=this.getTarget(t),a=this.getEventInit(-1),[c,u]=no(o,s);return{leave:i(()=>{os(t,o)&&o!==s&&(t.dispatchUIEvent(o,"pointerout",a),c.forEach(d=>t.dispatchUIEvent(d,"pointerleave",a)))},"leave"),enter:i(()=>{Xn(t,s),o!==s&&(t.dispatchUIEvent(s,"pointerover",a),u.forEach(d=>t.dispatchUIEvent(d,"pointerenter",a)))},"enter"),move:i(()=>{t.dispatchUIEvent(s,"pointermove",a)},"move")}}down(t,r=0){if(this.isDown)return;const n=this.getTarget(t);Xn(t,n),this.isDown=!0,this.isPrevented=!t.dispatchUIEvent(n,"pointerdown",this.getEventInit(r))}up(t,r=0){if(!this.isDown)return;const n=this.getTarget(t);Xn(t,n),this.isPrevented=!1,this.isDown=!1,t.dispatchUIEvent(n,"pointerup",this.getEventInit(r))}release(t){const r=this.getTarget(t),[n]=no(r,null),o=this.getEventInit();os(t,r)&&(t.dispatchUIEvent(r,"pointerout",o),n.forEach(s=>t.dispatchUIEvent(s,"pointerleave",o))),this.isCancelled=!0}getTarget(t){var r;return(r=this.position.target)!==null&&r!==void 0?r:t.config.document.body}getEventInit(t){return{...this.position.coords,pointerId:this.pointerId,pointerType:this.pointerType,isPrimary:this.isPrimary,button:Ja(t),buttons:this.buttons.getButtons()}}constructor({pointerId:t,pointerType:r,isPrimary:n},o){Qt(this,"pointerId",void 0),Qt(this,"pointerType",void 0),Qt(this,"isPrimary",void 0),Qt(this,"buttons",void 0),Qt(this,"isMultitouch",!1),Qt(this,"isCancelled",!1),Qt(this,"isDown",!1),Qt(this,"isPrevented",!1),Qt(this,"position",{}),this.pointerId=t,this.pointerType=r,this.isPrimary=n,this.isMultitouch=!n,this.buttons=o}};i(KO,"Pointer");var Q$=KO;function yr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}i(yr,"_define_property");var YO=class{isKeyPressed(t){return this.devices.get(t.pointerType).isPressed(t)}async press(t,r,n){this.devices.get(r.pointerType).addPressed(r),this.buttons.down(r);const o=this.getPointerName(r),s=r.pointerType==="touch"?this.pointers.new(o,r.pointerType,this.buttons):this.pointers.get(o);s.position=n,s.pointerType!=="touch"&&(this.mouse.position=n),s.pointerType==="touch"&&s.init(t),s.down(t,r.button),s.pointerType!=="touch"&&this.mouse.down(t,r,s.isPrevented)}async move(t,r,n){const o=this.pointers.get(r),s=o.move(t,n),a=o.pointerType==="touch"?void 0:this.mouse.move(t,n,o.isPrevented);s?.leave(),a?.leave(),s?.enter(),a?.enter(),s?.move(),a?.move()}async release(t,r,n){const o=this.devices.get(r.pointerType);o.removePressed(r),this.buttons.up(r);const s=this.pointers.get(this.getPointerName(r)),a=s.isPrevented;if(s.position=n,s.pointerType!=="touch"&&(this.mouse.position=n),o.countPressed===0&&s.up(t,r.button),s.pointerType==="touch"&&s.release(t),s.pointerType==="touch"&&!s.isMultitouch){const c=this.mouse.move(t,n,a);c?.leave(),c?.enter(),c?.move(),this.mouse.down(t,r,a)}if(!s.isMultitouch){const c=this.mouse.move(t,n,a);c?.leave(),c?.enter(),c?.move(),this.mouse.up(t,r,a)}}getPointerName(t){return t.pointerType==="touch"?t.name:t.pointerType}getPreviousPosition(t){return this.pointers.has(t)?this.pointers.get(t).position:void 0}resetClickCount(){this.mouse.resetClickCount()}getMouseTarget(t){var r;return(r=this.mouse.position.target)!==null&&r!==void 0?r:t.config.document.body}setMousePosition(t){this.mouse.position=t,this.pointers.get("mouse").position=t}constructor(t){yr(this,"system",void 0),yr(this,"mouse",void 0),yr(this,"buttons",void 0),yr(this,"devices",new class{get(r){var n,o,s;return(s=(n=this.registry)[o=r])!==null&&s!==void 0?s:n[o]=new Y$}constructor(){yr(this,"registry",{})}}),yr(this,"pointers",new class{new(r,n,o){const s=n!=="touch"||!Object.values(this.registry).some(a=>a.pointerType==="touch"&&!a.isCancelled);return s||Object.values(this.registry).forEach(a=>{a.pointerType===n&&!a.isCancelled&&(a.isMultitouch=!0)}),this.registry[r]=new Q$({pointerId:this.nextId++,pointerType:n,isPrimary:s},o),this.registry[r]}get(r){if(!this.has(r))throw new Error(`Trying to access pointer "${r}" which does not exist.`);return this.registry[r]}has(r){return r in this.registry}constructor(){yr(this,"registry",{}),yr(this,"nextId",1)}}),this.system=t,this.buttons=new FO,this.mouse=new X$,this.pointers.new("mouse","mouse",this.buttons)}};i(YO,"PointerHost");var Z$=YO;function Ud(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}i(Ud,"_define_property");var XO=class{getUIEventModifiers(){return{altKey:this.keyboard.modifiers.Alt,ctrlKey:this.keyboard.modifiers.Control,metaKey:this.keyboard.modifiers.Meta,shiftKey:this.keyboard.modifiers.Shift,modifierAltGraph:this.keyboard.modifiers.AltGraph,modifierCapsLock:this.keyboard.modifiers.CapsLock,modifierFn:this.keyboard.modifiers.Fn,modifierFnLock:this.keyboard.modifiers.FnLock,modifierNumLock:this.keyboard.modifiers.NumLock,modifierScrollLock:this.keyboard.modifiers.ScrollLock,modifierSymbol:this.keyboard.modifiers.Symbol,modifierSymbolLock:this.keyboard.modifiers.SymbolLock}}constructor(){Ud(this,"keyboard",new z$(this)),Ud(this,"pointer",new Z$(this))}};i(XO,"System");var QO=XO;async function ZO(e){const t=[];return this.config.skipHover||t.push({target:e}),t.push({keys:"[MouseLeft]",target:e}),this.pointer(t)}i(ZO,"click");async function eC(e){return this.pointer([{target:e},"[MouseLeft][MouseLeft]"])}i(eC,"dblClick");async function tC(e){return this.pointer([{target:e},"[MouseLeft][MouseLeft][MouseLeft]"])}i(tC,"tripleClick");async function rC(e){return this.pointer({target:e})}i(rC,"hover");async function nC(e){return Xn(this,this.system.pointer.getMouseTarget(this)),this.pointer({target:e.ownerDocument.body})}i(nC,"unhover");async function oC({shift:e}={}){return this.keyboard(e===!0?"{Shift>}{Tab}{/Shift}":e===!1?"[/ShiftLeft][/ShiftRight]{Tab}":"{Tab}")}i(oC,"tab");var Wm=(function(e){return e["{"]="}",e["["]="]",e})(Wm||{});function Km(e,t){let r=0;const n=e[r]in Wm?e[r]:"";r+=n.length;const s=new RegExp(`^\\${n}{2}`).test(e)?"":n;return{type:s,...s===""?iC(e,r,t):sC(e,r,s,t)}}i(Km,"readNextDescriptor");function iC(e,t,r){const n=e[t];return Ym(n,e,t,r),t+=n.length,{consumedLength:t,descriptor:n,releasePrevious:!1,releaseSelf:!0,repeat:1}}i(iC,"readPrintableChar");function sC(e,t,r,n){var o,s;const a=e[t]==="/"?"/":"";t+=a.length;const c=r==="{"&&e[t]==="\\";t+=Number(c);const u=c?e[t]:(o=e.slice(t).match(r==="{"?/^\w+|^[^}>/]/:/^\w+/))===null||o===void 0?void 0:o[0];Ym(u,e,t,n),t+=u.length;var d;const p=(d=(s=e.slice(t).match(/^>\d+/))===null||s===void 0?void 0:s[0])!==null&&d!==void 0?d:"";t+=p.length;const f=e[t]==="/"||!p&&e[t]===">"?e[t]:"";t+=f.length;const m=Wm[r],y=e[t]===m?m:"";if(!y)throw new Error(Xm([!p&&"repeat modifier",!f&&"release modifier",`"${m}"`].filter(Boolean).join(" or "),e[t],e,n));return t+=y.length,{consumedLength:t,descriptor:u,releasePrevious:!!a,repeat:p?Math.max(Number(p.substr(1)),1):1,releaseSelf:aC(f,p)}}i(sC,"readTag");function Ym(e,t,r,n){if(!e)throw new Error(Xm("key descriptor",t[r],t,n))}i(Ym,"assertDescriptor");function aC(e,t){if(e)return e==="/";if(t)return!1}i(aC,"hasReleaseSelf");function Xm(e,t,r,n){return`Expected ${e} but found "${t??""}" in "${r}"
|
|
342
|
+
See ${n==="pointer"?"https://testing-library.com/docs/user-event/pointer#pressing-a-button-or-touching-the-screen":"https://testing-library.com/docs/user-event/keyboard"}
|
|
343
|
+
for more information about how userEvent parses your input.`}i(Xm,"getErrorMessage");function lC(e,t){const r=[];do{const{type:o,descriptor:s,consumedLength:a,releasePrevious:c,releaseSelf:u=!0,repeat:d}=Km(t,"keyboard");var n;const p=(n=e.find(f=>{if(o==="["){var m;return((m=f.code)===null||m===void 0?void 0:m.toLowerCase())===s.toLowerCase()}else if(o==="{"){var y;return((y=f.key)===null||y===void 0?void 0:y.toLowerCase())===s.toLowerCase()}return f.key===s}))!==null&&n!==void 0?n:{key:"Unknown",code:"Unknown",[o==="["?"code":"key"]:s};r.push({keyDef:p,releasePrevious:c,releaseSelf:u,repeat:d}),t=t.slice(a)}while(t);return r}i(lC,"parseKeyDef");async function cC(e){const t=lC(this.config.keyboardMap,e);for(let r=0;r<t.length;r++)await Cn(this.config),await uC(this,t[r])}i(cC,"keyboard");async function uC(e,{keyDef:t,releasePrevious:r,releaseSelf:n,repeat:o}){const{system:s}=e;if(s.keyboard.isKeyPressed(t)&&await s.keyboard.keyup(e,t),!r){for(let a=1;a<=o;a++)await s.keyboard.keydown(e,t),a<o&&await Cn(e.config);n&&await s.keyboard.keyup(e,t)}}i(uC,"keyboardAction");async function dC(e){for(const t of e.system.keyboard.getPressedKeys())await e.system.keyboard.keyup(e,t)}i(dC,"releaseAllKeys");function Qm(e){const t=zt(e)?{"text/plain":pC(e)}:{"text/plain":String(e.ownerDocument.getSelection())},r=pc(xt(e));for(const n in t)t[n]&&r.setData(n,t[n]);return r}i(Qm,"copySelection");function pC(e){const t=_o(e);return Wt(e).substring(t.startOffset,t.endOffset)}i(pC,"readSelectedValueFromInput");async function fC(){const e=this.config.document;var t;const r=(t=e.activeElement)!==null&&t!==void 0?t:e.body,n=Qm(r);if(n.items.length!==0)return this.dispatchUIEvent(r,"copy",{clipboardData:n})&&this.config.writeToClipboard&&await xm(e,n),n}i(fC,"copy");async function hC(){const e=this.config.document;var t;const r=(t=e.activeElement)!==null&&t!==void 0?t:e.body,n=Qm(r);if(n.items.length!==0)return this.dispatchUIEvent(r,"cut",{clipboardData:n})&&this.config.writeToClipboard&&await xm(r.ownerDocument,n),n}i(hC,"cut");async function mC(e){const t=this.config.document;var r;const n=(r=t.activeElement)!==null&&r!==void 0?r:t.body;var o;const s=(o=typeof e=="string"?yC(t,e):e)!==null&&o!==void 0?o:await DA(t).catch(()=>{throw new Error("`userEvent.paste()` without `clipboardData` requires the `ClipboardAPI` to be available.")});this.dispatchUIEvent(n,"paste",{clipboardData:s})}i(mC,"paste");function yC(e,t){const r=pc(xt(e));return r.setData("text",t),r}i(yC,"getClipboardDataFromString");function Vd(e,t){const r=[];do{const{descriptor:n,consumedLength:o,releasePrevious:s,releaseSelf:a=!0}=Km(t,"pointer"),c=e.find(u=>u.name===n);c&&r.push({keyDef:c,releasePrevious:s,releaseSelf:a}),t=t.slice(o)}while(t);return r}i(Vd,"parseKeyDef");async function gC(e){const{pointerMap:t}=this.config,r=[];(Array.isArray(e)?e:[e]).forEach(n=>{typeof n=="string"?r.push(...Vd(t,n)):"keys"in n?r.push(...Vd(t,n.keys).map(o=>({...n,...o}))):r.push(n)});for(let n=0;n<r.length;n++)await Cn(this.config),await bC(this,r[n]);this.system.pointer.resetClickCount()}i(gC,"pointer");async function bC(e,t){var r,n;const o="pointerName"in t&&t.pointerName?t.pointerName:"keyDef"in t?e.system.pointer.getPointerName(t.keyDef):"mouse",s=e.system.pointer.getPreviousPosition(o);var a,c,u,d;const p={target:(a=t.target)!==null&&a!==void 0?a:vC(e,s),coords:(c=t.coords)!==null&&c!==void 0?c:s?.coords,caret:{node:(u=t.node)!==null&&u!==void 0?u:Hd(t)||s==null||(r=s.caret)===null||r===void 0?void 0:r.node,offset:(d=t.offset)!==null&&d!==void 0?d:Hd(t)||s==null||(n=s.caret)===null||n===void 0?void 0:n.offset}};"keyDef"in t?(e.system.pointer.isKeyPressed(t.keyDef)&&(Yn(e,Pt.Trigger),await e.system.pointer.release(e,t.keyDef,p)),t.releasePrevious||(Yn(e,Pt.Trigger),await e.system.pointer.press(e,t.keyDef,p),t.releaseSelf&&(Yn(e,Pt.Trigger),await e.system.pointer.release(e,t.keyDef,p)))):(Yn(e,Pt.Trigger),await e.system.pointer.move(e,o,p))}i(bC,"pointerAction");function Hd(e){var t,r;return!!((r=(t=e.target)!==null&&t!==void 0?t:e.node)!==null&&r!==void 0?r:e.offset!==void 0)}i(Hd,"hasCaretPosition");function vC(e,t){if(!t)throw new Error("This pointer has no previous position. Provide a target property!");var r;return(r=t.target)!==null&&r!==void 0?r:e.config.document.body}i(vC,"getPrevTarget");async function EC(e){if(!Pn(e)||or(e))throw new Error("clear()` is only supported on editable elements.");if(Rr(e),e.ownerDocument.activeElement!==e)throw new Error("The element to be cleared could not be focused.");if(Fm(e),!vO(e))throw new Error("The element content to be cleared could not be selected.");On(this,e,"","deleteContentBackward")}i(EC,"clear");async function TC(e,t){return Zm.call(this,!0,e,t)}i(TC,"selectOptions");async function wC(e,t){return Zm.call(this,!1,e,t)}i(wC,"deselectOptions");async function Zm(e,t,r){if(!e&&!t.multiple)throw Te().getElementError("Unable to deselect an option in a non-multiple select. Use selectOptions to change the selection instead.",t);const n=Array.isArray(r)?r:[r],o=Array.from(t.querySelectorAll('option, [role="option"]')),s=n.map(c=>{if(typeof c!="string"&&o.includes(c))return c;{const u=o.find(d=>d.value===c||d.innerHTML===c);if(u)return u;throw Te().getElementError(`Value "${String(c)}" not found in options`,t)}}).filter(c=>!or(c));if(or(t)||!s.length)return;const a=i(c=>{c.selected=e,this.dispatchUIEvent(t,"input",{bubbles:!0,cancelable:!1,composed:!0}),this.dispatchUIEvent(t,"change")},"selectOption");if(ye(t,"select"))if(t.multiple)for(const c of s){const u=this.config.pointerEventsCheck===0?!0:os(this,c);u&&(this.dispatchUIEvent(c,"pointerover"),this.dispatchUIEvent(t,"pointerenter"),this.dispatchUIEvent(c,"mouseover"),this.dispatchUIEvent(t,"mouseenter"),this.dispatchUIEvent(c,"pointermove"),this.dispatchUIEvent(c,"mousemove"),this.dispatchUIEvent(c,"pointerdown"),this.dispatchUIEvent(c,"mousedown")),Rr(t),u&&(this.dispatchUIEvent(c,"pointerup"),this.dispatchUIEvent(c,"mouseup")),a(c),u&&this.dispatchUIEvent(c,"click"),await Cn(this.config)}else if(s.length===1){const c=this.config.pointerEventsCheck===0?!0:os(this,t);c?await this.click(t):Rr(t),a(s[0]),c&&(this.dispatchUIEvent(t,"pointerover"),this.dispatchUIEvent(t,"pointerenter"),this.dispatchUIEvent(t,"mouseover"),this.dispatchUIEvent(t,"mouseenter"),this.dispatchUIEvent(t,"pointerup"),this.dispatchUIEvent(t,"mouseup"),this.dispatchUIEvent(t,"click")),await Cn(this.config)}else throw Te().getElementError("Cannot select multiple options on a non-multiple select",t);else if(t.getAttribute("role")==="listbox")for(const c of s)await this.click(c),await this.unhover(c);else throw Te().getElementError("Cannot select options on elements that are neither select nor listbox elements",t)}i(Zm,"selectOptionsBase");async function _C(e,t,{skipClick:r=this.config.skipClick,skipAutoClose:n=this.config.skipAutoClose,initialSelectionStart:o,initialSelectionEnd:s}={}){e.disabled||(r||await this.click(e),o!==void 0&&Kn(e,o,s??o),await this.keyboard(t),n||await dC(this))}i(_C,"type");var Hg=Symbol("files and value properties are mocked");function Zs(e,t,r){r?Object.defineProperty(e,t,r):delete e[t]}i(Zs,"restoreProperty");function SC(e,t){var r;(r=e[Hg])===null||r===void 0||r.restore();const n=Object.getOwnPropertyDescriptor(e,"type"),o=Object.getOwnPropertyDescriptor(e,"value"),s=Object.getOwnPropertyDescriptor(e,"files");function a(){Zs(e,"type",n),Zs(e,"value",o),Zs(e,"files",s)}i(a,"restore"),e[Hg]={restore:a},Object.defineProperties(e,{files:{configurable:!0,get:i(()=>t,"get")},value:{configurable:!0,get:i(()=>t.length?`C:\\fakepath\\${t[0].name}`:"","get"),set(c){if(c==="")a();else{var u;o==null||(u=o.set)===null||u===void 0||u.call(e,c)}}},type:{configurable:!0,get:i(()=>"file","get"),set(c){c!=="file"&&(a(),e.type=c)}}})}i(SC,"setFiles");async function RC(e,t){const r=ye(e,"label")?e.control:e;if(!r||!ye(r,"input",{type:"file"}))throw new TypeError(`The ${r===e?"given":"associated"} ${r?.tagName} element does not accept file uploads`);if(or(e))return;const n=(Array.isArray(t)?t:[t]).filter(s=>!this.config.applyAccept||PC(s,r.accept)).slice(0,r.multiple?void 0:1),o=i(()=>{var s;n.length===((s=r.files)===null||s===void 0?void 0:s.length)&&n.every((a,c)=>{var u;return a===((u=r.files)===null||u===void 0?void 0:u.item(c))})||(SC(r,dc(xt(e),n)),this.dispatchUIEvent(r,"input"),this.dispatchUIEvent(r,"change"))},"fileDialog");r.addEventListener("fileDialog",o),await this.click(e),r.removeEventListener("fileDialog",o)}i(RC,"upload");function Si(e){return e.toLowerCase().replace(/(\.|\/)jpg\b/g,"$1jpeg")}i(Si,"normalize");function PC(e,t){if(!t)return!0;const r=["audio/*","image/*","video/*"];return Si(t).trim().split(/\s*,\s*/).some(n=>n.startsWith(".")?Si(e.name).endsWith(n):r.includes(n)?Si(e.type).startsWith(n.replace("*","")):Si(e.type)===n)}i(PC,"isAcceptableFile");var Gg={click:ZO,dblClick:eC,tripleClick:tC,hover:rC,unhover:nC,tab:oC,keyboard:cC,copy:fC,cut:hC,paste:mC,pointer:gC,clear:EC,deselectOptions:wC,selectOptions:TC,type:_C,upload:RC};function AC(e){return Te().asyncWrapper(e)}i(AC,"wrapAsync");var OC={applyAccept:!0,autoModify:!0,delay:0,document:globalThis.document,keyboardMap:W$,pointerMap:K$,pointerEventsCheck:Qs.EachApiCall,skipAutoClose:!1,skipClick:!1,skipHover:!1,writeToClipboard:!1,advanceTimers:i(()=>Promise.resolve(),"advanceTimers")},eJ={...OC,writeToClipboard:!0};function ey(e={},t=eJ,r){const n=IC(e,r,t);return{...t,...e,document:n}}i(ey,"createConfig");function CC(e={}){const t=ey(e);Vm(t.document),Um(xt(t.document).HTMLElement);var r;const n=(r=t.document.defaultView)!==null&&r!==void 0?r:globalThis.window;return qA(n),gc(t).api}i(CC,"setupMain");function ut({keyboardState:e,pointerState:t,...r}={},n){const o=ey(r,OC,n);Vm(o.document),Um(xt(o.document).HTMLElement);var s;const a=(s=t??e)!==null&&s!==void 0?s:new QO;return{api:gc(o,a).api,system:a}}i(ut,"setupDirect");function xC(e){return gc({...this.config,...e},this.system).api}i(xC,"setupSub");function NC(e,t){function r(...n){return Yn(e,Pt.Call),AC(()=>t.apply(e,n).then(async o=>(await Cn(e.config),o)))}return i(r,"method"),Object.defineProperty(r,"name",{get:i(()=>t.name,"get")}),r}i(NC,"wrapAndBindImpl");function gc(e,t=new QO){const r={};return Object.assign(r,{config:e,dispatchEvent:Jm.bind(r),dispatchUIEvent:CO.bind(r),system:t,levelRefs:{},...Gg}),{instance:r,api:{...Object.fromEntries(Object.entries(Gg).map(([n,o])=>[n,NC(r,o)])),setup:xC.bind(r)}}}i(gc,"createInstance");function IC(e,t,r){var n,o;return(o=(n=e.document)!==null&&n!==void 0?n:t&&qO(t))!==null&&o!==void 0?o:r.document}i(IC,"getDocument");var MC={};Et(MC,{clear:()=>qC,click:()=>jC,copy:()=>kC,cut:()=>DC,dblClick:()=>LC,deselectOptions:()=>FC,hover:()=>BC,keyboard:()=>$C,paste:()=>UC,pointer:()=>JC,selectOptions:()=>VC,tab:()=>KC,tripleClick:()=>HC,type:()=>GC,unhover:()=>zC,upload:()=>WC});function qC(e){return ut().api.clear(e)}i(qC,"clear");function jC(e,t={}){return ut(t,e).api.click(e)}i(jC,"click");function kC(e={}){return ut(e).api.copy()}i(kC,"copy");function DC(e={}){return ut(e).api.cut()}i(DC,"cut");function LC(e,t={}){return ut(t).api.dblClick(e)}i(LC,"dblClick");function FC(e,t,r={}){return ut(r).api.deselectOptions(e,t)}i(FC,"deselectOptions");function BC(e,t={}){return ut(t).api.hover(e)}i(BC,"hover");async function $C(e,t={}){const{api:r,system:n}=ut(t);return r.keyboard(e).then(()=>n)}i($C,"keyboard");async function JC(e,t={}){const{api:r,system:n}=ut(t);return r.pointer(e).then(()=>n)}i(JC,"pointer");function UC(e,t){return ut(t).api.paste(e)}i(UC,"paste");function VC(e,t,r={}){return ut(r).api.selectOptions(e,t)}i(VC,"selectOptions");function HC(e,t={}){return ut(t).api.tripleClick(e)}i(HC,"tripleClick");function GC(e,t,r={}){return ut(r,e).api.type(e,t,r)}i(GC,"type");function zC(e,t={}){const{api:r,system:n}=ut(t);return n.pointer.setMousePosition({target:e}),r.unhover(e)}i(zC,"unhover");function WC(e,t,r={}){return ut(r).api.upload(e,t)}i(WC,"upload");function KC(e={}){return ut().api.tab(e)}i(KC,"tab");var YC={...MC,setup:CC},Gd=Co({...aR},{getKeys:i(e=>Object.keys(e).filter(t=>t!=="eventWrapper"),"getKeys"),intercept:i((e,t)=>t[0]==="fireEvent"||e.startsWith("find")||e.startsWith("waitFor"),"intercept")});Gd.screen=new Proxy(Gd.screen,{get(e,t,r){return typeof window<"u"&&globalThis.location?.href?.includes("viewMode=docs")&&Ue.warn(ve`
|
|
344
|
+
You are using Testing Library's \`screen\` object while the story is rendered in docs mode. This will likely lead to issues, as multiple stories are rendered in the same page and therefore screen will potentially find multiple elements. Use the \`canvas\` utility from the story context instead, which will scope the queries to each story's canvas.
|
|
345
|
+
|
|
346
|
+
More info: https://storybook.js.org/docs/writing-tests/interaction-testing?ref=error#querying-the-canvas
|
|
347
|
+
`),Reflect.get(e,t,r)}});var{buildQueries:tJ,configure:rJ,createEvent:nJ,fireEvent:oJ,findAllByAltText:iJ,findAllByDisplayValue:sJ,findAllByLabelText:aJ,findAllByPlaceholderText:lJ,findAllByRole:cJ,findAllByTestId:uJ,findAllByText:dJ,findAllByTitle:pJ,findByAltText:fJ,findByDisplayValue:hJ,findByLabelText:mJ,findByPlaceholderText:yJ,findByRole:gJ,findByTestId:bJ,findByText:vJ,findByTitle:EJ,getAllByAltText:TJ,getAllByDisplayValue:wJ,getAllByLabelText:_J,getAllByPlaceholderText:SJ,getAllByRole:RJ,getAllByTestId:PJ,getAllByText:AJ,getAllByTitle:OJ,getByAltText:CJ,getByDisplayValue:xJ,getByLabelText:NJ,getByPlaceholderText:IJ,getByRole:MJ,getByTestId:qJ,getByText:jJ,getByTitle:kJ,getConfig:DJ,getDefaultNormalizer:LJ,getElementError:FJ,getNodeText:BJ,getQueriesForElement:$J,getRoles:JJ,getSuggestedQuery:UJ,isInaccessible:VJ,logDOM:HJ,logRoles:GJ,prettyDOM:zJ,queries:WJ,queryAllByAltText:KJ,queryAllByAttribute:YJ,queryAllByDisplayValue:XJ,queryAllByLabelText:QJ,queryAllByPlaceholderText:ZJ,queryAllByRole:eU,queryAllByTestId:tU,queryAllByText:rU,queryAllByTitle:nU,queryByAltText:oU,queryByAttribute:iU,queryByDisplayValue:sU,queryByLabelText:aU,queryByPlaceholderText:lU,queryByRole:cU,queryByTestId:uU,queryByText:dU,queryByTitle:pU,queryHelpers:fU,screen:hU,waitFor:mU,waitForElementToBeRemoved:yU,within:XC,prettyFormat:gU}=Gd,QC=YC,{userEvent:bU}=Co({userEvent:YC},{intercept:!0,getKeys:i(e=>Object.keys(e).filter(t=>t!=="eventWrapper"),"getKeys")}),{expect:vU}=Co({expect:oR},{getKeys:i((e,t)=>{if("constructor"in e&&e.constructor===q){const r=["assert","__methods","__flags","_obj"],n=Object.keys(Object.getPrototypeOf(e)).filter(o=>!r.includes(o));return t>2?n:[...n,"not"]}return"any"in e?Object.keys(e).filter(r=>r!=="any"):Object.keys(e)},"getKeys"),mutate:!0,intercept:i(e=>e!=="expect","intercept")}),EU={mock:i(()=>{},"mock")},zg=!1,TU=i(e=>{const{parameters:t}=e;t?.actions?.disable||zg||(Xh((r,n)=>{const o=r.getMockName();o!=="spy"&&o!=="vi.fn()"&&(!/^next\/.*::/.test(o)||["next/router::useRouter()","next/navigation::useRouter()","next/navigation::redirect","next/cache::","next/headers::cookies().set","next/headers::cookies().delete","next/headers::headers().set","next/headers::headers().delete"].some(s=>o.startsWith(s)))&&Fo(o)(n)}),zg=!0)},"logActionsWhenMockCalled"),wU=[TU],Wg=i(()=>({...$T,...UT}),"default"),Va="backgrounds",_U={light:{name:"light",value:"#F8F8F8"},dark:{name:"dark",value:"#333"}},{document:Vt}=globalThis,SU=i(()=>globalThis?.matchMedia?!!globalThis.matchMedia("(prefers-reduced-motion: reduce)")?.matches:!1,"isReduceMotionEnabled"),Kg=i(e=>{(Array.isArray(e)?e:[e]).forEach(RU)},"clearStyles"),RU=i(e=>{if(!Vt)return;const t=Vt.getElementById(e);t&&t.parentElement&&t.parentElement.removeChild(t)},"clearStyle"),PU=i((e,t)=>{if(!Vt)return;const r=Vt.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{const n=Vt.createElement("style");n.setAttribute("id",e),n.innerHTML=t,Vt.head.appendChild(n)}},"addGridStyle"),AU=i((e,t,r)=>{if(!Vt)return;const n=Vt.getElementById(e);if(n)n.innerHTML!==t&&(n.innerHTML=t);else{const o=Vt.createElement("style");o.setAttribute("id",e),o.innerHTML=t;const s=`addon-backgrounds-grid${r?`-docs-${r}`:""}`,a=Vt.getElementById(s);a?a.parentElement?.insertBefore(o,a):Vt.head.appendChild(o)}},"addBackgroundStyle"),OU={cellSize:100,cellAmount:10,opacity:.8},Yg="addon-backgrounds",Xg="addon-backgrounds-grid",CU=SU()?"":"transition: background-color 0.3s;",xU=i((e,t)=>{const{globals:r={},parameters:n={},viewMode:o,id:s}=t,{options:a=_U,disable:c,grid:u=OU}=n[Va]||{},d=r[Va]||{},p=typeof d=="string"?d:d?.value,f=p?a[p]:void 0,m=typeof f=="string"?f:f?.value||"transparent",y=typeof d=="string"?!1:d.grid||!1,g=!!f&&!c,T=o==="docs"?`#anchor--${s} .docs-story`:".sb-show-main",E=o==="docs"?`#anchor--${s} .docs-story`:".sb-show-main",v=n.layout===void 0||n.layout==="padded",_=o==="docs"?20:v?16:0,{cellAmount:A,cellSize:N,opacity:j,offsetX:C=_,offsetY:R=_}=u,w=o==="docs"?`${Yg}-docs-${s}`:`${Yg}-color`,S=o==="docs"?s:null;Vr(()=>{const I=`
|
|
348
|
+
${T} {
|
|
349
|
+
background: ${m} !important;
|
|
350
|
+
${CU}
|
|
351
|
+
}`;if(!g){Kg(w);return}AU(w,I,S)},[T,w,S,g,m]);const k=o==="docs"?`${Xg}-docs-${s}`:`${Xg}`;return Vr(()=>{if(!y){Kg(k);return}const I=[`${N*A}px ${N*A}px`,`${N*A}px ${N*A}px`,`${N}px ${N}px`,`${N}px ${N}px`].join(", "),V=`
|
|
352
|
+
${E} {
|
|
353
|
+
background-size: ${I} !important;
|
|
354
|
+
background-position: ${C}px ${R}px, ${C}px ${R}px, ${C}px ${R}px, ${C}px ${R}px !important;
|
|
355
|
+
background-blend-mode: difference !important;
|
|
356
|
+
background-image: linear-gradient(rgba(130, 130, 130, ${j}) 1px, transparent 1px),
|
|
357
|
+
linear-gradient(90deg, rgba(130, 130, 130, ${j}) 1px, transparent 1px),
|
|
358
|
+
linear-gradient(rgba(130, 130, 130, ${j/2}) 1px, transparent 1px),
|
|
359
|
+
linear-gradient(90deg, rgba(130, 130, 130, ${j/2}) 1px, transparent 1px) !important;
|
|
360
|
+
}
|
|
361
|
+
`;PU(k,V)},[A,N,E,k,y,C,R,j]),e()},"withBackgroundAndGrid"),NU=globalThis.FEATURES?.backgrounds?[xU]:[],IU={[Va]:{grid:{cellSize:20,opacity:.5,cellAmount:5},disable:!1}},MU={[Va]:{value:void 0,grid:!1}},Qg=i(()=>({decorators:NU,parameters:IU,initialGlobals:MU}),"default"),{step:qU}=Co({step:i(async(e,t,r)=>t(r),"step")},{intercept:!0}),Zg=i(()=>({parameters:{throwPlayFunctionExceptions:!1},runStep:qU}),"default"),bc="storybook/highlight",jU=`${bc}/add`,kU=`${bc}/remove`,DU=`${bc}/reset`,LU=`${bc}/scroll-into-view`,eb=2147483647,jr=28,tb={chevronLeft:["M9.10355 10.1464C9.29882 10.3417 9.29882 10.6583 9.10355 10.8536C8.90829 11.0488 8.59171 11.0488 8.39645 10.8536L4.89645 7.35355C4.70118 7.15829 4.70118 6.84171 4.89645 6.64645L8.39645 3.14645C8.59171 2.95118 8.90829 2.95118 9.10355 3.14645C9.29882 3.34171 9.29882 3.65829 9.10355 3.85355L5.95711 7L9.10355 10.1464Z"],chevronRight:["M4.89645 10.1464C4.70118 10.3417 4.70118 10.6583 4.89645 10.8536C5.09171 11.0488 5.40829 11.0488 5.60355 10.8536L9.10355 7.35355C9.29882 7.15829 9.29882 6.84171 9.10355 6.64645L5.60355 3.14645C5.40829 2.95118 5.09171 2.95118 4.89645 3.14645C4.70118 3.34171 4.70118 3.65829 4.89645 3.85355L8.04289 7L4.89645 10.1464Z"],info:["M7 5.5a.5.5 0 01.5.5v4a.5.5 0 01-1 0V6a.5.5 0 01.5-.5zM7 4.5A.75.75 0 107 3a.75.75 0 000 1.5z","M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z"],shareAlt:["M2 1.004a1 1 0 00-1 1v10a1 1 0 001 1h10a1 1 0 001-1v-4.5a.5.5 0 00-1 0v4.5H2v-10h4.5a.5.5 0 000-1H2z","M7.354 7.357L12 2.711v1.793a.5.5 0 001 0v-3a.5.5 0 00-.5-.5h-3a.5.5 0 100 1h1.793L6.646 6.65a.5.5 0 10.708.707z"]},FU="svg,path,rect,circle,line,polyline,polygon,ellipse,text".split(","),Ze=i((e,t={},r)=>{const n=FU.includes(e)?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return Object.entries(t).forEach(([o,s])=>{/[A-Z]/.test(o)?(o==="onClick"&&(n.addEventListener("click",s),n.addEventListener("keydown",a=>{(a.key==="Enter"||a.key===" ")&&(a.preventDefault(),s())})),o==="onMouseEnter"&&n.addEventListener("mouseenter",s),o==="onMouseLeave"&&n.addEventListener("mouseleave",s)):n.setAttribute(o,s)}),r?.forEach(o=>{if(!(o==null||o===!1))try{n.appendChild(o)}catch{n.appendChild(document.createTextNode(String(o)))}}),n},"createElement"),ks=i(e=>tb[e]&&Ze("svg",{width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},tb[e].map(t=>Ze("path",{fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd",d:t}))),"createIcon"),BU=i(e=>{if("elements"in e){const{elements:n,color:o,style:s}=e;return{id:void 0,priority:0,selectors:n,styles:{outline:`2px ${s} ${o}`,outlineOffset:"2px",boxShadow:"0 0 0 6px rgba(255,255,255,0.6)"},menu:void 0}}const{menu:t,...r}=e;return{id:void 0,priority:0,styles:{outline:"2px dashed #029cfd"},...r,menu:Array.isArray(t)?t.every(Array.isArray)?t:[t]:void 0}},"normalizeOptions"),$U=i(e=>e instanceof Function,"isFunction"),mi=new Map,sn=new Map,Ds=new Map,fr=i(e=>{const t=Symbol();return sn.set(t,[]),mi.set(t,e),{get:i(()=>mi.get(t),"get"),set:i(a=>{const c=mi.get(t),u=$U(a)?a(c):a;u!==c&&(mi.set(t,u),sn.get(t)?.forEach(d=>{Ds.get(d)?.(),Ds.set(d,d(u))}))},"set"),subscribe:i(a=>(sn.get(t)?.push(a),()=>{const c=sn.get(t);c&&sn.set(t,c.filter(u=>u!==a))}),"subscribe"),teardown:i(()=>{sn.get(t)?.forEach(a=>{Ds.get(a)?.(),Ds.delete(a)}),sn.delete(t),mi.delete(t)},"teardown")}},"useStore"),rb=i(e=>{const t=document.getElementById("storybook-root"),r=new Map;for(const n of e){const{priority:o=0}=n;for(const s of n.selectors){const a=[...document.querySelectorAll(`:is(${s}):not([id^="storybook-"], [id^="storybook-"] *, [class^="sb-"], [class^="sb-"] *)`),...t?.querySelectorAll(s)||[]];for(const c of a){const u=r.get(c);(!u||u.priority<=o)&&r.set(c,{...n,priority:o,selectors:Array.from(new Set((u?.selectors||[]).concat(s)))})}}}return r},"mapElements"),JU=i(e=>Array.from(e.entries()).map(([t,{selectors:r,styles:n,hoverStyles:o,focusStyles:s,menu:a}])=>{const{top:c,left:u,width:d,height:p}=t.getBoundingClientRect(),{position:f}=getComputedStyle(t);return{element:t,selectors:r,styles:n,hoverStyles:o,focusStyles:s,menu:a,top:f==="fixed"?c:c+window.scrollY,left:f==="fixed"?u:u+window.scrollX,width:d,height:p}}).sort((t,r)=>r.width*r.height-t.width*t.height),"mapBoxes"),nb=i((e,t)=>{const r=e.getBoundingClientRect(),{x:n,y:o}=t;return r?.top&&r?.left&&n>=r.left&&n<=r.left+r.width&&o>=r.top&&o<=r.top+r.height},"isOverMenu"),ob=i((e,t,r)=>{if(!t||!r)return!1;let{left:n,top:o,width:s,height:a}=e;a<jr&&(o=o-Math.round((jr-a)/2),a=jr),s<jr&&(n=n-Math.round((jr-s)/2),s=jr),t.style.position==="fixed"&&(n+=window.scrollX,o+=window.scrollY);const{x:c,y:u}=r;return c>=n&&c<=n+s&&u>=o&&u<=o+a},"isTargeted"),UU=i((e,t,r={})=>{const{x:n,y:o}=t,{margin:s=5,topOffset:a=0,centered:c=!1}=r,{scrollX:u,scrollY:d,innerHeight:p,innerWidth:f}=window,m=Math.min(e.style.position==="fixed"?o-d:o,p-e.clientHeight-s-a+d),y=c?e.clientWidth/2:0,g=e.style.position==="fixed"?Math.max(Math.min(n-u,f-y-s),y+s):Math.max(Math.min(n,f-y-s+u),y+s+u);Object.assign(e.style,{...g!==n&&{left:`${g}px`},...m!==o&&{top:`${m}px`}})},"keepInViewport"),ib=i(e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.showPopover()},"showPopover"),VU=i(e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.hidePopover()},"hidePopover"),HU=i(e=>({top:e.top,left:e.left,width:e.width,height:e.height,selectors:e.selectors,element:{attributes:Object.fromEntries(Array.from(e.element.attributes).map(t=>[t.name,t.value])),localName:e.element.localName,tagName:e.element.tagName,outerHTML:e.element.outerHTML}}),"getEventDetails"),qe="storybook-highlights-menu",sb="storybook-highlights-root",GU="storybook-root",zU=i(e=>{if(globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED)return;globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED=!0;const{document:t}=globalThis,r=fr([]),n=fr(new Map),o=fr([]),s=fr(),a=fr(),c=fr([]),u=fr([]),d=fr(),p=fr();let f=t.getElementById(sb);r.subscribe(()=>{f||(f=Ze("div",{id:sb}),t.body.appendChild(f))}),r.subscribe(R=>{const w=t.getElementById(GU);if(!w)return;n.set(rb(R));const S=new MutationObserver(()=>n.set(rb(R)));return S.observe(w,{subtree:!0,childList:!0}),()=>{S.disconnect()}}),n.subscribe(R=>{const w=i(()=>requestAnimationFrame(()=>o.set(JU(R))),"updateBoxes"),S=new ResizeObserver(w);S.observe(t.body),Array.from(R.keys()).forEach(I=>S.observe(I));const k=Array.from(t.body.querySelectorAll("*")).filter(I=>{const{overflow:V,overflowX:H,overflowY:P}=window.getComputedStyle(I);return["auto","scroll"].some(L=>[V,H,P].includes(L))});return k.forEach(I=>I.addEventListener("scroll",w)),()=>{S.disconnect(),k.forEach(I=>I.removeEventListener("scroll",w))}}),n.subscribe(R=>{const w=Array.from(R.keys()).filter(({style:k})=>k.position==="sticky"),S=i(()=>requestAnimationFrame(()=>{o.set(k=>k.map(I=>{if(w.includes(I.element)){const{top:V,left:H}=I.element.getBoundingClientRect();return{...I,top:V+window.scrollY,left:H+window.scrollX}}return I}))}),"updateBoxes");return t.addEventListener("scroll",S),()=>t.removeEventListener("scroll",S)}),n.subscribe(R=>{c.set(w=>w.filter(({element:S})=>R.has(S)))}),c.subscribe(R=>{R.length?(p.set(w=>R.some(S=>S.element===w?.element)?w:void 0),d.set(w=>R.some(S=>S.element===w?.element)?w:void 0)):(p.set(void 0),d.set(void 0),s.set(void 0))});const m=new Map(new Map);r.subscribe(R=>{R.forEach(({keyframes:w})=>{if(w){let S=m.get(w);S||(S=t.createElement("style"),S.setAttribute("data-highlight","keyframes"),m.set(w,S),t.head.appendChild(S)),S.innerHTML=w}}),m.forEach((w,S)=>{R.some(k=>k.keyframes===S)||(w.remove(),m.delete(S))})});const y=new Map(new Map);o.subscribe(R=>{R.forEach(w=>{let S=y.get(w.element);if(f&&!S){const k={popover:"manual","data-highlight-dimensions":`w${w.width.toFixed(0)}h${w.height.toFixed(0)}`,"data-highlight-coordinates":`x${w.left.toFixed(0)}y${w.top.toFixed(0)}`};S=f.appendChild(Ze("div",k,[Ze("div")])),y.set(w.element,S)}}),y.forEach((w,S)=>{R.some(({element:k})=>k===S)||(w.remove(),y.delete(S))})}),o.subscribe(R=>{const w=R.filter(k=>k.menu);if(!w.length)return;const S=i(k=>{requestAnimationFrame(()=>{const I=t.getElementById(qe),V={x:k.pageX,y:k.pageY};if(I&&!nb(I,V)){const H=w.filter(P=>{const L=y.get(P.element);return ob(P,L,V)});s.set(H.length?V:void 0),c.set(H)}})},"onClick");return t.addEventListener("click",S),()=>t.removeEventListener("click",S)});const g=i(()=>{const R=t.getElementById(qe),w=a.get();!w||R&&nb(R,w)||u.set(S=>{const k=o.get().filter(P=>{const L=y.get(P.element);return ob(P,L,w)}),I=S.filter(P=>k.includes(P)),V=k.filter(P=>!S.includes(P)),H=S.length-I.length;return V.length||H?[...I,...V]:S})},"updateHovered");a.subscribe(g),o.subscribe(g);const T=i(()=>{const R=p.get(),w=R?[R]:c.get(),S=w.length===1?w[0]:d.get(),k=s.get()!==void 0;o.get().forEach(I=>{const V=y.get(I.element);if(V){const H=S===I,P=k?S?H:w.includes(I):u.get()?.includes(I);Object.assign(V.style,{animation:"none",background:"transparent",border:"none",boxSizing:"border-box",outline:"none",outlineOffset:"0px",...I.styles,...P?I.hoverStyles:{},...H?I.focusStyles:{},position:getComputedStyle(I.element).position==="fixed"?"fixed":"absolute",zIndex:eb-10,top:`${I.top}px`,left:`${I.left}px`,width:`${I.width}px`,height:`${I.height}px`,margin:0,padding:0,cursor:I.menu&&P?"pointer":"default",pointerEvents:I.menu?"auto":"none",display:"flex",alignItems:"center",justifyContent:"center",overflow:"visible"}),Object.assign(V.children[0].style,{width:"100%",height:"100%",minHeight:`${jr}px`,minWidth:`${jr}px`,boxSizing:"content-box",padding:V.style.outlineWidth||"0px"}),ib(V)}})},"updateBoxStyles");o.subscribe(T),c.subscribe(T),u.subscribe(T),d.subscribe(T),p.subscribe(T);const E=i(()=>{if(!f)return;let R=t.getElementById(qe);if(R)R.innerHTML="";else{const I={id:qe,popover:"manual"};R=f.appendChild(Ze("div",I)),f.appendChild(Ze("style",{},[`
|
|
362
|
+
#${qe} {
|
|
363
|
+
position: absolute;
|
|
364
|
+
z-index: ${eb};
|
|
365
|
+
width: 300px;
|
|
366
|
+
padding: 0px;
|
|
367
|
+
margin: 15px 0 0 0;
|
|
368
|
+
transform: translateX(-50%);
|
|
369
|
+
font-family: "Nunito Sans", -apple-system, ".SFNSText-Regular", "San Francisco", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
370
|
+
font-size: 12px;
|
|
371
|
+
background: white;
|
|
372
|
+
border: none;
|
|
373
|
+
border-radius: 6px;
|
|
374
|
+
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.05), 0 5px 15px 0 rgba(0, 0, 0, 0.1);
|
|
375
|
+
color: #2E3438;
|
|
376
|
+
}
|
|
377
|
+
#${qe} ul {
|
|
378
|
+
list-style: none;
|
|
379
|
+
margin: 0;
|
|
380
|
+
padding: 0;
|
|
381
|
+
}
|
|
382
|
+
#${qe} > ul {
|
|
383
|
+
max-height: 300px;
|
|
384
|
+
overflow-y: auto;
|
|
385
|
+
padding: 4px 0;
|
|
386
|
+
}
|
|
387
|
+
#${qe} li {
|
|
388
|
+
padding: 0 4px;
|
|
389
|
+
margin: 0;
|
|
390
|
+
}
|
|
391
|
+
#${qe} li > :not(ul) {
|
|
392
|
+
display: flex;
|
|
393
|
+
padding: 8px;
|
|
394
|
+
margin: 0;
|
|
395
|
+
align-items: center;
|
|
396
|
+
gap: 8px;
|
|
397
|
+
border-radius: 4px;
|
|
398
|
+
}
|
|
399
|
+
#${qe} button {
|
|
400
|
+
width: 100%;
|
|
401
|
+
border: 0;
|
|
402
|
+
background: transparent;
|
|
403
|
+
color: inherit;
|
|
404
|
+
text-align: left;
|
|
405
|
+
font-family: inherit;
|
|
406
|
+
font-size: inherit;
|
|
407
|
+
}
|
|
408
|
+
#${qe} button:focus-visible {
|
|
409
|
+
outline-color: #029CFD;
|
|
410
|
+
}
|
|
411
|
+
#${qe} button:hover {
|
|
412
|
+
background: rgba(2, 156, 253, 0.07);
|
|
413
|
+
color: #029CFD;
|
|
414
|
+
cursor: pointer;
|
|
415
|
+
}
|
|
416
|
+
#${qe} li code {
|
|
417
|
+
white-space: nowrap;
|
|
418
|
+
overflow: hidden;
|
|
419
|
+
text-overflow: ellipsis;
|
|
420
|
+
line-height: 16px;
|
|
421
|
+
font-size: 11px;
|
|
422
|
+
}
|
|
423
|
+
#${qe} li svg {
|
|
424
|
+
flex-shrink: 0;
|
|
425
|
+
margin: 1px;
|
|
426
|
+
color: #73828C;
|
|
427
|
+
}
|
|
428
|
+
#${qe} li > button:hover svg, #${qe} li > button:focus-visible svg {
|
|
429
|
+
color: #029CFD;
|
|
430
|
+
}
|
|
431
|
+
#${qe} .element-list li svg {
|
|
432
|
+
display: none;
|
|
433
|
+
}
|
|
434
|
+
#${qe} li.selectable svg, #${qe} li.selected svg {
|
|
435
|
+
display: block;
|
|
436
|
+
}
|
|
437
|
+
#${qe} .menu-list {
|
|
438
|
+
border-top: 1px solid rgba(38, 85, 115, 0.15);
|
|
439
|
+
}
|
|
440
|
+
#${qe} .menu-list > li:not(:last-child) {
|
|
441
|
+
padding-bottom: 4px;
|
|
442
|
+
margin-bottom: 4px;
|
|
443
|
+
border-bottom: 1px solid rgba(38, 85, 115, 0.15);
|
|
444
|
+
}
|
|
445
|
+
#${qe} .menu-items, #${qe} .menu-items li {
|
|
446
|
+
padding: 0;
|
|
447
|
+
}
|
|
448
|
+
#${qe} .menu-item {
|
|
449
|
+
display: flex;
|
|
450
|
+
}
|
|
451
|
+
#${qe} .menu-item-content {
|
|
452
|
+
display: flex;
|
|
453
|
+
flex-direction: column;
|
|
454
|
+
flex-grow: 1;
|
|
455
|
+
}
|
|
456
|
+
`]))}const w=p.get(),S=w?[w]:c.get();if(S.length&&(R.style.position=getComputedStyle(S[0].element).position==="fixed"?"fixed":"absolute",R.appendChild(Ze("ul",{class:"element-list"},S.map(I=>{const V=S.length>1&&!!I.menu?.some(L=>L.some(B=>!B.selectors||B.selectors.some(D=>I.selectors.includes(D)))),H=V?{class:"selectable",onClick:i(()=>p.set(I),"onClick"),onMouseEnter:i(()=>d.set(I),"onMouseEnter"),onMouseLeave:i(()=>d.set(void 0),"onMouseLeave")}:w?{class:"selected",onClick:i(()=>p.set(void 0),"onClick")}:{},P=V||w;return Ze("li",H,[Ze(P?"button":"div",P?{type:"button"}:{},[w?ks("chevronLeft"):null,Ze("code",{},[I.element.outerHTML]),V?ks("chevronRight"):null])])})))),p.get()||c.get().length===1){const I=p.get()||c.get()[0],V=I.menu?.filter(H=>H.some(P=>!P.selectors||P.selectors.some(L=>I.selectors.includes(L))));V?.length&&R.appendChild(Ze("ul",{class:"menu-list"},V.map(H=>Ze("li",{},[Ze("ul",{class:"menu-items"},H.map(({id:P,title:L,description:B,iconLeft:D,iconRight:K,clickEvent:X})=>{const ie=X&&(()=>e.emit(X,P,HU(I)));return Ze("li",{},[Ze(ie?"button":"div",ie?{class:"menu-item",type:"button",onClick:ie}:{class:"menu-item"},[D?ks(D):null,Ze("div",{class:"menu-item-content"},[Ze(B?"strong":"span",{},[L]),B&&Ze("span",{},[B])]),K?ks(K):null])])}))]))))}const k=s.get();k?(Object.assign(R.style,{display:"block",left:`${R.style.position==="fixed"?k.x-window.scrollX:k.x}px`,top:`${R.style.position==="fixed"?k.y-window.scrollY:k.y}px`}),ib(R),requestAnimationFrame(()=>UU(R,k,{topOffset:15,centered:!0}))):(VU(R),Object.assign(R.style,{display:"none"}))},"renderMenu");c.subscribe(E),p.subscribe(E);const v=i(R=>{const w=BU(R);r.set(S=>{const k=w.id?S.filter(I=>I.id!==w.id):S;return w.selectors?.length?[...k,w]:k})},"addHighlight"),_=i(R=>{R&&r.set(w=>w.filter(S=>S.id!==R))},"removeHighlight"),A=i(()=>{r.set([]),n.set(new Map),o.set([]),s.set(void 0),a.set(void 0),c.set([]),u.set([]),d.set(void 0),p.set(void 0)},"resetState");let N;const j=i((R,w)=>{const S="scrollIntoView-highlight";clearTimeout(N),_(S);const k=t.querySelector(R);if(!k){console.warn(`Cannot scroll into view: ${R} not found`);return}k.scrollIntoView({behavior:"smooth",block:"center",...w});const I=`kf-${Math.random().toString(36).substring(2,15)}`;r.set(V=>[...V,{id:S,priority:1e3,selectors:[R],styles:{outline:"2px solid #1EA7FD",outlineOffset:"-1px",animation:`${I} 3s linear forwards`},keyframes:`@keyframes ${I} {
|
|
457
|
+
0% { outline: 2px solid #1EA7FD; }
|
|
458
|
+
20% { outline: 2px solid #1EA7FD00; }
|
|
459
|
+
40% { outline: 2px solid #1EA7FD; }
|
|
460
|
+
60% { outline: 2px solid #1EA7FD00; }
|
|
461
|
+
80% { outline: 2px solid #1EA7FD; }
|
|
462
|
+
100% { outline: 2px solid #1EA7FD00; }
|
|
463
|
+
}`}]),N=setTimeout(()=>_(S),3500)},"scrollIntoView"),C=i(R=>{requestAnimationFrame(()=>a.set({x:R.pageX,y:R.pageY}))},"onMouseMove");t.body.addEventListener("mousemove",C),e.on(jU,v),e.on(kU,_),e.on(DU,A),e.on(LU,j),e.on(Tn,({newPhase:R})=>{R==="loading"&&A()})},"useHighlights");globalThis?.FEATURES?.highlight&&Dt?.ready&&Dt.ready().then(zU);var ab=i(()=>({}),"default"),WU="measureEnabled";function ty(){const e=te.document.documentElement,t=Math.max(e.scrollHeight,e.offsetHeight);return{width:Math.max(e.scrollWidth,e.offsetWidth),height:t}}i(ty,"getDocumentWidthAndHeight");function ZC(){const e=te.document.createElement("canvas");e.id="storybook-addon-measure";const t=e.getContext("2d");rr(t!=null);const{width:r,height:n}=ty();return Ha(e,t,{width:r,height:n}),e.style.position="absolute",e.style.left="0",e.style.top="0",e.style.zIndex="2147483647",e.style.pointerEvents="none",te.document.body.appendChild(e),{canvas:e,context:t,width:r,height:n}}i(ZC,"createCanvas");function Ha(e,t,{width:r,height:n}){e.style.width=`${r}px`,e.style.height=`${n}px`;const o=te.window.devicePixelRatio;e.width=Math.floor(r*o),e.height=Math.floor(n*o),t.scale(o,o)}i(Ha,"setCanvasWidthAndHeight");var et={};function ex(){et.canvas||(et=ZC())}i(ex,"init");function ry(){et.context&&et.context.clearRect(0,0,et.width??0,et.height??0)}i(ry,"clear");function tx(e){ry(),e(et.context)}i(tx,"draw");function rx(){rr(et.canvas),rr(et.context),Ha(et.canvas,et.context,{width:0,height:0});const{width:e,height:t}=ty();Ha(et.canvas,et.context,{width:e,height:t}),et.width=e,et.height=t}i(rx,"rescale");function nx(){et.canvas&&(ry(),et.canvas.parentNode?.removeChild(et.canvas),et={})}i(nx,"destroy");var Jn={margin:"#f6b26b",border:"#ffe599",padding:"#93c47d",content:"#6fa8dc",text:"#232020"},wr=6;function zd(e,{x:t,y:r,w:n,h:o,r:s}){t=t-n/2,r=r-o/2,n<2*s&&(s=n/2),o<2*s&&(s=o/2),e.beginPath(),e.moveTo(t+s,r),e.arcTo(t+n,r,t+n,r+o,s),e.arcTo(t+n,r+o,t,r+o,s),e.arcTo(t,r+o,t,r,s),e.arcTo(t,r,t+n,r,s),e.closePath()}i(zd,"roundedRect");function ox(e,{padding:t,border:r,width:n,height:o,top:s,left:a}){const c=n-r.left-r.right-t.left-t.right,u=o-t.top-t.bottom-r.top-r.bottom;let d=a+r.left+t.left,p=s+r.top+t.top;return e==="top"?d+=c/2:e==="right"?(d+=c,p+=u/2):e==="bottom"?(d+=c/2,p+=u):e==="left"?p+=u/2:e==="center"&&(d+=c/2,p+=u/2),{x:d,y:p}}i(ox,"positionCoordinate");function ix(e,t,{margin:r,border:n,padding:o},s,a){let c=i(m=>0,"shift"),u=0,d=0;const p=a?1:.5,f=a?s*2:0;return e==="padding"?c=i(m=>o[m]*p+f,"shift"):e==="border"?c=i(m=>o[m]+n[m]*p+f,"shift"):e==="margin"&&(c=i(m=>o[m]+n[m]+r[m]*p+f,"shift")),t==="top"?d=-c("top"):t==="right"?u=c("right"):t==="bottom"?d=c("bottom"):t==="left"&&(u=-c("left")),{offsetX:u,offsetY:d}}i(ix,"offset");function sx(e,t){return Math.abs(e.x-t.x)<Math.abs(e.w+t.w)/2&&Math.abs(e.y-t.y)<Math.abs(e.h+t.h)/2}i(sx,"collide");function ax(e,t,r){return e==="top"?t.y=r.y-r.h-wr:e==="right"?t.x=r.x+r.w/2+wr+t.w/2:e==="bottom"?t.y=r.y+r.h+wr:e==="left"&&(t.x=r.x-r.w/2-wr-t.w/2),{x:t.x,y:t.y}}i(ax,"overlapAdjustment");function ny(e,t,{x:r,y:n,w:o,h:s},a){return zd(e,{x:r,y:n,w:o,h:s,r:3}),e.fillStyle=`${Jn[t]}dd`,e.fill(),e.strokeStyle=Jn[t],e.stroke(),e.fillStyle=Jn.text,e.fillText(a,r,n),zd(e,{x:r,y:n,w:o,h:s,r:3}),e.fillStyle=`${Jn[t]}dd`,e.fill(),e.strokeStyle=Jn[t],e.stroke(),e.fillStyle=Jn.text,e.fillText(a,r,n),{x:r,y:n,w:o,h:s}}i(ny,"textWithRect");function oy(e,t){e.font="600 12px monospace",e.textBaseline="middle",e.textAlign="center";const r=e.measureText(t),n=r.actualBoundingBoxAscent+r.actualBoundingBoxDescent,o=r.width+wr*2,s=n+wr*2;return{w:o,h:s}}i(oy,"configureText");function lx(e,t,{type:r,position:n="center",text:o},s,a=!1){let{x:c,y:u}=ox(n,t);const{offsetX:d,offsetY:p}=ix(r,n,t,wr+1,a);c+=d,u+=p;const{w:f,h:m}=oy(e,o);if(s&&sx({x:c,y:u,w:f,h:m},s)){const y=ax(n,{x:c,y:u,w:f},s);c=y.x,u=y.y}return ny(e,r,{x:c,y:u,w:f,h:m},o)}i(lx,"drawLabel");function cx(e,{w:t,h:r}){const n=t*.5+wr,o=r*.5+wr;return{offsetX:(e.x==="left"?-1:1)*n,offsetY:(e.y==="top"?-1:1)*o}}i(cx,"floatingOffset");function ux(e,t,{type:r,text:n}){const{floatingAlignment:o,extremities:s}=t;let a=s[o.x],c=s[o.y];const{w:u,h:d}=oy(e,n),{offsetX:p,offsetY:f}=cx(o,{w:u,h:d});return a+=p,c+=f,ny(e,r,{x:a,y:c,w:u,h:d},n)}i(ux,"drawFloatingLabel");function Hn(e,t,r,n){const o=[];r.forEach((s,a)=>{const c=n&&s.position==="center"?ux(e,t,s):lx(e,t,s,o[a-1],n);o[a]=c})}i(Hn,"drawStack");function dx(e,t,r,n){const o=r.reduce((s,a)=>(Object.prototype.hasOwnProperty.call(s,a.position)||(s[a.position]=[]),s[a.position]?.push(a),s),{});o.top&&Hn(e,t,o.top,n),o.right&&Hn(e,t,o.right,n),o.bottom&&Hn(e,t,o.bottom,n),o.left&&Hn(e,t,o.left,n),o.center&&Hn(e,t,o.center,n)}i(dx,"labelStacks");var vc={margin:"#f6b26ba8",border:"#ffe599a8",padding:"#93c47d8c",content:"#6fa8dca8"},lb=30;function _t(e){return parseInt(e.replace("px",""),10)}i(_t,"pxToNumber");function fn(e){return Number.isInteger(e)?e:e.toFixed(2)}i(fn,"round");function Ec(e){return e.filter(t=>t.text!==0&&t.text!=="0")}i(Ec,"filterZeroValues");function px(e){const t={top:te.window.scrollY,bottom:te.window.scrollY+te.window.innerHeight,left:te.window.scrollX,right:te.window.scrollX+te.window.innerWidth},r={top:Math.abs(t.top-e.top),bottom:Math.abs(t.bottom-e.bottom),left:Math.abs(t.left-e.left),right:Math.abs(t.right-e.right)};return{x:r.left>r.right?"left":"right",y:r.top>r.bottom?"top":"bottom"}}i(px,"floatingAlignment");function fx(e){const t=te.getComputedStyle(e);let{top:r,left:n,right:o,bottom:s,width:a,height:c}=e.getBoundingClientRect();const{marginTop:u,marginBottom:d,marginLeft:p,marginRight:f,paddingTop:m,paddingBottom:y,paddingLeft:g,paddingRight:T,borderBottomWidth:E,borderTopWidth:v,borderLeftWidth:_,borderRightWidth:A}=t;r=r+te.window.scrollY,n=n+te.window.scrollX,s=s+te.window.scrollY,o=o+te.window.scrollX;const N={top:_t(u),bottom:_t(d),left:_t(p),right:_t(f)},j={top:_t(m),bottom:_t(y),left:_t(g),right:_t(T)},C={top:_t(v),bottom:_t(E),left:_t(_),right:_t(A)},R={top:r-N.top,bottom:s+N.bottom,left:n-N.left,right:o+N.right};return{margin:N,padding:j,border:C,top:r,left:n,bottom:s,right:o,width:a,height:c,extremities:R,floatingAlignment:px(R)}}i(fx,"measureElement");function hx(e,{margin:t,width:r,height:n,top:o,left:s,bottom:a,right:c}){const u=n+t.bottom+t.top;e.fillStyle=vc.margin,e.fillRect(s,o-t.top,r,t.top),e.fillRect(c,o-t.top,t.right,u),e.fillRect(s,a,r,t.bottom),e.fillRect(s-t.left,o-t.top,t.left,u);const d=[{type:"margin",text:fn(t.top),position:"top"},{type:"margin",text:fn(t.right),position:"right"},{type:"margin",text:fn(t.bottom),position:"bottom"},{type:"margin",text:fn(t.left),position:"left"}];return Ec(d)}i(hx,"drawMargin");function mx(e,{padding:t,border:r,width:n,height:o,top:s,left:a,bottom:c,right:u}){const d=n-r.left-r.right,p=o-t.top-t.bottom-r.top-r.bottom;e.fillStyle=vc.padding,e.fillRect(a+r.left,s+r.top,d,t.top),e.fillRect(u-t.right-r.right,s+t.top+r.top,t.right,p),e.fillRect(a+r.left,c-t.bottom-r.bottom,d,t.bottom),e.fillRect(a+r.left,s+t.top+r.top,t.left,p);const f=[{type:"padding",text:t.top,position:"top"},{type:"padding",text:t.right,position:"right"},{type:"padding",text:t.bottom,position:"bottom"},{type:"padding",text:t.left,position:"left"}];return Ec(f)}i(mx,"drawPadding");function yx(e,{border:t,width:r,height:n,top:o,left:s,bottom:a,right:c}){const u=n-t.top-t.bottom;e.fillStyle=vc.border,e.fillRect(s,o,r,t.top),e.fillRect(s,a-t.bottom,r,t.bottom),e.fillRect(s,o+t.top,t.left,u),e.fillRect(c-t.right,o+t.top,t.right,u);const d=[{type:"border",text:t.top,position:"top"},{type:"border",text:t.right,position:"right"},{type:"border",text:t.bottom,position:"bottom"},{type:"border",text:t.left,position:"left"}];return Ec(d)}i(yx,"drawBorder");function gx(e,{padding:t,border:r,width:n,height:o,top:s,left:a}){const c=n-r.left-r.right-t.left-t.right,u=o-t.top-t.bottom-r.top-r.bottom;return e.fillStyle=vc.content,e.fillRect(a+r.left+t.left,s+r.top+t.top,c,u),[{type:"content",position:"center",text:`${fn(c)} x ${fn(u)}`}]}i(gx,"drawContent");function bx(e){return t=>{if(e&&t){const r=fx(e),n=hx(t,r),o=mx(t,r),s=yx(t,r),a=gx(t,r),c=r.width<=lb*3||r.height<=lb;dx(t,r,[...a,...o,...s,...n],c)}}}i(bx,"drawBoxModel");function vx(e){tx(bx(e))}i(vx,"drawSelectedElement");var KU=i((e,t)=>{const r=te.document.elementFromPoint(e,t),n=i(s=>{if(s&&s.shadowRoot){const a=s.shadowRoot.elementFromPoint(e,t);return s.isEqualNode(a)?s:a.shadowRoot?n(a):a}return s},"crawlShadows");return n(r)||r},"deepElementFromPoint"),cb,Ls={x:0,y:0};function Wd(e,t){cb=KU(e,t),vx(cb)}i(Wd,"findAndDrawElement");var YU=i((e,t)=>{const{measureEnabled:r}=t.globals||{};return Vr(()=>{if(typeof globalThis.document>"u")return;const n=i(o=>{window.requestAnimationFrame(()=>{o.stopPropagation(),Ls.x=o.clientX,Ls.y=o.clientY})},"onPointerMove");return globalThis.document.addEventListener("pointermove",n),()=>{globalThis.document.removeEventListener("pointermove",n)}},[]),Vr(()=>{const n=i(s=>{window.requestAnimationFrame(()=>{s.stopPropagation(),Wd(s.clientX,s.clientY)})},"onPointerOver"),o=i(()=>{window.requestAnimationFrame(()=>{rx()})},"onResize");return t.viewMode==="story"&&r&&(globalThis.document.addEventListener("pointerover",n),ex(),globalThis.window.addEventListener("resize",o),Wd(Ls.x,Ls.y)),()=>{globalThis.window.removeEventListener("resize",o),nx()}},[r,t.viewMode]),e()},"withMeasure"),XU=globalThis.FEATURES?.measure?[YU]:[],QU={[WU]:!1},ub=i(()=>({decorators:XU,initialGlobals:QU}),"default"),Ex="outline",db=i(e=>{(Array.isArray(e)?e:[e]).forEach(ZU)},"clearStyles"),ZU=i(e=>{const t=typeof e=="string"?e:e.join(""),r=te.document.getElementById(t);r&&r.parentElement&&r.parentElement.removeChild(r)},"clearStyle"),eV=i((e,t)=>{const r=te.document.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{const n=te.document.createElement("style");n.setAttribute("id",e),n.innerHTML=t,te.document.head.appendChild(n)}},"addOutlineStyles");function Tx(e){return ve`
|
|
464
|
+
${e} body {
|
|
465
|
+
outline: 1px solid #2980b9 !important;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
${e} article {
|
|
469
|
+
outline: 1px solid #3498db !important;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
${e} nav {
|
|
473
|
+
outline: 1px solid #0088c3 !important;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
${e} aside {
|
|
477
|
+
outline: 1px solid #33a0ce !important;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
${e} section {
|
|
481
|
+
outline: 1px solid #66b8da !important;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
${e} header {
|
|
485
|
+
outline: 1px solid #99cfe7 !important;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
${e} footer {
|
|
489
|
+
outline: 1px solid #cce7f3 !important;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
${e} h1 {
|
|
493
|
+
outline: 1px solid #162544 !important;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
${e} h2 {
|
|
497
|
+
outline: 1px solid #314e6e !important;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
${e} h3 {
|
|
501
|
+
outline: 1px solid #3e5e85 !important;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
${e} h4 {
|
|
505
|
+
outline: 1px solid #449baf !important;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
${e} h5 {
|
|
509
|
+
outline: 1px solid #c7d1cb !important;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
${e} h6 {
|
|
513
|
+
outline: 1px solid #4371d0 !important;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
${e} main {
|
|
517
|
+
outline: 1px solid #2f4f90 !important;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
${e} address {
|
|
521
|
+
outline: 1px solid #1a2c51 !important;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
${e} div {
|
|
525
|
+
outline: 1px solid #036cdb !important;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
${e} p {
|
|
529
|
+
outline: 1px solid #ac050b !important;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
${e} hr {
|
|
533
|
+
outline: 1px solid #ff063f !important;
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
${e} pre {
|
|
537
|
+
outline: 1px solid #850440 !important;
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
${e} blockquote {
|
|
541
|
+
outline: 1px solid #f1b8e7 !important;
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
${e} ol {
|
|
545
|
+
outline: 1px solid #ff050c !important;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
${e} ul {
|
|
549
|
+
outline: 1px solid #d90416 !important;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
${e} li {
|
|
553
|
+
outline: 1px solid #d90416 !important;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
${e} dl {
|
|
557
|
+
outline: 1px solid #fd3427 !important;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
${e} dt {
|
|
561
|
+
outline: 1px solid #ff0043 !important;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
${e} dd {
|
|
565
|
+
outline: 1px solid #e80174 !important;
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
${e} figure {
|
|
569
|
+
outline: 1px solid #ff00bb !important;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
${e} figcaption {
|
|
573
|
+
outline: 1px solid #bf0032 !important;
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
${e} table {
|
|
577
|
+
outline: 1px solid #00cc99 !important;
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
${e} caption {
|
|
581
|
+
outline: 1px solid #37ffc4 !important;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
${e} thead {
|
|
585
|
+
outline: 1px solid #98daca !important;
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
${e} tbody {
|
|
589
|
+
outline: 1px solid #64a7a0 !important;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
${e} tfoot {
|
|
593
|
+
outline: 1px solid #22746b !important;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
${e} tr {
|
|
597
|
+
outline: 1px solid #86c0b2 !important;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
${e} th {
|
|
601
|
+
outline: 1px solid #a1e7d6 !important;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
${e} td {
|
|
605
|
+
outline: 1px solid #3f5a54 !important;
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
${e} col {
|
|
609
|
+
outline: 1px solid #6c9a8f !important;
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
${e} colgroup {
|
|
613
|
+
outline: 1px solid #6c9a9d !important;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
${e} button {
|
|
617
|
+
outline: 1px solid #da8301 !important;
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
${e} datalist {
|
|
621
|
+
outline: 1px solid #c06000 !important;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
${e} fieldset {
|
|
625
|
+
outline: 1px solid #d95100 !important;
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
${e} form {
|
|
629
|
+
outline: 1px solid #d23600 !important;
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
${e} input {
|
|
633
|
+
outline: 1px solid #fca600 !important;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
${e} keygen {
|
|
637
|
+
outline: 1px solid #b31e00 !important;
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
${e} label {
|
|
641
|
+
outline: 1px solid #ee8900 !important;
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
${e} legend {
|
|
645
|
+
outline: 1px solid #de6d00 !important;
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
${e} meter {
|
|
649
|
+
outline: 1px solid #e8630c !important;
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
${e} optgroup {
|
|
653
|
+
outline: 1px solid #b33600 !important;
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
${e} option {
|
|
657
|
+
outline: 1px solid #ff8a00 !important;
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
${e} output {
|
|
661
|
+
outline: 1px solid #ff9619 !important;
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
${e} progress {
|
|
665
|
+
outline: 1px solid #e57c00 !important;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
${e} select {
|
|
669
|
+
outline: 1px solid #e26e0f !important;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
${e} textarea {
|
|
673
|
+
outline: 1px solid #cc5400 !important;
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
${e} details {
|
|
677
|
+
outline: 1px solid #33848f !important;
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
${e} summary {
|
|
681
|
+
outline: 1px solid #60a1a6 !important;
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
${e} command {
|
|
685
|
+
outline: 1px solid #438da1 !important;
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
${e} menu {
|
|
689
|
+
outline: 1px solid #449da6 !important;
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
${e} del {
|
|
693
|
+
outline: 1px solid #bf0000 !important;
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
${e} ins {
|
|
697
|
+
outline: 1px solid #400000 !important;
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
${e} img {
|
|
701
|
+
outline: 1px solid #22746b !important;
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
${e} iframe {
|
|
705
|
+
outline: 1px solid #64a7a0 !important;
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
${e} embed {
|
|
709
|
+
outline: 1px solid #98daca !important;
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
${e} object {
|
|
713
|
+
outline: 1px solid #00cc99 !important;
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
${e} param {
|
|
717
|
+
outline: 1px solid #37ffc4 !important;
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
${e} video {
|
|
721
|
+
outline: 1px solid #6ee866 !important;
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
${e} audio {
|
|
725
|
+
outline: 1px solid #027353 !important;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
${e} source {
|
|
729
|
+
outline: 1px solid #012426 !important;
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
${e} canvas {
|
|
733
|
+
outline: 1px solid #a2f570 !important;
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
${e} track {
|
|
737
|
+
outline: 1px solid #59a600 !important;
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
${e} map {
|
|
741
|
+
outline: 1px solid #7be500 !important;
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
${e} area {
|
|
745
|
+
outline: 1px solid #305900 !important;
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
${e} a {
|
|
749
|
+
outline: 1px solid #ff62ab !important;
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
${e} em {
|
|
753
|
+
outline: 1px solid #800b41 !important;
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
${e} strong {
|
|
757
|
+
outline: 1px solid #ff1583 !important;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
${e} i {
|
|
761
|
+
outline: 1px solid #803156 !important;
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
${e} b {
|
|
765
|
+
outline: 1px solid #cc1169 !important;
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
${e} u {
|
|
769
|
+
outline: 1px solid #ff0430 !important;
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
${e} s {
|
|
773
|
+
outline: 1px solid #f805e3 !important;
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
${e} small {
|
|
777
|
+
outline: 1px solid #d107b2 !important;
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
${e} abbr {
|
|
781
|
+
outline: 1px solid #4a0263 !important;
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
${e} q {
|
|
785
|
+
outline: 1px solid #240018 !important;
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
${e} cite {
|
|
789
|
+
outline: 1px solid #64003c !important;
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
${e} dfn {
|
|
793
|
+
outline: 1px solid #b4005a !important;
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
${e} sub {
|
|
797
|
+
outline: 1px solid #dba0c8 !important;
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
${e} sup {
|
|
801
|
+
outline: 1px solid #cc0256 !important;
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
${e} time {
|
|
805
|
+
outline: 1px solid #d6606d !important;
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
${e} code {
|
|
809
|
+
outline: 1px solid #e04251 !important;
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
${e} kbd {
|
|
813
|
+
outline: 1px solid #5e001f !important;
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
${e} samp {
|
|
817
|
+
outline: 1px solid #9c0033 !important;
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
${e} var {
|
|
821
|
+
outline: 1px solid #d90047 !important;
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
${e} mark {
|
|
825
|
+
outline: 1px solid #ff0053 !important;
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
${e} bdi {
|
|
829
|
+
outline: 1px solid #bf3668 !important;
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
${e} bdo {
|
|
833
|
+
outline: 1px solid #6f1400 !important;
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
${e} ruby {
|
|
837
|
+
outline: 1px solid #ff7b93 !important;
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
${e} rt {
|
|
841
|
+
outline: 1px solid #ff2f54 !important;
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
${e} rp {
|
|
845
|
+
outline: 1px solid #803e49 !important;
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
${e} span {
|
|
849
|
+
outline: 1px solid #cc2643 !important;
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
${e} br {
|
|
853
|
+
outline: 1px solid #db687d !important;
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
${e} wbr {
|
|
857
|
+
outline: 1px solid #db175b !important;
|
|
858
|
+
}`}i(Tx,"outlineCSS");var tV=i((e,t)=>{const r=t.globals||{},n=[!0,"true"].includes(r[Ex]),o=t.viewMode==="docs",s=Fp(()=>Tx(o?'[data-story-block="true"]':".sb-show-main"),[t]);return Vr(()=>{const a=o?`addon-outline-docs-${t.id}`:"addon-outline";return n?eV(a,s):db(a),()=>{db(a)}},[n,s,t]),e()},"withOutline"),rV=globalThis.FEATURES?.outline?[tV]:[],nV={[Ex]:!1},pb=i(()=>({decorators:rV,initialGlobals:nV}),"default"),oV=i(({parameters:e})=>{e?.test?.mockReset===!0?tm():e?.test?.clearMocks===!0?em():e?.test?.restoreMocks!==!1&&rm()},"resetAllMocksLoader"),Kd=i((e,t=0,r)=>{if(t>5||e==null)return e;if(gn(e))return r&&e.mockName(r),e;if(typeof e=="function"&&"isAction"in e&&e.isAction&&!("implicit"in e&&e.implicit)){const n=Qh(e);return r&&n.mockName(r),n}if(Array.isArray(e)){t++;for(let n=0;n<e.length;n++)Object.getOwnPropertyDescriptor(e,n)?.writable&&(e[n]=Kd(e[n],t));return e}if(typeof e=="object"&&e.constructor===Object){t++;for(const[n,o]of Object.entries(e))Object.getOwnPropertyDescriptor(e,n)?.writable&&(e[n]=Kd(o,t,n));return e}return e},"traverseArgs"),iV=i(({initialArgs:e})=>{Kd(e)},"nameSpiesAndWrapActionsInSpies"),fb=!1,sV=i(async e=>{globalThis.HTMLElement&&e.canvasElement instanceof globalThis.HTMLElement&&(e.canvas=XC(e.canvasElement));const t=globalThis.window?.navigator?.clipboard;if(t&&(e.userEvent=Co({userEvent:QC.setup()},{intercept:!0,getKeys:i(r=>Object.keys(r).filter(n=>n!=="eventWrapper"),"getKeys")}).userEvent,Object.defineProperty(globalThis.window.navigator,"clipboard",{get:i(()=>t,"get"),configurable:!0}),!fb)){const r=HTMLElement.prototype.focus;let n=HTMLElement.prototype.focus;const o=new Set;Object.defineProperties(HTMLElement.prototype,{focus:{configurable:!0,set:i(s=>{n=s},"set"),get(){return o.has(this)?r:(o.add(this),setTimeout(()=>o.delete(this),0),n)}}}),fb=!0}},"enhanceContext"),hb=i(()=>({loaders:[oV,iV,sV]}),"default"),aV="viewport",lV={[aV]:{value:void 0,isRotated:!1}},mb=i(()=>({initialGlobals:lV}),"default");function iy(){return[(ub.default??ub)(),(Qg.default??Qg)(),(ab.default??ab)(),(pb.default??pb)(),(mb.default??mb)(),(Wg.default??Wg)(),(Zg.default??Zg)(),(hb.default??hb)()]}i(iy,"getCoreAnnotations");function cV(e){return e}i(cV,"definePreviewAddon");function wx(e){return e!=null&&typeof e=="object"&&"_tag"in e&&e?._tag==="Meta"}i(wx,"isMeta");function Tc(e){return e!=null&&typeof e=="object"&&"_tag"in e&&e?._tag==="Story"}i(Tc,"isStory");function _x(e){return"__children"in e?e.__children:[]}i(_x,"getStoryChildren");var Sx=i(e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,""),"sanitize"),Yd=i((e,t)=>{const r=Sx(e);if(r==="")throw new Error(`Invalid ${t} '${e}', must include alphanumeric characters`);return r},"sanitizeSafe"),uV=i((e,t)=>`${Yd(e,"kind")}${t?`--${Yd(t,"name")}`:""}`,"toId"),dV=i((e,t)=>`${e}:${Yd(t,"test")}`,"toTestId"),pV=i(e=>DT(e),"storyNameFromExport");function Xd(e,t){return Array.isArray(t)?t.includes(e):e.match(t)}i(Xd,"matches");function Ga(e,{includeStories:t,excludeStories:r}){return e!=="__esModule"&&(!t||Xd(e,t))&&(!r||!Xd(e,r))}i(Ga,"isExportStory");var fV=i((...e)=>{const t=e.reduce((r,n)=>(n.startsWith("!")?r.delete(n.slice(1)):r.add(n),r),new Set);return Array.from(t)},"combineTags");function Qd(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}i(Qd,"getSymbols");function Zd(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}i(Zd,"getTag");var hV="[object RegExp]",mV="[object String]",yV="[object Number]",gV="[object Boolean]",yb="[object Arguments]",bV="[object Symbol]",vV="[object Date]",EV="[object Map]",TV="[object Set]",wV="[object Array]",_V="[object Function]",SV="[object ArrayBuffer]",ru="[object Object]",RV="[object Error]",PV="[object DataView]",AV="[object Uint8Array]",OV="[object Uint8ClampedArray]",CV="[object Uint16Array]",xV="[object Uint32Array]",NV="[object BigUint64Array]",IV="[object Int8Array]",MV="[object Int16Array]",qV="[object Int32Array]",jV="[object BigInt64Array]",kV="[object Float32Array]",DV="[object Float64Array]";function Gt(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype||Object.getPrototypeOf(t)===null?Object.prototype.toString.call(e)==="[object Object]":!1}i(Gt,"isPlainObject");function So(e,t){const r={},n=Object.keys(e);for(let o=0;o<n.length;o++){const s=n[o],a=e[s];r[s]=t(a,s,e)}return r}i(So,"mapValues");function Rx(e,t){const r={},n=Object.keys(e);for(let o=0;o<n.length;o++){const s=n[o],a=e[s];t(a,s)&&(r[s]=a)}return r}i(Rx,"pickBy");var nu=Ge(Hb(),1);function Px(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}i(Px,"eq");function Ax(e,t,r){return Qn(e,t,void 0,void 0,void 0,void 0,r)}i(Ax,"isEqualWith");function Qn(e,t,r,n,o,s,a){const c=a(e,t,r,n,o,s);if(c!==void 0)return c;if(typeof e==typeof t)switch(typeof e){case"bigint":case"string":case"boolean":case"symbol":case"undefined":return e===t;case"number":return e===t||Object.is(e,t);case"function":return e===t;case"object":return oo(e,t,s,a)}return oo(e,t,s,a)}i(Qn,"isEqualWithImpl");function oo(e,t,r,n){if(Object.is(e,t))return!0;let o=Zd(e),s=Zd(t);if(o===yb&&(o=ru),s===yb&&(s=ru),o!==s)return!1;switch(o){case mV:return e.toString()===t.toString();case yV:{const u=e.valueOf(),d=t.valueOf();return Px(u,d)}case gV:case vV:case bV:return Object.is(e.valueOf(),t.valueOf());case hV:return e.source===t.source&&e.flags===t.flags;case _V:return e===t}r=r??new Map;const a=r.get(e),c=r.get(t);if(a!=null&&c!=null)return a===t;r.set(e,t),r.set(t,e);try{switch(o){case EV:{if(e.size!==t.size)return!1;for(const[u,d]of e.entries())if(!t.has(u)||!Qn(d,t.get(u),u,e,t,r,n))return!1;return!0}case TV:{if(e.size!==t.size)return!1;const u=Array.from(e.values()),d=Array.from(t.values());for(let p=0;p<u.length;p++){const f=u[p],m=d.findIndex(y=>Qn(f,y,void 0,e,t,r,n));if(m===-1)return!1;d.splice(m,1)}return!0}case wV:case AV:case OV:case CV:case xV:case NV:case IV:case MV:case qV:case jV:case kV:case DV:{if(typeof Buffer<"u"&&Buffer.isBuffer(e)!==Buffer.isBuffer(t)||e.length!==t.length)return!1;for(let u=0;u<e.length;u++)if(!Qn(e[u],t[u],u,e,t,r,n))return!1;return!0}case SV:return e.byteLength!==t.byteLength?!1:oo(new Uint8Array(e),new Uint8Array(t),r,n);case PV:return e.byteLength!==t.byteLength||e.byteOffset!==t.byteOffset?!1:oo(new Uint8Array(e),new Uint8Array(t),r,n);case RV:return e.name===t.name&&e.message===t.message;case ru:{if(!(oo(e.constructor,t.constructor,r,n)||Gt(e)&&Gt(t)))return!1;const d=[...Object.keys(e),...Qd(e)],p=[...Object.keys(t),...Qd(t)];if(d.length!==p.length)return!1;for(let f=0;f<d.length;f++){const m=d[f],y=e[m];if(!Object.hasOwn(t,m))return!1;const g=t[m];if(!Qn(y,g,m,e,t,r,n))return!1}return!0}default:return!1}}finally{r.delete(e),r.delete(t)}}i(oo,"areObjectsEqual");function Ox(){}i(Ox,"noop");function Cx(e,t){return Ax(e,t,Ox)}i(Cx,"isEqual");var cn=Symbol("incompatible"),ep=i((e,t)=>{const r=t.type;if(e==null||!r||t.mapping)return e;switch(r.name){case"string":return String(e);case"enum":return e;case"number":return Number(e);case"boolean":return String(e)==="true";case"array":return!r.value||!Array.isArray(e)?cn:e.reduce((n,o,s)=>{const a=ep(o,{type:r.value});return a!==cn&&(n[s]=a),n},new Array(e.length));case"object":return typeof e=="string"||typeof e=="number"?e:!r.value||typeof e!="object"?cn:Object.entries(e).reduce((n,[o,s])=>{const a=ep(s,{type:r.value[o]});return a===cn?n:Object.assign(n,{[o]:a})},{});case"other":{const n=typeof e=="string"||typeof e=="number"||typeof e=="boolean";return r.value==="ReactNode"&&n?e:cn}default:return cn}},"map"),LV=i((e,t)=>Object.entries(e).reduce((r,[n,o])=>{if(!t[n])return r;const s=ep(o,t[n]);return s===cn?r:Object.assign(r,{[n]:s})},{}),"mapArgsToTypes"),za=i((e,t)=>Array.isArray(e)&&Array.isArray(t)?t.reduce((r,n,o)=>(r[o]=za(e[o],t[o]),r),[...e]).filter(r=>r!==void 0):!Gt(e)||!Gt(t)?t:Object.keys({...e,...t}).reduce((r,n)=>{if(n in t){const o=za(e[n],t[n]);o!==void 0&&(r[n]=o)}else r[n]=e[n];return r},{}),"combineArgs"),FV=i((e,t)=>Object.entries(t).reduce((r,[n,{options:o}])=>{function s(){return n in e&&(r[n]=e[n]),r}if(i(s,"allowArg"),!o)return s();if(!Array.isArray(o))return Ue.error(ve`
|
|
859
|
+
Invalid argType: '${n}.options' should be an array.
|
|
860
|
+
|
|
861
|
+
More info: https://storybook.js.org/docs/api/arg-types?ref=error
|
|
862
|
+
`),s();if(o.some(f=>f&&["object","function"].includes(typeof f)))return Ue.error(ve`
|
|
863
|
+
Invalid argType: '${n}.options' should only contain primitives. Use a 'mapping' for complex values.
|
|
864
|
+
|
|
865
|
+
More info: https://storybook.js.org/docs/writing-stories/args?ref=error#mapping-to-complex-arg-values
|
|
866
|
+
`),s();const a=Array.isArray(e[n]),c=a&&e[n].findIndex(f=>!o.includes(f)),u=a&&c===-1;if(e[n]===void 0||o.includes(e[n])||u)return s();const d=a?`${n}[${c}]`:n,p=o.map(f=>typeof f=="string"?`'${f}'`:String(f)).join(", ");return Ue.warn(`Received illegal value for '${d}'. Supported options: ${p}`),r},{}),"validateOptions"),ki=Symbol("Deeply equal"),Wa=i((e,t)=>{if(typeof e!=typeof t)return t;if(Cx(e,t))return ki;if(Array.isArray(e)&&Array.isArray(t)){const r=t.reduce((n,o,s)=>{const a=Wa(e[s],o);return a!==ki&&(n[s]=a),n},new Array(t.length));return t.length>=e.length?r:r.concat(new Array(e.length-t.length).fill(void 0))}return Gt(e)&&Gt(t)?Object.keys({...e,...t}).reduce((r,n)=>{const o=Wa(e?.[n],t?.[n]);return o===ki?r:Object.assign(r,{[n]:o})},{}):t},"deepDiff"),xx="UNTARGETED";function Nx({args:e,argTypes:t}){const r={};return Object.entries(e).forEach(([n,o])=>{const{target:s=xx}=t[n]||{};r[s]=r[s]||{},r[s][n]=o}),r}i(Nx,"groupArgsByTarget");function Ix(e){return Object.keys(e).forEach(t=>e[t]===void 0&&delete e[t]),e}i(Ix,"deleteUndefined");var Mx=class{constructor(){this.initialArgsByStoryId={},this.argsByStoryId={}}get(t){if(!(t in this.argsByStoryId))throw new Error(`No args known for ${t} -- has it been rendered yet?`);return this.argsByStoryId[t]}setInitial(t){if(!this.initialArgsByStoryId[t.id])this.initialArgsByStoryId[t.id]=t.initialArgs,this.argsByStoryId[t.id]=t.initialArgs;else if(this.initialArgsByStoryId[t.id]!==t.initialArgs){const r=Wa(this.initialArgsByStoryId[t.id],this.argsByStoryId[t.id]);this.initialArgsByStoryId[t.id]=t.initialArgs,this.argsByStoryId[t.id]=t.initialArgs,r!==ki&&this.updateFromDelta(t,r)}}updateFromDelta(t,r){const n=FV(r,t.argTypes);this.argsByStoryId[t.id]=za(this.argsByStoryId[t.id],n)}updateFromPersisted(t,r){const n=LV(r,t.argTypes);return this.updateFromDelta(t,n)}update(t,r){if(!(t in this.argsByStoryId))throw new Error(`No args known for ${t} -- has it been rendered yet?`);this.argsByStoryId[t]=Ix({...this.argsByStoryId[t],...r})}};i(Mx,"ArgsStore");var BV=Mx,qx=i((e={})=>Object.entries(e).reduce((t,[r,{defaultValue:n}])=>(typeof n<"u"&&(t[r]=n),t),{}),"getValuesFromArgTypes"),jx=class{constructor({globals:t={},globalTypes:r={}}){this.set({globals:t,globalTypes:r})}set({globals:t={},globalTypes:r={}}){const n=this.initialGlobals&&Wa(this.initialGlobals,this.globals);this.allowedGlobalNames=new Set([...Object.keys(t),...Object.keys(r)]);const o=qx(r);this.initialGlobals={...o,...t},this.globals=this.initialGlobals,n&&n!==ki&&this.updateFromPersisted(n)}filterAllowedGlobals(t){return Object.entries(t).reduce((r,[n,o])=>(this.allowedGlobalNames.has(n)?r[n]=o:De.warn(`Attempted to set a global (${n}) that is not defined in initial globals or globalTypes`),r),{})}updateFromPersisted(t){const r=this.filterAllowedGlobals(t);this.globals={...this.globals,...r}}get(){return this.globals}update(t){this.globals={...this.globals,...this.filterAllowedGlobals(t)};for(const r in t)t[r]===void 0&&(this.globals[r]=this.initialGlobals[r])}};i(jx,"GlobalsStore");var $V=jx,JV=Ge(Hb(),1),UV=(0,JV.default)(1)(e=>Object.values(e).reduce((t,r)=>(t[r.importPath]=t[r.importPath]||r,t),{})),kx=class{constructor({entries:t}={v:5,entries:{}}){this.entries=t}entryFromSpecifier(t){const r=Object.values(this.entries);if(t==="*")return r[0];if(typeof t=="string")return this.entries[t]?this.entries[t]:r.find(s=>s.id.startsWith(t));const{name:n,title:o}=t;return r.find(s=>s.name===n&&s.title===o)}storyIdToEntry(t){const r=this.entries[t];if(!r)throw new UE({storyId:t});return r}importPathToEntry(t){return UV(this.entries)[t]}};i(kx,"StoryIndexStore");var VV=kx,HV=i(e=>typeof e=="string"?{name:e}:e,"normalizeType"),GV=i(e=>typeof e=="string"?{type:e}:e,"normalizeControl"),zV=i((e,t)=>{const{type:r,control:n,...o}=e,s={name:t,...o};return r&&(s.type=HV(r)),n?s.control=GV(n):n===!1&&(s.control={disable:!0}),s},"normalizeInputType"),Ka=i(e=>So(e,zV),"normalizeInputTypes"),Ie=i(e=>Array.isArray(e)?e:e?[e]:[],"normalizeArrays"),WV=ve`
|
|
867
|
+
CSF .story annotations deprecated; annotate story functions directly:
|
|
868
|
+
- StoryFn.story.name => StoryFn.storyName
|
|
869
|
+
- StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators)
|
|
870
|
+
See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod.
|
|
871
|
+
`;function io(e,t,r){const n=t,o=typeof t=="function"?t:null,{story:s}=n;s&&(De.debug("deprecated story",s),Tp(WV));const a=pV(e),c=typeof n!="function"&&n.name||n.storyName||s?.name||a,u=[...Ie(n.decorators),...Ie(s?.decorators)],d={...s?.parameters,...n.parameters},p={...s?.args,...n.args},f={...s?.argTypes,...n.argTypes},m=[...Ie(n.loaders),...Ie(s?.loaders)],y=[...Ie(n.beforeEach),...Ie(s?.beforeEach)],g=[...Ie(n.afterEach),...Ie(s?.afterEach)],{render:T,play:E,tags:v=[],globals:_={}}=n,A=d.__id||uV(r.id,a);return{moduleExport:t,id:A,name:c,tags:v,decorators:u,parameters:d,args:p,argTypes:Ka(f),loaders:m,beforeEach:y,afterEach:g,globals:_,...T&&{render:T},...o&&{userStoryFn:o},...E&&{play:E}}}i(io,"normalizeStory");function Ya(e,t=e.title,r){const{id:n,argTypes:o}=e;return{id:Sx(n||t),...e,title:t,...o&&{argTypes:Ka(o)},parameters:{fileName:r,...e.parameters}}}i(Ya,"normalizeComponentAnnotations");var KV=i(e=>{const{globals:t,globalTypes:r}=e;(t||r)&&De.error("Global args/argTypes can only be set globally",JSON.stringify({globals:t,globalTypes:r}))},"checkGlobals"),YV=i(e=>{const{options:t}=e;t?.storySort&&De.error("The storySort option parameter can only be set globally")},"checkStorySort"),Fs=i(e=>{e&&(KV(e),YV(e))},"checkDisallowedParameters");function Dx(e,t,r){const{default:n,__namedExportsOrder:o,...s}=e,a=Object.values(s)[0];if(Tc(a)){const d=Ya(a.meta.input,r,t);Fs(d.parameters);const p={meta:d,stories:{},moduleExports:e};return Object.keys(s).forEach(f=>{if(Ga(f,d)){const m=s[f],y=io(f,m.input,d);Fs(y.parameters),p.stories[y.id]=y,_x(m).forEach(g=>{const T=g.input.name,E=dV(y.id,T);g.input.parameters??={},g.input.parameters.__id=E,p.stories[E]=io(T,g.input,d)})}}),p.projectAnnotations=a.meta.preview.composed,p}const c=Ya(n,r,t);Fs(c.parameters);const u={meta:c,stories:{},moduleExports:e};return Object.keys(s).forEach(d=>{if(Ga(d,c)){const p=io(d,s[d],c);Fs(p.parameters),u.stories[p.id]=p}}),u}i(Dx,"processCSFFile");function sy(e,t,r){const n=r(e);return o=>t(n,o)}i(sy,"decorateStory");function ay({componentId:e,title:t,kind:r,id:n,name:o,story:s,parameters:a,initialArgs:c,argTypes:u,...d}={}){return d}i(ay,"sanitizeStoryContextUpdate");function ly(e,t){const r={},n=i(s=>a=>{if(!r.value)throw new Error("Decorated function called without init");return r.value={...r.value,...ay(a)},s(r.value)},"bindWithContext"),o=t.reduce((s,a)=>sy(s,a,n),e);return s=>(r.value=s,o(s))}i(ly,"defaultDecorateStory");var xn=i((...e)=>{const t={},r=e.filter(Boolean),n=r.reduce((o,s)=>(Object.entries(s).forEach(([a,c])=>{const u=o[a];Array.isArray(c)||typeof u>"u"?o[a]=c:Gt(c)&&Gt(u)?t[a]=!0:typeof c<"u"&&(o[a]=c)}),o),{});return Object.keys(t).forEach(o=>{const s=r.filter(Boolean).map(a=>a[o]).filter(a=>typeof a<"u");s.every(a=>Gt(a))?n[o]=xn(...s):n[o]=s[s.length-1]}),n},"combineParameters");function wc(e,t,r){const{moduleExport:n,id:o,name:s}=e||{},a=uy(e,t,r),c=i(async C=>{const R={};for(const w of[Ie(r.loaders),Ie(t.loaders),Ie(e.loaders)]){if(C.abortSignal.aborted)return R;const S=await Promise.all(w.map(k=>k(C)));Object.assign(R,...S)}return R},"applyLoaders"),u=i(async C=>{const R=new Array;for(const w of[...Ie(r.beforeEach),...Ie(t.beforeEach),...Ie(e.beforeEach)]){if(C.abortSignal.aborted)return R;const S=await w(C);S&&R.push(S)}return R},"applyBeforeEach"),d=i(async C=>{const R=[...Ie(r.afterEach),...Ie(t.afterEach),...Ie(e.afterEach)].reverse();for(const w of R){if(C.abortSignal.aborted)return;await w(C)}},"applyAfterEach"),p=i(C=>C.originalStoryFn(C.args,C),"undecoratedStoryFn"),{applyDecorators:f=ly,runStep:m}=r,y=[...Ie(e?.decorators),...Ie(t?.decorators),...Ie(r?.decorators)],g=e?.userStoryFn||e?.render||t.render||r.render,T=AT(f)(p,y),E=i(C=>T(C),"unboundStoryFn"),v=e?.play??t?.play,_=FT(v);if(!g&&!_)throw new dT({id:o});const A=i(C=>async()=>(await C.renderToCanvas(),C.canvas),"defaultMount"),N=e.mount??t.mount??r.mount??A,j=r.testingLibraryRender;return{storyGlobals:{},...a,moduleExport:n,id:o,name:s,story:s,originalStoryFn:g,undecoratedStoryFn:p,unboundStoryFn:E,applyLoaders:c,applyBeforeEach:u,applyAfterEach:d,playFunction:v,runStep:m,mount:N,testingLibraryRender:j,renderToCanvas:r.renderToCanvas,usesMount:_}}i(wc,"prepareStory");function cy(e,t,r){return{...uy(void 0,e,t),moduleExport:r}}i(cy,"prepareMeta");function uy(e,t,r){const n=["dev","test"],o=te.DOCS_OPTIONS?.autodocs===!0?["autodocs"]:[],s=e?.tags?.includes("test-fn")?["!autodocs"]:[],a=fV(...n,...o,...r.tags??[],...t.tags??[],...s,...e?.tags??[]),c=xn(r.parameters,t.parameters,e?.parameters),{argTypesEnhancers:u=[],argsEnhancers:d=[]}=r,p=xn(r.argTypes,t.argTypes,e?.argTypes);if(e){const _=e?.userStoryFn||e?.render||t.render||r.render;c.__isArgsStory=_&&_.length>0}const f={...r.args,...t.args,...e?.args},m={...t.globals,...e?.globals},y={componentId:t.id,title:t.title,kind:t.title,id:e?.id||t.id,name:e?.name||"__meta",story:e?.name||"__meta",component:t.component,subcomponents:t.subcomponents,tags:a,parameters:c,initialArgs:f,argTypes:p,storyGlobals:m};y.argTypes=u.reduce((_,A)=>A({...y,argTypes:_}),y.argTypes);const g={...f};y.initialArgs=[...d].reduce((_,A)=>({..._,...A({...y,initialArgs:_})}),g);const{name:T,story:E,...v}=y;return v}i(uy,"preparePartialAnnotations");function dy(e){const{args:t}=e;let r={...e,allArgs:void 0,argsByTarget:void 0};if(te.FEATURES?.argTypeTargetsV7){const s=Nx(e);r={...e,allArgs:e.args,argsByTarget:s,args:s[xx]||{}}}const n=Object.entries(r.args).reduce((s,[a,c])=>{if(!r.argTypes[a]?.mapping)return s[a]=c,s;const u=i(d=>{const p=r.argTypes[a].mapping;return p&&d in p?p[d]:d},"mappingFn");return s[a]=Array.isArray(c)?c.map(u):u(c),s},{}),o=Object.entries(n).reduce((s,[a,c])=>{const u=r.argTypes[a]||{};return c1(u,n,r.globals)&&(s[a]=c),s},{});return{...r,unmappedArgs:t,args:o}}i(dy,"prepareContext");var tp=i((e,t,r)=>{const n=typeof e;switch(n){case"boolean":case"string":case"number":case"function":case"symbol":return{name:n}}return e?r.has(e)?(De.warn(ve`
|
|
872
|
+
We've detected a cycle in arg '${t}'. Args should be JSON-serializable.
|
|
873
|
+
|
|
874
|
+
Consider using the mapping feature or fully custom args:
|
|
875
|
+
- Mapping: https://storybook.js.org/docs/writing-stories/args#mapping-to-complex-arg-values
|
|
876
|
+
- Custom args: https://storybook.js.org/docs/essentials/controls#fully-custom-args
|
|
877
|
+
`),{name:"other",value:"cyclic object"}):(r.add(e),Array.isArray(e)?{name:"array",value:e.length>0?tp(e[0],t,new Set(r)):{name:"other",value:"unknown"}}:{name:"object",value:So(e,s=>tp(s,t,new Set(r)))}):{name:"object",value:{}}},"inferType"),Lx=i(e=>{const{id:t,argTypes:r={},initialArgs:n={}}=e,o=So(n,(a,c)=>({name:c,type:tp(a,`${t}.${c}`,new Set)})),s=So(r,(a,c)=>({name:c}));return xn(o,s,r)},"inferArgTypes");Lx.secondPass=!0;var gb=i((e,t)=>Array.isArray(t)?t.includes(e):e.match(t),"matches"),Fx=i((e,t,r)=>!t&&!r?e:e&&Rx(e,(n,o)=>{const s=n.name||o.toString();return!!(!t||gb(s,t))&&(!r||!gb(s,r))}),"filterArgTypes"),XV=i((e,t,r)=>{const{type:n,options:o}=e;if(n){if(r.color&&r.color.test(t)){const s=n.name;if(s==="string")return{control:{type:"color"}};s!=="enum"&&De.warn(`Addon controls: Control of type color only supports string, received "${s}" instead`)}if(r.date&&r.date.test(t))return{control:{type:"date"}};switch(n.name){case"array":return{control:{type:"object"}};case"boolean":return{control:{type:"boolean"}};case"string":return{control:{type:"text"}};case"number":return{control:{type:"number"}};case"enum":{const{value:s}=n;return{control:{type:s?.length<=5?"radio":"select"},options:s}}case"function":case"symbol":return null;default:return{control:{type:o?"select":"object"}}}}},"inferControl"),py=i(e=>{const{argTypes:t,parameters:{__isArgsStory:r,controls:{include:n=null,exclude:o=null,matchers:s={}}={}}}=e;if(!r)return t;const a=Fx(t,n,o),c=So(a,(u,d)=>u?.type&&XV(u,d.toString(),s));return xn(c,a)},"inferControls");py.secondPass=!0;function is({argTypes:e,globalTypes:t,argTypesEnhancers:r,decorators:n,loaders:o,beforeEach:s,afterEach:a,initialGlobals:c,...u}){return{...e&&{argTypes:Ka(e)},...t&&{globalTypes:Ka(t)},decorators:Ie(n),loaders:Ie(o),beforeEach:Ie(s),afterEach:Ie(a),argTypesEnhancers:[...r||[],Lx,py],initialGlobals:c,...u}}i(is,"normalizeProjectAnnotations");var QV=i(e=>async()=>{const t=[];for(const r of e){const n=await r();n&&t.unshift(n)}return async()=>{for(const r of t)await r()}},"composeBeforeAllHooks");function fy(e){return async(t,r,n)=>{await e.reduceRight((s,a)=>async()=>a(t,s,n),async()=>r(n))()}}i(fy,"composeStepRunners");function Ro(e,t){return e.map(r=>r.default?.[t]??r[t]).filter(Boolean)}i(Ro,"getField");function gr(e,t,r={}){return Ro(e,t).reduce((n,o)=>{const s=Ie(o);return r.reverseFileOrder?[...s,...n]:[...n,...s]},[])}i(gr,"getArrayField");function Ri(e,t){return Object.assign({},...Ro(e,t))}i(Ri,"getObjectField");function Gn(e,t){return Ro(e,t).pop()}i(Gn,"getSingletonField");function Nn(e){const t=gr(e,"argTypesEnhancers"),r=Ro(e,"runStep"),n=gr(e,"beforeAll");return{parameters:xn(...Ro(e,"parameters")),decorators:gr(e,"decorators",{reverseFileOrder:!(te.FEATURES?.legacyDecoratorFileOrder??!1)}),args:Ri(e,"args"),argsEnhancers:gr(e,"argsEnhancers"),argTypes:Ri(e,"argTypes"),argTypesEnhancers:[...t.filter(o=>!o.secondPass),...t.filter(o=>o.secondPass)],initialGlobals:Ri(e,"initialGlobals"),globalTypes:Ri(e,"globalTypes"),loaders:gr(e,"loaders"),beforeAll:QV(n),beforeEach:gr(e,"beforeEach"),afterEach:gr(e,"afterEach"),render:Gn(e,"render"),renderToCanvas:Gn(e,"renderToCanvas"),applyDecorators:Gn(e,"applyDecorators"),runStep:fy(r),tags:gr(e,"tags"),mount:Gn(e,"mount"),testingLibraryRender:Gn(e,"testingLibraryRender")}}i(Nn,"composeConfigs");var ZV=5e3;function hy(){try{return!!globalThis.__vitest_browser__||!!globalThis.window?.navigator?.userAgent?.match(/StorybookTestRunner/)}catch{return!1}}i(hy,"isTestEnvironment");function _c(e=!0){if(!("document"in globalThis&&"createElement"in globalThis.document))return()=>{};const t=document.createElement("style");t.textContent=`*, *:before, *:after {
|
|
878
|
+
animation: none !important;
|
|
879
|
+
}`,document.head.appendChild(t);const r=document.createElement("style");return r.textContent=`*, *:before, *:after {
|
|
880
|
+
animation-delay: 0s !important;
|
|
881
|
+
animation-direction: ${e?"reverse":"normal"} !important;
|
|
882
|
+
animation-play-state: paused !important;
|
|
883
|
+
transition: none !important;
|
|
884
|
+
}`,document.head.appendChild(r),document.body.clientHeight,document.head.removeChild(t),()=>{r.parentNode?.removeChild(r)}}i(_c,"pauseAnimations");async function Sc(e){if(!("document"in globalThis&&"getAnimations"in globalThis.document&&"querySelectorAll"in globalThis.document))return;let t=!1;await Promise.race([new Promise(r=>{setTimeout(()=>{const n=[globalThis.document,...my(globalThis.document)],o=i(async()=>{if(t||e?.aborted)return;const s=n.flatMap(a=>a?.getAnimations?.()||[]).filter(a=>a.playState==="running"&&!Bx(a));s.length>0&&(await Promise.all(s.map(a=>a.finished)),await o())},"checkAnimationsFinished");o().then(r)},100)}),new Promise(r=>setTimeout(()=>{t=!0,r(void 0)},ZV))])}i(Sc,"waitForAnimations");function my(e){return[e,...e.querySelectorAll("*")].reduce((t,r)=>("shadowRoot"in r&&r.shadowRoot&&t.push(r.shadowRoot,...my(r.shadowRoot)),t),[])}i(my,"getShadowRoots");function Bx(e){if(e instanceof CSSAnimation&&e.effect instanceof KeyframeEffect&&e.effect.target){const t=getComputedStyle(e.effect.target,e.effect.pseudoElement),r=t.animationName?.split(", ").indexOf(e.animationName);return t.animationIterationCount.split(", ")[r]==="infinite"}return!1}i(Bx,"isInfiniteAnimation");var $x=class{constructor(){this.reports=[]}async addReport(t){this.reports.push(t)}};i($x,"ReporterAPI");var yy=$x;function gy(e,t,r){return Tc(e)?{story:e.input,meta:e.meta.input,preview:e.meta.preview.composed}:{story:e,meta:wx(t)?t.input:t,preview:r}}i(gy,"getCsfFactoryAnnotations");function Jx(e){globalThis.defaultProjectAnnotations=e}i(Jx,"setDefaultProjectAnnotations");var eH="ComposedStory",tH="Unnamed Story";function Ux(e){return e?Nn([e]):{}}i(Ux,"extractAnnotation");function Vx(e){const t=Array.isArray(e)?e:[e];return globalThis.globalProjectAnnotations=Nn([...iy(),globalThis.defaultProjectAnnotations??{},Nn(t.map(Ux))]),globalThis.globalProjectAnnotations??{}}i(Vx,"setProjectAnnotations");var Dr=[];function by(e,t,r,n,o){if(e===void 0)throw new Error("Expected a story but received undefined.");t.title=t.title??eH;const s=Ya(t),a=o||e.storyName||e.story?.name||e.name||tH,c=io(a,e,s),u=is(Nn([n??globalThis.globalProjectAnnotations??{},r??{}])),d=wc(c,s,u),f={...qx(u.globalTypes),...u.initialGlobals,...d.storyGlobals},m=new yy,y=i(()=>{const A=dy({hooks:new kp,globals:f,args:{...d.initialArgs},viewMode:"story",reporting:m,loaded:{},abortSignal:new AbortController().signal,step:i((N,j)=>d.runStep(N,j,A),"step"),canvasElement:null,canvas:{},userEvent:{},globalTypes:u.globalTypes,...d,context:null,mount:null});return A.parameters.__isPortableStory=!0,A.context=A,d.renderToCanvas&&(A.renderToCanvas=async()=>{const N=await d.renderToCanvas?.({componentId:d.componentId,title:d.title,id:d.id,name:d.name,tags:d.tags,showMain:i(()=>{},"showMain"),showError:i(j=>{throw new Error(`${j.title}
|
|
885
|
+
${j.description}`)},"showError"),showException:i(j=>{throw j},"showException"),forceRemount:!0,storyContext:A,storyFn:i(()=>d.unboundStoryFn(A),"storyFn"),unboundStoryFn:d.unboundStoryFn},A.canvasElement);N&&Dr.push(N)}),A.mount=d.mount(A),A},"initializeContext");let g;const T=i(async A=>{const N=y();return N.canvasElement??=globalThis?.document?.body,g&&(N.loaded=g.loaded),Object.assign(N,A),d.playFunction(N)},"play"),E=i(A=>{const N=y();return Object.assign(N,A),zx(d,N)},"run"),v=d.playFunction?T:void 0;return Object.assign(i(function(N){const j=y();return g&&(j.loaded=g.loaded),j.args={...j.initialArgs,...N},d.unboundStoryFn(j)},"storyFn"),{id:d.id,storyName:a,load:i(async()=>{for(const N of[...Dr].reverse())await N();Dr.length=0;const A=y();A.loaded=await d.applyLoaders(A),Dr.push(...(await d.applyBeforeEach(A)).filter(Boolean)),g=A},"load"),globals:f,args:d.initialArgs,parameters:d.parameters,argTypes:d.argTypes,play:v,run:E,reporting:m,tags:d.tags})}i(by,"composeStory");var rH=i((e,t,r,n)=>by(e,t,r,{},n),"defaultComposeStory");function Hx(e,t,r=rH){const{default:n,__esModule:o,__namedExportsOrder:s,...a}=e;let c=n;return Object.entries(a).reduce((d,[p,f])=>{const{story:m,meta:y}=gy(f);return!c&&y&&(c=y),Ga(p,c)?Object.assign(d,{[p]:r(m,c,t,p)}):d},{})}i(Hx,"composeStories");function Gx(e){return e.extend({mount:i(async({mount:t,page:r},n)=>{await n(async(o,...s)=>{if(!("__pw_type"in o)||"__pw_type"in o&&o.__pw_type!=="jsx")throw new Error(ve`
|
|
886
|
+
Portable stories in Playwright CT only work when referencing JSX elements.
|
|
887
|
+
Please use JSX format for your components such as:
|
|
888
|
+
|
|
889
|
+
instead of:
|
|
890
|
+
await mount(MyComponent, { props: { foo: 'bar' } })
|
|
891
|
+
|
|
892
|
+
do:
|
|
893
|
+
await mount(<MyComponent foo="bar"/>)
|
|
894
|
+
|
|
895
|
+
More info: https://storybook.js.org/docs/api/portable-stories/portable-stories-playwright?ref=error
|
|
896
|
+
`);const{props:a,...c}=o;await r.evaluate(async d=>{const p=await globalThis.__pwUnwrapObject?.(d);return("__pw_type"in p?p.type:p)?.load?.()},c);const u=await t(o,...s);return await r.evaluate(async d=>{const p=await globalThis.__pwUnwrapObject?.(d),f="__pw_type"in p?p.type:p,m=document.querySelector("#root");return f?.play?.({canvasElement:m})},c),u})},"mount")})}i(Gx,"createPlaywrightTest");async function zx(e,t){for(const s of[...Dr].reverse())await s();if(Dr.length=0,!t.canvasElement){const s=document.createElement("div");globalThis?.document?.body?.appendChild(s),t.canvasElement=s,Dr.push(()=>{globalThis?.document?.body?.contains(s)&&globalThis?.document?.body?.removeChild(s)})}if(t.loaded=await e.applyLoaders(t),t.abortSignal.aborted)return;Dr.push(...(await e.applyBeforeEach(t)).filter(Boolean));const r=e.playFunction,n=e.usesMount;if(n||await t.mount(),t.abortSignal.aborted)return;r&&(n||(t.mount=async()=>{throw new qp({playFunction:r.toString()})}),await r(t));let o;hy()?o=_c():await Sc(t.abortSignal),await e.applyAfterEach(t),await o?.()}i(zx,"runStory");var bb=1e3,nH=1e4,Wx=class{constructor(t,r,n){this.importFn=r,this.storyIndex=new VV(t),this.projectAnnotations=is(Nn([...iy(),n]));const{initialGlobals:o,globalTypes:s}=this.projectAnnotations;this.args=new BV,this.userGlobals=new $V({globals:o,globalTypes:s}),this.hooks={},this.cleanupCallbacks={},this.processCSFFileWithCache=(0,nu.default)(bb)(Dx),this.prepareMetaWithCache=(0,nu.default)(bb)(cy),this.prepareStoryWithCache=(0,nu.default)(nH)(wc)}setProjectAnnotations(t){this.projectAnnotations=is(t);const{initialGlobals:r,globalTypes:n}=t;this.userGlobals.set({globals:r,globalTypes:n})}async onStoriesChanged({importFn:t,storyIndex:r}){t&&(this.importFn=t),r&&(this.storyIndex.entries=r.entries),this.cachedCSFFiles&&await this.cacheAllCSFFiles()}async storyIdToEntry(t){return this.storyIndex.storyIdToEntry(t)}async loadCSFFileByStoryId(t){const{importPath:r,title:n}=this.storyIndex.storyIdToEntry(t),o=await this.importFn(r);return this.processCSFFileWithCache(o,r,n)}async loadAllCSFFiles(){const t={};return Object.entries(this.storyIndex.entries).forEach(([n,{importPath:o}])=>{t[o]=n}),(await Promise.all(Object.entries(t).map(async([n,o])=>({importPath:n,csfFile:await this.loadCSFFileByStoryId(o)})))).reduce((n,{importPath:o,csfFile:s})=>(n[o]=s,n),{})}async cacheAllCSFFiles(){this.cachedCSFFiles=await this.loadAllCSFFiles()}preparedMetaFromCSFFile({csfFile:t}){const r=t.meta;return this.prepareMetaWithCache(r,this.projectAnnotations,t.moduleExports.default)}async loadStory({storyId:t}){const r=await this.loadCSFFileByStoryId(t);return this.storyFromCSFFile({storyId:t,csfFile:r})}storyFromCSFFile({storyId:t,csfFile:r}){const n=r.stories[t];if(!n)throw new sT({storyId:t});const o=r.meta,s=this.prepareStoryWithCache(n,o,r.projectAnnotations??this.projectAnnotations);return this.args.setInitial(s),this.hooks[s.id]=this.hooks[s.id]||new kp,s}componentStoriesFromCSFFile({csfFile:t}){return Object.keys(this.storyIndex.entries).filter(r=>!!t.stories[r]).map(r=>this.storyFromCSFFile({storyId:r,csfFile:t}))}async loadEntry(t){const r=await this.storyIdToEntry(t),n=r.type==="docs"?r.storiesImports:[],[o,...s]=await Promise.all([this.importFn(r.importPath),...n.map(a=>{const c=this.storyIndex.importPathToEntry(a);return this.loadCSFFileByStoryId(c.id)})]);return{entryExports:o,csfFiles:s}}getStoryContext(t,{forceInitialArgs:r=!1}={}){const n=this.userGlobals.get(),{initialGlobals:o}=this.userGlobals,s=new yy;return dy({...t,args:r?t.initialArgs:this.args.get(t.id),initialGlobals:o,globalTypes:this.projectAnnotations.globalTypes,userGlobals:n,reporting:s,globals:{...n,...t.storyGlobals},hooks:this.hooks[t.id]})}addCleanupCallbacks(t,...r){this.cleanupCallbacks[t.id]=(this.cleanupCallbacks[t.id]||[]).concat(r)}async cleanupStory(t){this.hooks[t.id].clean();const r=this.cleanupCallbacks[t.id];if(r)for(const n of[...r].reverse())await n();delete this.cleanupCallbacks[t.id]}extract(t={includeDocsOnly:!1}){const{cachedCSFFiles:r}=this;if(console.log("extract: extracting stories",r),!r)throw new zE;const n=Object.entries(this.storyIndex.entries).reduce((o,[s,a])=>{if(a.type==="docs")return o;const c=r[a.importPath],u=this.storyFromCSFFile({storyId:s,csfFile:c});return!t.includeDocsOnly&&u.parameters.docsOnly||(o[s]=Object.entries(u).reduce((d,[p,f])=>p==="story"&&a.subtype==="test"?{...d,story:a.parentName}:p==="moduleExport"||typeof f=="function"?d:Array.isArray(f)?Object.assign(d,{[p]:f.slice().sort()}):Object.assign(d,{[p]:f}),{args:u.initialArgs,globals:{...this.userGlobals.initialGlobals,...this.userGlobals.globals,...u.storyGlobals},storyId:a.parent?a.parent:s})),o},{});return console.log("extract: stories",n),n}};i(Wx,"StoryStore");var Kx=Wx;function Yx(e){return e.startsWith("\\\\?\\")?e:e.replace(/\\/g,"/")}i(Yx,"slash");var oH=i(e=>{if(e.length===0)return e;const t=e[e.length-1],r=t?.replace(/(?:[.](?:story|stories))?([.][^.]+)$/i,"");if(e.length===1)return[r];const n=e[e.length-2];return r&&n&&r.toLowerCase()===n.toLowerCase()?[...e.slice(0,-2),r]:r&&(/^(story|stories)([.][^.]+)$/i.test(t)||/^index$/i.test(r))?e.slice(0,-1):[...e.slice(0,-1),r]},"sanitize");function rp(e){return e.flatMap(t=>t.split("/")).filter(Boolean).join("/")}i(rp,"pathJoin");var Xx=i((e,t,r)=>{const{directory:n,importPathMatcher:o,titlePrefix:s=""}=t||{};typeof e=="number"&&Ue.warn(ve`
|
|
897
|
+
CSF Auto-title received a numeric fileName. This typically happens when
|
|
898
|
+
webpack is mis-configured in production mode. To force webpack to produce
|
|
899
|
+
filenames, set optimization.moduleIds = "named" in your webpack config.
|
|
900
|
+
`);const a=Yx(String(e));if(o.exec(a)){if(!r){const c=a.replace(n,"");let u=rp([s,c]).split("/");return u=oH(u),u.join("/")}return s?rp([s,r]):r}},"userOrAutoTitleFromSpecifier"),iH=i((e,t,r)=>{for(let n=0;n<t.length;n+=1){const o=Xx(e,t[n],r);if(o)return o}return r||void 0},"userOrAutoTitle"),vb=/\s*\/\s*/,sH=i((e={})=>(t,r)=>{if(t.title===r.title&&!e.includeNames)return 0;const n=e.method||"configure";let o=e.order||[];const s=t.title.trim().split(vb),a=r.title.trim().split(vb);e.includeNames&&(s.push(t.name),a.push(r.name));let c=0;for(;s[c]||a[c];){if(!s[c])return-1;if(!a[c])return 1;const u=s[c],d=a[c];if(u!==d){let f=o.indexOf(u),m=o.indexOf(d);const y=o.indexOf("*");return f!==-1||m!==-1?(f===-1&&(y!==-1?f=y:f=o.length),m===-1&&(y!==-1?m=y:m=o.length),f-m):n==="configure"?0:u.localeCompare(d,e.locales?e.locales:void 0,{numeric:!0,sensitivity:"accent"})}let p=o.indexOf(u);p===-1&&(p=o.indexOf("*")),o=p!==-1&&Array.isArray(o[p+1])?o[p+1]:[],c+=1}return 0},"storySort"),aH=i((e,t,r)=>{if(t){let n;typeof t=="function"?n=t:n=sH(t),e.sort(n)}else e.sort((n,o)=>r.indexOf(n.importPath)-r.indexOf(o.importPath));return e},"sortStoriesCommon"),lH=i((e,t,r)=>{try{return aH(e,t,r)}catch(n){throw new Error(ve`
|
|
901
|
+
Error sorting stories with sort parameter ${t}:
|
|
902
|
+
|
|
903
|
+
> ${n.message}
|
|
904
|
+
|
|
905
|
+
Are you using a V6-style sort function in V7 mode?
|
|
906
|
+
|
|
907
|
+
More info: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#v7-style-story-sort
|
|
908
|
+
`)}},"sortStoriesV7"),Rc=new Error("prepareAborted"),{AbortController:Eb}=globalThis;function np(e){try{const{name:t="Error",message:r=String(e),stack:n}=e;return{name:t,message:r,stack:n}}catch{return{name:"Error",message:String(e)}}}i(np,"serializeError");var Qx=class{constructor(t,r,n,o,s,a,c={autoplay:!0,forceInitialArgs:!1},u){this.channel=t,this.store=r,this.renderToScreen=n,this.callbacks=o,this.id=s,this.viewMode=a,this.renderOptions=c,this.type="story",this.notYetRendered=!0,this.rerenderEnqueued=!1,this.disableKeyListeners=!1,this.teardownRender=i(()=>{},"teardownRender"),this.torndown=!1,this.abortController=new Eb,this.renderId=Date.now(),u&&(this.story=u,this.phase="preparing")}async runPhase(t,r,n){this.phase=r,this.channel.emit(Tn,{newPhase:this.phase,renderId:this.renderId,storyId:this.id}),n&&(await n(),this.checkIfAborted(t))}checkIfAborted(t){return t.aborted&&!["finished","aborted","errored"].includes(this.phase)&&(this.phase="aborted",this.channel.emit(Tn,{newPhase:this.phase,renderId:this.renderId,storyId:this.id})),t.aborted}async prepare(){if(await this.runPhase(this.abortController.signal,"preparing",async()=>{this.story=await this.store.loadStory({storyId:this.id})}),this.abortController.signal.aborted)throw await this.store.cleanupStory(this.story),Rc}isEqual(t){return!!(this.id===t.id&&this.story&&this.story===t.story)}isPreparing(){return["preparing"].includes(this.phase)}isPending(){return["loading","beforeEach","rendering","playing","afterEach"].includes(this.phase)}async renderToElement(t){return this.canvasElement=t,this.render({initial:!0,forceRemount:!0})}storyContext(){if(!this.story)throw new Error("Cannot call storyContext before preparing");const{forceInitialArgs:t}=this.renderOptions;return this.store.getStoryContext(this.story,{forceInitialArgs:t})}async render({initial:t=!1,forceRemount:r=!1}={}){const{canvasElement:n}=this;if(!this.story)throw new Error("cannot render when not prepared");const o=this.story;if(!n)throw new Error("cannot render when canvasElement is unset");const{id:s,componentId:a,title:c,name:u,tags:d,applyLoaders:p,applyBeforeEach:f,applyAfterEach:m,unboundStoryFn:y,playFunction:g,runStep:T}=o;r&&!t&&(this.cancelRender(),this.abortController=new Eb);const E=this.abortController.signal;let v=!1;const _=o.usesMount;try{const A={...this.storyContext(),viewMode:this.viewMode,abortSignal:E,canvasElement:n,loaded:{},step:i((H,P)=>T(H,P,A),"step"),context:null,canvas:{},userEvent:{},renderToCanvas:i(async()=>{const H=await this.renderToScreen(N,n);this.teardownRender=H||(()=>{}),v=!0},"renderToCanvas"),mount:i(async(...H)=>{this.callbacks.showStoryDuringRender?.();let P=null;return await this.runPhase(E,"rendering",async()=>{P=await o.mount(A)(...H)}),_&&await this.runPhase(E,"playing"),P},"mount")};A.context=A;const N={componentId:a,title:c,kind:c,id:s,name:u,story:u,tags:d,...this.callbacks,showError:i(H=>(this.phase="errored",this.callbacks.showError(H)),"showError"),showException:i(H=>(this.phase="errored",this.callbacks.showException(H)),"showException"),forceRemount:r||this.notYetRendered,storyContext:A,storyFn:i(()=>y(A),"storyFn"),unboundStoryFn:y};if(await this.runPhase(E,"loading",async()=>{A.loaded=await p(A)}),E.aborted)return;const j=await f(A);if(this.store.addCleanupCallbacks(o,...j),this.checkIfAborted(E)||(!v&&!_&&await A.mount(),this.notYetRendered=!1,E.aborted))return;const C=this.story.parameters?.test?.dangerouslyIgnoreUnhandledErrors===!0,R=new Set,w=i(H=>{H.error&&R.add(H.error)},"onError"),S=i(H=>{H.reason&&R.add(H.reason)},"onUnhandledRejection");if(this.renderOptions.autoplay&&r&&g&&this.phase!=="errored"){window?.addEventListener?.("error",w),window?.addEventListener?.("unhandledrejection",S),this.disableKeyListeners=!0;try{if(_?await g(A):(A.mount=async()=>{throw new qp({playFunction:g.toString()})},await this.runPhase(E,"playing",async()=>g(A))),!v)throw new fT;this.checkIfAborted(E),!C&&R.size>0?await this.runPhase(E,"errored"):await this.runPhase(E,"played")}catch(H){if(this.callbacks.showStoryDuringRender?.(),await this.runPhase(E,"errored",async()=>{this.channel.emit(rv,np(H))}),this.story.parameters.throwPlayFunctionExceptions!==!1)throw H;console.error(H)}if(!C&&R.size>0&&this.channel.emit(nv,Array.from(R).map(np)),this.disableKeyListeners=!1,window?.removeEventListener?.("unhandledrejection",S),window?.removeEventListener?.("error",w),E.aborted)return}await this.runPhase(E,"completing",async()=>{hy()?this.store.addCleanupCallbacks(o,_c()):await Sc(E)}),await this.runPhase(E,"completed",async()=>{this.channel.emit(sa,s)}),this.phase!=="errored"&&await this.runPhase(E,"afterEach",async()=>{await m(A)});const k=!C&&R.size>0,I=A.reporting.reports.some(H=>H.status==="failed"),V=k||I;await this.runPhase(E,"finished",async()=>this.channel.emit(pu,{storyId:s,status:V?"error":"success",reporters:A.reporting.reports}))}catch(A){this.phase="errored",this.callbacks.showException(A),await this.runPhase(E,"finished",async()=>this.channel.emit(pu,{storyId:s,status:"error",reporters:[]}))}this.rerenderEnqueued&&(this.rerenderEnqueued=!1,this.render())}async rerender(){if(this.isPending()&&this.phase!=="playing")this.rerenderEnqueued=!0;else return this.render()}async remount(){return await this.teardown(),this.render({forceRemount:!0})}cancelRender(){this.abortController.abort()}cancelPlayFunction(){this.phase==="playing"&&(this.abortController.abort(),this.runPhase(this.abortController.signal,"aborted"))}async teardown(){this.torndown=!0,this.cancelRender(),this.story&&await this.store.cleanupStory(this.story);for(let t=0;t<3;t+=1){if(!this.isPending()){await this.teardownRender();return}await new Promise(r=>setTimeout(r,0))}window?.location?.reload?.(),await new Promise(()=>{})}};i(Qx,"StoryRender");var op=Qx,{fetch:cH}=te,uH="./index.json",Zx=class{constructor(t,r,n=Dt.getChannel(),o=!0){this.importFn=t,this.getProjectAnnotations=r,this.channel=n,this.storyRenders=[],this.storeInitializationPromise=new Promise((s,a)=>{this.resolveStoreInitializationPromise=s,this.rejectStoreInitializationPromise=a}),o&&this.initialize()}get storyStore(){return new Proxy({},{get:i((t,r)=>{if(this.storyStoreValue)return Tp("Accessing the Story Store is deprecated and will be removed in 9.0"),this.storyStoreValue[r];throw new lT},"get")})}async initialize(){this.setupListeners();try{const t=await this.getProjectAnnotationsOrRenderError();await this.runBeforeAllHook(t),await this.initializeWithProjectAnnotations(t);const r=globalThis?.navigator?.userAgent;await this.channel.emit(iv,{userAgent:r})}catch(t){this.rejectStoreInitializationPromise(t)}}ready(){return this.storeInitializationPromise}setupListeners(){this.channel.on(dv,this.onStoryIndexChanged.bind(this)),this.channel.on(vp,this.onUpdateGlobals.bind(this)),this.channel.on(Ep,this.onUpdateArgs.bind(this)),this.channel.on(vv,this.onRequestArgTypesInfo.bind(this)),this.channel.on(gp,this.onResetArgs.bind(this)),this.channel.on(yp,this.onForceReRender.bind(this)),this.channel.on(ia,this.onForceRemount.bind(this)),this.channel.on(yv,this.onStoryHotUpdated.bind(this))}async getProjectAnnotationsOrRenderError(){try{const t=await this.getProjectAnnotations();if(this.renderToCanvas=t.renderToCanvas,!this.renderToCanvas)throw new KE;return t}catch(t){throw this.renderPreviewEntryError("Error reading preview.js:",t),t}}async initializeWithProjectAnnotations(t){this.projectAnnotationsBeforeInitialization=t;try{const r=await this.getStoryIndexFromServer();return this.initializeWithStoryIndex(r)}catch(r){throw this.renderPreviewEntryError("Error loading story index:",r),r}}async runBeforeAllHook(t){try{await this.beforeAllCleanup?.(),this.beforeAllCleanup=await t.beforeAll?.()}catch(r){throw this.renderPreviewEntryError("Error in beforeAll hook:",r),r}}async getStoryIndexFromServer(){const t=await cH(uH);if(t.status===200)return t.json();throw new QE({text:await t.text()})}initializeWithStoryIndex(t){if(!this.projectAnnotationsBeforeInitialization)throw new Error("Cannot call initializeWithStoryIndex until project annotations resolve");this.storyStoreValue=new Kx(t,this.importFn,this.projectAnnotationsBeforeInitialization),delete this.projectAnnotationsBeforeInitialization,this.setInitialGlobals(),this.resolveStoreInitializationPromise()}async setInitialGlobals(){this.emitGlobals()}emitGlobals(){if(!this.storyStoreValue)throw new Rt({methodName:"emitGlobals"});const t={globals:this.storyStoreValue.userGlobals.get()||{},globalTypes:this.storyStoreValue.projectAnnotations.globalTypes||{}};this.channel.emit(av,t)}async onGetProjectAnnotationsChanged({getProjectAnnotations:t}){delete this.previewEntryError,this.getProjectAnnotations=t;const r=await this.getProjectAnnotationsOrRenderError();if(await this.runBeforeAllHook(r),!this.storyStoreValue){await this.initializeWithProjectAnnotations(r);return}this.storyStoreValue.setProjectAnnotations(r),this.emitGlobals()}async onStoryIndexChanged(){if(delete this.previewEntryError,!(!this.storyStoreValue&&!this.projectAnnotationsBeforeInitialization))try{const t=await this.getStoryIndexFromServer();if(this.projectAnnotationsBeforeInitialization){this.initializeWithStoryIndex(t);return}await this.onStoriesChanged({storyIndex:t})}catch(t){throw this.renderPreviewEntryError("Error loading story index:",t),t}}async onStoriesChanged({importFn:t,storyIndex:r}){if(!this.storyStoreValue)throw new Rt({methodName:"onStoriesChanged"});await this.storyStoreValue.onStoriesChanged({importFn:t,storyIndex:r})}async onUpdateGlobals({globals:t,currentStory:r}){if(this.storyStoreValue||await this.storeInitializationPromise,!this.storyStoreValue)throw new Rt({methodName:"onUpdateGlobals"});if(this.storyStoreValue.userGlobals.update(t),r){const{initialGlobals:n,storyGlobals:o,userGlobals:s,globals:a}=this.storyStoreValue.getStoryContext(r);this.channel.emit(Fi,{initialGlobals:n,userGlobals:s,storyGlobals:o,globals:a})}else{const{initialGlobals:n,globals:o}=this.storyStoreValue.userGlobals;this.channel.emit(Fi,{initialGlobals:n,userGlobals:o,storyGlobals:{},globals:o})}await Promise.all(this.storyRenders.map(n=>n.rerender()))}async onUpdateArgs({storyId:t,updatedArgs:r}){if(!this.storyStoreValue)throw new Rt({methodName:"onUpdateArgs"});this.storyStoreValue.args.update(t,r),await Promise.all(this.storyRenders.filter(n=>n.id===t&&!n.renderOptions.forceInitialArgs).map(n=>n.story&&n.story.usesMount?n.remount():n.rerender())),this.channel.emit(lv,{storyId:t,args:this.storyStoreValue.args.get(t)})}async onRequestArgTypesInfo({id:t,payload:r}){try{await this.storeInitializationPromise;const n=await this.storyStoreValue?.loadStory(r);this.channel.emit(fu,{id:t,success:!0,payload:{argTypes:n?.argTypes||{}},error:null})}catch(n){this.channel.emit(fu,{id:t,success:!1,error:n?.message})}}async onResetArgs({storyId:t,argNames:r}){if(!this.storyStoreValue)throw new Rt({methodName:"onResetArgs"});const o=this.storyRenders.find(c=>c.id===t)?.story||await this.storyStoreValue.loadStory({storyId:t}),a=(r||[...new Set([...Object.keys(o.initialArgs),...Object.keys(this.storyStoreValue.args.get(t))])]).reduce((c,u)=>(c[u]=o.initialArgs[u],c),{});await this.onUpdateArgs({storyId:t,updatedArgs:a})}async onForceReRender(){await Promise.all(this.storyRenders.map(t=>t.rerender()))}async onForceRemount({storyId:t}){await Promise.all(this.storyRenders.filter(r=>r.id===t).map(r=>r.remount()))}async onStoryHotUpdated(){await Promise.all(this.storyRenders.map(t=>t.cancelPlayFunction()))}renderStoryToElement(t,r,n,o){if(!this.renderToCanvas||!this.storyStoreValue)throw new Rt({methodName:"renderStoryToElement"});const s=new op(this.channel,this.storyStoreValue,this.renderToCanvas,n,t.id,"docs",o,t);return s.renderToElement(r),this.storyRenders.push(s),async()=>{await this.teardownRender(s)}}async teardownRender(t,{viewModeChanged:r}={}){this.storyRenders=this.storyRenders.filter(n=>n!==t),await t?.teardown?.({viewModeChanged:r})}async loadStory({storyId:t}){if(!this.storyStoreValue)throw new Rt({methodName:"loadStory"});return this.storyStoreValue.loadStory({storyId:t})}getStoryContext(t,{forceInitialArgs:r=!1}={}){if(!this.storyStoreValue)throw new Rt({methodName:"getStoryContext"});return this.storyStoreValue.getStoryContext(t,{forceInitialArgs:r})}async extract(t){if(!this.storyStoreValue)throw new Rt({methodName:"extract"});if(this.previewEntryError)throw this.previewEntryError;return await this.storyStoreValue.cacheAllCSFFiles(),this.storyStoreValue.extract(t)}renderPreviewEntryError(t,r){this.previewEntryError=r,De.error(t),De.error(r),this.channel.emit(ev,r)}};i(Zx,"Preview");var eN=Zx,tN=class{constructor(t,r,n,o){this.channel=t,this.store=r,this.renderStoryToElement=n,this.storyIdByName=i(s=>{const a=this.nameToStoryId.get(s);if(a)return a;throw new Error(`No story found with that name: ${s}`)},"storyIdByName"),this.componentStories=i(()=>this.componentStoriesValue,"componentStories"),this.componentStoriesFromCSFFile=i(s=>this.store.componentStoriesFromCSFFile({csfFile:s}),"componentStoriesFromCSFFile"),this.storyById=i(s=>{if(!s){if(!this.primaryStory)throw new Error("No primary story defined for docs entry. Did you forget to use `<Meta>`?");return this.primaryStory}const a=this.storyIdToCSFFile.get(s);if(!a)throw new Error(`Called \`storyById\` for story that was never loaded: ${s}`);return this.store.storyFromCSFFile({storyId:s,csfFile:a})},"storyById"),this.getStoryContext=i(s=>({...this.store.getStoryContext(s),loaded:{},viewMode:"docs"}),"getStoryContext"),this.loadStory=i(s=>this.store.loadStory({storyId:s}),"loadStory"),this.componentStoriesValue=[],this.storyIdToCSFFile=new Map,this.exportToStory=new Map,this.exportsToCSFFile=new Map,this.nameToStoryId=new Map,this.attachedCSFFiles=new Set,o.forEach((s,a)=>{this.referenceCSFFile(s)})}referenceCSFFile(t){this.exportsToCSFFile.set(t.moduleExports,t),this.exportsToCSFFile.set(t.moduleExports.default,t),this.store.componentStoriesFromCSFFile({csfFile:t}).forEach(n=>{const o=t.stories[n.id];this.storyIdToCSFFile.set(o.id,t),this.exportToStory.set(o.moduleExport,n)})}attachCSFFile(t){if(!this.exportsToCSFFile.has(t.moduleExports))throw new Error("Cannot attach a CSF file that has not been referenced");if(this.attachedCSFFiles.has(t))return;this.attachedCSFFiles.add(t),this.store.componentStoriesFromCSFFile({csfFile:t}).forEach(n=>{this.nameToStoryId.set(n.name,n.id),this.componentStoriesValue.push(n),this.primaryStory||(this.primaryStory=n)})}referenceMeta(t,r){const n=this.resolveModuleExport(t);if(n.type!=="meta")throw new Error("<Meta of={} /> must reference a CSF file module export or meta export. Did you mistakenly reference your component instead of your CSF file?");r&&this.attachCSFFile(n.csfFile)}get projectAnnotations(){const{projectAnnotations:t}=this.store;if(!t)throw new Error("Can't get projectAnnotations from DocsContext before they are initialized");return t}resolveAttachedModuleExportType(t){if(t==="story"){if(!this.primaryStory)throw new Error("No primary story attached to this docs file, did you forget to use <Meta of={} />?");return{type:"story",story:this.primaryStory}}if(this.attachedCSFFiles.size===0)throw new Error("No CSF file attached to this docs file, did you forget to use <Meta of={} />?");const r=Array.from(this.attachedCSFFiles)[0];if(t==="meta")return{type:"meta",csfFile:r};const{component:n}=r.meta;if(!n)throw new Error("Attached CSF file does not defined a component, did you forget to export one?");return{type:"component",component:n}}resolveModuleExport(t){const r=this.exportsToCSFFile.get(t);if(r)return{type:"meta",csfFile:r};const n=this.exportToStory.get(Tc(t)?t.input:t);return n?{type:"story",story:n}:{type:"component",component:t}}resolveOf(t,r=[]){let n;if(["component","meta","story"].includes(t)){const o=t;n=this.resolveAttachedModuleExportType(o)}else n=this.resolveModuleExport(t);if(r.length&&!r.includes(n.type)){const o=n.type==="component"?"component or unknown":n.type;throw new Error(ve`Invalid value passed to the 'of' prop. The value was resolved to a '${o}' type but the only types for this block are: ${r.join(", ")}.
|
|
909
|
+
- Did you pass a component to the 'of' prop when the block only supports a story or a meta?
|
|
910
|
+
- ... or vice versa?
|
|
911
|
+
- Did you pass a story, CSF file or meta to the 'of' prop that is not indexed, ie. is not targeted by the 'stories' globs in the main configuration?`)}switch(n.type){case"component":return{...n,projectAnnotations:this.projectAnnotations};case"meta":return{...n,preparedMeta:this.store.preparedMetaFromCSFFile({csfFile:n.csfFile})};case"story":default:return n}}};i(tN,"DocsContext");var vy=tN,rN=class{constructor(t,r,n,o){this.channel=t,this.store=r,this.entry=n,this.callbacks=o,this.type="docs",this.subtype="csf",this.torndown=!1,this.disableKeyListeners=!1,this.preparing=!1,this.id=n.id,this.renderId=Date.now()}isPreparing(){return this.preparing}async prepare(){this.preparing=!0;const{entryExports:t,csfFiles:r=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw Rc;const{importPath:n,title:o}=this.entry,s=this.store.processCSFFileWithCache(t,n,o),a=Object.keys(s.stories)[0];this.story=this.store.storyFromCSFFile({storyId:a,csfFile:s}),this.csfFiles=[s,...r],this.preparing=!1}isEqual(t){return!!(this.id===t.id&&this.story&&this.story===t.story)}docsContext(t){if(!this.csfFiles)throw new Error("Cannot render docs before preparing");const r=new vy(this.channel,this.store,t,this.csfFiles);return this.csfFiles.forEach(n=>r.attachCSFFile(n)),r}async renderToElement(t,r){if(!this.story||!this.csfFiles)throw new Error("Cannot render docs before preparing");const n=this.docsContext(r),{docs:o}=this.story.parameters||{};if(!o)throw new Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");const s=await o.renderer(),{render:a}=s,c=i(async()=>{try{await a(n,o,t),this.channel.emit(mp,this.id)}catch(u){this.callbacks.showException(u)}},"renderDocs");return this.rerender=async()=>c(),this.teardownRender=async({viewModeChanged:u})=>{!u||!t||s.unmount(t)},c()}async teardown({viewModeChanged:t}={}){this.teardownRender?.({viewModeChanged:t}),this.torndown=!0}};i(rN,"CsfDocsRender");var Tb=rN,nN=class{constructor(t,r,n,o){this.channel=t,this.store=r,this.entry=n,this.callbacks=o,this.type="docs",this.subtype="mdx",this.torndown=!1,this.disableKeyListeners=!1,this.preparing=!1,this.id=n.id,this.renderId=Date.now()}isPreparing(){return this.preparing}async prepare(){this.preparing=!0;const{entryExports:t,csfFiles:r=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw Rc;this.csfFiles=r,this.exports=t,this.preparing=!1}isEqual(t){return!!(this.id===t.id&&this.exports&&this.exports===t.exports)}docsContext(t){if(!this.csfFiles)throw new Error("Cannot render docs before preparing");return new vy(this.channel,this.store,t,this.csfFiles)}async renderToElement(t,r){if(!this.exports||!this.csfFiles||!this.store.projectAnnotations)throw new Error("Cannot render docs before preparing");const n=this.docsContext(r),{docs:o}=this.store.projectAnnotations.parameters??{};if(!o)throw new Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");const s={...o,page:this.exports.default},a=await o.renderer(),{render:c}=a,u=i(async()=>{try{await c(n,s,t),this.channel.emit(mp,this.id)}catch(d){this.callbacks.showException(d)}},"renderDocs");return this.rerender=async()=>u(),this.teardownRender=async({viewModeChanged:d}={})=>{!d||!t||(a.unmount(t),this.torndown=!0)},u()}async teardown({viewModeChanged:t}={}){this.teardownRender?.({viewModeChanged:t}),this.torndown=!0}};i(nN,"MdxDocsRender");var wb=nN,dH=globalThis;function oN(e){const t=e.composedPath&&e.composedPath()[0]||e.target;return/input|textarea/i.test(t.tagName)||t.getAttribute("contenteditable")!==null}i(oN,"focusInInput");var iN="attached-mdx",pH="unattached-mdx";function sN({tags:e}){return e?.includes(pH)||e?.includes(iN)}i(sN,"isMdxEntry");function ea(e){return e.type==="story"}i(ea,"isStoryRender");function aN(e){return e.type==="docs"}i(aN,"isDocsRender");function lN(e){return aN(e)&&e.subtype==="csf"}i(lN,"isCsfDocsRender");var cN=class extends eN{constructor(t,r,n,o){super(t,r,void 0,!1),this.importFn=t,this.getProjectAnnotations=r,this.selectionStore=n,this.view=o,this.initialize()}setupListeners(){super.setupListeners(),dH.onkeydown=this.onKeydown.bind(this),this.channel.on(bp,this.onSetCurrentStory.bind(this)),this.channel.on(gv,this.onUpdateQueryParams.bind(this)),this.channel.on(ov,this.onPreloadStories.bind(this))}async setInitialGlobals(){if(!this.storyStoreValue)throw new Rt({methodName:"setInitialGlobals"});const{globals:t}=this.selectionStore.selectionSpecifier||{};t&&this.storyStoreValue.userGlobals.updateFromPersisted(t),this.emitGlobals()}async initializeWithStoryIndex(t){return await super.initializeWithStoryIndex(t),this.selectSpecifiedStory()}async selectSpecifiedStory(){if(!this.storyStoreValue)throw new Rt({methodName:"selectSpecifiedStory"});if(this.selectionStore.selection){await this.renderSelection();return}if(!this.selectionStore.selectionSpecifier){this.renderMissingStory();return}const{storySpecifier:t,args:r}=this.selectionStore.selectionSpecifier,n=this.storyStoreValue.storyIndex.entryFromSpecifier(t);if(!n){t==="*"?this.renderStoryLoadingException(t,new rT):this.renderStoryLoadingException(t,new oT({storySpecifier:t.toString()}));return}const{id:o,type:s}=n;this.selectionStore.setSelection({storyId:o,viewMode:s}),this.channel.emit(fv,this.selectionStore.selection),this.channel.emit(uu,this.selectionStore.selection),await this.renderSelection({persistedArgs:r})}async onGetProjectAnnotationsChanged({getProjectAnnotations:t}){await super.onGetProjectAnnotationsChanged({getProjectAnnotations:t}),this.selectionStore.selection&&this.renderSelection()}async onStoriesChanged({importFn:t,storyIndex:r}){await super.onStoriesChanged({importFn:t,storyIndex:r}),this.selectionStore.selection?await this.renderSelection():await this.selectSpecifiedStory()}onKeydown(t){if(!this.storyRenders.find(r=>r.disableKeyListeners)&&!oN(t)){const{altKey:r,ctrlKey:n,metaKey:o,shiftKey:s,key:a,code:c,keyCode:u}=t;this.channel.emit(sv,{event:{altKey:r,ctrlKey:n,metaKey:o,shiftKey:s,key:a,code:c,keyCode:u}})}}async onSetCurrentStory(t){this.selectionStore.setSelection({viewMode:"story",...t}),await this.storeInitializationPromise,this.channel.emit(uu,this.selectionStore.selection),this.renderSelection()}onUpdateQueryParams(t){this.selectionStore.setQueryParams(t)}async onUpdateGlobals({globals:t}){const r=this.currentRender instanceof op&&this.currentRender.story||void 0;super.onUpdateGlobals({globals:t,currentStory:r}),(this.currentRender instanceof wb||this.currentRender instanceof Tb)&&await this.currentRender.rerender?.()}async onUpdateArgs({storyId:t,updatedArgs:r}){super.onUpdateArgs({storyId:t,updatedArgs:r})}async onPreloadStories({ids:t}){await this.storeInitializationPromise,this.storyStoreValue&&await Promise.allSettled(t.map(r=>this.storyStoreValue?.loadEntry(r)))}async renderSelection({persistedArgs:t}={}){const{renderToCanvas:r}=this;if(!this.storyStoreValue||!r)throw new Rt({methodName:"renderSelection"});const{selection:n}=this.selectionStore;if(!n)throw new Error("Cannot call renderSelection as no selection was made");const{storyId:o}=n;let s;try{s=await this.storyStoreValue.storyIdToEntry(o)}catch(m){this.currentRender&&await this.teardownRender(this.currentRender),this.renderStoryLoadingException(o,m);return}const a=this.currentSelection?.storyId!==o,c=this.currentRender?.type!==s.type;s.type==="story"?this.view.showPreparingStory({immediate:c}):this.view.showPreparingDocs({immediate:c}),this.currentRender?.isPreparing()&&await this.teardownRender(this.currentRender);let u;s.type==="story"?u=new op(this.channel,this.storyStoreValue,r,this.mainStoryCallbacks(o),o,"story"):sN(s)?u=new wb(this.channel,this.storyStoreValue,s,this.mainStoryCallbacks(o)):u=new Tb(this.channel,this.storyStoreValue,s,this.mainStoryCallbacks(o));const d=this.currentSelection;this.currentSelection=n;const p=this.currentRender;this.currentRender=u;try{await u.prepare()}catch(m){p&&await this.teardownRender(p),m!==Rc&&this.renderStoryLoadingException(o,m);return}const f=!a&&p&&!u.isEqual(p);if(t&&ea(u)&&(rr(!!u.story),this.storyStoreValue.args.updateFromPersisted(u.story,t)),p&&!p.torndown&&!a&&!f&&!c){this.currentRender=p,this.channel.emit(mv,o),this.view.showMain();return}if(p&&await this.teardownRender(p,{viewModeChanged:c}),d&&(a||c)&&this.channel.emit(cv,o),ea(u)){rr(!!u.story);const{parameters:m,initialArgs:y,argTypes:g,unmappedArgs:T,initialGlobals:E,userGlobals:v,storyGlobals:_,globals:A}=this.storyStoreValue.getStoryContext(u.story);this.channel.emit(pv,{id:o,parameters:m,initialArgs:y,argTypes:g,args:T}),this.channel.emit(Fi,{userGlobals:v,storyGlobals:_,globals:A,initialGlobals:E})}else{let{parameters:m}=this.storyStoreValue.projectAnnotations;const{initialGlobals:y,globals:g}=this.storyStoreValue.userGlobals;if(this.channel.emit(Fi,{globals:g,initialGlobals:y,storyGlobals:{},userGlobals:g}),lN(u)||u.entry.tags?.includes(iN)){if(!u.csfFiles)throw new eT({storyId:o});({parameters:m}=this.storyStoreValue.preparedMetaFromCSFFile({csfFile:u.csfFiles[0]}))}this.channel.emit(tv,{id:o,parameters:m})}ea(u)?(rr(!!u.story),this.storyRenders.push(u),this.currentRender.renderToElement(this.view.prepareForStory(u.story))):this.currentRender.renderToElement(this.view.prepareForDocs(),this.renderStoryToElement.bind(this))}async teardownRender(t,{viewModeChanged:r=!1}={}){this.storyRenders=this.storyRenders.filter(n=>n!==t),await t?.teardown?.({viewModeChanged:r})}mainStoryCallbacks(t){return{showStoryDuringRender:i(()=>this.view.showStoryDuringRender(),"showStoryDuringRender"),showMain:i(()=>this.view.showMain(),"showMain"),showError:i(r=>this.renderError(t,r),"showError"),showException:i(r=>this.renderException(t,r),"showException")}}renderPreviewEntryError(t,r){super.renderPreviewEntryError(t,r),this.view.showErrorDisplay(r)}renderMissingStory(){this.view.showNoPreview(),this.channel.emit(du)}renderStoryLoadingException(t,r){De.error(r),this.view.showErrorDisplay(r),this.channel.emit(du,t)}renderException(t,r){const{name:n="Error",message:o=String(r),stack:s}=r,a=this.currentRender?.renderId;this.channel.emit(hv,{name:n,message:o,stack:s}),this.channel.emit(Tn,{newPhase:"errored",renderId:a,storyId:t}),this.view.showErrorDisplay(r),De.error(`Error rendering story '${t}':`),De.error(r)}renderError(t,{title:r,description:n}){const o=this.currentRender?.renderId;this.channel.emit(uv,{title:r,description:n}),this.channel.emit(Tn,{newPhase:"errored",renderId:o,storyId:t}),this.view.showErrorDisplay({message:r,stack:n}),De.error(`Error rendering story ${r}: ${n}`)}};i(cN,"PreviewWithSelection");var uN=cN,ip=Ge(pp(),1),fH=Ge(pp(),1),_b=/^[a-zA-Z0-9 _-]*$/,dN=/^-?[0-9]+(\.[0-9]+)?$/,hH=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,pN=/^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,sp=i((e="",t)=>e===null||e===""||!_b.test(e)?!1:t==null||t instanceof Date||typeof t=="number"||typeof t=="boolean"?!0:typeof t=="string"?_b.test(t)||dN.test(t)||hH.test(t)||pN.test(t):Array.isArray(t)?t.every(r=>sp(e,r)):Gt(t)?Object.entries(t).every(([r,n])=>sp(r,n)):!1,"validateArgs"),mH={delimiter:";",nesting:!0,arrayRepeat:!0,arrayRepeatSyntax:"bracket",nestingSyntax:"js",valueDeserializer(e){if(e.startsWith("!")){if(e==="!undefined")return;if(e==="!null")return null;if(e==="!true")return!0;if(e==="!false")return!1;if(e.startsWith("!date(")&&e.endsWith(")"))return new Date(e.replaceAll(" ","+").slice(6,-1));if(e.startsWith("!hex(")&&e.endsWith(")"))return`#${e.slice(5,-1)}`;const t=e.slice(1).match(pN);if(t)return e.startsWith("!rgba")||e.startsWith("!RGBA")?`${t[1]}(${t[2]}, ${t[3]}, ${t[4]}, ${t[5]})`:e.startsWith("!hsla")||e.startsWith("!HSLA")?`${t[1]}(${t[2]}, ${t[3]}%, ${t[4]}%, ${t[5]})`:e.startsWith("!rgb")||e.startsWith("!RGB")?`${t[1]}(${t[2]}, ${t[3]}, ${t[4]})`:`${t[1]}(${t[2]}, ${t[3]}%, ${t[4]}%)`}return dN.test(e)?Number(e):e}},Sb=i(e=>{const t=e.split(";").map(r=>r.replace("=","~").replace(":","="));return Object.entries((0,fH.parse)(t.join(";"),mH)).reduce((r,[n,o])=>sp(n,o)?Object.assign(r,{[n]:o}):(Ue.warn(ve`
|
|
912
|
+
Omitted potentially unsafe URL args.
|
|
913
|
+
|
|
914
|
+
More info: https://storybook.js.org/docs/writing-stories/args#setting-args-through-the-url?ref=error
|
|
915
|
+
`),r),{})},"parseArgsParam"),{history:fN,document:Jr}=te;function hN(e){const t=(e||"").match(/^\/story\/(.+)/);if(!t)throw new Error(`Invalid path '${e}', must start with '/story/'`);return t[1]}i(hN,"pathToId");var mN=i(({selection:e,extraParams:t})=>{const r=Jr?.location.search.slice(1),{path:n,selectedKind:o,selectedStory:s,...a}=(0,ip.parse)(r);return`?${(0,ip.stringify)({...a,...t,...e&&{id:e.storyId,viewMode:e.viewMode}})}`},"getQueryString"),yH=i(e=>{if(!e)return;const t=mN({selection:e}),{hash:r=""}=Jr.location;Jr.title=e.storyId,fN.replaceState({},"",`${Jr.location.pathname}${t}${r}`)},"setPath"),gH=i(e=>e!=null&&typeof e=="object"&&Array.isArray(e)===!1,"isObject"),Di=i(e=>{if(e!==void 0){if(typeof e=="string")return e;if(Array.isArray(e))return Di(e[0]);if(gH(e))return Di(Object.values(e).filter(Boolean))}},"getFirstString"),bH=i(()=>{if(typeof Jr<"u"){const e=Jr.location.search.slice(1),t=(0,ip.parse)(e),r=typeof t.args=="string"?Sb(t.args):void 0,n=typeof t.globals=="string"?Sb(t.globals):void 0;let o=Di(t.viewMode);(typeof o!="string"||!o.match(/docs|story/))&&(o="story");const s=Di(t.path),a=s?hN(s):Di(t.id);if(a)return{storySpecifier:a,args:r,globals:n,viewMode:o}}return null},"getSelectionSpecifierFromPath"),yN=class{constructor(){this.selectionSpecifier=bH()}setSelection(t){this.selection=t,yH(this.selection)}setQueryParams(t){const r=mN({extraParams:t}),{hash:n=""}=Jr.location;fN.replaceState({},"",`${Jr.location.pathname}${r}${n}`)}};i(yN,"UrlStore");var gN=yN,vH=Ge(zj(),1),EH=Ge(pp(),1),{document:mt}=te,Rb=100,bN=(e=>(e.MAIN="MAIN",e.NOPREVIEW="NOPREVIEW",e.PREPARING_STORY="PREPARING_STORY",e.PREPARING_DOCS="PREPARING_DOCS",e.ERROR="ERROR",e))(bN||{}),ou={PREPARING_STORY:"sb-show-preparing-story",PREPARING_DOCS:"sb-show-preparing-docs",MAIN:"sb-show-main",NOPREVIEW:"sb-show-nopreview",ERROR:"sb-show-errordisplay"},iu={centered:"sb-main-centered",fullscreen:"sb-main-fullscreen",padded:"sb-main-padded"},Pb=new vH.default({escapeXML:!0}),vN=class{constructor(){if(this.testing=!1,typeof mt<"u"){const{__SPECIAL_TEST_PARAMETER__:t}=(0,EH.parse)(mt.location.search.slice(1));switch(t){case"preparing-story":{this.showPreparingStory(),this.testing=!0;break}case"preparing-docs":{this.showPreparingDocs(),this.testing=!0;break}}}}prepareForStory(t){return this.showStory(),this.applyLayout(t.parameters.layout),mt.documentElement.scrollTop=0,mt.documentElement.scrollLeft=0,this.storyRoot()}storyRoot(){return mt.getElementById("storybook-root")}prepareForDocs(){return this.showMain(),this.showDocs(),this.applyLayout("fullscreen"),mt.documentElement.scrollTop=0,mt.documentElement.scrollLeft=0,this.docsRoot()}docsRoot(){return mt.getElementById("storybook-docs")}applyLayout(t="padded"){if(t==="none"){mt.body.classList.remove(this.currentLayoutClass),this.currentLayoutClass=null;return}this.checkIfLayoutExists(t);const r=iu[t];mt.body.classList.remove(this.currentLayoutClass),mt.body.classList.add(r),this.currentLayoutClass=r}checkIfLayoutExists(t){iu[t]||De.warn(ve`
|
|
916
|
+
The desired layout: ${t} is not a valid option.
|
|
917
|
+
The possible options are: ${Object.keys(iu).join(", ")}, none.
|
|
918
|
+
`)}showMode(t){clearTimeout(this.preparingTimeout),Object.keys(bN).forEach(r=>{r===t?mt.body.classList.add(ou[r]):mt.body.classList.remove(ou[r])})}showErrorDisplay({message:t="",stack:r=""}){let n=t,o=r;const s=t.split(`
|
|
919
|
+
`);s.length>1&&([n]=s,o=s.slice(1).join(`
|
|
920
|
+
`).replace(/^\n/,"")),mt.getElementById("error-message").innerHTML=Pb.toHtml(n),mt.getElementById("error-stack").innerHTML=Pb.toHtml(o),this.showMode("ERROR")}showNoPreview(){this.testing||(this.showMode("NOPREVIEW"),this.storyRoot()?.setAttribute("hidden","true"),this.docsRoot()?.setAttribute("hidden","true"))}showPreparingStory({immediate:t=!1}={}){clearTimeout(this.preparingTimeout),t?this.showMode("PREPARING_STORY"):this.preparingTimeout=setTimeout(()=>this.showMode("PREPARING_STORY"),Rb)}showPreparingDocs({immediate:t=!1}={}){clearTimeout(this.preparingTimeout),t?this.showMode("PREPARING_DOCS"):this.preparingTimeout=setTimeout(()=>this.showMode("PREPARING_DOCS"),Rb)}showMain(){this.showMode("MAIN")}showDocs(){this.storyRoot().setAttribute("hidden","true"),this.docsRoot().removeAttribute("hidden")}showStory(){this.docsRoot().setAttribute("hidden","true"),this.storyRoot().removeAttribute("hidden")}showStoryDuringRender(){mt.body.classList.add(ou.MAIN)}};i(vN,"WebView");var EN=vN,TN=class extends uN{constructor(t,r){super(t,r,new gN,new EN),this.importFn=t,this.getProjectAnnotations=r,te.__STORYBOOK_PREVIEW__=this}};i(TN,"PreviewWeb");var TH=TN,{document:vn}=te,wH=["application/javascript","application/ecmascript","application/x-ecmascript","application/x-javascript","text/ecmascript","text/javascript","text/javascript1.0","text/javascript1.1","text/javascript1.2","text/javascript1.3","text/javascript1.4","text/javascript1.5","text/jscript","text/livescript","text/x-ecmascript","text/x-javascript","module"],_H="script",Ab="scripts-root";function Xa(){const e=vn.createEvent("Event");e.initEvent("DOMContentLoaded",!0,!0),vn.dispatchEvent(e)}i(Xa,"simulateDOMContentLoaded");function wN(e,t,r){const n=vn.createElement("script");n.type=e.type==="module"?"module":"text/javascript",e.src?(n.onload=t,n.onerror=t,n.src=e.src):n.textContent=e.innerText,r?r.appendChild(n):vn.head.appendChild(n),e.parentNode.removeChild(e),e.src||t()}i(wN,"insertScript");function Ey(e,t,r=0){e[r](()=>{r++,r===e.length?t():Ey(e,t,r)})}i(Ey,"insertScriptsSequentially");function _N(e){let t=vn.getElementById(Ab);t?t.innerHTML="":(t=vn.createElement("div"),t.id=Ab,vn.body.appendChild(t));const r=Array.from(e.querySelectorAll(_H));if(r.length){const n=[];r.forEach(o=>{const s=o.getAttribute("type");(!s||wH.includes(s))&&n.push(a=>wN(o,a,t))}),n.length&&Ey(n,Xa,void 0)}else Xa()}i(_N,"simulatePageLoad");var su;(function(e){e.start="/**",e.nostart="/***",e.delim="*",e.end="*/"})(su=su||(su={}));function SN(e){return e.start+e.delimiter+e.postDelimiter+e.tag+e.postTag+e.type+e.postType+e.name+e.postName+e.description+e.end+e.lineEnd}i(SN,"join");function SH(){return e=>e.source.map(({tokens:t})=>SN(t)).join(`
|
|
921
|
+
`)}i(SH,"getStringifier");var RH=Ge(Wj(),1),Bn=(0,RH.stringifyRules)(),PH=Bn.JsdocTypeObject;Bn.JsdocTypeAny=()=>"any";Bn.JsdocTypeObject=(e,t)=>`(${PH(e,t)})`;Bn.JsdocTypeOptional=(e,t)=>t(e.element);Bn.JsdocTypeNullable=(e,t)=>t(e.element);Bn.JsdocTypeNotNullable=(e,t)=>t(e.element);Bn.JsdocTypeUnion=(e,t)=>e.elements.map(t).join("|");var AH="storybook/docs",OH=`${AH}/snippet-rendered`;async function RN(e,t){const r=t.parameters?.docs?.source?.transform,{id:n,unmappedArgs:o}=t,s=r&&e?r?.(e,t):e,a=s?await s:void 0;Dt.getChannel().emit(OH,{id:n,source:a,args:o})}i(RN,"emitTransformCode");var ss={depth:10,clearOnStoryChange:!0,limit:50},CH=i((e={})=>{Object.assign(ss,e)},"configureActions"),PN=i((e,t)=>{const r=Object.getPrototypeOf(e);return!r||t(r)?r:PN(r,t)},"findProto"),xH=i(e=>!!(typeof e=="object"&&e&&PN(e,t=>/^Synthetic(?:Base)?Event$/.test(t.constructor.name))&&typeof e.persist=="function"),"isReactSyntheticEvent"),NH=i(e=>{if(xH(e)){const t=Object.create(e.constructor.prototype,Object.getOwnPropertyDescriptors(e));t.persist();const r=Object.getOwnPropertyDescriptor(t,"view"),n=r?.value;return typeof n=="object"&&n?.constructor.name==="Window"&&Object.defineProperty(t,"view",{...r,value:Object.create(n.constructor.prototype)}),t}return e},"serializeArg");function Fo(e,t={}){const r={...ss,...t},n=i(function(...s){if(t.implicit){const y=("__STORYBOOK_PREVIEW__"in te?te.__STORYBOOK_PREVIEW__:void 0)?.storyRenders.find(g=>g.phase==="playing"||g.phase==="rendering");if(y){const g=!globalThis?.FEATURES?.disallowImplicitActionsInRenderV8,T=new HE({phase:y.phase,name:e,deprecated:g});if(g)console.warn(T);else throw T}}const a=Dt.getChannel(),c=Date.now().toString(36)+Math.random().toString(36).substring(2),u=5,d=s.map(NH),p=s.length>1?d:d[0],f={id:c,count:0,data:{name:e,args:p},options:{...r,maxDepth:u+(r.depth||3)}};a.emit(_T,f)},"actionHandler");return n.isAction=!0,n.implicit=t.implicit,n}i(Fo,"action");var IH=i((...e)=>{let t=ss,r=e;r.length===1&&Array.isArray(r[0])&&([r]=r),r.length!==1&&typeof r[r.length-1]!="string"&&(t={...ss,...r.pop()});let n=r[0];(r.length!==1||typeof n=="string")&&(n={},r.forEach(s=>{n[s]=s}));const o={};return Object.keys(n).forEach(s=>{o[s]=Fo(n[s],t)}),o},"actions"),MH={"@storybook/global":Ev,"storybook/test":VT,"storybook/actions":wT,"storybook/preview-api":gu,"storybook/internal/channels":wv,"storybook/internal/client-logger":Sv,"storybook/internal/core-events":fp,"storybook/internal/types":ET,"storybook/internal/preview-errors":LE,"storybook/internal/preview-api":gu};async function AN(){const e=new URL(window.location.href);if(e.searchParams.get("navigator")!=="true"||globalThis.__STORYBOOK_PREVIEW_NAVIGATOR__)return;globalThis.__STORYBOOK_PREVIEW_NAVIGATOR__=!0;const t=await(await fetch("/index.json")).json(),r=e.searchParams.get("id");if(!r){const n=Object.values(t.entries)[0];n&&(e.searchParams.set("id",n.id),e.searchParams.set("viewMode",n.type),window.location.href=e.toString());return}qH(t,r)}i(AN,"maybeSetupPreviewNavigator");var qH=i(async(e,t)=>{const r={entries:{}};for(const c of Object.values(e.entries)){const u=c.title.split("/");let d=r;for(const p of u)d.entries||(d.entries={}),d.entries[p]?t===c.id&&(d.entries[p].isActive=!0):d.entries[p]={title:p,isActive:t===c.id,entries:{}},d=d.entries[p];d.entries||(d.entries={}),d.entries[c.name]={id:c.id,name:c.name,href:`?id=${c.id}&viewMode=${c.type}&navigator=true`,isActive:t===c.id}}const n=i(c=>{if("entries"in c&&"title"in c){const d=c;return`
|
|
922
|
+
<li class="sb-navigator-branch">
|
|
923
|
+
<details${d.isActive?" open":""}>
|
|
924
|
+
<summary class="sb-navigator-title">
|
|
925
|
+
${d.title}
|
|
926
|
+
</summary>
|
|
927
|
+
<ul class="sb-navigator-entries" aria-label="${d.title}">
|
|
928
|
+
${Object.values(d.entries).map(n).join("")}
|
|
929
|
+
</ul>
|
|
930
|
+
</details>
|
|
931
|
+
</li>
|
|
932
|
+
`}const u=c;return`
|
|
933
|
+
<li class="sb-navigator-story-item">
|
|
934
|
+
<a href="${u.href}"
|
|
935
|
+
class="sb-navigator-story-link${u.isActive?" active":""}"
|
|
936
|
+
aria-current="${u.isActive?"location":"false"}">${u.name}</a>
|
|
937
|
+
</li>
|
|
938
|
+
`},"createHtmlForNode"),o=Object.values(r.entries).map(n).join(""),s=document.createElement("nav");s.id="sb-navigator-container",s.setAttribute("role","navigation"),s.setAttribute("aria-label","Story navigation"),s.innerHTML=`
|
|
939
|
+
<ul class="sb-navigator-list">${o}</ul>
|
|
940
|
+
`,document.body.insertBefore(s,document.body.firstChild);const a=document.createElement("style");a.id="sb-navigator-style",a.textContent=`
|
|
941
|
+
body {
|
|
942
|
+
display: grid !important;
|
|
943
|
+
grid-template-columns: 300px 1fr;
|
|
944
|
+
font-family: 'Nunito', sans-serif;
|
|
945
|
+
height: 100vh;
|
|
946
|
+
margin: 0;
|
|
947
|
+
|
|
948
|
+
--text-color: rgb(46, 52, 56);
|
|
949
|
+
--bg-color: rgb(246, 249, 252);
|
|
950
|
+
|
|
951
|
+
@media (prefers-color-scheme: dark) {
|
|
952
|
+
--text-color: rgb(201, 205, 207);
|
|
953
|
+
--bg-color: rgb(34, 36, 37);
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
#storybook-root, #storybook-docs {
|
|
957
|
+
overflow-y: auto;
|
|
958
|
+
max-height: 100vh;
|
|
959
|
+
max-width: 100%;
|
|
960
|
+
}
|
|
961
|
+
#sb-navigator-container, #sb-navigator-container * {
|
|
962
|
+
box-sizing: border-box;
|
|
963
|
+
}
|
|
964
|
+
#sb-navigator-container {
|
|
965
|
+
height: 100vh;
|
|
966
|
+
overflow-y: auto;
|
|
967
|
+
border-right: 1px solid #eee;
|
|
968
|
+
padding: 1rem;
|
|
969
|
+
font-size: 14px;
|
|
970
|
+
color: var(--text-color);
|
|
971
|
+
background-color: var(--bg-color);
|
|
972
|
+
align-self: start;
|
|
973
|
+
z-index: 1000;
|
|
974
|
+
}
|
|
975
|
+
.sb-main-padded #sb-navigator-container {
|
|
976
|
+
margin: -1rem 1rem -1rem -1rem;
|
|
977
|
+
}
|
|
978
|
+
.sb-navigator-list {
|
|
979
|
+
list-style-type: none;
|
|
980
|
+
padding: 0;
|
|
981
|
+
margin: 0;
|
|
982
|
+
}
|
|
983
|
+
.sb-navigator-branch {
|
|
984
|
+
list-style-type: none;
|
|
985
|
+
}
|
|
986
|
+
.sb-navigator-item {
|
|
987
|
+
margin-bottom: 15px;
|
|
988
|
+
}
|
|
989
|
+
.sb-navigator-title {
|
|
990
|
+
color: var(--text-color);
|
|
991
|
+
text-decoration: none;
|
|
992
|
+
padding-block: 5px;
|
|
993
|
+
cursor: pointer;
|
|
994
|
+
}
|
|
995
|
+
.sb-navigator-entries {
|
|
996
|
+
padding-left: 15px;
|
|
997
|
+
}
|
|
998
|
+
.sb-navigator-story-item {
|
|
999
|
+
margin-bottom: 8px;
|
|
1000
|
+
margin-left: 8px;
|
|
1001
|
+
}
|
|
1002
|
+
.sb-navigator-story-link {
|
|
1003
|
+
color: var(--text-color);
|
|
1004
|
+
}
|
|
1005
|
+
.sb-navigator-story-link.active {
|
|
1006
|
+
font-weight: bold;
|
|
1007
|
+
color: rgb(2, 156, 253);
|
|
1008
|
+
}
|
|
1009
|
+
`,document.head.appendChild(a),s.querySelector(".sb-navigator-story-link.active")?.closest("details")?.scrollIntoView({block:"center"})},"setupPreviewNavigator"),jH=Ge(Kj(),1),au;function ON(){return au||(au=new jH.default(te.navigator?.userAgent).getBrowserInfo()),au}i(ON,"getBrowserInfo");function CN(e){return e.browserInfo=ON(),e}i(CN,"prepareForTelemetry");function xN(e){const t=e.error||e;t.fromStorybook&&te.sendTelemetryError(t)}i(xN,"errorListener");function NN({reason:e}){e.fromStorybook&&te.sendTelemetryError(e)}i(NN,"unhandledRejectionListener");function Ty(){wk.forEach(e=>{te[Tv[e]]=MH[e]}),te.sendTelemetryError=e=>{te.__STORYBOOK_ADDONS_CHANNEL__.emit(bv,CN(e))},te.addEventListener("error",xN),te.addEventListener("unhandledrejection",NN),AN()}i(Ty,"setup");Ty();const{createBrowserChannel:kH}=__STORYBOOK_MODULE_CHANNELS__,{addons:DH}=__STORYBOOK_MODULE_PREVIEW_API__,wy=kH({page:"preview"});DH.setChannel(wy);window.__STORYBOOK_ADDONS_CHANNEL__=wy;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=wy);var LH=Object.create,Pc=Object.defineProperty,FH=Object.getOwnPropertyDescriptor,IN=Object.getOwnPropertyNames,BH=Object.getPrototypeOf,$H=Object.prototype.hasOwnProperty,O=(e,t)=>Pc(e,"name",{value:t,configurable:!0}),Lz=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),JH=(e,t)=>function(){return t||(0,e[IN(e)[0]])((t={exports:{}}).exports,t),t.exports},Fz=(e,t)=>{for(var r in t)Pc(e,r,{get:t[r],enumerable:!0})},UH=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of IN(t))!$H.call(e,o)&&o!==r&&Pc(e,o,{get:()=>t[o],enumerable:!(n=FH(t,o))||n.enumerable});return e},VH=(e,t,r)=>(r=e!=null?LH(BH(e)):{},UH(t||!e||!e.__esModule?Pc(r,"default",{value:e,enumerable:!0}):r,e));function ta(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype||Object.getPrototypeOf(t)===null?Object.prototype.toString.call(e)==="[object Object]":!1}O(ta,"isPlainObject");function HH(e){return e==null||typeof e!="object"&&typeof e!="function"}O(HH,"isPrimitive");function GH(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}O(GH,"isTypedArray");function zH(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}O(zH,"getSymbols");function WH(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}O(WH,"getTag");var Bz="[object RegExp]",$z="[object String]",Jz="[object Number]",Uz="[object Boolean]",Vz="[object Arguments]",Hz="[object Symbol]",Gz="[object Date]",zz="[object Map]",Wz="[object Set]",Kz="[object Array]",Yz="[object Function]",Xz="[object ArrayBuffer]",Qz="[object Object]",Zz="[object Error]",eW="[object DataView]",tW="[object Uint8Array]",rW="[object Uint8ClampedArray]",nW="[object Uint16Array]",oW="[object Uint32Array]",iW="[object BigUint64Array]",sW="[object Int8Array]",aW="[object Int16Array]",lW="[object Int32Array]",cW="[object BigInt64Array]",uW="[object Float32Array]",dW="[object Float64Array]",KH=JH({"../node_modules/jsdoc-type-pratt-parser/dist/index.js"(e,t){(function(r,n){typeof e=="object"&&typeof t<"u"?n(e):typeof define=="function"&&define.amd?define(["exports"],n):(r=typeof globalThis<"u"?globalThis:r||self,n(r.jtpp={}))})(e,function(r){function n(l){return l.text!==void 0&&l.text!==""?`'${l.type}' with value '${l.text}'`:`'${l.type}'`}O(n,"tokenToString");const o=class MN extends Error{constructor(h){super(`No parslet found for token: ${n(h)}`),this.token=h,Object.setPrototypeOf(this,MN.prototype)}getToken(){return this.token}};O(o,"NoParsletFoundError");let s=o;const a=class qN extends Error{constructor(h){super(`The parsing ended early. The next token was: ${n(h)}`),this.token=h,Object.setPrototypeOf(this,qN.prototype)}getToken(){return this.token}};O(a,"EarlyEndOfParseError");let c=a;const u=class jN extends Error{constructor(h,b){let x=`Unexpected type: '${h.type}'.`;b!==void 0&&(x+=` Message: ${b}`),super(x),Object.setPrototypeOf(this,jN.prototype)}};O(u,"UnexpectedTypeError");let d=u;function p(l){return h=>h.startsWith(l)?{type:l,text:l}:null}O(p,"makePunctuationRule");function f(l){let h=0,b;const x=l[0];let F=!1;if(x!=="'"&&x!=='"')return null;for(;h<l.length;){if(h++,b=l[h],!F&&b===x){h++;break}F=!F&&b==="\\"}if(b!==x)throw new Error("Unterminated String");return l.slice(0,h)}O(f,"getQuoted");const m=new RegExp("[$_\\p{ID_Start}]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}","u"),y=new RegExp("[$\\-\\p{ID_Continue}\\u200C\\u200D]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}","u");function g(l){let h=l[0];if(!m.test(h))return null;let b=1;do{if(h=l[b],!y.test(h))break;b++}while(b<l.length);return l.slice(0,b)}O(g,"getIdentifier");const T=/^(NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity))/;function E(l){var h,b;return(b=(h=T.exec(l))===null||h===void 0?void 0:h[0])!==null&&b!==void 0?b:null}O(E,"getNumber");const v=O(l=>{const h=g(l);return h==null?null:{type:"Identifier",text:h}},"identifierRule");function _(l){return h=>{if(!h.startsWith(l))return null;const b=h[l.length];return b!==void 0&&y.test(b)?null:{type:l,text:l}}}O(_,"makeKeyWordRule");const A=O(l=>{const h=f(l);return h==null?null:{type:"StringValue",text:h}},"stringValueRule"),N=O(l=>l.length>0?null:{type:"EOF",text:""},"eofRule"),j=O(l=>{const h=E(l);return h===null?null:{type:"Number",text:h}},"numberRule"),C=[N,p("=>"),p("("),p(")"),p("{"),p("}"),p("["),p("]"),p("|"),p("&"),p("<"),p(">"),p(","),p(";"),p("*"),p("?"),p("!"),p("="),p(":"),p("..."),p("."),p("#"),p("~"),p("/"),p("@"),_("undefined"),_("null"),_("function"),_("this"),_("new"),_("module"),_("event"),_("extends"),_("external"),_("infer"),_("typeof"),_("keyof"),_("readonly"),_("import"),_("is"),_("in"),_("asserts"),j,v,A],R=/^\s*\n\s*/,w=class ra{static create(h){const b=this.read(h);h=b.text;const x=this.read(h);return h=x.text,new ra(h,void 0,b.token,x.token)}constructor(h,b,x,F){this.text="",this.text=h,this.previous=b,this.current=x,this.next=F}static read(h,b=!1){b=b||R.test(h),h=h.trim();for(const x of C){const F=x(h);if(F!==null){const z=Object.assign(Object.assign({},F),{startOfLine:b});return h=h.slice(z.text.length),{text:h,token:z}}}throw new Error("Unexpected Token "+h)}advance(){const h=ra.read(this.text);return new ra(h.text,this.current,this.next,h.token)}};O(w,"Lexer");let S=w;function k(l){if(l===void 0)throw new Error("Unexpected undefined");if(l.type==="JsdocTypeKeyValue"||l.type==="JsdocTypeParameterList"||l.type==="JsdocTypeProperty"||l.type==="JsdocTypeReadonlyProperty"||l.type==="JsdocTypeObjectField"||l.type==="JsdocTypeJsdocObjectField"||l.type==="JsdocTypeIndexSignature"||l.type==="JsdocTypeMappedType"||l.type==="JsdocTypeTypeParameter")throw new d(l);return l}O(k,"assertRootResult");function I(l){return l.type==="JsdocTypeKeyValue"?H(l):k(l)}O(I,"assertPlainKeyValueOrRootResult");function V(l){return l.type==="JsdocTypeName"?l:H(l)}O(V,"assertPlainKeyValueOrNameResult");function H(l){if(l.type!=="JsdocTypeKeyValue")throw new d(l);return l}O(H,"assertPlainKeyValueResult");function P(l){var h;if(l.type==="JsdocTypeVariadic"){if(((h=l.element)===null||h===void 0?void 0:h.type)==="JsdocTypeName")return l;throw new d(l)}if(l.type!=="JsdocTypeNumber"&&l.type!=="JsdocTypeName")throw new d(l);return l}O(P,"assertNumberOrVariadicNameResult");function L(l){if(l.type==="JsdocTypeTuple"||l.type==="JsdocTypeGeneric"&&l.meta.brackets==="square")return l;throw new d(l)}O(L,"assertArrayOrTupleResult");function B(l){return l.type==="JsdocTypeIndexSignature"||l.type==="JsdocTypeMappedType"}O(B,"isSquaredProperty");var D;(function(l){l[l.ALL=0]="ALL",l[l.PARAMETER_LIST=1]="PARAMETER_LIST",l[l.OBJECT=2]="OBJECT",l[l.KEY_VALUE=3]="KEY_VALUE",l[l.INDEX_BRACKETS=4]="INDEX_BRACKETS",l[l.UNION=5]="UNION",l[l.INTERSECTION=6]="INTERSECTION",l[l.PREFIX=7]="PREFIX",l[l.INFIX=8]="INFIX",l[l.TUPLE=9]="TUPLE",l[l.SYMBOL=10]="SYMBOL",l[l.OPTIONAL=11]="OPTIONAL",l[l.NULLABLE=12]="NULLABLE",l[l.KEY_OF_TYPE_OF=13]="KEY_OF_TYPE_OF",l[l.FUNCTION=14]="FUNCTION",l[l.ARROW=15]="ARROW",l[l.ARRAY_BRACKETS=16]="ARRAY_BRACKETS",l[l.GENERIC=17]="GENERIC",l[l.NAME_PATH=18]="NAME_PATH",l[l.PARENTHESIS=19]="PARENTHESIS",l[l.SPECIAL_TYPES=20]="SPECIAL_TYPES"})(D||(D={}));const K=class{constructor(h,b,x){this.grammar=h,typeof b=="string"?this._lexer=S.create(b):this._lexer=b,this.baseParser=x}get lexer(){return this._lexer}parse(){const h=this.parseType(D.ALL);if(this.lexer.current.type!=="EOF")throw new c(this.lexer.current);return h}parseType(h){return k(this.parseIntermediateType(h))}parseIntermediateType(h){const b=this.tryParslets(null,h);if(b===null)throw new s(this.lexer.current);return this.parseInfixIntermediateType(b,h)}parseInfixIntermediateType(h,b){let x=this.tryParslets(h,b);for(;x!==null;)h=x,x=this.tryParslets(h,b);return h}tryParslets(h,b){for(const x of this.grammar){const F=x(this,b,h);if(F!==null)return F}return null}consume(h){return Array.isArray(h)||(h=[h]),h.includes(this.lexer.current.type)?(this._lexer=this.lexer.advance(),!0):!1}acceptLexerState(h){this._lexer=h.lexer}};O(K,"Parser");let X=K;function ie(l){return l==="}"||l==="EOF"||l==="|"||l===","||l===")"||l===">"}O(ie,"isQuestionMarkUnknownType");const se=O((l,h,b)=>{const x=l.lexer.current.type,F=l.lexer.next.type;return b==null&&x==="?"&&!ie(F)||b!=null&&x==="?"?(l.consume("?"),b==null?{type:"JsdocTypeNullable",element:l.parseType(D.NULLABLE),meta:{position:"prefix"}}:{type:"JsdocTypeNullable",element:k(b),meta:{position:"suffix"}}):null},"nullableParslet");function W(l){const h=O((b,x,F)=>{const z=b.lexer.current.type,Z=b.lexer.next.type;if(F===null){if("parsePrefix"in l&&l.accept(z,Z))return l.parsePrefix(b)}else if("parseInfix"in l&&l.precedence>x&&l.accept(z,Z))return l.parseInfix(b,F);return null},"parslet");return Object.defineProperty(h,"name",{value:l.name}),h}O(W,"composeParslet");const ae=W({name:"optionalParslet",accept:O(l=>l==="=","accept"),precedence:D.OPTIONAL,parsePrefix:O(l=>(l.consume("="),{type:"JsdocTypeOptional",element:l.parseType(D.OPTIONAL),meta:{position:"prefix"}}),"parsePrefix"),parseInfix:O((l,h)=>(l.consume("="),{type:"JsdocTypeOptional",element:k(h),meta:{position:"suffix"}}),"parseInfix")}),be=W({name:"numberParslet",accept:O(l=>l==="Number","accept"),parsePrefix:O(l=>{const h=parseFloat(l.lexer.current.text);return l.consume("Number"),{type:"JsdocTypeNumber",value:h}},"parsePrefix")}),ue=W({name:"parenthesisParslet",accept:O(l=>l==="(","accept"),parsePrefix:O(l=>{if(l.consume("("),l.consume(")"))return{type:"JsdocTypeParameterList",elements:[]};const h=l.parseIntermediateType(D.ALL);if(!l.consume(")"))throw new Error("Unterminated parenthesis");return h.type==="JsdocTypeParameterList"?h:h.type==="JsdocTypeKeyValue"?{type:"JsdocTypeParameterList",elements:[h]}:{type:"JsdocTypeParenthesis",element:k(h)}},"parsePrefix")}),ee=W({name:"specialTypesParslet",accept:O((l,h)=>l==="?"&&ie(h)||l==="null"||l==="undefined"||l==="*","accept"),parsePrefix:O(l=>{if(l.consume("null"))return{type:"JsdocTypeNull"};if(l.consume("undefined"))return{type:"JsdocTypeUndefined"};if(l.consume("*"))return{type:"JsdocTypeAny"};if(l.consume("?"))return{type:"JsdocTypeUnknown"};throw new Error("Unacceptable token: "+l.lexer.current.text)},"parsePrefix")}),Ae=W({name:"notNullableParslet",accept:O(l=>l==="!","accept"),precedence:D.NULLABLE,parsePrefix:O(l=>(l.consume("!"),{type:"JsdocTypeNotNullable",element:l.parseType(D.NULLABLE),meta:{position:"prefix"}}),"parsePrefix"),parseInfix:O((l,h)=>(l.consume("!"),{type:"JsdocTypeNotNullable",element:k(h),meta:{position:"suffix"}}),"parseInfix")});function Oe({allowTrailingComma:l}){return W({name:"parameterListParslet",accept:O(h=>h===",","accept"),precedence:D.PARAMETER_LIST,parseInfix:O((h,b)=>{const x=[I(b)];h.consume(",");do try{const F=h.parseIntermediateType(D.PARAMETER_LIST);x.push(I(F))}catch(F){if(F instanceof s)break;throw F}while(h.consume(","));if(x.length>0&&x.slice(0,-1).some(F=>F.type==="JsdocTypeVariadic"))throw new Error("Only the last parameter may be a rest parameter");return{type:"JsdocTypeParameterList",elements:x}},"parseInfix")})}O(Oe,"createParameterListParslet");const Ve=W({name:"genericParslet",accept:O((l,h)=>l==="<"||l==="."&&h==="<","accept"),precedence:D.GENERIC,parseInfix:O((l,h)=>{const b=l.consume(".");l.consume("<");const x=[];let F=!1;if(l.consume("infer")){F=!0;const z=l.parseIntermediateType(D.SYMBOL);if(z.type!=="JsdocTypeName")throw new d(z,"A typescript asserts always has to have a name on the left side.");x.push(z)}else do x.push(l.parseType(D.PARAMETER_LIST));while(l.consume(","));if(!l.consume(">"))throw new Error("Unterminated generic parameter list");return Object.assign(Object.assign({type:"JsdocTypeGeneric",left:k(h),elements:x},F?{infer:!0}:{}),{meta:{brackets:"angle",dot:b}})},"parseInfix")}),We=W({name:"unionParslet",accept:O(l=>l==="|","accept"),precedence:D.UNION,parseInfix:O((l,h)=>{l.consume("|");const b=[];do b.push(l.parseType(D.UNION));while(l.consume("|"));return{type:"JsdocTypeUnion",elements:[k(h),...b]}},"parseInfix")}),J=[se,ae,be,ue,ee,Ae,Oe({allowTrailingComma:!0}),Ve,We,ae];function Q({allowSquareBracketsOnAnyType:l,allowJsdocNamePaths:h,pathGrammar:b}){return O(function(F,z,Z){if(Z==null||z>=D.NAME_PATH)return null;const ce=F.lexer.current.type,_e=F.lexer.next.type;if(!(ce==="."&&_e!=="<"||ce==="["&&(l||Z.type==="JsdocTypeName")||h&&(ce==="~"||ce==="#")))return null;let Me,dr=!1;F.consume(".")?Me="property":F.consume("[")?(Me="property-brackets",dr=!0):F.consume("~")?Me="inner":(F.consume("#"),Me="instance");const ci=b!==null?new X(b,F.lexer,F):F,Xe=ci.parseIntermediateType(D.NAME_PATH);F.acceptLexerState(ci);let $t;switch(Xe.type){case"JsdocTypeName":$t={type:"JsdocTypeProperty",value:Xe.value,meta:{quote:void 0}};break;case"JsdocTypeNumber":$t={type:"JsdocTypeProperty",value:Xe.value.toString(10),meta:{quote:void 0}};break;case"JsdocTypeStringValue":$t={type:"JsdocTypeProperty",value:Xe.value,meta:{quote:Xe.meta.quote}};break;case"JsdocTypeSpecialNamePath":if(Xe.specialType==="event")$t=Xe;else throw new d(Xe,"Type 'JsdocTypeSpecialNamePath' is only allowed with specialType 'event'");break;default:throw new d(Xe,"Expecting 'JsdocTypeName', 'JsdocTypeNumber', 'JsdocStringValue' or 'JsdocTypeSpecialNamePath'")}if(dr&&!F.consume("]")){const ui=F.lexer.current;throw new Error(`Unterminated square brackets. Next token is '${ui.type}' with text '${ui.text}'`)}return{type:"JsdocTypeNamePath",left:k(Z),right:$t,pathType:Me}},"namePathParslet")}O(Q,"createNamePathParslet");function re({allowedAdditionalTokens:l}){return W({name:"nameParslet",accept:O(h=>h==="Identifier"||h==="this"||h==="new"||l.includes(h),"accept"),parsePrefix:O(h=>{const{type:b,text:x}=h.lexer.current;return h.consume(b),{type:"JsdocTypeName",value:x}},"parsePrefix")})}O(re,"createNameParslet");const oe=W({name:"stringValueParslet",accept:O(l=>l==="StringValue","accept"),parsePrefix:O(l=>{const h=l.lexer.current.text;return l.consume("StringValue"),{type:"JsdocTypeStringValue",value:h.slice(1,-1),meta:{quote:h[0]==="'"?"single":"double"}}},"parsePrefix")});function ne({pathGrammar:l,allowedTypes:h}){return W({name:"specialNamePathParslet",accept:O(b=>h.includes(b),"accept"),parsePrefix:O(b=>{const x=b.lexer.current.type;if(b.consume(x),!b.consume(":"))return{type:"JsdocTypeName",value:x};let F,z=b.lexer.current;if(b.consume("StringValue"))F={type:"JsdocTypeSpecialNamePath",value:z.text.slice(1,-1),specialType:x,meta:{quote:z.text[0]==="'"?"single":"double"}};else{let _e="";const Ee=["Identifier","@","/"];for(;Ee.some(Me=>b.consume(Me));)_e+=z.text,z=b.lexer.current;F={type:"JsdocTypeSpecialNamePath",value:_e,specialType:x,meta:{quote:void 0}}}const Z=new X(l,b.lexer,b),ce=Z.parseInfixIntermediateType(F,D.ALL);return b.acceptLexerState(Z),k(ce)},"parsePrefix")})}O(ne,"createSpecialNamePathParslet");const de=[re({allowedAdditionalTokens:["external","module"]}),oe,be,Q({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:null})],me=[...de,ne({allowedTypes:["event"],pathGrammar:de})];function pe(l){let h;if(l.type==="JsdocTypeParameterList")h=l.elements;else if(l.type==="JsdocTypeParenthesis")h=[l.element];else throw new d(l);return h.map(b=>I(b))}O(pe,"getParameters");function Be(l){const h=pe(l);if(h.some(b=>b.type==="JsdocTypeKeyValue"))throw new Error("No parameter should be named");return h}O(Be,"getUnnamedParameters");function ot({allowNamedParameters:l,allowNoReturnType:h,allowWithoutParenthesis:b,allowNewAsFunctionKeyword:x}){return W({name:"functionParslet",accept:O((F,z)=>F==="function"||x&&F==="new"&&z==="(","accept"),parsePrefix:O(F=>{const z=F.consume("new");F.consume("function");const Z=F.lexer.current.type==="(";if(!Z){if(!b)throw new Error("function is missing parameter list");return{type:"JsdocTypeName",value:"function"}}let ce={type:"JsdocTypeFunction",parameters:[],arrow:!1,constructor:z,parenthesis:Z};const _e=F.parseIntermediateType(D.FUNCTION);if(l===void 0)ce.parameters=Be(_e);else{if(z&&_e.type==="JsdocTypeFunction"&&_e.arrow)return ce=_e,ce.constructor=!0,ce;ce.parameters=pe(_e);for(const Ee of ce.parameters)if(Ee.type==="JsdocTypeKeyValue"&&!l.includes(Ee.key))throw new Error(`only allowed named parameters are ${l.join(", ")} but got ${Ee.type}`)}if(F.consume(":"))ce.returnType=F.parseType(D.PREFIX);else if(!h)throw new Error("function is missing return type");return ce},"parsePrefix")})}O(ot,"createFunctionParslet");function dt({allowPostfix:l,allowEnclosingBrackets:h}){return W({name:"variadicParslet",accept:O(b=>b==="...","accept"),precedence:D.PREFIX,parsePrefix:O(b=>{b.consume("...");const x=h&&b.consume("[");try{const F=b.parseType(D.PREFIX);if(x&&!b.consume("]"))throw new Error("Unterminated variadic type. Missing ']'");return{type:"JsdocTypeVariadic",element:k(F),meta:{position:"prefix",squareBrackets:x}}}catch(F){if(F instanceof s){if(x)throw new Error("Empty square brackets for variadic are not allowed.");return{type:"JsdocTypeVariadic",meta:{position:void 0,squareBrackets:!1}}}else throw F}},"parsePrefix"),parseInfix:l?(b,x)=>(b.consume("..."),{type:"JsdocTypeVariadic",element:k(x),meta:{position:"suffix",squareBrackets:!1}}):void 0})}O(dt,"createVariadicParslet");const Tt=W({name:"symbolParslet",accept:O(l=>l==="(","accept"),precedence:D.SYMBOL,parseInfix:O((l,h)=>{if(h.type!=="JsdocTypeName")throw new Error("Symbol expects a name on the left side. (Reacting on '(')");l.consume("(");const b={type:"JsdocTypeSymbol",value:h.value};if(!l.consume(")")){const x=l.parseIntermediateType(D.SYMBOL);if(b.element=P(x),!l.consume(")"))throw new Error("Symbol does not end after value")}return b},"parseInfix")}),it=W({name:"arrayBracketsParslet",precedence:D.ARRAY_BRACKETS,accept:O((l,h)=>l==="["&&h==="]","accept"),parseInfix:O((l,h)=>(l.consume("["),l.consume("]"),{type:"JsdocTypeGeneric",left:{type:"JsdocTypeName",value:"Array"},elements:[k(h)],meta:{brackets:"square",dot:!1}}),"parseInfix")});function pt({objectFieldGrammar:l,allowKeyTypes:h}){return W({name:"objectParslet",accept:O(b=>b==="{","accept"),parsePrefix:O(b=>{b.consume("{");const x={type:"JsdocTypeObject",meta:{separator:"comma"},elements:[]};if(!b.consume("}")){let F;const z=new X(l,b.lexer,b);for(;;){z.acceptLexerState(b);let Z=z.parseIntermediateType(D.OBJECT);b.acceptLexerState(z),Z===void 0&&h&&(Z=b.parseIntermediateType(D.OBJECT));let ce=!1;if(Z.type==="JsdocTypeNullable"&&(ce=!0,Z=Z.element),Z.type==="JsdocTypeNumber"||Z.type==="JsdocTypeName"||Z.type==="JsdocTypeStringValue"){let Ee;Z.type==="JsdocTypeStringValue"&&(Ee=Z.meta.quote),x.elements.push({type:"JsdocTypeObjectField",key:Z.value.toString(),right:void 0,optional:ce,readonly:!1,meta:{quote:Ee}})}else if(Z.type==="JsdocTypeObjectField"||Z.type==="JsdocTypeJsdocObjectField")x.elements.push(Z);else throw new d(Z);if(b.lexer.current.startOfLine)F="linebreak",b.consume(",")||b.consume(";");else if(b.consume(","))F="comma";else if(b.consume(";"))F="semicolon";else break;if(b.lexer.current.type==="}")break}if(x.meta.separator=F??"comma",F==="linebreak"&&(x.meta.propertyIndent=" "),!b.consume("}"))throw new Error("Unterminated record type. Missing '}'")}return x},"parsePrefix")})}O(pt,"createObjectParslet");function ft({allowSquaredProperties:l,allowKeyTypes:h,allowReadonly:b,allowOptional:x}){return W({name:"objectFieldParslet",precedence:D.KEY_VALUE,accept:O(F=>F===":","accept"),parseInfix:O((F,z)=>{var Z;let ce=!1,_e=!1;x&&z.type==="JsdocTypeNullable"&&(ce=!0,z=z.element),b&&z.type==="JsdocTypeReadonlyProperty"&&(_e=!0,z=z.element);const Ee=(Z=F.baseParser)!==null&&Z!==void 0?Z:F;if(Ee.acceptLexerState(F),z.type==="JsdocTypeNumber"||z.type==="JsdocTypeName"||z.type==="JsdocTypeStringValue"||B(z)){if(B(z)&&!l)throw new d(z);Ee.consume(":");let Me;z.type==="JsdocTypeStringValue"&&(Me=z.meta.quote);const dr=Ee.parseType(D.KEY_VALUE);return F.acceptLexerState(Ee),{type:"JsdocTypeObjectField",key:B(z)?z:z.value.toString(),right:dr,optional:ce,readonly:_e,meta:{quote:Me}}}else{if(!h)throw new d(z);Ee.consume(":");const Me=Ee.parseType(D.KEY_VALUE);return F.acceptLexerState(Ee),{type:"JsdocTypeJsdocObjectField",left:k(z),right:Me}}},"parseInfix")})}O(ft,"createObjectFieldParslet");function ht({allowOptional:l,allowVariadic:h}){return W({name:"keyValueParslet",precedence:D.KEY_VALUE,accept:O(b=>b===":","accept"),parseInfix:O((b,x)=>{let F=!1,z=!1;if(l&&x.type==="JsdocTypeNullable"&&(F=!0,x=x.element),h&&x.type==="JsdocTypeVariadic"&&x.element!==void 0&&(z=!0,x=x.element),x.type!=="JsdocTypeName")throw new d(x);b.consume(":");const Z=b.parseType(D.KEY_VALUE);return{type:"JsdocTypeKeyValue",key:x.value,right:Z,optional:F,variadic:z}},"parseInfix")})}O(ht,"createKeyValueParslet");const en=[...J,ot({allowWithoutParenthesis:!0,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),oe,ne({allowedTypes:["module","external","event"],pathGrammar:me}),dt({allowEnclosingBrackets:!0,allowPostfix:!0}),re({allowedAdditionalTokens:["keyof"]}),Tt,it,Q({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:me})],Bo=[...en,pt({objectFieldGrammar:[re({allowedAdditionalTokens:["typeof","module","in"]}),ft({allowSquaredProperties:!1,allowKeyTypes:!0,allowOptional:!1,allowReadonly:!1}),...en],allowKeyTypes:!0}),ht({allowOptional:!0,allowVariadic:!0})],tn=W({name:"typeOfParslet",accept:O(l=>l==="typeof","accept"),parsePrefix:O(l=>(l.consume("typeof"),{type:"JsdocTypeTypeof",element:l.parseType(D.KEY_OF_TYPE_OF)}),"parsePrefix")}),$o=[re({allowedAdditionalTokens:["typeof","module","keyof","event","external","in"]}),se,ae,oe,be,ft({allowSquaredProperties:!1,allowKeyTypes:!1,allowOptional:!1,allowReadonly:!1})],Jo=[...J,pt({allowKeyTypes:!1,objectFieldGrammar:$o}),re({allowedAdditionalTokens:["event","external","in"]}),tn,ot({allowWithoutParenthesis:!1,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),dt({allowEnclosingBrackets:!1,allowPostfix:!1}),re({allowedAdditionalTokens:["keyof"]}),ne({allowedTypes:["module"],pathGrammar:me}),Q({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:me}),ht({allowOptional:!1,allowVariadic:!1}),Tt],Uo=W({name:"assertsParslet",accept:O(l=>l==="asserts","accept"),parsePrefix:O(l=>{l.consume("asserts");const h=l.parseIntermediateType(D.SYMBOL);if(h.type!=="JsdocTypeName")throw new d(h,"A typescript asserts always has to have a name on the left side.");return l.consume("is")?{type:"JsdocTypeAsserts",left:h,right:k(l.parseIntermediateType(D.INFIX))}:{type:"JsdocTypeAssertsPlain",element:h}},"parsePrefix")});function rn({allowQuestionMark:l}){return W({name:"tupleParslet",accept:O(h=>h==="[","accept"),parsePrefix:O(h=>{h.consume("[");const b={type:"JsdocTypeTuple",elements:[]};if(h.consume("]"))return b;const x=h.parseIntermediateType(D.ALL);if(x.type==="JsdocTypeParameterList"?x.elements[0].type==="JsdocTypeKeyValue"?b.elements=x.elements.map(H):b.elements=x.elements.map(k):x.type==="JsdocTypeKeyValue"?b.elements=[H(x)]:b.elements=[k(x)],!h.consume("]"))throw new Error("Unterminated '['");if(b.elements.some(F=>F.type==="JsdocTypeUnknown"))throw new Error("Question mark in tuple not allowed");return b},"parsePrefix")})}O(rn,"createTupleParslet");const Vo=W({name:"keyOfParslet",accept:O(l=>l==="keyof","accept"),parsePrefix:O(l=>(l.consume("keyof"),{type:"JsdocTypeKeyof",element:k(l.parseType(D.KEY_OF_TYPE_OF))}),"parsePrefix")}),Ho=W({name:"importParslet",accept:O(l=>l==="import","accept"),parsePrefix:O(l=>{if(l.consume("import"),!l.consume("("))throw new Error("Missing parenthesis after import keyword");const h=l.parseType(D.PREFIX);if(h.type!=="JsdocTypeStringValue")throw new Error("Only string values are allowed as paths for imports");if(!l.consume(")"))throw new Error("Missing closing parenthesis after import keyword");return{type:"JsdocTypeImport",element:h}},"parsePrefix")}),Go=W({name:"readonlyPropertyParslet",accept:O(l=>l==="readonly","accept"),parsePrefix:O(l=>(l.consume("readonly"),{type:"JsdocTypeReadonlyProperty",element:l.parseIntermediateType(D.KEY_VALUE)}),"parsePrefix")}),zo=W({name:"arrowFunctionParslet",precedence:D.ARROW,accept:O(l=>l==="=>","accept"),parseInfix:O((l,h)=>(l.consume("=>"),{type:"JsdocTypeFunction",parameters:pe(h).map(V),arrow:!0,constructor:!1,parenthesis:!0,returnType:l.parseType(D.OBJECT)}),"parseInfix")}),Wo=W({name:"genericArrowFunctionParslet",accept:O(l=>l==="<","accept"),parsePrefix:O(l=>{const h=[];l.consume("<");do{let x,F=l.parseIntermediateType(D.SYMBOL);if(F.type==="JsdocTypeOptional"&&(F=F.element,x=l.parseType(D.SYMBOL)),F.type!=="JsdocTypeName")throw new d(F);let z;l.consume("extends")&&(z=l.parseType(D.SYMBOL),z.type==="JsdocTypeOptional"&&(z=z.element,x=l.parseType(D.SYMBOL)));const Z={type:"JsdocTypeTypeParameter",name:F};if(z!==void 0&&(Z.constraint=z),x!==void 0&&(Z.defaultValue=x),h.push(Z),l.consume(">"))break}while(l.consume(","));const b=l.parseIntermediateType(D.SYMBOL);return b.typeParameters=h,b},"parsePrefix")}),Ko=W({name:"intersectionParslet",accept:O(l=>l==="&","accept"),precedence:D.INTERSECTION,parseInfix:O((l,h)=>{l.consume("&");const b=[];do b.push(l.parseType(D.INTERSECTION));while(l.consume("&"));return{type:"JsdocTypeIntersection",elements:[k(h),...b]}},"parseInfix")}),Yo=W({name:"predicateParslet",precedence:D.INFIX,accept:O(l=>l==="is","accept"),parseInfix:O((l,h)=>{if(h.type!=="JsdocTypeName")throw new d(h,"A typescript predicate always has to have a name on the left side.");return l.consume("is"),{type:"JsdocTypePredicate",left:h,right:k(l.parseIntermediateType(D.INFIX))}},"parseInfix")}),Xo=W({name:"objectSquareBracketPropertyParslet",accept:O(l=>l==="[","accept"),parsePrefix:O(l=>{if(l.baseParser===void 0)throw new Error("Only allowed inside object grammar");l.consume("[");const h=l.lexer.current.text;l.consume("Identifier");let b;if(l.consume(":")){const x=l.baseParser;x.acceptLexerState(l),b={type:"JsdocTypeIndexSignature",key:h,right:x.parseType(D.INDEX_BRACKETS)},l.acceptLexerState(x)}else if(l.consume("in")){const x=l.baseParser;x.acceptLexerState(l),b={type:"JsdocTypeMappedType",key:h,right:x.parseType(D.ARRAY_BRACKETS)},l.acceptLexerState(x)}else throw new Error("Missing ':' or 'in' inside square bracketed property.");if(!l.consume("]"))throw new Error("Unterminated square brackets");return b},"parsePrefix")}),Qo=W({name:"readonlyArrayParslet",accept:O(l=>l==="readonly","accept"),parsePrefix:O(l=>(l.consume("readonly"),{type:"JsdocTypeReadonlyArray",element:L(l.parseIntermediateType(D.ALL))}),"parsePrefix")}),Zo=W({name:"conditionalParslet",precedence:D.INFIX,accept:O(l=>l==="extends","accept"),parseInfix:O((l,h)=>{l.consume("extends");const b=l.parseType(D.KEY_OF_TYPE_OF).element,x=l.parseType(D.INFIX);return l.consume(":"),{type:"JsdocTypeConditional",checksType:k(h),extendsType:b,trueType:x,falseType:l.parseType(D.INFIX)}},"parseInfix")}),ei=[Go,re({allowedAdditionalTokens:["typeof","module","keyof","event","external","in"]}),se,ae,oe,be,ft({allowSquaredProperties:!0,allowKeyTypes:!1,allowOptional:!0,allowReadonly:!0}),Xo],ti=[...J,pt({allowKeyTypes:!1,objectFieldGrammar:ei}),Qo,tn,Vo,Ho,oe,ot({allowWithoutParenthesis:!0,allowNoReturnType:!1,allowNamedParameters:["this","new","args"],allowNewAsFunctionKeyword:!0}),rn({allowQuestionMark:!1}),dt({allowEnclosingBrackets:!1,allowPostfix:!1}),Uo,Zo,re({allowedAdditionalTokens:["event","external","in"]}),ne({allowedTypes:["module"],pathGrammar:me}),it,zo,Wo,Q({allowSquareBracketsOnAnyType:!0,allowJsdocNamePaths:!1,pathGrammar:me}),Ko,Yo,ht({allowVariadic:!0,allowOptional:!0})];function lr(l,h){switch(h){case"closure":return new X(Jo,l).parse();case"jsdoc":return new X(Bo,l).parse();case"typescript":return new X(ti,l).parse()}}O(lr,"parse");function nn(l,h=["typescript","closure","jsdoc"]){let b;for(const x of h)try{return lr(l,x)}catch(F){b=F}throw b}O(nn,"tryParse");function Y(l,h){const b=l[h.type];if(b===void 0)throw new Error(`In this set of transform rules exists no rule for type ${h.type}.`);return b(h,x=>Y(l,x))}O(Y,"transform");function le(l){throw new Error("This transform is not available. Are you trying the correct parsing mode?")}O(le,"notAvailableTransform");function Nt(l){const h={params:[]};for(const b of l.parameters)b.type==="JsdocTypeKeyValue"?b.key==="this"?h.this=b.right:b.key==="new"?h.new=b.right:h.params.push(b):h.params.push(b);return h}O(Nt,"extractSpecialParams");function Bt(l,h,b){return l==="prefix"?b+h:h+b}O(Bt,"applyPosition");function Ke(l,h){switch(h){case"double":return`"${l}"`;case"single":return`'${l}'`;case void 0:return l}}O(Ke,"quote");function on(){return{JsdocTypeParenthesis:O((l,h)=>`(${l.element!==void 0?h(l.element):""})`,"JsdocTypeParenthesis"),JsdocTypeKeyof:O((l,h)=>`keyof ${h(l.element)}`,"JsdocTypeKeyof"),JsdocTypeFunction:O((l,h)=>{var b;if(l.arrow){if(l.returnType===void 0)throw new Error("Arrow function needs a return type.");let x=`${l.typeParameters!==void 0?`<${(b=l.typeParameters.map(h).join(", "))!==null&&b!==void 0?b:""}>`:""}(${l.parameters.map(h).join(", ")}) => ${h(l.returnType)}`;return l.constructor&&(x="new "+x),x}else{let x=l.constructor?"new":"function";return l.parenthesis&&(x+=`(${l.parameters.map(h).join(", ")})`,l.returnType!==void 0&&(x+=`: ${h(l.returnType)}`)),x}},"JsdocTypeFunction"),JsdocTypeName:O(l=>l.value,"JsdocTypeName"),JsdocTypeTuple:O((l,h)=>`[${l.elements.map(h).join(", ")}]`,"JsdocTypeTuple"),JsdocTypeVariadic:O((l,h)=>l.meta.position===void 0?"...":Bt(l.meta.position,h(l.element),"..."),"JsdocTypeVariadic"),JsdocTypeNamePath:O((l,h)=>{const b=h(l.left),x=h(l.right);switch(l.pathType){case"inner":return`${b}~${x}`;case"instance":return`${b}#${x}`;case"property":return`${b}.${x}`;case"property-brackets":return`${b}[${x}]`}},"JsdocTypeNamePath"),JsdocTypeStringValue:O(l=>Ke(l.value,l.meta.quote),"JsdocTypeStringValue"),JsdocTypeAny:O(()=>"*","JsdocTypeAny"),JsdocTypeGeneric:O((l,h)=>{if(l.meta.brackets==="square"){const b=l.elements[0],x=h(b);return b.type==="JsdocTypeUnion"||b.type==="JsdocTypeIntersection"?`(${x})[]`:`${x}[]`}else return`${h(l.left)}${l.meta.dot?".":""}<${l.infer===!0?"infer ":""}${l.elements.map(h).join(", ")}>`},"JsdocTypeGeneric"),JsdocTypeImport:O((l,h)=>`import(${h(l.element)})`,"JsdocTypeImport"),JsdocTypeObjectField:O((l,h)=>{let b="";return l.readonly&&(b+="readonly "),typeof l.key=="string"?b+=Ke(l.key,l.meta.quote):b+=h(l.key),l.optional&&(b+="?"),l.right===void 0?b:b+`: ${h(l.right)}`},"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:O((l,h)=>`${h(l.left)}: ${h(l.right)}`,"JsdocTypeJsdocObjectField"),JsdocTypeKeyValue:O((l,h)=>{let b=l.key;return l.optional&&(b+="?"),l.variadic&&(b="..."+b),l.right===void 0?b:b+`: ${h(l.right)}`},"JsdocTypeKeyValue"),JsdocTypeSpecialNamePath:O(l=>`${l.specialType}:${Ke(l.value,l.meta.quote)}`,"JsdocTypeSpecialNamePath"),JsdocTypeNotNullable:O((l,h)=>Bt(l.meta.position,h(l.element),"!"),"JsdocTypeNotNullable"),JsdocTypeNull:O(()=>"null","JsdocTypeNull"),JsdocTypeNullable:O((l,h)=>Bt(l.meta.position,h(l.element),"?"),"JsdocTypeNullable"),JsdocTypeNumber:O(l=>l.value.toString(),"JsdocTypeNumber"),JsdocTypeObject:O((l,h)=>{var b,x;return`{${(l.meta.separator==="linebreak"&&l.elements.length>1?`
|
|
1010
|
+
`+((b=l.meta.propertyIndent)!==null&&b!==void 0?b:""):"")+l.elements.map(h).join(l.meta.separator==="comma"?", ":l.meta.separator==="linebreak"?`
|
|
1011
|
+
`+((x=l.meta.propertyIndent)!==null&&x!==void 0?x:""):"; ")+(l.meta.separator==="linebreak"&&l.elements.length>1?`
|
|
1012
|
+
`:"")}}`},"JsdocTypeObject"),JsdocTypeOptional:O((l,h)=>Bt(l.meta.position,h(l.element),"="),"JsdocTypeOptional"),JsdocTypeSymbol:O((l,h)=>`${l.value}(${l.element!==void 0?h(l.element):""})`,"JsdocTypeSymbol"),JsdocTypeTypeof:O((l,h)=>`typeof ${h(l.element)}`,"JsdocTypeTypeof"),JsdocTypeUndefined:O(()=>"undefined","JsdocTypeUndefined"),JsdocTypeUnion:O((l,h)=>l.elements.map(h).join(" | "),"JsdocTypeUnion"),JsdocTypeUnknown:O(()=>"?","JsdocTypeUnknown"),JsdocTypeIntersection:O((l,h)=>l.elements.map(h).join(" & "),"JsdocTypeIntersection"),JsdocTypeProperty:O(l=>Ke(l.value,l.meta.quote),"JsdocTypeProperty"),JsdocTypePredicate:O((l,h)=>`${h(l.left)} is ${h(l.right)}`,"JsdocTypePredicate"),JsdocTypeIndexSignature:O((l,h)=>`[${l.key}: ${h(l.right)}]`,"JsdocTypeIndexSignature"),JsdocTypeMappedType:O((l,h)=>`[${l.key} in ${h(l.right)}]`,"JsdocTypeMappedType"),JsdocTypeAsserts:O((l,h)=>`asserts ${h(l.left)} is ${h(l.right)}`,"JsdocTypeAsserts"),JsdocTypeReadonlyArray:O((l,h)=>`readonly ${h(l.element)}`,"JsdocTypeReadonlyArray"),JsdocTypeAssertsPlain:O((l,h)=>`asserts ${h(l.element)}`,"JsdocTypeAssertsPlain"),JsdocTypeConditional:O((l,h)=>`${h(l.checksType)} extends ${h(l.extendsType)} ? ${h(l.trueType)} : ${h(l.falseType)}`,"JsdocTypeConditional"),JsdocTypeTypeParameter:O((l,h)=>`${h(l.name)}${l.constraint!==void 0?` extends ${h(l.constraint)}`:""}${l.defaultValue!==void 0?` = ${h(l.defaultValue)}`:""}`,"JsdocTypeTypeParameter")}}O(on,"stringifyRules");const Ic=on();function ri(l){return Y(Ic,l)}O(ri,"stringify");const Mc=["null","true","false","break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield"];function Ye(l){const h={type:"NameExpression",name:l};return Mc.includes(l)&&(h.reservedWord=!0),h}O(Ye,"makeName");const qc={JsdocTypeOptional:O((l,h)=>{const b=h(l.element);return b.optional=!0,b},"JsdocTypeOptional"),JsdocTypeNullable:O((l,h)=>{const b=h(l.element);return b.nullable=!0,b},"JsdocTypeNullable"),JsdocTypeNotNullable:O((l,h)=>{const b=h(l.element);return b.nullable=!1,b},"JsdocTypeNotNullable"),JsdocTypeVariadic:O((l,h)=>{if(l.element===void 0)throw new Error("dots without value are not allowed in catharsis mode");const b=h(l.element);return b.repeatable=!0,b},"JsdocTypeVariadic"),JsdocTypeAny:O(()=>({type:"AllLiteral"}),"JsdocTypeAny"),JsdocTypeNull:O(()=>({type:"NullLiteral"}),"JsdocTypeNull"),JsdocTypeStringValue:O(l=>Ye(Ke(l.value,l.meta.quote)),"JsdocTypeStringValue"),JsdocTypeUndefined:O(()=>({type:"UndefinedLiteral"}),"JsdocTypeUndefined"),JsdocTypeUnknown:O(()=>({type:"UnknownLiteral"}),"JsdocTypeUnknown"),JsdocTypeFunction:O((l,h)=>{const b=Nt(l),x={type:"FunctionType",params:b.params.map(h)};return b.this!==void 0&&(x.this=h(b.this)),b.new!==void 0&&(x.new=h(b.new)),l.returnType!==void 0&&(x.result=h(l.returnType)),x},"JsdocTypeFunction"),JsdocTypeGeneric:O((l,h)=>({type:"TypeApplication",applications:l.elements.map(b=>h(b)),expression:h(l.left)}),"JsdocTypeGeneric"),JsdocTypeSpecialNamePath:O(l=>Ye(l.specialType+":"+Ke(l.value,l.meta.quote)),"JsdocTypeSpecialNamePath"),JsdocTypeName:O(l=>l.value!=="function"?Ye(l.value):{type:"FunctionType",params:[]},"JsdocTypeName"),JsdocTypeNumber:O(l=>Ye(l.value.toString()),"JsdocTypeNumber"),JsdocTypeObject:O((l,h)=>{const b={type:"RecordType",fields:[]};for(const x of l.elements)x.type!=="JsdocTypeObjectField"&&x.type!=="JsdocTypeJsdocObjectField"?b.fields.push({type:"FieldType",key:h(x),value:void 0}):b.fields.push(h(x));return b},"JsdocTypeObject"),JsdocTypeObjectField:O((l,h)=>{if(typeof l.key!="string")throw new Error("Index signatures and mapped types are not supported");return{type:"FieldType",key:Ye(Ke(l.key,l.meta.quote)),value:l.right===void 0?void 0:h(l.right)}},"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:O((l,h)=>({type:"FieldType",key:h(l.left),value:h(l.right)}),"JsdocTypeJsdocObjectField"),JsdocTypeUnion:O((l,h)=>({type:"TypeUnion",elements:l.elements.map(b=>h(b))}),"JsdocTypeUnion"),JsdocTypeKeyValue:O((l,h)=>({type:"FieldType",key:Ye(l.key),value:l.right===void 0?void 0:h(l.right)}),"JsdocTypeKeyValue"),JsdocTypeNamePath:O((l,h)=>{const b=h(l.left);let x;l.right.type==="JsdocTypeSpecialNamePath"?x=h(l.right).name:x=Ke(l.right.value,l.right.meta.quote);const F=l.pathType==="inner"?"~":l.pathType==="instance"?"#":".";return Ye(`${b.name}${F}${x}`)},"JsdocTypeNamePath"),JsdocTypeSymbol:O(l=>{let h="",b=l.element,x=!1;return b?.type==="JsdocTypeVariadic"&&(b.meta.position==="prefix"?h="...":x=!0,b=b.element),b?.type==="JsdocTypeName"?h+=b.value:b?.type==="JsdocTypeNumber"&&(h+=b.value.toString()),x&&(h+="..."),Ye(`${l.value}(${h})`)},"JsdocTypeSymbol"),JsdocTypeParenthesis:O((l,h)=>h(k(l.element)),"JsdocTypeParenthesis"),JsdocTypeMappedType:le,JsdocTypeIndexSignature:le,JsdocTypeImport:le,JsdocTypeKeyof:le,JsdocTypeTuple:le,JsdocTypeTypeof:le,JsdocTypeIntersection:le,JsdocTypeProperty:le,JsdocTypePredicate:le,JsdocTypeAsserts:le,JsdocTypeReadonlyArray:le,JsdocTypeAssertsPlain:le,JsdocTypeConditional:le,JsdocTypeTypeParameter:le};function ni(l){return Y(qc,l)}O(ni,"catharsisTransform");function st(l){switch(l){case void 0:return"none";case"single":return"single";case"double":return"double"}}O(st,"getQuoteStyle");function oi(l){switch(l){case"inner":return"INNER_MEMBER";case"instance":return"INSTANCE_MEMBER";case"property":return"MEMBER";case"property-brackets":return"MEMBER"}}O(oi,"getMemberType");function cr(l,h){return h.length===2?{type:l,left:h[0],right:h[1]}:{type:l,left:h[0],right:cr(l,h.slice(1))}}O(cr,"nestResults");const jc={JsdocTypeOptional:O((l,h)=>({type:"OPTIONAL",value:h(l.element),meta:{syntax:l.meta.position==="prefix"?"PREFIX_EQUAL_SIGN":"SUFFIX_EQUALS_SIGN"}}),"JsdocTypeOptional"),JsdocTypeNullable:O((l,h)=>({type:"NULLABLE",value:h(l.element),meta:{syntax:l.meta.position==="prefix"?"PREFIX_QUESTION_MARK":"SUFFIX_QUESTION_MARK"}}),"JsdocTypeNullable"),JsdocTypeNotNullable:O((l,h)=>({type:"NOT_NULLABLE",value:h(l.element),meta:{syntax:l.meta.position==="prefix"?"PREFIX_BANG":"SUFFIX_BANG"}}),"JsdocTypeNotNullable"),JsdocTypeVariadic:O((l,h)=>{const b={type:"VARIADIC",meta:{syntax:l.meta.position==="prefix"?"PREFIX_DOTS":l.meta.position==="suffix"?"SUFFIX_DOTS":"ONLY_DOTS"}};return l.element!==void 0&&(b.value=h(l.element)),b},"JsdocTypeVariadic"),JsdocTypeName:O(l=>({type:"NAME",name:l.value}),"JsdocTypeName"),JsdocTypeTypeof:O((l,h)=>({type:"TYPE_QUERY",name:h(l.element)}),"JsdocTypeTypeof"),JsdocTypeTuple:O((l,h)=>({type:"TUPLE",entries:l.elements.map(h)}),"JsdocTypeTuple"),JsdocTypeKeyof:O((l,h)=>({type:"KEY_QUERY",value:h(l.element)}),"JsdocTypeKeyof"),JsdocTypeImport:O(l=>({type:"IMPORT",path:{type:"STRING_VALUE",quoteStyle:st(l.element.meta.quote),string:l.element.value}}),"JsdocTypeImport"),JsdocTypeUndefined:O(()=>({type:"NAME",name:"undefined"}),"JsdocTypeUndefined"),JsdocTypeAny:O(()=>({type:"ANY"}),"JsdocTypeAny"),JsdocTypeFunction:O((l,h)=>{const b=Nt(l),x={type:l.arrow?"ARROW":"FUNCTION",params:b.params.map(F=>{if(F.type==="JsdocTypeKeyValue"){if(F.right===void 0)throw new Error("Function parameter without ':' is not expected to be 'KEY_VALUE'");return{type:"NAMED_PARAMETER",name:F.key,typeName:h(F.right)}}else return h(F)}),new:null,returns:null};return b.this!==void 0?x.this=h(b.this):l.arrow||(x.this=null),b.new!==void 0&&(x.new=h(b.new)),l.returnType!==void 0&&(x.returns=h(l.returnType)),x},"JsdocTypeFunction"),JsdocTypeGeneric:O((l,h)=>{const b={type:"GENERIC",subject:h(l.left),objects:l.elements.map(h),meta:{syntax:l.meta.brackets==="square"?"SQUARE_BRACKET":l.meta.dot?"ANGLE_BRACKET_WITH_DOT":"ANGLE_BRACKET"}};return l.meta.brackets==="square"&&l.elements[0].type==="JsdocTypeFunction"&&!l.elements[0].parenthesis&&(b.objects[0]={type:"NAME",name:"function"}),b},"JsdocTypeGeneric"),JsdocTypeObjectField:O((l,h)=>{if(typeof l.key!="string")throw new Error("Index signatures and mapped types are not supported");if(l.right===void 0)return{type:"RECORD_ENTRY",key:l.key,quoteStyle:st(l.meta.quote),value:null,readonly:!1};let b=h(l.right);return l.optional&&(b={type:"OPTIONAL",value:b,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:l.key.toString(),quoteStyle:st(l.meta.quote),value:b,readonly:!1}},"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:O(()=>{throw new Error("Keys may not be typed in jsdoctypeparser.")},"JsdocTypeJsdocObjectField"),JsdocTypeKeyValue:O((l,h)=>{if(l.right===void 0)return{type:"RECORD_ENTRY",key:l.key,quoteStyle:"none",value:null,readonly:!1};let b=h(l.right);return l.optional&&(b={type:"OPTIONAL",value:b,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:l.key,quoteStyle:"none",value:b,readonly:!1}},"JsdocTypeKeyValue"),JsdocTypeObject:O((l,h)=>{const b=[];for(const x of l.elements)(x.type==="JsdocTypeObjectField"||x.type==="JsdocTypeJsdocObjectField")&&b.push(h(x));return{type:"RECORD",entries:b}},"JsdocTypeObject"),JsdocTypeSpecialNamePath:O(l=>{if(l.specialType!=="module")throw new Error(`jsdoctypeparser does not support type ${l.specialType} at this point.`);return{type:"MODULE",value:{type:"FILE_PATH",quoteStyle:st(l.meta.quote),path:l.value}}},"JsdocTypeSpecialNamePath"),JsdocTypeNamePath:O((l,h)=>{let b=!1,x,F;l.right.type==="JsdocTypeSpecialNamePath"&&l.right.specialType==="event"?(b=!0,x=l.right.value,F=st(l.right.meta.quote)):(x=l.right.value,F=st(l.right.meta.quote));const z={type:oi(l.pathType),owner:h(l.left),name:x,quoteStyle:F,hasEventPrefix:b};if(z.owner.type==="MODULE"){const Z=z.owner;return z.owner=z.owner.value,Z.value=z,Z}else return z},"JsdocTypeNamePath"),JsdocTypeUnion:O((l,h)=>cr("UNION",l.elements.map(h)),"JsdocTypeUnion"),JsdocTypeParenthesis:O((l,h)=>({type:"PARENTHESIS",value:h(k(l.element))}),"JsdocTypeParenthesis"),JsdocTypeNull:O(()=>({type:"NAME",name:"null"}),"JsdocTypeNull"),JsdocTypeUnknown:O(()=>({type:"UNKNOWN"}),"JsdocTypeUnknown"),JsdocTypeStringValue:O(l=>({type:"STRING_VALUE",quoteStyle:st(l.meta.quote),string:l.value}),"JsdocTypeStringValue"),JsdocTypeIntersection:O((l,h)=>cr("INTERSECTION",l.elements.map(h)),"JsdocTypeIntersection"),JsdocTypeNumber:O(l=>({type:"NUMBER_VALUE",number:l.value.toString()}),"JsdocTypeNumber"),JsdocTypeSymbol:le,JsdocTypeProperty:le,JsdocTypePredicate:le,JsdocTypeMappedType:le,JsdocTypeIndexSignature:le,JsdocTypeAsserts:le,JsdocTypeReadonlyArray:le,JsdocTypeAssertsPlain:le,JsdocTypeConditional:le,JsdocTypeTypeParameter:le};function ii(l){return Y(jc,l)}O(ii,"jtpTransform");function si(){return{JsdocTypeIntersection:O((l,h)=>({type:"JsdocTypeIntersection",elements:l.elements.map(h)}),"JsdocTypeIntersection"),JsdocTypeGeneric:O((l,h)=>({type:"JsdocTypeGeneric",left:h(l.left),elements:l.elements.map(h),meta:{dot:l.meta.dot,brackets:l.meta.brackets}}),"JsdocTypeGeneric"),JsdocTypeNullable:O(l=>l,"JsdocTypeNullable"),JsdocTypeUnion:O((l,h)=>({type:"JsdocTypeUnion",elements:l.elements.map(h)}),"JsdocTypeUnion"),JsdocTypeUnknown:O(l=>l,"JsdocTypeUnknown"),JsdocTypeUndefined:O(l=>l,"JsdocTypeUndefined"),JsdocTypeTypeof:O((l,h)=>({type:"JsdocTypeTypeof",element:h(l.element)}),"JsdocTypeTypeof"),JsdocTypeSymbol:O((l,h)=>{const b={type:"JsdocTypeSymbol",value:l.value};return l.element!==void 0&&(b.element=h(l.element)),b},"JsdocTypeSymbol"),JsdocTypeOptional:O((l,h)=>({type:"JsdocTypeOptional",element:h(l.element),meta:{position:l.meta.position}}),"JsdocTypeOptional"),JsdocTypeObject:O((l,h)=>({type:"JsdocTypeObject",meta:{separator:"comma"},elements:l.elements.map(h)}),"JsdocTypeObject"),JsdocTypeNumber:O(l=>l,"JsdocTypeNumber"),JsdocTypeNull:O(l=>l,"JsdocTypeNull"),JsdocTypeNotNullable:O((l,h)=>({type:"JsdocTypeNotNullable",element:h(l.element),meta:{position:l.meta.position}}),"JsdocTypeNotNullable"),JsdocTypeSpecialNamePath:O(l=>l,"JsdocTypeSpecialNamePath"),JsdocTypeObjectField:O((l,h)=>({type:"JsdocTypeObjectField",key:l.key,right:l.right===void 0?void 0:h(l.right),optional:l.optional,readonly:l.readonly,meta:l.meta}),"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:O((l,h)=>({type:"JsdocTypeJsdocObjectField",left:h(l.left),right:h(l.right)}),"JsdocTypeJsdocObjectField"),JsdocTypeKeyValue:O((l,h)=>({type:"JsdocTypeKeyValue",key:l.key,right:l.right===void 0?void 0:h(l.right),optional:l.optional,variadic:l.variadic}),"JsdocTypeKeyValue"),JsdocTypeImport:O((l,h)=>({type:"JsdocTypeImport",element:h(l.element)}),"JsdocTypeImport"),JsdocTypeAny:O(l=>l,"JsdocTypeAny"),JsdocTypeStringValue:O(l=>l,"JsdocTypeStringValue"),JsdocTypeNamePath:O(l=>l,"JsdocTypeNamePath"),JsdocTypeVariadic:O((l,h)=>{const b={type:"JsdocTypeVariadic",meta:{position:l.meta.position,squareBrackets:l.meta.squareBrackets}};return l.element!==void 0&&(b.element=h(l.element)),b},"JsdocTypeVariadic"),JsdocTypeTuple:O((l,h)=>({type:"JsdocTypeTuple",elements:l.elements.map(h)}),"JsdocTypeTuple"),JsdocTypeName:O(l=>l,"JsdocTypeName"),JsdocTypeFunction:O((l,h)=>{const b={type:"JsdocTypeFunction",arrow:l.arrow,parameters:l.parameters.map(h),constructor:l.constructor,parenthesis:l.parenthesis};return l.returnType!==void 0&&(b.returnType=h(l.returnType)),b},"JsdocTypeFunction"),JsdocTypeKeyof:O((l,h)=>({type:"JsdocTypeKeyof",element:h(l.element)}),"JsdocTypeKeyof"),JsdocTypeParenthesis:O((l,h)=>({type:"JsdocTypeParenthesis",element:h(l.element)}),"JsdocTypeParenthesis"),JsdocTypeProperty:O(l=>l,"JsdocTypeProperty"),JsdocTypePredicate:O((l,h)=>({type:"JsdocTypePredicate",left:h(l.left),right:h(l.right)}),"JsdocTypePredicate"),JsdocTypeIndexSignature:O((l,h)=>({type:"JsdocTypeIndexSignature",key:l.key,right:h(l.right)}),"JsdocTypeIndexSignature"),JsdocTypeMappedType:O((l,h)=>({type:"JsdocTypeMappedType",key:l.key,right:h(l.right)}),"JsdocTypeMappedType"),JsdocTypeAsserts:O((l,h)=>({type:"JsdocTypeAsserts",left:h(l.left),right:h(l.right)}),"JsdocTypeAsserts"),JsdocTypeReadonlyArray:O((l,h)=>({type:"JsdocTypeReadonlyArray",element:h(l.element)}),"JsdocTypeReadonlyArray"),JsdocTypeAssertsPlain:O((l,h)=>({type:"JsdocTypeAssertsPlain",element:h(l.element)}),"JsdocTypeAssertsPlain"),JsdocTypeConditional:O((l,h)=>({type:"JsdocTypeConditional",checksType:h(l.checksType),extendsType:h(l.extendsType),trueType:h(l.trueType),falseType:h(l.falseType)}),"JsdocTypeConditional"),JsdocTypeTypeParameter:O((l,h)=>({type:"JsdocTypeTypeParameter",name:h(l.name),constraint:l.constraint!==void 0?h(l.constraint):void 0,defaultValue:l.defaultValue!==void 0?h(l.defaultValue):void 0}),"JsdocTypeTypeParameter")}}O(si,"identityTransformRules");const ai={JsdocTypeAny:[],JsdocTypeFunction:["parameters","returnType"],JsdocTypeGeneric:["left","elements"],JsdocTypeImport:[],JsdocTypeIndexSignature:["right"],JsdocTypeIntersection:["elements"],JsdocTypeKeyof:["element"],JsdocTypeKeyValue:["right"],JsdocTypeMappedType:["right"],JsdocTypeName:[],JsdocTypeNamePath:["left","right"],JsdocTypeNotNullable:["element"],JsdocTypeNull:[],JsdocTypeNullable:["element"],JsdocTypeNumber:[],JsdocTypeObject:["elements"],JsdocTypeObjectField:["right"],JsdocTypeJsdocObjectField:["left","right"],JsdocTypeOptional:["element"],JsdocTypeParenthesis:["element"],JsdocTypeSpecialNamePath:[],JsdocTypeStringValue:[],JsdocTypeSymbol:["element"],JsdocTypeTuple:["elements"],JsdocTypeTypeof:["element"],JsdocTypeUndefined:[],JsdocTypeUnion:["elements"],JsdocTypeUnknown:[],JsdocTypeVariadic:["element"],JsdocTypeProperty:[],JsdocTypePredicate:["left","right"],JsdocTypeAsserts:["left","right"],JsdocTypeReadonlyArray:["element"],JsdocTypeAssertsPlain:["element"],JsdocTypeConditional:["checksType","extendsType","trueType","falseType"],JsdocTypeTypeParameter:["name","constraint","defaultValue"]};function ur(l,h,b,x,F){x?.(l,h,b);const z=ai[l.type];for(const Z of z){const ce=l[Z];if(ce!==void 0)if(Array.isArray(ce))for(const _e of ce)ur(_e,l,Z,x,F);else ur(ce,l,Z,x,F)}F?.(l,h,b)}O(ur,"_traverse");function li(l,h,b){ur(l,void 0,void 0,h,b)}O(li,"traverse"),r.catharsisTransform=ni,r.identityTransformRules=si,r.jtpTransform=ii,r.parse=lr,r.stringify=ri,r.stringifyRules=on,r.transform=Y,r.traverse=li,r.tryParse=nn,r.visitorKeys=ai})}});const{UnknownArgTypesError:fW}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{UnknownArgTypesError:hW}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var YH=["null","undefined"];function Ac(e){return YH.some(t=>t===e)}O(Ac,"isDefaultValueBlacklisted");var XH=O(e=>{if(!e)return"";if(typeof e=="string")return e;throw new Error(`Description: expected string, got: ${JSON.stringify(e)}`)},"str");function _y(e){return!!e.__docgenInfo}O(_y,"hasDocgen");function QH(e){return e!=null&&Object.keys(e).length>0}O(QH,"isValidDocgenSection");function ZH(e,t){return _y(e)?e.__docgenInfo[t]:null}O(ZH,"getDocgenSection");function kN(e){return _y(e)?XH(e.__docgenInfo.description):""}O(kN,"getDocgenDescription");var Ur;(function(e){e.start="/**",e.nostart="/***",e.delim="*",e.end="*/"})(Ur=Ur||(Ur={}));function DN(e){return/^\s+$/.test(e)}O(DN,"isSpace");function LN(e){const t=e.match(/\r+$/);return t==null?["",e]:[e.slice(-t[0].length),e.slice(0,-t[0].length)]}O(LN,"splitCR");function En(e){const t=e.match(/^\s+/);return t==null?["",e]:[e.slice(0,t[0].length),e.slice(t[0].length)]}O(En,"splitSpace");function FN(e){return e.split(/\n/)}O(FN,"splitLines");function BN(e={}){return Object.assign({tag:"",name:"",type:"",optional:!1,description:"",problems:[],source:[]},e)}O(BN,"seedSpec");function $N(e={}){return Object.assign({start:"",delimiter:"",postDelimiter:"",tag:"",postTag:"",name:"",postName:"",type:"",postType:"",description:"",end:"",lineEnd:""},e)}O($N,"seedTokens");var e3=/^@\S+/;function JN({fence:e="```"}={}){const t=UN(e),r=O((n,o)=>t(n)?!o:o,"toggleFence");return O(function(o){const s=[[]];let a=!1;for(const c of o)e3.test(c.tokens.description)&&!a?s.push([c]):s[s.length-1].push(c),a=r(c.tokens.description,a);return s},"parseBlock")}O(JN,"getParser");function UN(e){return typeof e=="string"?t=>t.split(e).length%2===0:e}O(UN,"getFencer");function VN({startLine:e=0,markers:t=Ur}={}){let r=null,n=e;return O(function(s){let a=s;const c=$N();if([c.lineEnd,a]=LN(a),[c.start,a]=En(a),r===null&&a.startsWith(t.start)&&!a.startsWith(t.nostart)&&(r=[],c.delimiter=a.slice(0,t.start.length),a=a.slice(t.start.length),[c.postDelimiter,a]=En(a)),r===null)return n++,null;const u=a.trimRight().endsWith(t.end);if(c.delimiter===""&&a.startsWith(t.delim)&&!a.startsWith(t.end)&&(c.delimiter=t.delim,a=a.slice(t.delim.length),[c.postDelimiter,a]=En(a)),u){const d=a.trimRight();c.end=a.slice(d.length-t.end.length),a=d.slice(0,-t.end.length)}if(c.description=a,r.push({number:n,source:s,tokens:c}),n++,u){const d=r.slice();return r=null,d}return null},"parseSource")}O(VN,"getParser");function HN({tokenizers:e}){return O(function(r){var n;let o=BN({source:r});for(const s of e)if(o=s(o),!((n=o.problems[o.problems.length-1])===null||n===void 0)&&n.critical)break;return o},"parseSpec")}O(HN,"getParser");function GN(){return e=>{const{tokens:t}=e.source[0],r=t.description.match(/\s*(@(\S+))(\s*)/);return r===null?(e.problems.push({code:"spec:tag:prefix",message:'tag should start with "@" symbol',line:e.source[0].number,critical:!0}),e):(t.tag=r[1],t.postTag=r[3],t.description=t.description.slice(r[0].length),e.tag=r[2],e)}}O(GN,"tagTokenizer");function zN(e="compact"){const t=WN(e);return r=>{let n=0,o=[];for(const[c,{tokens:u}]of r.source.entries()){let d="";if(c===0&&u.description[0]!=="{")return r;for(const p of u.description)if(p==="{"&&n++,p==="}"&&n--,d+=p,n===0)break;if(o.push([u,d]),n===0)break}if(n!==0)return r.problems.push({code:"spec:type:unpaired-curlies",message:"unpaired curlies",line:r.source[0].number,critical:!0}),r;const s=[],a=o[0][0].postDelimiter.length;for(const[c,[u,d]]of o.entries())u.type=d,c>0&&(u.type=u.postDelimiter.slice(a)+d,u.postDelimiter=u.postDelimiter.slice(0,a)),[u.postType,u.description]=En(u.description.slice(d.length)),s.push(u.type);return s[0]=s[0].slice(1),s[s.length-1]=s[s.length-1].slice(0,-1),r.type=t(s),r}}O(zN,"typeTokenizer");var t3=O(e=>e.trim(),"trim");function WN(e){return e==="compact"?t=>t.map(t3).join(""):e==="preserve"?t=>t.join(`
|
|
1013
|
+
`):e}O(WN,"getJoiner");var r3=O(e=>e&&e.startsWith('"')&&e.endsWith('"'),"isQuoted");function KN(){const e=O((t,{tokens:r},n)=>r.type===""?t:n,"typeEnd");return t=>{const{tokens:r}=t.source[t.source.reduce(e,0)],n=r.description.trimLeft(),o=n.split('"');if(o.length>1&&o[0]===""&&o.length%2===1)return t.name=o[1],r.name=`"${o[1]}"`,[r.postName,r.description]=En(n.slice(r.name.length)),t;let s=0,a="",c=!1,u;for(const p of n){if(s===0&&DN(p))break;p==="["&&s++,p==="]"&&s--,a+=p}if(s!==0)return t.problems.push({code:"spec:name:unpaired-brackets",message:"unpaired brackets",line:t.source[0].number,critical:!0}),t;const d=a;if(a[0]==="["&&a[a.length-1]==="]"){c=!0,a=a.slice(1,-1);const p=a.split("=");if(a=p[0].trim(),p[1]!==void 0&&(u=p.slice(1).join("=").trim()),a==="")return t.problems.push({code:"spec:name:empty-name",message:"empty name",line:t.source[0].number,critical:!0}),t;if(u==="")return t.problems.push({code:"spec:name:empty-default",message:"empty default value",line:t.source[0].number,critical:!0}),t;if(!r3(u)&&/=(?!>)/.test(u))return t.problems.push({code:"spec:name:invalid-default",message:"invalid default value syntax",line:t.source[0].number,critical:!0}),t}return t.optional=c,t.name=a,r.name=d,u!==void 0&&(t.default=u),[r.postName,r.description]=En(n.slice(r.name.length)),t}}O(KN,"nameTokenizer");function YN(e="compact",t=Ur){const r=Sy(e);return n=>(n.description=r(n.source,t),n)}O(YN,"descriptionTokenizer");function Sy(e){return e==="compact"?XN:e==="preserve"?QN:e}O(Sy,"getJoiner");function XN(e,t=Ur){return e.map(({tokens:{description:r}})=>r.trim()).filter(r=>r!=="").join(" ")}O(XN,"compactJoiner");var n3=O((e,{tokens:t},r)=>t.type===""?e:r,"lineNo"),o3=O(({tokens:e})=>(e.delimiter===""?e.start:e.postDelimiter.slice(1))+e.description,"getDescription");function QN(e,t=Ur){if(e.length===0)return"";e[0].tokens.description===""&&e[0].tokens.delimiter===t.start&&(e=e.slice(1));const r=e[e.length-1];return r!==void 0&&r.tokens.description===""&&r.tokens.end.endsWith(t.end)&&(e=e.slice(0,-1)),e=e.slice(e.reduce(n3,0)),e.map(o3).join(`
|
|
1014
|
+
`)}O(QN,"preserveJoiner");function ZN({startLine:e=0,fence:t="```",spacing:r="compact",markers:n=Ur,tokenizers:o=[GN(),zN(r),KN(),YN(r)]}={}){if(e<0||e%1>0)throw new Error("Invalid startLine");const s=VN({startLine:e,markers:n}),a=JN({fence:t}),c=HN({tokenizers:o}),u=Sy(r);return function(d){const p=[];for(const f of FN(d)){const m=s(f);if(m===null)continue;const y=a(m),g=y.slice(1).map(c);p.push({description:u(y[0],n),tags:g,source:m,problems:g.reduce((T,E)=>T.concat(E.problems),[])})}return p}}O(ZN,"getParser");function eI(e){return e.start+e.delimiter+e.postDelimiter+e.tag+e.postTag+e.type+e.postType+e.name+e.postName+e.description+e.end+e.lineEnd}O(eI,"join");function i3(){return e=>e.source.map(({tokens:t})=>eI(t)).join(`
|
|
1015
|
+
`)}O(i3,"getStringifier");function tI(e,t={}){return ZN(t)(e)}O(tI,"parse");var Ry=VH(KH(),1);function rI(e){return e!=null&&e.includes("@")}O(rI,"containsJsDoc");function nI(e){const n=`/**
|
|
1016
|
+
`+(e??"").split(`
|
|
1017
|
+
`).map(s=>` * ${s}`).join(`
|
|
1018
|
+
`)+`
|
|
1019
|
+
*/`,o=tI(n,{spacing:"preserve"});if(!o||o.length===0)throw new Error("Cannot parse JSDoc tags.");return o[0]}O(nI,"parse");var s3={tags:["param","arg","argument","returns","ignore","deprecated"]},a3=O((e,t=s3)=>{if(!rI(e))return{includesJsDoc:!1,ignore:!1};const r=nI(e),n=oI(r,t.tags);return n.ignore?{includesJsDoc:!0,ignore:!0}:{includesJsDoc:!0,ignore:!1,description:r.description.trim(),extractedTags:n}},"parseJsDoc");function oI(e,t){const r={params:null,deprecated:null,returns:null,ignore:!1};for(const n of e.tags)if(!(t!==void 0&&!t.includes(n.tag)))if(n.tag==="ignore"){r.ignore=!0;break}else switch(n.tag){case"param":case"arg":case"argument":{const o=sI(n);o!=null&&(r.params==null&&(r.params=[]),r.params.push(o));break}case"deprecated":{const o=aI(n);o!=null&&(r.deprecated=o);break}case"returns":{const o=lI(n);o!=null&&(r.returns=o);break}}return r}O(oI,"extractJsDocTags");function iI(e){return e.replace(/[\.-]$/,"")}O(iI,"normaliseParamName");function sI(e){if(!e.name||e.name==="-")return null;const t=Oy(e.type);return{name:e.name,type:t,description:Ay(e.description),getPrettyName:O(()=>iI(e.name),"getPrettyName"),getTypeName:O(()=>t?Cy(t):null,"getTypeName")}}O(sI,"extractParam");function aI(e){return e.name?Py(e.name,e.description):null}O(aI,"extractDeprecated");function Py(e,t){const r=e===""?t:`${e} ${t}`;return Ay(r)}O(Py,"joinNameAndDescription");function Ay(e){const t=e.replace(/^- /g,"").trim();return t===""?null:t}O(Ay,"normaliseDescription");function lI(e){const t=Oy(e.type);return t?{type:t,description:Py(e.name,e.description),getTypeName:O(()=>Cy(t),"getTypeName")}:null}O(lI,"extractReturns");var Zr=(0,Ry.stringifyRules)(),l3=Zr.JsdocTypeObject;Zr.JsdocTypeAny=()=>"any";Zr.JsdocTypeObject=(e,t)=>`(${l3(e,t)})`;Zr.JsdocTypeOptional=(e,t)=>t(e.element);Zr.JsdocTypeNullable=(e,t)=>t(e.element);Zr.JsdocTypeNotNullable=(e,t)=>t(e.element);Zr.JsdocTypeUnion=(e,t)=>e.elements.map(t).join("|");function Oy(e){try{return(0,Ry.parse)(e,"typescript")}catch{return null}}O(Oy,"extractType");function Cy(e){return(0,Ry.transform)(Zr,e)}O(Cy,"extractTypeName");var c3=90,u3=50;function xy(e){return e.length>c3}O(xy,"isTooLongForTypeSummary");function cI(e){return e.length>u3}O(cI,"isTooLongForDefaultValueSummary");function rt(e,t){return e===t?{summary:e}:{summary:e,detail:t}}O(rt,"createSummaryValue");function d3(e,t){if(e!=null){const{value:r}=e;if(!Ac(r))return cI(r)?rt(t?.name,r):rt(r)}return null}O(d3,"createDefaultValue");function Ny({name:e,value:t,elements:r,raw:n}){return t??(r!=null?r.map(Ny).join(" | "):n??e)}O(Ny,"generateUnionElement");function uI({name:e,raw:t,elements:r}){return r!=null?rt(r.map(Ny).join(" | ")):t!=null?rt(t.replace(/^\|\s*/,"")):rt(e)}O(uI,"generateUnion");function dI({type:e,raw:t}){return t!=null?rt(t):rt(e)}O(dI,"generateFuncSignature");function pI({type:e,raw:t}){return t!=null?xy(t)?rt(e,t):rt(t):rt(e)}O(pI,"generateObjectSignature");function fI(e){const{type:t}=e;return t==="object"?pI(e):dI(e)}O(fI,"generateSignature");function hI({name:e,raw:t}){return t!=null?xy(t)?rt(e,t):rt(t):rt(e)}O(hI,"generateDefault");function p3(e){if(e==null)return null;switch(e.name){case"union":return uI(e);case"signature":return fI(e);default:return hI(e)}}O(p3,"createType");function f3({defaultValue:e}){if(e!=null){const{value:t}=e;if(!Ac(t))return rt(t)}return null}O(f3,"createDefaultValue");function h3({tsType:e,required:t}){if(e==null)return null;let r=e.name;return t||(r=r.replace(" | undefined","")),rt(["Array","Record","signature"].includes(e.name)?e.raw:r)}O(h3,"createType");function mI(e){return e!=null?rt(e.name):null}O(mI,"createType");function yI(e){const{computed:t,func:r}=e;return typeof t>"u"&&typeof r>"u"}O(yI,"isReactDocgenTypescript");function gI(e){return e?e.name==="string"?!0:e.name==="enum"?Array.isArray(e.value)&&e.value.every(({value:t})=>typeof t=="string"&&t[0]==='"'&&t[t.length-1]==='"'):!1:!1}O(gI,"isStringValued");function bI(e,t){if(e!=null){const{value:r}=e;if(!Ac(r))return yI(e)&&gI(t)?rt(JSON.stringify(r)):rt(r)}return null}O(bI,"createDefaultValue");function m3(e,t,r){const{description:n,required:o,defaultValue:s}=r;return{name:e,type:mI(t),required:o,description:n,defaultValue:bI(s,t)}}O(m3,"createBasicPropDef");function y3(e,t){if(t?.includesJsDoc){const{description:r,extractedTags:n}=t;r!=null&&(e.description=t.description);const o={...n,params:n?.params?.map(s=>({name:s.getPrettyName(),description:s.description}))};Object.values(o).filter(Boolean).length>0&&(e.jsDocTags=o)}return e}O(y3,"applyJsDocResult");function g3(e,t,r,n){const o=a3(t.description);return o.includesJsDoc&&o.ignore?null:{propDef:n(e,t,o),jsDocTags:o.extractedTags,docgenInfo:t,typeSystem:r}}O(g3,"extractProp");function b3(e){return e!=null?kN(e):""}O(b3,"extractComponentDescription");var v3=O((...e)=>{const t={},r=e.filter(Boolean),n=r.reduce((o,s)=>(Object.entries(s).forEach(([a,c])=>{const u=o[a];Array.isArray(c)||typeof u>"u"?o[a]=c:ta(c)&&ta(u)?t[a]=!0:typeof c<"u"&&(o[a]=c)}),o),{});return Object.keys(t).forEach(o=>{const s=r.filter(Boolean).map(a=>a[o]).filter(a=>typeof a<"u");s.every(a=>ta(a))?n[o]=v3(...s):n[o]=s[s.length-1]}),n},"combineParameters"),E3="storybook/docs",mW=`${E3}/snippet-rendered`,Qa=(e=>(e.AUTO="auto",e.CODE="code",e.DYNAMIC="dynamic",e))(Qa||{});const T3={"./src/stories/Badge.stories.ts":()=>Cr(()=>import("./Badge.stories-BUWscv-N.js"),__vite__mapDeps([0,1]),import.meta.url),"./src/stories/Button.stories.ts":()=>Cr(()=>import("./Button.stories-BxwD2JsV.js"),__vite__mapDeps([2,1]),import.meta.url),"./src/stories/Colors.stories.ts":()=>Cr(()=>import("./Colors.stories-Cmp-AEM5.js"),__vite__mapDeps([3,1]),import.meta.url),"./src/stories/Heading.stories.ts":()=>Cr(()=>import("./Heading.stories-C_fXiWQt.js"),__vite__mapDeps([4,1]),import.meta.url),"./src/stories/Icon.stories.ts":()=>Cr(()=>import("./Icon.stories-BaAKG0vC.js"),__vite__mapDeps([5,1]),import.meta.url),"./src/stories/Loader.stories.ts":()=>Cr(()=>import("./Loader.stories-Bfft_9Qc.js"),__vite__mapDeps([6,1]),import.meta.url),"./src/stories/ScrollShadow.stories.ts":()=>Cr(()=>import("./ScrollShadow.stories-FG3lcV3j.js"),__vite__mapDeps([7,1]),import.meta.url)};async function w3(e){return await T3[e]()}var vI=Object.defineProperty,Oc=(e,t)=>vI(e,"name",{value:t,configurable:!0}),_3=(e,t)=>{for(var r in t)vI(e,r,{get:t[r],enumerable:!0})};const na=globalThis,Iy=na.ShadowRoot&&(na.ShadyCSS===void 0||na.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,EI=Symbol(),Ob=new WeakMap;let S3=class{constructor(t,r,n){if(this._$cssResult$=!0,n!==EI)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o;const r=this.t;if(Iy&&t===void 0){const n=r!==void 0&&r.length===1;n&&(t=Ob.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&Ob.set(r,t))}return t}toString(){return this.cssText}};const R3=e=>new S3(typeof e=="string"?e:e+"",void 0,EI),P3=(e,t)=>{if(Iy)e.adoptedStyleSheets=t.map((r=>r instanceof CSSStyleSheet?r:r.styleSheet));else for(const r of t){const n=document.createElement("style"),o=na.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=r.cssText,e.appendChild(n)}},Cb=Iy?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(const n of t.cssRules)r+=n.cssText;return R3(r)})(e):e;const{is:A3,defineProperty:O3,getOwnPropertyDescriptor:C3,getOwnPropertyNames:x3,getOwnPropertySymbols:N3,getPrototypeOf:I3}=Object,Cc=globalThis,xb=Cc.trustedTypes,M3=xb?xb.emptyScript:"",q3=Cc.reactiveElementPolyfillSupport,Li=(e,t)=>e,ap={toAttribute(e,t){switch(t){case Boolean:e=e?M3:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},TI=(e,t)=>!A3(e,t),Nb={attribute:!0,type:String,converter:ap,reflect:!1,useDefault:!1,hasChanged:TI};Symbol.metadata??=Symbol("metadata"),Cc.litPropertyMetadata??=new WeakMap;let zn=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,r=Nb){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(t,r),!r.noAccessor){const n=Symbol(),o=this.getPropertyDescriptor(t,n,r);o!==void 0&&O3(this.prototype,t,o)}}static getPropertyDescriptor(t,r,n){const{get:o,set:s}=C3(this.prototype,t)??{get(){return this[r]},set(a){this[r]=a}};return{get:o,set(a){const c=o?.call(this);s?.call(this,a),this.requestUpdate(t,c,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Nb}static _$Ei(){if(this.hasOwnProperty(Li("elementProperties")))return;const t=I3(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Li("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Li("properties"))){const r=this.properties,n=[...x3(r),...N3(r)];for(const o of n)this.createProperty(o,r[o])}const t=this[Symbol.metadata];if(t!==null){const r=litPropertyMetadata.get(t);if(r!==void 0)for(const[n,o]of r)this.elementProperties.set(n,o)}this._$Eh=new Map;for(const[r,n]of this.elementProperties){const o=this._$Eu(r,n);o!==void 0&&this._$Eh.set(o,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const r=[];if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const o of n)r.unshift(Cb(o))}else t!==void 0&&r.push(Cb(t));return r}static _$Eu(t,r){const n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,r=this.constructor.elementProperties;for(const n of r.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return P3(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,r,n){this._$AK(t,n)}_$ET(t,r){const n=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,n);if(o!==void 0&&n.reflect===!0){const s=(n.converter?.toAttribute!==void 0?n.converter:ap).toAttribute(r,n.type);this._$Em=t,s==null?this.removeAttribute(o):this.setAttribute(o,s),this._$Em=null}}_$AK(t,r){const n=this.constructor,o=n._$Eh.get(t);if(o!==void 0&&this._$Em!==o){const s=n.getPropertyOptions(o),a=typeof s.converter=="function"?{fromAttribute:s.converter}:s.converter?.fromAttribute!==void 0?s.converter:ap;this._$Em=o;const c=a.fromAttribute(r,s.type);this[o]=c??this._$Ej?.get(o)??c,this._$Em=null}}requestUpdate(t,r,n){if(t!==void 0){const o=this.constructor,s=this[t];if(n??=o.getPropertyOptions(t),!((n.hasChanged??TI)(s,r)||n.useDefault&&n.reflect&&s===this._$Ej?.get(t)&&!this.hasAttribute(o._$Eu(t,n))))return;this.C(t,r,n)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,r,{useDefault:n,reflect:o,wrapped:s},a){n&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,a??r??this[t]),s!==!0||a!==void 0)||(this._$AL.has(t)||(this.hasUpdated||n||(r=void 0),this._$AL.set(t,r)),o===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[o,s]of this._$Ep)this[o]=s;this._$Ep=void 0}const n=this.constructor.elementProperties;if(n.size>0)for(const[o,s]of n){const{wrapped:a}=s,c=this[o];a!==!0||this._$AL.has(o)||c===void 0||this.C(o,void 0,s,c)}}let t=!1;const r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),this._$EO?.forEach((n=>n.hostUpdate?.())),this.update(r)):this._$EM()}catch(n){throw t=!1,this._$EM(),n}t&&this._$AE(r)}willUpdate(t){}_$AE(t){this._$EO?.forEach((r=>r.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((r=>this._$ET(r,this[r]))),this._$EM()}updated(t){}firstUpdated(t){}};zn.elementStyles=[],zn.shadowRootOptions={mode:"open"},zn[Li("elementProperties")]=new Map,zn[Li("finalized")]=new Map,q3?.({ReactiveElement:zn}),(Cc.reactiveElementVersions??=[]).push("2.1.1");const My=globalThis,Za=My.trustedTypes,Ib=Za?Za.createPolicy("lit-html",{createHTML:e=>e}):void 0,wI="$lit$",kr=`lit$${Math.random().toFixed(9).slice(2)}$`,_I="?"+kr,j3=`<${_I}>`,In=document,as=()=>In.createComment(""),ls=e=>e===null||typeof e!="object"&&typeof e!="function",qy=Array.isArray,k3=e=>qy(e)||typeof e?.[Symbol.iterator]=="function",lu=`[
|
|
1020
|
+
\f\r]`,yi=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Mb=/-->/g,qb=/>/g,an=RegExp(`>|${lu}(?:([^\\s"'>=/]+)(${lu}*=${lu}*(?:[^
|
|
1021
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),jb=/'/g,kb=/"/g,SI=/^(?:script|style|textarea|title)$/i,D3=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),L3=D3(1),Po=Symbol.for("lit-noChange"),nt=Symbol.for("lit-nothing"),Db=new WeakMap,hn=In.createTreeWalker(In,129);function RI(e,t){if(!qy(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ib!==void 0?Ib.createHTML(t):t}const F3=(e,t)=>{const r=e.length-1,n=[];let o,s=t===2?"<svg>":t===3?"<math>":"",a=yi;for(let c=0;c<r;c++){const u=e[c];let d,p,f=-1,m=0;for(;m<u.length&&(a.lastIndex=m,p=a.exec(u),p!==null);)m=a.lastIndex,a===yi?p[1]==="!--"?a=Mb:p[1]!==void 0?a=qb:p[2]!==void 0?(SI.test(p[2])&&(o=RegExp("</"+p[2],"g")),a=an):p[3]!==void 0&&(a=an):a===an?p[0]===">"?(a=o??yi,f=-1):p[1]===void 0?f=-2:(f=a.lastIndex-p[2].length,d=p[1],a=p[3]===void 0?an:p[3]==='"'?kb:jb):a===kb||a===jb?a=an:a===Mb||a===qb?a=yi:(a=an,o=void 0);const y=a===an&&e[c+1].startsWith("/>")?" ":"";s+=a===yi?u+j3:f>=0?(n.push(d),u.slice(0,f)+wI+u.slice(f)+kr+y):u+kr+(f===-2?c:y)}return[RI(e,s+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]};class cs{constructor({strings:t,_$litType$:r},n){let o;this.parts=[];let s=0,a=0;const c=t.length-1,u=this.parts,[d,p]=F3(t,r);if(this.el=cs.createElement(d,n),hn.currentNode=this.el.content,r===2||r===3){const f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(o=hn.nextNode())!==null&&u.length<c;){if(o.nodeType===1){if(o.hasAttributes())for(const f of o.getAttributeNames())if(f.endsWith(wI)){const m=p[a++],y=o.getAttribute(f).split(kr),g=/([.?@])?(.*)/.exec(m);u.push({type:1,index:s,name:g[2],strings:y,ctor:g[1]==="."?$3:g[1]==="?"?J3:g[1]==="@"?U3:xc}),o.removeAttribute(f)}else f.startsWith(kr)&&(u.push({type:6,index:s}),o.removeAttribute(f));if(SI.test(o.tagName)){const f=o.textContent.split(kr),m=f.length-1;if(m>0){o.textContent=Za?Za.emptyScript:"";for(let y=0;y<m;y++)o.append(f[y],as()),hn.nextNode(),u.push({type:2,index:++s});o.append(f[m],as())}}}else if(o.nodeType===8)if(o.data===_I)u.push({type:2,index:s});else{let f=-1;for(;(f=o.data.indexOf(kr,f+1))!==-1;)u.push({type:7,index:s}),f+=kr.length-1}s++}}static createElement(t,r){const n=In.createElement("template");return n.innerHTML=t,n}}function Ao(e,t,r=e,n){if(t===Po)return t;let o=n!==void 0?r._$Co?.[n]:r._$Cl;const s=ls(t)?void 0:t._$litDirective$;return o?.constructor!==s&&(o?._$AO?.(!1),s===void 0?o=void 0:(o=new s(e),o._$AT(e,r,n)),n!==void 0?(r._$Co??=[])[n]=o:r._$Cl=o),o!==void 0&&(t=Ao(e,o._$AS(e,t.values),o,n)),t}class B3{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:r},parts:n}=this._$AD,o=(t?.creationScope??In).importNode(r,!0);hn.currentNode=o;let s=hn.nextNode(),a=0,c=0,u=n[0];for(;u!==void 0;){if(a===u.index){let d;u.type===2?d=new Is(s,s.nextSibling,this,t):u.type===1?d=new u.ctor(s,u.name,u.strings,this,t):u.type===6&&(d=new V3(s,this,t)),this._$AV.push(d),u=n[++c]}a!==u?.index&&(s=hn.nextNode(),a++)}return hn.currentNode=In,o}p(t){let r=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,r),r+=n.strings.length-2):n._$AI(t[r])),r++}}class Is{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,o){this.type=2,this._$AH=nt,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=Ao(this,t,r),ls(t)?t===nt||t==null||t===""?(this._$AH!==nt&&this._$AR(),this._$AH=nt):t!==this._$AH&&t!==Po&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):k3(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==nt&&ls(this._$AH)?this._$AA.nextSibling.data=t:this.T(In.createTextNode(t)),this._$AH=t}$(t){const{values:r,_$litType$:n}=t,o=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=cs.createElement(RI(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===o)this._$AH.p(r);else{const s=new B3(o,this),a=s.u(this.options);s.p(r),this.T(a),this._$AH=s}}_$AC(t){let r=Db.get(t.strings);return r===void 0&&Db.set(t.strings,r=new cs(t)),r}k(t){qy(this._$AH)||(this._$AH=[],this._$AR());const r=this._$AH;let n,o=0;for(const s of t)o===r.length?r.push(n=new Is(this.O(as()),this.O(as()),this,this.options)):n=r[o],n._$AI(s),o++;o<r.length&&(this._$AR(n&&n._$AB.nextSibling,o),r.length=o)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t!==this._$AB;){const n=t.nextSibling;t.remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}}class xc{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,o,s){this.type=1,this._$AH=nt,this._$AN=void 0,this.element=t,this.name=r,this._$AM=o,this.options=s,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=nt}_$AI(t,r=this,n,o){const s=this.strings;let a=!1;if(s===void 0)t=Ao(this,t,r,0),a=!ls(t)||t!==this._$AH&&t!==Po,a&&(this._$AH=t);else{const c=t;let u,d;for(t=s[0],u=0;u<s.length-1;u++)d=Ao(this,c[n+u],r,u),d===Po&&(d=this._$AH[u]),a||=!ls(d)||d!==this._$AH[u],d===nt?t=nt:t!==nt&&(t+=(d??"")+s[u+1]),this._$AH[u]=d}a&&!o&&this.j(t)}j(t){t===nt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class $3 extends xc{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===nt?void 0:t}}class J3 extends xc{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==nt)}}class U3 extends xc{constructor(t,r,n,o,s){super(t,r,n,o,s),this.type=5}_$AI(t,r=this){if((t=Ao(this,t,r,0)??nt)===Po)return;const n=this._$AH,o=t===nt&&n!==nt||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,s=t!==nt&&(n===nt||o);o&&this.element.removeEventListener(this.name,this,n),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class V3{constructor(t,r,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){Ao(this,t)}}const H3=My.litHtmlPolyfillSupport;H3?.(cs,Is),(My.litHtmlVersions??=[]).push("3.3.1");const el=(e,t,r)=>{const n=r?.renderBefore??t;let o=n._$litPart$;if(o===void 0){const s=r?.renderBefore??null;n._$litPart$=o=new Is(t.insertBefore(as(),s),s,void 0,r??{})}return o._$AI(e),o};const jy=globalThis;class oa extends zn{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=el(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Po}}oa._$litElement$=!0,oa.finalized=!0,jy.litElementHydrateSupport?.({LitElement:oa});const G3=jy.litElementPolyfillSupport;G3?.({LitElement:oa});(jy.litElementVersions??=[]).push("4.2.1");const z3=(e,t)=>e?._$litType$!==void 0;function W3(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Array.from(typeof e=="string"?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var o=n.reduce(function(c,u){var d=u.match(/\n([\t ]+|(?!\s).)/g);return d?c.concat(d.map(function(p){var f,m;return(m=(f=p.match(/[\t ]/g))===null||f===void 0?void 0:f.length)!==null&&m!==void 0?m:0})):c},[]);if(o.length){var s=new RegExp(`
|
|
1022
|
+
[ ]{`+Math.min.apply(Math,o)+"}","g");n=n.map(function(c){return c.replace(s,`
|
|
1023
|
+
`)})}n[0]=n[0].replace(/^\r?\n/,"");var a=n[0];return t.forEach(function(c,u){var d=a.match(/(?:^|\n)( *)$/),p=d?d[1]:"",f=c;typeof c=="string"&&c.includes(`
|
|
1024
|
+
`)&&(f=String(c).split(`
|
|
1025
|
+
`).map(function(m,y){return y===0?m:""+p+m}).join(`
|
|
1026
|
+
`)),a+=f+n[u+1]}),a}var K3={};_3(K3,{parameters:()=>AI,render:()=>PI,renderToCanvas:()=>ky});const{global:Y3}=__STORYBOOK_MODULE_GLOBAL__,{simulateDOMContentLoaded:X3,simulatePageLoad:Lb}=__STORYBOOK_MODULE_PREVIEW_API__;var{Node:Q3}=Y3,PI=Oc((e,t)=>{const{id:r,component:n}=t;if(!n)throw new Error(`Unable to render story ${r} as the component annotation is missing from the default export`);const o=document.createElement(n);return Object.entries(e).forEach(([s,a])=>{o[s]=a}),o},"render");function ky({storyFn:e,kind:t,name:r,showMain:n,showError:o,forceRemount:s},a){const c=e();if(n(),z3(c)){(s||!a.querySelector('[id="root-inner"]'))&&(a.innerHTML='<div id="root-inner"></div>');const u=a.querySelector('[id="root-inner"]');el(c,u),Lb(a)}else if(typeof c=="string")a.innerHTML=c,Lb(a);else if(c instanceof Q3){if(a.firstChild===c&&!s)return;a.innerHTML="",a.appendChild(c),X3()}else o({title:`Expecting an HTML snippet or DOM node from the story: "${r}" of "${t}".`,description:W3`
|
|
1027
|
+
Did you forget to return the HTML snippet from the story?
|
|
1028
|
+
Use "() => <your snippet or node>" or when defining the story.
|
|
1029
|
+
`})}Oc(ky,"renderToCanvas");var AI={renderer:"web-components"};const Z3=Object.freeze(Object.defineProperty({__proto__:null,parameters:AI,render:PI,renderToCanvas:ky},Symbol.toStringTag,{value:"Module"})),{emitTransformCode:eG,useEffect:tG}=__STORYBOOK_MODULE_PREVIEW_API__;var rG=/<!--\?lit\$[0-9]+\$-->|<!--\??-->/g;function OI(e){const t=e?.parameters.docs?.source,r=e?.parameters.__isArgsStory;return t?.type===Qa.DYNAMIC?!1:!r||t?.code||t?.type===Qa.CODE}Oc(OI,"skipSourceRender");function CI(e,t){const r=e(),n=t?.parameters.docs?.source?.excludeDecorators?t.originalStoryFn(t.args,t):r;let o;if(tG(()=>{o&&eG(o,t)}),!OI(t)){const s=window.document.createElement("div");n instanceof DocumentFragment?el(n.cloneNode(!0),s):el(n,s),o=s.innerHTML.replace(rG,"")}return r}Oc(CI,"sourceDecorator");var nG=[CI],oG={docs:{source:{type:Qa.DYNAMIC,language:"html"},story:{inline:!0}}};const iG=Object.freeze(Object.defineProperty({__proto__:null,decorators:nG,parameters:oG},Symbol.toStringTag,{value:"Module"}));var sG=Object.create,Nc=Object.defineProperty,aG=Object.getOwnPropertyDescriptor,xI=Object.getOwnPropertyNames,lG=Object.getPrototypeOf,cG=Object.prototype.hasOwnProperty,Fb=(e,t)=>Nc(e,"name",{value:t,configurable:!0}),bW=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),vW=(e,t)=>function(){return t||(0,e[xI(e)[0]])((t={exports:{}}).exports,t),t.exports},uG=(e,t)=>{for(var r in t)Nc(e,r,{get:t[r],enumerable:!0})},dG=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of xI(t))!cG.call(e,o)&&o!==r&&Nc(e,o,{get:()=>t[o],enumerable:!(n=aG(t,o))||n.enumerable});return e},EW=(e,t,r)=>(r=e!=null?sG(lG(e)):{},dG(Nc(r,"default",{value:e,enumerable:!0}),e)),pG={};uG(pG,{parameters:()=>NI});var fG=Object.entries(globalThis.TAGS_OPTIONS??{}).reduce((e,t)=>{const[r,n]=t;return n.excludeFromDocsStories&&(e[r]=!0),e},{}),NI={docs:{renderer:Fb(async()=>{const{DocsRenderer:e}=await Cr(async()=>{const{DocsRenderer:t}=await import("./WithTooltip-SK46ZJ2J-BQsmdHUK.js").then(r=>r.D);return{DocsRenderer:t}},__vite__mapDeps([8,1]),import.meta.url);return new e},"renderer"),stories:{filter:Fb(e=>(e.tags||[]).filter(r=>fG[r]).length===0&&!e.parameters.docs?.disable,"filter")}}};const hG=Object.freeze(Object.defineProperty({__proto__:null,parameters:NI},Symbol.toStringTag,{value:"Module"})),mG={parameters:{controls:{matchers:{color:/(background|color)$/i,date:/Date$/i}}},globalTypes:{theme:{description:"Light/Dark mode for components",toolbar:{title:"Theme",icon:"circlehollow",items:[{value:"light",title:"Light mode",icon:"sun"},{value:"dark",title:"Dark mode",icon:"moon"}],dynamicTitle:!0}}},initialGlobals:{theme:"light"},decorators:[(e,t)=>{const r=t.globals.theme||"light";return L3`<div class="${r==="dark"?"is-dark":""}">${e()}</div>`}]},yG=Object.freeze(Object.defineProperty({__proto__:null,default:mG},Symbol.toStringTag,{value:"Module"}));Ty();const{composeConfigs:gG,PreviewWeb:bG}=__STORYBOOK_MODULE_PREVIEW_API__,vG=(e=[])=>{const t=[e[0]??Z3,e[1]??iG,e[2]??hG,e[3]??yG];return gG(t)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new bG(w3,vG);window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;export{Gz as A,Uz as B,eW as C,Xz as D,Kz as E,Vz as F,ta as G,Yz as H,Zz as I,cW as J,iW as K,Lz as L,v3 as M,Fz as N,W3 as O,Qa as P,bW as Q,mW as S,Fb as _,EW as a,vW as b,VH as c,O as d,JH as e,GH as f,zH as g,WH as h,HH as i,nW as j,rW as k,tW as l,$z as m,Wz as n,Qz as o,Jz as p,zz as q,Bz as r,Hz as s,lW as t,oW as u,aW as v,sW as w,L3 as x,dW as y,uW as z};
|