@brightspot/ui 1.4.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -0
- package/dist/components/avatar/Avatar.d.ts +1 -1
- package/dist/components/avatar/Avatar.d.ts.map +1 -1
- package/dist/components/avatar/Avatar.js +3 -1
- package/dist/components/avatar/Avatar.js.map +1 -1
- package/dist/components/popover/Popover.d.ts +161 -0
- package/dist/components/popover/Popover.d.ts.map +1 -0
- package/dist/components/popover/Popover.js +436 -0
- package/dist/components/popover/Popover.js.map +1 -0
- package/dist/components/widget/Widget.css +104 -0
- package/dist/components/widget/Widget.d.ts +170 -0
- package/dist/components/widget/Widget.d.ts.map +1 -0
- package/dist/components/widget/Widget.js +434 -0
- package/dist/components/widget/Widget.js.map +1 -0
- package/dist/custom-elements.json +604 -101
- package/dist/global.d.ts +5 -0
- package/dist/storybook/assets/{Avatar.stories-DrhezTR1.js → Avatar.stories-CPVNxsaA.js} +37 -32
- package/dist/storybook/assets/AvatarGroup.stories-Bl65NGHl.js +225 -0
- package/dist/storybook/assets/{Badge.stories-DtJcBfOR.js → Badge.stories-Bbnc6fRy.js} +1 -1
- package/dist/storybook/assets/{Button.stories-BKUfLgSY.js → Button.stories-CRJ5n2y4.js} +1 -1
- package/dist/storybook/assets/{CircularProgress.stories-dpmD-XJT.js → CircularProgress.stories-D9vBj3JJ.js} +1 -1
- package/dist/storybook/assets/{ClipboardMixin.stories-C0pnQ7BY.js → ClipboardMixin.stories-Dm-Jm4yb.js} +7 -7
- package/dist/storybook/assets/Color-6BZIO3FS-BcNIJY1U.js +1 -0
- package/dist/storybook/assets/{Colors.stories-bKK25qgF.js → Colors.stories-B9_090wL.js} +1 -1
- package/dist/storybook/assets/ComponentStatesMixin-ChiFBCuo.js +1 -0
- package/dist/storybook/assets/{ComponentStatesMixin.stories-9mRp2zuB.js → ComponentStatesMixin.stories-DHv9MHmE.js} +3 -3
- package/dist/storybook/assets/{CopyToClipboard.stories-BW3oaT1i.js → CopyToClipboard.stories-gtJlTP1l.js} +1 -1
- package/dist/storybook/assets/{Debounce.stories-BXx3CKvQ.js → Debounce.stories-BBNX7mJA.js} +3 -3
- package/dist/storybook/assets/DocsRenderer-LL677BLK-D-E99pXl.js +758 -0
- package/dist/storybook/assets/{Events.stories-PBeiuWQn.js → Events.stories-DDmydlh_.js} +1 -1
- package/dist/storybook/assets/{Heading.stories-Djkl0MoC.js → Heading.stories-BLGfko-i.js} +1 -1
- package/dist/storybook/assets/{Icon.stories-Cam1fyud.js → Icon.stories-BHnAGcFF.js} +1 -1
- package/dist/storybook/assets/{LinearProgress.stories-BDNoYIJu.js → LinearProgress.stories-Dx26a0P_.js} +1 -1
- package/dist/storybook/assets/Popover.stories-CbqpY6YR.js +431 -0
- package/dist/storybook/assets/ReadyMixin-BHiHoIbr.js +1 -0
- package/dist/storybook/assets/{Rtc.stories-BrTAIAi1.js → Rtc.stories-CAjDv_Ub.js} +3 -3
- package/dist/storybook/assets/{ScrollShadow.stories-DHcKhkag.js → ScrollShadow.stories-BSV4U-tq.js} +1 -1
- package/dist/storybook/assets/{Throttle.stories-cSYT_BXu.js → Throttle.stories-kaxXQ8RZ.js} +8 -8
- package/dist/storybook/assets/Tooltip.stories-CsxXkztr.js +143 -0
- package/dist/storybook/assets/Widget.stories-DqATHnSq.js +233 -0
- package/dist/storybook/assets/WithTooltip-65CFNBJE-BtbbFYSA.js +9 -0
- package/dist/storybook/assets/custom-element-UsVr97OX.js +1 -0
- package/dist/storybook/assets/formatter-EIJCOSYU-C87Csnpu.js +1 -0
- package/dist/storybook/assets/if-defined-COHr0XBn.js +1 -0
- package/dist/storybook/assets/{iframe-BMxUFmpF.css → iframe-BkDGeDre.css} +1 -1
- package/dist/storybook/assets/iframe-CcloOV09.js +1061 -0
- package/dist/storybook/assets/index-DP7vnJf7.js +1 -0
- package/dist/storybook/assets/onFind-DqriYjEB.js +1 -0
- package/dist/storybook/assets/onFind.stories-BxvoC-Z-.js +1069 -0
- package/dist/storybook/assets/{onRemove.stories-C7W9KyRr.js → onRemove.stories-Dwoixzb0.js} +3 -3
- package/dist/storybook/assets/{onVisible.stories-CIl6R0q4.js → onVisible.stories-CinmRF9w.js} +10 -10
- package/dist/storybook/assets/syntaxhighlighter-ED5Y7EFY-BHLkDkOn.js +6 -0
- package/dist/storybook/iframe.html +57 -39
- package/dist/storybook/index.html +11 -4
- package/dist/storybook/index.json +1 -1
- package/dist/storybook/project.json +1 -1
- package/dist/storybook/sb-addons/docs-1/manager-bundle.js +1 -1
- package/dist/storybook/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +112 -290
- package/dist/storybook/sb-addons/vitest-2/manager-bundle.js +3 -0
- package/dist/storybook/sb-manager/globals-runtime.js +60754 -66346
- package/dist/storybook/sb-manager/globals.js +2 -3
- package/dist/storybook/sb-manager/manager-stores.js +23 -0
- package/dist/storybook/sb-manager/runtime.js +12983 -11699
- package/dist/storybook/vite-inject-mocker-entry.js +2 -2
- package/dist/tailwind-plugin-popover.d.ts +2 -0
- package/dist/tailwind-plugin-popover.d.ts.map +1 -0
- package/dist/tailwind-plugin-popover.js +177 -0
- package/dist/tailwind-plugin-popover.js.map +1 -0
- package/dist/tailwind-plugin-popover.ts +202 -0
- package/dist/tailwind-plugin-tooltip.d.ts +2 -0
- package/dist/tailwind-plugin-tooltip.d.ts.map +1 -0
- package/dist/tailwind-plugin-tooltip.js +184 -0
- package/dist/tailwind-plugin-tooltip.js.map +1 -0
- package/dist/tailwind-plugin-tooltip.ts +209 -0
- package/dist/util/EventEmitterMixin.d.ts +11 -0
- package/dist/util/EventEmitterMixin.d.ts.map +1 -1
- package/dist/util/EventEmitterMixin.js +1 -1
- package/dist/util/EventEmitterMixin.js.map +1 -1
- package/dist/util/TooltipController.d.ts +37 -0
- package/dist/util/TooltipController.d.ts.map +1 -0
- package/dist/util/TooltipController.js +133 -0
- package/dist/util/TooltipController.js.map +1 -0
- package/dist/util/TooltipMixin.d.ts +42 -0
- package/dist/util/TooltipMixin.d.ts.map +1 -0
- package/dist/util/TooltipMixin.js +401 -0
- package/dist/util/TooltipMixin.js.map +1 -0
- package/dist/util/onFind.d.ts +1 -0
- package/dist/util/onFind.d.ts.map +1 -1
- package/dist/util/onFind.js +73 -48
- package/dist/util/onFind.js.map +1 -1
- package/dist/util/onVisible.d.ts.map +1 -1
- package/dist/util/onVisible.js +13 -2
- package/dist/util/onVisible.js.map +1 -1
- package/package.json +12 -5
- package/dist/storybook/assets/AvatarGroup.stories-DrlxT-mF.js +0 -211
- package/dist/storybook/assets/Color-64QXVMR3-Dnd9S2a1.js +0 -1
- package/dist/storybook/assets/ComponentStatesMixin-C2HZ9ZFb.js +0 -1
- package/dist/storybook/assets/WithTooltip-SK46ZJ2J-Df0E-KJO.js +0 -825
- package/dist/storybook/assets/formatter-OMEEQ6HG-DFa_WTfb.js +0 -1
- package/dist/storybook/assets/iframe-lTczLWsL.js +0 -1064
- package/dist/storybook/assets/index-yMswRDPh.js +0 -1
- package/dist/storybook/assets/onFind-C6olvKHR.js +0 -1
- package/dist/storybook/assets/onFind.stories-DfW54CDE.js +0 -284
- package/dist/storybook/assets/syntaxhighlighter-CAVLW7PM-DoI0ixeu.js +0 -6
|
@@ -1,1064 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Avatar.stories-DrhezTR1.js","./preload-helper-PPVm8Dsz.js","./AvatarGroup.stories-DrlxT-mF.js","./Badge.stories-DtJcBfOR.js","./Button.stories-BKUfLgSY.js","./CircularProgress.stories-dpmD-XJT.js","./ClipboardMixin.stories-C0pnQ7BY.js","./ComponentStatesMixin-C2HZ9ZFb.js","./Colors.stories-bKK25qgF.js","./ComponentStatesMixin.stories-9mRp2zuB.js","./CopyToClipboard.stories-BW3oaT1i.js","./Debounce.stories-BXx3CKvQ.js","./Events.stories-PBeiuWQn.js","./Heading.stories-Djkl0MoC.js","./Icon.stories-Cam1fyud.js","./LinearProgress.stories-BDNoYIJu.js","./Rtc.stories-BrTAIAi1.js","./ScrollShadow.stories-DHcKhkag.js","./Throttle.stories-cSYT_BXu.js","./onFind.stories-DfW54CDE.js","./onFind-C6olvKHR.js","./_commonjsHelpers-CqkleIqs.js","./onRemove.stories-C7W9KyRr.js","./onVisible.stories-CIl6R0q4.js","./WithTooltip-SK46ZJ2J-Df0E-KJO.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{_ as Be}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 Tu={},yM=Object.create,fl=Object.defineProperty,gM=Object.getOwnPropertyDescriptor,lv=Object.getOwnPropertyNames,bM=Object.getPrototypeOf,vM=Object.prototype.hasOwnProperty,i=(e,t)=>fl(e,"name",{value:t,configurable:!0}),Fs=(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')}),B=(e,t)=>function(){return t||(0,e[lv(e)[0]])((t={exports:{}}).exports,t),t.exports},Tt=(e,t)=>{for(var r in t)fl(e,r,{get:t[r],enumerable:!0})},EM=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of lv(t))!vM.call(e,o)&&o!==r&&fl(e,o,{get:()=>t[o],enumerable:!(n=gM(t,o))||n.enumerable});return e},We=(e,t,r)=>(r=e!=null?yM(bM(e)):{},EM(t||!e||!e.__esModule?fl(r,"default",{value:e,enumerable:!0}):r,e)),TM=B({"../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,h,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(E){return!a(c[E],u[E],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((h=p.next()).value,f.next().value,d))return!1;while(!h.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(h=0;h<c.length;h++)if((h in c||h in u)&&(h in c!=h in u||!a(c[h],u[h],d)))return!1;return!0;case"Object":return a(r(c),r(u),d);default:return!1}},"n")(o,s,[])}})()}}),wM=B({"../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}}}),_M=B({"../node_modules/strip-indent/index.js"(e,t){var r=wM();t.exports=n=>{const o=r(n);if(o===0)return n;const s=new RegExp(`^[ \\t]{${o}}`,"gm");return n.replace(s,"")}}}),SM=B({"../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))}}}),cv=B({"../node_modules/redent/index.js"(e,t){var r=_M(),n=SM();t.exports=(o,s=0,a)=>n(r(o),s,a)}}),PM=B({"../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}}),hs=B({"../node_modules/aria-query/lib/util/iterationDecorator.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var t=r(PM());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")}}),AM=B({"../node_modules/aria-query/lib/ariaPropsMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(hs());function r(f){return f&&f.__esModule?f:{default:f}}i(r,"_interopRequireDefault");function n(f,h){return u(f)||c(f,h)||s(f,h)||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,h){if(f){if(typeof f=="string")return a(f,h);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,h):void 0}}i(s,"_unsupportedIterableToArray");function a(f,h){(h==null||h>f.length)&&(h=f.length);for(var y=0,g=Array(h);y<h;y++)g[y]=f[y];return g}i(a,"_arrayLikeToArray");function c(f,h){var y=f==null?null:typeof Symbol<"u"&&f[Symbol.iterator]||f["@@iterator"];if(y!=null){var g,E,T,v,_=[],R=!0,N=!1;try{if(T=(y=y.call(f)).next,h===0){if(Object(y)!==y)return;R=!1}else for(;!(R=(g=T.call(y)).done)&&(_.push(g.value),_.length!==h);R=!0);}catch(j){N=!0,E=j}finally{try{if(!R&&y.return!=null&&(v=y.return(),Object(v)!==v))return}finally{if(N)throw E}}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(h){for(var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,g=0,E=d;g<E.length;g++){var T=n(E[g],2),v=T[0],_=T[1];h.call(y,_,v,d)}},"forEach"),get:i(function(h){var y=d.filter(function(g){return g[0]===h})[0];return y&&y[1]},"get"),has:i(function(h){return!!p.get(h)},"has"),keys:i(function(){return d.map(function(h){var y=n(h,1),g=y[0];return g})},"keys"),values:i(function(){return d.map(function(h){var y=n(h,2),g=y[1];return g})},"values")};e.default=(0,t.default)(p,p.entries())}}),RM=B({"../node_modules/aria-query/lib/domMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(hs());function r(f){return f&&f.__esModule?f:{default:f}}i(r,"_interopRequireDefault");function n(f,h){return u(f)||c(f,h)||s(f,h)||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,h){if(f){if(typeof f=="string")return a(f,h);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,h):void 0}}i(s,"_unsupportedIterableToArray");function a(f,h){(h==null||h>f.length)&&(h=f.length);for(var y=0,g=Array(h);y<h;y++)g[y]=f[y];return g}i(a,"_arrayLikeToArray");function c(f,h){var y=f==null?null:typeof Symbol<"u"&&f[Symbol.iterator]||f["@@iterator"];if(y!=null){var g,E,T,v,_=[],R=!0,N=!1;try{if(T=(y=y.call(f)).next,h===0){if(Object(y)!==y)return;R=!1}else for(;!(R=(g=T.call(y)).done)&&(_.push(g.value),_.length!==h);R=!0);}catch(j){N=!0,E=j}finally{try{if(!R&&y.return!=null&&(v=y.return(),Object(v)!==v))return}finally{if(N)throw E}}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(h){for(var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,g=0,E=d;g<E.length;g++){var T=n(E[g],2),v=T[0],_=T[1];h.call(y,_,v,d)}},"forEach"),get:i(function(h){var y=d.filter(function(g){return g[0]===h})[0];return y&&y[1]},"get"),has:i(function(h){return!!p.get(h)},"has"),keys:i(function(){return d.map(function(h){var y=n(h,1),g=y[0];return g})},"keys"),values:i(function(){return d.map(function(h){var y=n(h,2),g=y[1];return g})},"values")};e.default=(0,t.default)(p,p.entries())}}),OM=B({"../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}}),CM=B({"../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}}),xM=B({"../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}}),NM=B({"../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}}),IM=B({"../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}}),MM=B({"../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}}),qM=B({"../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}}),jM=B({"../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}}),kM=B({"../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}}),DM=B({"../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}}),LM=B({"../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}}),FM=B({"../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}}),$M=B({"../node_modules/aria-query/lib/etc/roles/ariaAbstractRoles.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=y(OM()),r=y(CM()),n=y(xM()),o=y(NM()),s=y(IM()),a=y(MM()),c=y(qM()),u=y(jM()),d=y(kM()),p=y(DM()),f=y(LM()),h=y(FM());function y(E){return E&&E.__esModule?E:{default:E}}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",h.default]];e.default=g}}),BM=B({"../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}}),JM=B({"../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}}),UM=B({"../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}}),VM=B({"../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}}),HM=B({"../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}}),zM=B({"../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}}),GM=B({"../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}}),WM=B({"../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}}),KM=B({"../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}}),YM=B({"../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}}),XM=B({"../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}}),QM=B({"../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}}),ZM=B({"../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}}),eq=B({"../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}}),tq=B({"../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}}),rq=B({"../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}}),nq=B({"../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}}),oq=B({"../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}}),iq=B({"../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}}),sq=B({"../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}}),aq=B({"../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}}),lq=B({"../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}}),cq=B({"../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}}),uq=B({"../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}}),dq=B({"../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}}),pq=B({"../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}}),fq=B({"../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}}),mq=B({"../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}}),hq=B({"../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}}),yq=B({"../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}}),gq=B({"../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}}),bq=B({"../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}}),vq=B({"../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}}),Eq=B({"../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}}),Tq=B({"../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}}),wq=B({"../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}}),_q=B({"../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}}),Sq=B({"../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}}),Pq=B({"../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}}),Aq=B({"../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}}),Rq=B({"../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}}),Oq=B({"../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}}),Cq=B({"../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}}),xq=B({"../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}}),Nq=B({"../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}}),Iq=B({"../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}}),Mq=B({"../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}}),qq=B({"../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}}),jq=B({"../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}}),kq=B({"../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}}),Dq=B({"../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}}),Lq=B({"../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}}),Fq=B({"../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}}),$q=B({"../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}}),Bq=B({"../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}}),Jq=B({"../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}}),Uq=B({"../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}}),Vq=B({"../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}}),Hq=B({"../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}}),zq=B({"../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}}),Gq=B({"../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}}),Wq=B({"../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}}),Kq=B({"../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}}),Yq=B({"../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}}),Xq=B({"../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}}),Qq=B({"../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}}),Zq=B({"../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}}),ej=B({"../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}}),tj=B({"../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}}),rj=B({"../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}}),nj=B({"../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}}),oj=B({"../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}}),ij=B({"../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}}),sj=B({"../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}}),aj=B({"../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}}),lj=B({"../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}}),cj=B({"../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}}),uj=B({"../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}}),dj=B({"../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}}),pj=B({"../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}}),fj=B({"../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}}),mj=B({"../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}}),hj=B({"../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}}),yj=B({"../node_modules/aria-query/lib/etc/roles/ariaLiteralRoles.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=Y(BM()),r=Y(JM()),n=Y(UM()),o=Y(VM()),s=Y(HM()),a=Y(zM()),c=Y(GM()),u=Y(WM()),d=Y(KM()),p=Y(YM()),f=Y(XM()),h=Y(QM()),y=Y(ZM()),g=Y(eq()),E=Y(tq()),T=Y(rq()),v=Y(nq()),_=Y(oq()),R=Y(iq()),N=Y(sq()),j=Y(aq()),C=Y(lq()),P=Y(cq()),w=Y(uq()),S=Y(dq()),k=Y(pq()),I=Y(fq()),V=Y(mq()),H=Y(hq()),A=Y(yq()),L=Y(gq()),$=Y(bq()),D=Y(vq()),K=Y(Eq()),X=Y(Tq()),ie=Y(wq()),se=Y(_q()),W=Y(Sq()),ae=Y(Pq()),be=Y(Aq()),ue=Y(Rq()),ee=Y(Oq()),Re=Y(Cq()),Oe=Y(xq()),ze=Y(Nq()),Ye=Y(Iq()),J=Y(Mq()),Q=Y(qq()),re=Y(jq()),oe=Y(kq()),ne=Y(Dq()),de=Y(Lq()),he=Y(Fq()),pe=Y($q()),$e=Y(Bq()),it=Y(Jq()),pt=Y(Uq()),wt=Y(Vq()),st=Y(Hq()),ft=Y(zq()),mt=Y(Gq()),ht=Y(Wq()),tn=Y(Kq()),Jo=Y(Yq()),rn=Y(Xq()),Uo=Y(Qq()),Vo=Y(Zq()),Ho=Y(ej()),nn=Y(tj()),zo=Y(rj()),Go=Y(nj()),Wo=Y(oj()),Ko=Y(ij()),Yo=Y(sj()),Xo=Y(aj()),Qo=Y(lj()),Zo=Y(cj()),ei=Y(uj()),ti=Y(dj()),ri=Y(pj()),ni=Y(fj()),ur=Y(mj()),on=Y(hj());function Y(It){return It&&It.__esModule?It:{default:It}}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",h.default],["combobox",y.default],["complementary",g.default],["contentinfo",E.default],["definition",T.default],["deletion",v.default],["dialog",_.default],["directory",R.default],["document",N.default],["emphasis",j.default],["feed",C.default],["figure",P.default],["form",w.default],["generic",S.default],["grid",k.default],["gridcell",I.default],["group",V.default],["heading",H.default],["img",A.default],["insertion",L.default],["link",$.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",Re.default],["menuitemcheckbox",Oe.default],["menuitemradio",ze.default],["meter",Ye.default],["navigation",J.default],["none",Q.default],["note",re.default],["option",oe.default],["paragraph",ne.default],["presentation",de.default],["progressbar",he.default],["radio",pe.default],["radiogroup",$e.default],["region",it.default],["row",pt.default],["rowgroup",wt.default],["rowheader",st.default],["scrollbar",ft.default],["search",mt.default],["searchbox",ht.default],["separator",tn.default],["slider",Jo.default],["spinbutton",rn.default],["status",Uo.default],["strong",Vo.default],["subscript",Ho.default],["superscript",nn.default],["switch",zo.default],["tab",Go.default],["table",Wo.default],["tablist",Ko.default],["tabpanel",Yo.default],["term",Xo.default],["textbox",Qo.default],["time",Zo.default],["timer",ei.default],["toolbar",ti.default],["tooltip",ri.default],["tree",ni.default],["treegrid",ur.default],["treeitem",on.default]];e.default=le}}),gj=B({"../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}}),bj=B({"../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}}),vj=B({"../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}}),Ej=B({"../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}}),Tj=B({"../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}}),wj=B({"../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}}),_j=B({"../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}}),Sj=B({"../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}}),Pj=B({"../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}}),Aj=B({"../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}}),Rj=B({"../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}}),Oj=B({"../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}}),Cj=B({"../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}}),xj=B({"../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}}),Nj=B({"../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}}),Ij=B({"../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}}),Mj=B({"../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}}),qj=B({"../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}}),jj=B({"../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}}),kj=B({"../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}}),Dj=B({"../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}}),Lj=B({"../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}}),Fj=B({"../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}}),$j=B({"../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}}),Bj=B({"../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}}),Jj=B({"../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}}),Uj=B({"../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}}),Vj=B({"../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}}),Hj=B({"../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}}),zj=B({"../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}}),Gj=B({"../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}}),Wj=B({"../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}}),Kj=B({"../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}}),Yj=B({"../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}}),Xj=B({"../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}}),Qj=B({"../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}}),Zj=B({"../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}}),ek=B({"../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}}),tk=B({"../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}}),rk=B({"../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}}),nk=B({"../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}}),ok=B({"../node_modules/aria-query/lib/etc/roles/ariaDpubRoles.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=ee(gj()),r=ee(bj()),n=ee(vj()),o=ee(Ej()),s=ee(Tj()),a=ee(wj()),c=ee(_j()),u=ee(Sj()),d=ee(Pj()),p=ee(Aj()),f=ee(Rj()),h=ee(Oj()),y=ee(Cj()),g=ee(xj()),E=ee(Nj()),T=ee(Ij()),v=ee(Mj()),_=ee(qj()),R=ee(jj()),N=ee(kj()),j=ee(Dj()),C=ee(Lj()),P=ee(Fj()),w=ee($j()),S=ee(Bj()),k=ee(Jj()),I=ee(Uj()),V=ee(Vj()),H=ee(Hj()),A=ee(zj()),L=ee(Gj()),$=ee(Wj()),D=ee(Kj()),K=ee(Yj()),X=ee(Xj()),ie=ee(Qj()),se=ee(Zj()),W=ee(ek()),ae=ee(tk()),be=ee(rk()),ue=ee(nk());function ee(Oe){return Oe&&Oe.__esModule?Oe:{default:Oe}}i(ee,"_interopRequireDefault");var Re=[["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",h.default],["doc-credit",y.default],["doc-credits",g.default],["doc-dedication",E.default],["doc-endnote",T.default],["doc-endnotes",v.default],["doc-epigraph",_.default],["doc-epilogue",R.default],["doc-errata",N.default],["doc-example",j.default],["doc-footnote",C.default],["doc-foreword",P.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",A.default],["doc-pagefooter",L.default],["doc-pageheader",$.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=Re}}),ik=B({"../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}}),sk=B({"../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}}),ak=B({"../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}}),lk=B({"../node_modules/aria-query/lib/etc/roles/ariaGraphicsRoles.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=o(ik()),r=o(sk()),n=o(ak());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}}),Tp=B({"../node_modules/aria-query/lib/rolesMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=a($M()),r=a(yj()),n=a(ok()),o=a(lk()),s=a(hs());function a(T){return T&&T.__esModule?T:{default:T}}i(a,"_interopRequireDefault");function c(T,v){var _=typeof Symbol<"u"&&T[Symbol.iterator]||T["@@iterator"];if(!_){if(Array.isArray(T)||(_=p(T))||v&&T&&typeof T.length=="number"){_&&(T=_);var R=0,N=i(function(){},"F");return{s:N,n:i(function(){return R>=T.length?{done:!0}:{done:!1,value:T[R++]}},"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,P=!1;return{s:i(function(){_=_.call(T)},"s"),n:i(function(){var S=_.next();return C=S.done,S},"n"),e:i(function(S){P=!0,j=S},"e"),f:i(function(){try{C||_.return==null||_.return()}finally{if(P)throw j}},"f")}}i(c,"_createForOfIteratorHelper");function u(T,v){return y(T)||h(T,v)||p(T,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(T,v){if(T){if(typeof T=="string")return f(T,v);var _={}.toString.call(T).slice(8,-1);return _==="Object"&&T.constructor&&(_=T.constructor.name),_==="Map"||_==="Set"?Array.from(T):_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_)?f(T,v):void 0}}i(p,"_unsupportedIterableToArray");function f(T,v){(v==null||v>T.length)&&(v=T.length);for(var _=0,R=Array(v);_<v;_++)R[_]=T[_];return R}i(f,"_arrayLikeToArray");function h(T,v){var _=T==null?null:typeof Symbol<"u"&&T[Symbol.iterator]||T["@@iterator"];if(_!=null){var R,N,j,C,P=[],w=!0,S=!1;try{if(j=(_=_.call(T)).next,v===0){if(Object(_)!==_)return;w=!1}else for(;!(w=(R=j.call(_)).done)&&(P.push(R.value),P.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 P}}i(h,"_iterableToArrayLimit");function y(T){if(Array.isArray(T))return T}i(y,"_arrayWithHoles");var g=[].concat(t.default,r.default,n.default,o.default);g.forEach(function(T){var v=u(T,2),_=v[1],R=c(_.superClass),N;try{for(R.s();!(N=R.n()).done;){var j=N.value,C=c(j),P;try{var w=i(function(){var k=P.value,I=g.filter(function($){var D=u($,1),K=D[0];return K===k})[0];if(I)for(var V=I[1],H=0,A=Object.keys(V.props);H<A.length;H++){var L=A[H];Object.prototype.hasOwnProperty.call(_.props,L)||(_.props[L]=V.props[L])}},"_loop");for(C.s();!(P=C.n()).done;)w()}catch(S){C.e(S)}finally{C.f()}}}catch(S){R.e(S)}finally{R.f()}});var E={entries:i(function(){return g},"entries"),forEach:i(function(v){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,R=c(g),N;try{for(R.s();!(N=R.n()).done;){var j=u(N.value,2),C=j[0],P=j[1];v.call(_,P,C,g)}}catch(w){R.e(w)}finally{R.f()}},"forEach"),get:i(function(v){var _=g.filter(function(R){return R[0]===v})[0];return _&&_[1]},"get"),has:i(function(v){return!!E.get(v)},"has"),keys:i(function(){return g.map(function(v){var _=u(v,1),R=_[0];return R})},"keys"),values:i(function(){return g.map(function(v){var _=u(v,2),R=_[1];return R})},"values")};e.default=(0,s.default)(E,E.entries())}}),ck=B({"../node_modules/aria-query/lib/elementRoleMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(hs()),r=n(Tp());function n(C){return C&&C.__esModule?C:{default:C}}i(n,"_interopRequireDefault");function o(C,P){return d(C)||u(C,P)||a(C,P)||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,P){if(C){if(typeof C=="string")return c(C,P);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,P):void 0}}i(a,"_unsupportedIterableToArray");function c(C,P){(P==null||P>C.length)&&(P=C.length);for(var w=0,S=Array(P);w<P;w++)S[w]=C[w];return S}i(c,"_arrayLikeToArray");function u(C,P){var w=C==null?null:typeof Symbol<"u"&&C[Symbol.iterator]||C["@@iterator"];if(w!=null){var S,k,I,V,H=[],A=!0,L=!1;try{if(I=(w=w.call(C)).next,P===0){if(Object(w)!==w)return;A=!1}else for(;!(A=(S=I.call(w)).done)&&(H.push(S.value),H.length!==P);A=!0);}catch($){L=!0,k=$}finally{try{if(!A&&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(h=f[v],y=r.default.get(h),y)for(g=[].concat(y.baseConcepts,y.relatedConcepts),E=i(function(){var P=g[T];if(P.module==="HTML"){var w=P.concept;if(w){var S=p.filter(function(H){return R(H[0],w)})[0],k;S?k=S[1]:k=[];for(var I=!0,V=0;V<k.length;V++)if(k[V]===h){I=!1;break}I&&k.push(h),S||p.push([w,k])}}},"_loop"),T=0;T<g.length;T++)E();var h,y,g,E,T,v,_={entries:i(function(){return p},"entries"),forEach:i(function(P){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];P.call(w,H,V,p)}},"forEach"),get:i(function(P){var w=p.filter(function(S){return P.name===S[0].name&&j(P.attributes,S[0].attributes)})[0];return w&&w[1]},"get"),has:i(function(P){return!!_.get(P)},"has"),keys:i(function(){return p.map(function(P){var w=o(P,1),S=w[0];return S})},"keys"),values:i(function(){return p.map(function(P){var w=o(P,2),S=w[1];return S})},"values")};function R(C,P){return C.name===P.name&&N(C.constraints,P.constraints)&&j(C.attributes,P.attributes)}i(R,"ariaRoleRelationConceptEquals");function N(C,P){if(C===void 0&&P!==void 0||C!==void 0&&P===void 0)return!1;if(C!==void 0&&P!==void 0){if(C.length!==P.length)return!1;for(var w=0;w<C.length;w++)if(C[w]!==P[w])return!1}return!0}i(N,"ariaRoleRelationConstraintsEquals");function j(C,P){if(C===void 0&&P!==void 0||C!==void 0&&P===void 0)return!1;if(C!==void 0&&P!==void 0){if(C.length!==P.length)return!1;for(var w=0;w<C.length;w++){if(C[w].name!==P[w].name||C[w].value!==P[w].value||C[w].constraints===void 0&&P[w].constraints!==void 0||C[w].constraints!==void 0&&P[w].constraints===void 0)return!1;if(C[w].constraints!==void 0&&P[w].constraints!==void 0){if(C[w].constraints.length!==P[w].constraints.length)return!1;for(var S=0;S<C[w].constraints.length;S++)if(C[w].constraints[S]!==P[w].constraints[S])return!1}}}return!0}i(j,"ariaRoleRelationConceptAttributeEquals"),e.default=(0,t.default)(_,_.entries())}}),uk=B({"../node_modules/aria-query/lib/roleElementMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(hs()),r=n(Tp());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 P={}.toString.call(j).slice(8,-1);return P==="Object"&&j.constructor&&(P=j.constructor.name),P==="Map"||P==="Set"?Array.from(j):P==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(P)?c(j,C):void 0}}i(a,"_unsupportedIterableToArray");function c(j,C){(C==null||C>j.length)&&(C=j.length);for(var P=0,w=Array(C);P<C;P++)w[P]=j[P];return w}i(c,"_arrayLikeToArray");function u(j,C){var P=j==null?null:typeof Symbol<"u"&&j[Symbol.iterator]||j["@@iterator"];if(P!=null){var w,S,k,I,V=[],H=!0,A=!1;try{if(k=(P=P.call(j)).next,C===0){if(Object(P)!==P)return;H=!1}else for(;!(H=(w=k.call(P)).done)&&(V.push(w.value),V.length!==C);H=!0);}catch(L){A=!0,S=L}finally{try{if(!H&&P.return!=null&&(I=P.return(),Object(I)!==I))return}finally{if(A)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(R=0;R<f.length;R++)if(h=f[R],y=r.default.get(h),g=[],y){for(E=[].concat(y.baseConcepts,y.relatedConcepts),_=0;_<E.length;_++)T=E[_],T.module==="HTML"&&(v=T.concept,v!=null&&g.push(v));g.length>0&&p.push([h,g])}var h,y,g,E,T,v,_,R,N={entries:i(function(){return p},"entries"),forEach:i(function(C){for(var P=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(P,V,I,p)}},"forEach"),get:i(function(C){var P=p.filter(function(w){return w[0]===C})[0];return P&&P[1]},"get"),has:i(function(C){return!!N.get(C)},"has"),keys:i(function(){return p.map(function(C){var P=o(C,1),w=P[0];return w})},"keys"),values:i(function(){return p.map(function(C){var P=o(C,2),w=P[1];return w})},"values")};e.default=(0,t.default)(N,N.entries())}}),wp=B({"../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(AM()),r=a(RM()),n=a(Tp()),o=a(ck()),s=a(uk());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}}),uv=B({"../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}}),dv=B({"../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})}}),pv=B({"../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(h=>h+h).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})}}),ml=B({"../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,h=": "){let y="",g=a.next();if(!g.done){y+=c.spacingOuter;const E=u+c.indent;for(;!g.done;){const T=f(g.value[0],c,E,d,p),v=f(g.value[1],c,E,d,p);y+=E+T+h+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 h="",y=a.next();if(!y.done){h+=c.spacingOuter;const g=u+c.indent;for(;!y.done;)h+=g+f(y.value,c,g,d,p),y=a.next(),y.done?c.min||(h+=","):h+=","+c.spacingInner;h+=c.spacingOuter+u}return h}i(n,"printIteratorValues");function o(a,c,u,d,p,f){let h="";if(a.length){h+=c.spacingOuter;const y=u+c.indent;for(let g=0;g<a.length;g++)h+=y,g in a&&(h+=f(a[g],c,y,d,p)),g<a.length-1?h+=","+c.spacingInner:c.min||(h+=",");h+=c.spacingOuter+u}return h}i(o,"printListItems");function s(a,c,u,d,p,f){let h="";const y=t(a,c.compareKeys);if(y.length){h+=c.spacingOuter;const g=u+c.indent;for(let E=0;E<y.length;E++){const T=y[E],v=f(T,c,g,d,p),_=f(a[T],c,g,d,p);h+=g+v+": "+_,E<y.length-1?h+=","+c.spacingInner:c.min||(h+=",")}h+=c.spacingOuter+u}return h}i(s,"printObjectProperties")}}),dk=B({"../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=ml(),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,h,y,g,E)=>{const T=p.toString();return T==="ArrayContaining"||T==="ArrayNotContaining"?++y>f.maxDepth?"["+T+"]":T+s+"["+(0,t.printListItems)(p.sample,f,h,y,g,E)+"]":T==="ObjectContaining"||T==="ObjectNotContaining"?++y>f.maxDepth?"["+T+"]":T+s+"{"+(0,t.printObjectProperties)(p.sample,f,h,y,g,E)+"}":T==="StringMatching"||T==="StringNotMatching"||T==="StringContaining"||T==="StringNotContaining"?T+s+E(p.sample,f,h,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}}),pk=B({"../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")}}}),fk=B({"../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(pk()),r=n(pv());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,h,y,g)=>g(o(d),p,f,h,y),"serialize");e.serialize=a;var c={serialize:a,test:s},u=c;e.default=u}}),mk=B({"../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=ml(),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,h,y,g,E,T)=>{const v=f.constructor.name;return++g>h.maxDepth?"["+v+"]":(h.min?"":v+r)+(n.indexOf(v)!==-1?"{"+(0,t.printObjectProperties)(c(f)?Array.from(f).reduce((_,R)=>(_[R.name]=R.value,_),{}):{...f},h,y,g,E,T)+"}":"["+(0,t.printListItems)(Array.from(f),h,y,g,E,T)+"]")},"serialize");e.serialize=u;var d={serialize:u,test:a},p=d;e.default=p}}),hk=B({"../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")}}),_p=B({"../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(hk());function r(d){return d&&d.__esModule?d:{default:d}}i(r,"_interopRequireDefault");var n=i((d,p,f,h,y,g,E)=>{const T=h+f.indent,v=f.colors;return d.map(_=>{const R=p[_];let N=E(R,f,T,y,g);return typeof R!="string"&&(N.indexOf(`
|
|
9
|
-
`)!==-1&&(N=f.spacingOuter+T+N+f.spacingOuter+h),N="{"+N+"}"),f.spacingInner+h+v.prop.open+_+v.prop.close+"="+v.value.open+N+v.value.close}).join("")},"printProps");e.printProps=n;var o=i((d,p,f,h,y,g)=>d.map(E=>p.spacingOuter+f+(typeof E=="string"?s(E,p):g(E,p,f,h,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,h,y)=>{const g=h.colors.tag;return g.open+"<"+d+(p&&g.close+p+h.spacingOuter+y+g.open)+(f?">"+g.close+f+h.spacingOuter+y+g.open+"</"+d:(p&&!h.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}}),yk=B({"../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=_p(),r=1,n=3,o=8,s=11,a=/^((HTML|SVG)\w*)?Element$/,c=i(T=>{try{return typeof T.hasAttribute=="function"&&T.hasAttribute("is")}catch{return!1}},"testHasAttribute"),u=i(T=>{const v=T.constructor.name,{nodeType:_,tagName:R}=T,N=typeof R=="string"&&R.includes("-")||c(T);return _===r&&(a.test(v)||N)||_===n&&v==="Text"||_===o&&v==="Comment"||_===s&&v==="DocumentFragment"},"testNode"),d=i(T=>{var v;return(T==null||(v=T.constructor)===null||v===void 0?void 0:v.name)&&u(T)},"test");e.test=d;function p(T){return T.nodeType===n}i(p,"nodeIsText");function f(T){return T.nodeType===o}i(f,"nodeIsComment");function h(T){return T.nodeType===s}i(h,"nodeIsFragment");var y=i((T,v,_,R,N,j)=>{if(p(T))return(0,t.printText)(T.data,v);if(f(T))return(0,t.printComment)(T.data,v);const C=h(T)?"DocumentFragment":T.tagName.toLowerCase();return++R>v.maxDepth?(0,t.printElementAsLeaf)(C,v):(0,t.printElement)(C,(0,t.printProps)(h(T)?[]:Array.from(T.attributes).map(P=>P.name).sort(),h(T)?{}:Array.from(T.attributes).reduce((P,w)=>(P[w.name]=w.value,P),{}),v,_+v.indent,R,N,j),(0,t.printChildren)(Array.prototype.slice.call(T.childNodes||T.children),v,_+v.indent,R,N,j),v,_)},"serialize");e.serialize=y;var g={serialize:y,test:d},E=g;e.default=E}}),gk=B({"../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=ml(),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"),h=i(w=>"["+w+"]","printAsLeaf"),y=" ",g="…",E=i((w,S,k,I,V,H,A)=>++I>S.maxDepth?h(f(A)):f(A)+y+"{"+(0,t.printIteratorEntries)(w.entries(),S,k,I,V,H)+"}","printImmutableEntries");function T(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(T,"getRecordEntries");var v=i((w,S,k,I,V,H)=>{const A=f(w._name||"Record");return++I>S.maxDepth?h(A):A+y+"{"+(0,t.printIteratorEntries)(T(w),S,k,I,V,H)+"}"},"printImmutableRecord"),_=i((w,S,k,I,V,H)=>{const A=f("Seq");return++I>S.maxDepth?h(A):w[o]?A+y+"{"+(w._iter||w._object?(0,t.printIteratorEntries)(w.entries(),S,k,I,V,H):g)+"}":A+y+"["+(w._iter||w._array||w._collection||w._iterable?(0,t.printIteratorValues)(w.values(),S,k,I,V,H):g)+"]"},"printImmutableSeq"),R=i((w,S,k,I,V,H,A)=>++I>S.maxDepth?h(f(A)):f(A)+y+"["+(0,t.printIteratorValues)(w.values(),S,k,I,V,H)+"]","printImmutableValues"),N=i((w,S,k,I,V,H)=>w[s]?E(w,S,k,I,V,H,w[a]?"OrderedMap":"Map"):w[n]?R(w,S,k,I,V,H,"List"):w[d]?R(w,S,k,I,V,H,w[a]?"OrderedSet":"Set"):w[p]?R(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},P=C;e.default=P}}),bk=B({"../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,h=60116,y=60121,g=60122,E=60117,T=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"),h=_("react.lazy"),y=_("react.block"),g=_("react.server.block"),E=_("react.fundamental"),T=_("react.debug_trace_mode"),v=_("react.legacy_hidden"));var _;function R(A){if(typeof A=="object"&&A!==null){var L=A.$$typeof;switch(L){case t:switch(A=A.type,A){case n:case s:case o:case d:case p:return A;default:switch(A=A&&A.$$typeof,A){case c:case u:case h:case f:case a:return A;default:return L}}case r:return L}}}i(R,"y");var N=a,j=t,C=u,P=n,w=h,S=f,k=r,I=s,V=o,H=d;e.ContextConsumer=c,e.ContextProvider=N,e.Element=j,e.ForwardRef=C,e.Fragment=P,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(A){return R(A)===c},e.isContextProvider=function(A){return R(A)===a},e.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===t},e.isForwardRef=function(A){return R(A)===u},e.isFragment=function(A){return R(A)===n},e.isLazy=function(A){return R(A)===h},e.isMemo=function(A){return R(A)===f},e.isPortal=function(A){return R(A)===r},e.isProfiler=function(A){return R(A)===s},e.isStrictMode=function(A){return R(A)===o},e.isSuspense=function(A){return R(A)===d},e.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===n||A===s||A===T||A===o||A===d||A===p||A===v||typeof A=="object"&&A!==null&&(A.$$typeof===h||A.$$typeof===f||A.$$typeof===a||A.$$typeof===c||A.$$typeof===u||A.$$typeof===E||A.$$typeof===y||A[0]===g)},e.typeOf=R}}),vk=B({"../node_modules/pretty-format/node_modules/react-is/index.js"(e,t){t.exports=bk()}}),Ek=B({"../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(vk()),r=_p();function n(h){if(typeof WeakMap!="function")return null;var y=new WeakMap,g=new WeakMap;return(n=i(function(E){return E?g:y},"_getRequireWildcardCache"))(h)}i(n,"_getRequireWildcardCache");function o(h,y){if(!y&&h&&h.__esModule)return h;if(h===null||typeof h!="object"&&typeof h!="function")return{default:h};var g=n(y);if(g&&g.has(h))return g.get(h);var E={},T=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var v in h)if(v!=="default"&&Object.prototype.hasOwnProperty.call(h,v)){var _=T?Object.getOwnPropertyDescriptor(h,v):null;_&&(_.get||_.set)?Object.defineProperty(E,v,_):E[v]=h[v]}return E.default=h,g&&g.set(h,E),E}i(o,"_interopRequireWildcard");var s=i((h,y=[])=>(Array.isArray(h)?h.forEach(g=>{s(g,y)}):h!=null&&h!==!1&&y.push(h),y),"getChildren"),a=i(h=>{const y=h.type;if(typeof y=="string")return y;if(typeof y=="function")return y.displayName||y.name||"Unknown";if(t.isFragment(h))return"React.Fragment";if(t.isSuspense(h))return"React.Suspense";if(typeof y=="object"&&y!==null){if(t.isContextProvider(h))return"Context.Provider";if(t.isContextConsumer(h))return"Context.Consumer";if(t.isForwardRef(h)){if(y.displayName)return y.displayName;const g=y.render.displayName||y.render.name||"";return g!==""?"ForwardRef("+g+")":"ForwardRef"}if(t.isMemo(h)){const g=y.displayName||y.type.displayName||y.type.name||"";return g!==""?"Memo("+g+")":"Memo"}}return"UNDEFINED"},"getType"),c=i(h=>{const{props:y}=h;return Object.keys(y).filter(g=>g!=="children"&&y[g]!==void 0).sort()},"getPropKeys"),u=i((h,y,g,E,T,v)=>++E>y.maxDepth?(0,r.printElementAsLeaf)(a(h),y):(0,r.printElement)(a(h),(0,r.printProps)(c(h),h.props,y,g+y.indent,E,T,v),(0,r.printChildren)(s(h.props.children),y,g+y.indent,E,T,v),y,g),"serialize");e.serialize=u;var d=i(h=>h!=null&&t.isElement(h),"test");e.test=d;var p={serialize:u,test:d},f=p;e.default=f}}),Tk=B({"../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=_p(),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(h=>f[h]!==void 0).sort():[]},"getPropKeys"),a=i((p,f,h,y,g,E)=>++y>f.maxDepth?(0,t.printElementAsLeaf)(p.type,f):(0,t.printElement)(p.type,p.props?(0,t.printProps)(s(p),p.props,f,h+f.indent,y,g,E):"",p.children?(0,t.printChildren)(p.children,f,h+f.indent,y,g,E):"",f,h),"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}}),wk=B({"../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(pv()),r=ml(),n=p(dk()),o=p(fk()),s=p(mk()),a=p(yk()),c=p(gk()),u=p(Ek()),d=p(Tk());function p(J){return J&&J.__esModule?J:{default:J}}i(p,"_interopRequireDefault");var f=Object.prototype.toString,h=Date.prototype.toISOString,y=Error.prototype.toString,g=RegExp.prototype.toString,E=i(J=>typeof J.constructor=="function"&&J.constructor.name||"Object","getConstructorName"),T=i(J=>typeof window<"u"&&J===window,"isWindow"),v=/^Symbol\((.*)\)(.*)$/,_=/\n/gi,R=class extends Error{constructor(Q,re){super(Q),this.stack=re,this.name=this.constructor.name}};i(R,"PrettyFormatPluginError");var N=R;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 P(J){return`${J}n`}i(P,"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 P(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 }":h.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 he=++oe>Q.maxDepth,pe=Q.min;if(Q.callToJSON&&!he&&J.toJSON&&typeof J.toJSON=="function"&&!de)return $(J.toJSON(),Q,re,oe,ne,!0);const $e=f.call(J);return $e==="[object Arguments]"?he?"[Arguments]":(pe?"":"Arguments ")+"["+(0,r.printListItems)(J,Q,re,oe,ne,$)+"]":j($e)?he?"["+J.constructor.name+"]":(pe||!Q.printBasicPrototype&&J.constructor.name==="Array"?"":J.constructor.name+" ")+"["+(0,r.printListItems)(J,Q,re,oe,ne,$)+"]":$e==="[object Map]"?he?"[Map]":"Map {"+(0,r.printIteratorEntries)(J.entries(),Q,re,oe,ne,$," => ")+"}":$e==="[object Set]"?he?"[Set]":"Set {"+(0,r.printIteratorValues)(J.values(),Q,re,oe,ne,$)+"}":he||T(J)?"["+E(J)+"]":(pe||!Q.printBasicPrototype&&E(J)==="Object"?"":E(J)+" ")+"{"+(0,r.printObjectProperties)(J,Q,re,oe,ne,$)+"}"}i(V,"printComplexValue");function H(J){return J.serialize!=null}i(H,"isNewPlugin");function A(J,Q,re,oe,ne,de){let he;try{he=H(J)?J.serialize(Q,re,oe,ne,de,$):J.print(Q,pe=>$(pe,re,oe,ne,de),pe=>{const $e=oe+re.indent;return $e+pe.replace(_,`
|
|
10
|
-
`+$e)},{edgeSpacing:re.spacingOuter,min:re.min,spacing:re.spacingInner},re.colors)}catch(pe){throw new N(pe.message,pe.stack)}if(typeof he!="string")throw new Error(`pretty-format: Plugin must return type "string" but instead returned "${typeof he}".`);return he}i(A,"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 $(J,Q,re,oe,ne,de){const he=L(Q.plugins,J);if(he!==null)return A(he,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($,"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?"":Re(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 Re(J){return new Array(J+1).join(" ")}i(Re,"createIndent");function Oe(J,Q){if(Q&&(ie(Q),Q.plugins)){const oe=L(Q.plugins,J);if(oe!==null)return A(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 ze={AsymmetricMatcher:n.default,ConvertAnsi:o.default,DOMCollection:s.default,DOMElement:a.default,Immutable:c.default,ReactElement:u.default,ReactTestComponent:d.default};e.plugins=ze;var Ye=Oe;e.default=Ye}}),_k=B({"../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),h=0,y=p.length;h<y;h++){var g=p.charCodeAt(h);f[h*2]=g>>>8,f[h*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,h=p.length;f<h;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 h,y,g={},E={},T="",v="",_="",R=2,N=3,j=2,C=[],P=0,w=0,S;for(S=0;S<d.length;S+=1)if(T=d.charAt(S),Object.prototype.hasOwnProperty.call(g,T)||(g[T]=N++,E[T]=!0),v=_+T,Object.prototype.hasOwnProperty.call(g,v))_=v;else{if(Object.prototype.hasOwnProperty.call(E,_)){if(_.charCodeAt(0)<256){for(h=0;h<j;h++)P=P<<1,w==p-1?(w=0,C.push(f(P)),P=0):w++;for(y=_.charCodeAt(0),h=0;h<8;h++)P=P<<1|y&1,w==p-1?(w=0,C.push(f(P)),P=0):w++,y=y>>1}else{for(y=1,h=0;h<j;h++)P=P<<1|y,w==p-1?(w=0,C.push(f(P)),P=0):w++,y=0;for(y=_.charCodeAt(0),h=0;h<16;h++)P=P<<1|y&1,w==p-1?(w=0,C.push(f(P)),P=0):w++,y=y>>1}R--,R==0&&(R=Math.pow(2,j),j++),delete E[_]}else for(y=g[_],h=0;h<j;h++)P=P<<1|y&1,w==p-1?(w=0,C.push(f(P)),P=0):w++,y=y>>1;R--,R==0&&(R=Math.pow(2,j),j++),g[v]=N++,_=String(T)}if(_!==""){if(Object.prototype.hasOwnProperty.call(E,_)){if(_.charCodeAt(0)<256){for(h=0;h<j;h++)P=P<<1,w==p-1?(w=0,C.push(f(P)),P=0):w++;for(y=_.charCodeAt(0),h=0;h<8;h++)P=P<<1|y&1,w==p-1?(w=0,C.push(f(P)),P=0):w++,y=y>>1}else{for(y=1,h=0;h<j;h++)P=P<<1|y,w==p-1?(w=0,C.push(f(P)),P=0):w++,y=0;for(y=_.charCodeAt(0),h=0;h<16;h++)P=P<<1|y&1,w==p-1?(w=0,C.push(f(P)),P=0):w++,y=y>>1}R--,R==0&&(R=Math.pow(2,j),j++),delete E[_]}else for(y=g[_],h=0;h<j;h++)P=P<<1|y&1,w==p-1?(w=0,C.push(f(P)),P=0):w++,y=y>>1;R--,R==0&&(R=Math.pow(2,j),j++)}for(y=2,h=0;h<j;h++)P=P<<1|y&1,w==p-1?(w=0,C.push(f(P)),P=0):w++,y=y>>1;for(;;)if(P=P<<1,w==p-1){C.push(f(P));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 h=[],y=4,g=4,E=3,T="",v=[],_,R,N,j,C,P,w,S={val:f(0),position:p,index:1};for(_=0;_<3;_+=1)h[_]=_;for(N=0,C=Math.pow(2,2),P=1;P!=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)*P,P<<=1;switch(N){case 0:for(N=0,C=Math.pow(2,8),P=1;P!=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)*P,P<<=1;w=n(N);break;case 1:for(N=0,C=Math.pow(2,16),P=1;P!=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)*P,P<<=1;w=n(N);break;case 2:return""}for(h[3]=w,R=w,v.push(w);;){if(S.index>d)return"";for(N=0,C=Math.pow(2,E),P=1;P!=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)*P,P<<=1;switch(w=N){case 0:for(N=0,C=Math.pow(2,8),P=1;P!=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)*P,P<<=1;h[g++]=n(N),w=g-1,y--;break;case 1:for(N=0,C=Math.pow(2,16),P=1;P!=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)*P,P<<=1;h[g++]=n(N),w=g-1,y--;break;case 2:return v.join("")}if(y==0&&(y=Math.pow(2,E),E++),h[w])T=h[w];else if(w===g)T=R+R.charAt(0);else return null;v.push(T),h[g++]=R+T.charAt(0),y--,R=T,y==0&&(y=Math.pow(2,E),E++)}},"_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})}}),fv=B({"../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 Fs=="function"&&Fs;if(!p&&f)return f(d,!0);if(c)return c(d,!0);var h=new Error("Cannot find module '"+d+"'");throw h.code="MODULE_NOT_FOUND",h}var y=o[d]={exports:{}};n[d][0].call(y.exports,function(g){var E=n[d][1][g];return a(E||g)},y,y.exports,r,n,o,s)}return o[d].exports}i(a,"s");for(var c=typeof Fs=="function"&&Fs,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(h){var y=i(function(){var g=p,E,T,v=arguments.length-1,_=Array(v+1),R=!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}R=!1,E=new s(!1),g.set(arguments[N],E),g=E}return R&&(g.has(arguments[v])?T=g.get(arguments[v]):R=!1),R||(T=h.apply(null,arguments),g.set(arguments[v],T)),d>0&&(_[v]={cacheItem:g,arg:arguments[v]},R?a(f,_):f.push(_),f.length>d&&c(f.shift())),y.wasMemoized=R,y.numArgs=v+1,T},"memoizerific");return y.limit=d,y.wasMemoized=!1,y.cache=p,y.lru=f,y}};function a(d,p){var f=d.length,h=p.length,y,g,E;for(g=0;g<f;g++){for(y=!0,E=0;E<h;E++)if(!u(d[g][E].arg,p[E].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],h,y;for(f.cacheItem.delete(f.arg),y=p-2;y>=0&&(f=d[y],h=f.cacheItem.get(f.arg),!h||!h.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)})}}),mv=B({"../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")}}),Sp=B({"../node_modules/picoquery/lib/shared.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultOptions=e.defaultShouldSerializeObject=e.defaultValueSerializer=void 0;var t=mv(),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}}}),hv=B({"../node_modules/picoquery/lib/object-util.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getDeepObject=o,e.stringifyObject=p;var t=Sp(),r=mv();function n(f){return f==="__proto__"||f==="constructor"||f==="prototype"}i(n,"isPrototypeKey");function o(f,h,y,g,E){if(n(h))return f;const T=f[h];return typeof T=="object"&&T!==null?T:!g&&(E||typeof y=="number"||typeof y=="string"&&y*0===0&&y.indexOf(".")===-1)?f[h]=[]:f[h]={}}i(o,"getDeepObject");var s=20,a="[]",c="[",u="]",d=".";function p(f,h,y=0,g,E){const{nestingSyntax:T=t.defaultOptions.nestingSyntax,arrayRepeat:v=t.defaultOptions.arrayRepeat,arrayRepeatSyntax:_=t.defaultOptions.arrayRepeatSyntax,nesting:R=t.defaultOptions.nesting,delimiter:N=t.defaultOptions.delimiter,valueSerializer:j=t.defaultOptions.valueSerializer,shouldSerializeObject:C=t.defaultOptions.shouldSerializeObject}=h,P=typeof N=="number"?String.fromCharCode(N):N,w=E===!0&&v,S=T==="dot"||T==="js"&&!E;if(y>s)return"";let k="",I=!0,V=!1;for(const H in f){const A=f[H];if(A===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+=P),typeof A=="object"&&A!==null&&!C(A)?(V=A.pop!==void 0,(R||v&&V)&&(k+=p(A,h,y+1,L,V))):(k+=(0,r.encodeString)(L),k+="=",k+=j(A,H)),I&&(I=!1)}return k}i(p,"stringifyObject")}}),Sk=B({"../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,h=0,y=u,g=t;for(;u>-1&&u<d;){const E=a(c[u+1],4),T=a(c[u+2],0),v=E|T,_=n[v];if(g=n[256+g+_],h=h<<6|v&n[364+_],g===t)p+=c.slice(f,y),p+=h<=65535?String.fromCharCode(h):String.fromCharCode(55232+(h>>10),56320+(h&1023)),h=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")}}),Pk=B({"../node_modules/picoquery/lib/parse.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.numberValueDeserializer=e.numberKeyDeserializer=void 0,e.parse=d;var t=hv(),r=Sp(),n=Sk(),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,h,y,g){let E=p.substring(f,h);return y&&(E=E.replace(a," ")),g&&(E=(0,n.decodeURIComponent)(E)||E),E}i(u,"computeKeySlice");function d(p,f){const{valueDeserializer:h=r.defaultOptions.valueDeserializer,keyDeserializer:y=r.defaultOptions.keyDeserializer,arrayRepeatSyntax:g=r.defaultOptions.arrayRepeatSyntax,nesting:E=r.defaultOptions.nesting,arrayRepeat:T=r.defaultOptions.arrayRepeat,nestingSyntax:v=r.defaultOptions.nestingSyntax,delimiter:_=r.defaultOptions.delimiter}=f??{},R=typeof _=="string"?_.charCodeAt(0):_,N=v==="js",j=new c;if(typeof p!="string")return j;const C=p.length;let P="",w=-1,S=-1,k=-1,I=j,V,H="",A="",L=!1,$=!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):R,se===R){if(ie=S>w,ie||(S=ue),k!==S-1&&(A=u(p,k+1,W>-1?W:S,D,L),H=y(A),V!==void 0&&(I=(0,t.getDeepObject)(I,V,H,N&&X,void 0))),ie||H!==""){ie&&(P=p.slice(S+1,ue),K&&(P=P.replace(a," ")),$&&(P=(0,n.decodeURIComponent)(P)||P));const ee=h(P,H);if(T){const Re=I[H];Re===void 0?W>-1?I[H]=[ee]:I[H]=ee:Re.pop?Re.push(ee):I[H]=[Re,ee]}else I[H]=ee}P="",w=ue,S=ue,L=!1,$=!1,D=!1,K=!1,X=!1,W=-1,k=ue,I=j,V=void 0,H=""}else se===93?(T&&g==="bracket"&&be===91&&(W=ae),E&&(v==="index"||N)&&S<=w&&(k!==ae&&(A=u(p,k+1,ue,D,L),H=y(A),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?E&&(v==="dot"||N)&&S<=w&&(k!==ae&&(A=u(p,k+1,ue,D,L),H=y(A),V!==void 0&&(I=(0,t.getDeepObject)(I,V,H,N)),V=H,D=!1,L=!1),X=!0,k=ue):se===91?E&&(v==="index"||N)&&S<=w&&(k!==ae&&(A=u(p,k+1,ue,D,L),H=y(A),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:$=!0:se===43?S>w?K=!0:D=!0:se===37&&(S>w?$=!0:L=!0);ae=ue,be=se}return j}i(d,"parse")}}),Ak=B({"../node_modules/picoquery/lib/stringify.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=r;var t=hv();function r(n,o){if(n===null||typeof n!="object")return"";const s=o??{};return(0,t.stringifyObject)(n,s)}i(r,"stringify")}}),Pp=B({"../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=Pk();Object.defineProperty(e,"parse",{enumerable:!0,get:i(function(){return n.parse},"get")});var o=Ak();Object.defineProperty(e,"stringify",{enumerable:!0,get:i(function(){return o.stringify},"get")}),r(Sp(),e)}}),yv=B({"../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:""}}}),Rk=B({"../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:"ÿ"}}}),gv=B({"../node_modules/entities/lib/maps/xml.json"(e,t){t.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}}}),Ok=B({"../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}}}),Ck=B({"../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(Ok()),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}}),rg=B({"../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(yv()),n=t(Rk()),o=t(gv()),s=t(Ck()),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(h){return String(h).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),h=0,y=0;h<f.length;h++)p[y]===f[h]?(f[h]+=";?",y++):f[h]+=";";var g=new RegExp("&(?:"+f.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),E=d(r.default);function T(v){return v.substr(-1)!==";"&&(v+=";"),E(v)}return i(T,"replacer"),function(v){return String(v).replace(g,T)}})();function d(p){return i(function(h){if(h.charAt(1)==="#"){var y=h.charAt(2);return y==="X"||y==="x"?s.default(parseInt(h.substr(3),16)):s.default(parseInt(h.substr(2),10))}return p[h.slice(1,-1)]||h},"replace")}i(d,"getReplacer")}}),ng=B({"../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(gv()),n=u(r.default),o=d(n);e.encodeXML=v(n);var s=t(yv()),a=u(s.default),c=d(a);e.encodeHTML=y(a,c),e.encodeNonAsciiHTML=v(a);function u(_){return Object.keys(_).sort().reduce(function(R,N){return R[_[N]]="&"+N+";",R},{})}i(u,"getInverseObj");function d(_){for(var R=[],N=[],j=0,C=Object.keys(_);j<C.length;j++){var P=C[j];P.length===1?R.push("\\"+P):N.push(P)}R.sort();for(var w=0;w<R.length-1;w++){for(var S=w;S<R.length-1&&R[S].charCodeAt(1)+1===R[S+1].charCodeAt(1);)S+=1;var k=1+S-w;k<3||R.splice(w,k,R[w]+"-"+R[S])}return N.unshift("["+R.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 h(_){return"&#x"+(_.length>1?f(_):_.charCodeAt(0)).toString(16).toUpperCase()+";"}i(h,"singleCharReplacer");function y(_,R){return function(N){return N.replace(R,function(j){return _[j]}).replace(p,h)}}i(y,"getInverse");var g=new RegExp(o.source+"|"+p.source,"g");function E(_){return _.replace(g,h)}i(E,"escape"),e.escape=E;function T(_){return _.replace(o,h)}i(T,"escapeUTF8"),e.escapeUTF8=T;function v(_){return function(R){return R.replace(g,function(N){return _[N]||h(N)})}}i(v,"getASCIIEncoder")}}),xk=B({"../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=rg(),r=ng();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=ng();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=rg();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")})}}),Nk=B({"../node_modules/ansi-to-html/lib/ansi_to_html.js"(e,t){function r(A,L){if(!(A instanceof L))throw new TypeError("Cannot call a class as a function")}i(r,"_classCallCheck");function n(A,L){for(var $=0;$<L.length;$++){var D=L[$];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(A,D.key,D)}}i(n,"_defineProperties");function o(A,L,$){return L&&n(A.prototype,L),$&&n(A,$),A}i(o,"_createClass");function s(A,L){var $=typeof Symbol<"u"&&A[Symbol.iterator]||A["@@iterator"];if(!$){if(Array.isArray(A)||($=a(A))||L&&A&&typeof A.length=="number"){$&&(A=$);var D=0,K=i(function(){},"F");return{s:K,n:i(function(){return D>=A.length?{done:!0}:{done:!1,value:A[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(){$=$.call(A)},"s"),n:i(function(){var ae=$.next();return X=ae.done,ae},"n"),e:i(function(ae){ie=!0,se=ae},"e"),f:i(function(){try{!X&&$.return!=null&&$.return()}finally{if(ie)throw se}},"f")}}i(s,"_createForOfIteratorHelper");function a(A,L){if(A){if(typeof A=="string")return c(A,L);var $=Object.prototype.toString.call(A).slice(8,-1);if($==="Object"&&A.constructor&&($=A.constructor.name),$==="Map"||$==="Set")return Array.from(A);if($==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($))return c(A,L)}}i(a,"_unsupportedIterableToArray");function c(A,L){(L==null||L>A.length)&&(L=A.length);for(var $=0,D=new Array(L);$<L;$++)D[$]=A[$];return D}i(c,"_arrayLikeToArray");var u=xk(),d={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:p()};function p(){var A={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($){_(0,5).forEach(function(D){return f(L,$,D,A)})})}),_(0,23).forEach(function(L){var $=L+232,D=h(L*10+8);A[$]="#"+D+D+D}),A}i(p,"getDefaultColors");function f(A,L,$,D){var K=16+A*36+L*6+$,X=A>0?A*40+55:0,ie=L>0?L*40+55:0,se=$>0?$*40+55:0;D[K]=y([X,ie,se])}i(f,"setStyleColor");function h(A){for(var L=A.toString(16);L.length<2;)L="0"+L;return L}i(h,"toHexString");function y(A){var L=[],$=s(A),D;try{for($.s();!(D=$.n()).done;){var K=D.value;L.push(h(K))}}catch(X){$.e(X)}finally{$.f()}return"#"+L.join("")}i(y,"toColorHexString");function g(A,L,$,D){var K;return L==="text"?K=j($,D):L==="display"?K=T(A,$,D):L==="xterm256Foreground"?K=w(A,D.colors[$]):L==="xterm256Background"?K=S(A,D.colors[$]):L==="rgb"&&(K=E(A,$)),K}i(g,"generateOutput");function E(A,L){L=L.substring(2).slice(0,-1);var $=+L.substr(0,2),D=L.substring(5).split(";"),K=D.map(function(X){return("0"+Number(X).toString(16)).substr(-2)}).join("");return P(A,($===38?"color:#":"background-color:#")+K)}i(E,"handleRgb");function T(A,L,$){L=parseInt(L,10);var D={"-1":i(function(){return"<br/>"},"_"),0:i(function(){return A.length&&v(A)},"_"),1:i(function(){return C(A,"b")},"_"),3:i(function(){return C(A,"i")},"_"),4:i(function(){return C(A,"u")},"_"),8:i(function(){return P(A,"display:none")},"_"),9:i(function(){return C(A,"strike")},"_"),22:i(function(){return P(A,"font-weight:normal;text-decoration:none;font-style:normal")},"_"),23:i(function(){return k(A,"i")},"_"),24:i(function(){return k(A,"u")},"_"),39:i(function(){return w(A,$.fg)},"_"),49:i(function(){return S(A,$.bg)},"_"),53:i(function(){return P(A,"text-decoration:overline")},"_")},K;return D[L]?K=D[L]():4<L&&L<7?K=C(A,"blink"):29<L&&L<38?K=w(A,$.colors[L-30]):39<L&&L<48?K=S(A,$.colors[L-40]):89<L&&L<98?K=w(A,$.colors[8+(L-90)]):99<L&&L<108&&(K=S(A,$.colors[8+(L-100)])),K}i(T,"handleDisplay");function v(A){var L=A.slice(0);return A.length=0,L.reverse().map(function($){return"</"+$+">"}).join("")}i(v,"resetStyles");function _(A,L){for(var $=[],D=A;D<=L;D++)$.push(D);return $}i(_,"range");function R(A){return function(L){return(A===null||L.category!==A)&&A!=="all"}}i(R,"notCategory");function N(A){A=parseInt(A,10);var L=null;return A===0?L="all":A===1?L="bold":2<A&&A<5?L="underline":4<A&&A<7?L="blink":A===8?L="hide":A===9?L="strike":29<A&&A<38||A===39||89<A&&A<98?L="foreground-color":(39<A&&A<48||A===49||99<A&&A<108)&&(L="background-color"),L}i(N,"categoryForCode");function j(A,L){return L.escapeXML?u.encodeXML(A):A}i(j,"pushText");function C(A,L,$){return $||($=""),A.push(L),"<".concat(L).concat($?' style="'.concat($,'"'):"",">")}i(C,"pushTag");function P(A,L){return C(A,"span",L)}i(P,"pushStyle");function w(A,L){return C(A,"span","color:"+L)}i(w,"pushForegroundColor");function S(A,L){return C(A,"span","background-color:"+L)}i(S,"pushBackgroundColor");function k(A,L){var $;if(A.slice(-1)[0]===L&&($=A.pop()),$)return"</"+L+">"}i(k,"closeTag");function I(A,L,$){var D=!1,K=3;function X(){return""}i(X,"remove");function ie(ne,de){return $("xterm256Foreground",de),""}i(ie,"removeXterm256Foreground");function se(ne,de){return $("xterm256Background",de),""}i(se,"removeXterm256Background");function W(ne){return L.newline?$("display",-1):$("text",ne),""}i(W,"newline");function ae(ne,de){D=!0,de.trim().length===0&&(de="0"),de=de.trimRight(";").split(";");var he=s(de),pe;try{for(he.s();!(pe=he.n()).done;){var $e=pe.value;$("display",$e)}}catch(it){he.e(it)}finally{he.f()}return""}i(ae,"ansiMess");function be(ne){return $("text",ne),""}i(be,"realText");function ue(ne){return $("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 Re(ne,de){de>K&&D||(D=!1,A=A.replace(ne.pattern,ne.sub))}i(Re,"process");var Oe=[],ze=A,Ye=ze.length;e:for(;Ye>0;){for(var J=0,Q=0,re=ee.length;Q<re;J=++Q){var oe=ee[J];if(Re(oe,J),A.length!==Ye){Ye=A.length;continue e}}if(A.length===Ye)break;Oe.push(0),Ye=A.length}return Oe}i(I,"tokenize");function V(A,L,$){return L!=="text"&&(A=A.filter(R(N($))),A.push({token:L,data:$,category:N($)})),A}i(V,"updateStickyStack");var H=(function(){function A(L){r(this,A),L=L||{},L.colors&&(L.colors=Object.assign({},d.colors,L.colors)),this.options=Object.assign({},d,L),this.stack=[],this.stickyStack=[]}return i(A,"Filter"),o(A,[{key:"toHtml",value:i(function($){var D=this;$=typeof $=="string"?[$]:$;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($.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")}]),A})();t.exports=H}}),Ik=B({"../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 bv extends Error{constructor(m){super(`No parslet found for token: ${n(m)}`),this.token=m,Object.setPrototypeOf(this,bv.prototype)}getToken(){return this.token}};i(o,"NoParsletFoundError");let s=o;const a=class vv extends Error{constructor(m){super(`The parsing ended early. The next token was: ${n(m)}`),this.token=m,Object.setPrototypeOf(this,vv.prototype)}getToken(){return this.token}};i(a,"EarlyEndOfParseError");let c=a;const u=class Ev extends Error{constructor(m,b){let x=`Unexpected type: '${m.type}'.`;b!==void 0&&(x+=` Message: ${b}`),super(x),Object.setPrototypeOf(this,Ev.prototype)}};i(u,"UnexpectedTypeError");let d=u;function p(l){return m=>m.startsWith(l)?{type:l,text:l}:null}i(p,"makePunctuationRule");function f(l){let m=0,b;const x=l[0];let F=!1;if(x!=="'"&&x!=='"')return null;for(;m<l.length;){if(m++,b=l[m],!F&&b===x){m++;break}F=!F&&b==="\\"}if(b!==x)throw new Error("Unterminated String");return l.slice(0,m)}i(f,"getQuoted");const h=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 m=l[0];if(!h.test(m))return null;let b=1;do{if(m=l[b],!y.test(m))break;b++}while(b<l.length);return l.slice(0,b)}i(g,"getIdentifier");const E=/^(NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity))/;function T(l){var m,b;return(b=(m=E.exec(l))===null||m===void 0?void 0:m[0])!==null&&b!==void 0?b:null}i(T,"getNumber");const v=i(l=>{const m=g(l);return m==null?null:{type:"Identifier",text:m}},"identifierRule");function _(l){return m=>{if(!m.startsWith(l))return null;const b=m[l.length];return b!==void 0&&y.test(b)?null:{type:l,text:l}}}i(_,"makeKeyWordRule");const R=i(l=>{const m=f(l);return m==null?null:{type:"StringValue",text:m}},"stringValueRule"),N=i(l=>l.length>0?null:{type:"EOF",text:""},"eofRule"),j=i(l=>{const m=T(l);return m===null?null:{type:"Number",text:m}},"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,R],P=/^\s*\n\s*/,w=class Gs{static create(m){const b=this.read(m);m=b.text;const x=this.read(m);return m=x.text,new Gs(m,void 0,b.token,x.token)}constructor(m,b,x,F){this.text="",this.text=m,this.previous=b,this.current=x,this.next=F}static read(m,b=!1){b=b||P.test(m),m=m.trim();for(const x of C){const F=x(m);if(F!==null){const G=Object.assign(Object.assign({},F),{startOfLine:b});return m=m.slice(G.text.length),{text:m,token:G}}}throw new Error("Unexpected Token "+m)}advance(){const m=Gs.read(this.text);return new Gs(m.text,this.current,this.next,m.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 A(l){var m;if(l.type==="JsdocTypeVariadic"){if(((m=l.element)===null||m===void 0?void 0:m.type)==="JsdocTypeName")return l;throw new d(l)}if(l.type!=="JsdocTypeNumber"&&l.type!=="JsdocTypeName")throw new d(l);return l}i(A,"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 $(l){return l.type==="JsdocTypeIndexSignature"||l.type==="JsdocTypeMappedType"}i($,"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(m,b,x){this.grammar=m,typeof b=="string"?this._lexer=S.create(b):this._lexer=b,this.baseParser=x}get lexer(){return this._lexer}parse(){const m=this.parseType(D.ALL);if(this.lexer.current.type!=="EOF")throw new c(this.lexer.current);return m}parseType(m){return k(this.parseIntermediateType(m))}parseIntermediateType(m){const b=this.tryParslets(null,m);if(b===null)throw new s(this.lexer.current);return this.parseInfixIntermediateType(b,m)}parseInfixIntermediateType(m,b){let x=this.tryParslets(m,b);for(;x!==null;)m=x,x=this.tryParslets(m,b);return m}tryParslets(m,b){for(const x of this.grammar){const F=x(this,b,m);if(F!==null)return F}return null}consume(m){return Array.isArray(m)||(m=[m]),m.includes(this.lexer.current.type)?(this._lexer=this.lexer.advance(),!0):!1}acceptLexerState(m){this._lexer=m.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,m,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 m=i((b,x,F)=>{const G=b.lexer.current.type,Z=b.lexer.next.type;if(F===null){if("parsePrefix"in l&&l.accept(G,Z))return l.parsePrefix(b)}else if("parseInfix"in l&&l.precedence>x&&l.accept(G,Z))return l.parseInfix(b,F);return null},"parslet");return Object.defineProperty(m,"name",{value:l.name}),m}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,m)=>(l.consume("="),{type:"JsdocTypeOptional",element:k(m),meta:{position:"suffix"}}),"parseInfix")}),be=W({name:"numberParslet",accept:i(l=>l==="Number","accept"),parsePrefix:i(l=>{const m=parseFloat(l.lexer.current.text);return l.consume("Number"),{type:"JsdocTypeNumber",value:m}},"parsePrefix")}),ue=W({name:"parenthesisParslet",accept:i(l=>l==="(","accept"),parsePrefix:i(l=>{if(l.consume("("),l.consume(")"))return{type:"JsdocTypeParameterList",elements:[]};const m=l.parseIntermediateType(D.ALL);if(!l.consume(")"))throw new Error("Unterminated parenthesis");return m.type==="JsdocTypeParameterList"?m:m.type==="JsdocTypeKeyValue"?{type:"JsdocTypeParameterList",elements:[m]}:{type:"JsdocTypeParenthesis",element:k(m)}},"parsePrefix")}),ee=W({name:"specialTypesParslet",accept:i((l,m)=>l==="?"&&ie(m)||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")}),Re=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,m)=>(l.consume("!"),{type:"JsdocTypeNotNullable",element:k(m),meta:{position:"suffix"}}),"parseInfix")});function Oe({allowTrailingComma:l}){return W({name:"parameterListParslet",accept:i(m=>m===",","accept"),precedence:D.PARAMETER_LIST,parseInfix:i((m,b)=>{const x=[I(b)];m.consume(",");do try{const F=m.parseIntermediateType(D.PARAMETER_LIST);x.push(I(F))}catch(F){if(F instanceof s)break;throw F}while(m.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 ze=W({name:"genericParslet",accept:i((l,m)=>l==="<"||l==="."&&m==="<","accept"),precedence:D.GENERIC,parseInfix:i((l,m)=>{const b=l.consume(".");l.consume("<");const x=[];let F=!1;if(l.consume("infer")){F=!0;const G=l.parseIntermediateType(D.SYMBOL);if(G.type!=="JsdocTypeName")throw new d(G,"A typescript asserts always has to have a name on the left side.");x.push(G)}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(m),elements:x},F?{infer:!0}:{}),{meta:{brackets:"angle",dot:b}})},"parseInfix")}),Ye=W({name:"unionParslet",accept:i(l=>l==="|","accept"),precedence:D.UNION,parseInfix:i((l,m)=>{l.consume("|");const b=[];do b.push(l.parseType(D.UNION));while(l.consume("|"));return{type:"JsdocTypeUnion",elements:[k(m),...b]}},"parseInfix")}),J=[se,ae,be,ue,ee,Re,Oe({allowTrailingComma:!0}),ze,Ye,ae];function Q({allowSquareBracketsOnAnyType:l,allowJsdocNamePaths:m,pathGrammar:b}){return i(function(F,G,Z){if(Z==null||G>=D.NAME_PATH)return null;const ce=F.lexer.current.type,_e=F.lexer.next.type;if(!(ce==="."&&_e!=="<"||ce==="["&&(l||Z.type==="JsdocTypeName")||m&&(ce==="~"||ce==="#")))return null;let Me,fr=!1;F.consume(".")?Me="property":F.consume("[")?(Me="property-brackets",fr=!0):F.consume("~")?Me="inner":(F.consume("#"),Me="instance");const di=b!==null?new X(b,F.lexer,F):F,Ze=di.parseIntermediateType(D.NAME_PATH);F.acceptLexerState(di);let Jt;switch(Ze.type){case"JsdocTypeName":Jt={type:"JsdocTypeProperty",value:Ze.value,meta:{quote:void 0}};break;case"JsdocTypeNumber":Jt={type:"JsdocTypeProperty",value:Ze.value.toString(10),meta:{quote:void 0}};break;case"JsdocTypeStringValue":Jt={type:"JsdocTypeProperty",value:Ze.value,meta:{quote:Ze.meta.quote}};break;case"JsdocTypeSpecialNamePath":if(Ze.specialType==="event")Jt=Ze;else throw new d(Ze,"Type 'JsdocTypeSpecialNamePath' is only allowed with specialType 'event'");break;default:throw new d(Ze,"Expecting 'JsdocTypeName', 'JsdocTypeNumber', 'JsdocStringValue' or 'JsdocTypeSpecialNamePath'")}if(fr&&!F.consume("]")){const pi=F.lexer.current;throw new Error(`Unterminated square brackets. Next token is '${pi.type}' with text '${pi.text}'`)}return{type:"JsdocTypeNamePath",left:k(Z),right:Jt,pathType:Me}},"namePathParslet")}i(Q,"createNamePathParslet");function re({allowedAdditionalTokens:l}){return W({name:"nameParslet",accept:i(m=>m==="Identifier"||m==="this"||m==="new"||l.includes(m),"accept"),parsePrefix:i(m=>{const{type:b,text:x}=m.lexer.current;return m.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 m=l.lexer.current.text;return l.consume("StringValue"),{type:"JsdocTypeStringValue",value:m.slice(1,-1),meta:{quote:m[0]==="'"?"single":"double"}}},"parsePrefix")});function ne({pathGrammar:l,allowedTypes:m}){return W({name:"specialNamePathParslet",accept:i(b=>m.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,G=b.lexer.current;if(b.consume("StringValue"))F={type:"JsdocTypeSpecialNamePath",value:G.text.slice(1,-1),specialType:x,meta:{quote:G.text[0]==="'"?"single":"double"}};else{let _e="";const Ee=["Identifier","@","/"];for(;Ee.some(Me=>b.consume(Me));)_e+=G.text,G=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})],he=[...de,ne({allowedTypes:["event"],pathGrammar:de})];function pe(l){let m;if(l.type==="JsdocTypeParameterList")m=l.elements;else if(l.type==="JsdocTypeParenthesis")m=[l.element];else throw new d(l);return m.map(b=>I(b))}i(pe,"getParameters");function $e(l){const m=pe(l);if(m.some(b=>b.type==="JsdocTypeKeyValue"))throw new Error("No parameter should be named");return m}i($e,"getUnnamedParameters");function it({allowNamedParameters:l,allowNoReturnType:m,allowWithoutParenthesis:b,allowNewAsFunctionKeyword:x}){return W({name:"functionParslet",accept:i((F,G)=>F==="function"||x&&F==="new"&&G==="(","accept"),parsePrefix:i(F=>{const G=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:G,parenthesis:Z};const _e=F.parseIntermediateType(D.FUNCTION);if(l===void 0)ce.parameters=$e(_e);else{if(G&&_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(!m)throw new Error("function is missing return type");return ce},"parsePrefix")})}i(it,"createFunctionParslet");function pt({allowPostfix:l,allowEnclosingBrackets:m}){return W({name:"variadicParslet",accept:i(b=>b==="...","accept"),precedence:D.PREFIX,parsePrefix:i(b=>{b.consume("...");const x=m&&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(pt,"createVariadicParslet");const wt=W({name:"symbolParslet",accept:i(l=>l==="(","accept"),precedence:D.SYMBOL,parseInfix:i((l,m)=>{if(m.type!=="JsdocTypeName")throw new Error("Symbol expects a name on the left side. (Reacting on '(')");l.consume("(");const b={type:"JsdocTypeSymbol",value:m.value};if(!l.consume(")")){const x=l.parseIntermediateType(D.SYMBOL);if(b.element=A(x),!l.consume(")"))throw new Error("Symbol does not end after value")}return b},"parseInfix")}),st=W({name:"arrayBracketsParslet",precedence:D.ARRAY_BRACKETS,accept:i((l,m)=>l==="["&&m==="]","accept"),parseInfix:i((l,m)=>(l.consume("["),l.consume("]"),{type:"JsdocTypeGeneric",left:{type:"JsdocTypeName",value:"Array"},elements:[k(m)],meta:{brackets:"square",dot:!1}}),"parseInfix")});function ft({objectFieldGrammar:l,allowKeyTypes:m}){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 G=new X(l,b.lexer,b);for(;;){G.acceptLexerState(b);let Z=G.parseIntermediateType(D.OBJECT);b.acceptLexerState(G),Z===void 0&&m&&(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(ft,"createObjectParslet");function mt({allowSquaredProperties:l,allowKeyTypes:m,allowReadonly:b,allowOptional:x}){return W({name:"objectFieldParslet",precedence:D.KEY_VALUE,accept:i(F=>F===":","accept"),parseInfix:i((F,G)=>{var Z;let ce=!1,_e=!1;x&&G.type==="JsdocTypeNullable"&&(ce=!0,G=G.element),b&&G.type==="JsdocTypeReadonlyProperty"&&(_e=!0,G=G.element);const Ee=(Z=F.baseParser)!==null&&Z!==void 0?Z:F;if(Ee.acceptLexerState(F),G.type==="JsdocTypeNumber"||G.type==="JsdocTypeName"||G.type==="JsdocTypeStringValue"||$(G)){if($(G)&&!l)throw new d(G);Ee.consume(":");let Me;G.type==="JsdocTypeStringValue"&&(Me=G.meta.quote);const fr=Ee.parseType(D.KEY_VALUE);return F.acceptLexerState(Ee),{type:"JsdocTypeObjectField",key:$(G)?G:G.value.toString(),right:fr,optional:ce,readonly:_e,meta:{quote:Me}}}else{if(!m)throw new d(G);Ee.consume(":");const Me=Ee.parseType(D.KEY_VALUE);return F.acceptLexerState(Ee),{type:"JsdocTypeJsdocObjectField",left:k(G),right:Me}}},"parseInfix")})}i(mt,"createObjectFieldParslet");function ht({allowOptional:l,allowVariadic:m}){return W({name:"keyValueParslet",precedence:D.KEY_VALUE,accept:i(b=>b===":","accept"),parseInfix:i((b,x)=>{let F=!1,G=!1;if(l&&x.type==="JsdocTypeNullable"&&(F=!0,x=x.element),m&&x.type==="JsdocTypeVariadic"&&x.element!==void 0&&(G=!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:G}},"parseInfix")})}i(ht,"createKeyValueParslet");const tn=[...J,it({allowWithoutParenthesis:!0,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),oe,ne({allowedTypes:["module","external","event"],pathGrammar:he}),pt({allowEnclosingBrackets:!0,allowPostfix:!0}),re({allowedAdditionalTokens:["keyof"]}),wt,st,Q({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:he})],Jo=[...tn,ft({objectFieldGrammar:[re({allowedAdditionalTokens:["typeof","module","in"]}),mt({allowSquaredProperties:!1,allowKeyTypes:!0,allowOptional:!1,allowReadonly:!1}),...tn],allowKeyTypes:!0}),ht({allowOptional:!0,allowVariadic:!0})],rn=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")}),Uo=[re({allowedAdditionalTokens:["typeof","module","keyof","event","external","in"]}),se,ae,oe,be,mt({allowSquaredProperties:!1,allowKeyTypes:!1,allowOptional:!1,allowReadonly:!1})],Vo=[...J,ft({allowKeyTypes:!1,objectFieldGrammar:Uo}),re({allowedAdditionalTokens:["event","external","in"]}),rn,it({allowWithoutParenthesis:!1,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),pt({allowEnclosingBrackets:!1,allowPostfix:!1}),re({allowedAdditionalTokens:["keyof"]}),ne({allowedTypes:["module"],pathGrammar:he}),Q({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:he}),ht({allowOptional:!1,allowVariadic:!1}),wt],Ho=W({name:"assertsParslet",accept:i(l=>l==="asserts","accept"),parsePrefix:i(l=>{l.consume("asserts");const m=l.parseIntermediateType(D.SYMBOL);if(m.type!=="JsdocTypeName")throw new d(m,"A typescript asserts always has to have a name on the left side.");return l.consume("is")?{type:"JsdocTypeAsserts",left:m,right:k(l.parseIntermediateType(D.INFIX))}:{type:"JsdocTypeAssertsPlain",element:m}},"parsePrefix")});function nn({allowQuestionMark:l}){return W({name:"tupleParslet",accept:i(m=>m==="[","accept"),parsePrefix:i(m=>{m.consume("[");const b={type:"JsdocTypeTuple",elements:[]};if(m.consume("]"))return b;const x=m.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)],!m.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(nn,"createTupleParslet");const zo=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")}),Go=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 m=l.parseType(D.PREFIX);if(m.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:m}},"parsePrefix")}),Wo=W({name:"readonlyPropertyParslet",accept:i(l=>l==="readonly","accept"),parsePrefix:i(l=>(l.consume("readonly"),{type:"JsdocTypeReadonlyProperty",element:l.parseIntermediateType(D.KEY_VALUE)}),"parsePrefix")}),Ko=W({name:"arrowFunctionParslet",precedence:D.ARROW,accept:i(l=>l==="=>","accept"),parseInfix:i((l,m)=>(l.consume("=>"),{type:"JsdocTypeFunction",parameters:pe(m).map(V),arrow:!0,constructor:!1,parenthesis:!0,returnType:l.parseType(D.OBJECT)}),"parseInfix")}),Yo=W({name:"genericArrowFunctionParslet",accept:i(l=>l==="<","accept"),parsePrefix:i(l=>{const m=[];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 G;l.consume("extends")&&(G=l.parseType(D.SYMBOL),G.type==="JsdocTypeOptional"&&(G=G.element,x=l.parseType(D.SYMBOL)));const Z={type:"JsdocTypeTypeParameter",name:F};if(G!==void 0&&(Z.constraint=G),x!==void 0&&(Z.defaultValue=x),m.push(Z),l.consume(">"))break}while(l.consume(","));const b=l.parseIntermediateType(D.SYMBOL);return b.typeParameters=m,b},"parsePrefix")}),Xo=W({name:"intersectionParslet",accept:i(l=>l==="&","accept"),precedence:D.INTERSECTION,parseInfix:i((l,m)=>{l.consume("&");const b=[];do b.push(l.parseType(D.INTERSECTION));while(l.consume("&"));return{type:"JsdocTypeIntersection",elements:[k(m),...b]}},"parseInfix")}),Qo=W({name:"predicateParslet",precedence:D.INFIX,accept:i(l=>l==="is","accept"),parseInfix:i((l,m)=>{if(m.type!=="JsdocTypeName")throw new d(m,"A typescript predicate always has to have a name on the left side.");return l.consume("is"),{type:"JsdocTypePredicate",left:m,right:k(l.parseIntermediateType(D.INFIX))}},"parseInfix")}),Zo=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 m=l.lexer.current.text;l.consume("Identifier");let b;if(l.consume(":")){const x=l.baseParser;x.acceptLexerState(l),b={type:"JsdocTypeIndexSignature",key:m,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:m,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")}),ei=W({name:"readonlyArrayParslet",accept:i(l=>l==="readonly","accept"),parsePrefix:i(l=>(l.consume("readonly"),{type:"JsdocTypeReadonlyArray",element:L(l.parseIntermediateType(D.ALL))}),"parsePrefix")}),ti=W({name:"conditionalParslet",precedence:D.INFIX,accept:i(l=>l==="extends","accept"),parseInfix:i((l,m)=>{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(m),extendsType:b,trueType:x,falseType:l.parseType(D.INFIX)}},"parseInfix")}),ri=[Wo,re({allowedAdditionalTokens:["typeof","module","keyof","event","external","in"]}),se,ae,oe,be,mt({allowSquaredProperties:!0,allowKeyTypes:!1,allowOptional:!0,allowReadonly:!0}),Zo],ni=[...J,ft({allowKeyTypes:!1,objectFieldGrammar:ri}),ei,rn,zo,Go,oe,it({allowWithoutParenthesis:!0,allowNoReturnType:!1,allowNamedParameters:["this","new","args"],allowNewAsFunctionKeyword:!0}),nn({allowQuestionMark:!1}),pt({allowEnclosingBrackets:!1,allowPostfix:!1}),Ho,ti,re({allowedAdditionalTokens:["event","external","in"]}),ne({allowedTypes:["module"],pathGrammar:he}),st,Ko,Yo,Q({allowSquareBracketsOnAnyType:!0,allowJsdocNamePaths:!1,pathGrammar:he}),Xo,Qo,ht({allowVariadic:!0,allowOptional:!0})];function ur(l,m){switch(m){case"closure":return new X(Vo,l).parse();case"jsdoc":return new X(Jo,l).parse();case"typescript":return new X(ni,l).parse()}}i(ur,"parse");function on(l,m=["typescript","closure","jsdoc"]){let b;for(const x of m)try{return ur(l,x)}catch(F){b=F}throw b}i(on,"tryParse");function Y(l,m){const b=l[m.type];if(b===void 0)throw new Error(`In this set of transform rules exists no rule for type ${m.type}.`);return b(m,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 It(l){const m={params:[]};for(const b of l.parameters)b.type==="JsdocTypeKeyValue"?b.key==="this"?m.this=b.right:b.key==="new"?m.new=b.right:m.params.push(b):m.params.push(b);return m}i(It,"extractSpecialParams");function Bt(l,m,b){return l==="prefix"?b+m:m+b}i(Bt,"applyPosition");function Xe(l,m){switch(m){case"double":return`"${l}"`;case"single":return`'${l}'`;case void 0:return l}}i(Xe,"quote");function sn(){return{JsdocTypeParenthesis:i((l,m)=>`(${l.element!==void 0?m(l.element):""})`,"JsdocTypeParenthesis"),JsdocTypeKeyof:i((l,m)=>`keyof ${m(l.element)}`,"JsdocTypeKeyof"),JsdocTypeFunction:i((l,m)=>{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(m).join(", "))!==null&&b!==void 0?b:""}>`:""}(${l.parameters.map(m).join(", ")}) => ${m(l.returnType)}`;return l.constructor&&(x="new "+x),x}else{let x=l.constructor?"new":"function";return l.parenthesis&&(x+=`(${l.parameters.map(m).join(", ")})`,l.returnType!==void 0&&(x+=`: ${m(l.returnType)}`)),x}},"JsdocTypeFunction"),JsdocTypeName:i(l=>l.value,"JsdocTypeName"),JsdocTypeTuple:i((l,m)=>`[${l.elements.map(m).join(", ")}]`,"JsdocTypeTuple"),JsdocTypeVariadic:i((l,m)=>l.meta.position===void 0?"...":Bt(l.meta.position,m(l.element),"..."),"JsdocTypeVariadic"),JsdocTypeNamePath:i((l,m)=>{const b=m(l.left),x=m(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=>Xe(l.value,l.meta.quote),"JsdocTypeStringValue"),JsdocTypeAny:i(()=>"*","JsdocTypeAny"),JsdocTypeGeneric:i((l,m)=>{if(l.meta.brackets==="square"){const b=l.elements[0],x=m(b);return b.type==="JsdocTypeUnion"||b.type==="JsdocTypeIntersection"?`(${x})[]`:`${x}[]`}else return`${m(l.left)}${l.meta.dot?".":""}<${l.infer===!0?"infer ":""}${l.elements.map(m).join(", ")}>`},"JsdocTypeGeneric"),JsdocTypeImport:i((l,m)=>`import(${m(l.element)})`,"JsdocTypeImport"),JsdocTypeObjectField:i((l,m)=>{let b="";return l.readonly&&(b+="readonly "),typeof l.key=="string"?b+=Xe(l.key,l.meta.quote):b+=m(l.key),l.optional&&(b+="?"),l.right===void 0?b:b+`: ${m(l.right)}`},"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:i((l,m)=>`${m(l.left)}: ${m(l.right)}`,"JsdocTypeJsdocObjectField"),JsdocTypeKeyValue:i((l,m)=>{let b=l.key;return l.optional&&(b+="?"),l.variadic&&(b="..."+b),l.right===void 0?b:b+`: ${m(l.right)}`},"JsdocTypeKeyValue"),JsdocTypeSpecialNamePath:i(l=>`${l.specialType}:${Xe(l.value,l.meta.quote)}`,"JsdocTypeSpecialNamePath"),JsdocTypeNotNullable:i((l,m)=>Bt(l.meta.position,m(l.element),"!"),"JsdocTypeNotNullable"),JsdocTypeNull:i(()=>"null","JsdocTypeNull"),JsdocTypeNullable:i((l,m)=>Bt(l.meta.position,m(l.element),"?"),"JsdocTypeNullable"),JsdocTypeNumber:i(l=>l.value.toString(),"JsdocTypeNumber"),JsdocTypeObject:i((l,m)=>{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(m).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,m)=>Bt(l.meta.position,m(l.element),"="),"JsdocTypeOptional"),JsdocTypeSymbol:i((l,m)=>`${l.value}(${l.element!==void 0?m(l.element):""})`,"JsdocTypeSymbol"),JsdocTypeTypeof:i((l,m)=>`typeof ${m(l.element)}`,"JsdocTypeTypeof"),JsdocTypeUndefined:i(()=>"undefined","JsdocTypeUndefined"),JsdocTypeUnion:i((l,m)=>l.elements.map(m).join(" | "),"JsdocTypeUnion"),JsdocTypeUnknown:i(()=>"?","JsdocTypeUnknown"),JsdocTypeIntersection:i((l,m)=>l.elements.map(m).join(" & "),"JsdocTypeIntersection"),JsdocTypeProperty:i(l=>Xe(l.value,l.meta.quote),"JsdocTypeProperty"),JsdocTypePredicate:i((l,m)=>`${m(l.left)} is ${m(l.right)}`,"JsdocTypePredicate"),JsdocTypeIndexSignature:i((l,m)=>`[${l.key}: ${m(l.right)}]`,"JsdocTypeIndexSignature"),JsdocTypeMappedType:i((l,m)=>`[${l.key} in ${m(l.right)}]`,"JsdocTypeMappedType"),JsdocTypeAsserts:i((l,m)=>`asserts ${m(l.left)} is ${m(l.right)}`,"JsdocTypeAsserts"),JsdocTypeReadonlyArray:i((l,m)=>`readonly ${m(l.element)}`,"JsdocTypeReadonlyArray"),JsdocTypeAssertsPlain:i((l,m)=>`asserts ${m(l.element)}`,"JsdocTypeAssertsPlain"),JsdocTypeConditional:i((l,m)=>`${m(l.checksType)} extends ${m(l.extendsType)} ? ${m(l.trueType)} : ${m(l.falseType)}`,"JsdocTypeConditional"),JsdocTypeTypeParameter:i((l,m)=>`${m(l.name)}${l.constraint!==void 0?` extends ${m(l.constraint)}`:""}${l.defaultValue!==void 0?` = ${m(l.defaultValue)}`:""}`,"JsdocTypeTypeParameter")}}i(sn,"stringifyRules");const Vc=sn();function oi(l){return Y(Vc,l)}i(oi,"stringify");const Hc=["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 Qe(l){const m={type:"NameExpression",name:l};return Hc.includes(l)&&(m.reservedWord=!0),m}i(Qe,"makeName");const zc={JsdocTypeOptional:i((l,m)=>{const b=m(l.element);return b.optional=!0,b},"JsdocTypeOptional"),JsdocTypeNullable:i((l,m)=>{const b=m(l.element);return b.nullable=!0,b},"JsdocTypeNullable"),JsdocTypeNotNullable:i((l,m)=>{const b=m(l.element);return b.nullable=!1,b},"JsdocTypeNotNullable"),JsdocTypeVariadic:i((l,m)=>{if(l.element===void 0)throw new Error("dots without value are not allowed in catharsis mode");const b=m(l.element);return b.repeatable=!0,b},"JsdocTypeVariadic"),JsdocTypeAny:i(()=>({type:"AllLiteral"}),"JsdocTypeAny"),JsdocTypeNull:i(()=>({type:"NullLiteral"}),"JsdocTypeNull"),JsdocTypeStringValue:i(l=>Qe(Xe(l.value,l.meta.quote)),"JsdocTypeStringValue"),JsdocTypeUndefined:i(()=>({type:"UndefinedLiteral"}),"JsdocTypeUndefined"),JsdocTypeUnknown:i(()=>({type:"UnknownLiteral"}),"JsdocTypeUnknown"),JsdocTypeFunction:i((l,m)=>{const b=It(l),x={type:"FunctionType",params:b.params.map(m)};return b.this!==void 0&&(x.this=m(b.this)),b.new!==void 0&&(x.new=m(b.new)),l.returnType!==void 0&&(x.result=m(l.returnType)),x},"JsdocTypeFunction"),JsdocTypeGeneric:i((l,m)=>({type:"TypeApplication",applications:l.elements.map(b=>m(b)),expression:m(l.left)}),"JsdocTypeGeneric"),JsdocTypeSpecialNamePath:i(l=>Qe(l.specialType+":"+Xe(l.value,l.meta.quote)),"JsdocTypeSpecialNamePath"),JsdocTypeName:i(l=>l.value!=="function"?Qe(l.value):{type:"FunctionType",params:[]},"JsdocTypeName"),JsdocTypeNumber:i(l=>Qe(l.value.toString()),"JsdocTypeNumber"),JsdocTypeObject:i((l,m)=>{const b={type:"RecordType",fields:[]};for(const x of l.elements)x.type!=="JsdocTypeObjectField"&&x.type!=="JsdocTypeJsdocObjectField"?b.fields.push({type:"FieldType",key:m(x),value:void 0}):b.fields.push(m(x));return b},"JsdocTypeObject"),JsdocTypeObjectField:i((l,m)=>{if(typeof l.key!="string")throw new Error("Index signatures and mapped types are not supported");return{type:"FieldType",key:Qe(Xe(l.key,l.meta.quote)),value:l.right===void 0?void 0:m(l.right)}},"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:i((l,m)=>({type:"FieldType",key:m(l.left),value:m(l.right)}),"JsdocTypeJsdocObjectField"),JsdocTypeUnion:i((l,m)=>({type:"TypeUnion",elements:l.elements.map(b=>m(b))}),"JsdocTypeUnion"),JsdocTypeKeyValue:i((l,m)=>({type:"FieldType",key:Qe(l.key),value:l.right===void 0?void 0:m(l.right)}),"JsdocTypeKeyValue"),JsdocTypeNamePath:i((l,m)=>{const b=m(l.left);let x;l.right.type==="JsdocTypeSpecialNamePath"?x=m(l.right).name:x=Xe(l.right.value,l.right.meta.quote);const F=l.pathType==="inner"?"~":l.pathType==="instance"?"#":".";return Qe(`${b.name}${F}${x}`)},"JsdocTypeNamePath"),JsdocTypeSymbol:i(l=>{let m="",b=l.element,x=!1;return b?.type==="JsdocTypeVariadic"&&(b.meta.position==="prefix"?m="...":x=!0,b=b.element),b?.type==="JsdocTypeName"?m+=b.value:b?.type==="JsdocTypeNumber"&&(m+=b.value.toString()),x&&(m+="..."),Qe(`${l.value}(${m})`)},"JsdocTypeSymbol"),JsdocTypeParenthesis:i((l,m)=>m(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 ii(l){return Y(zc,l)}i(ii,"catharsisTransform");function at(l){switch(l){case void 0:return"none";case"single":return"single";case"double":return"double"}}i(at,"getQuoteStyle");function si(l){switch(l){case"inner":return"INNER_MEMBER";case"instance":return"INSTANCE_MEMBER";case"property":return"MEMBER";case"property-brackets":return"MEMBER"}}i(si,"getMemberType");function dr(l,m){return m.length===2?{type:l,left:m[0],right:m[1]}:{type:l,left:m[0],right:dr(l,m.slice(1))}}i(dr,"nestResults");const Gc={JsdocTypeOptional:i((l,m)=>({type:"OPTIONAL",value:m(l.element),meta:{syntax:l.meta.position==="prefix"?"PREFIX_EQUAL_SIGN":"SUFFIX_EQUALS_SIGN"}}),"JsdocTypeOptional"),JsdocTypeNullable:i((l,m)=>({type:"NULLABLE",value:m(l.element),meta:{syntax:l.meta.position==="prefix"?"PREFIX_QUESTION_MARK":"SUFFIX_QUESTION_MARK"}}),"JsdocTypeNullable"),JsdocTypeNotNullable:i((l,m)=>({type:"NOT_NULLABLE",value:m(l.element),meta:{syntax:l.meta.position==="prefix"?"PREFIX_BANG":"SUFFIX_BANG"}}),"JsdocTypeNotNullable"),JsdocTypeVariadic:i((l,m)=>{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=m(l.element)),b},"JsdocTypeVariadic"),JsdocTypeName:i(l=>({type:"NAME",name:l.value}),"JsdocTypeName"),JsdocTypeTypeof:i((l,m)=>({type:"TYPE_QUERY",name:m(l.element)}),"JsdocTypeTypeof"),JsdocTypeTuple:i((l,m)=>({type:"TUPLE",entries:l.elements.map(m)}),"JsdocTypeTuple"),JsdocTypeKeyof:i((l,m)=>({type:"KEY_QUERY",value:m(l.element)}),"JsdocTypeKeyof"),JsdocTypeImport:i(l=>({type:"IMPORT",path:{type:"STRING_VALUE",quoteStyle:at(l.element.meta.quote),string:l.element.value}}),"JsdocTypeImport"),JsdocTypeUndefined:i(()=>({type:"NAME",name:"undefined"}),"JsdocTypeUndefined"),JsdocTypeAny:i(()=>({type:"ANY"}),"JsdocTypeAny"),JsdocTypeFunction:i((l,m)=>{const b=It(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:m(F.right)}}else return m(F)}),new:null,returns:null};return b.this!==void 0?x.this=m(b.this):l.arrow||(x.this=null),b.new!==void 0&&(x.new=m(b.new)),l.returnType!==void 0&&(x.returns=m(l.returnType)),x},"JsdocTypeFunction"),JsdocTypeGeneric:i((l,m)=>{const b={type:"GENERIC",subject:m(l.left),objects:l.elements.map(m),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,m)=>{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:at(l.meta.quote),value:null,readonly:!1};let b=m(l.right);return l.optional&&(b={type:"OPTIONAL",value:b,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:l.key.toString(),quoteStyle:at(l.meta.quote),value:b,readonly:!1}},"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:i(()=>{throw new Error("Keys may not be typed in jsdoctypeparser.")},"JsdocTypeJsdocObjectField"),JsdocTypeKeyValue:i((l,m)=>{if(l.right===void 0)return{type:"RECORD_ENTRY",key:l.key,quoteStyle:"none",value:null,readonly:!1};let b=m(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,m)=>{const b=[];for(const x of l.elements)(x.type==="JsdocTypeObjectField"||x.type==="JsdocTypeJsdocObjectField")&&b.push(m(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:at(l.meta.quote),path:l.value}}},"JsdocTypeSpecialNamePath"),JsdocTypeNamePath:i((l,m)=>{let b=!1,x,F;l.right.type==="JsdocTypeSpecialNamePath"&&l.right.specialType==="event"?(b=!0,x=l.right.value,F=at(l.right.meta.quote)):(x=l.right.value,F=at(l.right.meta.quote));const G={type:si(l.pathType),owner:m(l.left),name:x,quoteStyle:F,hasEventPrefix:b};if(G.owner.type==="MODULE"){const Z=G.owner;return G.owner=G.owner.value,Z.value=G,Z}else return G},"JsdocTypeNamePath"),JsdocTypeUnion:i((l,m)=>dr("UNION",l.elements.map(m)),"JsdocTypeUnion"),JsdocTypeParenthesis:i((l,m)=>({type:"PARENTHESIS",value:m(k(l.element))}),"JsdocTypeParenthesis"),JsdocTypeNull:i(()=>({type:"NAME",name:"null"}),"JsdocTypeNull"),JsdocTypeUnknown:i(()=>({type:"UNKNOWN"}),"JsdocTypeUnknown"),JsdocTypeStringValue:i(l=>({type:"STRING_VALUE",quoteStyle:at(l.meta.quote),string:l.value}),"JsdocTypeStringValue"),JsdocTypeIntersection:i((l,m)=>dr("INTERSECTION",l.elements.map(m)),"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 ai(l){return Y(Gc,l)}i(ai,"jtpTransform");function li(){return{JsdocTypeIntersection:i((l,m)=>({type:"JsdocTypeIntersection",elements:l.elements.map(m)}),"JsdocTypeIntersection"),JsdocTypeGeneric:i((l,m)=>({type:"JsdocTypeGeneric",left:m(l.left),elements:l.elements.map(m),meta:{dot:l.meta.dot,brackets:l.meta.brackets}}),"JsdocTypeGeneric"),JsdocTypeNullable:i(l=>l,"JsdocTypeNullable"),JsdocTypeUnion:i((l,m)=>({type:"JsdocTypeUnion",elements:l.elements.map(m)}),"JsdocTypeUnion"),JsdocTypeUnknown:i(l=>l,"JsdocTypeUnknown"),JsdocTypeUndefined:i(l=>l,"JsdocTypeUndefined"),JsdocTypeTypeof:i((l,m)=>({type:"JsdocTypeTypeof",element:m(l.element)}),"JsdocTypeTypeof"),JsdocTypeSymbol:i((l,m)=>{const b={type:"JsdocTypeSymbol",value:l.value};return l.element!==void 0&&(b.element=m(l.element)),b},"JsdocTypeSymbol"),JsdocTypeOptional:i((l,m)=>({type:"JsdocTypeOptional",element:m(l.element),meta:{position:l.meta.position}}),"JsdocTypeOptional"),JsdocTypeObject:i((l,m)=>({type:"JsdocTypeObject",meta:{separator:"comma"},elements:l.elements.map(m)}),"JsdocTypeObject"),JsdocTypeNumber:i(l=>l,"JsdocTypeNumber"),JsdocTypeNull:i(l=>l,"JsdocTypeNull"),JsdocTypeNotNullable:i((l,m)=>({type:"JsdocTypeNotNullable",element:m(l.element),meta:{position:l.meta.position}}),"JsdocTypeNotNullable"),JsdocTypeSpecialNamePath:i(l=>l,"JsdocTypeSpecialNamePath"),JsdocTypeObjectField:i((l,m)=>({type:"JsdocTypeObjectField",key:l.key,right:l.right===void 0?void 0:m(l.right),optional:l.optional,readonly:l.readonly,meta:l.meta}),"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:i((l,m)=>({type:"JsdocTypeJsdocObjectField",left:m(l.left),right:m(l.right)}),"JsdocTypeJsdocObjectField"),JsdocTypeKeyValue:i((l,m)=>({type:"JsdocTypeKeyValue",key:l.key,right:l.right===void 0?void 0:m(l.right),optional:l.optional,variadic:l.variadic}),"JsdocTypeKeyValue"),JsdocTypeImport:i((l,m)=>({type:"JsdocTypeImport",element:m(l.element)}),"JsdocTypeImport"),JsdocTypeAny:i(l=>l,"JsdocTypeAny"),JsdocTypeStringValue:i(l=>l,"JsdocTypeStringValue"),JsdocTypeNamePath:i(l=>l,"JsdocTypeNamePath"),JsdocTypeVariadic:i((l,m)=>{const b={type:"JsdocTypeVariadic",meta:{position:l.meta.position,squareBrackets:l.meta.squareBrackets}};return l.element!==void 0&&(b.element=m(l.element)),b},"JsdocTypeVariadic"),JsdocTypeTuple:i((l,m)=>({type:"JsdocTypeTuple",elements:l.elements.map(m)}),"JsdocTypeTuple"),JsdocTypeName:i(l=>l,"JsdocTypeName"),JsdocTypeFunction:i((l,m)=>{const b={type:"JsdocTypeFunction",arrow:l.arrow,parameters:l.parameters.map(m),constructor:l.constructor,parenthesis:l.parenthesis};return l.returnType!==void 0&&(b.returnType=m(l.returnType)),b},"JsdocTypeFunction"),JsdocTypeKeyof:i((l,m)=>({type:"JsdocTypeKeyof",element:m(l.element)}),"JsdocTypeKeyof"),JsdocTypeParenthesis:i((l,m)=>({type:"JsdocTypeParenthesis",element:m(l.element)}),"JsdocTypeParenthesis"),JsdocTypeProperty:i(l=>l,"JsdocTypeProperty"),JsdocTypePredicate:i((l,m)=>({type:"JsdocTypePredicate",left:m(l.left),right:m(l.right)}),"JsdocTypePredicate"),JsdocTypeIndexSignature:i((l,m)=>({type:"JsdocTypeIndexSignature",key:l.key,right:m(l.right)}),"JsdocTypeIndexSignature"),JsdocTypeMappedType:i((l,m)=>({type:"JsdocTypeMappedType",key:l.key,right:m(l.right)}),"JsdocTypeMappedType"),JsdocTypeAsserts:i((l,m)=>({type:"JsdocTypeAsserts",left:m(l.left),right:m(l.right)}),"JsdocTypeAsserts"),JsdocTypeReadonlyArray:i((l,m)=>({type:"JsdocTypeReadonlyArray",element:m(l.element)}),"JsdocTypeReadonlyArray"),JsdocTypeAssertsPlain:i((l,m)=>({type:"JsdocTypeAssertsPlain",element:m(l.element)}),"JsdocTypeAssertsPlain"),JsdocTypeConditional:i((l,m)=>({type:"JsdocTypeConditional",checksType:m(l.checksType),extendsType:m(l.extendsType),trueType:m(l.trueType),falseType:m(l.falseType)}),"JsdocTypeConditional"),JsdocTypeTypeParameter:i((l,m)=>({type:"JsdocTypeTypeParameter",name:m(l.name),constraint:l.constraint!==void 0?m(l.constraint):void 0,defaultValue:l.defaultValue!==void 0?m(l.defaultValue):void 0}),"JsdocTypeTypeParameter")}}i(li,"identityTransformRules");const ci={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 pr(l,m,b,x,F){x?.(l,m,b);const G=ci[l.type];for(const Z of G){const ce=l[Z];if(ce!==void 0)if(Array.isArray(ce))for(const _e of ce)pr(_e,l,Z,x,F);else pr(ce,l,Z,x,F)}F?.(l,m,b)}i(pr,"_traverse");function ui(l,m,b){pr(l,void 0,void 0,m,b)}i(ui,"traverse"),r.catharsisTransform=ii,r.identityTransformRules=li,r.jtpTransform=ai,r.parse=ur,r.stringify=oi,r.stringifyRules=sn,r.transform=Y,r.traverse=ui,r.tryParse=on,r.visitorKeys=ci})}}),Mk=B({"../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,(h=f.key,y=void 0,typeof(y=(function(g,E){if(typeof g!="object"||g===null)return g;var T=g[Symbol.toPrimitive];if(T!==void 0){var v=T.call(g,E);if(typeof v!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(E==="string"?String:Number)(g)})(h,"string"))=="symbol"?y:String(y)),f)}var h,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(h){var y;(function(g,E){if(!(g instanceof E))throw new TypeError("Cannot call a class as a function")})(this,u),this.userAgent=h||((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(h){var y,g,E,T={},v=h||this.userAgent||"",_=v.toLowerCase().replace(/\s\s+/g," "),R=/(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=R[5]||R[3]||R[1]||null,C=N[0]||null,P=R[4]||R[2]||null,w=a();j==="chrome"&&typeof(w==null||(y=w.brave)===null||y===void 0?void 0:y.isBrave)=="function"&&(j="brave"),j&&(T[j]=!0),C&&(T[C]=!0);var S=!!(T.tablet||T.android||T.androidTablet),k=!!(T.ipad||T.tablet||T.androidTablet),I=!!(T.android||T.androidTablet||T.tablet||T.ipad||T.ipod||T.iphone||T["windows phone"]),V=!!(T.cros||T.mac||T.linux||T.win),H=!!(T.brave||T.chrome||T.crios||T.opr||T.safari||T.edg||T.electron),A=!!(T.msie||T.rv);return{name:(g=n[j])!==null&&g!==void 0?g:null,platform:(E=o[C])!==null&&E!==void 0?E:null,userAgent:v,version:P,shortVersion:P?s(parseFloat(P),2):null,isAndroid:S,isTablet:k,isMobile:I,isDesktop:V,isWebkit:H,isIE:A}},"value")},{key:"getBrowserInfo",value:i(function(){var h=this.parseUserAgent();return{name:h.name,platform:h.platform,userAgent:h.userAgent,version:h.version,shortVersion:h.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})}}),Ap={};Tt(Ap,{ARGTYPES_INFO_REQUEST:()=>Bv,ARGTYPES_INFO_RESPONSE:()=>Pu,CHANNEL_CREATED:()=>jk,CHANNEL_WS_DISCONNECT:()=>Tv,CONFIG_ERROR:()=>wv,CREATE_NEW_STORYFILE_REQUEST:()=>kk,CREATE_NEW_STORYFILE_RESPONSE:()=>Dk,CURRENT_STORY_WAS_SET:()=>wu,DOCS_PREPARED:()=>_v,DOCS_RENDERED:()=>Op,FILE_COMPONENT_SEARCH_REQUEST:()=>Lk,FILE_COMPONENT_SEARCH_RESPONSE:()=>Fk,FORCE_REMOUNT:()=>fa,FORCE_RE_RENDER:()=>Cp,GLOBALS_UPDATED:()=>Ui,NAVIGATE_URL:()=>$k,OPEN_IN_EDITOR_REQUEST:()=>oD,OPEN_IN_EDITOR_RESPONSE:()=>iD,PLAY_FUNCTION_THREW_EXCEPTION:()=>Sv,PRELOAD_ENTRIES:()=>Av,PREVIEW_BUILDER_PROGRESS:()=>Bk,PREVIEW_INITIALIZED:()=>Rv,PREVIEW_KEYDOWN:()=>Ov,REGISTER_SUBSCRIPTION:()=>Jk,REQUEST_WHATS_NEW_DATA:()=>Qk,RESET_STORY_ARGS:()=>xp,RESULT_WHATS_NEW_DATA:()=>Zk,SAVE_STORY_REQUEST:()=>rD,SAVE_STORY_RESPONSE:()=>nD,SELECT_STORY:()=>Uk,SET_CONFIG:()=>Vk,SET_CURRENT_STORY:()=>Np,SET_FILTER:()=>Hk,SET_GLOBALS:()=>Cv,SET_INDEX:()=>zk,SET_STORIES:()=>Gk,SET_WHATS_NEW_CACHE:()=>eD,SHARED_STATE_CHANGED:()=>Wk,SHARED_STATE_SET:()=>Kk,STORIES_COLLAPSE_ALL:()=>Yk,STORIES_EXPAND_ALL:()=>Xk,STORY_ARGS_UPDATED:()=>xv,STORY_CHANGED:()=>Nv,STORY_ERRORED:()=>Iv,STORY_FINISHED:()=>Su,STORY_HOT_UPDATED:()=>Lv,STORY_INDEX_INVALIDATED:()=>Mv,STORY_MISSING:()=>_u,STORY_PREPARED:()=>qv,STORY_RENDERED:()=>ma,STORY_RENDER_PHASE_CHANGED:()=>wn,STORY_SPECIFIED:()=>jv,STORY_THREW_EXCEPTION:()=>kv,STORY_UNCHANGED:()=>Dv,TELEMETRY_ERROR:()=>$v,TOGGLE_WHATS_NEW_NOTIFICATIONS:()=>tD,UNHANDLED_ERRORS_WHILE_PLAYING:()=>Pv,UPDATE_GLOBALS:()=>Ip,UPDATE_QUERY_PARAMS:()=>Fv,UPDATE_STORY_ARGS:()=>Mp,default:()=>qk});var Rp=(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))(Rp||{}),qk=Rp,{CHANNEL_WS_DISCONNECT:Tv,CHANNEL_CREATED:jk,CONFIG_ERROR:wv,CREATE_NEW_STORYFILE_REQUEST:kk,CREATE_NEW_STORYFILE_RESPONSE:Dk,CURRENT_STORY_WAS_SET:wu,DOCS_PREPARED:_v,DOCS_RENDERED:Op,FILE_COMPONENT_SEARCH_REQUEST:Lk,FILE_COMPONENT_SEARCH_RESPONSE:Fk,FORCE_RE_RENDER:Cp,FORCE_REMOUNT:fa,GLOBALS_UPDATED:Ui,NAVIGATE_URL:$k,PLAY_FUNCTION_THREW_EXCEPTION:Sv,UNHANDLED_ERRORS_WHILE_PLAYING:Pv,PRELOAD_ENTRIES:Av,PREVIEW_INITIALIZED:Rv,PREVIEW_BUILDER_PROGRESS:Bk,PREVIEW_KEYDOWN:Ov,REGISTER_SUBSCRIPTION:Jk,RESET_STORY_ARGS:xp,SELECT_STORY:Uk,SET_CONFIG:Vk,SET_CURRENT_STORY:Np,SET_FILTER:Hk,SET_GLOBALS:Cv,SET_INDEX:zk,SET_STORIES:Gk,SHARED_STATE_CHANGED:Wk,SHARED_STATE_SET:Kk,STORIES_COLLAPSE_ALL:Yk,STORIES_EXPAND_ALL:Xk,STORY_ARGS_UPDATED:xv,STORY_CHANGED:Nv,STORY_ERRORED:Iv,STORY_INDEX_INVALIDATED:Mv,STORY_MISSING:_u,STORY_PREPARED:qv,STORY_RENDER_PHASE_CHANGED:wn,STORY_RENDERED:ma,STORY_FINISHED:Su,STORY_SPECIFIED:jv,STORY_THREW_EXCEPTION:kv,STORY_UNCHANGED:Dv,STORY_HOT_UPDATED:Lv,UPDATE_GLOBALS:Ip,UPDATE_QUERY_PARAMS:Fv,UPDATE_STORY_ARGS:Mp,REQUEST_WHATS_NEW_DATA:Qk,RESULT_WHATS_NEW_DATA:Zk,SET_WHATS_NEW_CACHE:eD,TOGGLE_WHATS_NEW_NOTIFICATIONS:tD,TELEMETRY_ERROR:$v,SAVE_STORY_REQUEST:rD,SAVE_STORY_RESPONSE:nD,ARGTYPES_INFO_REQUEST:Bv,ARGTYPES_INFO_RESPONSE:Pu,OPEN_IN_EDITOR_REQUEST:oD,OPEN_IN_EDITOR_RESPONSE:iD}=Rp,Jv={};Tt(Jv,{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})(),Uv={"@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__"},sD=Object.keys(Uv),Vv={};Tt(Vv,{Channel:()=>hl,HEARTBEAT_INTERVAL:()=>tT,HEARTBEAT_MAX_LATENCY:()=>rT,PostMessageTransport:()=>eT,WebsocketTransport:()=>oT,createBrowserChannel:()=>iT,default:()=>N1});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,h;return(h=(f=p.match(/[\t ]/g))===null||f===void 0?void 0:f.length)!==null&&h!==void 0?h: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(h,y){return y===0?h:""+p+h}).join(`
|
|
22
|
-
`)),a+=f+n[u+1]}),a}i(ve,"dedent");var og=new Map,aD="UNIVERSAL_STORE:",Mt={PENDING:"PENDING",RESOLVED:"RESOLVED",REJECTED:"REJECTED"},Yr=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=`${aD}${this.id}`,this.debug("constructor",{options:t,environmentOverrides:r,channelEventName:this.channelEventName}),this.actor.type===fe.ActorType.LEADER)this.syncing={state:Mt.RESOLVED,promise:Promise.resolve()};else{let n,o;const s=new Promise((a,c)=>{n=i(()=>{this.syncing.state===Mt.PENDING&&(this.syncing.state=Mt.RESOLVED,a())},"syncingResolve"),o=i(u=>{this.syncing.state===Mt.PENDING&&(this.syncing.state=Mt.REJECTED,c(u))},"syncingReject")});this.syncing={state:Mt.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 Mt.PENDING:case void 0:return fe.Status.SYNCING;case Mt.REJECTED:return fe.Status.ERROR;case Mt.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=og.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 og.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===Mt.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=Mt.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!==Mt.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(Yr,"UniversalStore");Yr.ActorType={LEADER:"LEADER",FOLLOWER:"FOLLOWER"};Yr.Environment={SERVER:"SERVER",MANAGER:"MANAGER",PREVIEW:"PREVIEW",UNKNOWN:"UNKNOWN",MOCK:"MOCK"};Yr.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"};Yr.Status={UNPREPARED:"UNPREPARED",SYNCING:"SYNCING",READY:"READY",ERROR:"ERROR"};Yr.isInternalConstructing=!1;Yr.setupPreparationPromise();var Wc=Yr,lD=i(e=>e.transports!==void 0,"isMulti"),cD=i(()=>Math.random().toString(16).slice(2),"generateRandomId"),Hv=class{constructor(t={}){this.sender=cD(),this.events={},this.data={},this.transports=[],this.isAsync=t.async||!1,lD(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(Hv,"Channel");var hl=Hv,zv={};Tt(zv,{deprecate:()=>qp,logger:()=>De,once:()=>Ve,pretty:()=>Ct});var{LOGLEVEL:uD}=te,qr={trace:1,debug:2,info:3,warn:4,error:5,silent:10},dD=uD,Un=qr[dD]||qr.info,De={trace:i((e,...t)=>{Un<=qr.trace&&console.trace(e,...t)},"trace"),debug:i((e,...t)=>{Un<=qr.debug&&console.debug(e,...t)},"debug"),info:i((e,...t)=>{Un<=qr.info&&console.info(e,...t)},"info"),warn:i((e,...t)=>{Un<=qr.warn&&console.warn(e,...t)},"warn"),error:i((e,...t)=>{Un<=qr.error&&console.error(e,...t)},"error"),log:i((e,...t)=>{Un<qr.silent&&console.log(e,...t)},"log")},Au=new Set,Ve=i(e=>(t,...r)=>{if(!Au.has(t))return Au.add(t),De[e](t,...r)},"once");Ve.clear=()=>Au.clear();Ve.trace=Ve("trace");Ve.debug=Ve("debug");Ve.info=Ve("info");Ve.warn=Ve("warn");Ve.error=Ve("error");Ve.log=Ve("log");var qp=Ve("warn"),Ct=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");Ct.trace=Ct("trace");Ct.debug=Ct("debug");Ct.info=Ct("info");Ct.warn=Ct("warn");Ct.error=Ct("error");var pD=Object.create,Gv=Object.defineProperty,fD=Object.getOwnPropertyDescriptor,Wv=Object.getOwnPropertyNames,mD=Object.getPrototypeOf,hD=Object.prototype.hasOwnProperty,ge=i((e,t)=>i(function(){return t||(0,e[Wv(e)[0]])((t={exports:{}}).exports,t),t.exports},"__require"),"__commonJS"),yD=i((e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Wv(t))!hD.call(e,o)&&o!==r&&Gv(e,o,{get:i(()=>t[o],"get"),enumerable:!(n=fD(t,o))||n.enumerable});return e},"__copyProps"),jp=i((e,t,r)=>(r=e!=null?pD(mD(e)):{},yD(t||!e||!e.__esModule?Gv(r,"default",{value:e,enumerable:!0}):r,e)),"__toESM"),gD=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],bD=["detail"];function Kv(e){const t=gD.filter(r=>e[r]!==void 0).reduce((r,n)=>(r[n]=e[n],r),{});if(e instanceof CustomEvent)for(const r of bD.filter(n=>e[n]!==void 0))t[r]=e[r];return t}i(Kv,"extractEventHiddenProperties");var Yv=ge({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),vD=ge({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),ED=ge({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),TD=ge({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),wD=ge({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),_D=ge({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),kp=ge({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),SD=ge({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),PD=ge({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),AD=ge({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),RD=ge({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),OD=ge({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),CD=ge({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),xD=ge({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),ND=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")}}),ID=ge({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var r=ND();t.exports=i(function(o){return r(o)||o===0?o:o<0?-1:1},"sign")}}),MD=ge({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),Dp=ge({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var r=MD();if(r)try{r([],"length")}catch{r=null}t.exports=r}}),qD=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}}),Xv=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")}}),Qv=ge({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=Xv();t.exports=i(function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()},"hasNativeSymbols")}}),Zv=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}}),eE=ge({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){var r=Yv();t.exports=r.getPrototypeOf||null}}),jD=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 h=[],y=0;y<p.length;y+=1)h[y]=p[y];for(var g=0;g<f.length;g+=1)h[g+p.length]=f[g];return h},"concatty2"),c=i(function(p,f){for(var h=[],y=f||0,g=0;y<p.length;y+=1,g+=1)h[g]=p[y];return h},"slicy2"),u=i(function(d,p){for(var f="",h=0;h<d.length;h+=1)f+=d[h],h+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 h=c(arguments,1),y,g=i(function(){if(this instanceof y){var R=f.apply(this,a(h,arguments));return Object(R)===R?R:this}return f.apply(p,a(h,arguments))},"binder"),E=o(0,f.length-h.length),T=[],v=0;v<E;v++)T[v]="$"+v;if(y=Function("binder","return function ("+u(T,",")+"){ return binder.apply(this,arguments); }")(g),f.prototype){var _=i(function(){},"Empty2");_.prototype=f.prototype,y.prototype=new _,_.prototype=null}return y},"bind")}}),yl=ge({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var r=jD();t.exports=Function.prototype.bind||r}}),Lp=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}}),tE=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}}),kD=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}}),DD=ge({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var r=yl(),n=tE(),o=Lp(),s=kD();t.exports=s||r.call(o,n)}}),rE=ge({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var r=yl(),n=kp(),o=Lp(),s=DD();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")}}),LD=ge({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var r=rE(),n=Dp(),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}}),FD=ge({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var r=Zv(),n=eE(),o=LD();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}}),nE=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=yl();t.exports=o.call(r,n)}}),$D=ge({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var r,n=Yv(),o=vD(),s=ED(),a=TD(),c=wD(),u=_D(),d=kp(),p=SD(),f=PD(),h=AD(),y=RD(),g=OD(),E=CD(),T=xD(),v=ID(),_=Function,R=i(function(J){try{return _('"use strict"; return ('+J+").constructor;")()}catch{}},"getEvalledConstructor"),N=Dp(),j=qD(),C=i(function(){throw new d},"throwTypeError"),P=N?(function(){try{return arguments.callee,C}catch{try{return N(arguments,"callee").get}catch{return C}}})():C,w=Qv()(),S=FD(),k=eE(),I=Zv(),V=tE(),H=Lp(),A={},L=typeof Uint8Array>"u"||!S?r:S(Uint8Array),$={__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%":A,"%AsyncGenerator%":A,"%AsyncGeneratorFunction%":A,"%AsyncIteratorPrototype%":A,"%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%":A,"%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%":P,"%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%":h,"%Math.max%":y,"%Math.min%":g,"%Math.pow%":E,"%Math.round%":T,"%Math.sign%":v,"%Reflect.getPrototypeOf%":I};if(S)try{null.error}catch(J){D=S(S(J)),$["%Error.prototype%"]=D}var D,K=i(function J(Q){var re;if(Q==="%AsyncFunction%")re=R("async function () {}");else if(Q==="%GeneratorFunction%")re=R("function* () {}");else if(Q==="%AsyncGeneratorFunction%")re=R("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 $[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=yl(),se=nE(),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),Re=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Oe=/\\(\\)?/g,ze=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,Re,function(de,he,pe,$e){ne[ne.length]=pe?be($e,Oe,"$1"):he||de}),ne},"stringToPath3"),Ye=i(function(Q,re){var oe=Q,ne;if(se(X,oe)&&(ne=X[oe],oe="%"+ne[0]+"%"),se($,oe)){var de=$[oe];if(de===A&&(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=ze(Q),ne=oe.length>0?oe[0]:"",de=Ye("%"+ne+"%",re),he=de.name,pe=de.value,$e=!1,it=de.alias;it&&(ne=it[0],ae(oe,W([0,1],it)));for(var pt=1,wt=!0;pt<oe.length;pt+=1){var st=oe[pt],ft=ue(st,0,1),mt=ue(st,-1);if((ft==='"'||ft==="'"||ft==="`"||mt==='"'||mt==="'"||mt==="`")&&ft!==mt)throw new u("property names with quotes must have matching quotes");if((st==="constructor"||!wt)&&($e=!0),ne+="."+st,he="%"+ne+"%",se($,he))pe=$[he];else if(pe!=null){if(!(st in pe)){if(!re)throw new d("base intrinsic for "+Q+" exists, but the property is not available.");return}if(N&&pt+1>=oe.length){var ht=N(pe,st);wt=!!ht,wt&&"get"in ht&&!("originalValue"in ht.get)?pe=ht.get:pe=pe[st]}else wt=se(pe,st),pe=pe[st];wt&&!$e&&($[he]=pe)}}return pe},"GetIntrinsic")}}),Fp=ge({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var r=$D(),n=rE(),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")}}),BD=ge({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var r=Xv();t.exports=i(function(){return r()&&!!Symbol.toStringTag},"hasToStringTagShams")}}),oE=ge({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var r=Fp(),n=BD()(),o=nE(),s=Dp(),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 E=s(g,"lastIndex"),T=E&&o(E,"value");if(!T)return!1;try{c(g,p)}catch(v){return v===u}},"isRegex")):(f=r("Object.prototype.toString"),h="[object RegExp]",a=i(function(g){return!g||typeof g!="object"&&typeof g!="function"?!1:f(g)===h},"isRegex"));var c,u,d,p,f,h;t.exports=a}}),JD=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")}}),UD=ge({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var r=Fp(),n=oE(),o=r("RegExp.prototype.exec"),s=kp();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")}}),VD=ge({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var r=Fp(),n=r("Object.prototype.toString"),o=Qv()(),s=UD();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}}),HD=jp(oE()),zD=jp(JD()),GD=jp(VD());function iE(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}i(iE,"isObject");var WD=typeof global=="object"&&global&&global.Object===Object&&global,KD=WD,YD=typeof self=="object"&&self&&self.Object===Object&&self,XD=KD||YD||Function("return this")(),$p=XD,QD=$p.Symbol,lo=QD,sE=Object.prototype,ZD=sE.hasOwnProperty,eL=sE.toString,fi=lo?lo.toStringTag:void 0;function aE(e){var t=ZD.call(e,fi),r=e[fi];try{e[fi]=void 0;var n=!0}catch{}var o=eL.call(e);return n&&(t?e[fi]=r:delete e[fi]),o}i(aE,"getRawTag");var tL=aE,rL=Object.prototype,nL=rL.toString;function lE(e){return nL.call(e)}i(lE,"objectToString");var oL=lE,iL="[object Null]",sL="[object Undefined]",ig=lo?lo.toStringTag:void 0;function cE(e){return e==null?e===void 0?sL:iL:ig&&ig in Object(e)?tL(e):oL(e)}i(cE,"baseGetTag");var uE=cE;function dE(e){return e!=null&&typeof e=="object"}i(dE,"isObjectLike");var aL=dE,lL="[object Symbol]";function pE(e){return typeof e=="symbol"||aL(e)&&uE(e)==lL}i(pE,"isSymbol");var Bp=pE;function fE(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(fE,"arrayMap");var cL=fE,uL=Array.isArray,Jp=uL,sg=lo?lo.prototype:void 0,ag=sg?sg.toString:void 0;function Up(e){if(typeof e=="string")return e;if(Jp(e))return cL(e,Up)+"";if(Bp(e))return ag?ag.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}i(Up,"baseToString");var dL=Up;function mE(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}i(mE,"isObject2");var hE=mE,pL="[object AsyncFunction]",fL="[object Function]",mL="[object GeneratorFunction]",hL="[object Proxy]";function yE(e){if(!hE(e))return!1;var t=uE(e);return t==fL||t==mL||t==pL||t==hL}i(yE,"isFunction");var yL=yE,gL=$p["__core-js_shared__"],Kc=gL,lg=(function(){var e=/[^.]+$/.exec(Kc&&Kc.keys&&Kc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function gE(e){return!!lg&&lg in e}i(gE,"isMasked");var bL=gE,vL=Function.prototype,EL=vL.toString;function bE(e){if(e!=null){try{return EL.call(e)}catch{}try{return e+""}catch{}}return""}i(bE,"toSource");var TL=bE,wL=/[\\^$.*+?()[\]{}|]/g,_L=/^\[object .+?Constructor\]$/,SL=Function.prototype,PL=Object.prototype,AL=SL.toString,RL=PL.hasOwnProperty,OL=RegExp("^"+AL.call(RL).replace(wL,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function vE(e){if(!hE(e)||bL(e))return!1;var t=yL(e)?OL:_L;return t.test(TL(e))}i(vE,"baseIsNative");var CL=vE;function EE(e,t){return e?.[t]}i(EE,"getValue");var xL=EE;function TE(e,t){var r=xL(e,t);return CL(r)?r:void 0}i(TE,"getNative");var wE=TE;function _E(e,t){return e===t||e!==e&&t!==t}i(_E,"eq");var NL=_E,IL=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ML=/^\w*$/;function SE(e,t){if(Jp(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Bp(e)?!0:ML.test(e)||!IL.test(e)||t!=null&&e in Object(t)}i(SE,"isKey");var qL=SE,jL=wE(Object,"create"),Vi=jL;function PE(){this.__data__=Vi?Vi(null):{},this.size=0}i(PE,"hashClear");var kL=PE;function AE(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}i(AE,"hashDelete");var DL=AE,LL="__lodash_hash_undefined__",FL=Object.prototype,$L=FL.hasOwnProperty;function RE(e){var t=this.__data__;if(Vi){var r=t[e];return r===LL?void 0:r}return $L.call(t,e)?t[e]:void 0}i(RE,"hashGet");var BL=RE,JL=Object.prototype,UL=JL.hasOwnProperty;function OE(e){var t=this.__data__;return Vi?t[e]!==void 0:UL.call(t,e)}i(OE,"hashHas");var VL=OE,HL="__lodash_hash_undefined__";function CE(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Vi&&t===void 0?HL:t,this}i(CE,"hashSet");var zL=CE;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,"Hash");jn.prototype.clear=kL;jn.prototype.delete=DL;jn.prototype.get=BL;jn.prototype.has=VL;jn.prototype.set=zL;var cg=jn;function xE(){this.__data__=[],this.size=0}i(xE,"listCacheClear");var GL=xE;function NE(e,t){for(var r=e.length;r--;)if(NL(e[r][0],t))return r;return-1}i(NE,"assocIndexOf");var gl=NE,WL=Array.prototype,KL=WL.splice;function IE(e){var t=this.__data__,r=gl(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():KL.call(t,r,1),--this.size,!0}i(IE,"listCacheDelete");var YL=IE;function ME(e){var t=this.__data__,r=gl(t,e);return r<0?void 0:t[r][1]}i(ME,"listCacheGet");var XL=ME;function qE(e){return gl(this.__data__,e)>-1}i(qE,"listCacheHas");var QL=qE;function jE(e,t){var r=this.__data__,n=gl(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}i(jE,"listCacheSet");var ZL=jE;function kn(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(kn,"ListCache");kn.prototype.clear=GL;kn.prototype.delete=YL;kn.prototype.get=XL;kn.prototype.has=QL;kn.prototype.set=ZL;var e1=kn,t1=wE($p,"Map"),r1=t1;function kE(){this.size=0,this.__data__={hash:new cg,map:new(r1||e1),string:new cg}}i(kE,"mapCacheClear");var n1=kE;function DE(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}i(DE,"isKeyable");var o1=DE;function LE(e,t){var r=e.__data__;return o1(t)?r[typeof t=="string"?"string":"hash"]:r.map}i(LE,"getMapData");var bl=LE;function FE(e){var t=bl(this,e).delete(e);return this.size-=t?1:0,t}i(FE,"mapCacheDelete");var i1=FE;function $E(e){return bl(this,e).get(e)}i($E,"mapCacheGet");var s1=$E;function BE(e){return bl(this,e).has(e)}i(BE,"mapCacheHas");var a1=BE;function JE(e,t){var r=bl(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}i(JE,"mapCacheSet");var l1=JE;function Dn(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(Dn,"MapCache");Dn.prototype.clear=n1;Dn.prototype.delete=i1;Dn.prototype.get=s1;Dn.prototype.has=a1;Dn.prototype.set=l1;var UE=Dn,c1="Expected a function";function vl(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(c1);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(vl.Cache||UE),r}i(vl,"memoize");vl.Cache=UE;var u1=vl,d1=500;function VE(e){var t=u1(e,function(n){return r.size===d1&&r.clear(),n}),r=t.cache;return t}i(VE,"memoizeCapped");var p1=VE,f1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,m1=/\\(\\)?/g,h1=p1(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(f1,function(r,n,o,s){t.push(o?s.replace(m1,"$1"):n||r)}),t}),y1=h1;function HE(e){return e==null?"":dL(e)}i(HE,"toString");var g1=HE;function zE(e,t){return Jp(e)?e:qL(e,t)?[e]:y1(g1(e))}i(zE,"castPath");var b1=zE;function GE(e){if(typeof e=="string"||Bp(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}i(GE,"toKey");var v1=GE;function WE(e,t){t=b1(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[v1(t[r++])];return r&&r==n?e:void 0}i(WE,"baseGet");var E1=WE;function KE(e,t,r){var n=e==null?void 0:E1(e,t);return n===void 0?r:n}i(KE,"get");var T1=KE,Vp=iE,w1=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,Hp=i(e=>e.match(/^[\[\{\"\}].*[\]\}\"]$/),"isJSON");function zp(e){if(!Vp(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=Kv(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(zp,"convertUnconventionalData");var _1=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 w1.test(u)?t.allowDate?`_date_${u}`:void 0:u;if((0,HD.default)(u))return t.allowRegExp?`_regexp_${u.flags}|${u.source}`:void 0;if((0,zD.default)(u))return;if((0,GD.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 h={__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(h),r.set(u,JSON.stringify(s)),u!==h&&n.set(u,h),h}return`_duplicate_${f}`}const p=r.get(u);if(!p){const f=Array.isArray(u)?u:zp(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"),S1=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=Hp(d)?JSON.parse(d):d.split(".");p.length===0?u[c]=n:u[c]=T1(n,p)})),s==="_constructor-name_")return a;if(Vp(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"),YE={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},XE=i((e,t={})=>{const r={...YE,...t};return JSON.stringify(zp(e),_1(r),t.space)},"stringify"),P1=i(()=>{const e=new Map;return i(function t(r){Vp(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"),QE=i((e,t={})=>{const r={...YE,...t},n=JSON.parse(e,S1(r));return P1()(n),n},"parse"),A1="Invariant failed";function or(e,t){if(!e)throw new Error(A1)}i(or,"invariant");var R1=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:Yc,location:Xc}=te,ug="storybook-channel",O1={maxDepth:25},ZE=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(([T,v])=>typeof v<"u")),h={...O1,...te.CHANNEL_OPTIONS||{},...f},y=this.getFrames(n),g=new URLSearchParams(Xc?.search||""),E=XE({key:ug,event:t,refId:g.get("refId")},h);return y.length?(this.buffer.length&&this.flush(),y.forEach(T=>{try{T.postMessage(E,"*")}catch{De.error("sending over postmessage fail")}}),Promise.resolve(null)):new Promise((T,v)=>{this.buffer.push({event:t,resolve:T,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(Yc.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(Yc.querySelectorAll('[data-is-storybook="true"]')).flatMap(r=>r.contentWindow?[r.contentWindow]:[]):te&&te.parent?[te.parent]:[]}getLocalFrame(){return this.config.page==="manager"?Array.from(Yc.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"&&Hp(r)?QE(r,te.CHANNEL_OPTIONS||{}):r;if(n===ug){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(Ap).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:R1(t),!o.source){Ct.error(`${a} received ${c} but was unable to determine the source of the event`);return}const u=`${a} received ${c} (${r.length})`;Ct.debug(Xc.origin!==o.source?u:`${u} <span style="color: gray">(on ${Xc.origin} from ${o.source})</span>`,...o.args),or(this.handler,"ChannelHandler should be set"),this.handler(o)}}catch(r){De.error(r)}}};i(ZE,"PostMessageTransport");var eT=ZE,{WebSocket:C1}=te,tT=15e3,rT=5e3,nT=class{constructor({url:t,onError:r,page:n}){this.buffer=[],this.isReady=!1,this.isClosed=!1,this.pingTimeout=0,this.socket=new C1(t),this.socket.onopen=()=>{this.isReady=!0,this.heartbeat(),this.flush()},this.socket.onmessage=({data:o})=>{const s=typeof o=="string"&&Hp(o)?QE(o):o;or(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=>{or(this.handler),this.handler({type:Tv,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")},tT+rT)}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=XE(t,{maxDepth:15,...te.CHANNEL_OPTIONS});this.socket.send(r)}flush(){const{buffer:t}=this;this.buffer=[],t.forEach(r=>this.send(r))}};i(nT,"WebsocketTransport");var oT=nT,{CONFIG_TYPE:x1}=te,N1=hl;function iT({page:e,extraTransports:t=[]}){const r=[new eT({page:e}),...t];if(x1==="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 oT({url:c,onError:i(()=>{},"onError"),page:e}))}const n=new hl({transports:r});return Wc.__prepare(n,e==="manager"?Wc.Environment.MANAGER:Wc.Environment.PREVIEW),n}i(iT,"createBrowserChannel");var sT={};Tt(sT,{CalledExtractOnStoreError:()=>hT,CalledPreviewMethodBeforeInitializationError:()=>At,Category:()=>cT,ElementA11yParameterError:()=>D1,EmptyIndexError:()=>ST,ImplicitActionsDuringRendering:()=>fT,MdxFileWithNoCsfReferencesError:()=>wT,MissingRenderToCanvasError:()=>gT,MissingStoryAfterHmrError:()=>dT,MissingStoryFromCsfFileError:()=>OT,MountMustBeDestructuredError:()=>Gp,NextJsSharpError:()=>M1,NextjsRouterMocksNotAvailable:()=>q1,NoRenderFunctionError:()=>MT,NoStoryMatchError:()=>AT,NoStoryMountedError:()=>jT,StatusTypeIdMismatchError:()=>I1,StoryIndexFetchError:()=>ET,StoryStoreAccessedBeforeInitializationError:()=>xT,UnknownArgTypesError:()=>j1,UnsupportedViewportDimensionError:()=>k1});function Ru({code:e,category:t}){const r=String(e).padStart(4,"0");return`SB_${t}_${r}`}i(Ru,"parseErrorCode");function Ou(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(Ou,"appendErrorRef");var aT=class lT extends Error{constructor(t){super(lT.getFullMessage(t)),this.data={},this.fromStorybook=!0,this.category=t.category,this.documentation=t.documentation??!1,this.code=t.code}get fullErrorCode(){return Ru({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/${Ru({code:r,category:n})}?ref=error`:typeof t=="string"?s=Ou(t):Array.isArray(t)&&(s=`
|
|
34
|
-
${t.map(a=>` - ${Ou(a)}`).join(`
|
|
35
|
-
`)}`),`${o}${s!=null?`
|
|
36
|
-
|
|
37
|
-
More info: ${s}
|
|
38
|
-
`:""}`}};i(aT,"StorybookError");var Ke=aT,cT=(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))(cT||{}),uT=class extends Ke{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(uT,"MissingStoryAfterHmrError");var dT=uT,pT=class extends Ke{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(pT,"ImplicitActionsDuringRendering");var fT=pT,mT=class extends Ke{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(mT,"CalledExtractOnStoreError");var hT=mT,yT=class extends Ke{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(yT,"MissingRenderToCanvasError");var gT=yT,bT=class extends Ke{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(bT,"CalledPreviewMethodBeforeInitializationError");var At=bT,vT=class extends Ke{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(vT,"StoryIndexFetchError");var ET=vT,TT=class extends Ke{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(TT,"MdxFileWithNoCsfReferencesError");var wT=TT,_T=class extends Ke{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(_T,"EmptyIndexError");var ST=_T,PT=class extends Ke{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(PT,"NoStoryMatchError");var AT=PT,RT=class extends Ke{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(RT,"MissingStoryFromCsfFileError");var OT=RT,CT=class extends Ke{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(CT,"StoryStoreAccessedBeforeInitializationError");var xT=CT,NT=class extends Ke{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(NT,"MountMustBeDestructuredError");var Gp=NT,IT=class extends Ke{constructor(t){super({category:"PREVIEW_API",code:14,message:ve`
|
|
120
|
-
No render function available for storyId '${t.id}'
|
|
121
|
-
`}),this.data=t}};i(IT,"NoRenderFunctionError");var MT=IT,qT=class extends Ke{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(qT,"NoStoryMountedError");var jT=qT,kT=class extends Ke{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(kT,"StatusTypeIdMismatchError");var I1=kT,DT=class extends Ke{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(DT,"NextJsSharpError");var M1=DT,LT=class extends Ke{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(LT,"NextjsRouterMocksNotAvailable");var q1=LT,FT=class extends Ke{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(FT,"UnknownArgTypesError");var j1=FT,$T=class extends Ke{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($T,"UnsupportedViewportDimensionError");var k1=$T,BT=class extends Ke{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(BT,"ElementA11yParameterError");var D1=BT,JT={};Tt(JT,{Addon_TypesEnum:()=>UT});var UT=(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))(UT||{}),VT={};Tt(VT,{ADDON_ID:()=>El,CLEAR_ID:()=>$1,CYCLIC_KEY:()=>B1,EVENT_ID:()=>HT,PANEL_ID:()=>F1,PARAM_KEY:()=>L1,action:()=>Bo,actions:()=>y3,config:()=>us,configureActions:()=>f3});var L1="actions",El="storybook/actions",F1=`${El}/panel`,HT=`${El}/action-event`,$1=`${El}/action-clear`,B1="$___storybook.isCyclic",Cu={};Tt(Cu,{DocsContext:()=>Iy,HooksContext:()=>Kp,Preview:()=>wN,PreviewWeb:()=>i3,PreviewWithSelection:()=>IN,ReporterAPI:()=>Cy,StoryStore:()=>gN,UrlStore:()=>FN,WebView:()=>JN,addons:()=>Lt,applyHooks:()=>KT,combineArgs:()=>tl,combineParameters:()=>Nn,composeConfigs:()=>In,composeStepRunners:()=>Ay,composeStories:()=>fN,composeStory:()=>Ny,createPlaywrightTest:()=>mN,decorateStory:()=>vy,defaultDecorateStory:()=>Ty,emitTransformCode:()=>GN,filterArgTypes:()=>aN,getCsfFactoryAnnotations:()=>xy,inferControls:()=>Py,makeDecorator:()=>H1,mockChannel:()=>Wp,normalizeArrays:()=>Ie,normalizeProjectAnnotations:()=>cs,normalizeStory:()=>ao,pauseAnimations:()=>jc,prepareMeta:()=>wy,prepareStory:()=>qc,sanitizeStoryContextUpdate:()=>Ey,setDefaultProjectAnnotations:()=>uN,setProjectAnnotations:()=>pN,simulateDOMContentLoaded:()=>il,simulatePageLoad:()=>HN,sortStoriesV7:()=>zH,useArgs:()=>nw,useCallback:()=>co,useChannel:()=>tw,useEffect:()=>Hr,useGlobals:()=>ow,useMemo:()=>Qp,useParameter:()=>rw,useReducer:()=>ew,useRef:()=>XT,useState:()=>ZT,useStoryContext:()=>gs,userOrAutoTitle:()=>UH,userOrAutoTitleFromSpecifier:()=>vN,waitForAnimations:()=>kc});function Wp(){const e={setHandler:i(()=>{},"setHandler"),send:i(()=>{},"send")};return new hl({transport:e})}i(Wp,"mockChannel");var zT=class{constructor(){this.getChannel=i(()=>{if(!this.channel){const t=Wp();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(zT,"AddonStore");var J1=zT,Qc="__STORYBOOK_ADDONS_PREVIEW";function GT(){return te[Qc]||(te[Qc]=new J1),te[Qc]}i(GT,"getAddonsStore");var Lt=GT(),WT=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(),Lt.getChannel().on(ma,this.renderListener)}removeRenderListeners(){Lt.getChannel().removeListener(ma,this.renderListener)}};i(WT,"HooksContext");var Kp=WT;function xu(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(xu,"hookify");var Zc=0,U1=25,KT=i(e=>(t,r)=>{const n=e(xu(t),r.map(o=>xu(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(Zc=1;s.hasUpdates;)if(s.hasUpdates=!1,s.currentEffects=[],a=n(o),Zc+=1,Zc>U1)throw new Error("Too many re-renders. Storybook limits the number of renders to prevent an infinite loop.");return s.addRenderListeners(),a}},"applyHooks"),V1=i((e,t)=>e.length===t.length&&e.every((r,n)=>r===t[n]),"areDepsEqual"),Yp=i(()=>new Error("Storybook preview hooks can only be called inside decorators and story functions."),"invalidHooksError");function Xp(){return te.STORYBOOK_HOOKS_CONTEXT||null}i(Xp,"getHooksContextOrNull");function Tl(){const e=Xp();if(e==null)throw Yp();return e}i(Tl,"getHooksContextOrThrow");function YT(e,t,r){const n=Tl();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||!V1(r,o.deps))&&(t(o),o.deps=r),o}throw Yp()}i(YT,"useHook");function ys(e,t,r){const{memoizedState:n}=YT(e,o=>{o.memoizedState=t()},r);return n}i(ys,"useMemoLike");function Qp(e,t){return ys("useMemo",e,t)}i(Qp,"useMemo");function co(e,t){return ys("useCallback",()=>e,t)}i(co,"useCallback");function Zp(e,t){return ys(e,()=>({current:t}),[])}i(Zp,"useRefLike");function XT(e){return Zp("useRef",e)}i(XT,"useRef");function QT(){const e=Xp();if(e!=null&&e.currentPhase!=="NONE")e.hasUpdates=!0;else try{Lt.getChannel().emit(Cp)}catch{De.warn("State updates of Storybook preview hooks work only in browser")}}i(QT,"triggerUpdate");function ef(e,t){const r=Zp(e,typeof t=="function"?t():t),n=i(o=>{r.current=typeof o=="function"?o(r.current):o,QT()},"setState");return[r.current,n]}i(ef,"useStateLike");function ZT(e){return ef("useState",e)}i(ZT,"useState");function ew(e,t,r){const n=r!=null?()=>r(t):t,[o,s]=ef("useReducer",n);return[o,i(c=>s(u=>e(u,c)),"dispatch")]}i(ew,"useReducer");function Hr(e,t){const r=Tl(),n=ys("useEffect",()=>({create:e}),t);r.currentEffects.includes(n)||r.currentEffects.push(n)}i(Hr,"useEffect");function tw(e,t=[]){const r=Lt.getChannel();return Hr(()=>(Object.entries(e).forEach(([n,o])=>r.on(n,o)),()=>{Object.entries(e).forEach(([n,o])=>r.removeListener(n,o))}),[...Object.keys(e),...t]),co(r.emit.bind(r),[r])}i(tw,"useChannel");function gs(){const{currentContext:e}=Tl();if(e==null)throw Yp();return e}i(gs,"useStoryContext");function rw(e,t){const{parameters:r}=gs();if(e)return r[e]??t}i(rw,"useParameter");function nw(){const e=Lt.getChannel(),{id:t,args:r}=gs(),n=co(s=>e.emit(Mp,{storyId:t,updatedArgs:s}),[e,t]),o=co(s=>e.emit(xp,{storyId:t,argNames:s}),[e,t]);return[r,n,o]}i(nw,"useArgs");function ow(){const e=Lt.getChannel(),{globals:t}=gs(),r=co(n=>e.emit(Ip,{globals:n}),[e]);return[t,r]}i(ow,"useGlobals");var H1=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 iw(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(iw,"toStartCaseStr");var dg=We(TM(),1),sw=i(e=>e.map(t=>typeof t<"u").filter(Boolean).length,"count"),z1=i((e,t)=>{const{exists:r,eq:n,neq:o,truthy:s}=e;if(sw([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,dg.isEqual)(t,n);if(typeof o<"u")return!(0,dg.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"),G1=i((e,t,r)=>{if(!e.if)return!0;const{arg:n,global:o}=e.if;if(sw([n,o])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:n,global:o})}`);const s=n?t[n]:r[o];return z1(e.if,s)},"includeConditionalArg");function aw(e){return e!=null&&lw(e).includes("mount")}i(aw,"mountDestructured");function lw(e){const t=e.toString().match(/[^(]*\(([^)]*)/);if(!t)return[];const r=Nu(t[1]);if(!r.length)return[];const n=r[0];return n.startsWith("{")&&n.endsWith("}")?Nu(n.slice(1,-1).replace(/\s/g,"")).map(s=>s.replace(/:.*|=.*/g,"")):[]}i(lw,"getUsedProps");function Nu(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(Nu,"splitByComma");var cw={};Tt(cw,{argsEnhancers:()=>Y1});var uw=i((e,t)=>typeof t[e]>"u"&&!(e in t),"isInInitialArgs"),W1=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])=>(uw(u,t)&&(c[u]=Bo(u,{implicit:!0,id:n})),c),{})},"inferActionsFromArgTypesRegex"),K1=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])=>(uw(a,t)&&(s[a]=Bo(typeof c.action=="string"?c.action:a)),s),{})},"addActionsFromArgTypes"),Y1=[K1,W1],dw={};Tt(dw,{loaders:()=>sV});var pw={};Tt(pw,{buildQueries:()=>FJ,clearAllMocks:()=>fh,configure:()=>$J,createEvent:()=>BJ,expect:()=>nV,findAllByAltText:()=>UJ,findAllByDisplayValue:()=>VJ,findAllByLabelText:()=>HJ,findAllByPlaceholderText:()=>zJ,findAllByRole:()=>GJ,findAllByTestId:()=>WJ,findAllByText:()=>KJ,findAllByTitle:()=>YJ,findByAltText:()=>XJ,findByDisplayValue:()=>QJ,findByLabelText:()=>ZJ,findByPlaceholderText:()=>eU,findByRole:()=>tU,findByTestId:()=>rU,findByText:()=>nU,findByTitle:()=>oU,fireEvent:()=>JJ,fn:()=>dh,getAllByAltText:()=>iU,getAllByDisplayValue:()=>sU,getAllByLabelText:()=>aU,getAllByPlaceholderText:()=>lU,getAllByRole:()=>cU,getAllByTestId:()=>uU,getAllByText:()=>dU,getAllByTitle:()=>pU,getByAltText:()=>fU,getByDisplayValue:()=>mU,getByLabelText:()=>hU,getByPlaceholderText:()=>yU,getByRole:()=>gU,getByTestId:()=>bU,getByText:()=>vU,getByTitle:()=>EU,getConfig:()=>TU,getDefaultNormalizer:()=>wU,getElementError:()=>_U,getNodeText:()=>SU,getQueriesForElement:()=>PU,getRoles:()=>AU,getSuggestedQuery:()=>RU,isInaccessible:()=>OU,isMockFunction:()=>bn,logDOM:()=>CU,logRoles:()=>xU,mocked:()=>OP,mocks:()=>Is,onMockCall:()=>uh,prettyDOM:()=>NU,prettyFormat:()=>tV,queries:()=>IU,queryAllByAltText:()=>MU,queryAllByAttribute:()=>qU,queryAllByDisplayValue:()=>jU,queryAllByLabelText:()=>kU,queryAllByPlaceholderText:()=>DU,queryAllByRole:()=>LU,queryAllByTestId:()=>FU,queryAllByText:()=>$U,queryAllByTitle:()=>BU,queryByAltText:()=>JU,queryByAttribute:()=>UU,queryByDisplayValue:()=>VU,queryByLabelText:()=>HU,queryByPlaceholderText:()=>zU,queryByRole:()=>GU,queryByTestId:()=>WU,queryByText:()=>KU,queryByTitle:()=>YU,queryHelpers:()=>XU,resetAllMocks:()=>mh,restoreAllMocks:()=>hh,sb:()=>oV,screen:()=>QU,spyOn:()=>IB,uninstrumentedUserEvent:()=>Ex,userEvent:()=>rV,waitFor:()=>ZU,waitForElementToBeRemoved:()=>eV,within:()=>vx});var X1={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]},fw=Object.entries(X1);function bs(e){return String(e)}i(bs,"a");bs.open="";bs.close="";fw.reduce((e,[t])=>(e[t]=bs,e),{isColorSupported:!1});function mw(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(mw,"C");function hw(e=!1){let t=mw(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),h=f.indexOf(c,a.length);return~h?a+r(f,c,u,h)+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 fw)o[a]=t?n(s(c[0]),s(c[1]),c[2]):bs;return o}i(hw,"p");var Ue=hw();function tf(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(tf,"_mergeNamespaces");function yw(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(yw,"getKeysOfEnumerableProperties");function xo(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),h=s(d.value[1],t,p,n,o);c+=f+a+h,d=e.next(),d.done?t.min||(c+=","):c+=`,${t.spacingInner}`}c+=t.spacingOuter+r}return c}i(xo,"printIteratorEntries");function wl(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(wl,"printIteratorValues");function Hi(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(Hi,"printListItems");function _l(e,t,r,n,o,s){let a="";const c=yw(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),h=s(e[p],t,u,n,o);a+=`${u+f}: ${h}`,d<c.length-1?a+=`,${t.spacingInner}`:t.min||(a+=",")}a+=t.spacingOuter+r}return a}i(_l,"printObjectProperties");var Q1=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,$s=" ",Z1=i((e,t,r,n,o,s)=>{const a=e.toString();if(a==="ArrayContaining"||a==="ArrayNotContaining")return++n>t.maxDepth?`[${a}]`:`${a+$s}[${Hi(e.sample,t,r,n,o,s)}]`;if(a==="ObjectContaining"||a==="ObjectNotContaining")return++n>t.maxDepth?`[${a}]`:`${a+$s}{${_l(e.sample,t,r,n,o,s)}}`;if(a==="StringMatching"||a==="StringNotMatching"||a==="StringContaining"||a==="StringNotContaining")return a+$s+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"),eF=i(e=>e&&e.$$typeof===Q1,"test$5"),tF={serialize:Z1,test:eF},rF=" ",gw=new Set(["DOMStringMap","NamedNodeMap"]),nF=/^(?:HTML\w*Collection|NodeList)$/;function bw(e){return gw.has(e)||nF.test(e)}i(bw,"testName");var oF=i(e=>e&&e.constructor&&!!e.constructor.name&&bw(e.constructor.name),"test$4");function vw(e){return e.constructor.name==="NamedNodeMap"}i(vw,"isNamedNodeMap");var iF=i((e,t,r,n,o,s)=>{const a=e.constructor.name;return++n>t.maxDepth?`[${a}]`:(t.min?"":a+rF)+(gw.has(a)?`{${_l(vw(e)?[...e].reduce((c,u)=>(c[u.name]=u.value,c),{}):{...e},t,r,n,o,s)}}`:`[${Hi([...e],t,r,n,o,s)}]`)},"serialize$4"),sF={serialize:iF,test:oF};function rf(e){return e.replaceAll("<","<").replaceAll(">",">")}i(rf,"escapeHTML");function Sl(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(Sl,"printProps");function Pl(e,t,r,n,o,s){return e.map(a=>t.spacingOuter+r+(typeof a=="string"?nf(a,t):s(a,t,r,n,o))).join("")}i(Pl,"printChildren");function nf(e,t){const r=t.colors.content;return r.open+rf(e)+r.close}i(nf,"printText");function Ew(e,t){const r=t.colors.comment;return`${r.open}<!--${rf(e)}-->${r.close}`}i(Ew,"printComment");function Al(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(Al,"printElement");function Rl(e,t){const r=t.colors.tag;return`${r.open}<${e}${r.close} …${r.open} />${r.close}`}i(Rl,"printElementAsLeaf");var aF=1,Tw=3,ww=8,_w=11,lF=/^(?:(?:HTML|SVG)\w*)?Element$/;function Sw(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return!1}}i(Sw,"testHasAttribute");function Pw(e){const t=e.constructor.name,{nodeType:r,tagName:n}=e,o=typeof n=="string"&&n.includes("-")||Sw(e);return r===aF&&(lF.test(t)||o)||r===Tw&&t==="Text"||r===ww&&t==="Comment"||r===_w&&t==="DocumentFragment"}i(Pw,"testNode");var cF=i(e=>{var t;return(e==null||(t=e.constructor)===null||t===void 0?void 0:t.name)&&Pw(e)},"test$3");function Aw(e){return e.nodeType===Tw}i(Aw,"nodeIsText");function Rw(e){return e.nodeType===ww}i(Rw,"nodeIsComment");function Ws(e){return e.nodeType===_w}i(Ws,"nodeIsFragment");var uF=i((e,t,r,n,o,s)=>{if(Aw(e))return nf(e.data,t);if(Rw(e))return Ew(e.data,t);const a=Ws(e)?"DocumentFragment":e.tagName.toLowerCase();return++n>t.maxDepth?Rl(a,t):Al(a,Sl(Ws(e)?[]:Array.from(e.attributes,c=>c.name).sort(),Ws(e)?{}:[...e.attributes].reduce((c,u)=>(c[u.name]=u.value,c),{}),t,r+t.indent,n,o,s),Pl(Array.prototype.slice.call(e.childNodes||e.children),t,r+t.indent,n,o,s),t,r)},"serialize$3"),dF={serialize:uF,test:cF},pF="@@__IMMUTABLE_ITERABLE__@@",fF="@@__IMMUTABLE_LIST__@@",mF="@@__IMMUTABLE_KEYED__@@",hF="@@__IMMUTABLE_MAP__@@",pg="@@__IMMUTABLE_ORDERED__@@",yF="@@__IMMUTABLE_RECORD__@@",gF="@@__IMMUTABLE_SEQ__@@",bF="@@__IMMUTABLE_SET__@@",vF="@@__IMMUTABLE_STACK__@@",uo=i(e=>`Immutable.${e}`,"getImmutableName"),Ol=i(e=>`[${e}]`,"printAsLeaf"),zi=" ",fg="…";function Ow(e,t,r,n,o,s,a){return++n>t.maxDepth?Ol(uo(a)):`${uo(a)+zi}{${xo(e.entries(),t,r,n,o,s)}}`}i(Ow,"printImmutableEntries");function Cw(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(Cw,"getRecordEntries");function xw(e,t,r,n,o,s){const a=uo(e._name||"Record");return++n>t.maxDepth?Ol(a):`${a+zi}{${xo(Cw(e),t,r,n,o,s)}}`}i(xw,"printImmutableRecord");function Nw(e,t,r,n,o,s){const a=uo("Seq");return++n>t.maxDepth?Ol(a):e[mF]?`${a+zi}{${e._iter||e._object?xo(e.entries(),t,r,n,o,s):fg}}`:`${a+zi}[${e._iter||e._array||e._collection||e._iterable?wl(e.values(),t,r,n,o,s):fg}]`}i(Nw,"printImmutableSeq");function Ks(e,t,r,n,o,s,a){return++n>t.maxDepth?Ol(uo(a)):`${uo(a)+zi}[${wl(e.values(),t,r,n,o,s)}]`}i(Ks,"printImmutableValues");var EF=i((e,t,r,n,o,s)=>e[hF]?Ow(e,t,r,n,o,s,e[pg]?"OrderedMap":"Map"):e[fF]?Ks(e,t,r,n,o,s,"List"):e[bF]?Ks(e,t,r,n,o,s,e[pg]?"OrderedSet":"Set"):e[vF]?Ks(e,t,r,n,o,s,"Stack"):e[gF]?Nw(e,t,r,n,o,s):xw(e,t,r,n,o,s),"serialize$2"),TF=i(e=>e&&(e[pF]===!0||e[yF]===!0),"test$2"),wF={serialize:EF,test:TF};function of(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}i(of,"getDefaultExportFromCjs");var eu={exports:{}},Ne={},mg;function Iw(){if(mg)return Ne;mg=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"),h=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");function g(E){if(typeof E=="object"&&E!==null){var T=E.$$typeof;switch(T){case e:switch(E=E.type,E){case r:case o:case n:case u:case d:case h:return E;default:switch(E=E&&E.$$typeof,E){case a:case c:case f:case p:return E;case s:return E;default:return T}}case t:return T}}}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(E){return g(E)===s},Ne.isContextProvider=function(E){return g(E)===a},Ne.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===e},Ne.isForwardRef=function(E){return g(E)===c},Ne.isFragment=function(E){return g(E)===r},Ne.isLazy=function(E){return g(E)===f},Ne.isMemo=function(E){return g(E)===p},Ne.isPortal=function(E){return g(E)===t},Ne.isProfiler=function(E){return g(E)===o},Ne.isStrictMode=function(E){return g(E)===n},Ne.isSuspense=function(E){return g(E)===u},Ne.isSuspenseList=function(E){return g(E)===d},Ne.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===r||E===o||E===n||E===u||E===d||typeof E=="object"&&E!==null&&(E.$$typeof===f||E.$$typeof===p||E.$$typeof===a||E.$$typeof===s||E.$$typeof===c||E.$$typeof===y||E.getModuleId!==void 0)},Ne.typeOf=g,Ne}i(Iw,"requireReactIs_production");var hg;function Mw(){return hg||(hg=1,eu.exports=Iw()),eu.exports}i(Mw,"requireReactIs$1");var qw=Mw(),_F=of(qw),SF=tf({__proto__:null,default:_F},[qw]),tu={exports:{}},Ce={},yg;function jw(){if(yg)return Ce;yg=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"),h=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),g;g=Symbol.for("react.module.reference");function E(T){if(typeof T=="object"&&T!==null){var v=T.$$typeof;switch(v){case e:switch(T=T.type,T){case r:case o:case n:case d:case p:return T;default:switch(T=T&&T.$$typeof,T){case c:case a:case u:case h:case f:case s:return T;default:return v}}case t:return v}}}return i(E,"v"),Ce.ContextConsumer=a,Ce.ContextProvider=s,Ce.Element=e,Ce.ForwardRef=u,Ce.Fragment=r,Ce.Lazy=h,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(T){return E(T)===a},Ce.isContextProvider=function(T){return E(T)===s},Ce.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===e},Ce.isForwardRef=function(T){return E(T)===u},Ce.isFragment=function(T){return E(T)===r},Ce.isLazy=function(T){return E(T)===h},Ce.isMemo=function(T){return E(T)===f},Ce.isPortal=function(T){return E(T)===t},Ce.isProfiler=function(T){return E(T)===o},Ce.isStrictMode=function(T){return E(T)===n},Ce.isSuspense=function(T){return E(T)===d},Ce.isSuspenseList=function(T){return E(T)===p},Ce.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===r||T===o||T===n||T===d||T===p||T===y||typeof T=="object"&&T!==null&&(T.$$typeof===h||T.$$typeof===f||T.$$typeof===s||T.$$typeof===a||T.$$typeof===u||T.$$typeof===g||T.getModuleId!==void 0)},Ce.typeOf=E,Ce}i(jw,"requireReactIs_production_min");var gg;function kw(){return gg||(gg=1,tu.exports=jw()),tu.exports}i(kw,"requireReactIs");var Dw=kw(),PF=of(Dw),AF=tf({__proto__:null,default:PF},[Dw]),RF=["isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","isValidElementType"],cn=Object.fromEntries(RF.map(e=>[e,t=>AF[e](t)||SF[e](t)]));function sf(e,t=[]){if(Array.isArray(e))for(const r of e)sf(r,t);else e!=null&&e!==!1&&e!==""&&t.push(e);return t}i(sf,"getChildren");function Iu(e){const t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(cn.isFragment(e))return"React.Fragment";if(cn.isSuspense(e))return"React.Suspense";if(typeof t=="object"&&t!==null){if(cn.isContextProvider(e))return"Context.Provider";if(cn.isContextConsumer(e))return"Context.Consumer";if(cn.isForwardRef(e)){if(t.displayName)return t.displayName;const r=t.render.displayName||t.render.name||"";return r===""?"ForwardRef":`ForwardRef(${r})`}if(cn.isMemo(e)){const r=t.displayName||t.type.displayName||t.type.name||"";return r===""?"Memo":`Memo(${r})`}}return"UNDEFINED"}i(Iu,"getType");function Lw(e){const{props:t}=e;return Object.keys(t).filter(r=>r!=="children"&&t[r]!==void 0).sort()}i(Lw,"getPropKeys$1");var OF=i((e,t,r,n,o,s)=>++n>t.maxDepth?Rl(Iu(e),t):Al(Iu(e),Sl(Lw(e),e.props,t,r+t.indent,n,o,s),Pl(sf(e.props.children),t,r+t.indent,n,o,s),t,r),"serialize$1"),CF=i(e=>e!=null&&cn.isElement(e),"test$1"),xF={serialize:OF,test:CF},NF=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function Fw(e){const{props:t}=e;return t?Object.keys(t).filter(r=>t[r]!==void 0).sort():[]}i(Fw,"getPropKeys");var IF=i((e,t,r,n,o,s)=>++n>t.maxDepth?Rl(e.type,t):Al(e.type,e.props?Sl(Fw(e),e.props,t,r+t.indent,n,o,s):"",e.children?Pl(e.children,t,r+t.indent,n,o,s):"",t,r),"serialize"),MF=i(e=>e&&e.$$typeof===NF,"test"),qF={serialize:IF,test:MF},$w=Object.prototype.toString,jF=Date.prototype.toISOString,kF=Error.prototype.toString,bg=RegExp.prototype.toString;function Ci(e){return typeof e.constructor=="function"&&e.constructor.name||"Object"}i(Ci,"getConstructorName");function Bw(e){return typeof window<"u"&&e===window}i(Bw,"isWindow");var DF=/^Symbol\((.*)\)(.*)$/,LF=/\n/g,Jw=class extends Error{constructor(t,r){super(t),this.stack=r,this.name=this.constructor.name}};i(Jw,"PrettyFormatPluginError");var Uw=Jw;function Vw(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(Vw,"isToStringedArrayType");function Hw(e){return Object.is(e,-0)?"-0":String(e)}i(Hw,"printNumber");function zw(e){return`${e}n`}i(zw,"printBigInt");function Mu(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}i(Mu,"printFunction");function qu(e){return String(e).replace(DF,"Symbol($1)")}i(qu,"printSymbol");function ju(e){return`[${kF.call(e)}]`}i(ju,"printError");function af(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 Hw(e);if(o==="bigint")return zw(e);if(o==="string")return n?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if(o==="function")return Mu(e,t);if(o==="symbol")return qu(e);const s=$w.call(e);return s==="[object WeakMap]"?"WeakMap {}":s==="[object WeakSet]"?"WeakSet {}":s==="[object Function]"||s==="[object GeneratorFunction]"?Mu(e,t):s==="[object Symbol]"?qu(e):s==="[object Date]"?Number.isNaN(+e)?"Date { NaN }":jF.call(e):s==="[object Error]"?ju(e):s==="[object RegExp]"?r?bg.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):bg.call(e):e instanceof Error?ju(e):null}i(af,"printBasicValue");function lf(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 Er(e.toJSON(),t,r,n,o,!0);const u=$w.call(e);return u==="[object Arguments]"?a?"[Arguments]":`${c?"":"Arguments "}[${Hi(e,t,r,n,o,Er)}]`:Vw(u)?a?`[${e.constructor.name}]`:`${c||!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${Hi(e,t,r,n,o,Er)}]`:u==="[object Map]"?a?"[Map]":`Map {${xo(e.entries(),t,r,n,o,Er," => ")}}`:u==="[object Set]"?a?"[Set]":`Set {${wl(e.values(),t,r,n,o,Er)}}`:a||Bw(e)?`[${Ci(e)}]`:`${c||!t.printBasicPrototype&&Ci(e)==="Object"?"":`${Ci(e)} `}{${_l(e,t,r,n,o,Er)}}`}i(lf,"printComplexValue");var FF={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:Ci(e);return a?`[${f}]`:`${f} {${xo(Object.entries(p).values(),t,r,n,o,s)}}`}};function Gw(e){return e.serialize!=null}i(Gw,"isNewPlugin");function cf(e,t,r,n,o,s){let a;try{a=Gw(e)?e.serialize(t,r,n,o,s,Er):e.print(t,c=>Er(c,r,n,o,s),c=>{const u=n+r.indent;return u+c.replaceAll(LF,`
|
|
162
|
-
${u}`)},{edgeSpacing:r.spacingOuter,min:r.min,spacing:r.spacingInner},r.colors)}catch(c){throw new Uw(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(cf,"printPlugin");function uf(e,t){for(const r of e)try{if(r.test(t))return r}catch(n){throw new Uw(n.message,n.stack)}return null}i(uf,"findPlugin");function Er(e,t,r,n,o,s){const a=uf(t.plugins,e);if(a!==null)return cf(a,e,t,r,n,o);const c=af(e,t.printFunctionName,t.escapeRegex,t.escapeString);return c!==null?c:lf(e,t,r,n,o,s)}i(Er,"printer");var df={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},Ww=Object.keys(df),Vt={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:df};function Kw(e){for(const t of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(Vt,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(Kw,"validateOptions");function Yw(){return Ww.reduce((e,t)=>{const r=df[t],n=r&&Ue[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(Yw,"getColorsHighlight");function Xw(){return Ww.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}i(Xw,"getColorsEmpty");function pf(e){return e?.printFunctionName??Vt.printFunctionName}i(pf,"getPrintFunctionName");function ff(e){return e?.escapeRegex??Vt.escapeRegex}i(ff,"getEscapeRegex");function mf(e){return e?.escapeString??Vt.escapeString}i(mf,"getEscapeString");function ku(e){return{callToJSON:e?.callToJSON??Vt.callToJSON,colors:e?.highlight?Yw():Xw(),compareKeys:typeof e?.compareKeys=="function"||e?.compareKeys===null?e.compareKeys:Vt.compareKeys,escapeRegex:ff(e),escapeString:mf(e),indent:e?.min?"":Qw(e?.indent??Vt.indent),maxDepth:e?.maxDepth??Vt.maxDepth,maxWidth:e?.maxWidth??Vt.maxWidth,min:e?.min??Vt.min,plugins:e?.plugins??Vt.plugins,printBasicPrototype:e?.printBasicPrototype??!0,printFunctionName:pf(e),spacingInner:e?.min?" ":`
|
|
163
|
-
`,spacingOuter:e?.min?"":`
|
|
164
|
-
`}}i(ku,"getConfig");function Qw(e){return Array.from({length:e+1}).join(" ")}i(Qw,"createIndent");function zt(e,t){if(t&&(Kw(t),t.plugins)){const n=uf(t.plugins,e);if(n!==null)return cf(n,e,ku(t),"",0,[])}const r=af(e,pf(t),ff(t),mf(t));return r!==null?r:lf(e,ku(t),"",0,[])}i(zt,"format");var hf={AsymmetricMatcher:tF,DOMCollection:sF,DOMElement:dF,Immutable:wF,ReactElement:xF,ReactTestComponent:qF,Error:FF},vg={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"]},$F={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},po="…";function Zw(e,t){const r=vg[$F[t]]||vg[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}i(Zw,"colorise");function e_({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=Zw),f}i(e_,"normaliseOptions");function t_(e){return e>="\uD800"&&e<="\uDBFF"}i(t_,"isHighSurrogate");function Or(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&&t_(e[s-1])&&(s=s-1),`${e.slice(0,s)}${r}`}return e}i(Or,"truncate");function Ft(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 h=e[d];t.truncate=s-a.length-(p?0:n.length);const y=c||r(h,t)+(p?"":n),g=a.length+y.length,E=g+u.length;if(p&&g>s&&a.length+u.length<=s||!p&&!f&&E>s||(c=p?"":r(e[d+1],t)+(f?"":n),!p&&f&&E>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(Ft,"inspectList");function r_(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}i(r_,"quoteComplexKey");function fo([e,t],r){return r.truncate-=2,typeof e=="string"?e=r_(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}i(fo,"inspectProperty");function n_(e,t){const r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return"[]";t.truncate-=4;const n=Ft(e,t);t.truncate-=n.length;let o="";return r.length&&(o=Ft(r.map(s=>[s,e[s]]),t,fo)),`[ ${n}${o?`, ${o}`:""} ]`}i(n_,"inspectArray");var BF=i(e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,"getArrayName");function Qt(e,t){const r=BF(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(Or(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=Ft(n.map(a=>[a,e[a]]),t,fo)),`${r}[ ${o}${s?`, ${s}`:""} ]`}i(Qt,"inspectTypedArray");function o_(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${Or(n[1],t.truncate-o.length-1)}`,"date")}i(o_,"inspectDate");function Du(e,t){const r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${Or(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}i(Du,"inspectFunction");function i_([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}i(i_,"inspectMapEntry");function s_(e){const t=[];return e.forEach((r,n)=>{t.push([n,r])}),t}i(s_,"mapToEntries");function a_(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${Ft(s_(e),t,i_)} }`)}i(a_,"inspectMap");var JF=Number.isNaN||(e=>e!==e);function Lu(e,t){return JF(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(Or(String(e),t.truncate),"number")}i(Lu,"inspectNumber");function Fu(e,t){let r=Or(e.toString(),t.truncate-1);return r!==po&&(r+="n"),t.stylize(r,"bigint")}i(Fu,"inspectBigInt");function l_(e,t){const r=e.toString().split("/")[2],n=t.truncate-(2+r.length),o=e.source;return t.stylize(`/${Or(o,n)}/${r}`,"regexp")}i(l_,"inspectRegExp");function c_(e){const t=[];return e.forEach(r=>{t.push(r)}),t}i(c_,"arrayFromSet");function u_(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${Ft(c_(e),t)} }`)}i(u_,"inspectSet");var Eg=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),UF={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},VF=16;function d_(e){return UF[e]||`\\u${`0000${e.charCodeAt(0).toString(VF)}`.slice(-4)}`}i(d_,"escape");function $u(e,t){return Eg.test(e)&&(e=e.replace(Eg,d_)),t.stylize(`'${Or(e,t.truncate-2)}'`,"string")}i($u,"inspectString");function Bu(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}i(Bu,"inspectSymbol");var HF=i(()=>"Promise{…}","getPromiseValue"),zF=HF;function xi(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=Ft(r.map(c=>[c,e[c]]),t,fo),s=Ft(n.map(c=>[c,e[c]]),t,fo);t.seen.pop();let a="";return o&&s&&(a=", "),`{ ${o}${a}${s} }`}i(xi,"inspectObject");var ru=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function p_(e,t){let r="";return ru&&ru in e&&(r=e[ru]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${xi(e,t)}`}i(p_,"inspectClass");function f_(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${Ft(e,t)} ]`)}i(f_,"inspectArguments");var GF=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function m_(e,t){const r=Object.getOwnPropertyNames(e).filter(a=>GF.indexOf(a)===-1),n=e.name;t.truncate-=n.length;let o="";if(typeof e.message=="string"?o=Or(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=Ft(r.map(a=>[a,e[a]]),t,fo);return`${n}${o}${s?` { ${s} }`:""}`}i(m_,"inspectObject");function h_([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}i(h_,"inspectAttribute");function ha(e,t){return Ft(e,t,y_,`
|
|
165
|
-
`)}i(ha,"inspectNodeCollection");function y_(e,t){switch(e.nodeType){case 1:return yf(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}i(y_,"inspectNode");function yf(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+=Ft(r.map(p=>[p,e.getAttribute(p)]),t,h_," ")),t.truncate-=c.length;const u=t.truncate;let d=ha(e.children,t);return d&&d.length>u&&(d=`${po}(${e.children.length})`),`${o}${c}${s}${d}${a}`}i(yf,"inspectHTML");var WF=typeof Symbol=="function"&&typeof Symbol.for=="function",nu=WF?Symbol.for("chai/inspect"):"@@chai/inspect",ou=Symbol.for("nodejs.util.inspect.custom"),Tg=new WeakMap,wg={},_g={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:Lu,Number:Lu,bigint:Fu,BigInt:Fu,string:$u,String:$u,function:Du,Function:Du,symbol:Bu,Symbol:Bu,Array:n_,Date:o_,Map:a_,Set:u_,RegExp:l_,Promise:zF,WeakSet:i((e,t)=>t.stylize("WeakSet{…}","special"),"WeakSet"),WeakMap:i((e,t)=>t.stylize("WeakMap{…}","special"),"WeakMap"),Arguments:f_,Int8Array:Qt,Uint8Array:Qt,Uint8ClampedArray:Qt,Int16Array:Qt,Uint16Array:Qt,Int32Array:Qt,Uint32Array:Qt,Float32Array:Qt,Float64Array:Qt,Generator:i(()=>"","Generator"),DataView:i(()=>"","DataView"),ArrayBuffer:i(()=>"","ArrayBuffer"),Error:m_,HTMLCollection:ha,NodeList:ha},KF=i((e,t,r,n)=>nu in e&&typeof e[nu]=="function"?e[nu](t):ou in e&&typeof e[ou]=="function"?e[ou](t.depth,t,n):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&Tg.has(e.constructor)?Tg.get(e.constructor)(e,t):wg[r]?wg[r](e,t):"","inspectCustom"),YF=Object.prototype.toString;function Ni(e,t={}){const r=e_(t,Ni),{customInspect:n}=r;let o=e===null?"null":typeof e;if(o==="object"&&(o=YF.call(e).slice(8,-1)),o in _g)return _g[o](e,r);if(n&&e){const a=KF(e,r,o,Ni);if(a)return typeof a=="string"?a:Ni(a,r)}const s=e?Object.getPrototypeOf(e):!1;return s===Object.prototype||s===null?xi(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?yf(e,r):"constructor"in e?e.constructor!==Object?p_(e,r):xi(e,r):e===Object(e)?xi(e,r):r.stylize(String(e),o)}i(Ni,"inspect");var{AsymmetricMatcher:XF,DOMCollection:QF,DOMElement:ZF,Immutable:e$,ReactElement:t$,ReactTestComponent:r$}=hf,Sg=[r$,t$,ZF,QF,e$,XF];function vt(e,t=10,{maxLength:r,...n}={}){const o=r??1e4;let s;try{s=zt(e,{maxDepth:t,escapeString:!1,plugins:Sg,...n})}catch{s=zt(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:Sg,...n})}return s.length>=o&&t>1?vt(e,Math.floor(Math.min(t,Number.MAX_SAFE_INTEGER)/2),{maxLength:r,...n}):s}i(vt,"stringify");var n$=/%[sdjifoOc%]/g;function g_(...e){if(typeof e[0]!="string"){const s=[];for(let a=0;a<e.length;a++)s.push(Hn(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(n$,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():Hn(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 Hn(e[r++],{showHidden:!0,showProxy:!0});case"%O":return Hn(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+=` ${Hn(s)}`;return o}i(g_,"format");function Hn(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),Ni(e,t)}i(Hn,"inspect");function gf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}i(gf,"getDefaultExportFromCjs");function Zt(e,t,r){const n=typeof e;if(!r.includes(n))throw new TypeError(`${t} value must be ${r.join(" or ")}, received "${n}"`)}i(Zt,"assertTypes");function Ii(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}i(Ii,"isObject");function b_(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}i(b_,"isFinalObj");function Gi(e){return Object.prototype.toString.apply(e).slice(8,-1)}i(Gi,"getType");function v_(e,t){const r=typeof t=="function"?t:n=>t.add(n);Object.getOwnPropertyNames(e).forEach(r),Object.getOwnPropertySymbols(e).forEach(r)}i(v_,"collectOwnProperties");function bf(e){const t=new Set;return b_(e)?[]:(v_(e,t),Array.from(t))}i(bf,"getOwnProperties");var E_={forceWritable:!1};function Ju(e,t=E_){return ya(e,new WeakMap,t)}i(Ju,"deepClone");function ya(e,t,r=E_){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]=ya(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=bf(e);for(const a of s){const c=Object.getOwnPropertyDescriptor(e,a);if(!c)continue;const u=ya(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(ya,"clone");function T_(){}i(T_,"noop");var gt=-1,lt=1,Je=0,w_=class{0;1;constructor(t,r){this[0]=t,this[1]=r}};i(w_,"Diff");var Fe=w_;function __(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(__,"diff_commonPrefix");function vf(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(vf,"diff_commonSuffix");function Uu(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(Uu,"diff_commonOverlap_");function S_(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]===Je?(r[n++]=s,a=u,c=d,u=0,d=0,o=e[s][1]):(e[s][0]===lt?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(gt,o)),e[r[n-1]+1][0]=lt,n--,n--,s=n>0?r[n-1]:-1,a=0,c=0,u=0,d=0,o=null,t=!0)),s++;for(t&&Ef(e),P_(e),s=1;s<e.length;){if(e[s-1][0]===gt&&e[s][0]===lt){const p=e[s-1][1],f=e[s][1],h=Uu(p,f),y=Uu(f,p);h>=y?(h>=p.length/2||h>=f.length/2)&&(e.splice(s,0,new Fe(Je,f.substring(0,h))),e[s-1][1]=p.substring(0,p.length-h),e[s+1][1]=f.substring(h),s++):(y>=p.length/2||y>=f.length/2)&&(e.splice(s,0,new Fe(Je,p.substring(0,y))),e[s-1][0]=lt,e[s-1][1]=f.substring(0,f.length-y),e[s+1][0]=gt,e[s+1][1]=p.substring(y),s++),s++}s++}}i(S_,"diff_cleanupSemantic");var Pg=/[^a-z0-9]/i,Ag=/\s/,Rg=/[\r\n]/,o$=/\n\r?\n$/,i$=/^\r?\n\r?\n/;function P_(e){let t=1;for(;t<e.length-1;){if(e[t-1][0]===Je&&e[t+1][0]===Je){let r=e[t-1][1],n=e[t][1],o=e[t+1][1];const s=vf(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=vi(r,n)+vi(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=vi(r,n)+vi(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(P_,"diff_cleanupSemanticLossless");function Ef(e){e.push(new Fe(Je,""));let t=0,r=0,n=0,o="",s="",a;for(;t<e.length;)switch(e[t][0]){case lt:n++,s+=e[t][1],t++;break;case gt:r++,o+=e[t][1],t++;break;case Je:r+n>1?(r!==0&&n!==0&&(a=__(s,o),a!==0&&(t-r-n>0&&e[t-r-n-1][0]===Je?e[t-r-n-1][1]+=s.substring(0,a):(e.splice(0,0,new Fe(Je,s.substring(0,a))),t++),s=s.substring(a),o=o.substring(a)),a=vf(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(gt,o)),t++),s.length&&(e.splice(t,0,new Fe(lt,s)),t++),t++):t!==0&&e[t-1][0]===Je?(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]===Je&&e[t+1][0]===Je&&(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&&Ef(e)}i(Ef,"diff_cleanupMerge");function vi(e,t){if(!e||!t)return 6;const r=e.charAt(e.length-1),n=t.charAt(0),o=r.match(Pg),s=n.match(Pg),a=o&&r.match(Ag),c=s&&n.match(Ag),u=a&&r.match(Rg),d=c&&n.match(Rg),p=u&&e.match(o$),f=d&&t.match(i$);return p||f?5:u||d?4:o&&!a&&c?3:a||c?2:o||s?1:0}i(vi,"diff_cleanupSemanticScore_");var A_="Compared values have no visual difference.",s$="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",Bs={},Og;function R_(){if(Og)return Bs;Og=1,Object.defineProperty(Bs,"__esModule",{value:!0}),Bs.default=h;const e="diff-sequences",t=0,r=i((y,g,E,T,v)=>{let _=0;for(;y<g&&E<T&&v(y,E);)y+=1,E+=1,_+=1;return _},"countCommonItemsF"),n=i((y,g,E,T,v)=>{let _=0;for(;y<=g&&E<=T&&v(g,T);)g-=1,T-=1,_+=1;return _},"countCommonItemsR"),o=i((y,g,E,T,v,_,R)=>{let N=0,j=-y,C=_[N],P=C;_[N]+=r(C+1,g,T+C-j+1,E,v);const w=y<R?y:R;for(N+=1,j+=2;N<=w;N+=1,j+=2){if(N!==y&&P<_[N])C=_[N];else if(C=P+1,g<=C)return N-1;P=_[N],_[N]=C+r(C+1,g,T+C-j+1,E,v)}return R},"extendPathsF"),s=i((y,g,E,T,v,_,R)=>{let N=0,j=y,C=_[N],P=C;_[N]-=n(g,C-1,E,T+C-j-1,v);const w=y<R?y:R;for(N+=1,j-=2;N<=w;N+=1,j-=2){if(N!==y&&_[N]<P)C=_[N];else if(C=P-1,C<g)return N-1;P=_[N],_[N]=C-n(g,C-1,E,T+C-j-1,v)}return R},"extendPathsR"),a=i((y,g,E,T,v,_,R,N,j,C,P)=>{const w=T-g,S=E-g,I=v-T-S,V=-I-(y-1),H=-I+(y-1);let A=t;const L=y<N?y:N;for(let $=0,D=-y;$<=L;$+=1,D+=2){const K=$===0||$!==y&&A<R[$],X=K?R[$]:A,ie=K?X:X+1,se=w+ie-D,W=r(ie+1,E,se+1,v,_),ae=ie+W;if(A=R[$],R[$]=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,T,ue,_),Re=X-ee,Oe=ue-ee,ze=Re+1,Ye=Oe+1;P.nChangePreceding=y-1,y-1===ze+Ye-g-T?(P.aEndPreceding=g,P.bEndPreceding=T):(P.aEndPreceding=ze,P.bEndPreceding=Ye),P.nCommonPreceding=ee,ee!==0&&(P.aCommonPreceding=ze,P.bCommonPreceding=Ye),P.nCommonFollowing=W,W!==0&&(P.aCommonFollowing=ie+1,P.bCommonFollowing=se+1);const J=ae+1,Q=se+W+1;return P.nChangeFollowing=y-1,y-1===E+v-J-Q?(P.aStartFollowing=E,P.bStartFollowing=v):(P.aStartFollowing=J,P.bStartFollowing=Q),!0}}}return!1},"extendOverlappablePathsF"),c=i((y,g,E,T,v,_,R,N,j,C,P)=>{const w=v-E,S=E-g,I=v-T-S,V=I-y,H=I+y;let A=t;const L=y<C?y:C;for(let $=0,D=y;$<=L;$+=1,D-=2){const K=$===0||$!==y&&j[$]<A,X=K?j[$]:A,ie=K?X:X-1,se=w+ie-D,W=n(g,ie-1,T,se-1,_),ae=ie-W;if(A=j[$],j[$]=ae,V<=D&&D<=H){const be=(y+(D-I))/2;if(be<=N&&ae-1<=R[be]){const ue=se-W;if(P.nChangePreceding=y,y===ae+ue-g-T?(P.aEndPreceding=g,P.bEndPreceding=T):(P.aEndPreceding=ae,P.bEndPreceding=ue),P.nCommonPreceding=W,W!==0&&(P.aCommonPreceding=ae,P.bCommonPreceding=ue),P.nChangeFollowing=y-1,y===1)P.nCommonFollowing=0,P.aStartFollowing=E,P.bStartFollowing=v;else{const ee=w+X-(K?D-1:D+1),Re=r(X,E,ee,v,_);P.nCommonFollowing=Re,Re!==0&&(P.aCommonFollowing=X,P.bCommonFollowing=ee);const Oe=X+Re,ze=ee+Re;y-1===E+v-Oe-ze?(P.aStartFollowing=E,P.bStartFollowing=v):(P.aStartFollowing=Oe,P.bStartFollowing=ze)}return!0}}}return!1},"extendOverlappablePathsR"),u=i((y,g,E,T,v,_,R,N,j)=>{const C=T-g,P=v-E,w=E-g,S=v-T,k=S-w;let I=w,V=w;if(R[0]=g-1,N[0]=E,k%2===0){const H=(y||k)/2,A=(w+S)/2;for(let L=1;L<=A;L+=1)if(I=o(L,E,v,C,_,R,I),L<H)V=s(L,g,T,P,_,N,V);else if(c(L,g,E,T,v,_,R,I,N,V,j))return}else{const H=((y||k)+1)/2,A=(w+S+1)/2;let L=1;for(I=o(L,E,v,C,_,R,I),L+=1;L<=A;L+=1)if(V=s(L-1,g,T,P,_,N,V),L<H)I=o(L,E,v,C,_,R,I);else if(a(L,g,E,T,v,_,R,I,N,V,j))return}throw new Error(`${e}: no overlap aStart=${g} aEnd=${E} bStart=${T} bEnd=${v}`)},"divide"),d=i((y,g,E,T,v,_,R,N,j,C)=>{if(v-T<E-g){if(_=!_,_&&R.length===1){const{foundSubsequence:ae,isCommon:be}=R[0];R[1]={foundSubsequence:i((ue,ee,Re)=>{ae(ue,Re,ee)},"foundSubsequence"),isCommon:i((ue,ee)=>be(ee,ue),"isCommon")}}const se=g,W=E;g=T,E=v,T=se,v=W}const{foundSubsequence:P,isCommon:w}=R[_?1:0];u(y,g,E,T,v,w,N,j,C);const{nChangePreceding:S,aEndPreceding:k,bEndPreceding:I,nCommonPreceding:V,aCommonPreceding:H,bCommonPreceding:A,nCommonFollowing:L,aCommonFollowing:$,bCommonFollowing:D,nChangeFollowing:K,aStartFollowing:X,bStartFollowing:ie}=C;g<k&&T<I&&d(S,g,k,T,I,_,R,N,j,C),V!==0&&P(V,H,A),L!==0&&P(L,$,D),X<E&&ie<v&&d(K,X,E,ie,v,_,R,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 E=typeof g;if(E!=="function")throw new TypeError(`${e}: ${y} typeof ${E} is not a function`)},"validateCallback");function h(y,g,E,T){p("aLength",y),p("bLength",g),f("isCommon",E),f("foundSubsequence",T);const v=r(0,y,0,g,E);if(v!==0&&T(v,0,0),y!==v||g!==v){const _=v,R=v,N=n(_,y-1,R,g-1,E),j=y-N,C=g-N,P=v+N;y!==P&&g!==P&&d(0,_,j,R,C,!1,[{foundSubsequence:T,isCommon:E}],[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&&T(N,j,C)}}return i(h,"diffSequence"),Bs}i(R_,"requireBuild");var a$=R_(),O_=gf(a$);function C_(e,t){return e.replace(/\s+$/,r=>t(r))}i(C_,"formatTrailingSpaces");function Cl(e,t,r,n,o,s){return e.length!==0?r(`${n} ${C_(e,o)}`):n!==" "?r(n):t&&s.length!==0?r(`${n} ${s}`):""}i(Cl,"printDiffLine");function Tf(e,t,{aColor:r,aIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:s}){return Cl(e,t,r,n,o,s)}i(Tf,"printDeleteLine");function wf(e,t,{bColor:r,bIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:s}){return Cl(e,t,r,n,o,s)}i(wf,"printInsertLine");function _f(e,t,{commonColor:r,commonIndicator:n,commonLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:s}){return Cl(e,t,r,n,o,s)}i(_f,"printCommonLine");function Vu(e,t,r,n,{patchColor:o}){return o(`@@ -${e+1},${t-e} +${r+1},${n-r} @@`)}i(Vu,"createPatchMark");function x_(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]===Je;)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]!==Je;)u+=1}const d=c!==0||a;c!==0?s+=c+1:a&&(s+=1);const p=s-1,f=[];let h=0;d&&f.push("");let y=0,g=0,E=0,T=0;const v=i(N=>{const j=f.length;f.push(_f(N,j===0||j===p,t)),E+=1,T+=1},"pushCommonLine"),_=i(N=>{const j=f.length;f.push(Tf(N,j===0||j===p,t)),E+=1},"pushDeleteLine"),R=i(N=>{const j=f.length;f.push(wf(N,j===0||j===p,t)),T+=1},"pushInsertLine");for(u=0;u!==r;){let N=u;for(;u!==r&&e[u][0]===Je;)u+=1;if(N!==u)if(N===0){u>n&&(N=u-n,y=N,g=N,E=y,T=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[h]=Vu(y,E,g,T,t),h=f.length,f.push("");const P=j-o;y=E+P,g=T+P,E=y,T=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]===gt;)_(e[u][1]),u+=1;for(;u!==r&&e[u][0]===lt;)R(e[u][1]),u+=1}return d&&(f[h]=Vu(y,E,g,T,t)),f.join(`
|
|
166
|
-
`)}i(x_,"joinAlignedDiffsNoExpand");function N_(e,t){return e.map((r,n,o)=>{const s=r[1],a=n===0||n===o.length-1;switch(r[0]){case gt:return Tf(s,a,t);case lt:return wf(s,a,t);default:return _f(s,a,t)}}).join(`
|
|
167
|
-
`)}i(N_,"joinAlignedDiffsExpand");var iu=i(e=>e,"noColor"),I_=5,l$=0;function M_(){return{aAnnotation:"Expected",aColor:Ue.green,aIndicator:"-",bAnnotation:"Received",bColor:Ue.red,bIndicator:"+",changeColor:Ue.inverse,changeLineTrailingSpaceColor:iu,commonColor:Ue.dim,commonIndicator:" ",commonLineTrailingSpaceColor:iu,compareKeys:void 0,contextLines:I_,emptyFirstOrLastLinePlaceholder:"",expand:!1,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:Ue.yellow,printBasicPrototype:!1,truncateThreshold:l$,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:iu}}i(M_,"getDefaultOptions");function q_(e){return e&&typeof e=="function"?e:void 0}i(q_,"getCompareKeys");function j_(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0?e:I_}i(j_,"getContextLines");function Xr(e={}){return{...M_(),...e,compareKeys:q_(e.compareKeys),contextLines:j_(e.contextLines)}}i(Xr,"normalizeDiffOptions");function dn(e){return e.length===1&&e[0].length===0}i(dn,"isEmptyString");function k_(e){let t=0,r=0;return e.forEach(n=>{switch(n[0]){case gt:t+=1;break;case lt:r+=1;break}}),{a:t,b:r}}i(k_,"countChanges");function D_({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),E=n.length-e.length,T=" ".repeat(Math.max(0,E)),v=" ".repeat(Math.max(0,-E)),_=g.length-y.length,R=" ".repeat(Math.max(0,_)),N=" ".repeat(Math.max(0,-_));d=`${T} ${r} ${R}${y}`,p=`${v} ${s} ${N}${g}`}const f=`${r} ${e}${d}`,h=`${s} ${n}${p}`;return`${t(f)}
|
|
168
|
-
${o(h)}
|
|
169
|
-
|
|
170
|
-
`}i(D_,"printAnnotation");function xl(e,t,r){return D_(r,k_(e))+(r.expand?N_(e,r):x_(e,r))+(t?r.truncateAnnotationColor(`
|
|
171
|
-
${r.truncateAnnotation}`):"")}i(xl,"printDiffLines");function vs(e,t,r){const n=Xr(r),[o,s]=Sf(dn(e)?[]:e,dn(t)?[]:t,n);return xl(o,s,n)}i(vs,"diffLinesUnified");function L_(e,t,r,n,o){if(dn(e)&&dn(r)&&(e=[],r=[]),dn(t)&&dn(n)&&(t=[],n=[]),e.length!==r.length||t.length!==n.length)return vs(e,t,o);const[s,a]=Sf(r,n,o);let c=0,u=0;return s.forEach(d=>{switch(d[0]){case gt:d[1]=e[c],c+=1;break;case lt:d[1]=t[u],u+=1;break;default:d[1]=t[u],c+=1,u+=1}}),xl(s,a,Xr(o))}i(L_,"diffLinesUnified2");function Sf(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(O_(s,a,u,i((y,g,E)=>{for(;p!==g;p+=1)d.push(new Fe(gt,e[p]));for(;f!==E;f+=1)d.push(new Fe(lt,t[f]));for(;y!==0;y-=1,p+=1,f+=1)d.push(new Fe(Je,t[f]))},"foundSubsequence"));p!==s;p+=1)d.push(new Fe(gt,e[p]));for(;f!==a;f+=1)d.push(new Fe(lt,t[f]));return[d,c]}i(Sf,"diffLinesRaw");function Hu(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(Hu,"getType");function zu(e){return e.includes(`\r
|
|
172
|
-
`)?`\r
|
|
173
|
-
`:`
|
|
174
|
-
`}i(zu,"getNewLineSymbol");function F_(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
|
-
`),E=zu(e),T=zu(t),v=y?`${e.split(E,o).join(E)}
|
|
177
|
-
`:e,_=g?`${t.split(T,o).join(T)}
|
|
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 O_(s,a,u,i((y,g,E)=>{d!==g&&f.push(new Fe(gt,e.slice(d,g))),p!==E&&f.push(new Fe(lt,t.slice(p,E))),d=g+y,p=E+y,f.push(new Fe(Je,t.slice(E,p)))},"foundSubsequence")),d!==s&&f.push(new Fe(gt,e.slice(d))),p!==a&&f.push(new Fe(lt,t.slice(p))),[f,c]}i(F_,"diffStrings");function $_(e,t,r){return t.reduce((n,o)=>n+(o[0]===Je?o[1]:o[0]===e&&o[1].length!==0?r(o[1]):""),"")}i($_,"concatenateRelevantDiffs");var B_=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,$_(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(B_,"ChangeBuffer");var Cg=B_,J_=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(J_,"CommonBuffer");var c$=J_;function U_(e,t){const r=new Cg(gt,t),n=new Cg(lt,t),o=new c$(r,n);return e.forEach(s=>{switch(s[0]){case gt:r.align(s);break;case lt:n.align(s);break;default:o.align(s)}}),o.getLines()}i(U_,"getAlignedDiffs");function V_(e,t){if(t){const r=e.length-1;return e.some((n,o)=>n[0]===Je&&(o!==r||n[1]!==`
|
|
183
|
-
`))}return e.some(r=>r[0]===Je)}i(V_,"hasCommonDiff");function H_(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(V_(o,n)){const a=Xr(r),c=U_(o,a.changeColor);return xl(c,s,a)}}return vs(e.split(`
|
|
188
|
-
`),t.split(`
|
|
189
|
-
`),r)}i(H_,"diffStringsUnified");function Pf(e,t,r,n){const[o,s]=F_(e,t,n);return r&&S_(o),[o,s]}i(Pf,"diffStringsRaw");function ga(e,t){const{commonColor:r}=Xr(t);return r(e)}i(ga,"getCommonMessage");var{AsymmetricMatcher:u$,DOMCollection:d$,DOMElement:p$,Immutable:f$,ReactElement:m$,ReactTestComponent:h$}=hf,z_=[h$,m$,p$,d$,f$,u$,hf.Error],Gu={maxDepth:20,plugins:z_},G_={callToJSON:!1,maxDepth:8,plugins:z_};function Ln(e,t,r){if(Object.is(e,t))return"";const n=Hu(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!==Hu(t)){let a=function(R){return R.length<=T?R:`${R.slice(0,T)}...`};i(a,"truncate");const{aAnnotation:c,aColor:u,aIndicator:d,bAnnotation:p,bColor:f,bIndicator:h}=Xr(r),y=ba(G_,r);let g=zt(e,y),E=zt(t,y);const T=1e5;g=a(g),E=a(E);const v=`${u(`${d} ${c}:`)}
|
|
190
|
-
${g}`,_=`${f(`${h} ${p}:`)}
|
|
191
|
-
${E}`;return`${v}
|
|
192
|
-
|
|
193
|
-
${_}`}if(!s)switch(n){case"string":return vs(e.split(`
|
|
194
|
-
`),t.split(`
|
|
195
|
-
`),r);case"boolean":case"number":return W_(e,t,r);case"map":return Ys(Wu(e),Wu(t),r);case"set":return Ys(Ku(e),Ku(t),r);default:return Ys(e,t,r)}}i(Ln,"diff");function W_(e,t,r){const n=zt(e,Gu),o=zt(t,Gu);return n===o?"":vs(n.split(`
|
|
196
|
-
`),o.split(`
|
|
197
|
-
`),r)}i(W_,"comparePrimitive");function Wu(e){return new Map(Array.from(e.entries()).sort())}i(Wu,"sortMap");function Ku(e){return new Set(Array.from(e.values()).sort())}i(Ku,"sortSet");function Ys(e,t,r){let n,o=!1;try{const a=ba(Gu,r);n=Yu(e,t,a,r)}catch{o=!0}const s=ga(A_,r);if(n===void 0||n===s){const a=ba(G_,r);n=Yu(e,t,a,r),n!==s&&!o&&(n=`${ga(s$,r)}
|
|
198
|
-
|
|
199
|
-
${n}`)}return n}i(Ys,"compareObjects");function ba(e,t){const{compareKeys:r,printBasicPrototype:n,maxDepth:o}=Xr(t);return{...e,compareKeys:r,printBasicPrototype:n,maxDepth:o??e.maxDepth}}i(ba,"getFormatOptions");function Yu(e,t,r,n){const o={...r,indent:0},s=zt(e,o),a=zt(t,o);if(s===a)return ga(A_,n);{const c=zt(e,r),u=zt(t,r);return L_(c.split(`
|
|
200
|
-
`),u.split(`
|
|
201
|
-
`),s.split(`
|
|
202
|
-
`),a.split(`
|
|
203
|
-
`),n)}}i(Yu,"getObjectsDifference");var xg=2e4;function Xu(e){return Gi(e)==="Object"&&typeof e.asymmetricMatch=="function"}i(Xu,"isAsymmetricMatcher");function Qu(e,t){const r=Gi(e),n=Gi(t);return r===n&&(r==="Object"||r==="Array")}i(Qu,"isReplaceable");function Af(e,t,r){const{aAnnotation:n,bAnnotation:o}=Xr(r);if(typeof t=="string"&&typeof e=="string"&&t.length>0&&e.length>0&&t.length<=xg&&e.length<=xg&&t!==e){if(t.includes(`
|
|
204
|
-
`)||e.includes(`
|
|
205
|
-
`))return H_(t,e,r);const[p]=Pf(t,e,!0),f=p.some(E=>E[0]===Je),h=K_(n,o),y=h(n)+X_(Zu(p,gt,f)),g=h(o)+Y_(Zu(p,lt,f));return`${y}
|
|
206
|
-
${g}`}const s=Ju(t,{forceWritable:!0}),a=Ju(e,{forceWritable:!0}),{replacedExpected:c,replacedActual:u}=Rf(a,s);return Ln(c,u,r)}i(Af,"printDiffOrStringify");function Rf(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}):Qu(e,t)?r.has(e)||n.has(t)?{replacedActual:e,replacedExpected:t}:(r.add(e),n.add(t),bf(t).forEach(o=>{const s=t[o],a=e[o];if(Xu(s))s.asymmetricMatch(a)&&(e[o]=s);else if(Xu(a))a.asymmetricMatch(s)&&(t[o]=a);else if(Qu(a,s)){const c=Rf(a,s,r,n);e[o]=c.replacedActual,t[o]=c.replacedExpected}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}i(Rf,"replaceAsymmetricMatcher");function K_(...e){const t=e.reduce((r,n)=>n.length>r?n.length:r,0);return r=>`${r}: ${" ".repeat(t-r.length)}`}i(K_,"getLabelPrinter");var y$="·";function Of(e){return e.replace(/\s+$/gm,t=>y$.repeat(t.length))}i(Of,"replaceTrailingSpaces");function Y_(e){return Ue.red(Of(vt(e)))}i(Y_,"printReceived");function X_(e){return Ue.green(Of(vt(e)))}i(X_,"printExpected");function Zu(e,t,r){return e.reduce((n,o)=>n+(o[0]===Je?o[1]:o[0]===t?r?Ue.inverse(o[1]):o[1]:""),"")}i(Zu,"getCommonAndChangedSubstrings");var g$="@@__IMMUTABLE_RECORD__@@",b$="@@__IMMUTABLE_ITERABLE__@@";function Q_(e){return e&&(e[b$]||e[g$])}i(Q_,"isImmutable");var v$=Object.getPrototypeOf({});function ed(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e=="string"?`<unserializable>: ${e}`:"<unserializable>"}i(ed,"getUnserializableMessage");function Tr(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"&&Ei(()=>r.message??(r.message=e.message)),typeof e.stack=="string"&&Ei(()=>r.stack??(r.stack=e.stack)),typeof e.name=="string"&&Ei(()=>r.name??(r.name=e.name)),e.cause!=null&&Ei(()=>r.cause??(r.cause=Tr(e.cause,t)))),Tr(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(Q_(e))return Tr(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()} ${g_(e.sample)}`;if(typeof e.toJSON=="function")return Tr(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]=Tr(n,t)}catch(s){r[o]=ed(s)}}),r}else{const r=Object.create(null);t.set(e,r);let n=e;for(;n&&n!==v$;)Object.getOwnPropertyNames(n).forEach(o=>{if(!(o in r))try{r[o]=Tr(e[o],t)}catch(s){delete r[o],r[o]=ed(s)}}),n=Object.getPrototypeOf(n);return r}}i(Tr,"serializeValue");function Ei(e){try{return e()}catch{}}i(Ei,"safe");function Z_(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}i(Z_,"normalizeErrorMessage");function Nl(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=Af(n.actual,n.expected,{...t,...n.diffOptions})),"expected"in n&&typeof n.expected!="string"&&(n.expected=vt(n.expected,10)),"actual"in n&&typeof n.actual!="string"&&(n.actual=vt(n.actual,10));try{typeof n.message=="string"&&(n.message=Z_(n.message))}catch{}try{!r.has(n)&&typeof n.cause=="object"&&(r.add(n),n.cause=Nl(n.cause,t,r))}catch{}try{return Tr(n)}catch(o){return Tr(new Error(`Failed to fully serialize error: ${o?.message}
|
|
207
|
-
Inner error message: ${n?.message}`))}}i(Nl,"processError");var mr={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"},su=globalThis.__STORYBOOK_ADDONS_PREVIEW,E$=new Error("This function ran after the play function completed. Did you forget to `await` it?"),Ng=i(e=>Object.prototype.toString.call(e)==="[object Object]","isObject"),T$=i(e=>Object.prototype.toString.call(e)==="[object Module]","isModule"),w$=i(e=>{if(!Ng(e)&&!T$(e))return!1;if(e.constructor===void 0)return!0;const t=e.constructor.prototype;return!!Ng(t)},"isInstrumentable"),_$=i(e=>{try{return new e.constructor}catch{return{}}},"construct"),au=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"),Ig=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"),eS=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 h=this.getState(u);this.setState(u,{...au(),...Ig(h,f),renderPhase:d||h.renderPhase,shadowCalls:f?h.shadowCalls:[],chainedCallIds:f?h.chainedCallIds:new Set,playUntil:f?h.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:h})=>({calls:[],shadowCalls:h.map(y=>({...y,status:"waiting"})),isDebugging:!0}));const f=this.getLog(d);this.setState(d,({shadowCalls:h})=>{if(p||!f.length)return{playUntil:p};const y=h.findIndex(g=>g.id===f[0].callId);return{playUntil:h.slice(0,y).filter(g=>g.interceptable&&!g.ancestors?.length).slice(-1)[0]?.id}}),u.emit(fa,{storyId:d,isDebugging:!0})},"start"),n=i(u=>({storyId:d})=>{const p=this.getLog(d).filter(h=>!h.ancestors?.length),f=p.reduceRight((h,y,g)=>h>=0||y.status==="waiting"?h:g,-1);r(u)({storyId:d,playUntil:p[f-1]?.callId})},"back"),o=i(u=>({storyId:d,callId:p})=>{const{calls:f,shadowCalls:h,resolvers:y}=this.getState(d),g=f.find(({id:T})=>T===p),E=h.find(({id:T})=>T===p);if(!g&&E&&Object.values(y).length>0){const T=this.getLog(d).find(v=>v.status==="waiting")?.callId;E.id!==T&&this.setState(d,{playUntil:E.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(h=>h.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");su&&su.ready().then(()=>{this.channel=su.getChannel(),this.channel.on(fa,t),this.channel.on(wn,c),this.channel.on(Np,()=>{this.initialized?this.cleanup():this.initialized=!0}),this.channel.on(mr.START,r(this.channel)),this.channel.on(mr.BACK,n(this.channel)),this.channel.on(mr.GOTO,o(this.channel)),this.channel.on(mr.NEXT,s(this.channel)),this.channel.on(mr.END,a)})}getState(t){return this.state[t]||au()}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=Ig(s);return a&&(n[o]=Object.assign(au(),a)),n},{});const r={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:[]};this.channel?.emit(mr.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(!w$(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=tS(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:_$(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:h=!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:h},T=(y&&!u.length?this.intercept:this.invoke).call(this,r,n,g,s);return this.instrument(T,{...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,h,y)=>{if(y.includes(f))return"[Circular]";if(y=[...y,f],h>c)return"...";if(s.has(f))return s.get(f);if(f instanceof Array)return f.map(g=>u(g,++h,y));if(f instanceof Date)return{__date__:{value:f.toISOString()}};if(f instanceof Error){const{name:g,message:E,stack:T}=f;return{__error__:{name:g,message:E,stack:T}}}if(f instanceof RegExp){const{flags:g,source:E}=f;return{__regexp__:{flags:g,source:E}}}if(f instanceof te.window?.HTMLElement){const{prefix:g,localName:E,id:T,classList:v,innerText:_}=f,R=Array.from(v);return{__element__:{prefix:g,localName:E,id:T,classNames:R,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,E])=>[g,u(E,++h,y)])):f},"serializeValues"),d={...n,args:n.args.map(f=>u(f,0,[]))};n.path.forEach(f=>{f?.__callId__&&this.setState(n.storyId,({chainedCallIds:h})=>({chainedCallIds:new Set(Array.from(h).concat(f.__callId__))}))});const p=i(f=>{if(f instanceof Error){const{name:h,message:y,stack:g,callId:E=n.id}=f,{showDiff:T=void 0,diff:v=void 0,actual:_=void 0,expected:R=void 0}=f.name==="AssertionError"?Nl(f):f,N={name:h,message:y,stack:g,callId:E,showDiff:T,diff:v,actual:_,expected:R};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 E$;const h=(o.getArgs?o.getArgs(n,this.getState(n.storyId)):n.args).map(g=>typeof g!="function"||rS(g)||Object.keys(g).length?g:(...E)=>{const{cursor:T,ancestors:v}=this.getState(n.storyId);this.setState(n.storyId,{cursor:0,ancestors:[...v,n.id]});const _=i(()=>this.setState(n.storyId,{cursor:T,ancestors:v}),"restore");let R=!1;try{const N=g(...E);return N instanceof Promise?(R=!0,N.finally(_)):N}finally{R||_()}}),y=t.apply(r,h);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(mr.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 h={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:s};this.channel?.emit(mr.SYNC,h);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(mr.SYNC,p)},"synchronize");this.setState(t,({syncTimeout:n})=>(clearTimeout(n),{syncTimeout:setTimeout(r,0)}))}};i(eS,"Instrumenter");var S$=eS;function No(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 S$),(te.window?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(e,t))}catch(r){return Ve.warn(r),e}}i(No,"instrument");function tS(e,t){let r=e;for(;r!=null;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}i(tS,"getPropertyDescriptor");function rS(e){if(typeof e!="function")return!1;const t=Object.getOwnPropertyDescriptor(e,"prototype");return t?!t.writable:!1}i(rS,"isClass");var nS=Object.defineProperty,z=i((e,t)=>nS(e,"name",{value:t,configurable:!0}),"__name"),Cf=i((e,t)=>{for(var r in t)nS(e,r,{get:t[r],enumerable:!0})},"__export"),tr={};Cf(tr,{addChainableMethod:i(()=>Ul,"addChainableMethod"),addLengthGuard:i(()=>qo,"addLengthGuard"),addMethod:i(()=>$l,"addMethod"),addProperty:i(()=>Fl,"addProperty"),checkError:i(()=>Pt,"checkError"),compareByInspect:i(()=>Xi,"compareByInspect"),eql:i(()=>iS,"eql"),expectTypes:i(()=>kf,"expectTypes"),flag:i(()=>me,"flag"),getActual:i(()=>Ts,"getActual"),getMessage:i(()=>ql,"getMessage"),getName:i(()=>_s,"getName"),getOperator:i(()=>Gl,"getOperator"),getOwnEnumerableProperties:i(()=>zl,"getOwnEnumerableProperties"),getOwnEnumerablePropertySymbols:i(()=>Hl,"getOwnEnumerablePropertySymbols"),getPathInfo:i(()=>Ll,"getPathInfo"),hasProperty:i(()=>ws,"hasProperty"),inspect:i(()=>we,"inspect"),isNaN:i(()=>Ma,"isNaN"),isNumeric:i(()=>nt,"isNumeric"),isProxyEnabled:i(()=>Mo,"isProxyEnabled"),isRegExp:i(()=>Qi,"isRegExp"),objDisplay:i(()=>Fr,"objDisplay"),overwriteChainableMethod:i(()=>Vl,"overwriteChainableMethod"),overwriteMethod:i(()=>Jl,"overwriteMethod"),overwriteProperty:i(()=>Bl,"overwriteProperty"),proxify:i(()=>Fn,"proxify"),test:i(()=>Il,"test"),transferFlags:i(()=>$t,"transferFlags"),type:i(()=>xe,"type")});var Pt={};Cf(Pt,{compatibleConstructor:i(()=>If,"compatibleConstructor"),compatibleInstance:i(()=>Nf,"compatibleInstance"),compatibleMessage:i(()=>Mf,"compatibleMessage"),getConstructorName:i(()=>qf,"getConstructorName"),getMessage:i(()=>jf,"getMessage")});function Es(e){return e instanceof Error||Object.prototype.toString.call(e)==="[object Error]"}i(Es,"isErrorInstance");z(Es,"isErrorInstance");function xf(e){return Object.prototype.toString.call(e)==="[object RegExp]"}i(xf,"isRegExp");z(xf,"isRegExp");function Nf(e,t){return Es(t)&&e===t}i(Nf,"compatibleInstance");z(Nf,"compatibleInstance");function If(e,t){return Es(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(If,"compatibleConstructor");z(If,"compatibleConstructor");function Mf(e,t){const r=typeof e=="string"?e:e.message;return xf(t)?t.test(r):typeof t=="string"?r.indexOf(t)!==-1:!1}i(Mf,"compatibleMessage");z(Mf,"compatibleMessage");function qf(e){let t=e;return Es(e)?t=e.constructor.name:typeof e=="function"&&(t=e.name,t===""&&(t=new e().name||t)),t}i(qf,"getConstructorName");z(qf,"getConstructorName");function jf(e){let t="";return e&&e.message?t=e.message:typeof e=="string"&&(t=e),t}i(jf,"getMessage");z(jf,"getMessage");function me(e,t,r){let n=e.__flags||(e.__flags=Object.create(null));if(arguments.length===3)n[t]=r;else return n[t]}i(me,"flag");z(me,"flag");function Il(e,t){let r=me(e,"negate"),n=t[0];return r?!n:n}i(Il,"test");z(Il,"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");z(xe,"type");var P$="captureStackTrace"in Error,mi,Ae=(mi=class extends Error{message;get name(){return"AssertionError"}get ok(){return!1}constructor(e="Unspecified AssertionError",t,r){super(e),this.message=e,P$&&Error.captureStackTrace(this,r||mi);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(mi,"_AssertionError"),z(mi,"AssertionError"),mi);function kf(e,t){let r=me(e,"message"),n=me(e,"ssfi");r=r?r+": ":"",e=me(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 Ae(r+"object tested must be "+o+", but "+s+" given",void 0,n)}i(kf,"expectTypes");z(kf,"expectTypes");function Ts(e,t){return t.length>4?t[4]:e._obj}i(Ts,"getActual");z(Ts,"getActual");var Mg={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"]},A$={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},mo="…";function Df(e,t){const r=Mg[A$[t]]||Mg[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}i(Df,"colorise");z(Df,"colorise");function Lf({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=Df),f}i(Lf,"normaliseOptions");z(Lf,"normaliseOptions");function Ff(e){return e>="\uD800"&&e<="\uDBFF"}i(Ff,"isHighSurrogate");z(Ff,"isHighSurrogate");function ar(e,t,r=mo){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&&Ff(e[s-1])&&(s=s-1),`${e.slice(0,s)}${r}`}return e}i(ar,"truncate");z(ar,"truncate");function xt(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=`${mo}(${e.length-d})`;const h=e[d];t.truncate=s-a.length-(p?0:n.length);const y=c||r(h,t)+(p?"":n),g=a.length+y.length,E=g+u.length;if(p&&g>s&&a.length+u.length<=s||!p&&!f&&E>s||(c=p?"":r(e[d+1],t)+(f?"":n),!p&&f&&E>s&&g+c.length>s))break;if(a+=y,!p&&!f&&g+c.length>=s){u=`${mo}(${e.length-d-1})`;break}u=""}return`${a}${u}`}i(xt,"inspectList");z(xt,"inspectList");function $f(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}i($f,"quoteComplexKey");z($f,"quoteComplexKey");function _n([e,t],r){return r.truncate-=2,typeof e=="string"?e=$f(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}i(_n,"inspectProperty");z(_n,"inspectProperty");function Bf(e,t){const r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return"[]";t.truncate-=4;const n=xt(e,t);t.truncate-=n.length;let o="";return r.length&&(o=xt(r.map(s=>[s,e[s]]),t,_n)),`[ ${n}${o?`, ${o}`:""} ]`}i(Bf,"inspectArray");z(Bf,"inspectArray");var R$=z(e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,"getArrayName");function Ut(e,t){const r=R$(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(ar(e[a],t.truncate),"number")}${a===e.length-1?"":", "}`;if(t.truncate-=c.length,e[a]!==e.length&&t.truncate<=3){o+=`${mo}(${e.length-e[a]+1})`;break}o+=c}let s="";return n.length&&(s=xt(n.map(a=>[a,e[a]]),t,_n)),`${r}[ ${o}${s?`, ${s}`:""} ]`}i(Ut,"inspectTypedArray");z(Ut,"inspectTypedArray");function Jf(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${ar(n[1],t.truncate-o.length-1)}`,"date")}i(Jf,"inspectDate");z(Jf,"inspectDate");function va(e,t){const r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${ar(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}i(va,"inspectFunction");z(va,"inspectFunction");function Uf([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}i(Uf,"inspectMapEntry");z(Uf,"inspectMapEntry");function Vf(e){const t=[];return e.forEach((r,n)=>{t.push([n,r])}),t}i(Vf,"mapToEntries");z(Vf,"mapToEntries");function Hf(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${xt(Vf(e),t,Uf)} }`)}i(Hf,"inspectMap");z(Hf,"inspectMap");var O$=Number.isNaN||(e=>e!==e);function Ea(e,t){return O$(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(ar(String(e),t.truncate),"number")}i(Ea,"inspectNumber");z(Ea,"inspectNumber");function Ta(e,t){let r=ar(e.toString(),t.truncate-1);return r!==mo&&(r+="n"),t.stylize(r,"bigint")}i(Ta,"inspectBigInt");z(Ta,"inspectBigInt");function zf(e,t){const r=e.toString().split("/")[2],n=t.truncate-(2+r.length),o=e.source;return t.stylize(`/${ar(o,n)}/${r}`,"regexp")}i(zf,"inspectRegExp");z(zf,"inspectRegExp");function Gf(e){const t=[];return e.forEach(r=>{t.push(r)}),t}i(Gf,"arrayFromSet");z(Gf,"arrayFromSet");function Wf(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${xt(Gf(e),t)} }`)}i(Wf,"inspectSet");z(Wf,"inspectSet");var qg=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),C$={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},x$=16;function Kf(e){return C$[e]||`\\u${`0000${e.charCodeAt(0).toString(x$)}`.slice(-4)}`}i(Kf,"escape");z(Kf,"escape");function wa(e,t){return qg.test(e)&&(e=e.replace(qg,Kf)),t.stylize(`'${ar(e,t.truncate-2)}'`,"string")}i(wa,"inspectString");z(wa,"inspectString");function _a(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}i(_a,"inspectSymbol");z(_a,"inspectSymbol");var N$=z(()=>"Promise{…}","getPromiseValue"),I$=N$;function to(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=xt(r.map(c=>[c,e[c]]),t,_n),s=xt(n.map(c=>[c,e[c]]),t,_n);t.seen.pop();let a="";return o&&s&&(a=", "),`{ ${o}${a}${s} }`}i(to,"inspectObject");z(to,"inspectObject");var lu=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function Yf(e,t){let r="";return lu&&lu in e&&(r=e[lu]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${to(e,t)}`}i(Yf,"inspectClass");z(Yf,"inspectClass");function Xf(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${xt(e,t)} ]`)}i(Xf,"inspectArguments");z(Xf,"inspectArguments");var M$=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function Qf(e,t){const r=Object.getOwnPropertyNames(e).filter(a=>M$.indexOf(a)===-1),n=e.name;t.truncate-=n.length;let o="";if(typeof e.message=="string"?o=ar(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=xt(r.map(a=>[a,e[a]]),t,_n);return`${n}${o}${s?` { ${s} }`:""}`}i(Qf,"inspectObject2");z(Qf,"inspectObject");function Zf([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}i(Zf,"inspectAttribute");z(Zf,"inspectAttribute");function Wi(e,t){return xt(e,t,em,`
|
|
208
|
-
`)}i(Wi,"inspectNodeCollection");z(Wi,"inspectNodeCollection");function em(e,t){switch(e.nodeType){case 1:return Ml(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}i(em,"inspectNode");z(em,"inspectNode");function Ml(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+=xt(r.map(p=>[p,e.getAttribute(p)]),t,Zf," ")),t.truncate-=c.length;const u=t.truncate;let d=Wi(e.children,t);return d&&d.length>u&&(d=`${mo}(${e.children.length})`),`${o}${c}${s}${d}${a}`}i(Ml,"inspectHTML");z(Ml,"inspectHTML");var q$=typeof Symbol=="function"&&typeof Symbol.for=="function",cu=q$?Symbol.for("chai/inspect"):"@@chai/inspect",uu=Symbol.for("nodejs.util.inspect.custom"),jg=new WeakMap,kg={},Dg={undefined:z((e,t)=>t.stylize("undefined","undefined"),"undefined"),null:z((e,t)=>t.stylize("null","null"),"null"),boolean:z((e,t)=>t.stylize(String(e),"boolean"),"boolean"),Boolean:z((e,t)=>t.stylize(String(e),"boolean"),"Boolean"),number:Ea,Number:Ea,bigint:Ta,BigInt:Ta,string:wa,String:wa,function:va,Function:va,symbol:_a,Symbol:_a,Array:Bf,Date:Jf,Map:Hf,Set:Wf,RegExp:zf,Promise:I$,WeakSet:z((e,t)=>t.stylize("WeakSet{…}","special"),"WeakSet"),WeakMap:z((e,t)=>t.stylize("WeakMap{…}","special"),"WeakMap"),Arguments:Xf,Int8Array:Ut,Uint8Array:Ut,Uint8ClampedArray:Ut,Int16Array:Ut,Uint16Array:Ut,Int32Array:Ut,Uint32Array:Ut,Float32Array:Ut,Float64Array:Ut,Generator:z(()=>"","Generator"),DataView:z(()=>"","DataView"),ArrayBuffer:z(()=>"","ArrayBuffer"),Error:Qf,HTMLCollection:Wi,NodeList:Wi},j$=z((e,t,r)=>cu in e&&typeof e[cu]=="function"?e[cu](t):uu in e&&typeof e[uu]=="function"?e[uu](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&jg.has(e.constructor)?jg.get(e.constructor)(e,t):kg[r]?kg[r](e,t):"","inspectCustom"),k$=Object.prototype.toString;function Ki(e,t={}){const r=Lf(t,Ki),{customInspect:n}=r;let o=e===null?"null":typeof e;if(o==="object"&&(o=k$.call(e).slice(8,-1)),o in Dg)return Dg[o](e,r);if(n&&e){const a=j$(e,r,o);if(a)return typeof a=="string"?a:Ki(a,r)}const s=e?Object.getPrototypeOf(e):!1;return s===Object.prototype||s===null?to(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?Ml(e,r):"constructor"in e?e.constructor!==Object?Yf(e,r):to(e,r):e===Object(e)?to(e,r):r.stylize(String(e),o)}i(Ki,"inspect");z(Ki,"inspect");var bt={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:bt.truncateThreshold?bt.truncateThreshold:1/0};return Ki(e,o)}i(we,"inspect2");z(we,"inspect");function Fr(e){let t=we(e),r=Object.prototype.toString.call(e);if(bt.truncateThreshold&&t.length>=bt.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(Fr,"objDisplay");z(Fr,"objDisplay");function ql(e,t){let r=me(e,"negate"),n=me(e,"object"),o=t[3],s=Ts(e,t),a=r?t[2]:t[1],c=me(e,"message");return typeof a=="function"&&(a=a()),a=a||"",a=a.replace(/#\{this\}/g,function(){return Fr(n)}).replace(/#\{act\}/g,function(){return Fr(s)}).replace(/#\{exp\}/g,function(){return Fr(o)}),c?c+": "+a:a}i(ql,"getMessage2");z(ql,"getMessage");function $t(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($t,"transferFlags");z($t,"transferFlags");function Sa(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(Sa,"type2");z(Sa,"type");function jl(){this._key="chai/deep-eql__"+Math.random()+Date.now()}i(jl,"FakeMap");z(jl,"FakeMap");jl.prototype={get:z(i(function(t){return t[this._key]},"get"),"get"),set:z(i(function(t,r){Object.isExtensible(t)&&Object.defineProperty(t,this._key,{value:r,configurable:!0})},"set"),"set")};var oS=typeof WeakMap=="function"?WeakMap:jl;function Pa(e,t,r){if(!r||zr(e)||zr(t))return null;var n=r.get(e);if(n){var o=n.get(t);if(typeof o=="boolean")return o}return null}i(Pa,"memoizeCompare");z(Pa,"memoizeCompare");function Yn(e,t,r,n){if(!(!r||zr(e)||zr(t))){var o=r.get(e);o?o.set(t,n):(o=new oS,o.set(t,n),r.set(e,o))}}i(Yn,"memoizeSet");z(Yn,"memoizeSet");var iS=Io;function Io(e,t,r){if(r&&r.comparator)return Aa(e,t,r);var n=kl(e,t);return n!==null?n:Aa(e,t,r)}i(Io,"deepEqual");z(Io,"deepEqual");function kl(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t?!0:zr(e)||zr(t)?!1:null}i(kl,"simpleEqual");z(kl,"simpleEqual");function Aa(e,t,r){r=r||{},r.memoize=r.memoize===!1?!1:r.memoize||new oS;var n=r&&r.comparator,o=Pa(e,t,r.memoize);if(o!==null)return o;var s=Pa(t,e,r.memoize);if(s!==null)return s;if(n){var a=n(e,t);if(a===!1||a===!0)return Yn(e,t,r.memoize,a),a;var c=kl(e,t);if(c!==null)return c}var u=Sa(e);if(u!==Sa(t))return Yn(e,t,r.memoize,!1),!1;Yn(e,t,r.memoize,!0);var d=tm(e,t,u,r);return Yn(e,t,r.memoize,d),d}i(Aa,"extensiveDeepEqual");z(Aa,"extensiveDeepEqual");function tm(e,t,r,n){switch(r){case"String":case"Number":case"Boolean":case"Date":return Io(e.valueOf(),t.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":return e===t;case"Error":return Dl(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 Pr(e,t,n);case"RegExp":return rm(e,t);case"Generator":return nm(e,t,n);case"DataView":return Pr(new Uint8Array(e.buffer),new Uint8Array(t.buffer),n);case"ArrayBuffer":return Pr(new Uint8Array(e),new Uint8Array(t),n);case"Set":return Ra(e,t,n);case"Map":return Ra(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 im(e,t,n)}}i(tm,"extensiveDeepEqualByType");z(tm,"extensiveDeepEqualByType");function rm(e,t){return e.toString()===t.toString()}i(rm,"regexpEqual");z(rm,"regexpEqual");function Ra(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(z(i(function(a,c){n.push([a,c])},"gatherEntries"),"gatherEntries")),t.forEach(z(i(function(a,c){o.push([a,c])},"gatherEntries"),"gatherEntries")),Pr(n.sort(),o.sort(),r)}i(Ra,"entriesEqual");z(Ra,"entriesEqual");function Pr(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(Io(e[o],t[o],r)===!1)return!1;return!0}i(Pr,"iterableEqual");z(Pr,"iterableEqual");function nm(e,t,r){return Pr(Yi(e),Yi(t),r)}i(nm,"generatorEqual");z(nm,"generatorEqual");function om(e){return typeof Symbol<"u"&&typeof e=="object"&&typeof Symbol.iterator<"u"&&typeof e[Symbol.iterator]=="function"}i(om,"hasIteratorFunction");z(om,"hasIteratorFunction");function Oa(e){if(om(e))try{return Yi(e[Symbol.iterator]())}catch{return[]}return[]}i(Oa,"getIteratorEntries");z(Oa,"getIteratorEntries");function Yi(e){for(var t=e.next(),r=[t.value];t.done===!1;)t=e.next(),r.push(t.value);return r}i(Yi,"getGeneratorEntries");z(Yi,"getGeneratorEntries");function Ca(e){var t=[];for(var r in e)t.push(r);return t}i(Ca,"getEnumerableKeys");z(Ca,"getEnumerableKeys");function xa(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(xa,"getEnumerableSymbols");z(xa,"getEnumerableSymbols");function Dl(e,t,r,n){var o=r.length;if(o===0)return!0;for(var s=0;s<o;s+=1)if(Io(e[r[s]],t[r[s]],n)===!1)return!1;return!0}i(Dl,"keysEqual");z(Dl,"keysEqual");function im(e,t,r){var n=Ca(e),o=Ca(t),s=xa(e),a=xa(t);if(n=n.concat(s),o=o.concat(a),n.length&&n.length===o.length)return Pr(Na(n).sort(),Na(o).sort())===!1?!1:Dl(e,t,n,r);var c=Oa(e),u=Oa(t);return c.length&&c.length===u.length?(c.sort(),u.sort(),Pr(c,u,r)):n.length===0&&c.length===0&&o.length===0&&u.length===0}i(im,"objectEqual");z(im,"objectEqual");function zr(e){return e===null||typeof e!="object"}i(zr,"isPrimitive");z(zr,"isPrimitive");function Na(e){return e.map(z(i(function(r){return typeof r=="symbol"?r.toString():r},"mapSymbol"),"mapSymbol"))}i(Na,"mapSymbols");z(Na,"mapSymbols");function ws(e,t){return typeof e>"u"||e===null?!1:t in Object(e)}i(ws,"hasProperty");z(ws,"hasProperty");function sm(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(sm,"parsePath");z(sm,"parsePath");function Ia(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(Ia,"internalGetPathValue");z(Ia,"internalGetPathValue");function Ll(e,t){const r=sm(t),n=r[r.length-1],o={parent:r.length>1?Ia(e,r,r.length-1):e,name:n.p||n.i,value:Ia(e,r)};return o.exists=ws(o.parent,o.name),o}i(Ll,"getPathInfo");z(Ll,"getPathInfo");var hi,q=(hi=class{__flags={};constructor(e,t,r,n){return me(this,"ssfi",r||hi),me(this,"lockSsfi",n),me(this,"object",e),me(this,"message",t),me(this,"eql",bt.deepEqual||iS),Fn(this)}static get includeStack(){return console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),bt.includeStack}static set includeStack(e){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),bt.includeStack=e}static get showDiff(){return console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),bt.showDiff}static set showDiff(e){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),bt.showDiff=e}static addProperty(e,t){Fl(this.prototype,e,t)}static addMethod(e,t){$l(this.prototype,e,t)}static addChainableMethod(e,t,r){Ul(this.prototype,e,t,r)}static overwriteProperty(e,t){Bl(this.prototype,e,t)}static overwriteMethod(e,t){Jl(this.prototype,e,t)}static overwriteChainableMethod(e,t,r){Vl(this.prototype,e,t,r)}assert(e,t,r,n,o,s){const a=Il(this,arguments);if(s!==!1&&(s=!0),n===void 0&&o===void 0&&(s=!1),bt.showDiff!==!0&&(s=!1),!a){t=ql(this,arguments);const u={actual:Ts(this,arguments),expected:n,showDiff:s},d=Gl(this,arguments);throw d&&(u.operator=d),new Ae(t,u,bt.includeStack?this.assert:me(this,"ssfi"))}}get _obj(){return me(this,"object")}set _obj(e){me(this,"object",e)}},i(hi,"_Assertion"),z(hi,"Assertion"),hi);function Mo(){return bt.useProxy&&typeof Proxy<"u"&&typeof Reflect<"u"}i(Mo,"isProxyEnabled");z(Mo,"isProxyEnabled");function Fl(e,t,r){r=r===void 0?function(){}:r,Object.defineProperty(e,t,{get:z(i(function n(){!Mo()&&!me(this,"lockSsfi")&&me(this,"ssfi",n);let o=r.call(this);if(o!==void 0)return o;let s=new q;return $t(this,s),s},"propertyGetter"),"propertyGetter"),configurable:!0})}i(Fl,"addProperty");z(Fl,"addProperty");var D$=Object.getOwnPropertyDescriptor(function(){},"length");function qo(e,t,r){return D$.configurable&&Object.defineProperty(e,"length",{get:z(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(qo,"addLengthGuard");z(qo,"addLengthGuard");function am(e){let t=Object.getOwnPropertyNames(e);function r(o){t.indexOf(o)===-1&&t.push(o)}i(r,"addProperty2"),z(r,"addProperty");let n=Object.getPrototypeOf(e);for(;n!==null;)Object.getOwnPropertyNames(n).forEach(r),n=Object.getPrototypeOf(n);return t}i(am,"getProperties");z(am,"getProperties");var Lg=["__flags","__methods","_obj","assert"];function Fn(e,t){return Mo()?new Proxy(e,{get:z(i(function r(n,o){if(typeof o=="string"&&bt.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 am(n).forEach(function(c){if(!Object.prototype.hasOwnProperty(c)&&Lg.indexOf(c)===-1){let u=lm(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 Lg.indexOf(o)===-1&&!me(n,"lockSsfi")&&me(n,"ssfi",r),Reflect.get(n,o)},"proxyGetter"),"proxyGetter")}):e}i(Fn,"proxify");z(Fn,"proxify");function lm(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(lm,"stringDistanceCapped");z(lm,"stringDistanceCapped");function $l(e,t,r){let n=z(function(){me(this,"lockSsfi")||me(this,"ssfi",n);let o=r.apply(this,arguments);if(o!==void 0)return o;let s=new q;return $t(this,s),s},"methodWrapper");qo(n,t,!1),e[t]=Fn(n,t)}i($l,"addMethod");z($l,"addMethod");function Bl(e,t,r){let n=Object.getOwnPropertyDescriptor(e,t),o=z(function(){},"_super");n&&typeof n.get=="function"&&(o=n.get),Object.defineProperty(e,t,{get:z(i(function s(){!Mo()&&!me(this,"lockSsfi")&&me(this,"ssfi",s);let a=me(this,"lockSsfi");me(this,"lockSsfi",!0);let c=r(o).call(this);if(me(this,"lockSsfi",a),c!==void 0)return c;let u=new q;return $t(this,u),u},"overwritingPropertyGetter"),"overwritingPropertyGetter"),configurable:!0})}i(Bl,"overwriteProperty");z(Bl,"overwriteProperty");function Jl(e,t,r){let n=e[t],o=z(function(){throw new Error(t+" is not a function")},"_super");n&&typeof n=="function"&&(o=n);let s=z(function(){me(this,"lockSsfi")||me(this,"ssfi",s);let a=me(this,"lockSsfi");me(this,"lockSsfi",!0);let c=r(o).apply(this,arguments);if(me(this,"lockSsfi",a),c!==void 0)return c;let u=new q;return $t(this,u),u},"overwritingMethodWrapper");qo(s,t,!1),e[t]=Fn(s,t)}i(Jl,"overwriteMethod");z(Jl,"overwriteMethod");var L$=typeof Object.setPrototypeOf=="function",Fg=z(function(){},"testFn"),F$=Object.getOwnPropertyNames(Fg).filter(function(e){let t=Object.getOwnPropertyDescriptor(Fg,e);return typeof t!="object"?!0:!t.configurable}),$$=Function.prototype.call,B$=Function.prototype.apply;function Ul(e,t,r,n){typeof n!="function"&&(n=z(function(){},"chainingBehavior"));let o={method:r,chainingBehavior:n};e.__methods||(e.__methods={}),e.__methods[t]=o,Object.defineProperty(e,t,{get:z(i(function(){o.chainingBehavior.call(this);let a=z(function(){me(this,"lockSsfi")||me(this,"ssfi",a);let c=o.method.apply(this,arguments);if(c!==void 0)return c;let u=new q;return $t(this,u),u},"chainableMethodWrapper");if(qo(a,t,!0),L$){let c=Object.create(this);c.call=$$,c.apply=B$,Object.setPrototypeOf(a,c)}else Object.getOwnPropertyNames(e).forEach(function(u){if(F$.indexOf(u)!==-1)return;let d=Object.getOwnPropertyDescriptor(e,u);Object.defineProperty(a,u,d)});return $t(this,a),Fn(a)},"chainableMethodGetter"),"chainableMethodGetter"),configurable:!0})}i(Ul,"addChainableMethod");z(Ul,"addChainableMethod");function Vl(e,t,r,n){let o=e.__methods[t],s=o.chainingBehavior;o.chainingBehavior=z(i(function(){let u=n(s).call(this);if(u!==void 0)return u;let d=new q;return $t(this,d),d},"overwritingChainableMethodGetter"),"overwritingChainableMethodGetter");let a=o.method;o.method=z(i(function(){let u=r(a).apply(this,arguments);if(u!==void 0)return u;let d=new q;return $t(this,d),d},"overwritingChainableMethodWrapper"),"overwritingChainableMethodWrapper")}i(Vl,"overwriteChainableMethod");z(Vl,"overwriteChainableMethod");function Xi(e,t){return we(e)<we(t)?-1:1}i(Xi,"compareByInspect");z(Xi,"compareByInspect");function Hl(e){return typeof Object.getOwnPropertySymbols!="function"?[]:Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})}i(Hl,"getOwnEnumerablePropertySymbols");z(Hl,"getOwnEnumerablePropertySymbols");function zl(e){return Object.keys(e).concat(Hl(e))}i(zl,"getOwnEnumerableProperties");z(zl,"getOwnEnumerableProperties");var Ma=Number.isNaN;function cm(e){let t=xe(e);return["Array","Object","Function"].indexOf(t)!==-1}i(cm,"isObjectType");z(cm,"isObjectType");function Gl(e,t){let r=me(e,"operator"),n=me(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=cm(o);return/\snot\s/.test(s)?a?"notDeepStrictEqual":"notStrictEqual":a?"deepStrictEqual":"strictEqual"}i(Gl,"getOperator");z(Gl,"getOperator");function _s(e){return e.name}i(_s,"getName");z(_s,"getName");function Qi(e){return Object.prototype.toString.call(e)==="[object RegExp]"}i(Qi,"isRegExp2");z(Qi,"isRegExp");function nt(e){return["Number","BigInt"].includes(xe(e))}i(nt,"isNumeric");z(nt,"isNumeric");var{flag:U}=tr;["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 $g={function:["function","asyncfunction","generatorfunction","asyncgeneratorfunction"],asyncfunction:["asyncfunction","asyncgeneratorfunction"],generatorfunction:["generatorfunction","asyncgeneratorfunction"],asyncgeneratorfunction:["asyncgeneratorfunction"]};function Wl(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();$g.function.includes(e)?this.assert($g[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(Wl,"an");z(Wl,"an");q.addChainableMethod("an",Wl);q.addChainableMethod("a",Wl);function um(e,t){return Ma(e)&&Ma(t)||e===t}i(um,"SameValueZero");z(um,"SameValueZero");function jo(){U(this,"contains",!0)}i(jo,"includeChainingBehavior");z(jo,"includeChainingBehavior");function ko(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"):um;o=o?o+": ":"";let p=!1;switch(n){case"string":p=r.indexOf(e)!==-1;break;case"weakset":if(c)throw new Ae(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 Ae(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),h=null,y=0;if(f.forEach(function(g){let E=new q(r);if($t(this,E,!0),U(E,"lockSsfi",!0),!s||f.length===1){E.property(g,e[g]);return}try{E.property(g,e[g])}catch(T){if(!Pt.compatibleConstructor(T,Ae))throw T;h===null&&(h=T),y++}},this),s&&f.length>1&&y===f.length)throw h;return}}this.assert(p,"expected #{this} to "+u+"include "+we(e),"expected #{this} to not "+u+"include "+we(e))}i(ko,"include");z(ko,"include");q.addChainableMethod("include",ko,jo);q.addChainableMethod("contain",ko,jo);q.addChainableMethod("contains",ko,jo);q.addChainableMethod("includes",ko,jo);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 Ae(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(Ma(U(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN")});function Kl(){let e=U(this,"object");this.assert(e!=null,"expected #{this} to exist","expected #{this} to not exist")}i(Kl,"assertExist");z(Kl,"assertExist");q.addProperty("exist",Kl);q.addProperty("exists",Kl);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 Ae(r+".empty was passed a weak collection",void 0,t);case"function":{const o=r+".empty was passed a function "+_s(e);throw new Ae(o.trim(),void 0,t)}default:if(e!==Object(e))throw new Ae(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 Yl(){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(Yl,"checkArguments");z(Yl,"checkArguments");q.addProperty("arguments",Yl);q.addProperty("Arguments",Yl);function Ss(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(Ss,"assertEqual");z(Ss,"assertEqual");q.addMethod("equal",Ss);q.addMethod("equals",Ss);q.addMethod("eq",Ss);function Xl(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(Xl,"assertEql");z(Xl,"assertEql");q.addMethod("eql",Xl);q.addMethod("eqls",Xl);function Ps(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 Ae(s+"the argument to above must be a date",void 0,a);if(!nt(e)&&(n||nt(r)))throw new Ae(s+"the argument to above must be a number",void 0,a);if(!n&&c!=="date"&&!nt(r)){let d=c==="string"?"'"+r+"'":r;throw new Ae(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(Ps,"assertAbove");z(Ps,"assertAbove");q.addMethod("above",Ps);q.addMethod("gt",Ps);q.addMethod("greaterThan",Ps);function As(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(!nt(e)&&(n||nt(r)))d=s+"the argument to least must be a number";else if(!n&&c!=="date"&&!nt(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 Ae(d,void 0,a);if(n){let f="length",h;c==="map"||c==="set"?(f="size",h=r.size):h=r.length,this.assert(h>=e,"expected #{this} to have a "+f+" at least #{exp} but got #{act}","expected #{this} to have a "+f+" below #{exp}",e,h)}else this.assert(r>=e,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",e)}i(As,"assertLeast");z(As,"assertLeast");q.addMethod("least",As);q.addMethod("gte",As);q.addMethod("greaterThanOrEqual",As);function Rs(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(!nt(e)&&(n||nt(r)))d=s+"the argument to below must be a number";else if(!n&&c!=="date"&&!nt(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 Ae(d,void 0,a);if(n){let f="length",h;c==="map"||c==="set"?(f="size",h=r.size):h=r.length,this.assert(h<e,"expected #{this} to have a "+f+" below #{exp} but got #{act}","expected #{this} to not have a "+f+" below #{exp}",e,h)}else this.assert(r<e,"expected #{this} to be below #{exp}","expected #{this} to be at least #{exp}",e)}i(Rs,"assertBelow");z(Rs,"assertBelow");q.addMethod("below",Rs);q.addMethod("lt",Rs);q.addMethod("lessThan",Rs);function Os(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(!nt(e)&&(n||nt(r)))d=s+"the argument to most must be a number";else if(!n&&c!=="date"&&!nt(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 Ae(d,void 0,a);if(n){let f="length",h;c==="map"||c==="set"?(f="size",h=r.size):h=r.length,this.assert(h<=e,"expected #{this} to have a "+f+" at most #{exp} but got #{act}","expected #{this} to have a "+f+" above #{exp}",e,h)}else this.assert(r<=e,"expected #{this} to be at most #{exp}","expected #{this} to be above #{exp}",e)}i(Os,"assertMost");z(Os,"assertMost");q.addMethod("most",Os);q.addMethod("lte",Os);q.addMethod("lessThanOrEqual",Os);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,h=!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((!nt(e)||!nt(t))&&(o||nt(n)))f=a+"the arguments to within must be numbers";else if(!o&&u!=="date"&&!nt(n)){let g=u==="string"?"'"+n+"'":n;f=a+"expected "+g+" to be a number or a date"}else h=!1;if(h)throw new Ae(f,void 0,c);if(o){let g="length",E;u==="map"||u==="set"?(g="size",E=n.size):E=n.length,this.assert(E>=e&&E<=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 Ql(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 Ae(o+"The instanceof assertion needs a constructor but "+xe(e)+" was given.",void 0,n)):c}let a=_s(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(Ql,"assertInstanceOf");z(Ql,"assertInstanceOf");q.addMethod("instanceof",Ql);q.addMethod("instanceOf",Ql);function Zl(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 Ae(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 Ae(s+"the argument to property must be a string, number, or symbol",void 0,c);if(n&&o)throw new Ae(s+'The "nested" and "own" flags cannot be combined.',void 0,c);if(a==null)throw new Ae(s+"Target cannot be null or undefined.",void 0,c);let d=U(this,"deep"),p=U(this,"negate"),f=n?Ll(a,e):null,h=n?f.value:a[e],y=d?U(this,"eql"):(T,v)=>T===v,g="";d&&(g+="deep "),o&&(g+="own "),n&&(g+="nested "),g+="property ";let E;o?E=Object.prototype.hasOwnProperty.call(a,e):n?E=f.exists:E=ws(a,e),(!p||arguments.length===1)&&this.assert(E,"expected #{this} to have "+g+we(e),"expected #{this} to not have "+g+we(e)),arguments.length>1&&this.assert(E&&y(t,h),"expected #{this} to have "+g+we(e)+" of #{exp}, but got #{act}","expected #{this} to not have "+g+we(e)+" of #{act}",t,h),U(this,"object",h)}i(Zl,"assertProperty");z(Zl,"assertProperty");q.addMethod("property",Zl);function ec(e,t,r){U(this,"own",!0),Zl.apply(this,arguments)}i(ec,"assertOwnProperty");z(ec,"assertOwnProperty");q.addMethod("ownProperty",ec);q.addMethod("haveOwnProperty",ec);function tc(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(tc,"assertOwnPropertyDescriptor");z(tc,"assertOwnPropertyDescriptor");q.addMethod("ownPropertyDescriptor",tc);q.addMethod("haveOwnPropertyDescriptor",tc);function rc(){U(this,"doLength",!0)}i(rc,"assertLengthChain");z(rc,"assertLengthChain");function nc(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(nc,"assertLength");z(nc,"assertLength");q.addChainableMethod("length",nc,rc);q.addChainableMethod("lengthOf",nc,rc);function oc(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(oc,"assertMatch");z(oc,"assertMatch");q.addMethod("match",oc);q.addMethod("matches",oc);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 ic(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=zl(t),n){case"Array":if(arguments.length>1)throw new Ae(f,void 0,o);break;case"Object":if(arguments.length>1)throw new Ae(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 Ae(p+"keys required",void 0,o);let h=e.length,y=U(this,"any"),g=U(this,"all"),E=e,T=s?U(this,"eql"):(v,_)=>v===_;if(!y&&!g&&(g=!0),y&&(d=E.some(function(v){return u.some(function(_){return T(v,_)})})),g&&(d=E.every(function(v){return u.some(function(_){return T(v,_)})}),U(this,"contains")||(d=d&&e.length==u.length)),h>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=(h>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,E.slice(0).sort(Xi),u.sort(Xi),!0)}i(ic,"assertKeys");z(ic,"assertKeys");q.addMethod("keys",ic);q.addMethod("key",ic);function Cs(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"),(Qi(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,h=!1;if(d||!d&&!a){let y="an error";e instanceof Error?y="#{exp}":e&&(y=Pt.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=Pt.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&&Pt.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())),Pt.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&&Pt.getConstructorName(e),c instanceof Error?c.toString():c&&Pt.getConstructorName(c)))),c&&t!==void 0&&t!==null){let y="including";Qi(t)&&(y="matching"),Pt.compatibleMessage(c,t)===a&&(p&&a?h=!0:this.assert(a,"expected #{this} to throw error "+y+" #{exp} but got #{act}","expected #{this} to throw error not "+y+" #{exp}",t,Pt.getMessage(c)))}f&&h&&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&&Pt.getConstructorName(e),c instanceof Error?c.toString():c&&Pt.getConstructorName(c)),U(this,"object",c)}i(Cs,"assertThrows");z(Cs,"assertThrows");q.addMethod("throw",Cs);q.addMethod("throws",Cs);q.addMethod("Throw",Cs);function sc(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(sc,"respondTo");z(sc,"respondTo");q.addMethod("respondTo",sc);q.addMethod("respondsTo",sc);q.addProperty("itself",function(){U(this,"itself",!0)});function ac(e,t){t&&U(this,"message",t);let r=U(this,"object"),n=e(r);this.assert(n,"expected #{this} to satisfy "+Fr(e),"expected #{this} to not satisfy"+Fr(e),!U(this,"negate"),n)}i(ac,"satisfy");z(ac,"satisfy");q.addMethod("satisfy",ac);q.addMethod("satisfies",ac);function lc(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 Ae(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 Ae(o?`${o}: ${a}`:a,void 0,s);new q(e,o,s,!0).is.numeric;const c=z(d=>d<0n?-d:d,"abs"),u=z(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(lc,"closeTo");z(lc,"closeTo");q.addMethod("closeTo",lc);q.addMethod("approximately",lc);function dm(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(dm,"isSubsetOf");z(dm,"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(dm(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 pm(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(pm,"oneOf");z(pm,"oneOf");q.addMethod("oneOf",pm);function cc(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(cc,"assertChanges");z(cc,"assertChanges");q.addMethod("change",cc);q.addMethod("changes",cc);function uc(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(uc,"assertIncreases");z(uc,"assertIncreases");q.addMethod("increase",uc);q.addMethod("increases",uc);function dc(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(dc,"assertDecreases");z(dc,"assertDecreases");q.addMethod("decrease",dc);q.addMethod("decreases",dc);function fm(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(fm,"assertDelta");z(fm,"assertDelta");q.addMethod("by",fm);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 Zi(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 Zi(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?Zi(n,o):typeof n=="function"?n(o):o===n}):!1}i(Zi,"compareSubset");z(Zi,"compareSubset");q.addMethod("containSubset",function(e){const t=me(this,"object"),r=bt.showDiff;this.assert(Zi(e,t),"expected #{act} to contain subset #{exp}","expected #{act} to not contain subset #{exp}",e,t,r)});function $r(e,t){return new q(e,t)}i($r,"expect");z($r,"expect");$r.fail=function(e,t,r,n){throw arguments.length<2&&(r=e,e=void 0),r=r||"expect.fail()",new Ae(r,{actual:e,expected:t,operator:n},$r.fail)};var sS={};Cf(sS,{Should:i(()=>U$,"Should"),should:i(()=>J$,"should")});function pc(){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"),z(e,"shouldGetter");function t(n){Object.defineProperty(this,"should",{value:n,enumerable:!0,configurable:!0,writable:!0})}i(t,"shouldSetter"),z(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 Ae(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(pc,"loadShould");z(pc,"loadShould");var J$=pc,U$=pc;function M(e,t){new q(null,null,M,!0).assert(e,t,"[ negation message unavailable ]")}i(M,"assert");z(M,"assert");M.fail=function(e,t,r,n){throw arguments.length<2&&(r=e,e=void 0),r=r||"assert.fail()",new Ae(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==me(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!=me(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 me(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 Ae(n+'Invalid operator "'+t+'"',void 0,M.operator)}let s=new q(o,n,M.operator,!0);s.assert(me(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 Ae(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 V$=[["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 V$)M[t]=M[e];var Bg=[];function yn(e){const t={use:yn,AssertionError:Ae,util:tr,config:bt,expect:$r,assert:M,Assertion:q,...sS};return~Bg.indexOf(e)||(e(t,tr),Bg.push(e)),t}i(yn,"use");z(yn,"use");var aS={};Tt(aS,{toBeChecked:()=>Wm,toBeDisabled:()=>$m,toBeEmpty:()=>Pm,toBeEmptyDOMElement:()=>Am,toBeEnabled:()=>Bm,toBeInTheDOM:()=>ja,toBeInTheDocument:()=>Sm,toBeInvalid:()=>Vm,toBePartiallyChecked:()=>Ym,toBePartiallyPressed:()=>th,toBePressed:()=>eh,toBeRequired:()=>Jm,toBeValid:()=>Hm,toBeVisible:()=>jm,toContainElement:()=>ka,toContainHTML:()=>Rm,toHaveAccessibleDescription:()=>Da,toHaveAccessibleErrorMessage:()=>Cm,toHaveAccessibleName:()=>Fa,toHaveAttribute:()=>xm,toHaveClass:()=>Nm,toHaveDescription:()=>Xm,toHaveDisplayValue:()=>Gm,toHaveErrorMessage:()=>Qm,toHaveFocus:()=>Im,toHaveFormValues:()=>Mm,toHaveRole:()=>La,toHaveSelection:()=>Zm,toHaveStyle:()=>$a,toHaveTextContent:()=>Om,toHaveValue:()=>zm});var Jg=We(cv(),1),lS=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(lS,"t");var H$=lS,cS=class{start;end;source;constructor(t,r,n){this.start=t,this.end=r,this.source=n}};i(cS,"e");var z$=cS,et;(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"})(et||(et={}));var Ug=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"),td=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=td(e,[")"],c+1);if(u===-1)return-1;n=u+1}break;case'"':{const u=Ug(e,['"'],c+1);if(u===-1)return-1;n=u+1}break;case"'":{const u=Ug(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"),du=/\/\*[^]*?(?:\*\/|$)/g;function _t(e){return e?e.trim():""}i(_t,"o");function qa(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=>{qa(a,n)}):s&&typeof s=="object"&&qa(s,n)}return r&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}i(qa,"c");var G$=i((e,t)=>{t=t||{};let r=1,n=1;function o(){const w={line:r,column:n};return S=>(S.position=new z$(w,{line:r,column:n},t?.source||""),f(),S)}i(o,"u");const s=[];function a(w){const S=new H$(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(),h(S);e.length&&e.charAt(0)!=="}"&&(w=C()||P(),w);)S.push(w),h(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 h(w){w=w||[];let S=y();for(;S;)w.push(S),S=y();return w}i(h,"x");function y(){const w=o();if(e.charAt(0)!=="/"||e.charAt(1)!=="*")return;const S=/^\/\*[^]*?\*\//.exec(e);return S?(p(S),w({type:et.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=td(S,k,V);if(H===-1)return I.push(S.substring(V)),I;I.push(S.substring(V,H)),V=H+1}return I})(_t(w[0]).replace(du,""),[","]).map(S=>_t(S))}i(g,"k");function E(){const w=o(),S=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/.exec(e);if(!S)return;p(S);const k=_t(S[0]),I=/^:\s*/.exec(e);if(!I)return a("property missing ':'");p(I);let V="";const H=td(e,[";","}"]);H!==-1&&(V=e.substring(0,H),p([V]),V=_t(V).replace(du,""));const A=w({type:et.declaration,property:k.replace(du,""),value:V}),L=/^[;\s]*/.exec(e);return L&&p(L),A}i(E,"v");function T(){const w=[];if(!c())return a("missing '{'");h(w);let S=E();for(;S;)w.push(S),h(w),S=E();return u()?w:a("missing '}'")}i(T,"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:et.keyframe,values:w,declarations:T()||[]})}i(v,"b");const _=j("import"),R=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=h(),A=v();for(;A;)H.push(A),H=H.concat(h()),A=v();return u()?w({type:et.keyframes,name:V,vendor:k,keyframes:H}):a("@keyframes missing '}'")})()||(function(){const w=o(),S=/^@media *([^{]+)/.exec(e);if(!S)return;const k=_t(p(S)[1]);if(!c())return a("@media missing '{'");const I=h().concat(d());return u()?w({type:et.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:et.customMedia,name:_t(k[1]),media:_t(k[2])})})()||(function(){const w=o(),S=/^@supports *([^{]+)/.exec(e);if(!S)return;const k=_t(p(S)[1]);if(!c())return a("@supports missing '{'");const I=h().concat(d());return u()?w({type:et.supports,supports:k,rules:I}):a("@supports missing '}'")})()||_()||R()||N()||(function(){const w=o(),S=/^@([-\w]+)?document *([^{]+)/.exec(e);if(!S)return;const k=p(S),I=_t(k[1]),V=_t(k[2]);if(!c())return a("@document missing '{'");const H=h().concat(d());return u()?w({type:et.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=h(),V=E();for(;V;)I.push(V),I=I.concat(h()),V=E();return u()?w({type:et.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=h().concat(d());return u()?w({type:et.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=h(),I=E();for(;I;)k.push(I),k=k.concat(h()),I=E();return u()?w({type:et.fontFace,declarations:k}):a("@font-face missing '}'")})()||(function(){const w=o(),S=/^@container *([^{]+)/.exec(e);if(!S)return;const k=_t(p(S)[1]);if(!c())return a("@container missing '{'");const I=h().concat(d());return u()?w({type:et.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=h().concat(d());return u()?w({type:et.startingStyle,rules:k}):a("@starting-style missing '}'")})()||(function(){const w=o(),S=/^@layer *([^{;@]+)/.exec(e);if(!S)return;const k=_t(p(S)[1]);if(!c()){const V=/^[;\s]*/.exec(e);return V&&p(V),w({type:et.layer,layer:k})}const I=h().concat(d());return u()?w({type:et.layer,layer:k,rules:I}):a("@layer missing '}'")})()}i(C,"A");function P(){const w=o(),S=g();return S?(h(),w({type:et.rule,selectors:S,declarations:T()||[]})):a("selector missing")}return i(P,"S"),qa((function(){const w=d();return{type:et.stylesheet,stylesheet:{source:t?.source,rules:w,parsingErrors:s}}})())},"m"),W$=Object.prototype.toString;function rd(e){return typeof e=="function"||W$.call(e)==="[object Function]"}i(rd,"isCallable");function uS(e){var t=Number(e);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))}i(uS,"toInteger");var K$=Math.pow(2,53)-1;function dS(e){var t=uS(e);return Math.min(Math.max(t,0),K$)}i(dS,"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"&&!rd(t))throw new TypeError("Array.from: when provided, the second argument must be a function");for(var o=dS(n.length),s=rd(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 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 pS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}i(pS,"_classCallCheck");function nd(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,mm(n.key),n)}}i(nd,"_defineProperties");function fS(e,t,r){return t&&nd(e.prototype,t),r&&nd(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}i(fS,"_createClass");function mS(e,t,r){return t=mm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}i(mS,"_defineProperty");function mm(e){var t=hS(e,"string");return ho(t)==="symbol"?t:String(t)}i(mm,"_toPropertyKey");function hS(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(hS,"_toPrimitive");var Y$=(function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];pS(this,e),mS(this,"items",void 0),this.items=t}return i(e,"SetLike"),fS(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})(),X$=typeof Set>"u"?Set:Y$;function ct(e){var t;return(t=e.localName)!==null&&t!==void 0?t:e.tagName.toLowerCase()}i(ct,"getLocalName");var Q$={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"},Z$={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 yS(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=Z$[t])!==null&&n!==void 0&&n.has(r))})}i(yS,"hasGlobalAriaAttributes");function hm(e,t){return yS(e,t)}i(hm,"ignorePresentationalRole");function gS(e){var t=vS(e);if(t===null||od.indexOf(t)!==-1){var r=bS(e);if(od.indexOf(t||"")===-1||hm(e,r||""))return r}return t}i(gS,"getRole");function bS(e){var t=Q$[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")===""&&!hm(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(bS,"getImplicitRole");function vS(e){var t=e.getAttribute("role");if(t!==null){var r=t.trim().split(" ")[0];if(r.length>0)return r}return null}i(vS,"getExplicitRole");var od=["presentation","none"];function je(e){return e!==null&&e.nodeType===e.ELEMENT_NODE}i(je,"isElement");function ym(e){return je(e)&&ct(e)==="caption"}i(ym,"isHTMLTableCaptionElement");function Mi(e){return je(e)&&ct(e)==="input"}i(Mi,"isHTMLInputElement");function ES(e){return je(e)&&ct(e)==="optgroup"}i(ES,"isHTMLOptGroupElement");function TS(e){return je(e)&&ct(e)==="select"}i(TS,"isHTMLSelectElement");function wS(e){return je(e)&&ct(e)==="table"}i(wS,"isHTMLTableElement");function _S(e){return je(e)&&ct(e)==="textarea"}i(_S,"isHTMLTextAreaElement");function SS(e){var t=e.ownerDocument===null?e:e.ownerDocument,r=t.defaultView;if(r===null)throw new TypeError("no window available");return r}i(SS,"safeWindow");function PS(e){return je(e)&&ct(e)==="fieldset"}i(PS,"isHTMLFieldSetElement");function AS(e){return je(e)&&ct(e)==="legend"}i(AS,"isHTMLLegendElement");function RS(e){return je(e)&&ct(e)==="slot"}i(RS,"isHTMLSlotElement");function OS(e){return je(e)&&e.ownerSVGElement!==void 0}i(OS,"isSVGElement");function CS(e){return je(e)&&ct(e)==="svg"}i(CS,"isSVGSVGElement");function xS(e){return OS(e)&&ct(e)==="title"}i(xS,"isSVGTitleElement");function es(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(es,"queryIdRefs");function rr(e,t){return je(e)?t.indexOf(gS(e))!==-1:!1}i(rr,"hasAnyConcreteRoles");function NS(e){return e.trim().replace(/\s\s+/g," ")}i(NS,"asFlatString");function IS(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(IS,"isHidden");function MS(e){return rr(e,["button","combobox","listbox","textbox"])||gm(e,"range")}i(MS,"isControl");function gm(e,t){if(!je(e))return!1;switch(t){case"range":return rr(e,["meter","progressbar","scrollbar","slider","spinbutton"]);default:throw new TypeError("No knowledge about abstract role '".concat(t,"'. This is likely a bug :("))}}i(gm,"hasAbstractRole");function id(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(id,"querySelectorAllSubtree");function qS(e){return TS(e)?e.selectedOptions||id(e,"[selected]"):id(e,'[aria-selected="true"]')}i(qS,"querySelectedOptions");function jS(e){return rr(e,od)}i(jS,"isMarkedPresentational");function kS(e){return ym(e)}i(kS,"isNativeHostLanguageTextAlternativeElement");function DS(e){return rr(e,["button","cell","checkbox","columnheader","gridcell","heading","label","legend","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"])}i(DS,"allowsNameFromContent");function LS(e){return!1}i(LS,"isDescendantOfNativeHostLanguageTextAlternativeElement");function FS(e){return Mi(e)||_S(e)?e.value:e.textContent||""}i(FS,"getValueOfTextbox");function sd(e){var t=e.getPropertyValue("content");return/^["'].*["']$/.test(t)?t.slice(1,-1):""}i(sd,"getTextualContent");function bm(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(bm,"isLabelableElement");function vm(e){if(bm(e))return e;var t=null;return e.childNodes.forEach(function(r){if(t===null&&je(r)){var n=vm(r);n!==null&&(t=n)}}),t}i(vm,"findLabelableElement");function $S(e){if(e.control!==void 0)return e.control;var t=e.getAttribute("for");return t!==null?e.ownerDocument.getElementById(t):vm(e)}i($S,"getControlOfLabel");function BS(e){var t=e.labels;if(t===null)return t;if(t!==void 0)return jt(t);if(!bm(e))return null;var r=e.ownerDocument;return jt(r.querySelectorAll("label")).filter(function(n){return $S(n)===e})}i(BS,"getLabels");function JS(e){var t=e.assignedNodes();return t.length===0?jt(e.childNodes):t}i(JS,"getSlotContents");function Em(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=new X$,n=SS(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 h(v,_){var R="";if(je(v)&&c){var N=d(v,"::before"),j=sd(N);R="".concat(j," ").concat(R)}var C=RS(v)?JS(v):jt(v.childNodes).concat(es(v,"aria-owns"));if(C.forEach(function(S){var k=T(S,{isEmbeddedInLabel:_.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),I=je(S)?d(S).getPropertyValue("display"):"inline",V=I!=="inline"?" ":"";R+="".concat(V).concat(k).concat(V)}),je(v)&&c){var P=d(v,"::after"),w=sd(P);R="".concat(R," ").concat(w)}return R.trim()}i(h,"computeMiscTextAlternative");function y(v,_){var R=v.getAttributeNode(_);return R!==null&&!r.has(R)&&R.value.trim()!==""?(r.add(R),R.value):null}i(y,"useAttribute");function g(v){return je(v)?y(v,"title"):null}i(g,"computeTooltipAttributeValue");function E(v){if(!je(v))return null;if(PS(v)){r.add(v);for(var _=jt(v.childNodes),R=0;R<_.length;R+=1){var N=_[R];if(AS(N))return T(N,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(wS(v)){r.add(v);for(var j=jt(v.childNodes),C=0;C<j.length;C+=1){var P=j[C];if(ym(P))return T(P,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(CS(v)){r.add(v);for(var w=jt(v.childNodes),S=0;S<w.length;S+=1){var k=w[S];if(xS(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(ES(v)){var V=y(v,"label");if(V!==null)return V}if(Mi(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 A=BS(v);if(A!==null&&A.length!==0)return r.add(v),jt(A).map(function(K){return T(K,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(K){return K.length>0}).join(" ");if(Mi(v)&&v.type==="image"){var L=y(v,"alt");if(L!==null)return L;var $=y(v,"title");return $!==null?$:"Submit Query"}if(rr(v,["button"])){var D=h(v,{isEmbeddedInLabel:!1});if(D!=="")return D}return null}i(E,"computeElementTextAlternative");function T(v,_){if(r.has(v))return"";if(!f&&IS(v,d)&&!_.isReferenced)return r.add(v),"";var R=je(v)?v.getAttributeNode("aria-labelledby"):null,N=R!==null&&!r.has(R)?es(v,"aria-labelledby"):[];if(s==="name"&&!_.isReferenced&&N.length>0)return r.add(R),N.map(function(I){return T(I,{isEmbeddedInLabel:_.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(" ");var j=_.recursion&&MS(v)&&s==="name";if(!j){var C=(je(v)&&v.getAttribute("aria-label")||"").trim();if(C!==""&&s==="name")return r.add(v),C;if(!jS(v)){var P=E(v);if(P!==null)return r.add(v),P}}if(rr(v,["menu"]))return r.add(v),"";if(j||_.isEmbeddedInLabel||_.isReferenced){if(rr(v,["combobox","listbox"])){r.add(v);var w=qS(v);return w.length===0?Mi(v)?v.value:"":jt(w).map(function(I){return T(I,{isEmbeddedInLabel:_.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(" ")}if(gm(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(rr(v,["textbox"]))return r.add(v),FS(v)}if(DS(v)||je(v)&&_.isReferenced||kS(v)||LS()){var S=h(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),h(v,{isEmbeddedInLabel:_.isEmbeddedInLabel});var k=g(v);return k!==null?(r.add(v),k):(r.add(v),"")}return i(T,"computeTextAlternative"),NS(T(e,{isEmbeddedInLabel:!1,isReferenced:s==="description",recursion:!1}))}i(Em,"computeTextAlternative");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 ad(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(ad,"ownKeys");function ld(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ad(Object(r),!0).forEach(function(n){US(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ad(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}i(ld,"_objectSpread");function US(e,t,r){return t=VS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}i(US,"_defineProperty");function VS(e){var t=HS(e,"string");return yo(t)==="symbol"?t:String(t)}i(VS,"_toPropertyKey");function HS(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(HS,"_toPrimitive");function zS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=es(e,"aria-describedby").map(function(s){return Em(s,ld(ld({},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(zS,"computeAccessibleDescription");function GS(e){return rr(e,["caption","code","deletion","emphasis","generic","insertion","none","paragraph","presentation","strong","subscript","superscript"])}i(GS,"prohibitsNaming");function WS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return GS(e)?"":Em(e,t)}i(WS,"computeAccessibleName");var Tm=We(wp(),1),eB=We(uv(),1),tB=We(dv(),1),KS=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(KS,"GenericTypeError");var YS=KS,XS=class extends YS{constructor(...t){super("be an HTMLElement or an SVGElement",...t)}};i(XS,"HtmlElementTypeError");var Vg=XS,QS=class extends YS{constructor(...t){super("be a Node",...t)}};i(QS,"NodeTypeError");var Hg=QS;function wm(e,t,...r){if(!e||!e.ownerDocument||!e.ownerDocument.defaultView)throw new t(e,...r)}i(wm,"checkHasWindow");function ZS(e,...t){wm(e,Hg,...t);const r=e.ownerDocument.defaultView;if(!(e instanceof r.Node))throw new Hg(e,...t)}i(ZS,"checkNode");function Se(e,...t){wm(e,Vg,...t);const r=e.ownerDocument.defaultView;if(!(e instanceof r.HTMLElement)&&!(e instanceof r.SVGElement))throw new Vg(e,...t)}i(Se,"checkHtmlElement");var e0=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(e0,"InvalidCSSError");var rB=e0;function t0(e,...t){const r=G$(`selector { ${e} }`,{silent:!0}).stylesheet;if(r.parsingErrors&&r.parsingErrors.length>0){const{reason:o,line:s}=r.parsingErrors[0];throw new rB({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(t0,"parseCSS");function cd(e,t){return typeof t=="string"?t:e.utils.stringify(t)}i(cd,"display");function Ge(e,t,r,n,o,s){return[`${t}
|
|
212
|
-
`,`${r}:
|
|
213
|
-
${e.utils.EXPECTED_COLOR((0,Jg.default)(cd(e,n),2))}`,`${o}:
|
|
214
|
-
${e.utils.RECEIVED_COLOR((0,Jg.default)(cd(e,s),2))}`].join(`
|
|
215
|
-
`)}i(Ge,"getMessage");function r0(e,t){return t instanceof RegExp?t.test(e):e.includes(String(t))}i(r0,"matches");function xs(e,t){console.warn(`Warning: ${e} has been deprecated and will be removed in future updates.`,t)}i(xs,"deprecate");function Ns(e){return e.replace(/\s+/g," ").trim()}i(Ns,"normalize");function Ar(e){return e.tagName&&e.tagName.toLowerCase()}i(Ar,"getTag");function n0({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(n0,"getSelectValue");function o0(e){switch(e.type){case"number":return e.value===""?null:Number(e.value);case"checkbox":return e.checked;default:return e.value}}i(o0,"getInputValue");var nB=["meter","progressbar","slider","spinbutton"];function i0(e){if(nB.includes(e.getAttribute("role")))return Number(e.getAttribute("aria-valuenow"))}i(i0,"getAccessibleValue");function _m(e){if(e)switch(e.tagName.toLowerCase()){case"input":return o0(e);case"select":return n0(e);default:return e.value??i0(e)}}i(_m,"getSingleElementValue");function s0(e,{wordConnector:t=", ",lastWordConnector:r=" and "}={}){return[e.slice(0,-1).join(t),e[e.length-1]].join(e.length>1?r:"")}i(s0,"toSentence");function fc(e,t){return Array.isArray(e)&&Array.isArray(t)?[...new Set(e)].every(r=>new Set(t).has(r)):e===t}i(fc,"compareAsSet");function ja(e,t){return xs("toBeInTheDOM","Please use toBeInTheDocument for searching the entire document and toContainElement for searching a specific container."),e&&Se(e,ja,this),t&&Se(t,ja,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(ja,"toBeInTheDOM");function Sm(e){(e!==null||!this.isNot)&&Se(e,Sm,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(Sm,"toBeInTheDocument");function Pm(e){return xs("toBeEmpty","Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM."),Se(e,Pm,this),{pass:e.innerHTML==="",message:i(()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeEmpty`,"element",""),"","Received:",` ${this.utils.printReceived(e.innerHTML)}`].join(`
|
|
218
|
-
`),"message")}}i(Pm,"toBeEmpty");function Am(e){return Se(e,Am,this),{pass:a0(e),message:i(()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeEmptyDOMElement`,"element",""),"","Received:",` ${this.utils.printReceived(e.innerHTML)}`].join(`
|
|
219
|
-
`),"message")}}i(Am,"toBeEmptyDOMElement");function a0(e){return[...e.childNodes].filter(r=>r.nodeType!==8).length===0}i(a0,"isEmptyElement");function ka(e,t){return Se(e,ka,this),t!==null&&Se(t,ka,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(ka,"toContainElement");function l0(e,t){const r=e.ownerDocument.createElement("div");return r.innerHTML=t,r.innerHTML}i(l0,"getNormalizedHtml");function Rm(e,t){if(Se(e,Rm,this),typeof t!="string")throw new Error(`.toContainHTML() expects a string value, got ${t}`);return{pass:e.outerHTML.includes(l0(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(Rm,"toContainHTML");function Om(e,t,r={normalizeWhitespace:!0}){ZS(e,Om,this);const n=r.normalizeWhitespace?Ns(e.textContent):e.textContent.replace(/\u00a0/g," "),o=n!==""&&t==="";return{pass:!o&&r0(n,t),message:i(()=>{const s=this.isNot?"not to":"to";return Ge(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(Om,"toHaveTextContent");function Da(e,t){Se(e,Da,this);const r=zS(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 Ge(this,this.utils.matcherHint(`${this.isNot?".not":""}.${Da.name}`,"element",""),`Expected element ${s} have accessible description`,t,"Received",r)},"message")}}i(Da,"toHaveAccessibleDescription");var yi="aria-invalid",oB=["false"];function Cm(e,t){Se(e,Cm,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(()=>Ge(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(yi);if(!e.hasAttribute(yi)||oB.includes(a))return{pass:!1,message:i(()=>Ge(this,this.utils.matcherHint(n,"element"),"Expected element to be marked as invalid with attribute",`${yi}="${String(!0)}"`,"Received",e.hasAttribute("aria-invalid")?`${yi}="${e.getAttribute(yi)}`:null),"message")};const u=Ns(e.ownerDocument.getElementById(o)?.textContent??"");return{pass:t===void 0?!!u:t instanceof RegExp?t.test(u):this.equals(u,t),message:i(()=>Ge(this,this.utils.matcherHint(n,"element"),`Expected element ${r} have accessible error message`,t??"","Received",u),"message")}}i(Cm,"toHaveAccessibleErrorMessage");var iB=d0(Tm.elementRoles);function La(e,t){Se(e,La,this);const r=c0(e);return{pass:r.some(o=>o===t),message:i(()=>{const o=this.isNot?"not to":"to";return Ge(this,this.utils.matcherHint(`${this.isNot?".not":""}.${La.name}`,"element",""),`Expected element ${o} have role`,t,"Received",r.join(", "))},"message")}}i(La,"toHaveRole");function c0(e){return e.hasAttribute("role")?e.getAttribute("role").split(" ").filter(Boolean):u0(e)}i(c0,"getExplicitOrImplicitRoles");function u0(e){for(const{match:t,roles:r}of iB)if(t(e))return[...r];return[]}i(u0,"getImplicitAriaRoles");function d0(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(d0,"buildElementRoleList");function Fa(e,t){Se(e,Fa,this);const r=WS(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 Ge(this,this.utils.matcherHint(`${this.isNot?".not":""}.${Fa.name}`,"element",""),`Expected element ${s} have accessible name`,t,"Received",r)},"message")}}i(Fa,"toHaveAccessibleName");function ud(e,t,r){return r===void 0?t:`${t}=${e(r)}`}i(ud,"printAttribute");function p0(e,t,r){return r===void 0?`element.hasAttribute(${e(t)})`:`element.getAttribute(${e(t)}) === ${e(r)}`}i(p0,"getAttributeComment");function xm(e,t,r){Se(e,xm,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?ud(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:p0(this.utils.stringify,t,r)});return Ge(this,u,`Expected the element ${a} have attribute`,ud(this.utils.stringify,t,r),"Received",c)},"message")}}i(xm,"toHaveAttribute");function f0(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(f0,"getExpectedClassNamesAndOptions");function dd(e){return e?e.split(/\s+/).filter(t=>t.length>0):[]}i(dd,"splitClassNames");function pd(e,t){return e.every(r=>typeof r=="string"?t.includes(r):t.some(n=>r.test(n)))}i(pd,"isSubset$1");function Nm(e,...t){Se(e,Nm,this);const{expectedClassNames:r,options:n}=f0(t),o=dd(e.getAttribute("class")),s=r.reduce((c,u)=>c.concat(typeof u=="string"||!u?dd(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:pd(s,o)&&s.length===o.length,message:i(()=>{const c=this.isNot?"not to":"to";return Ge(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:pd(s,o),message:i(()=>{const c=this.isNot?"not to":"to";return Ge(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?Ge(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(Nm,"toHaveClass");function m0(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(m0,"getStyleDeclaration");function h0(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(h0,"isSubset");function fd(e){return Object.keys(e).sort().map(t=>`${t}: ${e[t]};`).join(`
|
|
224
|
-
`)}i(fd,"printoutStyles");function y0(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(fd(t),fd(n)).replace(`${eB.default.red("+ Received")}
|
|
225
|
-
`,"")}i(y0,"expectedDiff");function $a(e,t){Se(e,$a,this);const r=typeof t=="object"?t:t0(t,$a,this),{getComputedStyle:n}=e.ownerDocument.defaultView,o=m0(e.ownerDocument,r),s=n(e);return{pass:h0(o,s),message:i(()=>{const a=`${this.isNot?".not":""}.toHaveStyle`;return[this.utils.matcherHint(a,"element",""),y0(this.utils.diff,o,s)].join(`
|
|
226
|
-
|
|
227
|
-
`)},"message")}}i($a,"toHaveStyle");function Im(e){return Se(e,Im,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(Im,"toHaveFocus");function g0(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(g0,"getMultiElementValue");function b0(e,t){const r=[...e.querySelectorAll(`[name="${(0,tB.default)(t)}"]`)];if(r.length!==0)switch(r.length){case 1:return _m(r[0]);default:return g0(r)}}i(b0,"getFormValue");function v0(e){return/\[\]$/.test(e)?e.slice(0,-2):e}i(v0,"getPureName");function E0(e){return Array.from(e.elements).map(r=>r.name).reduce((r,n)=>({...r,[v0(n)]:b0(e,n)}),{})}i(E0,"getAllFormValues");function Mm(e,t){if(Se(e,Mm,this),!e.elements)throw new Error("toHaveFormValues must be called on a form or a fieldset");const r=E0(e);return{pass:Object.entries(t).every(([n,o])=>fc(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(Mm,"toHaveFormValues");function T0(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(T0,"isStyleVisible");function w0(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(w0,"isAttributeVisible");function qm(e,t){return T0(e)&&w0(e,t)&&(!e.parentElement||qm(e.parentElement,e))}i(qm,"isElementVisible");function jm(e){Se(e,jm,this);const t=e.ownerDocument===e.getRootNode({composed:!0}),r=t&&qm(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(jm,"toBeVisible");var sB=["fieldset","input","select","optgroup","option","button","textarea"];function _0(e,t){return Ar(e)==="legend"&&Ar(t)==="fieldset"&&e.isSameNode(Array.from(t.children).find(r=>Ar(r)==="legend"))}i(_0,"isFirstLegendChildOfFieldset");function S0(e,t){return Dm(t)&&!_0(e,t)}i(S0,"isElementDisabledByParent");function P0(e){return e.includes("-")}i(P0,"isCustomElement");function km(e){const t=Ar(e);return sB.includes(t)||P0(t)}i(km,"canElementBeDisabled");function Dm(e){return km(e)&&e.hasAttribute("disabled")}i(Dm,"isElementDisabled");function Lm(e){const t=e.parentElement;return!!t&&(S0(e,t)||Lm(t))}i(Lm,"isAncestorDisabled");function Fm(e){return km(e)&&(Dm(e)||Lm(e))}i(Fm,"isElementOrAncestorDisabled");function $m(e){Se(e,$m,this);const t=Fm(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($m,"toBeDisabled");function Bm(e){Se(e,Bm,this);const t=!Fm(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(Bm,"toBeEnabled");var aB=["select","textarea"],lB=["input","select","textarea"],cB=["color","hidden","range","submit","image","reset"],uB=["checkbox","combobox","gridcell","listbox","radiogroup","spinbutton","textbox","tree"];function A0(e){return aB.includes(Ar(e))&&e.hasAttribute("required")}i(A0,"isRequiredOnFormTagsExceptInput");function R0(e){return Ar(e)==="input"&&e.hasAttribute("required")&&(e.hasAttribute("type")&&!cB.includes(e.getAttribute("type"))||!e.hasAttribute("type"))}i(R0,"isRequiredOnSupportedInput");function O0(e){return e.hasAttribute("aria-required")&&e.getAttribute("aria-required")==="true"&&(lB.includes(Ar(e))||e.hasAttribute("role")&&uB.includes(e.getAttribute("role")))}i(O0,"isElementRequiredByARIA");function Jm(e){Se(e,Jm,this);const t=A0(e)||R0(e)||O0(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(Jm,"toBeRequired");var dB=["form","input","select","textarea"];function C0(e){return e.hasAttribute("aria-invalid")&&e.getAttribute("aria-invalid")!=="false"}i(C0,"isElementHavingAriaInvalid");function x0(e){return dB.includes(Ar(e))}i(x0,"isSupportsValidityMethod");function Um(e){const t=C0(e);return x0(e)?t||!e.checkValidity():t}i(Um,"isElementInvalid");function Vm(e){Se(e,Vm,this);const t=Um(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(Vm,"toBeInvalid");function Hm(e){Se(e,Hm,this);const t=!Um(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(Hm,"toBeValid");function zm(e,t){if(Se(e,zm,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=_m(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?fc(r,t):!!r,message:i(()=>{const a=this.isNot?"not to":"to",c=this.utils.matcherHint(`${this.isNot?".not":""}.toHaveValue`,"element",t);return Ge(this,c,`Expected the element ${a} have value`,n?o:"(any)","Received",s)},"message")}}i(zm,"toHaveValue");function Gm(e,t){Se(e,Gm,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=N0(r,e),o=I0(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(()=>Ge(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveDisplayValue`,"element",""),`Expected element ${this.isNot?"not ":""}to have display value`,t,"Received",n),"message")}}i(Gm,"toHaveDisplayValue");function N0(e,t){return e==="select"?Array.from(t).filter(r=>r.selected).map(r=>r.textContent):[t.value]}i(N0,"getValues");function I0(e){return e instanceof Array?e:[e]}i(I0,"getExpectedValues");function Wm(e){Se(e,Wm,this);const t=i(()=>e.tagName.toLowerCase()==="input"&&["checkbox","radio"].includes(e.type),"isValidInput"),r=i(()=>Km(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 ${M0()} 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(Wm,"toBeChecked");function M0(){return s0(q0().map(e=>`role="${e}"`),{lastWordConnector:" or "})}i(M0,"supportedRolesSentence");function q0(){return Tm.roles.keys().filter(Km)}i(q0,"supportedRoles");function Km(e){return Tm.roles.get(e)?.props["aria-checked"]!==void 0}i(Km,"roleSupportsChecked");function Ym(e){Se(e,Ym,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(Ym,"toBePartiallyChecked");function Xm(e,t){xs("toHaveDescription","Please use toHaveAccessibleDescription."),Se(e,Xm,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=Ns(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 Ge(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(Xm,"toHaveDescription");function Qm(e,t){if(xs("toHaveErrorMessage","Please use toHaveAccessibleErrorMessage."),Se(e,Qm,this),!e.hasAttribute("aria-invalid")||e.getAttribute("aria-invalid")==="false"){const a=this.isNot?".not":"";return{pass:!1,message:i(()=>Ge(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=Ns(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 Ge(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(Qm,"toHaveErrorMessage");function j0(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(j0,"getSelection");function Zm(e,t){Se(e,Zm,this);const r=t!==void 0;if(r&&typeof t!="string")throw new Error("expected selection must be a string or undefined");const n=j0(e);return{pass:r?fc(n,t):!!n,message:i(()=>{const o=this.isNot?"not to":"to",s=this.utils.matcherHint(`${this.isNot?".not":""}.toHaveSelection`,"element",t);return Ge(this,s,`Expected the element ${o} have selection`,r?t:"(any)","Received",n)},"message")}}i(Zm,"toHaveSelection");function eh(e){Se(e,eh,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 Ge(this,a,"Expected element to have",`aria-pressed="${this.isNot?"false":"true"}"`,"Received",`aria-pressed="${n}"`)},"message")}}i(eh,"toBePressed");function th(e){Se(e,th,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 Ge(this,c,`Expected element ${a} have`,'aria-pressed="mixed"',"Received",`aria-pressed="${n}"`)},"message")}}i(th,"toBePartiallyPressed");We(cv(),1);We(wp(),1);We(uv(),1);We(dv(),1);var pu,zg;function k0(){if(zg)return pu;zg=1;var e,t,r,n,o,s,a,c,u,d,p,f,h,y,g,E,T,v,_;return h=/\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\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,E=/[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/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))?$|[{}([,;<>=*%&|^!~?:]$/,T=/^(?:=>|[;\]){}]|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),pu=i(function*(R,{jsx:N=!1}={}){var j,C,P,w,S,k,I,V,H,A,L,$,D,K;for({length:k}=R,w=0,S="",K=[{tag:"JS"}],j=[],L=0,$=!1;w<k;){switch(V=K[K.length-1],V.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if(R[w]==="/"&&(v.test(S)||s.test(S))&&(h.lastIndex=w,I=h.exec(R))){w=h.lastIndex,S=I[0],$=!0,yield{type:"RegularExpressionLiteral",value:I[0],closed:I[1]!==void 0&&I[1]!=="\\"};continue}if(f.lastIndex=w,I=f.exec(R)){switch(D=I[0],H=f.lastIndex,A=D,D){case"(":S==="?NonExpressionParenKeyword"&&K.push({tag:"JSNonExpressionParen",nesting:L}),L++,$=!1;break;case")":L--,$=!0,V.tag==="JSNonExpressionParen"&&L===V.nesting&&(K.pop(),A="?NonExpressionParenEnd",$=!1);break;case"{":f.lastIndex=0,P=!T.test(S)&&(v.test(S)||s.test(S)),j.push(P),$=!1;break;case"}":switch(V.tag){case"InterpolationInTemplate":if(j.length===V.nesting){E.lastIndex=w,I=E.exec(R),w=E.lastIndex,S=I[0],I[1]==="${"?(S="?InterpolationInTemplate",$=!1,yield{type:"TemplateMiddle",value:I[0]}):(K.pop(),$=!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}}$=j.pop(),A=$?"?ExpressionBraceEnd":"}";break;case"]":$=!0;break;case"++":case"--":A=$?"?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}$=!1;break;default:$=!1}w=H,S=A,yield{type:"Punctuator",value:D};continue}if(e.lastIndex=w,I=e.exec(R)){switch(w=e.lastIndex,A=I[0],I[0]){case"for":case"if":case"while":case"with":S!=="."&&S!=="?."&&(A="?NonExpressionParenKeyword")}S=A,$=!s.test(I[0]),yield{type:I[1]==="#"?"PrivateIdentifier":"IdentifierName",value:I[0]};continue}if(g.lastIndex=w,I=g.exec(R)){w=g.lastIndex,S=I[0],$=!0,yield{type:"StringLiteral",value:I[0],closed:I[2]!==void 0};continue}if(p.lastIndex=w,I=p.exec(R)){w=p.lastIndex,S=I[0],$=!0,yield{type:"NumericLiteral",value:I[0]};continue}if(E.lastIndex=w,I=E.exec(R)){w=E.lastIndex,S=I[0],I[1]==="${"?(S="?InterpolationInTemplate",K.push({tag:"InterpolationInTemplate",nesting:j.length}),$=!1,yield{type:"TemplateHead",value:I[0]}):($=!0,yield{type:"NoSubstitutionTemplate",value:I[0],closed:I[1]==="`"});continue}break;case"JSXTag":case"JSXTagEnd":if(r.lastIndex=w,I=r.exec(R)){switch(w=r.lastIndex,A=I[0],I[0]){case"<":K.push({tag:"JSXTag"});break;case">":K.pop(),S==="/"||V.tag==="JSXTagEnd"?(A="?JSX",$=!0):K.push({tag:"JSXChildren"});break;case"{":K.push({tag:"InterpolationInJSX",nesting:j.length}),A="?InterpolationInJSX",$=!1;break;case"/":S==="<"&&(K.pop(),K[K.length-1].tag==="JSXChildren"&&K.pop(),K.push({tag:"JSXTagEnd"}))}S=A,yield{type:"JSXPunctuator",value:I[0]};continue}if(t.lastIndex=w,I=t.exec(R)){w=t.lastIndex,S=I[0],yield{type:"JSXIdentifier",value:I[0]};continue}if(n.lastIndex=w,I=n.exec(R)){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(R)){w=o.lastIndex,S=I[0],yield{type:"JSXText",value:I[0]};continue}switch(R[w]){case"<":K.push({tag:"JSXTag"}),w++,S="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":K.push({tag:"InterpolationInJSX",nesting:j.length}),w++,S="?InterpolationInJSX",$=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(_.lastIndex=w,I=_.exec(R)){w=_.lastIndex,yield{type:"WhiteSpace",value:I[0]};continue}if(c.lastIndex=w,I=c.exec(R)){w=c.lastIndex,$=!1,a.test(S)&&(S="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:I[0]};continue}if(u.lastIndex=w,I=u.exec(R)){w=u.lastIndex,d.test(I[0])&&($=!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(R)){w=y.lastIndex,$=!1,yield{type:"SingleLineComment",value:I[0]};continue}C=String.fromCodePoint(R.codePointAt(w)),w+=C.length,S=C,$=!1,yield{type:V.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:C}}},"jsTokens_1"),pu}i(k0,"requireJsTokens");var pB=k0();gf(pB);var D0={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(D0.keyword);new Set(D0.strict);function qi(e,t){if(!e)throw new Error(t)}i(qi,"assert");function pn(e,t){return typeof t===e}i(pn,"isType");function L0(e){return e instanceof Promise}i(L0,"isPromise");function go(e,t,r){Object.defineProperty(e,t,r)}i(go,"define");function gn(e,t,r){go(e,t,{value:r,configurable:!0,writable:!0})}i(gn,"defineValue");var Br=Symbol.for("tinyspy:spy"),fB=new Set,mB=i(e=>{e.called=!1,e.callCount=0,e.calls=[],e.results=[],e.resolves=[],e.next=[]},"reset"),hB=i(e=>(go(e,Br,{value:{reset:i(()=>mB(e[Br]),"reset")}}),e[Br]),"defineState"),md=i(e=>e[Br]||hB(e),"getInternalState");function F0(e){qi(pn("function",e)||pn("undefined",e),"cannot spy on a non-function value");let t=i(function(...n){let o=md(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 L0(a)&&a.then(p=>o.resolves[u]=["ok",p],p=>o.resolves[u]=["error",p]),o.results.push(d),a},"fn");gn(t,"_isMockFunction",!0),gn(t,"length",e?e.length:0),gn(t,"name",e&&e.name||"spy");let r=md(t);return r.reset(),r.impl=e,t}i(F0,"createInternalSpy");function $0(e){return!!e&&e._isMockFunction===!0}i($0,"isMockFunction");var B0=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"),Gg=i((e,t)=>{t!=null&&typeof t=="function"&&t.prototype!=null&&Object.setPrototypeOf(e.prototype,t.prototype)},"setPototype");function rh(e,t,r){qi(!pn("undefined",e),"spyOn could not find an object to spy upon"),qi(pn("object",e)||pn("function",e),"cannot spyOn on a primitive value");let[n,o]=(()=>{if(!pn("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]=B0(e,n)||[];qi(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&&V0(u)&&(u=u[Br].getOriginal());let d=i(y=>{let{value:g,...E}=a||{configurable:!0,writable:!0};o!=="value"&&delete E.writable,E[o]=y,go(e,n,E)},"reassign"),p=i(()=>{s!==e?Reflect.deleteProperty(e,n):a&&!u?go(e,n,a):d(u)},"restore");r||(r=u);let f=U0(F0(r),r);o==="value"&&Gg(f,u);let h=f[Br];return gn(h,"restore",p),gn(h,"getOriginal",()=>c?u():u),gn(h,"willCall",y=>(h.impl=y,f)),d(c?()=>(Gg(f,r),f):f),fB.add(f),f}i(rh,"internalSpyOn");var yB=new Set(["length","name","prototype"]);function J0(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]||yB.has(o)||(t.add(o),r[o]=Object.getOwnPropertyDescriptor(e,o));e=Object.getPrototypeOf(e)}return{properties:t,descriptors:r}}i(J0,"getAllProperties");function U0(e,t){if(!t||Br in t)return e;let{properties:r,descriptors:n}=J0(t);for(let o of r){let s=n[o];B0(e,o)||go(e,o,s)}return e}i(U0,"wrap");function V0(e){return $0(e)&&"getOriginal"in e[Br]}i(V0,"isSpyFunction");var Is=new Set;function bn(e){return typeof e=="function"&&"_isMockFunction"in e&&e._isMockFunction}i(bn,"isMockFunction");function H0(e,t,r){const o=r?{[{get:"getter",set:"setter"}[r]]:t}:t;let s;const a=z0(e,t),c=a&&a[r||"value"];bn(c)&&(s=c.mock._state());try{const u=rh(e,o),d=nh(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(H0,"spyOn");var gB=0;function nh(e){const t=e;let r,n=[],o=!1,s=[],a=[],c=[];const u=md(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(++gB),(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 h(y,g){const E=r;r=y,u.willCall(p),o=!0;const T=i(()=>{r=E,o=!1},"reset"),v=g();return typeof v=="object"&&v&&typeof v.then=="function"?v.then(()=>(T(),t)):(T(),t)}return i(h,"withImplementation"),t.withImplementation=h,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),Is.add(t),t}i(nh,"enhanceSpy");function hd(e){const t=nh(rh({spy:e||function(){}},"spy"));return e&&t.mockImplementation(e),t}i(hd,"fn");function z0(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(z0,"getDescriptor");var ts=Symbol.for("matchers-object"),rs=Symbol.for("$$jest-matchers-object-storybook"),oh=Symbol.for("expect-global"),yd=Symbol.for("asymmetric-matchers-object"),bB={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")}}},Ba=Ue.green,ih=Ue.red,vB=Ue.inverse,EB=Ue.bold,Nr=Ue.dim;function G0(e,t="received",r="expected",n={}){const{comment:o="",isDirectExpectCall:s=!1,isNot:a=!1,promise:c="",secondArgument:u="",expectedColor:d=Ba,receivedColor:p=ih,secondArgumentColor:f=Ba}=n;let h="",y="expect";return!s&&t!==""&&(h+=Nr(`${y}(`)+p(t),y=")"),c!==""&&(h+=Nr(`${y}.`)+c,y=""),a&&(h+=`${Nr(`${y}.`)}not`,y=""),e.includes(".")?y+=e:(h+=Nr(`${y}.`)+e,y=""),r===""?y+="()":(h+=Nr(`${y}(`)+d(r),u&&(h+=Nr(", ")+f(u)),y=")"),o!==""&&(y+=` // ${o}`),y!==""&&(h+=Nr(y)),h}i(G0,"matcherHint");var TB="·";function sh(e){return e.replace(/\s+$/gm,t=>TB.repeat(t.length))}i(sh,"replaceTrailingSpaces");function W0(e){return ih(sh(vt(e)))}i(W0,"printReceived");function K0(e){return Ba(sh(vt(e)))}i(K0,"printExpected");function ah(){return{EXPECTED_COLOR:Ba,RECEIVED_COLOR:ih,INVERTED_COLOR:vB,BOLD_WEIGHT:EB,DIM_COLOR:Nr,diff:Ln,matcherHint:G0,printReceived:W0,printExpected:K0,printDiffOrStringify:Af,printWithType:Y0}}i(ah,"getMatcherUtils");function Y0(e,t,r){const n=Gi(t),o=n!=="null"&&n!=="undefined"?`${e} has type: ${n}
|
|
261
|
-
`:"",s=`${e} has value: ${r(t)}`;return o+s}i(Y0,"printWithType");function mc(){return globalThis[rs].customEqualityTesters}i(mc,"getCustomEqualityTesters");function Pe(e,t,r,n){return r=r||[],ro(e,t,[],[],r,n?lh:Z0)}i(Pe,"equals");function gd(e){return!!e&&typeof e=="object"&&"asymmetricMatch"in e&&Dt("Function",e.asymmetricMatch)}i(gd,"isAsymmetric");function X0(e,t){const r=gd(e),n=gd(t);if(!(r&&n)){if(r)return e.asymmetricMatch(t);if(n)return t.asymmetricMatch(e)}}i(X0,"asymmetricMatch");function ro(e,t,r,n,o,s){let a=!0;const c=X0(e,t);if(c!==void 0)return c;const u={equals:Pe};for(let g=0;g<o.length;g++){const E=o[g].call(u,e,t,o);if(E!==void 0)return E}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,E=+t;return g===E||Number.isNaN(g)&&Number.isNaN(E)}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(vd(e)&&vd(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 Q0(e,t,r,n,o,s)}finally{r.pop(),n.pop()}const f=bd(e,s);let h,y=f.length;if(bd(t,s).length!==y)return!1;for(;y--;)if(h=f[y],a=s(t,h)&&ro(e[h],t[h],r,n,o,s),!a)return!1;return r.pop(),n.pop(),a}i(ro,"eq");function Q0(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=ro(e.cause,t.cause,r,n,o,s)),e instanceof AggregateError&&t instanceof AggregateError&&a&&(a=ro(e.errors,t.errors,r,n,o,s)),a&&(a=ro({...e},{...t},r,n,o,s)),a}i(Q0,"isErrorEqual");function bd(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(bd,"keys");function Z0(e,t){return lh(e,t)&&e[t]!==void 0}i(Z0,"hasDefinedKey");function lh(e,t){return Object.prototype.hasOwnProperty.call(e,t)}i(lh,"hasKey");function Dt(e,t){return Object.prototype.toString.apply(t)===`[object ${e}]`}i(Dt,"isA");function vd(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(vd,"isDomNode");var eP="@@__IMMUTABLE_KEYED__@@",tP="@@__IMMUTABLE_SET__@@",wB="@@__IMMUTABLE_LIST__@@",hc="@@__IMMUTABLE_ORDERED__@@",_B="@@__IMMUTABLE_RECORD__@@";function rP(e){return!!(e&&e[eP]&&!e[hc])}i(rP,"isImmutableUnorderedKeyed");function nP(e){return!!(e&&e[tP]&&!e[hc])}i(nP,"isImmutableUnorderedSet");function Ms(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}i(Ms,"isObjectLiteral");function oP(e){return!!(e&&Ms(e)&&e[wB])}i(oP,"isImmutableList");function iP(e){return!!(e&&Ms(e)&&e[eP]&&e[hc])}i(iP,"isImmutableOrderedKeyed");function sP(e){return!!(e&&Ms(e)&&e[tP]&&e[hc])}i(sP,"isImmutableOrderedSet");function aP(e){return!!(e&&Ms(e)&&e[_B])}i(aP,"isImmutableRecord");var lP=Symbol.iterator;function Ed(e){return!!(e!=null&&e[lP])}i(Ed,"hasIterator");function Ot(e,t,r=[],n=[],o=[]){if(typeof e!="object"||typeof t!="object"||Array.isArray(e)||Array.isArray(t)||!Ed(e)||!Ed(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!==Ot),c];function c(d,p){return Ot(d,p,[...r],[...n],[...o])}if(i(c,"iterableEqualityWithStack"),e.size!==void 0){if(e.size!==t.size)return!1;if(Dt("Set",e)||nP(e)){let d=!0;for(const p of e)if(!t.has(p)){let f=!1;for(const h of t)Pe(p,h,a)===!0&&(f=!0);if(f===!1){d=!1;break}}return n.pop(),o.pop(),d}else if(Dt("Map",e)||rP(e)){let d=!0;for(const p of e)if(!t.has(p[0])||!Pe(p[1],t.get(p[0]),a)){let f=!1;for(const h of t){const y=Pe(p[0],h[0],a);let g=!1;y===!0&&(g=Pe(p[1],h[1],a)),g===!0&&(f=!0)}if(f===!1){d=!1;break}}return n.pop(),o.pop(),d}}const u=t[lP]();for(const d of e){const p=u.next();if(p.done||!Pe(d,p.value,a))return!1}if(!u.next().done)return!1;if(!oP(e)&&!iP(e)&&!sP(e)&&!aP(e)){const d=Object.entries(e),p=Object.entries(t);if(!Pe(d,p,a))return!1}return n.pop(),o.pop(),!0}i(Ot,"iterableEquality");function yc(e,t){return!e||typeof e!="object"||e===Object.prototype?!1:Object.prototype.hasOwnProperty.call(e,t)||yc(Object.getPrototypeOf(e),t)}i(yc,"hasPropertyInObject");function cP(e){return Ii(e)&&!(e instanceof Error)&&!Array.isArray(e)&&!(e instanceof Date)}i(cP,"isObjectWithKeys");function Do(e,t,r=[]){const n=r.filter(s=>s!==Do),o=i((s=new WeakMap)=>(a,c)=>{if(cP(c))return Object.keys(c).every(u=>{if(c[u]!=null&&typeof c[u]=="object"){if(s.has(c[u]))return Pe(a[u],c[u],n);s.set(c[u],!0)}const d=a!=null&&yc(a,u)&&Pe(a[u],c[u],[...n,o(s)]);return s.delete(c[u]),d})},"subsetEqualityWithContext");return o()(e,t)}i(Do,"subsetEquality");function Td(e,t){if(!(e==null||t==null||e.constructor===t.constructor))return!1}i(Td,"typeEquality");function wd(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(wd,"arrayBufferEquality");function Ja(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!==Ja);return Pe(e,t,s,!0)&&Pe(n,o)}i(Ja,"sparseArrayEquality");function uP(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(uP,"generateToBeMessage");function dP(e,t){return`${t} ${e}${t===1?"":"s"}`}i(dP,"pluralize");function Xs(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(Xs,"getObjectKeys");function pP(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(Ii(a)&&Ii(c)){if(Pe(a,c,[...r,Ot,Do]))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 Xs(a))yc(c,d)?u[d]=s.has(a[d])?s.get(a[d]):o(s)(a[d],c[d]):s.has(a[d])||(n+=1,Ii(a[d])&&(n+=Xs(a[d]).length),o(s)(a[d],c[d]));if(Xs(u).length>0)return u}}return a},"getObjectSubsetWithContext");return{subset:o()(e,t),stripped:n}}i(pP,"getObjectSubset");if(!Object.prototype.hasOwnProperty.call(globalThis,ts)){const e=new WeakMap;Object.defineProperty(globalThis,ts,{get:i(()=>e,"get")})}if(!Object.prototype.hasOwnProperty.call(globalThis,rs)){const e=Object.create(null),t=[];Object.defineProperty(globalThis,rs,{configurable:!0,get:i(()=>({state:globalThis[ts].get(globalThis[oh]),matchers:e,customEqualityTesters:t}),"get")})}if(!Object.prototype.hasOwnProperty.call(globalThis,yd)){const e=Object.create(null);Object.defineProperty(globalThis,yd,{get:i(()=>e,"get")})}function ns(e){return globalThis[ts].get(e)}i(ns,"getState");function Qs(e,t){const r=globalThis[ts],n=r.get(t)||{},o=Object.defineProperties(n,{...Object.getOwnPropertyDescriptors(n),...Object.getOwnPropertyDescriptors(e)});r.set(t,o)}i(Qs,"setState");var fP=class{$$typeof=Symbol.for("jest.asymmetricMatcher");constructor(t,r=!1){this.sample=t,this.inverse=r}getMatcherContext(t){return{...ns(t||globalThis[oh]),equals:Pe,isNot:this.inverse,customTesters:mc(),utils:{...ah(),diff:Ln,stringify:vt,iterableEquality:Ot,subsetEquality:Do}}}};i(fP,"AsymmetricMatcher");var Cr=fP;Cr.prototype[Symbol.for("chai/inspect")]=function(e){const t=vt(this,e.depth,{min:!0});return t.length<=e.truncate?t:`${this.toString()}{…}`};var mP=class extends Cr{constructor(t,r=!1){if(!Dt("String",t))throw new Error("Expected is not a string");super(t,r)}asymmetricMatch(t){const r=Dt("String",t)&&t.includes(this.sample);return this.inverse?!r:r}toString(){return`String${this.inverse?"Not":""}Containing`}getExpectedType(){return"string"}};i(mP,"StringContaining");var Wg=mP,hP=class extends Cr{asymmetricMatch(t){return t!=null}toString(){return"Anything"}toAsymmetricMatcher(){return"Anything"}};i(hP,"Anything");var SB=hP,yP=class extends Cr{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)||!Pe(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(yP,"ObjectContaining");var Kg=yP,gP=class extends Cr{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=>Pe(o,s,r.customTesters)));return this.inverse?!n:n}toString(){return`Array${this.inverse?"Not":""}Containing`}getExpectedType(){return"array"}};i(gP,"ArrayContaining");var Yg=gP,bP=class extends Cr{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(bP,"Any");var PB=bP,vP=class extends Cr{constructor(t,r=!1){if(!Dt("String",t)&&!Dt("RegExp",t))throw new Error("Expected is not a String or a RegExp");super(new RegExp(t),r)}asymmetricMatch(t){const r=Dt("String",t)&&this.sample.test(t);return this.inverse?!r:r}toString(){return`String${this.inverse?"Not":""}Matching`}getExpectedType(){return"string"}};i(vP,"StringMatching");var Xg=vP,EP=class extends Cr{precision;constructor(t,r=2,n=!1){if(!Dt("Number",t))throw new Error("Expected is not a Number");if(!Dt("Number",r))throw new Error("Precision is not a Number");super(t),this.inverse=n,this.precision=r}asymmetricMatch(t){if(!Dt("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,`(${dP("digit",this.precision)})`].join(" ")}};i(EP,"CloseTo");var Qg=EP,AB=i((e,t)=>{t.addMethod(e.expect,"anything",()=>new SB),t.addMethod(e.expect,"any",r=>new PB(r)),t.addMethod(e.expect,"stringContaining",r=>new Wg(r)),t.addMethod(e.expect,"objectContaining",r=>new Kg(r)),t.addMethod(e.expect,"arrayContaining",r=>new Yg(r)),t.addMethod(e.expect,"stringMatching",r=>new Xg(r)),t.addMethod(e.expect,"closeTo",(r,n)=>new Qg(r,n)),e.expect.not={stringContaining:i(r=>new Wg(r,!0),"stringContaining"),objectContaining:i(r=>new Kg(r,!0),"objectContaining"),arrayContaining:i(r=>new Yg(r,!0),"arrayContaining"),stringMatching:i(r=>new Xg(r,!0),"stringMatching"),closeTo:i((r,n)=>new Qg(r,n,!0),"closeTo")}},"JestAsymmetricMatchers");function _d(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(_d,"createAssertionMessage");function Sd(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(Sd,"recordAsyncExpect");function Pd(e,t){var r;e.result||(e.result={state:"fail"}),e.result.state="fail",(r=e.result).errors||(r.errors=[]),e.result.errors.push(Nl(t))}i(Pd,"handleTestError");function ch(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(T_,a=>{Pd(o,a)}):s}catch(s){Pd(o,s)}}}i(ch,"wrapAssertion");var RB=i((e,t)=>{const{AssertionError:r}=e,n=mc();function o(d,p){const f=i(h=>{const y=ch(t,h,p);t.addMethod(e.Assertion.prototype,h,y),t.addMethod(globalThis[rs].matchers,h,y)},"addMethod");Array.isArray(d)?d.forEach(h=>f(h)):f(d)}i(o,"def"),["throw","throws","Throw"].forEach(d=>{t.overwriteMethod(e.Assertion.prototype,d,p=>function(...f){const h=t.flag(this,"promise"),y=t.flag(this,"object"),g=t.flag(this,"negate");if(h==="rejects")t.flag(this,"object",()=>{throw y});else if(h==="resolves"&&typeof y!="function"){if(g)return;{const E=t.flag(this,"message")||"expected promise to throw an error, but it didn't",T={showDiff:!1};throw new r(E,T,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=Pe(p,d,[...n,Ot]);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=Pe(p,d,[...n,Ot,Td,Ja,wd],!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 h="";return f||(Pe(p,d,[...n,Ot,Td,Ja,wd],!0)?h="toStrictEqual":Pe(p,d,[...n,Ot])&&(h="toEqual")),this.assert(f,uP(h),"expected #{this} not to be #{exp} // Object.is equality",d,p)}),o("toMatchObject",function(d){const p=this._obj,f=Pe(p,d,[...n,Ot,Do]),h=t.flag(this,"negate"),{subset:y,stripped:g}=pP(p,d,n);if(f&&h||!f&&!h){const E=t.getMessage(this,[f,"expected #{this} to match object #{exp}","expected #{this} to not match object #{exp}",d,y,!1]),T=g===0?E:`${E}
|
|
269
|
-
(${g} matching ${g===1?"property":"properties"} omitted from actual)`;throw new r(T,{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){Zt(d,"class name",["string"]);const h=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}"`,h,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(h=>Pe(h,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 Zt(p,"actual",["number","bigint"]),Zt(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 Zt(p,"actual",["number","bigint"]),Zt(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 Zt(p,"actual",["number","bigint"]),Zt(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 Zt(p,"actual",["number","bigint"]),Zt(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,h]=d,y=i(()=>Object.prototype.hasOwnProperty.call(p,f)?{value:p[f],exists:!0}:t.getPathInfo(p,f),"getValue"),{value:g,exists:E}=y(),T=E&&(d.length===1||Pe(h,g,n)),v=d.length===1?"":` with value ${t.objDisplay(h)}`;return this.assert(T,`expected #{this} to have property "${f}"${v}`,`expected #{this} to not have property "${f}"${v}`,h,E?g:void 0)}),o("toBeCloseTo",function(d,p=2){const f=this._obj;let h=!1,y=0,g=0;return d===Number.POSITIVE_INFINITY&&f===Number.POSITIVE_INFINITY||d===Number.NEGATIVE_INFINITY&&f===Number.NEGATIVE_INFINITY?h=!0:(y=10**-p/2,g=Math.abs(f-d),h=g<y),this.assert(h,`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(!bn(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(),h=p.mock.calls.length;return this.assert(h===d,`expected "${f}" to be called #{exp} times, but got ${h} times`,`expected "${f}" to not be called #{exp} times`,d,h,!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,h=f>0,y=t.flag(this,"negate");let g=t.getMessage(this,[h,`expected "${p}" to be called at least once`,`expected "${p}" to not be called at all, but actually been called ${f} times`,!0,h]);if(h&&y&&(g=Zs(d,g)),h&&y||!h&&!y)throw new r(g)});function c(d,p){return d.length===p.length&&d.every((f,h)=>Pe(f,p[h],[...n,Ot]))}i(c,"equalsArgumentArray"),o(["toHaveBeenCalledWith","toBeCalledWith"],function(...d){const p=a(this),f=p.getMockName(),h=p.mock.calls.some(E=>c(E,d)),y=t.flag(this,"negate"),g=t.getMessage(this,[h,`expected "${f}" to be called with arguments: #{exp}`,`expected "${f}" to not be called with arguments: #{exp}`,d]);if(h&&y||!h&&!y)throw new r(Zs(p,g,d))}),o("toHaveBeenCalledExactlyOnceWith",function(...d){const p=a(this),f=p.getMockName(),h=p.mock.calls.length,g=p.mock.calls.some(v=>c(v,d))&&h===1,E=t.flag(this,"negate"),T=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&&E||!g&&!E)throw new r(Zs(p,T,d))}),o(["toHaveBeenNthCalledWith","nthCalledWith"],function(d,...p){const f=a(this),h=f.getMockName(),y=f.mock.calls[d-1],g=f.mock.calls.length,E=d<=g;this.assert(y&&c(y,p),`expected ${no(d)} "${h}" call to have been called with #{exp}${E?"":`, but called only ${g} times`}`,`expected ${no(d)} "${h}" call to not have been called with #{exp}`,p,y,E)}),o(["toHaveBeenLastCalledWith","lastCalledWith"],function(...d){const p=a(this),f=p.getMockName(),h=p.mock.calls[p.mock.calls.length-1];this.assert(h&&c(h,d),`expected last "${f}" call to have been called with #{exp}`,`expected last "${f}" call to not have been called with #{exp}`,d,h)});function u(d,p,f){const h=d.mock.invocationCallOrder,y=p.mock.invocationCallOrder;return h.length===0?!f:y.length===0?!1:h[0]<y[0]}i(u,"isSpyCalledBeforeAnotherSpy"),o(["toHaveBeenCalledBefore"],function(d,p=!0){const f=a(this);if(!bn(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(!bn(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"),h=t.flag(this,"negate");let y=null;if(f==="rejects")y=p;else if(f==="resolves"&&typeof p!="function"){if(h)return;{const g=t.flag(this,"message")||"expected promise to throw an error, but it didn't",E={showDiff:!1};throw new r(g,E,t.flag(this,"ssfi"))}}else{let g=!1;try{p()}catch(E){g=!0,y=E}if(!g&&!h){const E=t.flag(this,"message")||"expected function to throw an error, but it didn't",T={showDiff:!1};throw new r(E,T,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=Pe(y,d,[...n,Ot]);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 h=a(this),y=h.getMockName(),g=p(h);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:h})=>h==="fulfilled"?++f:f,0)===p,"condition"),action:"resolved"},{name:["toHaveReturnedTimes","toReturnTimes"],condition:i((d,p)=>d.mock.results.reduce((f,{type:h})=>h==="throw"?f:++f,0)===p,"condition"),action:"called"}].forEach(({name:d,condition:p,action:f})=>{o(d,function(h){const y=a(this),g=y.getMockName(),E=p(y,h);this.assert(E,`expected "${g}" to be successfully ${f} ${h} times`,`expected "${g}" to not be successfully ${f} ${h} times`,`expected resolved times: ${h}`,`received resolved times: ${E}`,!1)})}),[{name:"toHaveResolvedWith",condition:i((d,p)=>d.mock.settledResults.some(({type:f,value:h})=>f==="fulfilled"&&Pe(p,h)),"condition"),action:"resolve"},{name:["toHaveReturnedWith","toReturnWith"],condition:i((d,p)=>d.mock.results.some(({type:f,value:h})=>f==="return"&&Pe(p,h)),"condition"),action:"return"}].forEach(({name:d,condition:p,action:f})=>{o(d,function(h){const y=a(this),g=p(y,h),E=t.flag(this,"negate");if(g&&E||!g&&!E){const T=y.getMockName(),v=t.getMessage(this,[g,`expected "${T}" to ${f} with: #{exp} at least once`,`expected "${T}" to not ${f} with: #{exp}`,h]),_=f==="return"?y.mock.results:y.mock.settledResults;throw new r(TP(y,_,v,h))}})}),[{name:"toHaveLastResolvedWith",condition:i((d,p)=>{const f=d.mock.settledResults[d.mock.settledResults.length-1];return f&&f.type==="fulfilled"&&Pe(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"&&Pe(f.value,p)},"condition"),action:"return"}].forEach(({name:d,condition:p,action:f})=>{o(d,function(h){const y=a(this),g=f==="return"?y.mock.results:y.mock.settledResults,E=g[g.length-1],T=y.getMockName();this.assert(p(y,h),`expected last "${T}" call to ${f} #{exp}`,`expected last "${T}" call to not ${f} #{exp}`,h,E?.value)})}),[{name:"toHaveNthResolvedWith",condition:i((d,p,f)=>{const h=d.mock.settledResults[p-1];return h&&h.type==="fulfilled"&&Pe(h.value,f)},"condition"),action:"resolve"},{name:["toHaveNthReturnedWith","nthReturnedWith"],condition:i((d,p,f)=>{const h=d.mock.results[p-1];return h&&h.type==="return"&&Pe(h.value,f)},"condition"),action:"return"}].forEach(({name:d,condition:p,action:f})=>{o(d,function(h,y){const g=a(this),E=g.getMockName(),v=(f==="return"?g.mock.results:g.mock.settledResults)[h-1],_=`${no(h)} call`;this.assert(p(g,h,y),`expected ${_} "${E}" call to ${f} #{exp}`,`expected ${_} "${E}" 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"),h=t.flag(this,"object");if(t.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .resolves");if(typeof h?.then!="function")throw new TypeError(`You must provide a Promise to expect() when using .resolves, not '${typeof h}'.`);const y=new Proxy(this,{get:i((g,E,T)=>{const v=Reflect.get(g,E,T);return typeof v!="function"?v instanceof e.Assertion?y:v:(..._)=>{t.flag(this,"_name",E);const R=h.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 Sd(f,R,_d(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"),h=t.flag(this,"object"),y=typeof h=="function"?h():h;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((E,T,v)=>{const _=Reflect.get(E,T,v);return typeof _!="function"?_ instanceof e.Assertion?g:_:(...R)=>{t.flag(this,"_name",T);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,...R)));return Sd(f,N,_d(t,this,!!R.length),p)}},"get")});return g},"__VITEST_REJECTS__"))},"JestChaiExpect");function no(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(no,"ordinalOf");function Zs(e,t,r){return e.mock.calls.length&&(t+=Ue.gray(`
|
|
270
|
-
|
|
271
|
-
Received:
|
|
272
|
-
|
|
273
|
-
${e.mock.calls.map((n,o)=>{let s=Ue.bold(` ${no(o+1)} ${e.getMockName()} call:
|
|
274
|
-
|
|
275
|
-
`);return r?s+=Ln(r,n,{omitAnnotationLines:!0}):s+=vt(n).split(`
|
|
276
|
-
`).map(a=>` ${a}`).join(`
|
|
277
|
-
`),s+=`
|
|
278
|
-
`,s}).join(`
|
|
279
|
-
`)}`)),t+=Ue.gray(`
|
|
280
|
-
|
|
281
|
-
Number of calls: ${Ue.bold(e.mock.calls.length)}
|
|
282
|
-
`),t}i(Zs,"formatCalls");function TP(e,t,r,n){return t.length&&(r+=Ue.gray(`
|
|
283
|
-
|
|
284
|
-
Received:
|
|
285
|
-
|
|
286
|
-
${t.map((o,s)=>{let a=Ue.bold(` ${no(s+1)} ${e.getMockName()} call return:
|
|
287
|
-
|
|
288
|
-
`);return n?a+=Ln(n,o.value,{omitAnnotationLines:!0}):a+=vt(o).split(`
|
|
289
|
-
`).map(c=>` ${c}`).join(`
|
|
290
|
-
`),a+=`
|
|
291
|
-
`,a}).join(`
|
|
292
|
-
`)}`)),r+=Ue.gray(`
|
|
293
|
-
|
|
294
|
-
Number of calls: ${Ue.bold(e.mock.calls.length)}
|
|
295
|
-
`),r}i(TP,"formatReturns");function wP(e,t){const r=e._obj,n=tr.flag(e,"negate"),o=tr.flag(e,"promise")||"",s={...ah(),diff:Ln,stringify:vt,iterableEquality:Ot,subsetEquality:Do};return{state:{...ns(t),customTesters:mc(),isNot:n,utils:s,promise:o,equals:Pe,suppressedErrors:[],soft:tr.flag(e,"soft"),poll:tr.flag(e,"poll")},isNot:n,obj:r}}i(wP,"getMatcherState");var _P=class extends Error{constructor(t,r,n){super(t),this.actual=r,this.expected=n}};i(_P,"JestExtendError");var Zg=_P;function SP(e,t,r){return(n,o)=>{Object.entries(r).forEach(([s,a])=>{function c(...h){const{state:y,isNot:g,obj:E}=wP(this,t),T=a.call(y,E,...h);if(T&&typeof T=="object"&&typeof T.then=="function")return T.then(({pass:C,message:P,actual:w,expected:S})=>{if(C&&g||!C&&!g)throw new Zg(P(),w,S)});const{pass:v,message:_,actual:R,expected:N}=T;if(v&&g||!v&&!g)throw new Zg(_(),R,N)}i(c,"expectWrapper");const u=ch(o,s,c);o.addMethod(globalThis[rs].matchers,s,u),o.addMethod(e.Assertion.prototype,s,u);const d=class extends Cr{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=>vt(y)).join(", ")}>`}};i(d,"CustomMatcher");let p=d;const f=i((...h)=>new p(!1,...h),"customMatcher");Object.defineProperty(t,s,{configurable:!0,enumerable:!0,value:f,writable:!0}),Object.defineProperty(t.not,s,{configurable:!0,enumerable:!0,value:i((...h)=>new p(!0,...h),"value"),writable:!0}),Object.defineProperty(globalThis[yd],s,{configurable:!0,enumerable:!0,value:f,writable:!0})})}}i(SP,"JestExtendPlugin");var OB=i((e,t)=>{t.addMethod(e.expect,"extend",(r,n)=>{yn(SP(e,r,n))})},"JestExtend");function PP(){yn(OB),yn(RB),yn(AB);const e=i((n,o)=>{const{assertionCalls:s}=ns(e);return Qs({assertionCalls:s+1,soft:!1},e),$r(n,o)},"expect");Object.assign(e,$r),e.getState=()=>ns(e),e.setState=n=>Qs(n,e),e.extend=n=>$r.extend(e,n),e.soft=(...n)=>{const o=e(...n);return e.setState({soft:!0}),o},e.extend(bB),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"),Qs({assertionCalls:0,isExpectingAssertions:!1,isExpectingAssertionsError:null,expectedAssertionsNumber:null,expectedAssertionsNumberErrorGen:null},e),tr.addMethod(e,"assertions",t),tr.addMethod(e,"hasAssertions",r),e.extend(aS),e}i(PP,"createExpect");var AP=PP();Object.defineProperty(globalThis,oh,{value:AP,writable:!0,configurable:!0});function RP(e,t,r){Object.defineProperty(e,t,r)}i(RP,"f");var ea=Symbol.for("tinyspy:spy"),CB=i(e=>{e.called=!1,e.callCount=0,e.calls=[],e.results=[],e.resolves=[],e.next=[]},"P"),xB=i(e=>(RP(e,ea,{value:{reset:i(()=>CB(e[ea]),"reset")}}),e[ea]),"K"),NB=i(e=>e[ea]||xB(e),"T"),Ad=new Set;function uh(e){return Ad.add(e),()=>void Ad.delete(e)}i(uh,"onMockCall");var IB=i((...e)=>{const t=H0(...e);return ph(t)},"spyOn");function dh(e){const t=e?hd(e):hd();return ph(t)}i(dh,"fn");function ph(e){const t=Rd(e),r=t.mockImplementation.bind(null);return t.mockImplementation=n=>Rd(r(n)),t}i(ph,"reactiveMock");function Rd(e){const t=NB(e),r=t.impl;return t.willCall(function(...n){return Ad.forEach(o=>o(e,n)),r?.apply(this,n)}),e}i(Rd,"listenWhenCalled");function fh(){Is.forEach(e=>e.mockClear())}i(fh,"clearAllMocks");function mh(){Is.forEach(e=>e.mockReset())}i(mh,"resetAllMocks");function hh(){Is.forEach(e=>e.mockRestore())}i(hh,"restoreAllMocks");function OP(e,t={}){return e}i(OP,"mocked");var CP={};Tt(CP,{buildQueries:()=>cr,configure:()=>RA,createEvent:()=>ki,findAllByAltText:()=>TR,findAllByDisplayValue:()=>hR,findAllByLabelText:()=>WA,findAllByPlaceholderText:()=>nR,findAllByRole:()=>jR,findAllByTestId:()=>BR,findAllByText:()=>cR,findAllByTitle:()=>RR,findByAltText:()=>wR,findByDisplayValue:()=>yR,findByLabelText:()=>KA,findByPlaceholderText:()=>oR,findByRole:()=>kR,findByTestId:()=>JR,findByText:()=>uR,findByTitle:()=>OR,fireEvent:()=>To,getAllByAltText:()=>vR,getAllByDisplayValue:()=>fR,getAllByLabelText:()=>YA,getAllByPlaceholderText:()=>tR,getAllByRole:()=>MR,getAllByTestId:()=>FR,getAllByText:()=>aR,getAllByTitle:()=>PR,getByAltText:()=>ER,getByDisplayValue:()=>mR,getByLabelText:()=>XA,getByPlaceholderText:()=>rR,getByRole:()=>qR,getByTestId:()=>$R,getByText:()=>lR,getByTitle:()=>AR,getConfig:()=>Te,getDefaultNormalizer:()=>vc,getElementError:()=>js,getMultipleElementsFoundError:()=>ks,getNodeText:()=>Lo,getQueriesForElement:()=>Ha,getRoles:()=>jh,getSuggestedQuery:()=>is,isInaccessible:()=>qs,logDOM:()=>qd,logRoles:()=>tJ,makeFindQuery:()=>Pn,makeGetAllQuery:()=>wc,makeSingleQuery:()=>Sn,prettyDOM:()=>Eo,prettyFormat:()=>yh,queries:()=>Va,queryAllByAltText:()=>gR,queryAllByAttribute:()=>Zr,queryAllByDisplayValue:()=>dR,queryAllByLabelText:()=>QA,queryAllByPlaceholderText:()=>ZA,queryAllByRole:()=>NR,queryAllByTestId:()=>DR,queryAllByText:()=>iR,queryAllByTitle:()=>_R,queryByAltText:()=>bR,queryByAttribute:()=>Dh,queryByDisplayValue:()=>pR,queryByLabelText:()=>zA,queryByPlaceholderText:()=>eR,queryByRole:()=>IR,queryByTestId:()=>LR,queryByText:()=>sR,queryByTitle:()=>SR,queryHelpers:()=>rJ,screen:()=>wJ,waitFor:()=>Tc,waitForElementToBeRemoved:()=>VR,within:()=>Ha,wrapAllByQueryWithSuggestion:()=>Et,wrapSingleQueryWithSuggestion:()=>Jr});var yh=We(wk()),MB=Object.prototype.toString;function Od(e){return typeof e=="function"||MB.call(e)==="[object Function]"}i(Od,"isCallable");function xP(e){var t=Number(e);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))}i(xP,"toInteger");var qB=Math.pow(2,53)-1;function NP(e){var t=xP(e);return Math.min(Math.max(t,0),qB)}i(NP,"toLength");function kt(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"&&!Od(t))throw new TypeError("Array.from: when provided, the second argument must be a function");for(var o=NP(n.length),s=Od(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(kt,"arrayFrom");function bo(e){"@babel/helpers - typeof";return bo=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},bo(e)}i(bo,"_typeof");function IP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}i(IP,"_classCallCheck");function Cd(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,gh(n.key),n)}}i(Cd,"_defineProperties");function MP(e,t,r){return t&&Cd(e.prototype,t),r&&Cd(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}i(MP,"_createClass");function qP(e,t,r){return t=gh(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}i(qP,"_defineProperty");function gh(e){var t=jP(e,"string");return bo(t)==="symbol"?t:String(t)}i(gh,"_toPropertyKey");function jP(e,t){if(bo(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(bo(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}i(jP,"_toPrimitive");var jB=(function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];IP(this,e),qP(this,"items",void 0),this.items=t}return i(e,"SetLike"),MP(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})(),kB=typeof Set>"u"?Set:jB;function ut(e){var t;return(t=e.localName)!==null&&t!==void 0?t:e.tagName.toLowerCase()}i(ut,"getLocalName");var DB={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"},LB={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 kP(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=LB[t])!==null&&n!==void 0&&n.has(r))})}i(kP,"hasGlobalAriaAttributes");function bh(e,t){return kP(e,t)}i(bh,"ignorePresentationalRole");function DP(e){var t=FP(e);if(t===null||t==="presentation"){var r=LP(e);if(t!=="presentation"||bh(e,r||""))return r}return t}i(DP,"getRole");function LP(e){var t=DB[ut(e)];if(t!==void 0)return t;switch(ut(e)){case"a":case"area":case"link":if(e.hasAttribute("href"))return"link";break;case"img":return e.getAttribute("alt")===""&&!bh(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(LP,"getImplicitRole");function FP(e){var t=e.getAttribute("role");if(t!==null){var r=t.trim().split(" ")[0];if(r.length>0)return r}return null}i(FP,"getExplicitRole");function ke(e){return e!==null&&e.nodeType===e.ELEMENT_NODE}i(ke,"isElement");function vh(e){return ke(e)&&ut(e)==="caption"}i(vh,"isHTMLTableCaptionElement");function ji(e){return ke(e)&&ut(e)==="input"}i(ji,"isHTMLInputElement");function $P(e){return ke(e)&&ut(e)==="optgroup"}i($P,"isHTMLOptGroupElement");function BP(e){return ke(e)&&ut(e)==="select"}i(BP,"isHTMLSelectElement");function JP(e){return ke(e)&&ut(e)==="table"}i(JP,"isHTMLTableElement");function UP(e){return ke(e)&&ut(e)==="textarea"}i(UP,"isHTMLTextAreaElement");function VP(e){var t=e.ownerDocument===null?e:e.ownerDocument,r=t.defaultView;if(r===null)throw new TypeError("no window available");return r}i(VP,"safeWindow");function HP(e){return ke(e)&&ut(e)==="fieldset"}i(HP,"isHTMLFieldSetElement");function zP(e){return ke(e)&&ut(e)==="legend"}i(zP,"isHTMLLegendElement");function GP(e){return ke(e)&&ut(e)==="slot"}i(GP,"isHTMLSlotElement");function WP(e){return ke(e)&&e.ownerSVGElement!==void 0}i(WP,"isSVGElement");function KP(e){return ke(e)&&ut(e)==="svg"}i(KP,"isSVGSVGElement");function YP(e){return WP(e)&&ut(e)==="title"}i(YP,"isSVGTitleElement");function os(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(os,"queryIdRefs");function nr(e,t){return ke(e)?t.indexOf(DP(e))!==-1:!1}i(nr,"hasAnyConcreteRoles");function XP(e){return e.trim().replace(/\s\s+/g," ")}i(XP,"asFlatString");function QP(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(QP,"isHidden");function ZP(e){return nr(e,["button","combobox","listbox","textbox"])||Eh(e,"range")}i(ZP,"isControl");function Eh(e,t){if(!ke(e))return!1;switch(t){case"range":return nr(e,["meter","progressbar","scrollbar","slider","spinbutton"]);default:throw new TypeError("No knowledge about abstract role '".concat(t,"'. This is likely a bug :("))}}i(Eh,"hasAbstractRole");function xd(e,t){var r=kt(e.querySelectorAll(t));return os(e,"aria-owns").forEach(function(n){r.push.apply(r,kt(n.querySelectorAll(t)))}),r}i(xd,"querySelectorAllSubtree");function eA(e){return BP(e)?e.selectedOptions||xd(e,"[selected]"):xd(e,'[aria-selected="true"]')}i(eA,"querySelectedOptions");function tA(e){return nr(e,["none","presentation"])}i(tA,"isMarkedPresentational");function rA(e){return vh(e)}i(rA,"isNativeHostLanguageTextAlternativeElement");function nA(e){return nr(e,["button","cell","checkbox","columnheader","gridcell","heading","label","legend","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"])}i(nA,"allowsNameFromContent");function oA(e){return!1}i(oA,"isDescendantOfNativeHostLanguageTextAlternativeElement");function iA(e){return ji(e)||UP(e)?e.value:e.textContent||""}i(iA,"getValueOfTextbox");function Nd(e){var t=e.getPropertyValue("content");return/^["'].*["']$/.test(t)?t.slice(1,-1):""}i(Nd,"getTextualContent");function Th(e){var t=ut(e);return t==="button"||t==="input"&&e.getAttribute("type")!=="hidden"||t==="meter"||t==="output"||t==="progress"||t==="select"||t==="textarea"}i(Th,"isLabelableElement");function wh(e){if(Th(e))return e;var t=null;return e.childNodes.forEach(function(r){if(t===null&&ke(r)){var n=wh(r);n!==null&&(t=n)}}),t}i(wh,"findLabelableElement");function sA(e){if(e.control!==void 0)return e.control;var t=e.getAttribute("for");return t!==null?e.ownerDocument.getElementById(t):wh(e)}i(sA,"getControlOfLabel");function aA(e){var t=e.labels;if(t===null)return t;if(t!==void 0)return kt(t);if(!Th(e))return null;var r=e.ownerDocument;return kt(r.querySelectorAll("label")).filter(function(n){return sA(n)===e})}i(aA,"getLabels");function lA(e){var t=e.assignedNodes();return t.length===0?kt(e.childNodes):t}i(lA,"getSlotContents");function _h(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=new kB,n=VP(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 h(v,_){var R="";if(ke(v)&&c){var N=d(v,"::before"),j=Nd(N);R="".concat(j," ").concat(R)}var C=GP(v)?lA(v):kt(v.childNodes).concat(os(v,"aria-owns"));if(C.forEach(function(S){var k=T(S,{isEmbeddedInLabel:_.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),I=ke(S)?d(S).getPropertyValue("display"):"inline",V=I!=="inline"?" ":"";R+="".concat(V).concat(k).concat(V)}),ke(v)&&c){var P=d(v,"::after"),w=Nd(P);R="".concat(R," ").concat(w)}return R.trim()}i(h,"computeMiscTextAlternative");function y(v,_){var R=v.getAttributeNode(_);return R!==null&&!r.has(R)&&R.value.trim()!==""?(r.add(R),R.value):null}i(y,"useAttribute");function g(v){return ke(v)?y(v,"title"):null}i(g,"computeTooltipAttributeValue");function E(v){if(!ke(v))return null;if(HP(v)){r.add(v);for(var _=kt(v.childNodes),R=0;R<_.length;R+=1){var N=_[R];if(zP(N))return T(N,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(JP(v)){r.add(v);for(var j=kt(v.childNodes),C=0;C<j.length;C+=1){var P=j[C];if(vh(P))return T(P,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(KP(v)){r.add(v);for(var w=kt(v.childNodes),S=0;S<w.length;S+=1){var k=w[S];if(YP(k))return k.textContent}return null}else if(ut(v)==="img"||ut(v)==="area"){var I=y(v,"alt");if(I!==null)return I}else if($P(v)){var V=y(v,"label");if(V!==null)return V}if(ji(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 A=aA(v);if(A!==null&&A.length!==0)return r.add(v),kt(A).map(function(K){return T(K,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(K){return K.length>0}).join(" ");if(ji(v)&&v.type==="image"){var L=y(v,"alt");if(L!==null)return L;var $=y(v,"title");return $!==null?$:"Submit Query"}if(nr(v,["button"])){var D=h(v,{isEmbeddedInLabel:!1});if(D!=="")return D}return null}i(E,"computeElementTextAlternative");function T(v,_){if(r.has(v))return"";if(!f&&QP(v,d)&&!_.isReferenced)return r.add(v),"";var R=ke(v)?v.getAttributeNode("aria-labelledby"):null,N=R!==null&&!r.has(R)?os(v,"aria-labelledby"):[];if(s==="name"&&!_.isReferenced&&N.length>0)return r.add(R),N.map(function(I){return T(I,{isEmbeddedInLabel:_.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(" ");var j=_.recursion&&ZP(v)&&s==="name";if(!j){var C=(ke(v)&&v.getAttribute("aria-label")||"").trim();if(C!==""&&s==="name")return r.add(v),C;if(!tA(v)){var P=E(v);if(P!==null)return r.add(v),P}}if(nr(v,["menu"]))return r.add(v),"";if(j||_.isEmbeddedInLabel||_.isReferenced){if(nr(v,["combobox","listbox"])){r.add(v);var w=eA(v);return w.length===0?ji(v)?v.value:"":kt(w).map(function(I){return T(I,{isEmbeddedInLabel:_.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(" ")}if(Eh(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(nr(v,["textbox"]))return r.add(v),iA(v)}if(nA(v)||ke(v)&&_.isReferenced||rA(v)||oA()){var S=h(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),h(v,{isEmbeddedInLabel:_.isEmbeddedInLabel});var k=g(v);return k!==null?(r.add(v),k):(r.add(v),"")}return i(T,"computeTextAlternative"),XP(T(e,{isEmbeddedInLabel:!1,isReferenced:s==="description",recursion:!1}))}i(_h,"computeTextAlternative");function vo(e){"@babel/helpers - typeof";return vo=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},vo(e)}i(vo,"_typeof");function Id(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(Id,"ownKeys");function Md(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Id(Object(r),!0).forEach(function(n){cA(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Id(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}i(Md,"_objectSpread");function cA(e,t,r){return t=uA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}i(cA,"_defineProperty");function uA(e){var t=dA(e,"string");return vo(t)==="symbol"?t:String(t)}i(uA,"_toPropertyKey");function dA(e,t){if(vo(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(vo(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}i(dA,"_toPrimitive");function Sh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=os(e,"aria-describedby").map(function(o){return _h(o,Md(Md({},t),{},{compute:"description"}))}).join(" ");if(r===""){var n=e.getAttribute("title");r=n===null?"":n}return r}i(Sh,"computeAccessibleDescription");function pA(e){return nr(e,["caption","code","deletion","emphasis","generic","insertion","paragraph","presentation","strong","subscript","superscript"])}i(pA,"prohibitsNaming");function gc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return pA(e)?"":_h(e,t)}i(gc,"computeAccessibleName");var qt=We(wp()),FB=We(_k());function Ph(e){return e.replace(/</g,"<").replace(/>/g,">")}i(Ph,"escapeHTML");var $B=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"),BB=3,JB=i((e,t,r,n,o,s)=>e.map(a=>{const c=typeof a=="string"?fA(a,t):s(a,t,r,n,o);return c===""&&typeof a=="object"&&a!==null&&a.nodeType!==BB?"":t.spacingOuter+r+c}).join(""),"printChildren"),fA=i((e,t)=>{const r=t.colors.content;return r.open+Ph(e)+r.close},"printText"),UB=i((e,t)=>{const r=t.colors.comment;return r.open+"<!--"+Ph(e)+"-->"+r.close},"printComment"),VB=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"),HB=i((e,t)=>{const r=t.colors.tag;return r.open+"<"+e+r.close+" …"+r.open+" />"+r.close},"printElementAsLeaf"),zB=1,mA=3,hA=8,yA=11,GB=/^((HTML|SVG)\w*)?Element$/,gA=i(e=>{const{tagName:t}=e;return!!(typeof t=="string"&&t.includes("-")||typeof e.hasAttribute=="function"&&e.hasAttribute("is"))},"isCustomElement"),WB=i(e=>{const t=e.constructor.name,{nodeType:r}=e;return r===zB&&(GB.test(t)||gA(e))||r===mA&&t==="Text"||r===hA&&t==="Comment"||r===yA&&t==="DocumentFragment"},"testNode");function bA(e){return e.nodeType===mA}i(bA,"nodeIsText");function vA(e){return e.nodeType===hA}i(vA,"nodeIsComment");function ta(e){return e.nodeType===yA}i(ta,"nodeIsFragment");function EA(e){return{test:i(t=>{var r;return((t==null||(r=t.constructor)==null?void 0:r.name)||gA(t))&&WB(t)},"test"),serialize:i((t,r,n,o,s,a)=>{if(bA(t))return fA(t.data,r);if(vA(t))return UB(t.data,r);const c=ta(t)?"DocumentFragment":t.tagName.toLowerCase();return++o>r.maxDepth?HB(c,r):VB(c,$B(ta(t)?[]:Array.from(t.attributes).map(u=>u.name).sort(),ta(t)?{}:Array.from(t.attributes).reduce((u,d)=>(u[d.name]=d.value,u),{}),r,n+r.indent,o,s,a),JB(Array.prototype.slice.call(t.childNodes||t.children).filter(e),r,n+r.indent,o,s,a),r,n)},"serialize")}}i(EA,"createDOMElementFilter");var TA=null,Ah=null,Rh=null;try{const e=module&&module.require;Ah=e.call(module,"fs").readFileSync,Rh=e.call(module,"@babel/code-frame").codeFrameColumns,TA=e.call(module,"picocolors")}catch{}function wA(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=Ah(s,"utf-8")}catch{return""}const d=Rh(u,{start:{line:a,column:c}},{highlightCode:!0,linesBelow:0});return TA.dim(n)+`
|
|
297
|
-
`+d+`
|
|
298
|
-
`}i(wA,"getCodeFrame");function _A(){if(!Ah||!Rh)return"";const t=new Error().stack.split(`
|
|
299
|
-
`).slice(1).find(r=>!r.includes("node_modules/"));return wA(t)}i(_A,"getUserCodeFrame");var SA=3;function ra(){return typeof jest<"u"&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,"clock"):!1}i(ra,"jestFakeTimersAreEnabled");function bc(){if(typeof window>"u")throw new Error("Could not find default container");return window.document}i(bc,"getDocument");function Oh(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(Oh,"getWindowFromNode");function lr(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(lr,"checkContainerType");var KB=i(()=>{if(typeof process>"u")return!1;let e;try{var t;const r=(t=Tu)==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:YB}=yh.plugins,XB=1,QB=8;function PA(e){return e.nodeType!==QB&&(e.nodeType!==XB||!e.matches(Te().defaultIgnore))}i(PA,"filterCommentsAndDefaultIgnoreTagsTags");function Eo(e,t,r){if(r===void 0&&(r={}),e||(e=bc().body),typeof t!="number"&&(t=typeof process<"u"&&typeof Tu<"u"&&Tu.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=PA,...s}=r,a=yh.format(e,{plugins:[EA(o),YB],printFunctionName:!1,highlight:KB(),...s});return t!==void 0&&e.outerHTML.length>t?a.slice(0,t)+"...":a}i(Eo,"prettyDOM");var qd=i(function(){const e=_A();console.log(e?Eo(...arguments)+`
|
|
300
|
-
|
|
301
|
-
`+e:Eo(...arguments))},"logDOM"),vn={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=Eo(t),n=new Error([e,"Ignored nodes: comments, "+vn.defaultIgnore+`
|
|
302
|
-
`+r].filter(Boolean).join(`
|
|
303
|
-
|
|
304
|
-
`));return n.name="TestingLibraryElementError",n},_disableExpensiveErrorDiagnostics:!1,computedStyleSupportsPseudoElements:!1};function AA(e){try{return vn._disableExpensiveErrorDiagnostics=!0,e()}finally{vn._disableExpensiveErrorDiagnostics=!1}}i(AA,"runWithExpensiveErrorDiagnosticsDisabled");function RA(e){typeof e=="function"&&(e=e(vn)),vn={...vn,...e}}i(RA,"configure");function Te(){return vn}i(Te,"getConfig");var ZB=["button","meter","output","progress","select","textarea","input"];function Ch(e){return ZB.includes(e.nodeName.toLowerCase())?"":e.nodeType===SA?e.textContent:Array.from(e.childNodes).map(t=>Ch(t)).join("")}i(Ch,"getTextContent");function Ua(e){let t;return e.tagName.toLowerCase()==="label"?t=Ch(e):t=e.value||e.textContent,t}i(Ua,"getLabelContent");function xh(e){if(e.labels!==void 0){var t;return(t=e.labels)!=null?t:[]}if(!OA(e))return[];const r=e.ownerDocument.querySelectorAll("label");return Array.from(r).filter(n=>n.control===e)}i(xh,"getRealLabels");function OA(e){return/BUTTON|METER|OUTPUT|PROGRESS|SELECT|TEXTAREA/.test(e.tagName)||e.tagName==="INPUT"&&e.getAttribute("type")!=="hidden"}i(OA,"isLabelable");function Nh(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:Ua(c),formControl:null}:{content:"",formControl:null}}):Array.from(xh(t)).map(a=>{const c=Ua(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(Nh,"getLabels");function Ih(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(Ih,"assertNotNullOrUndefined");function $n(e,t,r,n){if(typeof e!="string")return!1;Ih(r);const o=n(e);return typeof r=="string"||typeof r=="number"?o.toLowerCase().includes(r.toString().toLowerCase()):typeof r=="function"?r(o,t):Mh(r,o)}i($n,"fuzzyMatches");function ir(e,t,r,n){if(typeof e!="string")return!1;Ih(r);const o=n(e);return r instanceof Function?r(o,t):r instanceof RegExp?Mh(r,o):o===String(r)}i(ir,"matches");function vc(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(vc,"getDefaultNormalizer");function Qr(e){let{trim:t,collapseWhitespace:r,normalizer:n}=e;if(!n)return vc({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(Qr,"makeNormalizer");function Mh(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(Mh,"matchRegExp");function Lo(e){return e.matches("input[type=submit], input[type=button], input[type=reset]")?e.value:Array.from(e.childNodes).filter(t=>t.nodeType===SA&&!!t.textContent).map(t=>t.textContent).join("")}i(Lo,"getNodeText");var eJ=CA(qt.elementRoles);function qh(e){return e.hidden===!0||e.getAttribute("aria-hidden")==="true"||e.ownerDocument.defaultView.getComputedStyle(e).display==="none"}i(qh,"isSubtreeInaccessible");function qs(e,t){t===void 0&&(t={});const{isSubtreeInaccessible:r=qh}=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(qs,"isInaccessible");function Ec(e){for(const{match:t,roles:r}of eJ)if(t(e))return[...r];return[]}i(Ec,"getImplicitAriaRoles");function CA(e){function t(a){let{name:c,attributes:u}=a;return""+c+u.map(d=>{let{name:p,value:f,constraints:h=[]}=d;const y=h.indexOf("undefined")!==-1,g=h.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(CA,"buildElementRoleList");function jh(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?qs(o)===!1:!0).reduce((o,s)=>{let a=[];return s.hasAttribute("role")?a=s.getAttribute("role").split(" ").slice(0,1):a=Ec(s),a.reduce((c,u)=>Array.isArray(c[u])?{...c,[u]:[...c[u],s]}:{...c,[u]:[s]},o)},{})}i(jh,"getRoles");function kh(e,t){let{hidden:r,includeDescription:n}=t;const o=jh(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 "'+gc(p,{computedStyleSupportsPseudoElements:Te().computedStyleSupportsPseudoElements})+`":
|
|
305
|
-
`,h=Eo(p.cloneNode(!1));if(n){const y='Description "'+Sh(p,{computedStyleSupportsPseudoElements:Te().computedStyleSupportsPseudoElements})+`":
|
|
306
|
-
`;return""+f+y+h}return""+f+h}).join(`
|
|
307
|
-
|
|
308
|
-
`);return a+`:
|
|
309
|
-
|
|
310
|
-
`+d+`
|
|
311
|
-
|
|
312
|
-
`+u}).join(`
|
|
313
|
-
`)}i(kh,"prettyRoles");var tJ=i(function(e,t){let{hidden:r=!1}=t===void 0?{}:t;return console.log(kh(e,{hidden:r}))},"logRoles");function xA(e){return e.tagName==="OPTION"?e.selected:Fo(e,"aria-selected")}i(xA,"computeAriaSelected");function NA(e){return e.getAttribute("aria-busy")==="true"}i(NA,"computeAriaBusy");function IA(e){if(!("indeterminate"in e&&e.indeterminate))return"checked"in e?e.checked:Fo(e,"aria-checked")}i(IA,"computeAriaChecked");function MA(e){return Fo(e,"aria-pressed")}i(MA,"computeAriaPressed");function qA(e){var t,r;return(t=(r=Fo(e,"aria-current"))!=null?r:e.getAttribute("aria-current"))!=null?t:!1}i(qA,"computeAriaCurrent");function jA(e){return Fo(e,"aria-expanded")}i(jA,"computeAriaExpanded");function Fo(e,t){const r=e.getAttribute(t);if(r==="true")return!0;if(r==="false")return!1}i(Fo,"checkBooleanAttribute");function kA(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(kA,"computeHeadingLevel");function DA(e){const t=e.getAttribute("aria-valuenow");return t===null?void 0:+t}i(DA,"computeAriaValueNow");function LA(e){const t=e.getAttribute("aria-valuemax");return t===null?void 0:+t}i(LA,"computeAriaValueMax");function FA(e){const t=e.getAttribute("aria-valuemin");return t===null?void 0:+t}i(FA,"computeAriaValueMin");function $A(e){const t=e.getAttribute("aria-valuetext");return t===null?void 0:t}i($A,"computeAriaValueText");var eb=vc();function BA(e){return e.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&")}i(BA,"escapeRegExp");function jd(e){return new RegExp(BA(e.toLowerCase()),"i")}i(jd,"getRegExpMatcher");function yr(e,t,r,n){let{variant:o,name:s}=n,a="";const c={},u=[["Role","TestId"].includes(e)?r:jd(r)];s&&(c.name=jd(s)),e==="Role"&&qs(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(h=>{let[y,g]=h;return y+": "+g}).join(", ")+" }":"",d+"("+p+f+")"}}}i(yr,"makeSuggestion");function gr(e,t,r){return r&&(!t||t.toLowerCase()===e.toLowerCase())}i(gr,"canSuggest");function is(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=Ec(e))==null?void 0:o[0];if(s!=="generic"&&gr("Role",r,s))return yr("Role",e,s,{variant:t,name:gc(e,{computedStyleSupportsPseudoElements:Te().computedStyleSupportsPseudoElements})});const a=Nh(document,e).map(h=>h.content).join(" ");if(gr("LabelText",r,a))return yr("LabelText",e,a,{variant:t});const c=e.getAttribute("placeholder");if(gr("PlaceholderText",r,c))return yr("PlaceholderText",e,c,{variant:t});const u=eb(Lo(e));if(gr("Text",r,u))return yr("Text",e,u,{variant:t});if(gr("DisplayValue",r,e.value))return yr("DisplayValue",e,eb(e.value),{variant:t});const d=e.getAttribute("alt");if(gr("AltText",r,d))return yr("AltText",e,d,{variant:t});const p=e.getAttribute("title");if(gr("Title",r,p))return yr("Title",e,p,{variant:t});const f=e.getAttribute(Te().testIdAttribute);if(gr("TestId",r,f))return yr("TestId",e,f,{variant:t})}i(is,"getSuggestedQuery");function Ti(e,t){e.stack=t.stack.replace(t.message,e.message)}i(Ti,"copyStackTrace");function JA(e,t){let{container:r=bc(),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,h,y,g=!1,E="idle";const T=setTimeout(j,n),v=ra();if(v){const{unstable_advanceTimersWrapper:C}=Te();for(N();!g;){if(!ra()){const P=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||Ti(P,s),p(P);return}if(await C(async()=>{jest.advanceTimersByTime(a)}),g)break;N()}}else{try{lr(r)}catch(P){p(P);return}h=setInterval(R,a);const{MutationObserver:C}=Oh(r);y=new C(R),y.observe(r,u),N()}function _(C,P){g=!0,clearTimeout(T),v||(clearInterval(h),y.disconnect()),C?p(C):d(P)}i(_,"onDone");function R(){if(ra()){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||Ti(C,s),p(C)}else return N()}i(R,"checkRealTimersCallback");function N(){if(E!=="pending")try{const C=AA(e);typeof C?.then=="function"?(E="pending",C.then(P=>{E="resolved",_(null,P)},P=>{E="rejected",f=P})):_(null,C)}catch(C){f=C}}i(N,"checkCallback");function j(){let C;f?(C=f,!o&&C.name==="TestingLibraryElementError"&&Ti(C,s)):(C=new Error("Timed out in waitFor."),o||Ti(C,s)),_(c(C),null)}i(j,"handleTimeout")})}i(JA,"waitFor");function Tc(e,t){const r=new Error("STACK_TRACE_MESSAGE");return Te().asyncWrapper(()=>JA(e,{stackTraceError:r,...t}))}i(Tc,"waitForWrapper");function js(e,t){return Te().getElementError(e,t)}i(js,"getElementError");function ks(e,t){return js(e+"\n\n(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).",t)}i(ks,"getMultipleElementsFoundError");function Zr(e,t,r,n){let{exact:o=!0,collapseWhitespace:s,trim:a,normalizer:c}=n===void 0?{}:n;const u=o?ir:$n,d=Qr({collapseWhitespace:s,trim:a,normalizer:c});return Array.from(t.querySelectorAll("["+e+"]")).filter(p=>u(p.getAttribute(e),p,r,d))}i(Zr,"queryAllByAttribute");function Dh(e,t,r,n){const o=Zr(e,t,r,n);if(o.length>1)throw ks("Found multiple elements by ["+e+"="+r+"]",t);return o[0]||null}i(Dh,"queryByAttribute");function Sn(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=>js(null,u).message).join(`
|
|
316
|
-
|
|
317
|
-
`);throw ks(t(r,...o)+`
|
|
318
|
-
|
|
319
|
-
Here are the matching elements:
|
|
320
|
-
|
|
321
|
-
`+c,r)}return a[0]||null}}i(Sn,"makeSingleQuery");function Lh(e,t){return Te().getElementError(`A better query is available, try this:
|
|
322
|
-
`+e.toString()+`
|
|
323
|
-
`,t)}i(Lh,"getSuggestionError");function wc(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(wc,"makeGetAllQuery");function Pn(e){return(t,r,n,o)=>Tc(()=>e(t,r,n),{container:t,...o})}i(Pn,"makeFindQuery");var Jr=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=is(c,r);if(d&&!t.endsWith(d.queryName))throw Lh(d.toString(),n)}return c},"wrapSingleQueryWithSuggestion"),Et=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=is(p,r))==null?void 0:f.toString()}))];if(d.length===1&&!t.endsWith(is(c[0],r).queryName))throw Lh(d[0],n)}return c},"wrapAllByQueryWithSuggestion");function cr(e,t,r){const n=Jr(Sn(e,t),e.name,"query"),o=wc(e,r),s=Sn(o,t),a=Jr(s,e.name,"get"),c=Et(o,e.name.replace("query","get"),"getAll"),u=Pn(Et(o,e.name,"findAll")),d=Pn(Jr(s,e.name,"find"));return[n,c,a,u,d]}i(cr,"buildQueries");var rJ=Object.freeze({__proto__:null,getElementError:js,wrapAllByQueryWithSuggestion:Et,wrapSingleQueryWithSuggestion:Jr,getMultipleElementsFoundError:ks,queryAllByAttribute:Zr,queryByAttribute:Dh,makeSingleQuery:Sn,makeGetAllQuery:wc,makeFindQuery:Pn,buildQueries:cr});function UA(e){return Array.from(e.querySelectorAll("label,input")).map(t=>({node:t,textToMatch:Ua(t)})).filter(t=>{let{textToMatch:r}=t;return r!==null})}i(UA,"queryAllLabels");var nJ=i(function(e,t,r){let{exact:n=!0,trim:o,collapseWhitespace:s,normalizer:a}=r===void 0?{}:r;const c=n?ir:$n,u=Qr({collapseWhitespace:s,trim:o,normalizer:a});return UA(e).filter(p=>{let{node:f,textToMatch:h}=p;return c(h,f,t,u)}).map(p=>{let{node:f}=p;return f})},"queryAllLabelsByText"),ss=i(function(e,t,r){let{selector:n="*",exact:o=!0,collapseWhitespace:s,trim:a,normalizer:c}=r===void 0?{}:r;lr(e);const u=o?ir:$n,d=Qr({collapseWhitespace:s,trim:a,normalizer:c}),p=Array.from(e.querySelectorAll("*")).filter(f=>xh(f).length||f.hasAttribute("aria-labelledby")).reduce((f,h)=>{const y=Nh(e,h,{selector:n});y.filter(E=>!!E.formControl).forEach(E=>{u(E.content,E.formControl,t,d)&&E.formControl&&f.push(E.formControl)});const g=y.filter(E=>!!E.content).map(E=>E.content);return u(g.join(" "),h,t,d)&&f.push(h),g.length>1&&g.forEach((E,T)=>{u(E,h,t,d)&&f.push(h);const v=[...g];v.splice(T,1),v.length>1&&u(v.join(" "),h,t,d)&&f.push(h)}),f},[]).concat(Zr("aria-label",e,t,{exact:o,normalizer:d}));return Array.from(new Set(p)).filter(f=>f.matches(n))},"queryAllByLabelText"),An=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=ss(e,t,...n);if(!s.length){const a=nJ(e,t,...n);if(a.length){const c=a.map(u=>VA(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 VA(e,t){const r=t.getAttribute("for");if(!r)return null;const n=e.querySelector('[id="'+r+'"]');return n?n.tagName.toLowerCase():null}i(VA,"getTagNameOfElementAssociatedWithLabelViaFor");var HA=i((e,t)=>"Found multiple elements with the text of: "+t,"getMultipleError$7"),zA=Jr(Sn(ss,HA),ss.name,"query"),GA=Sn(An,HA),WA=Pn(Et(An,An.name,"findAll")),KA=Pn(Jr(GA,An.name,"find")),YA=Et(An,An.name,"getAll"),XA=Jr(GA,An.name,"get"),QA=Et(ss,ss.name,"queryAll"),kd=i(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return lr(t[0]),Zr("placeholder",...t)},"queryAllByPlaceholderText"),oJ=i((e,t)=>"Found multiple elements with the placeholder text of: "+t,"getMultipleError$6"),iJ=i((e,t)=>"Unable to find an element with the placeholder text of: "+t,"getMissingError$6"),ZA=Et(kd,kd.name,"queryAll"),[eR,tR,rR,nR,oR]=cr(kd,oJ,iJ),Dd=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;lr(e);const d=o?ir:$n,p=Qr({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(h=>!c||!h.matches(c)).filter(h=>d(Lo(h),h,t,p))},"queryAllByText"),sJ=i((e,t)=>"Found multiple elements with the text: "+t,"getMultipleError$5"),aJ=i(function(e,t,r){r===void 0&&(r={});const{collapseWhitespace:n,trim:o,normalizer:s,selector:a}=r,u=Qr({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"),iR=Et(Dd,Dd.name,"queryAll"),[sR,aR,lR,cR,uR]=cr(Dd,sJ,aJ),Ld=i(function(e,t,r){let{exact:n=!0,collapseWhitespace:o,trim:s,normalizer:a}=r===void 0?{}:r;lr(e);const c=n?ir:$n,u=Qr({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(Lo(f),f,t,u)):c(d.value,d,t,u))},"queryAllByDisplayValue"),lJ=i((e,t)=>"Found multiple elements with the display value: "+t+".","getMultipleError$4"),cJ=i((e,t)=>"Unable to find an element with the display value: "+t+".","getMissingError$4"),dR=Et(Ld,Ld.name,"queryAll"),[pR,fR,mR,hR,yR]=cr(Ld,lJ,cJ),uJ=/^(img|input|area|.+-.+)$/i,Fd=i(function(e,t,r){return r===void 0&&(r={}),lr(e),Zr("alt",e,t,r).filter(n=>uJ.test(n.tagName))},"queryAllByAltText"),dJ=i((e,t)=>"Found multiple elements with the alt text: "+t,"getMultipleError$3"),pJ=i((e,t)=>"Unable to find an element with the alt text: "+t,"getMissingError$3"),gR=Et(Fd,Fd.name,"queryAll"),[bR,vR,ER,TR,wR]=cr(Fd,dJ,pJ),fJ=i(e=>{var t;return e.tagName.toLowerCase()==="title"&&((t=e.parentElement)==null?void 0:t.tagName.toLowerCase())==="svg"},"isSvgTitle"),$d=i(function(e,t,r){let{exact:n=!0,collapseWhitespace:o,trim:s,normalizer:a}=r===void 0?{}:r;lr(e);const c=n?ir:$n,u=Qr({collapseWhitespace:o,trim:s,normalizer:a});return Array.from(e.querySelectorAll("[title], svg > title")).filter(d=>c(d.getAttribute("title"),d,t,u)||fJ(d)&&c(Lo(d),d,t,u))},"queryAllByTitle"),mJ=i((e,t)=>"Found multiple elements with the title: "+t+".","getMultipleError$2"),hJ=i((e,t)=>"Unable to find an element with the title: "+t+".","getMissingError$2"),_R=Et($d,$d.name,"queryAll"),[SR,PR,AR,RR,OR]=cr($d,mJ,hJ),Bd=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:h,expanded:y,value:{now:g,min:E,max:T,text:v}={}}=r===void 0?{}:r;if(lr(e),c!==void 0){var _;if(((_=qt.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 R;if(((R=qt.roles.get(t))==null?void 0:R.props["aria-busy"])===void 0)throw new Error('"aria-busy" is not supported on role "'+t+'".')}if(d!==void 0){var N;if(((N=qt.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=qt.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=qt.roles.get(t))==null?void 0:C.props["aria-current"])===void 0)throw new Error('"aria-current" is not supported on role "'+t+'".')}if(h!==void 0&&t!=="heading")throw new Error('Role "'+t+'" cannot have "level" property.');if(g!==void 0){var P;if(((P=qt.roles.get(t))==null?void 0:P.props["aria-valuenow"])===void 0)throw new Error('"aria-valuenow" is not supported on role "'+t+'".')}if(T!==void 0){var w;if(((w=qt.roles.get(t))==null?void 0:w.props["aria-valuemax"])===void 0)throw new Error('"aria-valuemax" is not supported on role "'+t+'".')}if(E!==void 0){var S;if(((S=qt.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=qt.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=qt.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(A){return V.has(A)||V.set(A,qh(A)),V.get(A)}return i(H,"cachedIsSubtreeInaccessible"),Array.from(e.querySelectorAll(CR(t))).filter(A=>{if(A.hasAttribute("role")){const D=A.getAttribute("role");if(a)return D.split(" ").filter(Boolean).some(X=>X===t);const[K]=D.split(" ");return K===t}return Ec(A).some(D=>D===t)}).filter(A=>{if(c!==void 0)return c===xA(A);if(u!==void 0)return u===NA(A);if(d!==void 0)return d===IA(A);if(p!==void 0)return p===MA(A);if(f!==void 0)return f===qA(A);if(y!==void 0)return y===jA(A);if(h!==void 0)return h===kA(A);if(g!==void 0||T!==void 0||E!==void 0||v!==void 0){let $=!0;if(g!==void 0&&$&&($=g===DA(A)),T!==void 0&&$&&($=T===LA(A)),E!==void 0&&$&&($=E===FA(A)),v!==void 0){var L;$&&($=ir((L=$A(A))!=null?L:null,A,v,D=>D))}return $}return!0}).filter(A=>o===void 0?!0:ir(gc(A,{computedStyleSupportsPseudoElements:Te().computedStyleSupportsPseudoElements}),A,o,L=>L)).filter(A=>s===void 0?!0:ir(Sh(A,{computedStyleSupportsPseudoElements:Te().computedStyleSupportsPseudoElements}),A,s,L=>L)).filter(A=>n===!1?qs(A,{isSubtreeInaccessible:H})===!1:!0)},"queryAllByRole");function CR(e){var t;const r='*[role~="'+e+'"]',n=(t=qt.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(CR,"makeRoleSelector");var xR=i(e=>{let t="";return e===void 0?t="":typeof e=="string"?t=' and name "'+e+'"':t=" and name `"+e+"`",t},"getNameHint"),yJ=i(function(e,t,r){let{name:n}=r===void 0?{}:r;return'Found multiple elements with the role "'+t+'"'+xR(n)},"getMultipleError$1"),gJ=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+'"'+xR(o);let a="";Array.from(e.children).forEach(p=>{a+=kh(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"),NR=Et(Bd,Bd.name,"queryAll"),[IR,MR,qR,jR,kR]=cr(Bd,yJ,gJ),Fh=i(()=>Te().testIdAttribute,"getTestIdAttribute"),Jd=i(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return lr(t[0]),Zr(Fh(),...t)},"queryAllByTestId"),bJ=i((e,t)=>"Found multiple elements by: ["+Fh()+'="'+t+'"]',"getMultipleError"),vJ=i((e,t)=>"Unable to find an element by: ["+Fh()+'="'+t+'"]',"getMissingError"),DR=Et(Jd,Jd.name,"queryAll"),[LR,FR,$R,BR,JR]=cr(Jd,bJ,vJ),Va=Object.freeze({__proto__:null,queryAllByLabelText:QA,queryByLabelText:zA,getAllByLabelText:YA,getByLabelText:XA,findAllByLabelText:WA,findByLabelText:KA,queryByPlaceholderText:eR,queryAllByPlaceholderText:ZA,getByPlaceholderText:rR,getAllByPlaceholderText:tR,findAllByPlaceholderText:nR,findByPlaceholderText:oR,queryByText:sR,queryAllByText:iR,getByText:lR,getAllByText:aR,findAllByText:cR,findByText:uR,queryByDisplayValue:pR,queryAllByDisplayValue:dR,getByDisplayValue:mR,getAllByDisplayValue:fR,findAllByDisplayValue:hR,findByDisplayValue:yR,queryByAltText:bR,queryAllByAltText:gR,getByAltText:ER,getAllByAltText:vR,findAllByAltText:TR,findByAltText:wR,queryByTitle:SR,queryAllByTitle:_R,getByTitle:AR,getAllByTitle:PR,findAllByTitle:RR,findByTitle:OR,queryByRole:IR,queryAllByRole:NR,getAllByRole:MR,getByRole:qR,findAllByRole:jR,findByRole:kR,queryByTestId:LR,queryAllByTestId:DR,getByTestId:$R,getAllByTestId:FR,findAllByTestId:BR,findByTestId:JR});function Ha(e,t,r){return t===void 0&&(t=Va),r===void 0&&(r={}),Object.keys(t).reduce((n,o)=>{const s=t[o];return n[o]=s.bind(null,e),n},r)}i(Ha,"getQueriesForElement");var UR=i(e=>!e||Array.isArray(e)&&!e.length,"isRemoved");function Ud(e){if(UR(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(Ud,"initialCheck");async function VR(e,t){const r=new Error("Timed out in waitForElementToBeRemoved.");if(typeof e!="function"){Ud(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 Ud(e()),Tc(()=>{let n;try{n=e()}catch(o){if(o.name==="TestingLibraryElementError")return;throw o}if(!UR(n))throw r},t)}i(VR,"waitForElementToBeRemoved");var tb={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}}},rb={doubleClick:"dblClick"};function To(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(To,"fireEvent");function ki(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&&HR(t,c),u!==void 0&&Object.defineProperty(t,"files",{configurable:!0,enumerable:!0,writable:!0,value:u}),Object.assign(t,d);const p=Oh(t),f=p[o]||p.Event;let h;if(typeof f=="function")h=new f(e,a);else{h=p.document.createEvent(o);const{bubbles:g,cancelable:E,detail:T,...v}=a;h.initEvent(e,g,E,T),Object.keys(v).forEach(_=>{h[_]=v[_]})}return["dataTransfer","clipboardData"].forEach(g=>{const E=a[g];typeof E=="object"&&(typeof p.DataTransfer=="function"?Object.defineProperty(h,g,{value:Object.getOwnPropertyNames(E).reduce((T,v)=>(Object.defineProperty(T,v,{value:E[v]}),T),new p.DataTransfer)}):Object.defineProperty(h,g,{value:E}))}),h}i(ki,"createEvent");Object.keys(tb).forEach(e=>{const{EventType:t,defaultInit:r}=tb[e],n=e.toLowerCase();ki[e]=(o,s)=>ki(n,o,s,{EventType:t,defaultInit:r}),To[e]=(o,s)=>To(o,ki[e](o,s))});function HR(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(HR,"setNativeValue");Object.keys(rb).forEach(e=>{const t=rb[e];To[e]=function(){return To[t](...arguments)}});function zR(e){return e.replace(/[ \t]*[\n][ \t]*/g,`
|
|
336
|
-
`)}i(zR,"unindent");function GR(e){return FB.default.compressToEncodedURIComponent(zR(e))}i(GR,"encode");function WR(e){return"https://testing-playground.com/#markup="+GR(e)}i(WR,"getPlaygroundUrl");var EJ=i((e,t,r)=>Array.isArray(e)?e.forEach(n=>qd(n,t,r)):qd(e,t,r),"debug"),TJ=i(function(e){if(e===void 0&&(e=bc().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=WR(e.innerHTML);return console.log(`Open this URL in your browser
|
|
337
|
-
|
|
338
|
-
`+t),t},"logTestingPlaygroundURL"),nb={debug:EJ,logTestingPlaygroundURL:TJ},wJ=typeof document<"u"&&document.body?Ha(document.body,Va,nb):Object.keys(Va).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),nb);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 Nt(e){var t;if(KR(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 ${YR(e)}`)}i(Nt,"getWindow");function KR(e){return e.nodeType===9}i(KR,"isDocument");function YR(e){return typeof e=="function"?`function ${e.name}`:e===null?"null":String(e)}i(YR,"describe");function $h(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($h,"readBlobText");function _c(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(_c,"createFileList");function wr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}i(wr,"_define_property");var XR=class{getAsFile(){return this.file}getAsString(t){typeof this.data=="string"&&t(this.data)}webkitGetAsEntry(){throw new Error("not implemented")}constructor(t,r){wr(this,"kind",void 0),wr(this,"type",void 0),wr(this,"file",null),wr(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(XR,"DataTransferItemStub");var QR=XR,ZR=class extends Array{add(...t){const r=new QR(t[0],t[1]);return this.push(r),r}clear(){this.splice(0,this.length)}remove(t){this.splice(t,1)}};i(ZR,"DataTransferItemListStub");var _J=ZR;function wi(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(wi,"getTypeMatcher");function eO(e){var t;return new(t=class{getData(r){var n;const o=(n=this.items.find(wi(r,!0)))!==null&&n!==void 0?n:this.items.find(wi(r,!1));let s="";return o?.getAsString(a=>{s=a}),s}setData(r,n){const o=this.items.findIndex(wi(r,!0)),s=new QR(n,r);o>=0?this.items.splice(o,1,s):this.items.push(s)}clearData(r){if(r){const n=this.items.findIndex(wi(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(){wr(this,"dropEffect","none"),wr(this,"effectAllowed","uninitialized"),wr(this,"items",new _J),wr(this,"files",_c(e,[]))}},i(t,"DataTransferStub"),t)}i(eO,"createDataTransferStub");function Sc(e,t=[]){const r=typeof e.DataTransfer>"u"?eO(e):new e.DataTransfer;return Object.defineProperty(r,"files",{get:i(()=>_c(e,t),"get")}),r}i(Sc,"createDataTransfer");async function tO(e,t){return t.kind==="file"?t.getAsFile():new e.Blob([await new Promise(r=>t.getAsString(r))],{type:t.type})}i(tO,"getBlobFromDataTransferItem");function Bh(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}i(Bh,"_define_property");function Jh(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){Bh(this,"data",void 0),this.data=o}},i(r,"ClipboardItem"),r)(n)}i(Jh,"createClipboardItem");var wo=Symbol("Manage ClipboardSub");function Vd(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=>$h(a,e.FileReader)))}return n}async write(n){this.items=n}async writeText(n){this.items=[Jh(e,n)]}constructor(...n){super(...n),Bh(this,"items",[])}},i(r,"Clipboard"),r),{[wo]:t})}i(Vd,"createClipboardStub");function Pc(e){return!!e?.[wo]}i(Pc,"isClipboardStub");function rO(e){if(Pc(e.navigator.clipboard))return e.navigator.clipboard[wo];const t=Object.getOwnPropertyDescriptor(e.navigator,"clipboard");let r;const n={resetClipboardStub:i(()=>{r=Vd(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=Vd(e,n),Object.defineProperty(e.navigator,"clipboard",{get:i(()=>r,"get"),configurable:!0}),r[wo]}i(rO,"attachClipboardStubToView");function nO(e){Pc(e.navigator.clipboard)&&e.navigator.clipboard[wo].resetClipboardStub()}i(nO,"resetClipboardStubOnView");function oO(e){Pc(e.navigator.clipboard)&&e.navigator.clipboard[wo].detachClipboardStub()}i(oO,"detachClipboardStubFromView");async function iO(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=Sc(t);for(const s of n)for(const a of s.types)o.setData(a,await s.getType(a).then(c=>$h(c,t.FileReader)));return o}i(iO,"readDataTransferFromClipboard");async function Uh(e,t){const r=Nt(e),n=r.navigator.clipboard,o=[];for(let a=0;a<t.items.length;a++){const c=t.items[a],u=await tO(r,c);o.push(Jh(r,u))}if(!(n&&await n.write(o).then(()=>!0,()=>!1)))throw new Error("The Clipboard API is unavailable.")}i(Uh,"writeDataTransferToClipboard");var za=globalThis;typeof za.afterEach=="function"&&za.afterEach(()=>{typeof globalThis.window<"u"&&nO(globalThis.window)});typeof za.afterAll=="function"&&za.afterAll(()=>{typeof globalThis.window<"u"&&oO(globalThis.window)});var sO=["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 Ac(e){return e.matches(sO)}i(Ac,"isFocusable");function aO(e){return new e.constructor(e.type,e)}i(aO,"cloneEvent");function sr(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(sr,"isDisabled");function $o(e){const t=e.activeElement;return t?.shadowRoot?$o(t.shadowRoot):sr(t)?e.ownerDocument?e.ownerDocument.body:e.body:t}i($o,"getActiveElement");function na(e){var t;return(t=$o(e))!==null&&t!==void 0?t:e.body}i(na,"getActiveElementOrBody");function lO(e,t){let r=e;do{if(t(r))return r;r=r.parentElement}while(r&&r!==e.ownerDocument.body)}i(lO,"findClosest");function Gr(e){return e.hasAttribute("contenteditable")&&(e.getAttribute("contenteditable")=="true"||e.getAttribute("contenteditable")=="")}i(Gr,"isContentEditable");function _o(e){const t=cO(e);return t&&(t.closest('[contenteditable=""]')||t.closest('[contenteditable="true"]'))}i(_o,"getContentEditable");function cO(e){return e.nodeType===1?e:e.parentElement}i(cO,"getElement");var uO=(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})(uO||{});function Vh(e){return ye(e,"button")||ye(e,"input")&&e.type in uO}i(Vh,"isClickableInput");function Rn(e){return Hh(e)&&!e.readOnly||Gr(e)}i(Rn,"isEditable");var dO=(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})(dO||{});function Hh(e){return ye(e,"textarea")||ye(e,"input")&&e.type in dO}i(Hh,"isEditableInputOrTextArea");function Wt(e){return zh(e)&&Hh(e)}i(Wt,"hasOwnSelection");function pO(e){return zh(e)&&Vh(e)}i(pO,"hasNoSelection");function zh(e){return e.nodeType===1}i(zh,"isElement");function fO(e){const t=e.ownerDocument.getSelection();if(t?.focusNode&&Wt(e)){const n=_o(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(fO,"updateSelectionOnFocus");function On(e,t){return Te().eventWrapper(e)}i(On,"wrapEvent");function Rr(e){const t=lO(e,Ac),r=$o(e.ownerDocument);(t??e.ownerDocument.body)!==r&&(On(t?()=>t.focus():()=>r?.blur()),fO(t??e.ownerDocument.body))}i(Rr,"focusElement");function mO(e){!Ac(e)||!($o(e.ownerDocument)===e)||On(()=>e.blur())}i(mO,"blurElement");var Wr={};Wr.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()=>{Ac(o)&&(Rr(o),r.dispatchEvent(o,aO(e)))};if(ye(t,"input",{type:"file"}))return()=>{mO(t),t.dispatchEvent(new(Nt(t)).Event("fileDialog")),Rr(t)}};var So=Symbol("Displayed value in UI"),_r=Symbol("Displayed selection in UI"),Ga=Symbol("Initial value to compare on blur");function hO(e){return typeof e=="object"&&So in e}i(hO,"isUIValue");function yO(e){return!!e&&typeof e=="object"&&_r in e}i(yO,"isUISelectionStart");function gO(e,t){e[Ga]===void 0&&(e[Ga]=e.value),e[So]=t,e.value=Object.assign(new String(t),{[So]:!0})}i(gO,"setUIValue");function Kt(e){return e[So]===void 0?e.value:String(e[So])}i(Kt,"getUIValue");function Rc(e){e[So]=void 0}i(Rc,"setUIValueClean");function Gh(e){e[Ga]=void 0}i(Gh,"clearInitialValue");function bO(e){return e[Ga]}i(bO,"getInitialValue");function vO(e,t){e[_r]=t}i(vO,"setUISelectionRaw");function Bn(e,{focusOffset:t,anchorOffset:r=t},n="replace"){const o=Kt(e).length,s=i(f=>Math.max(0,Math.min(o,f)),"sanitizeOffset"),a=n==="replace"||e[_r]===void 0?s(r):e[_r].anchorOffset,c=s(t),u=Math.min(a,c),d=Math.max(a,c);if(e[_r]={anchorOffset:a,focusOffset:c},e.selectionStart===u&&e.selectionEnd===d)return;const p=Object.assign(new Number(u),{[_r]:!0});try{e.setSelectionRange(p,d)}catch{}}i(Bn,"setUISelection");function Po(e){var t,r,n;const o=(n=e[_r])!==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(Po,"getUISelection");function EO(e){return!!e[_r]}i(EO,"hasUISelection");function Di(e){e[_r]=void 0}i(Di,"setUISelectionClean");var Wa=globalThis.parseInt;function TO(e){const t=e.replace(/\D/g,"");if(t.length<2)return e;const r=Wa(t[0],10),n=Wa(t[1],10);if(r>=3||r===2&&n>=4){let o;return r>=3?o=1:o=2,Hd(t,o)}return e.length===2?e:Hd(t,2)}i(TO,"buildTimeValue");function Hd(e,t){const r=e.slice(0,t),n=Math.min(Wa(r,10),23),o=e.slice(t),s=Wa(o,10),a=Math.min(s,59);return`${n.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`}i(Hd,"build");function Wh(e,t){const r=e.cloneNode();return r.value=t,r.value===t}i(Wh,"isValidDateOrTimeValue");var wO=(function(e){return e.email="email",e.password="password",e.search="search",e.telephone="telephone",e.text="text",e.url="url",e})(wO||{});function _O(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(_O,"getMaxLength");function SO(e){return ye(e,"textarea")||ye(e,"input")&&e.type in wO}i(SO,"supportsMaxLength");function Kh(e,t,r,n){if(Li(e)&&t+r>=0&&t+r<=e.nodeValue.length)return{node:e,offset:t+r};const o=zd(e,t,r);if(o){if(Li(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=zd(o,void 0,r);return s?Li(s)?{node:s,offset:r>0?0:s.nodeValue.length}:r<0&&ye(s,"br")?{node:o.parentNode,offset:_i(o)}:{node:s.parentNode,offset:_i(s)+(r>0?0:1)}:r<0&&n==="deleteContentBackward"?{node:o.parentNode,offset:_i(o)}:void 0}else return{node:o.parentNode,offset:_i(o)+(r>0?1:0)}}}i(Kh,"getNextCursorPosition");function zd(e,t,r){const n=Number(t)+(r<0?-1:0);return t!==void 0&&Oc(e)&&n>=0&&n<e.children.length&&(e=e.children[n]),AO(e,r===1?"next":"previous",PO)}i(zd,"getNextCharacterContentNode");function PO(e){if(Li(e))return!0;if(Oc(e)){if(ye(e,["input","textarea"]))return e.type!=="hidden";if(ye(e,"br"))return!0}return!1}i(PO,"isTreatedAsCharacterContent");function _i(e){let t=0;for(;e.previousSibling;)t++,e=e.previousSibling;return t}i(_i,"getOffset");function Oc(e){return e.nodeType===1}i(Oc,"isElement");function Li(e){return e.nodeType===3}i(Li,"isTextNode");function AO(e,t,r){for(;;){var n;const o=e[`${t}Sibling`];if(o){if(e=RO(o,t==="next"?"first":"last"),r(e))return e}else if(e.parentNode&&(!Oc(e.parentNode)||!Gr(e.parentNode)&&e.parentNode!==((n=e.ownerDocument)===null||n===void 0?void 0:n.body)))e=e.parentNode;else break}}i(AO,"walkNodes");function RO(e,t){for(;e.hasChildNodes();)e=e[`${t}Child`];return e}i(RO,"getDescendant");var as=Symbol("Track programmatic changes for React workaround");function OO(e){return Object.getOwnPropertyNames(e).some(t=>t.startsWith("__react"))&&Nt(e).REACT_VERSION===17}i(OO,"isReact17Element");function CO(e){OO(e)&&(e[as]={previousValue:String(e.value),tracked:[]})}i(CO,"startTrackValue");function xO(e,t){var r,n;(n=e[as])===null||n===void 0||(r=n.tracked)===null||r===void 0||r.push(t),e[as]||(Rc(e),Bn(e,{focusOffset:t.length}))}i(xO,"trackOrSetValue");function NO(e,t){var r;const n=e[as];if(e[as]=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||Rc(e),EO(e)&&Bn(e,{focusOffset:o?t:e.value.length})}i(NO,"commitValueAfterInput");function Yh(e){const t=IO(e);if(t&&Wt(t))return{type:"input",selection:Po(t)};const r=t?.ownerDocument.getSelection();return{type:_o(e)&&r?.anchorNode&&_o(r.anchorNode)?"contenteditable":"default",selection:r}}i(Yh,"getTargetTypeAndSelection");function IO(e){return e.nodeType===1?e:e.parentElement}i(IO,"getElement");function MO(e){const t=Yh(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(MO,"getInputRange");function Kr({focusNode:e,focusOffset:t,anchorNode:r=e,anchorOffset:n=t}){var o,s;if(Yh(e).type==="input")return Bn(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(Kr,"setSelection");function Xh(e){return ye(e,"input")&&["date","time"].includes(e.type)}i(Xh,"isDateOrTime");function Cn(e,t,r,n="insertText"){const o=MO(t);o&&(!Xh(t)&&!e.dispatchUIEvent(t,"beforeinput",{inputType:n,data:r})||("startContainer"in o?qO(e,t,o,r,n):jO(e,t,o,r,n)))}i(Cn,"input");function qO(e,t,r,n,o){let s=!1;if(!r.collapsed)s=!0,r.deleteContents();else if(["deleteContentBackward","deleteContentForward"].includes(o)){const a=Kh(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(qO,"editContenteditable");function jO(e,t,r,n,o){let s=n;if(SO(t)){const d=_O(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}=kO(s,t,r,o);a===u&&c===r.startOffset&&c===r.endOffset||ye(t,"input",{type:"number"})&&!DO(a)||(gO(t,a),Kr({focusNode:t,anchorOffset:c,focusOffset:c}),Xh(t)?Wh(t,a)&&(Gd(e,t,c,{}),e.dispatchUIEvent(t,"change"),Gh(t)):Gd(e,t,c,{data:n,inputType:o}))}i(jO,"editInputElement");function kO(e,t,{startOffset:r,endOffset:n},o){const s=Kt(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 h=TO(p);h!==""&&Wh(t,h)&&(p=h,f=h.length)}return{oldValue:s,newValue:p,newOffset:f}}i(kO,"calculateNewValue");function Gd(e,t,r,n){e.dispatchUIEvent(t,"input",n),NO(t,r)}i(Gd,"commitInput");function DO(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(DO,"isValidNumberInput");Wr.cut=(e,t,r)=>()=>{Rn(t)&&Cn(r,t,"","deleteByCut")};function LO(e){return e?Gr(e)?e.textContent:Kt(e):null}i(LO,"getValueOrTextContent");function FO(e){const t=Nt(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(FO,"isVisible");function $O(e,t){const r=e.ownerDocument,n=r.querySelectorAll(sO),o=Array.from(n).filter(u=>u===e||!(Number(u.getAttribute("tabindex"))<0||sr(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||FO(a[u]))return a[u]}i($O,"getTabDestination");function Wd(e,t){if(Wt(e)){const r=Po(e);Kr({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=Kh(r.focusNode,r.focusOffset,t);n&&Kr({focusNode:n.node,focusOffset:n.offset})}else r[t<0?"collapseToStart":"collapseToEnd"]()}}i(Wd,"moveSelection");function Qh(e){if(Wt(e))return Kr({focusNode:e,anchorOffset:0,focusOffset:Kt(e).length});var t;const r=(t=_o(e))!==null&&t!==void 0?t:e.ownerDocument.body;Kr({focusNode:r,anchorOffset:0,focusOffset:r.childNodes.length})}i(Qh,"selectAll");function BO(e){if(Wt(e))return Po(e).startOffset===0&&Po(e).endOffset===Kt(e).length;var t;const r=(t=_o(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(BO,"isAllSelected");function Xn(e,t,r){var n;if(Wt(e))return Kr({focusNode:e,anchorOffset:t,focusOffset:r});if(Gr(e)&&((n=e.firstChild)===null||n===void 0?void 0:n.nodeType)===3)return Kr({focusNode:e.firstChild,anchorOffset:t,focusOffset:r});throw new Error("Not implemented. The result of this interaction is unreliable.")}i(Xn,"setSelectionRange");function Si(e,t,r){const n=Nt(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(!sr(o[s])){Rr(o[s]),e.dispatchUIEvent(o[s],"click");return}}}i(Si,"walkRadio");Wr.keydown=(e,t,r)=>{var n,o;return(o=(n=ob[e.key])===null||n===void 0?void 0:n.call(ob,e,t,r))!==null&&o!==void 0?o:SJ(e,t,r)};var ob={ArrowDown:i((e,t,r)=>{if(ye(t,"input",{type:"radio"}))return()=>Si(r,t,1)},"ArrowDown"),ArrowLeft:i((e,t,r)=>ye(t,"input",{type:"radio"})?()=>Si(r,t,-1):()=>Wd(t,-1),"ArrowLeft"),ArrowRight:i((e,t,r)=>ye(t,"input",{type:"radio"})?()=>Si(r,t,1):()=>Wd(t,1),"ArrowRight"),ArrowUp:i((e,t,r)=>{if(ye(t,"input",{type:"radio"}))return()=>Si(r,t,-1)},"ArrowUp"),Backspace:i((e,t,r)=>{if(Rn(t))return()=>{Cn(r,t,"","deleteContentBackward")}},"Backspace"),Delete:i((e,t,r)=>{if(Rn(t))return()=>{Cn(r,t,"","deleteContentForward")}},"Delete"),End:i((e,t)=>{if(ye(t,["input","textarea"])||Gr(t))return()=>{var r,n;const o=(n=(r=LO(t))===null||r===void 0?void 0:r.length)!==null&&n!==void 0?n:0;Xn(t,o,o)}},"End"),Home:i((e,t)=>{if(ye(t,["input","textarea"])||Gr(t))return()=>{Xn(t,0,0)}},"Home"),PageDown:i((e,t)=>{if(ye(t,["input"]))return()=>{const r=Kt(t).length;Xn(t,r,r)}},"PageDown"),PageUp:i((e,t)=>{if(ye(t,["input"]))return()=>{Xn(t,0,0)}},"PageUp"),Tab:i((e,t,r)=>()=>{const n=$O(t,r.system.keyboard.modifiers.Shift);Rr(n),Wt(n)&&Bn(n,{anchorOffset:0,focusOffset:n.value.length})},"Tab")},SJ=i((e,t,r)=>{if(e.code==="KeyA"&&r.system.keyboard.modifiers.Control)return()=>Qh(t)},"combinationBehavior");Wr.keypress=(e,t,r)=>{if(e.key==="Enter"){if(ye(t,"button")||ye(t,"input")&&PJ.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&&AJ.includes(t.type)&&n.querySelectorAll("input").length===1?()=>r.dispatchUIEvent(n,"submit"):void 0}}if(Rn(t)){const n=e.key==="Enter"?Gr(t)&&!r.system.keyboard.modifiers.Shift?"insertParagraph":"insertLineBreak":"insertText",o=e.key==="Enter"?`
|
|
339
|
-
`:e.key;return()=>Cn(r,t,o,n)}};var PJ=["button","color","file","image","reset","submit"],AJ=["email","month","password","search","tel","text","url","week"];Wr.keyup=(e,t,r)=>{var n;return(n=ib[e.key])===null||n===void 0?void 0:n.call(ib,e,t,r)};var ib={" ":i((e,t,r)=>{if(Vh(t))return()=>r.dispatchUIEvent(t,"click")}," ")};Wr.paste=(e,t,r)=>{if(Rn(t))return()=>{var n;const o=(n=e.clipboardData)===null||n===void 0?void 0:n.getData("text");o&&Cn(r,t,o,"insertFromPaste")}};var JO={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 Zh(e){return JO[e].EventType}i(Zh,"getEventClass");var RJ=["MouseEvent","PointerEvent"];function UO(e){return RJ.includes(Zh(e))}i(UO,"isMouseEvent");function VO(e){return Zh(e)==="KeyboardEvent"}i(VO,"isKeyboardEvent");var OJ={ClipboardEvent:[zO],Event:[],FocusEvent:[zn,GO],InputEvent:[zn,WO],MouseEvent:[zn,oa,Kd],PointerEvent:[zn,oa,Kd,YO],KeyboardEvent:[zn,oa,KO]};function ey(e,t,r){const n=Nt(t),{EventType:o,defaultInit:s}=JO[e],a=new(HO(n))[o](e,s);return OJ[o].forEach(c=>c(a,r??{})),a}i(ey,"createEvent");function HO(e){var t,r,n,o,s,a,c,u,d,p,f,h,y,g,E,T;const v=(T=e.Event)!==null&&T!==void 0?T:(t=class{},i(t,"Event"),t);var _;const R=(_=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 P=(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 A;const L=(A=e.CompositionEvent)!==null&&A!==void 0?A:(u=class extends H{},i(u,"CompositionEvent"),u);var $;const D=($=e.FocusEvent)!==null&&$!==void 0?$:(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:(h=class extends H{},i(h,"MouseEvent"),h);var be;const ue=(be=e.DragEvent)!==null&&be!==void 0?be:(y=class extends ae{},i(y,"DragEvent"),y);var ee;const Re=(ee=e.PointerEvent)!==null&&ee!==void 0?ee:(g=class extends ae{},i(g,"PointerEvent"),g);var Oe;const ze=(Oe=e.TouchEvent)!==null&&Oe!==void 0?Oe:(E=class extends H{},i(E,"TouchEvent"),E);return{Event:v,AnimationEvent:R,ClipboardEvent:j,PopStateEvent:P,ProgressEvent:S,TransitionEvent:I,UIEvent:H,CompositionEvent:L,FocusEvent:D,InputEvent:X,KeyboardEvent:se,MouseEvent:ae,DragEvent:ue,PointerEvent:Re,TouchEvent:ze}}i(HO,"getEventConstructors");function xr(e,t){for(const[r,n]of Object.entries(t))Object.defineProperty(e,r,{get:i(()=>n??null,"get")})}i(xr,"assignProps");function Le(e){return Number(e??0)}i(Le,"sanitizeNumber");function zO(e,{clipboardData:t}){xr(e,{clipboardData:t})}i(zO,"initClipboardEvent");function GO(e,{relatedTarget:t}){xr(e,{relatedTarget:t})}i(GO,"initFocusEvent");function WO(e,{data:t,inputType:r,isComposing:n}){xr(e,{data:t,isComposing:!!n,inputType:String(r)})}i(WO,"initInputEvent");function zn(e,{view:t,detail:r}){xr(e,{view:t,detail:Le(r??0)})}i(zn,"initUIEvent");function oa(e,{altKey:t,ctrlKey:r,metaKey:n,shiftKey:o,modifierAltGraph:s,modifierCapsLock:a,modifierFn:c,modifierFnLock:u,modifierNumLock:d,modifierScrollLock:p,modifierSymbol:f,modifierSymbolLock:h}){xr(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:h}[y]}})}i(oa,"initUIEventModifiers");function KO(e,{key:t,code:r,location:n,repeat:o,isComposing:s,charCode:a}){xr(e,{key:String(t),code:String(r),location:Le(n),repeat:!!o,isComposing:!!s,charCode:a})}i(KO,"initKeyboardEvent");function Kd(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:h,pageY:y}){xr(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(h),pageY:Le(y)})}i(Kd,"initMouseEvent");function YO(e,{pointerId:t,width:r,height:n,pressure:o,tangentialPressure:s,tiltX:a,tiltY:c,twist:u,pointerType:d,isPrimary:p}){xr(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(YO,"initPointerEvent");function XO(e,t,r,n=!1){(UO(t)||VO(t))&&(r={...r,...this.system.getUIEventModifiers()});const o=ey(t,e,r);return ty.call(this,e,o,n)}i(XO,"dispatchUIEvent");function ty(e,t,r=!1){var n;const o=t.type,s=r?()=>{}:(n=Wr[o])===null||n===void 0?void 0:n.call(Wr,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")}),On(()=>e.dispatchEvent(t)),a||s(),!a}return On(()=>e.dispatchEvent(t))}i(ty,"dispatchEvent");function jr(e,t,r){const n=ey(t,e,r);On(()=>e.dispatchEvent(n))}i(jr,"dispatchDOMEvent");var sb=Symbol("patched focus/blur methods");function ry(e){if(e.prototype[sb])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")},[sb]:{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=Yd(this.ownerDocument);if(c===this)return;const u=Symbol("focus call");n=u,c&&(r.call(c),jr(c,"blur",{relatedTarget:this}),jr(c,"focusout",{relatedTarget:n===u?this:null})),n===u&&(t.call(this,a),jr(this,"focus",{relatedTarget:c})),n===u&&jr(this,"focusin",{relatedTarget:c})}i(o,"patchedFocus");function s(){if(this.ownerDocument.visibilityState!=="hidden")return r.call(this);const a=Yd(this.ownerDocument);if(a!==this)return;n=Symbol("blur call"),r.call(this),jr(a,"blur",{relatedTarget:null}),jr(a,"focusout",{relatedTarget:null})}i(s,"patchedBlur")}i(ry,"patchFocus");function Yd(e){const t=$o(e);return t?.tagName==="BODY"?null:t}i(Yd,"getActiveTarget");var fu=Symbol("Interceptor for programmatical calls");function fn(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][fu])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[fu]=fu,Object.defineProperty(e,t,{...o??n,[s]:a})}i(fn,"prepareInterceptor");function QO(e){fn(e,"value",i(function(r){const n=hO(r);return n&&CO(this),{applyNative:!!n,realArgs:ZO(this,r),then:n?void 0:()=>xO(this,String(r))}},"interceptorImpl"))}i(QO,"prepareValueInterceptor");function ZO(e,t){return ye(e,"input",{type:"number"})&&String(t)!==""&&!Number.isNaN(Number(t))?String(Number(t)):String(t)}i(ZO,"sanitizeValue");function eC(e){fn(e,"setSelectionRange",i(function(r,...n){const o=yO(r);return{applyNative:!!o,realArgs:[Number(r),...n],then:i(()=>o?void 0:Di(e),"then")}},"interceptorImpl")),fn(e,"selectionStart",i(function(r){return{realArgs:r,then:i(()=>Di(e),"then")}},"interceptorImpl")),fn(e,"selectionEnd",i(function(r){return{realArgs:r,then:i(()=>Di(e),"then")}},"interceptorImpl")),fn(e,"select",i(function(){return{realArgs:[],then:i(()=>vO(e,{anchorOffset:0,focusOffset:Kt(e).length}),"then")}},"interceptorImpl"))}i(eC,"prepareSelectionInterceptor");function tC(e){fn(e,"setRangeText",i(function(...r){return{realArgs:r,then:i(()=>{Rc(e),Di(e)},"then")}},"interceptorImpl"))}i(tC,"prepareRangeTextInterceptor");var oo=Symbol("Node prepared with document state workarounds");function ny(e){e[oo]||(e.addEventListener("focus",t=>{const r=t.target;Xd(r)},{capture:!0,passive:!0}),e.activeElement&&Xd(e.activeElement),e.addEventListener("blur",t=>{const r=t.target,n=bO(r);n!==void 0&&(r.value!==n&&jr(r,"change"),Gh(r))},{capture:!0,passive:!0}),e[oo]=oo)}i(ny,"prepareDocument");function Xd(e){e[oo]||(ye(e,["input","textarea"])&&(QO(e),eC(e),tC(e)),e[oo]=oo)}i(Xd,"prepareElement");function rC(e){return nC(e)?e:e.ownerDocument}i(rC,"getDocumentFromNode");function nC(e){return e.nodeType===9}i(nC,"isDocument");var Rt=(function(e){return e[e.Trigger=2]="Trigger",e[e.Call=1]="Call",e})({});function Qn(e,t){e.levelRefs[t]={}}i(Qn,"setLevelRef");function Pi(e,t){return e.levelRefs[t]}i(Pi,"getLevelRef");function xn(e){const t=e.delay;if(typeof t=="number")return Promise.all([new Promise(r=>globalThis.setTimeout(()=>r(),t)),e.advanceTimers(t)])}i(xn,"wait");var ia=(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 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 Xt=(function(e){return e[e.STANDARD=0]="STANDARD",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.NUMPAD=3]="NUMPAD",e})({}),CJ=["Alt","AltGraph","Control","Fn","Meta","Shift","Symbol"];function Qd(e){return CJ.includes(e)}i(Qd,"isModifierKey");var xJ=["CapsLock","FnLock","NumLock","ScrollLock","SymbolLock"];function Zd(e){return xJ.includes(e)}i(Zd,"isModifierLock");var oC=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=na(t.config.document);this.setKeydownTarget(s),this.pressed.add(o,r),Qd(n)&&(this.modifiers[n]=!0);const a=t.dispatchUIEvent(s,"keydown",{key:n,code:o});Zd(n)&&!this.modifiers[n]&&(this.modifiers[n]=!0,this.modifierLockStart[n]=!0),a&&this.pressed.setUnprevented(o),a&&this.hasKeyPress(n)&&t.dispatchUIEvent(na(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),Qd(n)&&!this.pressed.values().find(a=>a.keyDef.key===n)&&(this.modifiers[n]=!1),t.dispatchUIEvent(na(t.config.document),"keyup",{key:n,code:o},!s),Zd(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){Ir(this,"system",void 0),Ir(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}),Ir(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(){Ir(this,"registry",{})}}),Ir(this,"carryChar",""),Ir(this,"lastKeydownTarget",void 0),Ir(this,"modifierLockStart",{}),this.system=t}};i(oC,"KeyboardHost");var NJ=oC,IJ=[..."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:Xt.LEFT},{code:"AltRight",key:"Alt",location:Xt.RIGHT},{code:"ShiftLeft",key:"Shift",location:Xt.LEFT},{code:"ShiftRight",key:"Shift",location:Xt.RIGHT},{code:"ControlLeft",key:"Control",location:Xt.LEFT},{code:"ControlRight",key:"Control",location:Xt.RIGHT},{code:"MetaLeft",key:"Meta",location:Xt.LEFT},{code:"MetaRight",key:"Meta",location:Xt.RIGHT},{code:"OSLeft",key:"OS",location:Xt.LEFT},{code:"OSRight",key:"OS",location:Xt.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"}],MJ=[{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 iC(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}i(iC,"_define_property");var sC=class{getButtons(){let t=0;for(const r of Object.keys(this.pressed))t|=2**Number(r);return t}down(t){const r=Ka(t.button);if(r in this.pressed){this.pressed[r].push(t);return}return this.pressed[r]=[t],r}up(t){const r=Ka(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(){iC(this,"pressed",{})}};i(sC,"Buttons");var aC=sC,ab={primary:0,secondary:1,auxiliary:2,back:3,X1:3,forward:4,X2:4};function Ka(e=0){return e in ab?ab[e]:Number(e)}i(Ka,"getMouseButtonId");var lb={1:2,2:1};function Ya(e){return e=Ka(e),e in lb?lb[e]:e}i(Ya,"getMouseEventButton");function lC(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}i(lC,"_define_property");var cC=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(){lC(this,"pressedKeys",new Set)}};i(cC,"Device");var qJ=cC;function io(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(io,"getTreeDiff");function Xa({target:e,node:t,offset:r}){return Wt(e)?{node:e,offset:r??Kt(e).length}:t?{node:t,offset:r??(t.nodeType===3?t.nodeValue.length:t.childNodes.length)}:oy(e,r)}i(Xa,"resolveCaretPosition");function oy(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 oy(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(oy,"findNodeAtTextOffset");function uC({document:e,target:t,clickCount:r,node:n,offset:o}){if(pO(t))return;const s=Wt(t),a=String(s?Kt(t):t.textContent),[c,u]=n?[o,o]:dC(a,o,r);if(s)return Bn(t,{anchorOffset:c??a.length,focusOffset:u??a.length}),{node:t,start:c??0,end:u??a.length};{const{node:d,offset:p}=Xa({target:t,node:n,offset:c}),{node:f,offset:h}=Xa({target:t,node:n,offset:u}),y=t.ownerDocument.createRange();try{y.setStart(d,p),y.setEnd(f,h)}catch{throw new Error("The given offset is out of bounds.")}const g=e.getSelection();return g?.removeAllRanges(),g?.addRange(y.cloneRange()),y}}i(uC,"setSelectionPerMouseDown");function dC(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(dC,"getTextRange");function pC(e,{document:t,target:r,node:n,offset:o}){const s=Xa({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;Bn(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(pC,"modifySelectionPerMouseMove");function iy(e,t){var r,n,o,s,a,c,u,d,p,f,h,y,g,E,T,v,_,R,N,j,C,P,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)||((h=e.coords)===null||h===void 0?void 0:h.offsetY)!==((y=t.coords)===null||y===void 0?void 0:y.offsetY)||((g=e.coords)===null||g===void 0?void 0:g.pageX)!==((E=t.coords)===null||E===void 0?void 0:E.pageX)||((T=e.coords)===null||T===void 0?void 0:T.pageY)!==((v=t.coords)===null||v===void 0?void 0:v.pageY)||((_=e.coords)===null||_===void 0?void 0:_.screenX)!==((R=t.coords)===null||R===void 0?void 0:R.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)!==((P=t.caret)===null||P===void 0?void 0:P.node)||((w=e.caret)===null||w===void 0?void 0:w.offset)!==((S=t.caret)===null||S===void 0?void 0:S.offset)}i(iy,"isDifferentPointerPosition");function Mr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}i(Mr,"_define_property");var fC=class{move(t,r,n){const o=this.position,s=this.getTarget(t);if(this.position=r,!iy(o,r))return;const a=this.getTarget(t),c=this.getEventInit("mousemove"),[u,d]=io(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=sr(s);!n&&(c||t.dispatchUIEvent(s,"mousedown",a))&&(this.startSelecting(t,a.detail),Rr(s)),!c&&Ya(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(!sr(s)){if(!n){const c=this.getEventInit("mouseup",r.button);t.dispatchUIEvent(s,"mouseup",c),this.endSelecting()}const a=io(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=Ya(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=uC({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&&pC(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(){Mr(this,"position",{}),Mr(this,"buttons",new aC),Mr(this,"selecting",void 0),Mr(this,"buttonDownTarget",{}),Mr(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(){Mr(this,"down",{}),Mr(this,"count",{})}})}};i(fC,"Mouse");var jJ=fC;function ls(e,t){var r;return((r=sy(e,t))===null||r===void 0?void 0:r.pointerEvents)!=="none"}i(ls,"hasPointerEvents");function mC(e){const t=Nt(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(mC,"closestPointerEventsDeclaration");var cb=Symbol("Last check for pointer-events");function sy(e,t){const r=t[cb];if(!(e.config.pointerEventsCheck!==ia.Never&&(!r||ep(e.config.pointerEventsCheck,ia.EachApiCall)&&r[Rt.Call]!==Pi(e,Rt.Call)||ep(e.config.pointerEventsCheck,ia.EachTrigger)&&r[Rt.Trigger]!==Pi(e,Rt.Trigger))))return r?.result;const o=mC(t);return t[cb]={[Rt.Call]:Pi(e,Rt.Call),[Rt.Trigger]:Pi(e,Rt.Trigger),result:o},o}i(sy,"checkPointerEvents");function Zn(e,t){const r=sy(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\`:`,"",hC(r.tree)].join(`
|
|
340
|
-
`))}i(Zn,"assertPointerEvents");function hC(e){return e.reverse().map((t,r)=>["".padEnd(r),t.tagName,t.id&&`#${t.id}`,t.hasAttribute("data-testid")&&`(testId=${t.getAttribute("data-testid")})`,yC(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(hC,"printTree");function yC(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(yC,"getLabelDescr");function ep(e,t){return(e&t)>0}i(ep,"hasBitFlag");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 gC=class{init(t){const r=this.getTarget(t),[,n]=io(null,r),o=this.getEventInit();return Zn(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,!iy(n,r))return;const s=this.getTarget(t),a=this.getEventInit(-1),[c,u]=io(o,s);return{leave:i(()=>{ls(t,o)&&o!==s&&(t.dispatchUIEvent(o,"pointerout",a),c.forEach(d=>t.dispatchUIEvent(d,"pointerleave",a)))},"leave"),enter:i(()=>{Zn(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);Zn(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);Zn(t,n),this.isPrevented=!1,this.isDown=!1,t.dispatchUIEvent(n,"pointerup",this.getEventInit(r))}release(t){const r=this.getTarget(t),[n]=io(r,null),o=this.getEventInit();ls(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:Ya(t),buttons:this.buttons.getButtons()}}constructor({pointerId:t,pointerType:r,isPrimary:n},o){er(this,"pointerId",void 0),er(this,"pointerType",void 0),er(this,"isPrimary",void 0),er(this,"buttons",void 0),er(this,"isMultitouch",!1),er(this,"isCancelled",!1),er(this,"isDown",!1),er(this,"isPrevented",!1),er(this,"position",{}),this.pointerId=t,this.pointerType=r,this.isPrimary=n,this.isMultitouch=!n,this.buttons=o}};i(gC,"Pointer");var kJ=gC;function br(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}i(br,"_define_property");var bC=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){br(this,"system",void 0),br(this,"mouse",void 0),br(this,"buttons",void 0),br(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 qJ}constructor(){br(this,"registry",{})}}),br(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 kJ({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(){br(this,"registry",{}),br(this,"nextId",1)}}),this.system=t,this.buttons=new aC,this.mouse=new jJ,this.pointers.new("mouse","mouse",this.buttons)}};i(bC,"PointerHost");var DJ=bC;function tp(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}i(tp,"_define_property");var vC=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(){tp(this,"keyboard",new NJ(this)),tp(this,"pointer",new DJ(this))}};i(vC,"System");var EC=vC;async function TC(e){const t=[];return this.config.skipHover||t.push({target:e}),t.push({keys:"[MouseLeft]",target:e}),this.pointer(t)}i(TC,"click");async function wC(e){return this.pointer([{target:e},"[MouseLeft][MouseLeft]"])}i(wC,"dblClick");async function _C(e){return this.pointer([{target:e},"[MouseLeft][MouseLeft][MouseLeft]"])}i(_C,"tripleClick");async function SC(e){return this.pointer({target:e})}i(SC,"hover");async function PC(e){return Zn(this,this.system.pointer.getMouseTarget(this)),this.pointer({target:e.ownerDocument.body})}i(PC,"unhover");async function AC({shift:e}={}){return this.keyboard(e===!0?"{Shift>}{Tab}{/Shift}":e===!1?"[/ShiftLeft][/ShiftRight]{Tab}":"{Tab}")}i(AC,"tab");var ay=(function(e){return e["{"]="}",e["["]="]",e})(ay||{});function ly(e,t){let r=0;const n=e[r]in ay?e[r]:"";r+=n.length;const s=new RegExp(`^\\${n}{2}`).test(e)?"":n;return{type:s,...s===""?RC(e,r,t):OC(e,r,s,t)}}i(ly,"readNextDescriptor");function RC(e,t,r){const n=e[t];return cy(n,e,t,r),t+=n.length,{consumedLength:t,descriptor:n,releasePrevious:!1,releaseSelf:!0,repeat:1}}i(RC,"readPrintableChar");function OC(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];cy(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 h=ay[r],y=e[t]===h?h:"";if(!y)throw new Error(uy([!p&&"repeat modifier",!f&&"release modifier",`"${h}"`].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:CC(f,p)}}i(OC,"readTag");function cy(e,t,r,n){if(!e)throw new Error(uy("key descriptor",t[r],t,n))}i(cy,"assertDescriptor");function CC(e,t){if(e)return e==="/";if(t)return!1}i(CC,"hasReleaseSelf");function uy(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(uy,"getErrorMessage");function xC(e,t){const r=[];do{const{type:o,descriptor:s,consumedLength:a,releasePrevious:c,releaseSelf:u=!0,repeat:d}=ly(t,"keyboard");var n;const p=(n=e.find(f=>{if(o==="["){var h;return((h=f.code)===null||h===void 0?void 0:h.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(xC,"parseKeyDef");async function NC(e){const t=xC(this.config.keyboardMap,e);for(let r=0;r<t.length;r++)await xn(this.config),await IC(this,t[r])}i(NC,"keyboard");async function IC(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 xn(e.config);n&&await s.keyboard.keyup(e,t)}}i(IC,"keyboardAction");async function MC(e){for(const t of e.system.keyboard.getPressedKeys())await e.system.keyboard.keyup(e,t)}i(MC,"releaseAllKeys");function dy(e){const t=Wt(e)?{"text/plain":qC(e)}:{"text/plain":String(e.ownerDocument.getSelection())},r=Sc(Nt(e));for(const n in t)t[n]&&r.setData(n,t[n]);return r}i(dy,"copySelection");function qC(e){const t=Po(e);return Kt(e).substring(t.startOffset,t.endOffset)}i(qC,"readSelectedValueFromInput");async function jC(){const e=this.config.document;var t;const r=(t=e.activeElement)!==null&&t!==void 0?t:e.body,n=dy(r);if(n.items.length!==0)return this.dispatchUIEvent(r,"copy",{clipboardData:n})&&this.config.writeToClipboard&&await Uh(e,n),n}i(jC,"copy");async function kC(){const e=this.config.document;var t;const r=(t=e.activeElement)!==null&&t!==void 0?t:e.body,n=dy(r);if(n.items.length!==0)return this.dispatchUIEvent(r,"cut",{clipboardData:n})&&this.config.writeToClipboard&&await Uh(r.ownerDocument,n),n}i(kC,"cut");async function DC(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"?LC(t,e):e)!==null&&o!==void 0?o:await iO(t).catch(()=>{throw new Error("`userEvent.paste()` without `clipboardData` requires the `ClipboardAPI` to be available.")});this.dispatchUIEvent(n,"paste",{clipboardData:s})}i(DC,"paste");function LC(e,t){const r=Sc(Nt(e));return r.setData("text",t),r}i(LC,"getClipboardDataFromString");function rp(e,t){const r=[];do{const{descriptor:n,consumedLength:o,releasePrevious:s,releaseSelf:a=!0}=ly(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(rp,"parseKeyDef");async function FC(e){const{pointerMap:t}=this.config,r=[];(Array.isArray(e)?e:[e]).forEach(n=>{typeof n=="string"?r.push(...rp(t,n)):"keys"in n?r.push(...rp(t,n.keys).map(o=>({...n,...o}))):r.push(n)});for(let n=0;n<r.length;n++)await xn(this.config),await $C(this,r[n]);this.system.pointer.resetClickCount()}i(FC,"pointer");async function $C(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:BC(e,s),coords:(c=t.coords)!==null&&c!==void 0?c:s?.coords,caret:{node:(u=t.node)!==null&&u!==void 0?u:np(t)||s==null||(r=s.caret)===null||r===void 0?void 0:r.node,offset:(d=t.offset)!==null&&d!==void 0?d:np(t)||s==null||(n=s.caret)===null||n===void 0?void 0:n.offset}};"keyDef"in t?(e.system.pointer.isKeyPressed(t.keyDef)&&(Qn(e,Rt.Trigger),await e.system.pointer.release(e,t.keyDef,p)),t.releasePrevious||(Qn(e,Rt.Trigger),await e.system.pointer.press(e,t.keyDef,p),t.releaseSelf&&(Qn(e,Rt.Trigger),await e.system.pointer.release(e,t.keyDef,p)))):(Qn(e,Rt.Trigger),await e.system.pointer.move(e,o,p))}i($C,"pointerAction");function np(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(np,"hasCaretPosition");function BC(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(BC,"getPrevTarget");async function JC(e){if(!Rn(e)||sr(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(Qh(e),!BO(e))throw new Error("The element content to be cleared could not be selected.");Cn(this,e,"","deleteContentBackward")}i(JC,"clear");async function UC(e,t){return py.call(this,!0,e,t)}i(UC,"selectOptions");async function VC(e,t){return py.call(this,!1,e,t)}i(VC,"deselectOptions");async function py(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=>!sr(c));if(sr(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:ls(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 xn(this.config)}else if(s.length===1){const c=this.config.pointerEventsCheck===0?!0:ls(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 xn(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(py,"selectOptionsBase");async function HC(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&&Xn(e,o,s??o),await this.keyboard(t),n||await MC(this))}i(HC,"type");var ub=Symbol("files and value properties are mocked");function sa(e,t,r){r?Object.defineProperty(e,t,r):delete e[t]}i(sa,"restoreProperty");function zC(e,t){var r;(r=e[ub])===null||r===void 0||r.restore();const n=Object.getOwnPropertyDescriptor(e,"type"),o=Object.getOwnPropertyDescriptor(e,"value"),s=Object.getOwnPropertyDescriptor(e,"files");function a(){sa(e,"type",n),sa(e,"value",o),sa(e,"files",s)}i(a,"restore"),e[ub]={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(zC,"setFiles");async function GC(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(sr(e))return;const n=(Array.isArray(t)?t:[t]).filter(s=>!this.config.applyAccept||WC(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))})||(zC(r,_c(Nt(e),n)),this.dispatchUIEvent(r,"input"),this.dispatchUIEvent(r,"change"))},"fileDialog");r.addEventListener("fileDialog",o),await this.click(e),r.removeEventListener("fileDialog",o)}i(GC,"upload");function Ai(e){return e.toLowerCase().replace(/(\.|\/)jpg\b/g,"$1jpeg")}i(Ai,"normalize");function WC(e,t){if(!t)return!0;const r=["audio/*","image/*","video/*"];return Ai(t).trim().split(/\s*,\s*/).some(n=>n.startsWith(".")?Ai(e.name).endsWith(n):r.includes(n)?Ai(e.type).startsWith(n.replace("*","")):Ai(e.type)===n)}i(WC,"isAcceptableFile");var db={click:TC,dblClick:wC,tripleClick:_C,hover:SC,unhover:PC,tab:AC,keyboard:NC,copy:jC,cut:kC,paste:DC,pointer:FC,clear:JC,deselectOptions:VC,selectOptions:UC,type:HC,upload:GC};function KC(e){return Te().asyncWrapper(e)}i(KC,"wrapAsync");var YC={applyAccept:!0,autoModify:!0,delay:0,document:globalThis.document,keyboardMap:IJ,pointerMap:MJ,pointerEventsCheck:ia.EachApiCall,skipAutoClose:!1,skipClick:!1,skipHover:!1,writeToClipboard:!1,advanceTimers:i(()=>Promise.resolve(),"advanceTimers")},LJ={...YC,writeToClipboard:!0};function fy(e={},t=LJ,r){const n=ex(e,r,t);return{...t,...e,document:n}}i(fy,"createConfig");function XC(e={}){const t=fy(e);ny(t.document),ry(Nt(t.document).HTMLElement);var r;const n=(r=t.document.defaultView)!==null&&r!==void 0?r:globalThis.window;return rO(n),Cc(t).api}i(XC,"setupMain");function dt({keyboardState:e,pointerState:t,...r}={},n){const o=fy(r,YC,n);ny(o.document),ry(Nt(o.document).HTMLElement);var s;const a=(s=t??e)!==null&&s!==void 0?s:new EC;return{api:Cc(o,a).api,system:a}}i(dt,"setupDirect");function QC(e){return Cc({...this.config,...e},this.system).api}i(QC,"setupSub");function ZC(e,t){function r(...n){return Qn(e,Rt.Call),KC(()=>t.apply(e,n).then(async o=>(await xn(e.config),o)))}return i(r,"method"),Object.defineProperty(r,"name",{get:i(()=>t.name,"get")}),r}i(ZC,"wrapAndBindImpl");function Cc(e,t=new EC){const r={};return Object.assign(r,{config:e,dispatchEvent:ty.bind(r),dispatchUIEvent:XO.bind(r),system:t,levelRefs:{},...db}),{instance:r,api:{...Object.fromEntries(Object.entries(db).map(([n,o])=>[n,ZC(r,o)])),setup:QC.bind(r)}}}i(Cc,"createInstance");function ex(e,t,r){var n,o;return(o=(n=e.document)!==null&&n!==void 0?n:t&&rC(t))!==null&&o!==void 0?o:r.document}i(ex,"getDocument");var tx={};Tt(tx,{clear:()=>rx,click:()=>nx,copy:()=>ox,cut:()=>ix,dblClick:()=>sx,deselectOptions:()=>ax,hover:()=>lx,keyboard:()=>cx,paste:()=>dx,pointer:()=>ux,selectOptions:()=>px,tab:()=>gx,tripleClick:()=>fx,type:()=>mx,unhover:()=>hx,upload:()=>yx});function rx(e){return dt().api.clear(e)}i(rx,"clear");function nx(e,t={}){return dt(t,e).api.click(e)}i(nx,"click");function ox(e={}){return dt(e).api.copy()}i(ox,"copy");function ix(e={}){return dt(e).api.cut()}i(ix,"cut");function sx(e,t={}){return dt(t).api.dblClick(e)}i(sx,"dblClick");function ax(e,t,r={}){return dt(r).api.deselectOptions(e,t)}i(ax,"deselectOptions");function lx(e,t={}){return dt(t).api.hover(e)}i(lx,"hover");async function cx(e,t={}){const{api:r,system:n}=dt(t);return r.keyboard(e).then(()=>n)}i(cx,"keyboard");async function ux(e,t={}){const{api:r,system:n}=dt(t);return r.pointer(e).then(()=>n)}i(ux,"pointer");function dx(e,t){return dt(t).api.paste(e)}i(dx,"paste");function px(e,t,r={}){return dt(r).api.selectOptions(e,t)}i(px,"selectOptions");function fx(e,t={}){return dt(t).api.tripleClick(e)}i(fx,"tripleClick");function mx(e,t,r={}){return dt(r,e).api.type(e,t,r)}i(mx,"type");function hx(e,t={}){const{api:r,system:n}=dt(t);return n.pointer.setMousePosition({target:e}),r.unhover(e)}i(hx,"unhover");function yx(e,t,r={}){return dt(r).api.upload(e,t)}i(yx,"upload");function gx(e={}){return dt().api.tab(e)}i(gx,"tab");var bx={...tx,setup:XC},op=No({...CP},{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")});op.screen=new Proxy(op.screen,{get(e,t,r){return typeof window<"u"&&globalThis.location?.href?.includes("viewMode=docs")&&Ve.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:FJ,configure:$J,createEvent:BJ,fireEvent:JJ,findAllByAltText:UJ,findAllByDisplayValue:VJ,findAllByLabelText:HJ,findAllByPlaceholderText:zJ,findAllByRole:GJ,findAllByTestId:WJ,findAllByText:KJ,findAllByTitle:YJ,findByAltText:XJ,findByDisplayValue:QJ,findByLabelText:ZJ,findByPlaceholderText:eU,findByRole:tU,findByTestId:rU,findByText:nU,findByTitle:oU,getAllByAltText:iU,getAllByDisplayValue:sU,getAllByLabelText:aU,getAllByPlaceholderText:lU,getAllByRole:cU,getAllByTestId:uU,getAllByText:dU,getAllByTitle:pU,getByAltText:fU,getByDisplayValue:mU,getByLabelText:hU,getByPlaceholderText:yU,getByRole:gU,getByTestId:bU,getByText:vU,getByTitle:EU,getConfig:TU,getDefaultNormalizer:wU,getElementError:_U,getNodeText:SU,getQueriesForElement:PU,getRoles:AU,getSuggestedQuery:RU,isInaccessible:OU,logDOM:CU,logRoles:xU,prettyDOM:NU,queries:IU,queryAllByAltText:MU,queryAllByAttribute:qU,queryAllByDisplayValue:jU,queryAllByLabelText:kU,queryAllByPlaceholderText:DU,queryAllByRole:LU,queryAllByTestId:FU,queryAllByText:$U,queryAllByTitle:BU,queryByAltText:JU,queryByAttribute:UU,queryByDisplayValue:VU,queryByLabelText:HU,queryByPlaceholderText:zU,queryByRole:GU,queryByTestId:WU,queryByText:KU,queryByTitle:YU,queryHelpers:XU,screen:QU,waitFor:ZU,waitForElementToBeRemoved:eV,within:vx,prettyFormat:tV}=op,Ex=bx,{userEvent:rV}=No({userEvent:bx},{intercept:!0,getKeys:i(e=>Object.keys(e).filter(t=>t!=="eventWrapper"),"getKeys")}),{expect:nV}=No({expect:AP},{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")}),oV={mock:i(()=>{},"mock")},pb=!1,iV=i(e=>{const{parameters:t}=e;t?.actions?.disable||pb||(uh((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)))&&Bo(o)(n)}),pb=!0)},"logActionsWhenMockCalled"),sV=[iV],fb=i(()=>({...cw,...dw}),"default"),Qa="backgrounds",aV={light:{name:"light",value:"#F8F8F8"},dark:{name:"dark",value:"#333"}},{document:Ht}=globalThis,lV=i(()=>globalThis?.matchMedia?!!globalThis.matchMedia("(prefers-reduced-motion: reduce)")?.matches:!1,"isReduceMotionEnabled"),mb=i(e=>{(Array.isArray(e)?e:[e]).forEach(cV)},"clearStyles"),cV=i(e=>{if(!Ht)return;const t=Ht.getElementById(e);t&&t.parentElement&&t.parentElement.removeChild(t)},"clearStyle"),uV=i((e,t)=>{if(!Ht)return;const r=Ht.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{const n=Ht.createElement("style");n.setAttribute("id",e),n.innerHTML=t,Ht.head.appendChild(n)}},"addGridStyle"),dV=i((e,t,r)=>{if(!Ht)return;const n=Ht.getElementById(e);if(n)n.innerHTML!==t&&(n.innerHTML=t);else{const o=Ht.createElement("style");o.setAttribute("id",e),o.innerHTML=t;const s=`addon-backgrounds-grid${r?`-docs-${r}`:""}`,a=Ht.getElementById(s);a?a.parentElement?.insertBefore(o,a):Ht.head.appendChild(o)}},"addBackgroundStyle"),pV={cellSize:100,cellAmount:10,opacity:.8},hb="addon-backgrounds",yb="addon-backgrounds-grid",fV=lV()?"":"transition: background-color 0.3s;",mV=i((e,t)=>{const{globals:r={},parameters:n={},viewMode:o,id:s}=t,{options:a=aV,disable:c,grid:u=pV}=n[Qa]||{},d=r[Qa]||{},p=typeof d=="string"?d:d?.value,f=p?a[p]:void 0,h=typeof f=="string"?f:f?.value||"transparent",y=typeof d=="string"?!1:d.grid||!1,g=!!f&&!c,E=o==="docs"?`#anchor--${s} .docs-story`:".sb-show-main",T=o==="docs"?`#anchor--${s} .docs-story`:".sb-show-main",v=n.layout===void 0||n.layout==="padded",_=o==="docs"?20:v?16:0,{cellAmount:R,cellSize:N,opacity:j,offsetX:C=_,offsetY:P=_}=u,w=o==="docs"?`${hb}-docs-${s}`:`${hb}-color`,S=o==="docs"?s:null;Hr(()=>{const I=`
|
|
348
|
-
${E} {
|
|
349
|
-
background: ${h} !important;
|
|
350
|
-
${fV}
|
|
351
|
-
}`;if(!g){mb(w);return}dV(w,I,S)},[E,w,S,g,h]);const k=o==="docs"?`${yb}-docs-${s}`:`${yb}`;return Hr(()=>{if(!y){mb(k);return}const I=[`${N*R}px ${N*R}px`,`${N*R}px ${N*R}px`,`${N}px ${N}px`,`${N}px ${N}px`].join(", "),V=`
|
|
352
|
-
${T} {
|
|
353
|
-
background-size: ${I} !important;
|
|
354
|
-
background-position: ${C}px ${P}px, ${C}px ${P}px, ${C}px ${P}px, ${C}px ${P}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
|
-
`;uV(k,V)},[R,N,T,k,y,C,P,j]),e()},"withBackgroundAndGrid"),hV=globalThis.FEATURES?.backgrounds?[mV]:[],yV={[Qa]:{grid:{cellSize:20,opacity:.5,cellAmount:5},disable:!1}},gV={[Qa]:{value:void 0,grid:!1}},gb=i(()=>({decorators:hV,parameters:yV,initialGlobals:gV}),"default"),{step:bV}=No({step:i(async(e,t,r)=>t(r),"step")},{intercept:!0}),bb=i(()=>({parameters:{throwPlayFunctionExceptions:!1},runStep:bV}),"default"),xc="storybook/highlight",vV=`${xc}/add`,EV=`${xc}/remove`,TV=`${xc}/reset`,wV=`${xc}/scroll-into-view`,vb=2147483647,kr=28,Eb={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"]},_V="svg,path,rect,circle,line,polyline,polygon,ellipse,text".split(","),tt=i((e,t={},r)=>{const n=_V.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"),Js=i(e=>Eb[e]&&tt("svg",{width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},Eb[e].map(t=>tt("path",{fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd",d:t}))),"createIcon"),SV=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"),PV=i(e=>e instanceof Function,"isFunction"),gi=new Map,an=new Map,Us=new Map,hr=i(e=>{const t=Symbol();return an.set(t,[]),gi.set(t,e),{get:i(()=>gi.get(t),"get"),set:i(a=>{const c=gi.get(t),u=PV(a)?a(c):a;u!==c&&(gi.set(t,u),an.get(t)?.forEach(d=>{Us.get(d)?.(),Us.set(d,d(u))}))},"set"),subscribe:i(a=>(an.get(t)?.push(a),()=>{const c=an.get(t);c&&an.set(t,c.filter(u=>u!==a))}),"subscribe"),teardown:i(()=>{an.get(t)?.forEach(a=>{Us.get(a)?.(),Us.delete(a)}),an.delete(t),gi.delete(t)},"teardown")}},"useStore"),Tb=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"),AV=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"),wb=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"),_b=i((e,t,r)=>{if(!t||!r)return!1;let{left:n,top:o,width:s,height:a}=e;a<kr&&(o=o-Math.round((kr-a)/2),a=kr),s<kr&&(n=n-Math.round((kr-s)/2),s=kr),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"),RV=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,h=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`},...h!==o&&{top:`${h}px`}})},"keepInViewport"),Sb=i(e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.showPopover()},"showPopover"),OV=i(e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.hidePopover()},"hidePopover"),CV=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",Pb="storybook-highlights-root",xV="storybook-root",NV=i(e=>{if(globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED)return;globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED=!0;const{document:t}=globalThis,r=hr([]),n=hr(new Map),o=hr([]),s=hr(),a=hr(),c=hr([]),u=hr([]),d=hr(),p=hr();let f=t.getElementById(Pb);r.subscribe(()=>{f||(f=tt("div",{id:Pb}),t.body.appendChild(f))}),r.subscribe(P=>{const w=t.getElementById(xV);if(!w)return;n.set(Tb(P));const S=new MutationObserver(()=>n.set(Tb(P)));return S.observe(w,{subtree:!0,childList:!0}),()=>{S.disconnect()}}),n.subscribe(P=>{const w=i(()=>requestAnimationFrame(()=>o.set(AV(P))),"updateBoxes"),S=new ResizeObserver(w);S.observe(t.body),Array.from(P.keys()).forEach(I=>S.observe(I));const k=Array.from(t.body.querySelectorAll("*")).filter(I=>{const{overflow:V,overflowX:H,overflowY:A}=window.getComputedStyle(I);return["auto","scroll"].some(L=>[V,H,A].includes(L))});return k.forEach(I=>I.addEventListener("scroll",w)),()=>{S.disconnect(),k.forEach(I=>I.removeEventListener("scroll",w))}}),n.subscribe(P=>{const w=Array.from(P.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(P=>{c.set(w=>w.filter(({element:S})=>P.has(S)))}),c.subscribe(P=>{P.length?(p.set(w=>P.some(S=>S.element===w?.element)?w:void 0),d.set(w=>P.some(S=>S.element===w?.element)?w:void 0)):(p.set(void 0),d.set(void 0),s.set(void 0))});const h=new Map(new Map);r.subscribe(P=>{P.forEach(({keyframes:w})=>{if(w){let S=h.get(w);S||(S=t.createElement("style"),S.setAttribute("data-highlight","keyframes"),h.set(w,S),t.head.appendChild(S)),S.innerHTML=w}}),h.forEach((w,S)=>{P.some(k=>k.keyframes===S)||(w.remove(),h.delete(S))})});const y=new Map(new Map);o.subscribe(P=>{P.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(tt("div",k,[tt("div")])),y.set(w.element,S)}}),y.forEach((w,S)=>{P.some(({element:k})=>k===S)||(w.remove(),y.delete(S))})}),o.subscribe(P=>{const w=P.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&&!wb(I,V)){const H=w.filter(A=>{const L=y.get(A.element);return _b(A,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 P=t.getElementById(qe),w=a.get();!w||P&&wb(P,w)||u.set(S=>{const k=o.get().filter(A=>{const L=y.get(A.element);return _b(A,L,w)}),I=S.filter(A=>k.includes(A)),V=k.filter(A=>!S.includes(A)),H=S.length-I.length;return V.length||H?[...I,...V]:S})},"updateHovered");a.subscribe(g),o.subscribe(g);const E=i(()=>{const P=p.get(),w=P?[P]: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,A=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,...A?I.hoverStyles:{},...H?I.focusStyles:{},position:getComputedStyle(I.element).position==="fixed"?"fixed":"absolute",zIndex:vb-10,top:`${I.top}px`,left:`${I.left}px`,width:`${I.width}px`,height:`${I.height}px`,margin:0,padding:0,cursor:I.menu&&A?"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:`${kr}px`,minWidth:`${kr}px`,boxSizing:"content-box",padding:V.style.outlineWidth||"0px"}),Sb(V)}})},"updateBoxStyles");o.subscribe(E),c.subscribe(E),u.subscribe(E),d.subscribe(E),p.subscribe(E);const T=i(()=>{if(!f)return;let P=t.getElementById(qe);if(P)P.innerHTML="";else{const I={id:qe,popover:"manual"};P=f.appendChild(tt("div",I)),f.appendChild(tt("style",{},[`
|
|
362
|
-
#${qe} {
|
|
363
|
-
position: absolute;
|
|
364
|
-
z-index: ${vb};
|
|
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&&(P.style.position=getComputedStyle(S[0].element).position==="fixed"?"fixed":"absolute",P.appendChild(tt("ul",{class:"element-list"},S.map(I=>{const V=S.length>1&&!!I.menu?.some(L=>L.some($=>!$.selectors||$.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")}:{},A=V||w;return tt("li",H,[tt(A?"button":"div",A?{type:"button"}:{},[w?Js("chevronLeft"):null,tt("code",{},[I.element.outerHTML]),V?Js("chevronRight"):null])])})))),p.get()||c.get().length===1){const I=p.get()||c.get()[0],V=I.menu?.filter(H=>H.some(A=>!A.selectors||A.selectors.some(L=>I.selectors.includes(L))));V?.length&&P.appendChild(tt("ul",{class:"menu-list"},V.map(H=>tt("li",{},[tt("ul",{class:"menu-items"},H.map(({id:A,title:L,description:$,iconLeft:D,iconRight:K,clickEvent:X})=>{const ie=X&&(()=>e.emit(X,A,CV(I)));return tt("li",{},[tt(ie?"button":"div",ie?{class:"menu-item",type:"button",onClick:ie}:{class:"menu-item"},[D?Js(D):null,tt("div",{class:"menu-item-content"},[tt($?"strong":"span",{},[L]),$&&tt("span",{},[$])]),K?Js(K):null])])}))]))))}const k=s.get();k?(Object.assign(P.style,{display:"block",left:`${P.style.position==="fixed"?k.x-window.scrollX:k.x}px`,top:`${P.style.position==="fixed"?k.y-window.scrollY:k.y}px`}),Sb(P),requestAnimationFrame(()=>RV(P,k,{topOffset:15,centered:!0}))):(OV(P),Object.assign(P.style,{display:"none"}))},"renderMenu");c.subscribe(T),p.subscribe(T);const v=i(P=>{const w=SV(P);r.set(S=>{const k=w.id?S.filter(I=>I.id!==w.id):S;return w.selectors?.length?[...k,w]:k})},"addHighlight"),_=i(P=>{P&&r.set(w=>w.filter(S=>S.id!==P))},"removeHighlight"),R=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((P,w)=>{const S="scrollIntoView-highlight";clearTimeout(N),_(S);const k=t.querySelector(P);if(!k){console.warn(`Cannot scroll into view: ${P} 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:[P],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(P=>{requestAnimationFrame(()=>a.set({x:P.pageX,y:P.pageY}))},"onMouseMove");t.body.addEventListener("mousemove",C),e.on(vV,v),e.on(EV,_),e.on(TV,R),e.on(wV,j),e.on(wn,({newPhase:P})=>{P==="loading"&&R()})},"useHighlights");globalThis?.FEATURES?.highlight&&Lt?.ready&&Lt.ready().then(NV);var Ab=i(()=>({}),"default"),IV="measureEnabled";function my(){const e=te.document.documentElement,t=Math.max(e.scrollHeight,e.offsetHeight);return{width:Math.max(e.scrollWidth,e.offsetWidth),height:t}}i(my,"getDocumentWidthAndHeight");function Tx(){const e=te.document.createElement("canvas");e.id="storybook-addon-measure";const t=e.getContext("2d");or(t!=null);const{width:r,height:n}=my();return Za(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(Tx,"createCanvas");function Za(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(Za,"setCanvasWidthAndHeight");var rt={};function wx(){rt.canvas||(rt=Tx())}i(wx,"init");function hy(){rt.context&&rt.context.clearRect(0,0,rt.width??0,rt.height??0)}i(hy,"clear");function _x(e){hy(),e(rt.context)}i(_x,"draw");function Sx(){or(rt.canvas),or(rt.context),Za(rt.canvas,rt.context,{width:0,height:0});const{width:e,height:t}=my();Za(rt.canvas,rt.context,{width:e,height:t}),rt.width=e,rt.height=t}i(Sx,"rescale");function Px(){rt.canvas&&(hy(),rt.canvas.parentNode?.removeChild(rt.canvas),rt={})}i(Px,"destroy");var Vn={margin:"#f6b26b",border:"#ffe599",padding:"#93c47d",content:"#6fa8dc",text:"#232020"},Sr=6;function ip(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(ip,"roundedRect");function Ax(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(Ax,"positionCoordinate");function Rx(e,t,{margin:r,border:n,padding:o},s,a){let c=i(h=>0,"shift"),u=0,d=0;const p=a?1:.5,f=a?s*2:0;return e==="padding"?c=i(h=>o[h]*p+f,"shift"):e==="border"?c=i(h=>o[h]+n[h]*p+f,"shift"):e==="margin"&&(c=i(h=>o[h]+n[h]+r[h]*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(Rx,"offset");function Ox(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(Ox,"collide");function Cx(e,t,r){return e==="top"?t.y=r.y-r.h-Sr:e==="right"?t.x=r.x+r.w/2+Sr+t.w/2:e==="bottom"?t.y=r.y+r.h+Sr:e==="left"&&(t.x=r.x-r.w/2-Sr-t.w/2),{x:t.x,y:t.y}}i(Cx,"overlapAdjustment");function yy(e,t,{x:r,y:n,w:o,h:s},a){return ip(e,{x:r,y:n,w:o,h:s,r:3}),e.fillStyle=`${Vn[t]}dd`,e.fill(),e.strokeStyle=Vn[t],e.stroke(),e.fillStyle=Vn.text,e.fillText(a,r,n),ip(e,{x:r,y:n,w:o,h:s,r:3}),e.fillStyle=`${Vn[t]}dd`,e.fill(),e.strokeStyle=Vn[t],e.stroke(),e.fillStyle=Vn.text,e.fillText(a,r,n),{x:r,y:n,w:o,h:s}}i(yy,"textWithRect");function gy(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+Sr*2,s=n+Sr*2;return{w:o,h:s}}i(gy,"configureText");function xx(e,t,{type:r,position:n="center",text:o},s,a=!1){let{x:c,y:u}=Ax(n,t);const{offsetX:d,offsetY:p}=Rx(r,n,t,Sr+1,a);c+=d,u+=p;const{w:f,h}=gy(e,o);if(s&&Ox({x:c,y:u,w:f,h},s)){const y=Cx(n,{x:c,y:u,w:f},s);c=y.x,u=y.y}return yy(e,r,{x:c,y:u,w:f,h},o)}i(xx,"drawLabel");function Nx(e,{w:t,h:r}){const n=t*.5+Sr,o=r*.5+Sr;return{offsetX:(e.x==="left"?-1:1)*n,offsetY:(e.y==="top"?-1:1)*o}}i(Nx,"floatingOffset");function Ix(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}=gy(e,n),{offsetX:p,offsetY:f}=Nx(o,{w:u,h:d});return a+=p,c+=f,yy(e,r,{x:a,y:c,w:u,h:d},n)}i(Ix,"drawFloatingLabel");function Gn(e,t,r,n){const o=[];r.forEach((s,a)=>{const c=n&&s.position==="center"?Ix(e,t,s):xx(e,t,s,o[a-1],n);o[a]=c})}i(Gn,"drawStack");function Mx(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&&Gn(e,t,o.top,n),o.right&&Gn(e,t,o.right,n),o.bottom&&Gn(e,t,o.bottom,n),o.left&&Gn(e,t,o.left,n),o.center&&Gn(e,t,o.center,n)}i(Mx,"labelStacks");var Nc={margin:"#f6b26ba8",border:"#ffe599a8",padding:"#93c47d8c",content:"#6fa8dca8"},Rb=30;function St(e){return parseInt(e.replace("px",""),10)}i(St,"pxToNumber");function mn(e){return Number.isInteger(e)?e:e.toFixed(2)}i(mn,"round");function Ic(e){return e.filter(t=>t.text!==0&&t.text!=="0")}i(Ic,"filterZeroValues");function qx(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(qx,"floatingAlignment");function jx(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:h,paddingBottom:y,paddingLeft:g,paddingRight:E,borderBottomWidth:T,borderTopWidth:v,borderLeftWidth:_,borderRightWidth:R}=t;r=r+te.window.scrollY,n=n+te.window.scrollX,s=s+te.window.scrollY,o=o+te.window.scrollX;const N={top:St(u),bottom:St(d),left:St(p),right:St(f)},j={top:St(h),bottom:St(y),left:St(g),right:St(E)},C={top:St(v),bottom:St(T),left:St(_),right:St(R)},P={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:P,floatingAlignment:qx(P)}}i(jx,"measureElement");function kx(e,{margin:t,width:r,height:n,top:o,left:s,bottom:a,right:c}){const u=n+t.bottom+t.top;e.fillStyle=Nc.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:mn(t.top),position:"top"},{type:"margin",text:mn(t.right),position:"right"},{type:"margin",text:mn(t.bottom),position:"bottom"},{type:"margin",text:mn(t.left),position:"left"}];return Ic(d)}i(kx,"drawMargin");function Dx(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=Nc.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 Ic(f)}i(Dx,"drawPadding");function Lx(e,{border:t,width:r,height:n,top:o,left:s,bottom:a,right:c}){const u=n-t.top-t.bottom;e.fillStyle=Nc.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 Ic(d)}i(Lx,"drawBorder");function Fx(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=Nc.content,e.fillRect(a+r.left+t.left,s+r.top+t.top,c,u),[{type:"content",position:"center",text:`${mn(c)} x ${mn(u)}`}]}i(Fx,"drawContent");function $x(e){return t=>{if(e&&t){const r=jx(e),n=kx(t,r),o=Dx(t,r),s=Lx(t,r),a=Fx(t,r),c=r.width<=Rb*3||r.height<=Rb;Mx(t,r,[...a,...o,...s,...n],c)}}}i($x,"drawBoxModel");function Bx(e){_x($x(e))}i(Bx,"drawSelectedElement");var MV=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"),Ob,Vs={x:0,y:0};function sp(e,t){Ob=MV(e,t),Bx(Ob)}i(sp,"findAndDrawElement");var qV=i((e,t)=>{const{measureEnabled:r}=t.globals||{};return Hr(()=>{if(typeof globalThis.document>"u")return;const n=i(o=>{window.requestAnimationFrame(()=>{o.stopPropagation(),Vs.x=o.clientX,Vs.y=o.clientY})},"onPointerMove");return globalThis.document.addEventListener("pointermove",n),()=>{globalThis.document.removeEventListener("pointermove",n)}},[]),Hr(()=>{const n=i(s=>{window.requestAnimationFrame(()=>{s.stopPropagation(),sp(s.clientX,s.clientY)})},"onPointerOver"),o=i(()=>{window.requestAnimationFrame(()=>{Sx()})},"onResize");return t.viewMode==="story"&&r&&(globalThis.document.addEventListener("pointerover",n),wx(),globalThis.window.addEventListener("resize",o),sp(Vs.x,Vs.y)),()=>{globalThis.window.removeEventListener("resize",o),Px()}},[r,t.viewMode]),e()},"withMeasure"),jV=globalThis.FEATURES?.measure?[qV]:[],kV={[IV]:!1},Cb=i(()=>({decorators:jV,initialGlobals:kV}),"default"),Jx="outline",xb=i(e=>{(Array.isArray(e)?e:[e]).forEach(DV)},"clearStyles"),DV=i(e=>{const t=typeof e=="string"?e:e.join(""),r=te.document.getElementById(t);r&&r.parentElement&&r.parentElement.removeChild(r)},"clearStyle"),LV=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 Ux(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(Ux,"outlineCSS");var FV=i((e,t)=>{const r=t.globals||{},n=[!0,"true"].includes(r[Jx]),o=t.viewMode==="docs",s=Qp(()=>Ux(o?'[data-story-block="true"]':".sb-show-main"),[t]);return Hr(()=>{const a=o?`addon-outline-docs-${t.id}`:"addon-outline";return n?LV(a,s):xb(a),()=>{xb(a)}},[n,s,t]),e()},"withOutline"),$V=globalThis.FEATURES?.outline?[FV]:[],BV={[Jx]:!1},Nb=i(()=>({decorators:$V,initialGlobals:BV}),"default"),JV=i(({parameters:e})=>{e?.test?.mockReset===!0?mh():e?.test?.clearMocks===!0?fh():e?.test?.restoreMocks!==!1&&hh()},"resetAllMocksLoader"),ap=i((e,t=0,r)=>{if(t>5||e==null)return e;if(bn(e))return r&&e.mockName(r),e;if(typeof e=="function"&&"isAction"in e&&e.isAction&&!("implicit"in e&&e.implicit)){const n=dh(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]=ap(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]=ap(o,t,n));return e}return e},"traverseArgs"),UV=i(({initialArgs:e})=>{ap(e)},"nameSpiesAndWrapActionsInSpies"),Ib=!1,VV=i(async e=>{globalThis.HTMLElement&&e.canvasElement instanceof globalThis.HTMLElement&&(e.canvas=vx(e.canvasElement));const t=globalThis.window?.navigator?.clipboard;if(t&&(e.userEvent=No({userEvent:Ex.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}),!Ib)){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)}}}),Ib=!0}},"enhanceContext"),Mb=i(()=>({loaders:[JV,UV,VV]}),"default"),HV="viewport",zV={[HV]:{value:void 0,isRotated:!1}},qb=i(()=>({initialGlobals:zV}),"default");function by(){return[(Cb.default??Cb)(),(gb.default??gb)(),(Ab.default??Ab)(),(Nb.default??Nb)(),(qb.default??qb)(),(fb.default??fb)(),(bb.default??bb)(),(Mb.default??Mb)()]}i(by,"getCoreAnnotations");function GV(e){return e}i(GV,"definePreviewAddon");function Vx(e){return e!=null&&typeof e=="object"&&"_tag"in e&&e?._tag==="Meta"}i(Vx,"isMeta");function Mc(e){return e!=null&&typeof e=="object"&&"_tag"in e&&e?._tag==="Story"}i(Mc,"isStory");function Hx(e){return"__children"in e?e.__children:[]}i(Hx,"getStoryChildren");var zx=i(e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,""),"sanitize"),lp=i((e,t)=>{const r=zx(e);if(r==="")throw new Error(`Invalid ${t} '${e}', must include alphanumeric characters`);return r},"sanitizeSafe"),WV=i((e,t)=>`${lp(e,"kind")}${t?`--${lp(t,"name")}`:""}`,"toId"),KV=i((e,t)=>`${e}:${lp(t,"test")}`,"toTestId"),YV=i(e=>iw(e),"storyNameFromExport");function cp(e,t){return Array.isArray(t)?t.includes(e):e.match(t)}i(cp,"matches");function el(e,{includeStories:t,excludeStories:r}){return e!=="__esModule"&&(!t||cp(e,t))&&(!r||!cp(e,r))}i(el,"isExportStory");var XV=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 up(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}i(up,"getSymbols");function dp(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}i(dp,"getTag");var QV="[object RegExp]",ZV="[object String]",eH="[object Number]",tH="[object Boolean]",jb="[object Arguments]",rH="[object Symbol]",nH="[object Date]",oH="[object Map]",iH="[object Set]",sH="[object Array]",aH="[object Function]",lH="[object ArrayBuffer]",mu="[object Object]",cH="[object Error]",uH="[object DataView]",dH="[object Uint8Array]",pH="[object Uint8ClampedArray]",fH="[object Uint16Array]",mH="[object Uint32Array]",hH="[object BigUint64Array]",yH="[object Int8Array]",gH="[object Int16Array]",bH="[object Int32Array]",vH="[object BigInt64Array]",EH="[object Float32Array]",TH="[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 Ao(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(Ao,"mapValues");function Gx(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(Gx,"pickBy");var hu=We(fv(),1);function Wx(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}i(Wx,"eq");function Kx(e,t,r){return eo(e,t,void 0,void 0,void 0,void 0,r)}i(Kx,"isEqualWith");function eo(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 so(e,t,s,a)}return so(e,t,s,a)}i(eo,"isEqualWithImpl");function so(e,t,r,n){if(Object.is(e,t))return!0;let o=dp(e),s=dp(t);if(o===jb&&(o=mu),s===jb&&(s=mu),o!==s)return!1;switch(o){case ZV:return e.toString()===t.toString();case eH:{const u=e.valueOf(),d=t.valueOf();return Wx(u,d)}case tH:case nH:case rH:return Object.is(e.valueOf(),t.valueOf());case QV:return e.source===t.source&&e.flags===t.flags;case aH: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 oH:{if(e.size!==t.size)return!1;for(const[u,d]of e.entries())if(!t.has(u)||!eo(d,t.get(u),u,e,t,r,n))return!1;return!0}case iH:{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],h=d.findIndex(y=>eo(f,y,void 0,e,t,r,n));if(h===-1)return!1;d.splice(h,1)}return!0}case sH:case dH:case pH:case fH:case mH:case hH:case yH:case gH:case bH:case vH:case EH:case TH:{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(!eo(e[u],t[u],u,e,t,r,n))return!1;return!0}case lH:return e.byteLength!==t.byteLength?!1:so(new Uint8Array(e),new Uint8Array(t),r,n);case uH:return e.byteLength!==t.byteLength||e.byteOffset!==t.byteOffset?!1:so(new Uint8Array(e),new Uint8Array(t),r,n);case cH:return e.name===t.name&&e.message===t.message;case mu:{if(!(so(e.constructor,t.constructor,r,n)||Gt(e)&&Gt(t)))return!1;const d=[...Object.keys(e),...up(e)],p=[...Object.keys(t),...up(t)];if(d.length!==p.length)return!1;for(let f=0;f<d.length;f++){const h=d[f],y=e[h];if(!Object.hasOwn(t,h))return!1;const g=t[h];if(!eo(y,g,h,e,t,r,n))return!1}return!0}default:return!1}}finally{r.delete(e),r.delete(t)}}i(so,"areObjectsEqual");function Yx(){}i(Yx,"noop");function Xx(e,t){return Kx(e,t,Yx)}i(Xx,"isEqual");var un=Symbol("incompatible"),pp=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)?un:e.reduce((n,o,s)=>{const a=pp(o,{type:r.value});return a!==un&&(n[s]=a),n},new Array(e.length));case"object":return typeof e=="string"||typeof e=="number"?e:!r.value||typeof e!="object"?un:Object.entries(e).reduce((n,[o,s])=>{const a=pp(s,{type:r.value[o]});return a===un?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:un}default:return un}},"map"),wH=i((e,t)=>Object.entries(e).reduce((r,[n,o])=>{if(!t[n])return r;const s=pp(o,t[n]);return s===un?r:Object.assign(r,{[n]:s})},{}),"mapArgsToTypes"),tl=i((e,t)=>Array.isArray(e)&&Array.isArray(t)?t.reduce((r,n,o)=>(r[o]=tl(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=tl(e[n],t[n]);o!==void 0&&(r[n]=o)}else r[n]=e[n];return r},{}),"combineArgs"),_H=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 Ve.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 Ve.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 Ve.warn(`Received illegal value for '${d}'. Supported options: ${p}`),r},{}),"validateOptions"),Fi=Symbol("Deeply equal"),rl=i((e,t)=>{if(typeof e!=typeof t)return t;if(Xx(e,t))return Fi;if(Array.isArray(e)&&Array.isArray(t)){const r=t.reduce((n,o,s)=>{const a=rl(e[s],o);return a!==Fi&&(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=rl(e?.[n],t?.[n]);return o===Fi?r:Object.assign(r,{[n]:o})},{}):t},"deepDiff"),Qx="UNTARGETED";function Zx({args:e,argTypes:t}){const r={};return Object.entries(e).forEach(([n,o])=>{const{target:s=Qx}=t[n]||{};r[s]=r[s]||{},r[s][n]=o}),r}i(Zx,"groupArgsByTarget");function eN(e){return Object.keys(e).forEach(t=>e[t]===void 0&&delete e[t]),e}i(eN,"deleteUndefined");var tN=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=rl(this.initialArgsByStoryId[t.id],this.argsByStoryId[t.id]);this.initialArgsByStoryId[t.id]=t.initialArgs,this.argsByStoryId[t.id]=t.initialArgs,r!==Fi&&this.updateFromDelta(t,r)}}updateFromDelta(t,r){const n=_H(r,t.argTypes);this.argsByStoryId[t.id]=tl(this.argsByStoryId[t.id],n)}updateFromPersisted(t,r){const n=wH(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]=eN({...this.argsByStoryId[t],...r})}};i(tN,"ArgsStore");var SH=tN,rN=i((e={})=>Object.entries(e).reduce((t,[r,{defaultValue:n}])=>(typeof n<"u"&&(t[r]=n),t),{}),"getValuesFromArgTypes"),nN=class{constructor({globals:t={},globalTypes:r={}}){this.set({globals:t,globalTypes:r})}set({globals:t={},globalTypes:r={}}){const n=this.initialGlobals&&rl(this.initialGlobals,this.globals);this.allowedGlobalNames=new Set([...Object.keys(t),...Object.keys(r)]);const o=rN(r);this.initialGlobals={...o,...t},this.globals=this.initialGlobals,n&&n!==Fi&&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(nN,"GlobalsStore");var PH=nN,AH=We(fv(),1),RH=(0,AH.default)(1)(e=>Object.values(e).reduce((t,r)=>(t[r.importPath]=t[r.importPath]||r,t),{})),oN=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 dT({storyId:t});return r}importPathToEntry(t){return RH(this.entries)[t]}};i(oN,"StoryIndexStore");var OH=oN,CH=i(e=>typeof e=="string"?{name:e}:e,"normalizeType"),xH=i(e=>typeof e=="string"?{type:e}:e,"normalizeControl"),NH=i((e,t)=>{const{type:r,control:n,...o}=e,s={name:t,...o};return r&&(s.type=CH(r)),n?s.control=xH(n):n===!1&&(s.control={disable:!0}),s},"normalizeInputType"),nl=i(e=>Ao(e,NH),"normalizeInputTypes"),Ie=i(e=>Array.isArray(e)?e:e?[e]:[],"normalizeArrays"),IH=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 ao(e,t,r){const n=t,o=typeof t=="function"?t:null,{story:s}=n;s&&(De.debug("deprecated story",s),qp(IH));const a=YV(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},h=[...Ie(n.loaders),...Ie(s?.loaders)],y=[...Ie(n.beforeEach),...Ie(s?.beforeEach)],g=[...Ie(n.afterEach),...Ie(s?.afterEach)],{render:E,play:T,tags:v=[],globals:_={}}=n,R=d.__id||WV(r.id,a);return{moduleExport:t,id:R,name:c,tags:v,decorators:u,parameters:d,args:p,argTypes:nl(f),loaders:h,beforeEach:y,afterEach:g,globals:_,...E&&{render:E},...o&&{userStoryFn:o},...T&&{play:T}}}i(ao,"normalizeStory");function ol(e,t=e.title,r){const{id:n,argTypes:o}=e;return{id:zx(n||t),...e,title:t,...o&&{argTypes:nl(o)},parameters:{fileName:r,...e.parameters}}}i(ol,"normalizeComponentAnnotations");var MH=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"),qH=i(e=>{const{options:t}=e;t?.storySort&&De.error("The storySort option parameter can only be set globally")},"checkStorySort"),Hs=i(e=>{e&&(MH(e),qH(e))},"checkDisallowedParameters");function iN(e,t,r){const{default:n,__namedExportsOrder:o,...s}=e,a=Object.values(s)[0];if(Mc(a)){const d=ol(a.meta.input,r,t);Hs(d.parameters);const p={meta:d,stories:{},moduleExports:e};return Object.keys(s).forEach(f=>{if(el(f,d)){const h=s[f],y=ao(f,h.input,d);Hs(y.parameters),p.stories[y.id]=y,Hx(h).forEach(g=>{const E=g.input.name,T=KV(y.id,E);g.input.parameters??={},g.input.parameters.__id=T,p.stories[T]=ao(E,g.input,d)})}}),p.projectAnnotations=a.meta.preview.composed,p}const c=ol(n,r,t);Hs(c.parameters);const u={meta:c,stories:{},moduleExports:e};return Object.keys(s).forEach(d=>{if(el(d,c)){const p=ao(d,s[d],c);Hs(p.parameters),u.stories[p.id]=p}}),u}i(iN,"processCSFFile");function vy(e,t,r){const n=r(e);return o=>t(n,o)}i(vy,"decorateStory");function Ey({componentId:e,title:t,kind:r,id:n,name:o,story:s,parameters:a,initialArgs:c,argTypes:u,...d}={}){return d}i(Ey,"sanitizeStoryContextUpdate");function Ty(e,t){const r={},n=i(s=>a=>{if(!r.value)throw new Error("Decorated function called without init");return r.value={...r.value,...Ey(a)},s(r.value)},"bindWithContext"),o=t.reduce((s,a)=>vy(s,a,n),e);return s=>(r.value=s,o(s))}i(Ty,"defaultDecorateStory");var Nn=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]=Nn(...s):n[o]=s[s.length-1]}),n},"combineParameters");function qc(e,t,r){const{moduleExport:n,id:o,name:s}=e||{},a=_y(e,t,r),c=i(async C=>{const P={};for(const w of[Ie(r.loaders),Ie(t.loaders),Ie(e.loaders)]){if(C.abortSignal.aborted)return P;const S=await Promise.all(w.map(k=>k(C)));Object.assign(P,...S)}return P},"applyLoaders"),u=i(async C=>{const P=new Array;for(const w of[...Ie(r.beforeEach),...Ie(t.beforeEach),...Ie(e.beforeEach)]){if(C.abortSignal.aborted)return P;const S=await w(C);S&&P.push(S)}return P},"applyBeforeEach"),d=i(async C=>{const P=[...Ie(r.afterEach),...Ie(t.afterEach),...Ie(e.afterEach)].reverse();for(const w of P){if(C.abortSignal.aborted)return;await w(C)}},"applyAfterEach"),p=i(C=>C.originalStoryFn(C.args,C),"undecoratedStoryFn"),{applyDecorators:f=Ty,runStep:h}=r,y=[...Ie(e?.decorators),...Ie(t?.decorators),...Ie(r?.decorators)],g=e?.userStoryFn||e?.render||t.render||r.render,E=KT(f)(p,y),T=i(C=>E(C),"unboundStoryFn"),v=e?.play??t?.play,_=aw(v);if(!g&&!_)throw new MT({id:o});const R=i(C=>async()=>(await C.renderToCanvas(),C.canvas),"defaultMount"),N=e.mount??t.mount??r.mount??R,j=r.testingLibraryRender;return{storyGlobals:{},...a,moduleExport:n,id:o,name:s,story:s,originalStoryFn:g,undecoratedStoryFn:p,unboundStoryFn:T,applyLoaders:c,applyBeforeEach:u,applyAfterEach:d,playFunction:v,runStep:h,mount:N,testingLibraryRender:j,renderToCanvas:r.renderToCanvas,usesMount:_}}i(qc,"prepareStory");function wy(e,t,r){return{..._y(void 0,e,t),moduleExport:r}}i(wy,"prepareMeta");function _y(e,t,r){const n=["dev","test"],o=te.DOCS_OPTIONS?.autodocs===!0?["autodocs"]:[],s=e?.tags?.includes("test-fn")?["!autodocs"]:[],a=XV(...n,...o,...r.tags??[],...t.tags??[],...s,...e?.tags??[]),c=Nn(r.parameters,t.parameters,e?.parameters),{argTypesEnhancers:u=[],argsEnhancers:d=[]}=r,p=Nn(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},h={...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:h};y.argTypes=u.reduce((_,R)=>R({...y,argTypes:_}),y.argTypes);const g={...f};y.initialArgs=[...d].reduce((_,R)=>({..._,...R({...y,initialArgs:_})}),g);const{name:E,story:T,...v}=y;return v}i(_y,"preparePartialAnnotations");function Sy(e){const{args:t}=e;let r={...e,allArgs:void 0,argsByTarget:void 0};if(te.FEATURES?.argTypeTargetsV7){const s=Zx(e);r={...e,allArgs:e.args,argsByTarget:s,args:s[Qx]||{}}}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 G1(u,n,r.globals)&&(s[a]=c),s},{});return{...r,unmappedArgs:t,args:o}}i(Sy,"prepareContext");var fp=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?fp(e[0],t,new Set(r)):{name:"other",value:"unknown"}}:{name:"object",value:Ao(e,s=>fp(s,t,new Set(r)))}):{name:"object",value:{}}},"inferType"),sN=i(e=>{const{id:t,argTypes:r={},initialArgs:n={}}=e,o=Ao(n,(a,c)=>({name:c,type:fp(a,`${t}.${c}`,new Set)})),s=Ao(r,(a,c)=>({name:c}));return Nn(o,s,r)},"inferArgTypes");sN.secondPass=!0;var kb=i((e,t)=>Array.isArray(t)?t.includes(e):e.match(t),"matches"),aN=i((e,t,r)=>!t&&!r?e:e&&Gx(e,(n,o)=>{const s=n.name||o.toString();return!!(!t||kb(s,t))&&(!r||!kb(s,r))}),"filterArgTypes"),jH=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=aN(t,n,o),c=Ao(a,(u,d)=>u?.type&&jH(u,d.toString(),s));return Nn(c,a)},"inferControls");Py.secondPass=!0;function cs({argTypes:e,globalTypes:t,argTypesEnhancers:r,decorators:n,loaders:o,beforeEach:s,afterEach:a,initialGlobals:c,...u}){return{...e&&{argTypes:nl(e)},...t&&{globalTypes:nl(t)},decorators:Ie(n),loaders:Ie(o),beforeEach:Ie(s),afterEach:Ie(a),argTypesEnhancers:[...r||[],sN,Py],initialGlobals:c,...u}}i(cs,"normalizeProjectAnnotations");var kH=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 Ay(e){return async(t,r,n)=>{await e.reduceRight((s,a)=>async()=>a(t,s,n),async()=>r(n))()}}i(Ay,"composeStepRunners");function Ro(e,t){return e.map(r=>r.default?.[t]??r[t]).filter(Boolean)}i(Ro,"getField");function vr(e,t,r={}){return Ro(e,t).reduce((n,o)=>{const s=Ie(o);return r.reverseFileOrder?[...s,...n]:[...n,...s]},[])}i(vr,"getArrayField");function Ri(e,t){return Object.assign({},...Ro(e,t))}i(Ri,"getObjectField");function Wn(e,t){return Ro(e,t).pop()}i(Wn,"getSingletonField");function In(e){const t=vr(e,"argTypesEnhancers"),r=Ro(e,"runStep"),n=vr(e,"beforeAll");return{parameters:Nn(...Ro(e,"parameters")),decorators:vr(e,"decorators",{reverseFileOrder:!(te.FEATURES?.legacyDecoratorFileOrder??!1)}),args:Ri(e,"args"),argsEnhancers:vr(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:vr(e,"loaders"),beforeAll:kH(n),beforeEach:vr(e,"beforeEach"),afterEach:vr(e,"afterEach"),render:Wn(e,"render"),renderToCanvas:Wn(e,"renderToCanvas"),applyDecorators:Wn(e,"applyDecorators"),runStep:Ay(r),tags:vr(e,"tags"),mount:Wn(e,"mount"),testingLibraryRender:Wn(e,"testingLibraryRender")}}i(In,"composeConfigs");var DH=5e3;function Ry(){try{return!!globalThis.__vitest_browser__||!!globalThis.window?.navigator?.userAgent?.match(/StorybookTestRunner/)}catch{return!1}}i(Ry,"isTestEnvironment");function jc(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(jc,"pauseAnimations");async function kc(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,...Oy(globalThis.document)],o=i(async()=>{if(t||e?.aborted)return;const s=n.flatMap(a=>a?.getAnimations?.()||[]).filter(a=>a.playState==="running"&&!lN(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)},DH))])}i(kc,"waitForAnimations");function Oy(e){return[e,...e.querySelectorAll("*")].reduce((t,r)=>("shadowRoot"in r&&r.shadowRoot&&t.push(r.shadowRoot,...Oy(r.shadowRoot)),t),[])}i(Oy,"getShadowRoots");function lN(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(lN,"isInfiniteAnimation");var cN=class{constructor(){this.reports=[]}async addReport(t){this.reports.push(t)}};i(cN,"ReporterAPI");var Cy=cN;function xy(e,t,r){return Mc(e)?{story:e.input,meta:e.meta.input,preview:e.meta.preview.composed}:{story:e,meta:Vx(t)?t.input:t,preview:r}}i(xy,"getCsfFactoryAnnotations");function uN(e){globalThis.defaultProjectAnnotations=e}i(uN,"setDefaultProjectAnnotations");var LH="ComposedStory",FH="Unnamed Story";function dN(e){return e?In([e]):{}}i(dN,"extractAnnotation");function pN(e){const t=Array.isArray(e)?e:[e];return globalThis.globalProjectAnnotations=In([...by(),globalThis.defaultProjectAnnotations??{},In(t.map(dN))]),globalThis.globalProjectAnnotations??{}}i(pN,"setProjectAnnotations");var Lr=[];function Ny(e,t,r,n,o){if(e===void 0)throw new Error("Expected a story but received undefined.");t.title=t.title??LH;const s=ol(t),a=o||e.storyName||e.story?.name||e.name||FH,c=ao(a,e,s),u=cs(In([n??globalThis.globalProjectAnnotations??{},r??{}])),d=qc(c,s,u),f={...rN(u.globalTypes),...u.initialGlobals,...d.storyGlobals},h=new Cy,y=i(()=>{const R=Sy({hooks:new Kp,globals:f,args:{...d.initialArgs},viewMode:"story",reporting:h,loaded:{},abortSignal:new AbortController().signal,step:i((N,j)=>d.runStep(N,j,R),"step"),canvasElement:null,canvas:{},userEvent:{},globalTypes:u.globalTypes,...d,context:null,mount:null});return R.parameters.__isPortableStory=!0,R.context=R,d.renderToCanvas&&(R.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:R,storyFn:i(()=>d.unboundStoryFn(R),"storyFn"),unboundStoryFn:d.unboundStoryFn},R.canvasElement);N&&Lr.push(N)}),R.mount=d.mount(R),R},"initializeContext");let g;const E=i(async R=>{const N=y();return N.canvasElement??=globalThis?.document?.body,g&&(N.loaded=g.loaded),Object.assign(N,R),d.playFunction(N)},"play"),T=i(R=>{const N=y();return Object.assign(N,R),hN(d,N)},"run"),v=d.playFunction?E: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[...Lr].reverse())await N();Lr.length=0;const R=y();R.loaded=await d.applyLoaders(R),Lr.push(...(await d.applyBeforeEach(R)).filter(Boolean)),g=R},"load"),globals:f,args:d.initialArgs,parameters:d.parameters,argTypes:d.argTypes,play:v,run:T,reporting:h,tags:d.tags})}i(Ny,"composeStory");var $H=i((e,t,r,n)=>Ny(e,t,r,{},n),"defaultComposeStory");function fN(e,t,r=$H){const{default:n,__esModule:o,__namedExportsOrder:s,...a}=e;let c=n;return Object.entries(a).reduce((d,[p,f])=>{const{story:h,meta:y}=xy(f);return!c&&y&&(c=y),el(p,c)?Object.assign(d,{[p]:r(h,c,t,p)}):d},{})}i(fN,"composeStories");function mN(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,h=document.querySelector("#root");return f?.play?.({canvasElement:h})},c),u})},"mount")})}i(mN,"createPlaywrightTest");async function hN(e,t){for(const s of[...Lr].reverse())await s();if(Lr.length=0,!t.canvasElement){const s=document.createElement("div");globalThis?.document?.body?.appendChild(s),t.canvasElement=s,Lr.push(()=>{globalThis?.document?.body?.contains(s)&&globalThis?.document?.body?.removeChild(s)})}if(t.loaded=await e.applyLoaders(t),t.abortSignal.aborted)return;Lr.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 Gp({playFunction:r.toString()})}),await r(t));let o;Ry()?o=jc():await kc(t.abortSignal),await e.applyAfterEach(t),await o?.()}i(hN,"runStory");var Db=1e3,BH=1e4,yN=class{constructor(t,r,n){this.importFn=r,this.storyIndex=new OH(t),this.projectAnnotations=cs(In([...by(),n]));const{initialGlobals:o,globalTypes:s}=this.projectAnnotations;this.args=new SH,this.userGlobals=new PH({globals:o,globalTypes:s}),this.hooks={},this.cleanupCallbacks={},this.processCSFFileWithCache=(0,hu.default)(Db)(iN),this.prepareMetaWithCache=(0,hu.default)(Db)(wy),this.prepareStoryWithCache=(0,hu.default)(BH)(qc)}setProjectAnnotations(t){this.projectAnnotations=cs(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 OT({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 Cy;return Sy({...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 hT;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(yN,"StoryStore");var gN=yN;function bN(e){return e.startsWith("\\\\?\\")?e:e.replace(/\\/g,"/")}i(bN,"slash");var JH=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 mp(e){return e.flatMap(t=>t.split("/")).filter(Boolean).join("/")}i(mp,"pathJoin");var vN=i((e,t,r)=>{const{directory:n,importPathMatcher:o,titlePrefix:s=""}=t||{};typeof e=="number"&&Ve.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=bN(String(e));if(o.exec(a)){if(!r){const c=a.replace(n,"");let u=mp([s,c]).split("/");return u=JH(u),u.join("/")}return s?mp([s,r]):r}},"userOrAutoTitleFromSpecifier"),UH=i((e,t,r)=>{for(let n=0;n<t.length;n+=1){const o=vN(e,t[n],r);if(o)return o}return r||void 0},"userOrAutoTitle"),Lb=/\s*\/\s*/,VH=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(Lb),a=r.title.trim().split(Lb);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),h=o.indexOf(d);const y=o.indexOf("*");return f!==-1||h!==-1?(f===-1&&(y!==-1?f=y:f=o.length),h===-1&&(y!==-1?h=y:h=o.length),f-h):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"),HH=i((e,t,r)=>{if(t){let n;typeof t=="function"?n=t:n=VH(t),e.sort(n)}else e.sort((n,o)=>r.indexOf(n.importPath)-r.indexOf(o.importPath));return e},"sortStoriesCommon"),zH=i((e,t,r)=>{try{return HH(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"),Dc=new Error("prepareAborted"),{AbortController:Fb}=globalThis;function hp(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(hp,"serializeError");var EN=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 Fb,this.renderId=Date.now(),u&&(this.story=u,this.phase="preparing")}async runPhase(t,r,n){this.phase=r,this.channel.emit(wn,{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(wn,{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),Dc}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:h,unboundStoryFn:y,playFunction:g,runStep:E}=o;r&&!t&&(this.cancelRender(),this.abortController=new Fb);const T=this.abortController.signal;let v=!1;const _=o.usesMount;try{const R={...this.storyContext(),viewMode:this.viewMode,abortSignal:T,canvasElement:n,loaded:{},step:i((H,A)=>E(H,A,R),"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 A=null;return await this.runPhase(T,"rendering",async()=>{A=await o.mount(R)(...H)}),_&&await this.runPhase(T,"playing"),A},"mount")};R.context=R;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:R,storyFn:i(()=>y(R),"storyFn"),unboundStoryFn:y};if(await this.runPhase(T,"loading",async()=>{R.loaded=await p(R)}),T.aborted)return;const j=await f(R);if(this.store.addCleanupCallbacks(o,...j),this.checkIfAborted(T)||(!v&&!_&&await R.mount(),this.notYetRendered=!1,T.aborted))return;const C=this.story.parameters?.test?.dangerouslyIgnoreUnhandledErrors===!0,P=new Set,w=i(H=>{H.error&&P.add(H.error)},"onError"),S=i(H=>{H.reason&&P.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(R):(R.mount=async()=>{throw new Gp({playFunction:g.toString()})},await this.runPhase(T,"playing",async()=>g(R))),!v)throw new jT;this.checkIfAborted(T),!C&&P.size>0?await this.runPhase(T,"errored"):await this.runPhase(T,"played")}catch(H){if(this.callbacks.showStoryDuringRender?.(),await this.runPhase(T,"errored",async()=>{this.channel.emit(Sv,hp(H))}),this.story.parameters.throwPlayFunctionExceptions!==!1)throw H;console.error(H)}if(!C&&P.size>0&&this.channel.emit(Pv,Array.from(P).map(hp)),this.disableKeyListeners=!1,window?.removeEventListener?.("unhandledrejection",S),window?.removeEventListener?.("error",w),T.aborted)return}await this.runPhase(T,"completing",async()=>{Ry()?this.store.addCleanupCallbacks(o,jc()):await kc(T)}),await this.runPhase(T,"completed",async()=>{this.channel.emit(ma,s)}),this.phase!=="errored"&&await this.runPhase(T,"afterEach",async()=>{await h(R)});const k=!C&&P.size>0,I=R.reporting.reports.some(H=>H.status==="failed"),V=k||I;await this.runPhase(T,"finished",async()=>this.channel.emit(Su,{storyId:s,status:V?"error":"success",reporters:R.reporting.reports}))}catch(R){this.phase="errored",this.callbacks.showException(R),await this.runPhase(T,"finished",async()=>this.channel.emit(Su,{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(EN,"StoryRender");var yp=EN,{fetch:GH}=te,WH="./index.json",TN=class{constructor(t,r,n=Lt.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 qp("Accessing the Story Store is deprecated and will be removed in 9.0"),this.storyStoreValue[r];throw new xT},"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(Rv,{userAgent:r})}catch(t){this.rejectStoreInitializationPromise(t)}}ready(){return this.storeInitializationPromise}setupListeners(){this.channel.on(Mv,this.onStoryIndexChanged.bind(this)),this.channel.on(Ip,this.onUpdateGlobals.bind(this)),this.channel.on(Mp,this.onUpdateArgs.bind(this)),this.channel.on(Bv,this.onRequestArgTypesInfo.bind(this)),this.channel.on(xp,this.onResetArgs.bind(this)),this.channel.on(Cp,this.onForceReRender.bind(this)),this.channel.on(fa,this.onForceRemount.bind(this)),this.channel.on(Lv,this.onStoryHotUpdated.bind(this))}async getProjectAnnotationsOrRenderError(){try{const t=await this.getProjectAnnotations();if(this.renderToCanvas=t.renderToCanvas,!this.renderToCanvas)throw new gT;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 GH(WH);if(t.status===200)return t.json();throw new ET({text:await t.text()})}initializeWithStoryIndex(t){if(!this.projectAnnotationsBeforeInitialization)throw new Error("Cannot call initializeWithStoryIndex until project annotations resolve");this.storyStoreValue=new gN(t,this.importFn,this.projectAnnotationsBeforeInitialization),delete this.projectAnnotationsBeforeInitialization,this.setInitialGlobals(),this.resolveStoreInitializationPromise()}async setInitialGlobals(){this.emitGlobals()}emitGlobals(){if(!this.storyStoreValue)throw new At({methodName:"emitGlobals"});const t={globals:this.storyStoreValue.userGlobals.get()||{},globalTypes:this.storyStoreValue.projectAnnotations.globalTypes||{}};this.channel.emit(Cv,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 At({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 At({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(Ui,{initialGlobals:n,userGlobals:s,storyGlobals:o,globals:a})}else{const{initialGlobals:n,globals:o}=this.storyStoreValue.userGlobals;this.channel.emit(Ui,{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 At({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(xv,{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(Pu,{id:t,success:!0,payload:{argTypes:n?.argTypes||{}},error:null})}catch(n){this.channel.emit(Pu,{id:t,success:!1,error:n?.message})}}async onResetArgs({storyId:t,argNames:r}){if(!this.storyStoreValue)throw new At({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 At({methodName:"renderStoryToElement"});const s=new yp(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 At({methodName:"loadStory"});return this.storyStoreValue.loadStory({storyId:t})}getStoryContext(t,{forceInitialArgs:r=!1}={}){if(!this.storyStoreValue)throw new At({methodName:"getStoryContext"});return this.storyStoreValue.getStoryContext(t,{forceInitialArgs:r})}async extract(t){if(!this.storyStoreValue)throw new At({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(wv,r)}};i(TN,"Preview");var wN=TN,_N=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(Mc(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(_N,"DocsContext");var Iy=_N,SN=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 Dc;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 Iy(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(Op,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(SN,"CsfDocsRender");var $b=SN,PN=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 Dc;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 Iy(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(Op,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(PN,"MdxDocsRender");var Bb=PN,KH=globalThis;function AN(e){const t=e.composedPath&&e.composedPath()[0]||e.target;return/input|textarea/i.test(t.tagName)||t.getAttribute("contenteditable")!==null}i(AN,"focusInInput");var RN="attached-mdx",YH="unattached-mdx";function ON({tags:e}){return e?.includes(YH)||e?.includes(RN)}i(ON,"isMdxEntry");function aa(e){return e.type==="story"}i(aa,"isStoryRender");function CN(e){return e.type==="docs"}i(CN,"isDocsRender");function xN(e){return CN(e)&&e.subtype==="csf"}i(xN,"isCsfDocsRender");var NN=class extends wN{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(),KH.onkeydown=this.onKeydown.bind(this),this.channel.on(Np,this.onSetCurrentStory.bind(this)),this.channel.on(Fv,this.onUpdateQueryParams.bind(this)),this.channel.on(Av,this.onPreloadStories.bind(this))}async setInitialGlobals(){if(!this.storyStoreValue)throw new At({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 At({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 ST):this.renderStoryLoadingException(t,new AT({storySpecifier:t.toString()}));return}const{id:o,type:s}=n;this.selectionStore.setSelection({storyId:o,viewMode:s}),this.channel.emit(jv,this.selectionStore.selection),this.channel.emit(wu,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)&&!AN(t)){const{altKey:r,ctrlKey:n,metaKey:o,shiftKey:s,key:a,code:c,keyCode:u}=t;this.channel.emit(Ov,{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(wu,this.selectionStore.selection),this.renderSelection()}onUpdateQueryParams(t){this.selectionStore.setQueryParams(t)}async onUpdateGlobals({globals:t}){const r=this.currentRender instanceof yp&&this.currentRender.story||void 0;super.onUpdateGlobals({globals:t,currentStory:r}),(this.currentRender instanceof Bb||this.currentRender instanceof $b)&&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 At({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(h){this.currentRender&&await this.teardownRender(this.currentRender),this.renderStoryLoadingException(o,h);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 yp(this.channel,this.storyStoreValue,r,this.mainStoryCallbacks(o),o,"story"):ON(s)?u=new Bb(this.channel,this.storyStoreValue,s,this.mainStoryCallbacks(o)):u=new $b(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(h){p&&await this.teardownRender(p),h!==Dc&&this.renderStoryLoadingException(o,h);return}const f=!a&&p&&!u.isEqual(p);if(t&&aa(u)&&(or(!!u.story),this.storyStoreValue.args.updateFromPersisted(u.story,t)),p&&!p.torndown&&!a&&!f&&!c){this.currentRender=p,this.channel.emit(Dv,o),this.view.showMain();return}if(p&&await this.teardownRender(p,{viewModeChanged:c}),d&&(a||c)&&this.channel.emit(Nv,o),aa(u)){or(!!u.story);const{parameters:h,initialArgs:y,argTypes:g,unmappedArgs:E,initialGlobals:T,userGlobals:v,storyGlobals:_,globals:R}=this.storyStoreValue.getStoryContext(u.story);this.channel.emit(qv,{id:o,parameters:h,initialArgs:y,argTypes:g,args:E}),this.channel.emit(Ui,{userGlobals:v,storyGlobals:_,globals:R,initialGlobals:T})}else{let{parameters:h}=this.storyStoreValue.projectAnnotations;const{initialGlobals:y,globals:g}=this.storyStoreValue.userGlobals;if(this.channel.emit(Ui,{globals:g,initialGlobals:y,storyGlobals:{},userGlobals:g}),xN(u)||u.entry.tags?.includes(RN)){if(!u.csfFiles)throw new wT({storyId:o});({parameters:h}=this.storyStoreValue.preparedMetaFromCSFFile({csfFile:u.csfFiles[0]}))}this.channel.emit(_v,{id:o,parameters:h})}aa(u)?(or(!!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(_u)}renderStoryLoadingException(t,r){De.error(r),this.view.showErrorDisplay(r),this.channel.emit(_u,t)}renderException(t,r){const{name:n="Error",message:o=String(r),stack:s}=r,a=this.currentRender?.renderId;this.channel.emit(kv,{name:n,message:o,stack:s}),this.channel.emit(wn,{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(Iv,{title:r,description:n}),this.channel.emit(wn,{newPhase:"errored",renderId:o,storyId:t}),this.view.showErrorDisplay({message:r,stack:n}),De.error(`Error rendering story ${r}: ${n}`)}};i(NN,"PreviewWithSelection");var IN=NN,gp=We(Pp(),1),XH=We(Pp(),1),Jb=/^[a-zA-Z0-9 _-]*$/,MN=/^-?[0-9]+(\.[0-9]+)?$/,QH=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,qN=/^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,bp=i((e="",t)=>e===null||e===""||!Jb.test(e)?!1:t==null||t instanceof Date||typeof t=="number"||typeof t=="boolean"?!0:typeof t=="string"?Jb.test(t)||MN.test(t)||QH.test(t)||qN.test(t):Array.isArray(t)?t.every(r=>bp(e,r)):Gt(t)?Object.entries(t).every(([r,n])=>bp(r,n)):!1,"validateArgs"),ZH={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(qN);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 MN.test(e)?Number(e):e}},Ub=i(e=>{const t=e.split(";").map(r=>r.replace("=","~").replace(":","="));return Object.entries((0,XH.parse)(t.join(";"),ZH)).reduce((r,[n,o])=>bp(n,o)?Object.assign(r,{[n]:o}):(Ve.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:jN,document:Ur}=te;function kN(e){const t=(e||"").match(/^\/story\/(.+)/);if(!t)throw new Error(`Invalid path '${e}', must start with '/story/'`);return t[1]}i(kN,"pathToId");var DN=i(({selection:e,extraParams:t})=>{const r=Ur?.location.search.slice(1),{path:n,selectedKind:o,selectedStory:s,...a}=(0,gp.parse)(r);return`?${(0,gp.stringify)({...a,...t,...e&&{id:e.storyId,viewMode:e.viewMode}})}`},"getQueryString"),e3=i(e=>{if(!e)return;const t=DN({selection:e}),{hash:r=""}=Ur.location;Ur.title=e.storyId,jN.replaceState({},"",`${Ur.location.pathname}${t}${r}`)},"setPath"),t3=i(e=>e!=null&&typeof e=="object"&&Array.isArray(e)===!1,"isObject"),$i=i(e=>{if(e!==void 0){if(typeof e=="string")return e;if(Array.isArray(e))return $i(e[0]);if(t3(e))return $i(Object.values(e).filter(Boolean))}},"getFirstString"),r3=i(()=>{if(typeof Ur<"u"){const e=Ur.location.search.slice(1),t=(0,gp.parse)(e),r=typeof t.args=="string"?Ub(t.args):void 0,n=typeof t.globals=="string"?Ub(t.globals):void 0;let o=$i(t.viewMode);(typeof o!="string"||!o.match(/docs|story/))&&(o="story");const s=$i(t.path),a=s?kN(s):$i(t.id);if(a)return{storySpecifier:a,args:r,globals:n,viewMode:o}}return null},"getSelectionSpecifierFromPath"),LN=class{constructor(){this.selectionSpecifier=r3()}setSelection(t){this.selection=t,e3(this.selection)}setQueryParams(t){const r=DN({extraParams:t}),{hash:n=""}=Ur.location;jN.replaceState({},"",`${Ur.location.pathname}${r}${n}`)}};i(LN,"UrlStore");var FN=LN,n3=We(Nk(),1),o3=We(Pp(),1),{document:yt}=te,Vb=100,$N=(e=>(e.MAIN="MAIN",e.NOPREVIEW="NOPREVIEW",e.PREPARING_STORY="PREPARING_STORY",e.PREPARING_DOCS="PREPARING_DOCS",e.ERROR="ERROR",e))($N||{}),yu={PREPARING_STORY:"sb-show-preparing-story",PREPARING_DOCS:"sb-show-preparing-docs",MAIN:"sb-show-main",NOPREVIEW:"sb-show-nopreview",ERROR:"sb-show-errordisplay"},gu={centered:"sb-main-centered",fullscreen:"sb-main-fullscreen",padded:"sb-main-padded"},Hb=new n3.default({escapeXML:!0}),BN=class{constructor(){if(this.testing=!1,typeof yt<"u"){const{__SPECIAL_TEST_PARAMETER__:t}=(0,o3.parse)(yt.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),yt.documentElement.scrollTop=0,yt.documentElement.scrollLeft=0,this.storyRoot()}storyRoot(){return yt.getElementById("storybook-root")}prepareForDocs(){return this.showMain(),this.showDocs(),this.applyLayout("fullscreen"),yt.documentElement.scrollTop=0,yt.documentElement.scrollLeft=0,this.docsRoot()}docsRoot(){return yt.getElementById("storybook-docs")}applyLayout(t="padded"){if(t==="none"){yt.body.classList.remove(this.currentLayoutClass),this.currentLayoutClass=null;return}this.checkIfLayoutExists(t);const r=gu[t];yt.body.classList.remove(this.currentLayoutClass),yt.body.classList.add(r),this.currentLayoutClass=r}checkIfLayoutExists(t){gu[t]||De.warn(ve`
|
|
916
|
-
The desired layout: ${t} is not a valid option.
|
|
917
|
-
The possible options are: ${Object.keys(gu).join(", ")}, none.
|
|
918
|
-
`)}showMode(t){clearTimeout(this.preparingTimeout),Object.keys($N).forEach(r=>{r===t?yt.body.classList.add(yu[r]):yt.body.classList.remove(yu[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/,"")),yt.getElementById("error-message").innerHTML=Hb.toHtml(n),yt.getElementById("error-stack").innerHTML=Hb.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"),Vb)}showPreparingDocs({immediate:t=!1}={}){clearTimeout(this.preparingTimeout),t?this.showMode("PREPARING_DOCS"):this.preparingTimeout=setTimeout(()=>this.showMode("PREPARING_DOCS"),Vb)}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(){yt.body.classList.add(yu.MAIN)}};i(BN,"WebView");var JN=BN,UN=class extends IN{constructor(t,r){super(t,r,new FN,new JN),this.importFn=t,this.getProjectAnnotations=r,te.__STORYBOOK_PREVIEW__=this}};i(UN,"PreviewWeb");var i3=UN,{document:En}=te,s3=["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"],a3="script",zb="scripts-root";function il(){const e=En.createEvent("Event");e.initEvent("DOMContentLoaded",!0,!0),En.dispatchEvent(e)}i(il,"simulateDOMContentLoaded");function VN(e,t,r){const n=En.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):En.head.appendChild(n),e.parentNode.removeChild(e),e.src||t()}i(VN,"insertScript");function My(e,t,r=0){e[r](()=>{r++,r===e.length?t():My(e,t,r)})}i(My,"insertScriptsSequentially");function HN(e){let t=En.getElementById(zb);t?t.innerHTML="":(t=En.createElement("div"),t.id=zb,En.body.appendChild(t));const r=Array.from(e.querySelectorAll(a3));if(r.length){const n=[];r.forEach(o=>{const s=o.getAttribute("type");(!s||s3.includes(s))&&n.push(a=>VN(o,a,t))}),n.length&&My(n,il,void 0)}else il()}i(HN,"simulatePageLoad");var bu;(function(e){e.start="/**",e.nostart="/***",e.delim="*",e.end="*/"})(bu=bu||(bu={}));function zN(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(zN,"join");function l3(){return e=>e.source.map(({tokens:t})=>zN(t)).join(`
|
|
921
|
-
`)}i(l3,"getStringifier");var c3=We(Ik(),1),Jn=(0,c3.stringifyRules)(),u3=Jn.JsdocTypeObject;Jn.JsdocTypeAny=()=>"any";Jn.JsdocTypeObject=(e,t)=>`(${u3(e,t)})`;Jn.JsdocTypeOptional=(e,t)=>t(e.element);Jn.JsdocTypeNullable=(e,t)=>t(e.element);Jn.JsdocTypeNotNullable=(e,t)=>t(e.element);Jn.JsdocTypeUnion=(e,t)=>e.elements.map(t).join("|");var d3="storybook/docs",p3=`${d3}/snippet-rendered`;async function GN(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;Lt.getChannel().emit(p3,{id:n,source:a,args:o})}i(GN,"emitTransformCode");var us={depth:10,clearOnStoryChange:!0,limit:50},f3=i((e={})=>{Object.assign(us,e)},"configureActions"),WN=i((e,t)=>{const r=Object.getPrototypeOf(e);return!r||t(r)?r:WN(r,t)},"findProto"),m3=i(e=>!!(typeof e=="object"&&e&&WN(e,t=>/^Synthetic(?:Base)?Event$/.test(t.constructor.name))&&typeof e.persist=="function"),"isReactSyntheticEvent"),h3=i(e=>{if(m3(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 Bo(e,t={}){const r={...us,...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,E=new fT({phase:y.phase,name:e,deprecated:g});if(g)console.warn(E);else throw E}}const a=Lt.getChannel(),c=Date.now().toString(36)+Math.random().toString(36).substring(2),u=5,d=s.map(h3),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(HT,f)},"actionHandler");return n.isAction=!0,n.implicit=t.implicit,n}i(Bo,"action");var y3=i((...e)=>{let t=us,r=e;r.length===1&&Array.isArray(r[0])&&([r]=r),r.length!==1&&typeof r[r.length-1]!="string"&&(t={...us,...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]=Bo(n[s],t)}),o},"actions"),g3={"@storybook/global":Jv,"storybook/test":pw,"storybook/actions":VT,"storybook/preview-api":Cu,"storybook/internal/channels":Vv,"storybook/internal/client-logger":zv,"storybook/internal/core-events":Ap,"storybook/internal/types":JT,"storybook/internal/preview-errors":sT,"storybook/internal/preview-api":Cu};async function KN(){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}b3(t,r)}i(KN,"maybeSetupPreviewNavigator");var b3=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"),v3=We(Mk(),1),vu;function YN(){return vu||(vu=new v3.default(te.navigator?.userAgent).getBrowserInfo()),vu}i(YN,"getBrowserInfo");function XN(e){return e.browserInfo=YN(),e}i(XN,"prepareForTelemetry");function QN(e){const t=e.error||e;t.fromStorybook&&te.sendTelemetryError(t)}i(QN,"errorListener");function ZN({reason:e}){e.fromStorybook&&te.sendTelemetryError(e)}i(ZN,"unhandledRejectionListener");function qy(){sD.forEach(e=>{te[Uv[e]]=g3[e]}),te.sendTelemetryError=e=>{te.__STORYBOOK_ADDONS_CHANNEL__.emit($v,XN(e))},te.addEventListener("error",QN),te.addEventListener("unhandledrejection",ZN),KN()}i(qy,"setup");qy();const{createBrowserChannel:E3}=__STORYBOOK_MODULE_CHANNELS__,{addons:T3}=__STORYBOOK_MODULE_PREVIEW_API__,jy=E3({page:"preview"});T3.setChannel(jy);window.__STORYBOOK_ADDONS_CHANNEL__=jy;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=jy);var w3=Object.create,Lc=Object.defineProperty,_3=Object.getOwnPropertyDescriptor,eI=Object.getOwnPropertyNames,S3=Object.getPrototypeOf,P3=Object.prototype.hasOwnProperty,O=(e,t)=>Lc(e,"name",{value:t,configurable:!0}),EK=(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')}),A3=(e,t)=>function(){return t||(0,e[eI(e)[0]])((t={exports:{}}).exports,t),t.exports},TK=(e,t)=>{for(var r in t)Lc(e,r,{get:t[r],enumerable:!0})},R3=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of eI(t))!P3.call(e,o)&&o!==r&&Lc(e,o,{get:()=>t[o],enumerable:!(n=_3(t,o))||n.enumerable});return e},O3=(e,t,r)=>(r=e!=null?w3(S3(e)):{},R3(t||!e||!e.__esModule?Lc(r,"default",{value:e,enumerable:!0}):r,e));function la(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(la,"isPlainObject");function C3(e){return e==null||typeof e!="object"&&typeof e!="function"}O(C3,"isPrimitive");function x3(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}O(x3,"isTypedArray");function N3(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}O(N3,"getSymbols");function I3(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}O(I3,"getTag");var wK="[object RegExp]",_K="[object String]",SK="[object Number]",PK="[object Boolean]",AK="[object Arguments]",RK="[object Symbol]",OK="[object Date]",CK="[object Map]",xK="[object Set]",NK="[object Array]",IK="[object Function]",MK="[object ArrayBuffer]",qK="[object Object]",jK="[object Error]",kK="[object DataView]",DK="[object Uint8Array]",LK="[object Uint8ClampedArray]",FK="[object Uint16Array]",$K="[object Uint32Array]",BK="[object BigUint64Array]",JK="[object Int8Array]",UK="[object Int16Array]",VK="[object Int32Array]",HK="[object BigInt64Array]",zK="[object Float32Array]",GK="[object Float64Array]",M3=A3({"../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 tI extends Error{constructor(m){super(`No parslet found for token: ${n(m)}`),this.token=m,Object.setPrototypeOf(this,tI.prototype)}getToken(){return this.token}};O(o,"NoParsletFoundError");let s=o;const a=class rI extends Error{constructor(m){super(`The parsing ended early. The next token was: ${n(m)}`),this.token=m,Object.setPrototypeOf(this,rI.prototype)}getToken(){return this.token}};O(a,"EarlyEndOfParseError");let c=a;const u=class nI extends Error{constructor(m,b){let x=`Unexpected type: '${m.type}'.`;b!==void 0&&(x+=` Message: ${b}`),super(x),Object.setPrototypeOf(this,nI.prototype)}};O(u,"UnexpectedTypeError");let d=u;function p(l){return m=>m.startsWith(l)?{type:l,text:l}:null}O(p,"makePunctuationRule");function f(l){let m=0,b;const x=l[0];let F=!1;if(x!=="'"&&x!=='"')return null;for(;m<l.length;){if(m++,b=l[m],!F&&b===x){m++;break}F=!F&&b==="\\"}if(b!==x)throw new Error("Unterminated String");return l.slice(0,m)}O(f,"getQuoted");const h=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 m=l[0];if(!h.test(m))return null;let b=1;do{if(m=l[b],!y.test(m))break;b++}while(b<l.length);return l.slice(0,b)}O(g,"getIdentifier");const E=/^(NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity))/;function T(l){var m,b;return(b=(m=E.exec(l))===null||m===void 0?void 0:m[0])!==null&&b!==void 0?b:null}O(T,"getNumber");const v=O(l=>{const m=g(l);return m==null?null:{type:"Identifier",text:m}},"identifierRule");function _(l){return m=>{if(!m.startsWith(l))return null;const b=m[l.length];return b!==void 0&&y.test(b)?null:{type:l,text:l}}}O(_,"makeKeyWordRule");const R=O(l=>{const m=f(l);return m==null?null:{type:"StringValue",text:m}},"stringValueRule"),N=O(l=>l.length>0?null:{type:"EOF",text:""},"eofRule"),j=O(l=>{const m=T(l);return m===null?null:{type:"Number",text:m}},"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,R],P=/^\s*\n\s*/,w=class ca{static create(m){const b=this.read(m);m=b.text;const x=this.read(m);return m=x.text,new ca(m,void 0,b.token,x.token)}constructor(m,b,x,F){this.text="",this.text=m,this.previous=b,this.current=x,this.next=F}static read(m,b=!1){b=b||P.test(m),m=m.trim();for(const x of C){const F=x(m);if(F!==null){const G=Object.assign(Object.assign({},F),{startOfLine:b});return m=m.slice(G.text.length),{text:m,token:G}}}throw new Error("Unexpected Token "+m)}advance(){const m=ca.read(this.text);return new ca(m.text,this.current,this.next,m.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 A(l){var m;if(l.type==="JsdocTypeVariadic"){if(((m=l.element)===null||m===void 0?void 0:m.type)==="JsdocTypeName")return l;throw new d(l)}if(l.type!=="JsdocTypeNumber"&&l.type!=="JsdocTypeName")throw new d(l);return l}O(A,"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 $(l){return l.type==="JsdocTypeIndexSignature"||l.type==="JsdocTypeMappedType"}O($,"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(m,b,x){this.grammar=m,typeof b=="string"?this._lexer=S.create(b):this._lexer=b,this.baseParser=x}get lexer(){return this._lexer}parse(){const m=this.parseType(D.ALL);if(this.lexer.current.type!=="EOF")throw new c(this.lexer.current);return m}parseType(m){return k(this.parseIntermediateType(m))}parseIntermediateType(m){const b=this.tryParslets(null,m);if(b===null)throw new s(this.lexer.current);return this.parseInfixIntermediateType(b,m)}parseInfixIntermediateType(m,b){let x=this.tryParslets(m,b);for(;x!==null;)m=x,x=this.tryParslets(m,b);return m}tryParslets(m,b){for(const x of this.grammar){const F=x(this,b,m);if(F!==null)return F}return null}consume(m){return Array.isArray(m)||(m=[m]),m.includes(this.lexer.current.type)?(this._lexer=this.lexer.advance(),!0):!1}acceptLexerState(m){this._lexer=m.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,m,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 m=O((b,x,F)=>{const G=b.lexer.current.type,Z=b.lexer.next.type;if(F===null){if("parsePrefix"in l&&l.accept(G,Z))return l.parsePrefix(b)}else if("parseInfix"in l&&l.precedence>x&&l.accept(G,Z))return l.parseInfix(b,F);return null},"parslet");return Object.defineProperty(m,"name",{value:l.name}),m}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,m)=>(l.consume("="),{type:"JsdocTypeOptional",element:k(m),meta:{position:"suffix"}}),"parseInfix")}),be=W({name:"numberParslet",accept:O(l=>l==="Number","accept"),parsePrefix:O(l=>{const m=parseFloat(l.lexer.current.text);return l.consume("Number"),{type:"JsdocTypeNumber",value:m}},"parsePrefix")}),ue=W({name:"parenthesisParslet",accept:O(l=>l==="(","accept"),parsePrefix:O(l=>{if(l.consume("("),l.consume(")"))return{type:"JsdocTypeParameterList",elements:[]};const m=l.parseIntermediateType(D.ALL);if(!l.consume(")"))throw new Error("Unterminated parenthesis");return m.type==="JsdocTypeParameterList"?m:m.type==="JsdocTypeKeyValue"?{type:"JsdocTypeParameterList",elements:[m]}:{type:"JsdocTypeParenthesis",element:k(m)}},"parsePrefix")}),ee=W({name:"specialTypesParslet",accept:O((l,m)=>l==="?"&&ie(m)||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")}),Re=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,m)=>(l.consume("!"),{type:"JsdocTypeNotNullable",element:k(m),meta:{position:"suffix"}}),"parseInfix")});function Oe({allowTrailingComma:l}){return W({name:"parameterListParslet",accept:O(m=>m===",","accept"),precedence:D.PARAMETER_LIST,parseInfix:O((m,b)=>{const x=[I(b)];m.consume(",");do try{const F=m.parseIntermediateType(D.PARAMETER_LIST);x.push(I(F))}catch(F){if(F instanceof s)break;throw F}while(m.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 ze=W({name:"genericParslet",accept:O((l,m)=>l==="<"||l==="."&&m==="<","accept"),precedence:D.GENERIC,parseInfix:O((l,m)=>{const b=l.consume(".");l.consume("<");const x=[];let F=!1;if(l.consume("infer")){F=!0;const G=l.parseIntermediateType(D.SYMBOL);if(G.type!=="JsdocTypeName")throw new d(G,"A typescript asserts always has to have a name on the left side.");x.push(G)}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(m),elements:x},F?{infer:!0}:{}),{meta:{brackets:"angle",dot:b}})},"parseInfix")}),Ye=W({name:"unionParslet",accept:O(l=>l==="|","accept"),precedence:D.UNION,parseInfix:O((l,m)=>{l.consume("|");const b=[];do b.push(l.parseType(D.UNION));while(l.consume("|"));return{type:"JsdocTypeUnion",elements:[k(m),...b]}},"parseInfix")}),J=[se,ae,be,ue,ee,Re,Oe({allowTrailingComma:!0}),ze,Ye,ae];function Q({allowSquareBracketsOnAnyType:l,allowJsdocNamePaths:m,pathGrammar:b}){return O(function(F,G,Z){if(Z==null||G>=D.NAME_PATH)return null;const ce=F.lexer.current.type,_e=F.lexer.next.type;if(!(ce==="."&&_e!=="<"||ce==="["&&(l||Z.type==="JsdocTypeName")||m&&(ce==="~"||ce==="#")))return null;let Me,fr=!1;F.consume(".")?Me="property":F.consume("[")?(Me="property-brackets",fr=!0):F.consume("~")?Me="inner":(F.consume("#"),Me="instance");const di=b!==null?new X(b,F.lexer,F):F,Ze=di.parseIntermediateType(D.NAME_PATH);F.acceptLexerState(di);let Jt;switch(Ze.type){case"JsdocTypeName":Jt={type:"JsdocTypeProperty",value:Ze.value,meta:{quote:void 0}};break;case"JsdocTypeNumber":Jt={type:"JsdocTypeProperty",value:Ze.value.toString(10),meta:{quote:void 0}};break;case"JsdocTypeStringValue":Jt={type:"JsdocTypeProperty",value:Ze.value,meta:{quote:Ze.meta.quote}};break;case"JsdocTypeSpecialNamePath":if(Ze.specialType==="event")Jt=Ze;else throw new d(Ze,"Type 'JsdocTypeSpecialNamePath' is only allowed with specialType 'event'");break;default:throw new d(Ze,"Expecting 'JsdocTypeName', 'JsdocTypeNumber', 'JsdocStringValue' or 'JsdocTypeSpecialNamePath'")}if(fr&&!F.consume("]")){const pi=F.lexer.current;throw new Error(`Unterminated square brackets. Next token is '${pi.type}' with text '${pi.text}'`)}return{type:"JsdocTypeNamePath",left:k(Z),right:Jt,pathType:Me}},"namePathParslet")}O(Q,"createNamePathParslet");function re({allowedAdditionalTokens:l}){return W({name:"nameParslet",accept:O(m=>m==="Identifier"||m==="this"||m==="new"||l.includes(m),"accept"),parsePrefix:O(m=>{const{type:b,text:x}=m.lexer.current;return m.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 m=l.lexer.current.text;return l.consume("StringValue"),{type:"JsdocTypeStringValue",value:m.slice(1,-1),meta:{quote:m[0]==="'"?"single":"double"}}},"parsePrefix")});function ne({pathGrammar:l,allowedTypes:m}){return W({name:"specialNamePathParslet",accept:O(b=>m.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,G=b.lexer.current;if(b.consume("StringValue"))F={type:"JsdocTypeSpecialNamePath",value:G.text.slice(1,-1),specialType:x,meta:{quote:G.text[0]==="'"?"single":"double"}};else{let _e="";const Ee=["Identifier","@","/"];for(;Ee.some(Me=>b.consume(Me));)_e+=G.text,G=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})],he=[...de,ne({allowedTypes:["event"],pathGrammar:de})];function pe(l){let m;if(l.type==="JsdocTypeParameterList")m=l.elements;else if(l.type==="JsdocTypeParenthesis")m=[l.element];else throw new d(l);return m.map(b=>I(b))}O(pe,"getParameters");function $e(l){const m=pe(l);if(m.some(b=>b.type==="JsdocTypeKeyValue"))throw new Error("No parameter should be named");return m}O($e,"getUnnamedParameters");function it({allowNamedParameters:l,allowNoReturnType:m,allowWithoutParenthesis:b,allowNewAsFunctionKeyword:x}){return W({name:"functionParslet",accept:O((F,G)=>F==="function"||x&&F==="new"&&G==="(","accept"),parsePrefix:O(F=>{const G=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:G,parenthesis:Z};const _e=F.parseIntermediateType(D.FUNCTION);if(l===void 0)ce.parameters=$e(_e);else{if(G&&_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(!m)throw new Error("function is missing return type");return ce},"parsePrefix")})}O(it,"createFunctionParslet");function pt({allowPostfix:l,allowEnclosingBrackets:m}){return W({name:"variadicParslet",accept:O(b=>b==="...","accept"),precedence:D.PREFIX,parsePrefix:O(b=>{b.consume("...");const x=m&&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(pt,"createVariadicParslet");const wt=W({name:"symbolParslet",accept:O(l=>l==="(","accept"),precedence:D.SYMBOL,parseInfix:O((l,m)=>{if(m.type!=="JsdocTypeName")throw new Error("Symbol expects a name on the left side. (Reacting on '(')");l.consume("(");const b={type:"JsdocTypeSymbol",value:m.value};if(!l.consume(")")){const x=l.parseIntermediateType(D.SYMBOL);if(b.element=A(x),!l.consume(")"))throw new Error("Symbol does not end after value")}return b},"parseInfix")}),st=W({name:"arrayBracketsParslet",precedence:D.ARRAY_BRACKETS,accept:O((l,m)=>l==="["&&m==="]","accept"),parseInfix:O((l,m)=>(l.consume("["),l.consume("]"),{type:"JsdocTypeGeneric",left:{type:"JsdocTypeName",value:"Array"},elements:[k(m)],meta:{brackets:"square",dot:!1}}),"parseInfix")});function ft({objectFieldGrammar:l,allowKeyTypes:m}){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 G=new X(l,b.lexer,b);for(;;){G.acceptLexerState(b);let Z=G.parseIntermediateType(D.OBJECT);b.acceptLexerState(G),Z===void 0&&m&&(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(ft,"createObjectParslet");function mt({allowSquaredProperties:l,allowKeyTypes:m,allowReadonly:b,allowOptional:x}){return W({name:"objectFieldParslet",precedence:D.KEY_VALUE,accept:O(F=>F===":","accept"),parseInfix:O((F,G)=>{var Z;let ce=!1,_e=!1;x&&G.type==="JsdocTypeNullable"&&(ce=!0,G=G.element),b&&G.type==="JsdocTypeReadonlyProperty"&&(_e=!0,G=G.element);const Ee=(Z=F.baseParser)!==null&&Z!==void 0?Z:F;if(Ee.acceptLexerState(F),G.type==="JsdocTypeNumber"||G.type==="JsdocTypeName"||G.type==="JsdocTypeStringValue"||$(G)){if($(G)&&!l)throw new d(G);Ee.consume(":");let Me;G.type==="JsdocTypeStringValue"&&(Me=G.meta.quote);const fr=Ee.parseType(D.KEY_VALUE);return F.acceptLexerState(Ee),{type:"JsdocTypeObjectField",key:$(G)?G:G.value.toString(),right:fr,optional:ce,readonly:_e,meta:{quote:Me}}}else{if(!m)throw new d(G);Ee.consume(":");const Me=Ee.parseType(D.KEY_VALUE);return F.acceptLexerState(Ee),{type:"JsdocTypeJsdocObjectField",left:k(G),right:Me}}},"parseInfix")})}O(mt,"createObjectFieldParslet");function ht({allowOptional:l,allowVariadic:m}){return W({name:"keyValueParslet",precedence:D.KEY_VALUE,accept:O(b=>b===":","accept"),parseInfix:O((b,x)=>{let F=!1,G=!1;if(l&&x.type==="JsdocTypeNullable"&&(F=!0,x=x.element),m&&x.type==="JsdocTypeVariadic"&&x.element!==void 0&&(G=!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:G}},"parseInfix")})}O(ht,"createKeyValueParslet");const tn=[...J,it({allowWithoutParenthesis:!0,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),oe,ne({allowedTypes:["module","external","event"],pathGrammar:he}),pt({allowEnclosingBrackets:!0,allowPostfix:!0}),re({allowedAdditionalTokens:["keyof"]}),wt,st,Q({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:he})],Jo=[...tn,ft({objectFieldGrammar:[re({allowedAdditionalTokens:["typeof","module","in"]}),mt({allowSquaredProperties:!1,allowKeyTypes:!0,allowOptional:!1,allowReadonly:!1}),...tn],allowKeyTypes:!0}),ht({allowOptional:!0,allowVariadic:!0})],rn=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")}),Uo=[re({allowedAdditionalTokens:["typeof","module","keyof","event","external","in"]}),se,ae,oe,be,mt({allowSquaredProperties:!1,allowKeyTypes:!1,allowOptional:!1,allowReadonly:!1})],Vo=[...J,ft({allowKeyTypes:!1,objectFieldGrammar:Uo}),re({allowedAdditionalTokens:["event","external","in"]}),rn,it({allowWithoutParenthesis:!1,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),pt({allowEnclosingBrackets:!1,allowPostfix:!1}),re({allowedAdditionalTokens:["keyof"]}),ne({allowedTypes:["module"],pathGrammar:he}),Q({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:he}),ht({allowOptional:!1,allowVariadic:!1}),wt],Ho=W({name:"assertsParslet",accept:O(l=>l==="asserts","accept"),parsePrefix:O(l=>{l.consume("asserts");const m=l.parseIntermediateType(D.SYMBOL);if(m.type!=="JsdocTypeName")throw new d(m,"A typescript asserts always has to have a name on the left side.");return l.consume("is")?{type:"JsdocTypeAsserts",left:m,right:k(l.parseIntermediateType(D.INFIX))}:{type:"JsdocTypeAssertsPlain",element:m}},"parsePrefix")});function nn({allowQuestionMark:l}){return W({name:"tupleParslet",accept:O(m=>m==="[","accept"),parsePrefix:O(m=>{m.consume("[");const b={type:"JsdocTypeTuple",elements:[]};if(m.consume("]"))return b;const x=m.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)],!m.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(nn,"createTupleParslet");const zo=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")}),Go=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 m=l.parseType(D.PREFIX);if(m.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:m}},"parsePrefix")}),Wo=W({name:"readonlyPropertyParslet",accept:O(l=>l==="readonly","accept"),parsePrefix:O(l=>(l.consume("readonly"),{type:"JsdocTypeReadonlyProperty",element:l.parseIntermediateType(D.KEY_VALUE)}),"parsePrefix")}),Ko=W({name:"arrowFunctionParslet",precedence:D.ARROW,accept:O(l=>l==="=>","accept"),parseInfix:O((l,m)=>(l.consume("=>"),{type:"JsdocTypeFunction",parameters:pe(m).map(V),arrow:!0,constructor:!1,parenthesis:!0,returnType:l.parseType(D.OBJECT)}),"parseInfix")}),Yo=W({name:"genericArrowFunctionParslet",accept:O(l=>l==="<","accept"),parsePrefix:O(l=>{const m=[];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 G;l.consume("extends")&&(G=l.parseType(D.SYMBOL),G.type==="JsdocTypeOptional"&&(G=G.element,x=l.parseType(D.SYMBOL)));const Z={type:"JsdocTypeTypeParameter",name:F};if(G!==void 0&&(Z.constraint=G),x!==void 0&&(Z.defaultValue=x),m.push(Z),l.consume(">"))break}while(l.consume(","));const b=l.parseIntermediateType(D.SYMBOL);return b.typeParameters=m,b},"parsePrefix")}),Xo=W({name:"intersectionParslet",accept:O(l=>l==="&","accept"),precedence:D.INTERSECTION,parseInfix:O((l,m)=>{l.consume("&");const b=[];do b.push(l.parseType(D.INTERSECTION));while(l.consume("&"));return{type:"JsdocTypeIntersection",elements:[k(m),...b]}},"parseInfix")}),Qo=W({name:"predicateParslet",precedence:D.INFIX,accept:O(l=>l==="is","accept"),parseInfix:O((l,m)=>{if(m.type!=="JsdocTypeName")throw new d(m,"A typescript predicate always has to have a name on the left side.");return l.consume("is"),{type:"JsdocTypePredicate",left:m,right:k(l.parseIntermediateType(D.INFIX))}},"parseInfix")}),Zo=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 m=l.lexer.current.text;l.consume("Identifier");let b;if(l.consume(":")){const x=l.baseParser;x.acceptLexerState(l),b={type:"JsdocTypeIndexSignature",key:m,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:m,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")}),ei=W({name:"readonlyArrayParslet",accept:O(l=>l==="readonly","accept"),parsePrefix:O(l=>(l.consume("readonly"),{type:"JsdocTypeReadonlyArray",element:L(l.parseIntermediateType(D.ALL))}),"parsePrefix")}),ti=W({name:"conditionalParslet",precedence:D.INFIX,accept:O(l=>l==="extends","accept"),parseInfix:O((l,m)=>{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(m),extendsType:b,trueType:x,falseType:l.parseType(D.INFIX)}},"parseInfix")}),ri=[Wo,re({allowedAdditionalTokens:["typeof","module","keyof","event","external","in"]}),se,ae,oe,be,mt({allowSquaredProperties:!0,allowKeyTypes:!1,allowOptional:!0,allowReadonly:!0}),Zo],ni=[...J,ft({allowKeyTypes:!1,objectFieldGrammar:ri}),ei,rn,zo,Go,oe,it({allowWithoutParenthesis:!0,allowNoReturnType:!1,allowNamedParameters:["this","new","args"],allowNewAsFunctionKeyword:!0}),nn({allowQuestionMark:!1}),pt({allowEnclosingBrackets:!1,allowPostfix:!1}),Ho,ti,re({allowedAdditionalTokens:["event","external","in"]}),ne({allowedTypes:["module"],pathGrammar:he}),st,Ko,Yo,Q({allowSquareBracketsOnAnyType:!0,allowJsdocNamePaths:!1,pathGrammar:he}),Xo,Qo,ht({allowVariadic:!0,allowOptional:!0})];function ur(l,m){switch(m){case"closure":return new X(Vo,l).parse();case"jsdoc":return new X(Jo,l).parse();case"typescript":return new X(ni,l).parse()}}O(ur,"parse");function on(l,m=["typescript","closure","jsdoc"]){let b;for(const x of m)try{return ur(l,x)}catch(F){b=F}throw b}O(on,"tryParse");function Y(l,m){const b=l[m.type];if(b===void 0)throw new Error(`In this set of transform rules exists no rule for type ${m.type}.`);return b(m,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 It(l){const m={params:[]};for(const b of l.parameters)b.type==="JsdocTypeKeyValue"?b.key==="this"?m.this=b.right:b.key==="new"?m.new=b.right:m.params.push(b):m.params.push(b);return m}O(It,"extractSpecialParams");function Bt(l,m,b){return l==="prefix"?b+m:m+b}O(Bt,"applyPosition");function Xe(l,m){switch(m){case"double":return`"${l}"`;case"single":return`'${l}'`;case void 0:return l}}O(Xe,"quote");function sn(){return{JsdocTypeParenthesis:O((l,m)=>`(${l.element!==void 0?m(l.element):""})`,"JsdocTypeParenthesis"),JsdocTypeKeyof:O((l,m)=>`keyof ${m(l.element)}`,"JsdocTypeKeyof"),JsdocTypeFunction:O((l,m)=>{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(m).join(", "))!==null&&b!==void 0?b:""}>`:""}(${l.parameters.map(m).join(", ")}) => ${m(l.returnType)}`;return l.constructor&&(x="new "+x),x}else{let x=l.constructor?"new":"function";return l.parenthesis&&(x+=`(${l.parameters.map(m).join(", ")})`,l.returnType!==void 0&&(x+=`: ${m(l.returnType)}`)),x}},"JsdocTypeFunction"),JsdocTypeName:O(l=>l.value,"JsdocTypeName"),JsdocTypeTuple:O((l,m)=>`[${l.elements.map(m).join(", ")}]`,"JsdocTypeTuple"),JsdocTypeVariadic:O((l,m)=>l.meta.position===void 0?"...":Bt(l.meta.position,m(l.element),"..."),"JsdocTypeVariadic"),JsdocTypeNamePath:O((l,m)=>{const b=m(l.left),x=m(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=>Xe(l.value,l.meta.quote),"JsdocTypeStringValue"),JsdocTypeAny:O(()=>"*","JsdocTypeAny"),JsdocTypeGeneric:O((l,m)=>{if(l.meta.brackets==="square"){const b=l.elements[0],x=m(b);return b.type==="JsdocTypeUnion"||b.type==="JsdocTypeIntersection"?`(${x})[]`:`${x}[]`}else return`${m(l.left)}${l.meta.dot?".":""}<${l.infer===!0?"infer ":""}${l.elements.map(m).join(", ")}>`},"JsdocTypeGeneric"),JsdocTypeImport:O((l,m)=>`import(${m(l.element)})`,"JsdocTypeImport"),JsdocTypeObjectField:O((l,m)=>{let b="";return l.readonly&&(b+="readonly "),typeof l.key=="string"?b+=Xe(l.key,l.meta.quote):b+=m(l.key),l.optional&&(b+="?"),l.right===void 0?b:b+`: ${m(l.right)}`},"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:O((l,m)=>`${m(l.left)}: ${m(l.right)}`,"JsdocTypeJsdocObjectField"),JsdocTypeKeyValue:O((l,m)=>{let b=l.key;return l.optional&&(b+="?"),l.variadic&&(b="..."+b),l.right===void 0?b:b+`: ${m(l.right)}`},"JsdocTypeKeyValue"),JsdocTypeSpecialNamePath:O(l=>`${l.specialType}:${Xe(l.value,l.meta.quote)}`,"JsdocTypeSpecialNamePath"),JsdocTypeNotNullable:O((l,m)=>Bt(l.meta.position,m(l.element),"!"),"JsdocTypeNotNullable"),JsdocTypeNull:O(()=>"null","JsdocTypeNull"),JsdocTypeNullable:O((l,m)=>Bt(l.meta.position,m(l.element),"?"),"JsdocTypeNullable"),JsdocTypeNumber:O(l=>l.value.toString(),"JsdocTypeNumber"),JsdocTypeObject:O((l,m)=>{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(m).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,m)=>Bt(l.meta.position,m(l.element),"="),"JsdocTypeOptional"),JsdocTypeSymbol:O((l,m)=>`${l.value}(${l.element!==void 0?m(l.element):""})`,"JsdocTypeSymbol"),JsdocTypeTypeof:O((l,m)=>`typeof ${m(l.element)}`,"JsdocTypeTypeof"),JsdocTypeUndefined:O(()=>"undefined","JsdocTypeUndefined"),JsdocTypeUnion:O((l,m)=>l.elements.map(m).join(" | "),"JsdocTypeUnion"),JsdocTypeUnknown:O(()=>"?","JsdocTypeUnknown"),JsdocTypeIntersection:O((l,m)=>l.elements.map(m).join(" & "),"JsdocTypeIntersection"),JsdocTypeProperty:O(l=>Xe(l.value,l.meta.quote),"JsdocTypeProperty"),JsdocTypePredicate:O((l,m)=>`${m(l.left)} is ${m(l.right)}`,"JsdocTypePredicate"),JsdocTypeIndexSignature:O((l,m)=>`[${l.key}: ${m(l.right)}]`,"JsdocTypeIndexSignature"),JsdocTypeMappedType:O((l,m)=>`[${l.key} in ${m(l.right)}]`,"JsdocTypeMappedType"),JsdocTypeAsserts:O((l,m)=>`asserts ${m(l.left)} is ${m(l.right)}`,"JsdocTypeAsserts"),JsdocTypeReadonlyArray:O((l,m)=>`readonly ${m(l.element)}`,"JsdocTypeReadonlyArray"),JsdocTypeAssertsPlain:O((l,m)=>`asserts ${m(l.element)}`,"JsdocTypeAssertsPlain"),JsdocTypeConditional:O((l,m)=>`${m(l.checksType)} extends ${m(l.extendsType)} ? ${m(l.trueType)} : ${m(l.falseType)}`,"JsdocTypeConditional"),JsdocTypeTypeParameter:O((l,m)=>`${m(l.name)}${l.constraint!==void 0?` extends ${m(l.constraint)}`:""}${l.defaultValue!==void 0?` = ${m(l.defaultValue)}`:""}`,"JsdocTypeTypeParameter")}}O(sn,"stringifyRules");const Vc=sn();function oi(l){return Y(Vc,l)}O(oi,"stringify");const Hc=["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 Qe(l){const m={type:"NameExpression",name:l};return Hc.includes(l)&&(m.reservedWord=!0),m}O(Qe,"makeName");const zc={JsdocTypeOptional:O((l,m)=>{const b=m(l.element);return b.optional=!0,b},"JsdocTypeOptional"),JsdocTypeNullable:O((l,m)=>{const b=m(l.element);return b.nullable=!0,b},"JsdocTypeNullable"),JsdocTypeNotNullable:O((l,m)=>{const b=m(l.element);return b.nullable=!1,b},"JsdocTypeNotNullable"),JsdocTypeVariadic:O((l,m)=>{if(l.element===void 0)throw new Error("dots without value are not allowed in catharsis mode");const b=m(l.element);return b.repeatable=!0,b},"JsdocTypeVariadic"),JsdocTypeAny:O(()=>({type:"AllLiteral"}),"JsdocTypeAny"),JsdocTypeNull:O(()=>({type:"NullLiteral"}),"JsdocTypeNull"),JsdocTypeStringValue:O(l=>Qe(Xe(l.value,l.meta.quote)),"JsdocTypeStringValue"),JsdocTypeUndefined:O(()=>({type:"UndefinedLiteral"}),"JsdocTypeUndefined"),JsdocTypeUnknown:O(()=>({type:"UnknownLiteral"}),"JsdocTypeUnknown"),JsdocTypeFunction:O((l,m)=>{const b=It(l),x={type:"FunctionType",params:b.params.map(m)};return b.this!==void 0&&(x.this=m(b.this)),b.new!==void 0&&(x.new=m(b.new)),l.returnType!==void 0&&(x.result=m(l.returnType)),x},"JsdocTypeFunction"),JsdocTypeGeneric:O((l,m)=>({type:"TypeApplication",applications:l.elements.map(b=>m(b)),expression:m(l.left)}),"JsdocTypeGeneric"),JsdocTypeSpecialNamePath:O(l=>Qe(l.specialType+":"+Xe(l.value,l.meta.quote)),"JsdocTypeSpecialNamePath"),JsdocTypeName:O(l=>l.value!=="function"?Qe(l.value):{type:"FunctionType",params:[]},"JsdocTypeName"),JsdocTypeNumber:O(l=>Qe(l.value.toString()),"JsdocTypeNumber"),JsdocTypeObject:O((l,m)=>{const b={type:"RecordType",fields:[]};for(const x of l.elements)x.type!=="JsdocTypeObjectField"&&x.type!=="JsdocTypeJsdocObjectField"?b.fields.push({type:"FieldType",key:m(x),value:void 0}):b.fields.push(m(x));return b},"JsdocTypeObject"),JsdocTypeObjectField:O((l,m)=>{if(typeof l.key!="string")throw new Error("Index signatures and mapped types are not supported");return{type:"FieldType",key:Qe(Xe(l.key,l.meta.quote)),value:l.right===void 0?void 0:m(l.right)}},"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:O((l,m)=>({type:"FieldType",key:m(l.left),value:m(l.right)}),"JsdocTypeJsdocObjectField"),JsdocTypeUnion:O((l,m)=>({type:"TypeUnion",elements:l.elements.map(b=>m(b))}),"JsdocTypeUnion"),JsdocTypeKeyValue:O((l,m)=>({type:"FieldType",key:Qe(l.key),value:l.right===void 0?void 0:m(l.right)}),"JsdocTypeKeyValue"),JsdocTypeNamePath:O((l,m)=>{const b=m(l.left);let x;l.right.type==="JsdocTypeSpecialNamePath"?x=m(l.right).name:x=Xe(l.right.value,l.right.meta.quote);const F=l.pathType==="inner"?"~":l.pathType==="instance"?"#":".";return Qe(`${b.name}${F}${x}`)},"JsdocTypeNamePath"),JsdocTypeSymbol:O(l=>{let m="",b=l.element,x=!1;return b?.type==="JsdocTypeVariadic"&&(b.meta.position==="prefix"?m="...":x=!0,b=b.element),b?.type==="JsdocTypeName"?m+=b.value:b?.type==="JsdocTypeNumber"&&(m+=b.value.toString()),x&&(m+="..."),Qe(`${l.value}(${m})`)},"JsdocTypeSymbol"),JsdocTypeParenthesis:O((l,m)=>m(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 ii(l){return Y(zc,l)}O(ii,"catharsisTransform");function at(l){switch(l){case void 0:return"none";case"single":return"single";case"double":return"double"}}O(at,"getQuoteStyle");function si(l){switch(l){case"inner":return"INNER_MEMBER";case"instance":return"INSTANCE_MEMBER";case"property":return"MEMBER";case"property-brackets":return"MEMBER"}}O(si,"getMemberType");function dr(l,m){return m.length===2?{type:l,left:m[0],right:m[1]}:{type:l,left:m[0],right:dr(l,m.slice(1))}}O(dr,"nestResults");const Gc={JsdocTypeOptional:O((l,m)=>({type:"OPTIONAL",value:m(l.element),meta:{syntax:l.meta.position==="prefix"?"PREFIX_EQUAL_SIGN":"SUFFIX_EQUALS_SIGN"}}),"JsdocTypeOptional"),JsdocTypeNullable:O((l,m)=>({type:"NULLABLE",value:m(l.element),meta:{syntax:l.meta.position==="prefix"?"PREFIX_QUESTION_MARK":"SUFFIX_QUESTION_MARK"}}),"JsdocTypeNullable"),JsdocTypeNotNullable:O((l,m)=>({type:"NOT_NULLABLE",value:m(l.element),meta:{syntax:l.meta.position==="prefix"?"PREFIX_BANG":"SUFFIX_BANG"}}),"JsdocTypeNotNullable"),JsdocTypeVariadic:O((l,m)=>{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=m(l.element)),b},"JsdocTypeVariadic"),JsdocTypeName:O(l=>({type:"NAME",name:l.value}),"JsdocTypeName"),JsdocTypeTypeof:O((l,m)=>({type:"TYPE_QUERY",name:m(l.element)}),"JsdocTypeTypeof"),JsdocTypeTuple:O((l,m)=>({type:"TUPLE",entries:l.elements.map(m)}),"JsdocTypeTuple"),JsdocTypeKeyof:O((l,m)=>({type:"KEY_QUERY",value:m(l.element)}),"JsdocTypeKeyof"),JsdocTypeImport:O(l=>({type:"IMPORT",path:{type:"STRING_VALUE",quoteStyle:at(l.element.meta.quote),string:l.element.value}}),"JsdocTypeImport"),JsdocTypeUndefined:O(()=>({type:"NAME",name:"undefined"}),"JsdocTypeUndefined"),JsdocTypeAny:O(()=>({type:"ANY"}),"JsdocTypeAny"),JsdocTypeFunction:O((l,m)=>{const b=It(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:m(F.right)}}else return m(F)}),new:null,returns:null};return b.this!==void 0?x.this=m(b.this):l.arrow||(x.this=null),b.new!==void 0&&(x.new=m(b.new)),l.returnType!==void 0&&(x.returns=m(l.returnType)),x},"JsdocTypeFunction"),JsdocTypeGeneric:O((l,m)=>{const b={type:"GENERIC",subject:m(l.left),objects:l.elements.map(m),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,m)=>{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:at(l.meta.quote),value:null,readonly:!1};let b=m(l.right);return l.optional&&(b={type:"OPTIONAL",value:b,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:l.key.toString(),quoteStyle:at(l.meta.quote),value:b,readonly:!1}},"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:O(()=>{throw new Error("Keys may not be typed in jsdoctypeparser.")},"JsdocTypeJsdocObjectField"),JsdocTypeKeyValue:O((l,m)=>{if(l.right===void 0)return{type:"RECORD_ENTRY",key:l.key,quoteStyle:"none",value:null,readonly:!1};let b=m(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,m)=>{const b=[];for(const x of l.elements)(x.type==="JsdocTypeObjectField"||x.type==="JsdocTypeJsdocObjectField")&&b.push(m(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:at(l.meta.quote),path:l.value}}},"JsdocTypeSpecialNamePath"),JsdocTypeNamePath:O((l,m)=>{let b=!1,x,F;l.right.type==="JsdocTypeSpecialNamePath"&&l.right.specialType==="event"?(b=!0,x=l.right.value,F=at(l.right.meta.quote)):(x=l.right.value,F=at(l.right.meta.quote));const G={type:si(l.pathType),owner:m(l.left),name:x,quoteStyle:F,hasEventPrefix:b};if(G.owner.type==="MODULE"){const Z=G.owner;return G.owner=G.owner.value,Z.value=G,Z}else return G},"JsdocTypeNamePath"),JsdocTypeUnion:O((l,m)=>dr("UNION",l.elements.map(m)),"JsdocTypeUnion"),JsdocTypeParenthesis:O((l,m)=>({type:"PARENTHESIS",value:m(k(l.element))}),"JsdocTypeParenthesis"),JsdocTypeNull:O(()=>({type:"NAME",name:"null"}),"JsdocTypeNull"),JsdocTypeUnknown:O(()=>({type:"UNKNOWN"}),"JsdocTypeUnknown"),JsdocTypeStringValue:O(l=>({type:"STRING_VALUE",quoteStyle:at(l.meta.quote),string:l.value}),"JsdocTypeStringValue"),JsdocTypeIntersection:O((l,m)=>dr("INTERSECTION",l.elements.map(m)),"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 ai(l){return Y(Gc,l)}O(ai,"jtpTransform");function li(){return{JsdocTypeIntersection:O((l,m)=>({type:"JsdocTypeIntersection",elements:l.elements.map(m)}),"JsdocTypeIntersection"),JsdocTypeGeneric:O((l,m)=>({type:"JsdocTypeGeneric",left:m(l.left),elements:l.elements.map(m),meta:{dot:l.meta.dot,brackets:l.meta.brackets}}),"JsdocTypeGeneric"),JsdocTypeNullable:O(l=>l,"JsdocTypeNullable"),JsdocTypeUnion:O((l,m)=>({type:"JsdocTypeUnion",elements:l.elements.map(m)}),"JsdocTypeUnion"),JsdocTypeUnknown:O(l=>l,"JsdocTypeUnknown"),JsdocTypeUndefined:O(l=>l,"JsdocTypeUndefined"),JsdocTypeTypeof:O((l,m)=>({type:"JsdocTypeTypeof",element:m(l.element)}),"JsdocTypeTypeof"),JsdocTypeSymbol:O((l,m)=>{const b={type:"JsdocTypeSymbol",value:l.value};return l.element!==void 0&&(b.element=m(l.element)),b},"JsdocTypeSymbol"),JsdocTypeOptional:O((l,m)=>({type:"JsdocTypeOptional",element:m(l.element),meta:{position:l.meta.position}}),"JsdocTypeOptional"),JsdocTypeObject:O((l,m)=>({type:"JsdocTypeObject",meta:{separator:"comma"},elements:l.elements.map(m)}),"JsdocTypeObject"),JsdocTypeNumber:O(l=>l,"JsdocTypeNumber"),JsdocTypeNull:O(l=>l,"JsdocTypeNull"),JsdocTypeNotNullable:O((l,m)=>({type:"JsdocTypeNotNullable",element:m(l.element),meta:{position:l.meta.position}}),"JsdocTypeNotNullable"),JsdocTypeSpecialNamePath:O(l=>l,"JsdocTypeSpecialNamePath"),JsdocTypeObjectField:O((l,m)=>({type:"JsdocTypeObjectField",key:l.key,right:l.right===void 0?void 0:m(l.right),optional:l.optional,readonly:l.readonly,meta:l.meta}),"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:O((l,m)=>({type:"JsdocTypeJsdocObjectField",left:m(l.left),right:m(l.right)}),"JsdocTypeJsdocObjectField"),JsdocTypeKeyValue:O((l,m)=>({type:"JsdocTypeKeyValue",key:l.key,right:l.right===void 0?void 0:m(l.right),optional:l.optional,variadic:l.variadic}),"JsdocTypeKeyValue"),JsdocTypeImport:O((l,m)=>({type:"JsdocTypeImport",element:m(l.element)}),"JsdocTypeImport"),JsdocTypeAny:O(l=>l,"JsdocTypeAny"),JsdocTypeStringValue:O(l=>l,"JsdocTypeStringValue"),JsdocTypeNamePath:O(l=>l,"JsdocTypeNamePath"),JsdocTypeVariadic:O((l,m)=>{const b={type:"JsdocTypeVariadic",meta:{position:l.meta.position,squareBrackets:l.meta.squareBrackets}};return l.element!==void 0&&(b.element=m(l.element)),b},"JsdocTypeVariadic"),JsdocTypeTuple:O((l,m)=>({type:"JsdocTypeTuple",elements:l.elements.map(m)}),"JsdocTypeTuple"),JsdocTypeName:O(l=>l,"JsdocTypeName"),JsdocTypeFunction:O((l,m)=>{const b={type:"JsdocTypeFunction",arrow:l.arrow,parameters:l.parameters.map(m),constructor:l.constructor,parenthesis:l.parenthesis};return l.returnType!==void 0&&(b.returnType=m(l.returnType)),b},"JsdocTypeFunction"),JsdocTypeKeyof:O((l,m)=>({type:"JsdocTypeKeyof",element:m(l.element)}),"JsdocTypeKeyof"),JsdocTypeParenthesis:O((l,m)=>({type:"JsdocTypeParenthesis",element:m(l.element)}),"JsdocTypeParenthesis"),JsdocTypeProperty:O(l=>l,"JsdocTypeProperty"),JsdocTypePredicate:O((l,m)=>({type:"JsdocTypePredicate",left:m(l.left),right:m(l.right)}),"JsdocTypePredicate"),JsdocTypeIndexSignature:O((l,m)=>({type:"JsdocTypeIndexSignature",key:l.key,right:m(l.right)}),"JsdocTypeIndexSignature"),JsdocTypeMappedType:O((l,m)=>({type:"JsdocTypeMappedType",key:l.key,right:m(l.right)}),"JsdocTypeMappedType"),JsdocTypeAsserts:O((l,m)=>({type:"JsdocTypeAsserts",left:m(l.left),right:m(l.right)}),"JsdocTypeAsserts"),JsdocTypeReadonlyArray:O((l,m)=>({type:"JsdocTypeReadonlyArray",element:m(l.element)}),"JsdocTypeReadonlyArray"),JsdocTypeAssertsPlain:O((l,m)=>({type:"JsdocTypeAssertsPlain",element:m(l.element)}),"JsdocTypeAssertsPlain"),JsdocTypeConditional:O((l,m)=>({type:"JsdocTypeConditional",checksType:m(l.checksType),extendsType:m(l.extendsType),trueType:m(l.trueType),falseType:m(l.falseType)}),"JsdocTypeConditional"),JsdocTypeTypeParameter:O((l,m)=>({type:"JsdocTypeTypeParameter",name:m(l.name),constraint:l.constraint!==void 0?m(l.constraint):void 0,defaultValue:l.defaultValue!==void 0?m(l.defaultValue):void 0}),"JsdocTypeTypeParameter")}}O(li,"identityTransformRules");const ci={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 pr(l,m,b,x,F){x?.(l,m,b);const G=ci[l.type];for(const Z of G){const ce=l[Z];if(ce!==void 0)if(Array.isArray(ce))for(const _e of ce)pr(_e,l,Z,x,F);else pr(ce,l,Z,x,F)}F?.(l,m,b)}O(pr,"_traverse");function ui(l,m,b){pr(l,void 0,void 0,m,b)}O(ui,"traverse"),r.catharsisTransform=ii,r.identityTransformRules=li,r.jtpTransform=ai,r.parse=ur,r.stringify=oi,r.stringifyRules=sn,r.transform=Y,r.traverse=ui,r.tryParse=on,r.visitorKeys=ci})}});const{UnknownArgTypesError:KK}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{UnknownArgTypesError:YK}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var q3=["null","undefined"];function Fc(e){return q3.some(t=>t===e)}O(Fc,"isDefaultValueBlacklisted");var j3=O(e=>{if(!e)return"";if(typeof e=="string")return e;throw new Error(`Description: expected string, got: ${JSON.stringify(e)}`)},"str");function ky(e){return!!e.__docgenInfo}O(ky,"hasDocgen");function k3(e){return e!=null&&Object.keys(e).length>0}O(k3,"isValidDocgenSection");function D3(e,t){return ky(e)?e.__docgenInfo[t]:null}O(D3,"getDocgenSection");function oI(e){return ky(e)?j3(e.__docgenInfo.description):""}O(oI,"getDocgenDescription");var Vr;(function(e){e.start="/**",e.nostart="/***",e.delim="*",e.end="*/"})(Vr=Vr||(Vr={}));function iI(e){return/^\s+$/.test(e)}O(iI,"isSpace");function sI(e){const t=e.match(/\r+$/);return t==null?["",e]:[e.slice(-t[0].length),e.slice(0,-t[0].length)]}O(sI,"splitCR");function Tn(e){const t=e.match(/^\s+/);return t==null?["",e]:[e.slice(0,t[0].length),e.slice(t[0].length)]}O(Tn,"splitSpace");function aI(e){return e.split(/\n/)}O(aI,"splitLines");function lI(e={}){return Object.assign({tag:"",name:"",type:"",optional:!1,description:"",problems:[],source:[]},e)}O(lI,"seedSpec");function cI(e={}){return Object.assign({start:"",delimiter:"",postDelimiter:"",tag:"",postTag:"",name:"",postName:"",type:"",postType:"",description:"",end:"",lineEnd:""},e)}O(cI,"seedTokens");var L3=/^@\S+/;function uI({fence:e="```"}={}){const t=dI(e),r=O((n,o)=>t(n)?!o:o,"toggleFence");return O(function(o){const s=[[]];let a=!1;for(const c of o)L3.test(c.tokens.description)&&!a?s.push([c]):s[s.length-1].push(c),a=r(c.tokens.description,a);return s},"parseBlock")}O(uI,"getParser");function dI(e){return typeof e=="string"?t=>t.split(e).length%2===0:e}O(dI,"getFencer");function pI({startLine:e=0,markers:t=Vr}={}){let r=null,n=e;return O(function(s){let a=s;const c=cI();if([c.lineEnd,a]=sI(a),[c.start,a]=Tn(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]=Tn(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]=Tn(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(pI,"getParser");function fI({tokenizers:e}){return O(function(r){var n;let o=lI({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(fI,"getParser");function mI(){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(mI,"tagTokenizer");function hI(e="compact"){const t=yI(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]=Tn(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(hI,"typeTokenizer");var F3=O(e=>e.trim(),"trim");function yI(e){return e==="compact"?t=>t.map(F3).join(""):e==="preserve"?t=>t.join(`
|
|
1013
|
-
`):e}O(yI,"getJoiner");var $3=O(e=>e&&e.startsWith('"')&&e.endsWith('"'),"isQuoted");function gI(){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]=Tn(n.slice(r.name.length)),t;let s=0,a="",c=!1,u;for(const p of n){if(s===0&&iI(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(!$3(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]=Tn(n.slice(r.name.length)),t}}O(gI,"nameTokenizer");function bI(e="compact",t=Vr){const r=Dy(e);return n=>(n.description=r(n.source,t),n)}O(bI,"descriptionTokenizer");function Dy(e){return e==="compact"?vI:e==="preserve"?EI:e}O(Dy,"getJoiner");function vI(e,t=Vr){return e.map(({tokens:{description:r}})=>r.trim()).filter(r=>r!=="").join(" ")}O(vI,"compactJoiner");var B3=O((e,{tokens:t},r)=>t.type===""?e:r,"lineNo"),J3=O(({tokens:e})=>(e.delimiter===""?e.start:e.postDelimiter.slice(1))+e.description,"getDescription");function EI(e,t=Vr){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(B3,0)),e.map(J3).join(`
|
|
1014
|
-
`)}O(EI,"preserveJoiner");function TI({startLine:e=0,fence:t="```",spacing:r="compact",markers:n=Vr,tokenizers:o=[mI(),hI(r),gI(),bI(r)]}={}){if(e<0||e%1>0)throw new Error("Invalid startLine");const s=pI({startLine:e,markers:n}),a=uI({fence:t}),c=fI({tokenizers:o}),u=Dy(r);return function(d){const p=[];for(const f of aI(d)){const h=s(f);if(h===null)continue;const y=a(h),g=y.slice(1).map(c);p.push({description:u(y[0],n),tags:g,source:h,problems:g.reduce((E,T)=>E.concat(T.problems),[])})}return p}}O(TI,"getParser");function wI(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(wI,"join");function U3(){return e=>e.source.map(({tokens:t})=>wI(t)).join(`
|
|
1015
|
-
`)}O(U3,"getStringifier");function _I(e,t={}){return TI(t)(e)}O(_I,"parse");var Ly=O3(M3(),1);function SI(e){return e!=null&&e.includes("@")}O(SI,"containsJsDoc");function PI(e){const n=`/**
|
|
1016
|
-
`+(e??"").split(`
|
|
1017
|
-
`).map(s=>` * ${s}`).join(`
|
|
1018
|
-
`)+`
|
|
1019
|
-
*/`,o=_I(n,{spacing:"preserve"});if(!o||o.length===0)throw new Error("Cannot parse JSDoc tags.");return o[0]}O(PI,"parse");var V3={tags:["param","arg","argument","returns","ignore","deprecated"]},H3=O((e,t=V3)=>{if(!SI(e))return{includesJsDoc:!1,ignore:!1};const r=PI(e),n=AI(r,t.tags);return n.ignore?{includesJsDoc:!0,ignore:!0}:{includesJsDoc:!0,ignore:!1,description:r.description.trim(),extractedTags:n}},"parseJsDoc");function AI(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=OI(n);o!=null&&(r.params==null&&(r.params=[]),r.params.push(o));break}case"deprecated":{const o=CI(n);o!=null&&(r.deprecated=o);break}case"returns":{const o=xI(n);o!=null&&(r.returns=o);break}}return r}O(AI,"extractJsDocTags");function RI(e){return e.replace(/[\.-]$/,"")}O(RI,"normaliseParamName");function OI(e){if(!e.name||e.name==="-")return null;const t=By(e.type);return{name:e.name,type:t,description:$y(e.description),getPrettyName:O(()=>RI(e.name),"getPrettyName"),getTypeName:O(()=>t?Jy(t):null,"getTypeName")}}O(OI,"extractParam");function CI(e){return e.name?Fy(e.name,e.description):null}O(CI,"extractDeprecated");function Fy(e,t){const r=e===""?t:`${e} ${t}`;return $y(r)}O(Fy,"joinNameAndDescription");function $y(e){const t=e.replace(/^- /g,"").trim();return t===""?null:t}O($y,"normaliseDescription");function xI(e){const t=By(e.type);return t?{type:t,description:Fy(e.name,e.description),getTypeName:O(()=>Jy(t),"getTypeName")}:null}O(xI,"extractReturns");var en=(0,Ly.stringifyRules)(),z3=en.JsdocTypeObject;en.JsdocTypeAny=()=>"any";en.JsdocTypeObject=(e,t)=>`(${z3(e,t)})`;en.JsdocTypeOptional=(e,t)=>t(e.element);en.JsdocTypeNullable=(e,t)=>t(e.element);en.JsdocTypeNotNullable=(e,t)=>t(e.element);en.JsdocTypeUnion=(e,t)=>e.elements.map(t).join("|");function By(e){try{return(0,Ly.parse)(e,"typescript")}catch{return null}}O(By,"extractType");function Jy(e){return(0,Ly.transform)(en,e)}O(Jy,"extractTypeName");var G3=90,W3=50;function Uy(e){return e.length>G3}O(Uy,"isTooLongForTypeSummary");function NI(e){return e.length>W3}O(NI,"isTooLongForDefaultValueSummary");function ot(e,t){return e===t?{summary:e}:{summary:e,detail:t}}O(ot,"createSummaryValue");function K3(e,t){if(e!=null){const{value:r}=e;if(!Fc(r))return NI(r)?ot(t?.name,r):ot(r)}return null}O(K3,"createDefaultValue");function Vy({name:e,value:t,elements:r,raw:n}){return t??(r!=null?r.map(Vy).join(" | "):n??e)}O(Vy,"generateUnionElement");function II({name:e,raw:t,elements:r}){return r!=null?ot(r.map(Vy).join(" | ")):t!=null?ot(t.replace(/^\|\s*/,"")):ot(e)}O(II,"generateUnion");function MI({type:e,raw:t}){return t!=null?ot(t):ot(e)}O(MI,"generateFuncSignature");function qI({type:e,raw:t}){return t!=null?Uy(t)?ot(e,t):ot(t):ot(e)}O(qI,"generateObjectSignature");function jI(e){const{type:t}=e;return t==="object"?qI(e):MI(e)}O(jI,"generateSignature");function kI({name:e,raw:t}){return t!=null?Uy(t)?ot(e,t):ot(t):ot(e)}O(kI,"generateDefault");function Y3(e){if(e==null)return null;switch(e.name){case"union":return II(e);case"signature":return jI(e);default:return kI(e)}}O(Y3,"createType");function X3({defaultValue:e}){if(e!=null){const{value:t}=e;if(!Fc(t))return ot(t)}return null}O(X3,"createDefaultValue");function Q3({tsType:e,required:t}){if(e==null)return null;let r=e.name;return t||(r=r.replace(" | undefined","")),ot(["Array","Record","signature"].includes(e.name)?e.raw:r)}O(Q3,"createType");function DI(e){return e!=null?ot(e.name):null}O(DI,"createType");function LI(e){const{computed:t,func:r}=e;return typeof t>"u"&&typeof r>"u"}O(LI,"isReactDocgenTypescript");function FI(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(FI,"isStringValued");function $I(e,t){if(e!=null){const{value:r}=e;if(!Fc(r))return LI(e)&&FI(t)?ot(JSON.stringify(r)):ot(r)}return null}O($I,"createDefaultValue");function Z3(e,t,r){const{description:n,required:o,defaultValue:s}=r;return{name:e,type:DI(t),required:o,description:n,defaultValue:$I(s,t)}}O(Z3,"createBasicPropDef");function ez(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(ez,"applyJsDocResult");function tz(e,t,r,n){const o=H3(t.description);return o.includesJsDoc&&o.ignore?null:{propDef:n(e,t,o),jsDocTags:o.extractedTags,docgenInfo:t,typeSystem:r}}O(tz,"extractProp");function rz(e){return e!=null?oI(e):""}O(rz,"extractComponentDescription");var nz=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:la(c)&&la(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=>la(a))?n[o]=nz(...s):n[o]=s[s.length-1]}),n},"combineParameters"),oz="storybook/docs",XK=`${oz}/snippet-rendered`,sl=(e=>(e.AUTO="auto",e.CODE="code",e.DYNAMIC="dynamic",e))(sl||{});const iz={"./src/stories/Avatar.stories.ts":()=>Be(()=>import("./Avatar.stories-DrhezTR1.js"),__vite__mapDeps([0,1]),import.meta.url),"./src/stories/AvatarGroup.stories.ts":()=>Be(()=>import("./AvatarGroup.stories-DrlxT-mF.js"),__vite__mapDeps([2,1]),import.meta.url),"./src/stories/Badge.stories.ts":()=>Be(()=>import("./Badge.stories-DtJcBfOR.js"),__vite__mapDeps([3,1]),import.meta.url),"./src/stories/Button.stories.ts":()=>Be(()=>import("./Button.stories-BKUfLgSY.js"),__vite__mapDeps([4,1]),import.meta.url),"./src/stories/CircularProgress.stories.ts":()=>Be(()=>import("./CircularProgress.stories-dpmD-XJT.js"),__vite__mapDeps([5,1]),import.meta.url),"./src/stories/ClipboardMixin.stories.ts":()=>Be(()=>import("./ClipboardMixin.stories-C0pnQ7BY.js"),__vite__mapDeps([6,7,1]),import.meta.url),"./src/stories/Colors.stories.ts":()=>Be(()=>import("./Colors.stories-bKK25qgF.js"),__vite__mapDeps([8,1]),import.meta.url),"./src/stories/ComponentStatesMixin.stories.ts":()=>Be(()=>import("./ComponentStatesMixin.stories-9mRp2zuB.js"),__vite__mapDeps([9,7,1]),import.meta.url),"./src/stories/CopyToClipboard.stories.ts":()=>Be(()=>import("./CopyToClipboard.stories-BW3oaT1i.js"),__vite__mapDeps([10,1]),import.meta.url),"./src/stories/Debounce.stories.ts":()=>Be(()=>import("./Debounce.stories-BXx3CKvQ.js"),__vite__mapDeps([11,1]),import.meta.url),"./src/stories/Events.stories.ts":()=>Be(()=>import("./Events.stories-PBeiuWQn.js"),__vite__mapDeps([12,1]),import.meta.url),"./src/stories/Heading.stories.ts":()=>Be(()=>import("./Heading.stories-Djkl0MoC.js"),__vite__mapDeps([13,1]),import.meta.url),"./src/stories/Icon.stories.ts":()=>Be(()=>import("./Icon.stories-Cam1fyud.js"),__vite__mapDeps([14,1]),import.meta.url),"./src/stories/LinearProgress.stories.ts":()=>Be(()=>import("./LinearProgress.stories-BDNoYIJu.js"),__vite__mapDeps([15,1]),import.meta.url),"./src/stories/ReadyMixin.stories.ts":()=>Be(()=>import("./ReadyMixin.stories-DavcxbQ0.js"),[],import.meta.url),"./src/stories/Rtc.stories.ts":()=>Be(()=>import("./Rtc.stories-BrTAIAi1.js"),__vite__mapDeps([16,1]),import.meta.url),"./src/stories/ScrollShadow.stories.ts":()=>Be(()=>import("./ScrollShadow.stories-DHcKhkag.js"),__vite__mapDeps([17,1]),import.meta.url),"./src/stories/Throttle.stories.ts":()=>Be(()=>import("./Throttle.stories-cSYT_BXu.js"),__vite__mapDeps([18,1]),import.meta.url),"./src/stories/onFind.stories.ts":()=>Be(()=>import("./onFind.stories-DfW54CDE.js"),__vite__mapDeps([19,20,21,1]),import.meta.url),"./src/stories/onRemove.stories.ts":()=>Be(()=>import("./onRemove.stories-C7W9KyRr.js"),__vite__mapDeps([22,1]),import.meta.url),"./src/stories/onVisible.stories.ts":()=>Be(()=>import("./onVisible.stories-CIl6R0q4.js"),__vite__mapDeps([23,20,21,1]),import.meta.url)};async function sz(e){return await iz[e]()}var BI=Object.defineProperty,Yt=(e,t)=>BI(e,"name",{value:t,configurable:!0}),az=(e,t)=>{for(var r in t)BI(e,r,{get:t[r],enumerable:!0})};const ua=globalThis,Hy=ua.ShadowRoot&&(ua.ShadyCSS===void 0||ua.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,JI=Symbol(),Gb=new WeakMap;let lz=class{constructor(t,r,n){if(this._$cssResult$=!0,n!==JI)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(Hy&&t===void 0){const n=r!==void 0&&r.length===1;n&&(t=Gb.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&Gb.set(r,t))}return t}toString(){return this.cssText}};const cz=e=>new lz(typeof e=="string"?e:e+"",void 0,JI),uz=(e,t)=>{if(Hy)e.adoptedStyleSheets=t.map((r=>r instanceof CSSStyleSheet?r:r.styleSheet));else for(const r of t){const n=document.createElement("style"),o=ua.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=r.cssText,e.appendChild(n)}},Wb=Hy?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(const n of t.cssRules)r+=n.cssText;return cz(r)})(e):e;const{is:dz,defineProperty:pz,getOwnPropertyDescriptor:fz,getOwnPropertyNames:mz,getOwnPropertySymbols:hz,getPrototypeOf:yz}=Object,$c=globalThis,Kb=$c.trustedTypes,gz=Kb?Kb.emptyScript:"",bz=$c.reactiveElementPolyfillSupport,Bi=(e,t)=>e,vp={toAttribute(e,t){switch(t){case Boolean:e=e?gz: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}},UI=(e,t)=>!dz(e,t),Yb={attribute:!0,type:String,converter:vp,reflect:!1,useDefault:!1,hasChanged:UI};Symbol.metadata??=Symbol("metadata"),$c.litPropertyMetadata??=new WeakMap;let Kn=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=Yb){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&&pz(this.prototype,t,o)}}static getPropertyDescriptor(t,r,n){const{get:o,set:s}=fz(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)??Yb}static _$Ei(){if(this.hasOwnProperty(Bi("elementProperties")))return;const t=yz(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Bi("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Bi("properties"))){const r=this.properties,n=[...mz(r),...hz(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(Wb(o))}else t!==void 0&&r.push(Wb(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 uz(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:vp).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:vp;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??UI)(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){}};Kn.elementStyles=[],Kn.shadowRootOptions={mode:"open"},Kn[Bi("elementProperties")]=new Map,Kn[Bi("finalized")]=new Map,bz?.({ReactiveElement:Kn}),($c.reactiveElementVersions??=[]).push("2.1.1");const zy=globalThis,al=zy.trustedTypes,Xb=al?al.createPolicy("lit-html",{createHTML:e=>e}):void 0,VI="$lit$",Dr=`lit$${Math.random().toFixed(9).slice(2)}$`,HI="?"+Dr,vz=`<${HI}>`,Mn=document,ds=()=>Mn.createComment(""),ps=e=>e===null||typeof e!="object"&&typeof e!="function",Gy=Array.isArray,Ez=e=>Gy(e)||typeof e?.[Symbol.iterator]=="function",Eu=`[
|
|
1020
|
-
\f\r]`,bi=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Qb=/-->/g,Zb=/>/g,ln=RegExp(`>|${Eu}(?:([^\\s"'>=/]+)(${Eu}*=${Eu}*(?:[^
|
|
1021
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),ev=/'/g,tv=/"/g,zI=/^(?:script|style|textarea|title)$/i,Tz=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),GI=Tz(1),qn=Symbol.for("lit-noChange"),He=Symbol.for("lit-nothing"),rv=new WeakMap,hn=Mn.createTreeWalker(Mn,129);function WI(e,t){if(!Gy(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Xb!==void 0?Xb.createHTML(t):t}const wz=(e,t)=>{const r=e.length-1,n=[];let o,s=t===2?"<svg>":t===3?"<math>":"",a=bi;for(let c=0;c<r;c++){const u=e[c];let d,p,f=-1,h=0;for(;h<u.length&&(a.lastIndex=h,p=a.exec(u),p!==null);)h=a.lastIndex,a===bi?p[1]==="!--"?a=Qb:p[1]!==void 0?a=Zb:p[2]!==void 0?(zI.test(p[2])&&(o=RegExp("</"+p[2],"g")),a=ln):p[3]!==void 0&&(a=ln):a===ln?p[0]===">"?(a=o??bi,f=-1):p[1]===void 0?f=-2:(f=a.lastIndex-p[2].length,d=p[1],a=p[3]===void 0?ln:p[3]==='"'?tv:ev):a===tv||a===ev?a=ln:a===Qb||a===Zb?a=bi:(a=ln,o=void 0);const y=a===ln&&e[c+1].startsWith("/>")?" ":"";s+=a===bi?u+vz:f>=0?(n.push(d),u.slice(0,f)+VI+u.slice(f)+Dr+y):u+Dr+(f===-2?c:y)}return[WI(e,s+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]};class fs{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]=wz(t,r);if(this.el=fs.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(VI)){const h=p[a++],y=o.getAttribute(f).split(Dr),g=/([.?@])?(.*)/.exec(h);u.push({type:1,index:s,name:g[2],strings:y,ctor:g[1]==="."?Sz:g[1]==="?"?Pz:g[1]==="@"?Az:Bc}),o.removeAttribute(f)}else f.startsWith(Dr)&&(u.push({type:6,index:s}),o.removeAttribute(f));if(zI.test(o.tagName)){const f=o.textContent.split(Dr),h=f.length-1;if(h>0){o.textContent=al?al.emptyScript:"";for(let y=0;y<h;y++)o.append(f[y],ds()),hn.nextNode(),u.push({type:2,index:++s});o.append(f[h],ds())}}}else if(o.nodeType===8)if(o.data===HI)u.push({type:2,index:s});else{let f=-1;for(;(f=o.data.indexOf(Dr,f+1))!==-1;)u.push({type:7,index:s}),f+=Dr.length-1}s++}}static createElement(t,r){const n=Mn.createElement("template");return n.innerHTML=t,n}}function Oo(e,t,r=e,n){if(t===qn)return t;let o=n!==void 0?r._$Co?.[n]:r._$Cl;const s=ps(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=Oo(e,o._$AS(e,t.values),o,n)),t}class _z{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??Mn).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 Ds(s,s.nextSibling,this,t):u.type===1?d=new u.ctor(s,u.name,u.strings,this,t):u.type===6&&(d=new Rz(s,this,t)),this._$AV.push(d),u=n[++c]}a!==u?.index&&(s=hn.nextNode(),a++)}return hn.currentNode=Mn,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 Ds{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,o){this.type=2,this._$AH=He,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=Oo(this,t,r),ps(t)?t===He||t==null||t===""?(this._$AH!==He&&this._$AR(),this._$AH=He):t!==this._$AH&&t!==qn&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Ez(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!==He&&ps(this._$AH)?this._$AA.nextSibling.data=t:this.T(Mn.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=fs.createElement(WI(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===o)this._$AH.p(r);else{const s=new _z(o,this),a=s.u(this.options);s.p(r),this.T(a),this._$AH=s}}_$AC(t){let r=rv.get(t.strings);return r===void 0&&rv.set(t.strings,r=new fs(t)),r}k(t){Gy(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 Ds(this.O(ds()),this.O(ds()),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 Bc{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,o,s){this.type=1,this._$AH=He,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=He}_$AI(t,r=this,n,o){const s=this.strings;let a=!1;if(s===void 0)t=Oo(this,t,r,0),a=!ps(t)||t!==this._$AH&&t!==qn,a&&(this._$AH=t);else{const c=t;let u,d;for(t=s[0],u=0;u<s.length-1;u++)d=Oo(this,c[n+u],r,u),d===qn&&(d=this._$AH[u]),a||=!ps(d)||d!==this._$AH[u],d===He?t=He:t!==He&&(t+=(d??"")+s[u+1]),this._$AH[u]=d}a&&!o&&this.j(t)}j(t){t===He?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Sz extends Bc{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===He?void 0:t}}class Pz extends Bc{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==He)}}class Az extends Bc{constructor(t,r,n,o,s){super(t,r,n,o,s),this.type=5}_$AI(t,r=this){if((t=Oo(this,t,r,0)??He)===qn)return;const n=this._$AH,o=t===He&&n!==He||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,s=t!==He&&(n===He||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 Rz{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){Oo(this,t)}}const Oz=zy.litHtmlPolyfillSupport;Oz?.(fs,Ds),(zy.litHtmlVersions??=[]).push("3.3.1");const ll=(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 Ds(t.insertBefore(ds(),s),s,void 0,r??{})}return o._$AI(e),o};const Wy=globalThis;let da=class extends Kn{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=ll(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return qn}};da._$litElement$=!0,da.finalized=!0,Wy.litElementHydrateSupport?.({LitElement:da});const Cz=Wy.litElementPolyfillSupport;Cz?.({LitElement:da});(Wy.litElementVersions??=[]).push("4.2.1");const xz=(e,t)=>e?._$litType$!==void 0,Nz=e=>e.strings===void 0;function Iz(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,h;return(h=(f=p.match(/[\t ]/g))===null||f===void 0?void 0:f.length)!==null&&h!==void 0?h: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(h,y){return y===0?h:""+p+h}).join(`
|
|
1026
|
-
`)),a+=f+n[u+1]}),a}var KI={};az(KI,{parameters:()=>XI,render:()=>YI,renderToCanvas:()=>Ky});const{global:Mz}=__STORYBOOK_MODULE_GLOBAL__,{simulateDOMContentLoaded:qz,simulatePageLoad:nv}=__STORYBOOK_MODULE_PREVIEW_API__;var{Node:jz}=Mz,YI=Yt((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(),xz(c)){(s||!a.querySelector('[id="root-inner"]'))&&(a.innerHTML='<div id="root-inner"></div>');const u=a.querySelector('[id="root-inner"]');ll(c,u),nv(a)}else if(typeof c=="string")a.innerHTML=c,nv(a);else if(c instanceof jz){if(a.firstChild===c&&!s)return;a.innerHTML="",a.appendChild(c),qz()}else o({title:`Expecting an HTML snippet or DOM node from the story: "${r}" of "${t}".`,description:Iz`
|
|
1027
|
-
Did you forget to return the HTML snippet from the story?
|
|
1028
|
-
Use "() => <your snippet or node>" or when defining the story.
|
|
1029
|
-
`})}Yt(Ky,"renderToCanvas");var XI={renderer:"web-components"};const kz=Object.freeze(Object.defineProperty({__proto__:null,parameters:XI,render:YI,renderToCanvas:Ky},Symbol.toStringTag,{value:"Module"})),{emitTransformCode:Dz,useEffect:Lz}=__STORYBOOK_MODULE_PREVIEW_API__;var Fz=/<!--\?lit\$[0-9]+\$-->|<!--\??-->/g;function QI(e){const t=e?.parameters.docs?.source,r=e?.parameters.__isArgsStory;return t?.type===sl.DYNAMIC?!1:!r||t?.code||t?.type===sl.CODE}Yt(QI,"skipSourceRender");function ZI(e,t){const r=e(),n=t?.parameters.docs?.source?.excludeDecorators?t.originalStoryFn(t.args,t):r;let o;if(Lz(()=>{o&&Dz(o,t)}),!QI(t)){const s=window.document.createElement("div");n instanceof DocumentFragment?ll(n.cloneNode(!0),s):ll(n,s),o=s.innerHTML.replace(Fz,"")}return r}Yt(ZI,"sourceDecorator");var $z=[ZI],Bz={docs:{source:{type:sl.DYNAMIC,language:"html"},story:{inline:!0}}};const Jz=Object.freeze(Object.defineProperty({__proto__:null,decorators:$z,parameters:Bz},Symbol.toStringTag,{value:"Module"}));var Uz=Object.create,Jc=Object.defineProperty,Vz=Object.getOwnPropertyDescriptor,eM=Object.getOwnPropertyNames,Hz=Object.getPrototypeOf,zz=Object.prototype.hasOwnProperty,ov=(e,t)=>Jc(e,"name",{value:t,configurable:!0}),t5=(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')}),r5=(e,t)=>function(){return t||(0,e[eM(e)[0]])((t={exports:{}}).exports,t),t.exports},Gz=(e,t)=>{for(var r in t)Jc(e,r,{get:t[r],enumerable:!0})},Wz=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of eM(t))!zz.call(e,o)&&o!==r&&Jc(e,o,{get:()=>t[o],enumerable:!(n=Vz(t,o))||n.enumerable});return e},n5=(e,t,r)=>(r=e!=null?Uz(Hz(e)):{},Wz(Jc(r,"default",{value:e,enumerable:!0}),e)),Kz={};Gz(Kz,{parameters:()=>tM});var Yz=Object.entries(globalThis.TAGS_OPTIONS??{}).reduce((e,t)=>{const[r,n]=t;return n.excludeFromDocsStories&&(e[r]=!0),e},{}),tM={docs:{renderer:ov(async()=>{const{DocsRenderer:e}=await Be(async()=>{const{DocsRenderer:t}=await import("./WithTooltip-SK46ZJ2J-Df0E-KJO.js").then(r=>r.D);return{DocsRenderer:t}},__vite__mapDeps([24,1,21]),import.meta.url);return new e},"renderer"),stories:{filter:ov(e=>(e.tags||[]).filter(r=>Yz[r]).length===0&&!e.parameters.docs?.disable,"filter")}}};const Xz=Object.freeze(Object.defineProperty({__proto__:null,parameters:tM},Symbol.toStringTag,{value:"Module"})),{global:Qz}=__STORYBOOK_MODULE_GLOBAL__,{global:Zz}=__STORYBOOK_MODULE_GLOBAL__;var{window:eG}=Zz;eG.STORYBOOK_ENV="web-components";const{global:cl}=__STORYBOOK_MODULE_GLOBAL__;function tG(e){if(!e)return!1;if(typeof e=="string")return!0;throw new Error('Provided component needs to be a string. e.g. component: "my-element"')}Yt(tG,"isValidComponent");function rG(e){if(!e)return!1;if(e.tags&&Array.isArray(e.tags)||e.modules&&Array.isArray(e.modules))return!0;throw new Error(`You need to setup valid meta data in your config.js via setCustomElements().
|
|
1030
|
-
See the readme of addon-docs for web components for more details.`)}Yt(rG,"isValidMetaData");function nG(e){cl.__STORYBOOK_CUSTOM_ELEMENTS__=e}Yt(nG,"setCustomElements");function rM(e){cl.__STORYBOOK_CUSTOM_ELEMENTS_MANIFEST__=e}Yt(rM,"setCustomElementsManifest");function oG(){return cl.__STORYBOOK_CUSTOM_ELEMENTS__||cl.__STORYBOOK_CUSTOM_ELEMENTS_MANIFEST__}Yt(oG,"getCustomElements");const{setProjectAnnotations:iG,setDefaultProjectAnnotations:sG}=__STORYBOOK_MODULE_PREVIEW_API__;function aG(e){return sG(KI),iG(e)}Yt(aG,"setProjectAnnotations");var{window:lG,EventSource:cG}=Qz;typeof module<"u"&&module?.hot?.decline&&(module.hot.decline(),new cG("__webpack_hmr").addEventListener("message",Yt(function(r){try{const{action:n}=JSON.parse(r.data);n==="built"&&lG.location.reload()}catch{}},"fullPageReload")));const nM={CHILD:2},oM=e=>(...t)=>({_$litDirective$:e,values:t});class iM{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,r,n){this._$Ct=t,this._$AM=r,this._$Ci=n}_$AS(t,r){return this.update(t,r)}update(t,r){return this.render(...r)}}const Ji=(e,t)=>{const r=e._$AN;if(r===void 0)return!1;for(const n of r)n._$AO?.(t,!1),Ji(n,t);return!0},ul=e=>{let t,r;do{if((t=e._$AM)===void 0)break;r=t._$AN,r.delete(e),e=t}while(r?.size===0)},sM=e=>{for(let t;t=e._$AM;e=t){let r=t._$AN;if(r===void 0)t._$AN=r=new Set;else if(r.has(e))break;r.add(e),pG(t)}};function uG(e){this._$AN!==void 0?(ul(this),this._$AM=e,sM(this)):this._$AM=e}function dG(e,t=!1,r=0){const n=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(t)if(Array.isArray(n))for(let s=r;s<n.length;s++)Ji(n[s],!1),ul(n[s]);else n!=null&&(Ji(n,!1),ul(n));else Ji(this,e)}const pG=e=>{e.type==nM.CHILD&&(e._$AP??=dG,e._$AQ??=uG)};class fG extends iM{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,r,n){super._$AT(t,r,n),sM(this),this.isConnected=t._$AU}_$AO(t,r=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),r&&(Ji(this,t),ul(this))}setValue(t){if(Nz(this._$Ct))this._$Ct._$AI(t,this);else{const r=[...this._$Ct._$AH];r[this._$Ci]=t,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}}const aM=Symbol.for(""),mG=e=>{if(e?.r===aM)return e?._$litStatic$},Oi=e=>({_$litStatic$:e,r:aM}),iv=new Map,hG=e=>(t,...r)=>{const n=r.length;let o,s;const a=[],c=[];let u,d=0,p=!1;for(;d<n;){for(u=t[d];d<n&&(s=r[d],(o=mG(s))!==void 0);)u+=o+t[++d],p=!0;d!==n&&c.push(s),a.push(u),d++}if(d===n&&a.push(t[n]),p){const f=a.join("$$lit$$");(t=iv.get(f))===void 0&&(a.raw=a,iv.set(f,t=a)),r=c}return e(t,...r)},sv=hG(GI);class Ep extends iM{constructor(t){if(super(t),this.it=He,t.type!==nM.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===He||t==null)return this._t=void 0,this.it=t;if(t===qn)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const r=[t];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}}Ep.directiveName="unsafeHTML",Ep.resultType=1;const lM=oM(Ep);var yG=class extends fG{constructor(){super(...arguments),this.prevData={}}render(e){return He}update(e,[t]){this.element!==e.element&&(this.element=e.element),this.host=e.options?.host||this.element,this.apply(t),this.groom(t),this.prevData={...t}}apply(e){if(!e)return;const{prevData:t,element:r}=this;for(const n in e){const o=e[n];o!==t[n]&&dl(r,n,o)}}groom(e){const{prevData:t,element:r}=this;if(t)for(const n in t)(!e||!(n in e)&&r[n]===t[n])&&dl(r,n,void 0)}},gG=class extends yG{constructor(){super(...arguments),this.eventData={}}apply(e){if(e)for(const t in e){const r=e[t];r!==this.eventData[t]&&this.applyEvent(t,r)}}applyEvent(e,t){const{prevData:r,element:n}=this;this.eventData[e]=t,r[e]&&n.removeEventListener(e,this,t),n.addEventListener(e,this,t)}groom(e){const{prevData:t,element:r}=this;if(t)for(const n in t)(!e||!(n in e)&&r[n]===t[n])&&this.groomEvent(n,t[n])}groomEvent(e,t){const{element:r}=this;delete this.eventData[e],r.removeEventListener(e,this,t)}handleEvent(e){const t=this.eventData[e.type];typeof t=="function"?t.call(this.host,e):t.handleEvent(e)}disconnected(){const{eventData:e,element:t}=this;for(const r in e){const n=r.slice(1),o=e[r];t.removeEventListener(n,this,o)}}reconnected(){const{eventData:e,element:t}=this;for(const r in e){const n=r.slice(1),o=e[r];t.addEventListener(n,this,o)}}},bG=class extends gG{apply(e){if(!e)return;const{prevData:t,element:r}=this;for(const n in e){const o=e[n];if(o===t[n])continue;const s=n.slice(1);switch(n[0]){case"@":this.eventData[s]=o,this.applyEvent(s,o);break;case".":dl(r,s,o);break;case"?":o?r.setAttribute(s,""):r.removeAttribute(s);break;default:o?r.setAttribute(n,String(o)):r.removeAttribute(n);break}}}groom(e){const{prevData:t,element:r}=this;if(t)for(const n in t){const o=n.slice(1);if(!e||!(n in e)&&r[o]===t[n])switch(n[0]){case"@":this.groomEvent(o,t[n]);break;case".":dl(r,o,void 0);break;case"?":r.removeAttribute(o);break;default:r.removeAttribute(n);break}}}};function dl(e,t,r){try{e[t]=r}catch(n){console.warn(`Could not set property "${t}" on ${e.tagName} because it has no "setter".`,n)}}var vG=oM(bG);const{useArgs:EG}=__STORYBOOK_MODULE_PREVIEW_API__;var TG=new Set(["AnimationEvent","BeforeUnloadEvent","ClipboardEvent","DragEvent","Event","FocusEvent","HashChangeEvent","InputEvent","KeyboardEvent","MessageEvent","MouseEvent","MutationObserver","PageTransitionEvent","PointerEvent","PopStateEvent","ProgressEvent","StorageEvent","TouchEvent","TransitionEvent","UIEvent","WebGLContextEvent","WheelEvent"]);function wG(e,t=[]){return(e.modules?.map(r=>r.declarations?.filter(n=>n.customElement)?.flat())?.flat()||[]).filter(r=>r&&!t?.includes(r.name))}function _G(e,t){return wG(e).find(r=>r?.tagName===t)}function SG(e){const t=o=>o.name+r(o)+n(o),r=o=>o.type?.text?`${o.optional?"?":""}: ${o.type?.text}`:"",n=o=>o.default?` = ${o.default}`:"";return e?.members?.filter(o=>o.kind==="method"&&o.privacy!=="private"&&o.privacy!=="protected"&&!o.name.startsWith("#"))?.map(o=>(o.type={text:`${o.name}(${o.parameters?.map(s=>t(s)).join(", ")||""}) => ${o.return?.type?.text||"void"}`},o))}function PG(e,t={}){return e?.events?.map(n=>{const o=n[`${t.customEventDetailTypePropName}`]?.text||n.type?.text,s=t.overrideCustomEventType?o||"CustomEvent":TG.has(o)?o:o&&o!=="CustomEvent"?`CustomEvent<${o}>`:"CustomEvent";return{...n,type:{text:s}}})||[]}function AG(e,t){if(!t)return e||"";const r=e?`- ${e}`:"";return typeof t=="string"?`@deprecated ${t} ${r}`:`@deprecated ${r}`}function ms(e){return e.trim().replace(/^["'](.+(?=["']$))["']$/,"$1")}var Co={};setTimeout(()=>{Co=globalThis?.__WC_STORYBOOK_HELPERS_CONFIG__||{}});function Yy(e,t=!0){const r={},n={},o={};return e?.members?.forEach(s=>{if(s.kind!=="field")return;const a=e.attributes?.find(E=>s.name===E.fieldName),c=s.name,u=a?n:o;if(r[c]={name:c,table:{disable:!0}},s.privacy==="private"||s.privacy==="protected"||s.static)return;const d=a?.name||s.name,p=Co.typeRef&&s[`${Co.typeRef}`]?.text||s?.type?.text,f=pM(p),h=s.readonly?void 0:ms(s.default||""),y=dM(f,a!==void 0);u[d]={name:d,description:Uc(s.description,c,s.deprecated),defaultValue:h?h==="''"?"":y==="object"?JSON.parse(NG(h)):h:void 0,control:t&&!s.readonly&&y?{type:y}:!1,table:{category:a?"attributes":"properties",defaultValue:{summary:h},type:{summary:p}}};const g=f?.split("|");g&&g?.length>1&&(u[d].options=g.map(E=>ms(E)))}),{resets:r,propArgs:o,attrArgs:n}}function RG(e,t=!0){const r={},n={};return e?.members?.forEach(o=>{if(o.kind!=="field"||(r[o.name]={name:o.name,table:{disable:!0}},o.privacy==="private"||o.privacy==="protected"||o.static))return;const s=Co.typeRef&&o[`${Co.typeRef}`]?.text||o?.type?.text,a=pM(s),c=`${o.name}`,u=dM(a);n[c]={name:o.name,description:o.description,defaultValue:CG(u,o.default),control:t&&!o.readonly&&u?{type:u}:!1,table:{category:"properties",defaultValue:{summary:ms(o.default||"")},type:{summary:s}}};const d=a?.split("|");d&&d?.length>1&&(n[c].options=d.map(p=>ms(p)))}),delete n.ref,{resets:r,args:n}}function cM(e){const t={};return e?.events?.forEach(r=>{const n=`on${r.name}`;t[n]={name:n,description:r.description,control:!1,table:{category:"events"}}}),{args:t}}function Xy(e,t=!0){const r={},n={};return e?.cssProperties?.forEach(o=>{r[o.name]={name:o.name,table:{disable:!0}}}),e?.cssProperties?.forEach(o=>{n[o.name]={name:o.name,description:o.description,defaultValue:o.default,control:t?{type:o.name?.toLowerCase()?.includes("color")?"color":"text"}:!1,table:{category:"css properties"}}}),{resets:r,args:n}}function Qy(e,t=!0){const r={},n={};return e?.cssParts?.forEach(o=>{r[o.name]={name:o.name,table:{disable:!0}},n[`${o.name}-part`]={name:o.name,description:Uc(o.description,t?`${o.name}-part`:""),control:t?"text":!1,table:{category:"css shadow parts"}}}),{resets:r,args:n}}function Zy(e,t=!0){const r={},n={};return e?.cssStates?.forEach(o=>{r[o.name]={name:o.name,table:{disable:!0}},n[`${o.name}-state`]={name:o.name,description:Uc(o.description,t?`${o.name}-state`:""),control:t?"text":!1,table:{category:"css states"}}}),{resets:r,args:n}}function eg(e,t=!0){const r={},n={};return e?.slots?.forEach(o=>{r[o.name]={name:o.name,table:{disable:!0}};const s=o.name||"default";n[`${s}-slot`]={name:s,description:Uc(o.description,t?`${s}-slot`:""),control:t?"text":!1,table:{category:"slots"}}}),{resets:r,args:n}}function OG(e){const t={},r={};return e?.events?.forEach(o=>{r[o.name]={name:o.name,table:{disable:!0}}}),PG(e)?.forEach(o=>{t[`${o.name}-event`]={name:o.name,description:o.description,control:!1,table:{category:"events",type:{summary:o.type.text}}}}),{resets:r,args:t}}function uM(e){const t={};return SG(e)?.forEach(n=>{t[`${n.name}-method`]={name:n.name,description:n.description,control:!1,table:{category:"methods",type:{summary:n.type.text}}}}),{args:t}}function CG(e,t){const r=ms(t||"");return e==="boolean"?r==="true":r==="''"?"":r}function dM(e,t=!1){if(!e)return"text";const r=e.toLowerCase(),n=r.split("|").map(o=>o.trim()).filter(o=>o!==""&&o!=="null"&&o!=="undefined");return xG(r)&&!t?"object":zs(n,"boolean")?"boolean":zs(n,"number")&&!zs(n,"string")?"number":zs(n,"date")?"date":n.length>1?"select":"text"}function xG(e){return e.includes("array")||e.includes("object")||e.includes("{")||e.includes("[")||e.includes("<")}function zs(e=[],t){return e?.find(r=>r===t)!==void 0}function pM(e){return e?e.replace(" | undefined","").replace(" | null","").replace(" | void","").replace(" | any","").replace(" | unknown","").replace(" | string & {}","|").replace(" | (string & {})","|").replace(" | string","|").replace(" | number","|").replace(" | boolean","|").replace(" | object","|").replace(" | Function","|").replace(" | {}","|").replace(" | []","|"):""}function Uc(e,t,r){let n=AG(e,r);return Co.hideArgRef||!t?n:n+=`
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
arg ref - \`${t}\``}function NG(e){return e.replace(/'([^']+)'/g,'"$1"').replace(/([{,]\s*)(\w+)\s*:/g,'$1"$2":').replace(/,\s*(}|])/g,"$1")}var pl,av,Ls={};setTimeout(()=>{Ls=globalThis?.__WC_STORYBOOK_HELPERS_CONFIG__||{}});function IG(e,t,r,n,o,s){if(!t)return sv`<${Oi(e.tagName)}></${Oi(e.tagName)}>`;e?.tagName!==av&&(pl=void 0,av=e?.tagName);const{attrOperators:a,propOperators:c,additionalAttrs:u}=MG(e,t,n),d={...a,...c,...u},p=DG(e,t,o);return LG(e),sv`${fM(e,t,o)}
|
|
1034
|
-
<${Oi(e.tagName)} ${vG(d)}>${p}${r||""}</${Oi(e.tagName)}>
|
|
1035
|
-
${Ls.setComponentVariable||s?lM(`<script>
|
|
1036
|
-
window.component = document.querySelector('`+e.tagName+`');
|
|
1037
|
-
<\/script>`):""}
|
|
1038
|
-
`}function fM(e,t,r){const n=pa("cssProps",r)?"":qG(e,t)||"",o=pa("cssParts",r)?"":jG(e,t)||"",s=pa("cssStates",r)?"":kG(e,t)||"",a=[n,o,s].filter(c=>c.length).join(`
|
|
1039
|
-
|
|
1040
|
-
`);return`${n}${o}${s}`.replace(/\s+/g,"")!==""?lM(`<style>
|
|
1041
|
-
${a}
|
|
1042
|
-
</style>`):""}function pa(e,t){return!Ls.categoryOrder?.includes(e)||t?.includes(e)||!1}function MG(e,t,r){const{propArgs:n,attrArgs:o}=Yy(e),s={},a={},c={};return Object.keys(o).forEach(u=>{const d=o[u],p=d.name,f=t[u],h=d.control.type==="boolean"?`?${p}`:p;f!==o[u].defaultValue||Ls.renderDefaultValues?s[h]=f==="false"?!1:f:s[h]=void 0}),Object.keys(t).filter(u=>n[u]).forEach(u=>{if(u.startsWith("on"))return;const d=t[u];a[`.${u}`]=d}),Object.keys(t).filter(u=>!Object.keys(r||{}).includes(u)).forEach(u=>{!u.startsWith("on")&&typeof t[u]!="function"&&(c[u]=t[u])}),{attrOperators:s,propOperators:a,additionalAttrs:c}}function qG(e,t){if(!e?.cssProperties?.length)return;const{args:r}=Xy(e),n=Object.keys(r).map(o=>{const s=t[o]===r[o].defaultValue,a=r[o].name,c=t[o];return c&&(!s||s&&Ls.renderDefaultValues)?` ${a}: ${c}`:null}).filter(o=>o!==null).join(`;
|
|
1043
|
-
`);return n?` ${e.tagName} {
|
|
1044
|
-
${n};
|
|
1045
|
-
}`:""}function jG(e,t){if(!e?.cssParts?.length)return;const{args:r}=Qy(e);return`${Object.keys(r).filter(n=>n.endsWith("-part")).map(n=>{const o=r[n].name,s=t[n];return s.replace(/\s+/g,"")!==""?` ${e?.tagName}::part(${o}) {
|
|
1046
|
-
${s.split(`
|
|
1047
|
-
`).map(a=>` ${a}`).join(`
|
|
1048
|
-
`)}
|
|
1049
|
-
}`:null}).filter(n=>n!==null).join(`
|
|
1050
|
-
|
|
1051
|
-
`)}`}function kG(e,t){if(!e?.cssStates?.length)return;const{args:r}=Zy(e);return`${Object.keys(r).filter(n=>n.endsWith("-state")).map(n=>{const o=r[n].name,s=t[n];return s.replace(/\s+/g,"")!==""?` ${e?.tagName}:state(${o}) {
|
|
1052
|
-
${s.split(`
|
|
1053
|
-
`).map(a=>` ${a}`).join(`
|
|
1054
|
-
`)}
|
|
1055
|
-
}`:null}).filter(n=>n!==null).join(`
|
|
1056
|
-
|
|
1057
|
-
`)}`}function DG(e,t,r){if(!e?.slots?.length||pa("slots",r))return;const{args:n}=eg(e),o=`${Object.keys(n).filter(s=>s.endsWith("-slot")).map(s=>{const a=s==="default-slot"?null:s.slice(0,-5),c=t[s];if(!a&&c)return` ${c}`;let u="";const d=document.createElement("div");d.innerHTML=c;for(const p of d.childNodes)p instanceof Text?u+=` <span slot=${a}>${p.textContent}</span>`:p instanceof Element?(p.setAttribute("slot",a),u+=` ${p.outerHTML}`):(p.textContent?.trim()===""||p.textContent===`
|
|
1058
|
-
`)&&(u+=p.textContent);return u}).filter(s=>s!==null&&s!=="").join(`
|
|
1059
|
-
`)}`;return o.trim()?Oi(`
|
|
1060
|
-
${o}
|
|
1061
|
-
`):""}function LG(e){FG(e),setTimeout(()=>{const t=document.querySelector(e.tagName);pl?.observe(t,{attributes:!0})})}function FG(e){let t=!1;const r=EG()[1],{attrArgs:n}=Yy(e);pl||(pl=new MutationObserver(o=>{o.forEach(s=>{if(s.attributeName==="class"&&t)return;t=!0;const a=n[`${s.attributeName}`];a?.control==="boolean"||a?.control?.type==="boolean"?r({[`${s.attributeName}`]:s.target?.hasAttribute(s.attributeName||"")}):r({[`${s.attributeName}`]:s.target.getAttribute(s.attributeName||"")}),t=!1})}))}var tg=globalThis?.__WC_STORYBOOK_HELPERS_CONFIG__||{},$G={typeRef:"parsedType",categoryOrder:["attributes","properties","slots","cssProps","cssParts","cssStates","methods","events"]};function BG(e){e={...$G,...e},globalThis.__WC_STORYBOOK_HELPERS_CONFIG__=e,tg=e}function o5(e,t){tg=globalThis?.__WC_STORYBOOK_HELPERS_CONFIG__||{};const r=JG(),n=UG(r,e),o=n?.events?.map(c=>c.name)||[],s=VG(n,[]);return{args:mM(s),argTypes:s,reactArgs:zG(n),reactArgTypes:hM(n),events:o,styleTemplate:c=>fM(n,c,[]),template:(c,u)=>IG(n,c,u,s,[],t?.setComponentVariable)}}function JG(){const e=window.__STORYBOOK_CUSTOM_ELEMENTS_MANIFEST__;if(!e)throw new Error(`Custom Elements Manifest not found. Be sure to follow the pre-install steps in this guide:
|
|
1062
|
-
https://www.npmjs.com/package/wc-storybook-helpers#before-you-install`);return e}function UG(e,t){const r=_G(e,t);if(!r)throw new Error(`A component with the tag name "${t}" was not found in the Custom Elements Manifest. If it's missing in the CEM, it's often the result of a missing "@tag" or "@tagName" tag in the component's JSDoc.
|
|
1063
|
-
Additional information can be found here:
|
|
1064
|
-
https://custom-elements-manifest.open-wc.org/analyzer/getting-started/#supported-jsdoc`);return r}function VG(e,t){const r=Xy(e),n=Qy(e),o=eg(e),s=Yy(e),a=OG(e),c=Zy(e),u=uM(e),d={attributes:s.attrArgs,cssParts:n.args,cssProps:r.args,cssStates:c.args,events:a.args,methods:u.args,properties:s.propArgs,slots:o.args},p={};return Object.assign(p,r.resets,n.resets,o.resets,s.resets,a.resets,c.resets,u.resets),tg.categoryOrder?.forEach(f=>{t?.includes(f)||Object.assign(p,d[f])}),p}function mM(e){const t={};for(const[r,n]of Object.entries(e))n?.control&&(t[r]=HG(n.defaultValue)||"");return t}function HG(e){if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e}function hM(e,t){const r=Xy(e),n=Qy(e),o=eg(e),s=RG(e),a=cM(e),c=Zy(e),u=uM(e),d=globalThis?.__WC_STORYBOOK_HELPERS_CONFIG__||{},p={cssParts:n.args,cssProps:r.args,cssStates:c.args,events:a.args,methods:u.args,properties:s.args,slots:o.args};let f={...r.resets,...n.resets,...o.resets,...s.resets,...a.resets,...c.resets,...u.resets};return d.categoryOrder?.forEach(h=>{f={...f,...p[h]||{}}}),f}function zG(e){const t=mM(hM(e)),r=Object.entries(cM(e)).map(([n])=>({[n]:()=>{}})).reduce((n,o)=>({...n,...o}),{});return{...t,...r}}const GG="1.0.0",WG="",KG=JSON.parse(`[{"kind":"javascript-module","path":"src/components/avatar/Avatar.ts","declarations":[{"kind":"class","description":"An avatar component for displaying user profile images with fallback support.\\n\\nAvatars display user profile images with automatic fallback to initials when\\nthe image fails to load or is not provided.","name":"Avatar","cssProperties":[{"description":"Custom size (overrides size prop)","name":"--avatar-size"},{"description":"Fallback background color (default: purple-600)","name":"--avatar-bg-color"},{"description":"How rounded is the avatar (default: circle)","name":"--avatar-corner-rounding"},{"description":"Optional ring border color","name":"--avatar-ring-color"},{"description":"Ring border width (default: 2px)","name":"--avatar-ring-width"}],"members":[{"kind":"field","name":"src","type":{"text":"string"},"default":"''","description":"Image source URL","attribute":"src"},{"kind":"field","name":"alt","type":{"text":"string"},"default":"''","description":"Alt text for the image","attribute":"alt"},{"kind":"field","name":"fallback","type":{"text":"string"},"default":"''","description":"Fallback text (typically user initials)","attribute":"fallback"},{"kind":"field","name":"size","type":{"text":"'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'"},"default":"'md'","description":"Size variant.\\n- 'xs': Extra small (1.5rem)\\n- 'sm': Small (2.25rem)\\n- 'md': Medium (2.5rem) - default\\n- 'lg': Large (3rem)\\n- 'xl': Extra large (3.5rem)\\n- 'xxl': Extra extra large (4rem)","attribute":"size"}],"events":[{"type":{"text":"CustomEvent"},"description":"Fired after first render and initialization","name":"btu-avatar-ready"},{"type":{"text":"CustomEvent<{src: string}>"},"description":"Fired when image successfully loads","name":"btu-avatar-image-loaded"},{"type":{"text":"CustomEvent<{src: string, error: Event}>"},"description":"Fired when image fails to load","name":"btu-avatar-image-error"}],"attributes":[{"name":"src","type":{"text":"string"},"default":"''","description":"Image source URL","fieldName":"src","attribute":"src"},{"name":"alt","type":{"text":"string"},"default":"''","description":"Alt text for the image","fieldName":"alt","attribute":"alt"},{"name":"fallback","type":{"text":"string"},"default":"''","description":"Fallback text (typically user initials)","fieldName":"fallback","attribute":"fallback"},{"name":"size","type":{"text":"'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'"},"default":"'md'","description":"Size variant.\\n- 'xs': Extra small (1.5rem)\\n- 'sm': Small (2.25rem)\\n- 'md': Medium (2.5rem) - default\\n- 'lg': Large (3rem)\\n- 'xl': Extra large (3.5rem)\\n- 'xxl': Extra extra large (4rem)","fieldName":"size","attribute":"size"}],"mixins":[{"name":"EventEmitterMixin","module":"/src/util/EventEmitterMixin.js"},{"name":"ReadyMixin","module":"/src/util/ReadyMixin.js"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"btu-avatar","customElement":true}],"exports":[{"kind":"js","name":"default","declaration":{"name":"Avatar","module":"src/components/avatar/Avatar.ts"}},{"kind":"custom-element-definition","name":"btu-avatar","declaration":{"name":"Avatar","module":"src/components/avatar/Avatar.ts"}}]},{"kind":"javascript-module","path":"src/components/avatar/AvatarGroup.ts","declarations":[{"kind":"class","description":"A container component for grouping multiple avatars with consistent styling.\\n\\nAvatarGroup wraps multiple avatar elements and provides:\\n- Overflow handling (shows \\"+N\\" for excess avatars)\\n- Consistent spacing and ring borders\\n- Size inheritance for all child avatars","name":"AvatarGroup","members":[{"kind":"field","name":"max","type":{"text":"number | undefined"},"description":"Maximum number of visible avatars. Remaining avatars shown as \\"+N\\"","attribute":"max"},{"kind":"field","name":"size","type":{"text":"'xs' | 'sm' | 'md'"},"default":"'md'","description":"Size variant for all child avatars (unless individually overridden)","attribute":"size"},{"kind":"method","name":"processAvatars","return":{"type":{"text":"void"}},"description":"Process all avatar children: apply size, handle overflow\\nCall this method when avatars are dynamically added or removed"}],"events":[{"type":{"text":"CustomEvent"},"description":"Fired after first render and initialization","name":"btu-avatar-group-ready"},{"type":{"text":"CustomEvent<{hidden: number}>"},"description":"Fired when avatars are hidden due to max limit","name":"btu-avatar-group-overflow"}],"attributes":[{"name":"max","type":{"text":"number | undefined"},"description":"Maximum number of visible avatars. Remaining avatars shown as \\"+N\\"","fieldName":"max","attribute":"max"},{"name":"size","type":{"text":"'xs' | 'sm' | 'md'"},"default":"'md'","description":"Size variant for all child avatars (unless individually overridden)","fieldName":"size","attribute":"size"}],"mixins":[{"name":"EventEmitterMixin","module":"/src/util/EventEmitterMixin.js"},{"name":"ReadyMixin","module":"/src/util/ReadyMixin.js"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"btu-avatar-group","customElement":true}],"exports":[{"kind":"js","name":"default","declaration":{"name":"AvatarGroup","module":"src/components/avatar/AvatarGroup.ts"}},{"kind":"custom-element-definition","name":"btu-avatar-group","declaration":{"name":"AvatarGroup","module":"src/components/avatar/AvatarGroup.ts"}}]},{"kind":"javascript-module","path":"src/components/badge/Badge.ts","declarations":[{"kind":"class","description":"A badge component for highlighting important information.\\n\\nBadges help highlight notifications, status, or new messages.\\nPrimarily used for communicating secondary or additional information.","name":"Badge","cssProperties":[{"description":"Text color (overrides theme color)","name":"--badge-color-foreground"},{"description":"Background color (overrides theme color)","name":"--badge-color-background"},{"description":"Border radius size (overrides shape default, default: 999px)","name":"--badge-radius-size"},{"description":"Horizontal padding (overrides size default)","name":"--badge-px"},{"description":"Vertical padding (overrides size default)","name":"--badge-py"},{"description":"Size of the dot affordance (default: 6px)","name":"--badge-dot-size"}],"members":[{"kind":"field","name":"variant","type":{"text":"'info' | 'primary' | 'error' | 'success' | 'warning'"},"default":"'info'","description":"Style of the badge.\\n- 'info': Informational (default)\\n- 'primary': Primary action or emphasis\\n- 'error': Error or danger state\\n- 'success': Success or completion state\\n- 'warning': Warning or caution state","attribute":"variant"},{"kind":"field","name":"dot","type":{"text":"boolean"},"default":"false","description":"Should a dot be displayed before the label?","attribute":"dot"},{"kind":"field","name":"size","type":{"text":"string"},"default":"'sm'","description":"Size variant.\\n- 'sm': Small (default)\\n- 'md': Medium\\n- 'lg': Large","attribute":"size"}],"events":[{"type":{"text":"CustomEvent"},"description":"Fired after first render and initialization","name":"btu-badge-ready"}],"attributes":[{"name":"variant","type":{"text":"'info' | 'primary' | 'error' | 'success' | 'warning'"},"default":"'info'","description":"Style of the badge.\\n- 'info': Informational (default)\\n- 'primary': Primary action or emphasis\\n- 'error': Error or danger state\\n- 'success': Success or completion state\\n- 'warning': Warning or caution state","fieldName":"variant","attribute":"variant"},{"name":"dot","type":{"text":"boolean"},"default":"false","description":"Should a dot be displayed before the label?","fieldName":"dot","attribute":"dot"},{"name":"size","type":{"text":"string"},"default":"'sm'","description":"Size variant.\\n- 'sm': Small (default)\\n- 'md': Medium\\n- 'lg': Large","fieldName":"size","attribute":"size"}],"mixins":[{"name":"EventEmitterMixin","module":"/src/util/EventEmitterMixin.js"},{"name":"ReadyMixin","module":"/src/util/ReadyMixin.js"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"btu-badge","customElement":true}],"exports":[{"kind":"js","name":"default","declaration":{"name":"Badge","module":"src/components/badge/Badge.ts"}},{"kind":"custom-element-definition","name":"btu-badge","declaration":{"name":"Badge","module":"src/components/badge/Badge.ts"}}]},{"kind":"javascript-module","path":"src/components/circular-progress/CircularProgress.ts","declarations":[{"kind":"class","description":"A circular progress indicator for showing loading states or progress.","name":"CircularProgress","cssProperties":[{"description":"Custom progress indicator color (overrides theme color)","name":"--progress-color"},{"description":"Track/background color (overrides default gray-100)","name":"--track-color"},{"description":"Custom size in pixels (overrides size preset)","name":"--progress-size"}],"members":[{"kind":"field","name":"indeterminate","type":{"text":"boolean"},"default":"true","description":"Whether the progress indicator is indeterminate (animated spinner).\\nWhen false, shows determinate progress based on the progress value.","attribute":"indeterminate"},{"kind":"field","name":"size","type":{"text":"'sm' | 'md' | 'lg'"},"default":"'sm'","description":"Size variant.\\n- 'sm': Small (16px) - default\\n- 'md': Medium (32px)\\n- 'lg': Large (48px)","attribute":"size"}],"events":[{"type":{"text":"CustomEvent"},"description":"Fired after first render and initialization","name":"btu-progress-ready"},{"type":{"text":"CustomEvent"},"description":"Fired when determinate progress reaches 100","name":"btu-progress-complete"}],"attributes":[{"name":"indeterminate","type":{"text":"boolean"},"default":"true","description":"Whether the progress indicator is indeterminate (animated spinner).\\nWhen false, shows determinate progress based on the progress value.","fieldName":"indeterminate","attribute":"indeterminate"},{"name":"size","type":{"text":"'sm' | 'md' | 'lg'"},"default":"'sm'","description":"Size variant.\\n- 'sm': Small (16px) - default\\n- 'md': Medium (32px)\\n- 'lg': Large (48px)","fieldName":"size","attribute":"size"}],"mixins":[{"name":"ProgressMixin","module":"/src/util/ProgressMixin.js"},{"name":"EventEmitterMixin","module":"/src/util/EventEmitterMixin.js"},{"name":"ReadyMixin","module":"/src/util/ReadyMixin.js"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"btu-circular-progress","customElement":true}],"exports":[{"kind":"js","name":"default","declaration":{"name":"CircularProgress","module":"src/components/circular-progress/CircularProgress.ts"}},{"kind":"custom-element-definition","name":"btu-circular-progress","declaration":{"name":"CircularProgress","module":"src/components/circular-progress/CircularProgress.ts"}}]},{"kind":"javascript-module","path":"src/components/copy-to-clipboard/CopyToClipboard.ts","declarations":[{"kind":"class","description":"A button component that copies text to the system clipboard.\\n\\nProvides visual feedback when text is successfully copied by applying\\na temporary state that can be styled with CSS.","name":"CopyToClipboard","members":[{"kind":"field","name":"copydata","type":{"text":"string | undefined"},"description":"The text to be copied to the system clipboard.","attribute":"copydata"},{"kind":"field","name":"buttonClasses","type":{"text":"string | undefined"},"description":"Custom CSS classes for the button. If provided, replaces the default classes.","attribute":"buttonClasses"},{"kind":"method","name":"copy","description":"Copies the copydata to the system clipboard.\\nDisplays a success state for 3 seconds after copying."}],"events":[{"type":{"text":"CustomEvent"},"description":"Fired after first render and initialization","name":"btu-clipboard-ready"},{"type":{"text":"CustomEvent"},"description":"Fired when text is successfully copied to clipboard","name":"btu-clipboard-copied"}],"attributes":[{"name":"copydata","type":{"text":"string | undefined"},"description":"The text to be copied to the system clipboard.","fieldName":"copydata","attribute":"copydata"},{"name":"buttonClasses","type":{"text":"string | undefined"},"description":"Custom CSS classes for the button. If provided, replaces the default classes.","fieldName":"buttonClasses","attribute":"buttonClasses"}],"mixins":[{"name":"ClipboardMixin","module":"/src/util/ClipboardMixin.js"},{"name":"ComponentStatesMixin","module":"/src/util/ComponentStatesMixin.js"},{"name":"EventEmitterMixin","module":"/src/util/EventEmitterMixin.js"},{"name":"ReadyMixin","module":"/src/util/ReadyMixin.js"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"btu-copy-to-clipboard","customElement":true}],"exports":[{"kind":"js","name":"default","declaration":{"name":"CopyToClipboard","module":"src/components/copy-to-clipboard/CopyToClipboard.ts"}},{"kind":"custom-element-definition","name":"btu-copy-to-clipboard","declaration":{"name":"CopyToClipboard","module":"src/components/copy-to-clipboard/CopyToClipboard.ts"}}]},{"kind":"javascript-module","path":"src/components/icon/Icon.ts","declarations":[{"kind":"class","description":"An icon component for displaying Lucide icons.\\n\\nIcons inherit parent text color by default or can use gradient fills.\\nAll icons are from the Lucide icon library (https://lucide.dev/icons/).\\nSupports both direct SVG rendering and mask-based gradient fills.","name":"Icon","cssProperties":[{"description":"Icon size (overrides size default)","name":"--Icon-size"},{"description":"Icon fill color for filled icons (e.g., \\"currentColor\\")","name":"--Icon-fill"},{"description":"SVG data URI for mask-based rendering","name":"--Icon-svg"}],"members":[{"kind":"field","name":"tagName","static":true,"readonly":true},{"kind":"field","name":"size","type":{"text":"'xs' | 'sm' | 'md' | 'lg' | 'xl'"},"default":"'md'","description":"Size of the icon.\\n- 'xs': Extra small (0.75rem)\\n- 'sm': Small (1rem)\\n- 'md': Medium (1.25rem, default)\\n- 'lg': Large (1.5rem)\\n- 'xl': Extra large (1.75rem)","attribute":"size"},{"kind":"field","name":"symbol","type":{"text":"string"},"default":"'circle-dashed'","description":"Lucide icon name to display.\\nSee https://lucide.dev/icons/ for available icons.","attribute":"symbol"},{"kind":"field","name":"gradient","type":{"text":"'ai' | 'error' | 'gray' | 'primary' | 'purple' | 'rose' | 'success' | 'teal' | 'warning' | undefined"},"description":"Theme color to use for gradient fill.\\nWhen set, icon displays with gradient. When undefined, icon inherits parent text color.","attribute":"gradient"}],"events":[{"type":{"text":"CustomEvent"},"description":"Fired after first render and initialization","name":"btu-icon-ready"}],"attributes":[{"name":"size","type":{"text":"'xs' | 'sm' | 'md' | 'lg' | 'xl'"},"default":"'md'","description":"Size of the icon.\\n- 'xs': Extra small (0.75rem)\\n- 'sm': Small (1rem)\\n- 'md': Medium (1.25rem, default)\\n- 'lg': Large (1.5rem)\\n- 'xl': Extra large (1.75rem)","fieldName":"size","attribute":"size"},{"name":"symbol","type":{"text":"string"},"default":"'circle-dashed'","description":"Lucide icon name to display.\\nSee https://lucide.dev/icons/ for available icons.","fieldName":"symbol","attribute":"symbol"},{"name":"gradient","type":{"text":"'ai' | 'error' | 'gray' | 'primary' | 'purple' | 'rose' | 'success' | 'teal' | 'warning' | undefined"},"description":"Theme color to use for gradient fill.\\nWhen set, icon displays with gradient. When undefined, icon inherits parent text color.","fieldName":"gradient","attribute":"gradient"}],"mixins":[{"name":"EventEmitterMixin","module":"/src/util/EventEmitterMixin.js"},{"name":"ReadyMixin","module":"/src/util/ReadyMixin.js"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"btu-icon","customElement":true}],"exports":[{"kind":"js","name":"default","declaration":{"name":"Icon","module":"src/components/icon/Icon.ts"}},{"kind":"custom-element-definition","name":"btu-icon","declaration":{"name":"Icon","module":"src/components/icon/Icon.ts"}}]},{"kind":"javascript-module","path":"src/components/linear-progress/LinearProgress.ts","declarations":[{"kind":"class","description":"A horizontal linear progress bar for showing task completion.","name":"LinearProgress","cssProperties":[{"description":"Custom progress bar color (overrides theme color)","name":"--progress-color"},{"description":"Track/background color (overrides default gray-100)","name":"--track-color"}],"members":[],"events":[{"type":{"text":"CustomEvent"},"description":"Fired after first render and initialization","name":"btu-progress-ready"},{"type":{"text":"CustomEvent"},"description":"Fired when progress reaches 100","name":"btu-progress-complete"}],"mixins":[{"name":"ProgressMixin","module":"/src/util/ProgressMixin.js"},{"name":"EventEmitterMixin","module":"/src/util/EventEmitterMixin.js"},{"name":"ReadyMixin","module":"/src/util/ReadyMixin.js"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"btu-linear-progress","customElement":true}],"exports":[{"kind":"js","name":"default","declaration":{"name":"LinearProgress","module":"src/components/linear-progress/LinearProgress.ts"}},{"kind":"custom-element-definition","name":"btu-linear-progress","declaration":{"name":"LinearProgress","module":"src/components/linear-progress/LinearProgress.ts"}}]}]`),YG={schemaVersion:GG,readme:WG,modules:KG};rM(YG);BG({hideArgRef:!1,typeRef:{"lit-html":"https://lit.dev/docs/api/templates/"},renderDefault:!0});const XG={parameters:{backgrounds:{options:{customColor:{name:"gradient",value:"linear-gradient(330deg, #dee0f0 0, #fefdff 100%)"}}},controls:{expanded:!0,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 GI`<div class="${r==="dark"?"is-dark":""}">${e()}</div>`}]},QG=Object.freeze(Object.defineProperty({__proto__:null,default:XG},Symbol.toStringTag,{value:"Module"}));qy();const{composeConfigs:ZG,PreviewWeb:eW}=__STORYBOOK_MODULE_PREVIEW_API__,tW=(e=[])=>{const t=[e[0]??kz,e[1]??Jz,e[2]??Xz,e[3]??QG];return ZG(t)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new eW(sz,tW);window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;export{GK as A,zK as B,OK as C,PK as D,He as E,kK as F,MK as G,NK as H,AK as I,la as J,IK as K,jK as L,HK as M,BK as N,EK as O,nz as P,TK as Q,Iz as R,XK as S,sl as T,t5 as U,ov as _,n5 as a,r5 as b,O3 as c,O as d,A3 as e,C3 as f,o5 as g,x3 as h,da as i,N3 as j,I3 as k,FK as l,LK as m,DK as n,_K as o,xK as p,qK as q,wK as r,RK as s,SK as t,$K as u,CK as v,VK as w,GI as x,UK as y,JK as z};
|