@velumweb/ui-kit 1.0.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/.storybook/main.ts +14 -0
- package/.storybook/manager.ts +32 -0
- package/.storybook/preview.ts +14 -0
- package/dist/Button/Button.d.ts +32 -0
- package/dist/Button/Button.stories.d.ts +15 -0
- package/dist/Button/index.d.ts +1 -0
- package/dist/Container/Box.d.ts +33 -0
- package/dist/Container/index.d.ts +1 -0
- package/dist/Input/Input.d.ts +38 -0
- package/dist/Input/Input.stories.d.ts +14 -0
- package/dist/Input/index.d.ts +1 -0
- package/dist/Modal/Modal.d.ts +29 -0
- package/dist/Modal/Modal.stories.d.ts +13 -0
- package/dist/Modal/index.d.ts +1 -0
- package/dist/Toggle/Toggle.d.ts +18 -0
- package/dist/Toggle/Toggle.stories.d.ts +13 -0
- package/dist/Toggle/index.d.ts +1 -0
- package/dist/assets/svg-lib/3-dots-horizontal-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/about-empty-page-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/alert-square.svg +26 -0
- package/dist/assets/svg-lib/arrow-bottom-svgrepo-com.svg +9 -0
- package/dist/assets/svg-lib/arrow-left-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/arrow-right-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/arrow-top-svgrepo-com.svg +9 -0
- package/dist/assets/svg-lib/checkmark-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/clock-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/cross-svgrepo-com.svg +12 -0
- package/dist/assets/svg-lib/download-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/edit-pen-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/favorite-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/forbiden-svgrepo-com.svg +9 -0
- package/dist/assets/svg-lib/input-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/link-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/messages-alert-svgrepo-com.svg +6 -0
- package/dist/assets/svg-lib/messages-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/mic-off-svgrepo-com.svg +6 -0
- package/dist/assets/svg-lib/mic-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/music-svgrepo-com.svg +6 -0
- package/dist/assets/svg-lib/next-long-arrow-right-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/notification-alert-svgrepo-com.svg +6 -0
- package/dist/assets/svg-lib/notification-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/notifications-off-svgrepo-com.svg +6 -0
- package/dist/assets/svg-lib/party-simple-colored-svgrepo-com.svg +11 -0
- package/dist/assets/svg-lib/pattern-circles-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/play-button-simple-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/plus-outlined-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/previous-long-arrow-left-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/queue-listing-cards-svgrepo-com.svg +6 -0
- package/dist/assets/svg-lib/queue-remove-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/recent-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/remove-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/repeat-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/schedule-add-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/schedule-alert-svgrepo-com.svg +6 -0
- package/dist/assets/svg-lib/schedule-remove-svgrepo-com.svg +6 -0
- package/dist/assets/svg-lib/schedule-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/search-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/session-abandon-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/session-join-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/session-leave-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/settings-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/share-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/sound-off-svgrepo-com.svg +6 -0
- package/dist/assets/svg-lib/sound-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/spectacles-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/star-svgrepo-com.svg +5 -0
- package/dist/assets/svg-lib/user-avatar-with-alert-svgrepo-com.svg +6 -0
- package/dist/assets/svg-lib/user-banned-svgrepo-com.svg +6 -0
- package/dist/assets/svg-lib/user-svgrepo-com.svg +5 -0
- package/dist/assets/svglist.png +0 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.es.d.ts +2 -0
- package/dist/index.es.js +569 -0
- package/dist/index.umd.js +6 -0
- package/dist/ui-kit.css +1 -0
- package/docs/Button/Button.d.ts +32 -0
- package/docs/Button/Button.stories.d.ts +15 -0
- package/docs/Button/index.d.ts +1 -0
- package/docs/CNAME +1 -0
- package/docs/Container/Box.d.ts +33 -0
- package/docs/Container/index.d.ts +1 -0
- package/docs/Input/Input.d.ts +38 -0
- package/docs/Input/Input.stories.d.ts +14 -0
- package/docs/Input/index.d.ts +1 -0
- package/docs/Modal/Modal.d.ts +29 -0
- package/docs/Modal/Modal.stories.d.ts +13 -0
- package/docs/Modal/index.d.ts +1 -0
- package/docs/Toggle/Toggle.d.ts +18 -0
- package/docs/Toggle/Toggle.stories.d.ts +13 -0
- package/docs/Toggle/index.d.ts +1 -0
- package/docs/assets/Button-CfaZpHIg.css +1 -0
- package/docs/assets/Button-DBH2W8EG.js +1 -0
- package/docs/assets/Button.stories-uPwy2cWr.js +34 -0
- package/docs/assets/Input-D117xj27.js +1 -0
- package/docs/assets/Input-RjFZkyU_.css +1 -0
- package/docs/assets/Input.stories-Ck4AyV-4.js +21 -0
- package/docs/assets/Modal-CWKTs3Ep.css +1 -0
- package/docs/assets/Modal.stories-3HMpRqSx.js +7 -0
- package/docs/assets/Toggle-BmcBtVup.css +1 -0
- package/docs/assets/Toggle-DiHagfS3.js +1 -0
- package/docs/assets/Toggle.stories-d01loxLD.js +9 -0
- package/docs/assets/iframe-D7bwIom8.js +1062 -0
- package/docs/assets/jsx-runtime-u17CrQMm.js +1 -0
- package/docs/assets/preload-helper-PPVm8Dsz.js +1 -0
- package/docs/assets/react-18-CW3OMC0n.js +9 -0
- package/docs/assets/svg-lib/3-dots-horizontal-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/about-empty-page-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/alert-square.svg +26 -0
- package/docs/assets/svg-lib/arrow-bottom-svgrepo-com.svg +9 -0
- package/docs/assets/svg-lib/arrow-left-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/arrow-right-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/arrow-top-svgrepo-com.svg +9 -0
- package/docs/assets/svg-lib/checkmark-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/clock-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/cross-svgrepo-com.svg +12 -0
- package/docs/assets/svg-lib/download-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/edit-pen-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/favorite-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/forbiden-svgrepo-com.svg +9 -0
- package/docs/assets/svg-lib/input-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/link-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/messages-alert-svgrepo-com.svg +6 -0
- package/docs/assets/svg-lib/messages-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/mic-off-svgrepo-com.svg +6 -0
- package/docs/assets/svg-lib/mic-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/music-svgrepo-com.svg +6 -0
- package/docs/assets/svg-lib/next-long-arrow-right-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/notification-alert-svgrepo-com.svg +6 -0
- package/docs/assets/svg-lib/notification-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/notifications-off-svgrepo-com.svg +6 -0
- package/docs/assets/svg-lib/party-simple-colored-svgrepo-com.svg +11 -0
- package/docs/assets/svg-lib/pattern-circles-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/play-button-simple-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/plus-outlined-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/previous-long-arrow-left-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/queue-listing-cards-svgrepo-com.svg +6 -0
- package/docs/assets/svg-lib/queue-remove-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/recent-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/remove-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/repeat-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/schedule-add-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/schedule-alert-svgrepo-com.svg +6 -0
- package/docs/assets/svg-lib/schedule-remove-svgrepo-com.svg +6 -0
- package/docs/assets/svg-lib/schedule-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/search-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/session-abandon-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/session-join-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/session-leave-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/settings-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/share-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/sound-off-svgrepo-com.svg +6 -0
- package/docs/assets/svg-lib/sound-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/spectacles-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/star-svgrepo-com.svg +5 -0
- package/docs/assets/svg-lib/user-avatar-with-alert-svgrepo-com.svg +6 -0
- package/docs/assets/svg-lib/user-banned-svgrepo-com.svg +6 -0
- package/docs/assets/svg-lib/user-svgrepo-com.svg +5 -0
- package/docs/assets/svglist.png +0 -0
- package/docs/favicon-wrapper.svg +46 -0
- package/docs/favicon.svg +1 -0
- package/docs/iframe.html +686 -0
- package/docs/index.d.ts +5 -0
- package/docs/index.html +137 -0
- package/docs/index.json +1 -0
- package/docs/makeColors.ts +37 -0
- package/docs/notes.txt +11 -0
- package/docs/nunito-sans-bold-italic.woff2 +0 -0
- package/docs/nunito-sans-bold.woff2 +0 -0
- package/docs/nunito-sans-italic.woff2 +0 -0
- package/docs/nunito-sans-regular.woff2 +0 -0
- package/docs/project.json +1 -0
- package/docs/sb-addons/storybook-1/manager-bundle.js +3 -0
- package/docs/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +628 -0
- package/docs/sb-common-assets/favicon-wrapper.svg +46 -0
- package/docs/sb-common-assets/favicon.svg +1 -0
- package/docs/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/docs/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/docs/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/docs/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/docs/sb-manager/globals-runtime.js +75597 -0
- package/docs/sb-manager/globals.js +24 -0
- package/docs/sb-manager/manager-stores.js +23 -0
- package/docs/sb-manager/runtime.js +19698 -0
- package/docs/style_setter.js +19 -0
- package/docs/vite-inject-mocker-entry.js +2 -0
- package/index.html +7 -0
- package/package.json +37 -0
- package/public/assets/svg-lib/3-dots-horizontal-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/about-empty-page-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/alert-square.svg +26 -0
- package/public/assets/svg-lib/arrow-bottom-svgrepo-com.svg +9 -0
- package/public/assets/svg-lib/arrow-left-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/arrow-right-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/arrow-top-svgrepo-com.svg +9 -0
- package/public/assets/svg-lib/checkmark-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/clock-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/cross-svgrepo-com.svg +12 -0
- package/public/assets/svg-lib/download-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/edit-pen-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/favorite-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/forbiden-svgrepo-com.svg +9 -0
- package/public/assets/svg-lib/input-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/link-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/messages-alert-svgrepo-com.svg +6 -0
- package/public/assets/svg-lib/messages-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/mic-off-svgrepo-com.svg +6 -0
- package/public/assets/svg-lib/mic-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/music-svgrepo-com.svg +6 -0
- package/public/assets/svg-lib/next-long-arrow-right-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/notification-alert-svgrepo-com.svg +6 -0
- package/public/assets/svg-lib/notification-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/notifications-off-svgrepo-com.svg +6 -0
- package/public/assets/svg-lib/party-simple-colored-svgrepo-com.svg +11 -0
- package/public/assets/svg-lib/pattern-circles-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/play-button-simple-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/plus-outlined-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/previous-long-arrow-left-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/queue-listing-cards-svgrepo-com.svg +6 -0
- package/public/assets/svg-lib/queue-remove-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/recent-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/remove-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/repeat-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/schedule-add-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/schedule-alert-svgrepo-com.svg +6 -0
- package/public/assets/svg-lib/schedule-remove-svgrepo-com.svg +6 -0
- package/public/assets/svg-lib/schedule-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/search-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/session-abandon-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/session-join-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/session-leave-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/settings-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/share-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/sound-off-svgrepo-com.svg +6 -0
- package/public/assets/svg-lib/sound-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/spectacles-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/star-svgrepo-com.svg +5 -0
- package/public/assets/svg-lib/user-avatar-with-alert-svgrepo-com.svg +6 -0
- package/public/assets/svg-lib/user-banned-svgrepo-com.svg +6 -0
- package/public/assets/svg-lib/user-svgrepo-com.svg +5 -0
- package/public/assets/svglist.png +0 -0
- package/readme.md +9 -0
- package/src/components/Button/Button.stories.ts +64 -0
- package/src/components/Button/Button.tsx +99 -0
- package/src/components/Button/button.scss +147 -0
- package/src/components/Button/index.ts +1 -0
- package/src/components/Container/Box.tsx +83 -0
- package/src/components/Container/box.scss +41 -0
- package/src/components/Container/index.ts +1 -0
- package/src/components/Input/Input.stories.ts +49 -0
- package/src/components/Input/Input.tsx +172 -0
- package/src/components/Input/index.ts +1 -0
- package/src/components/Input/input.scss +69 -0
- package/src/components/Modal/Modal.stories.ts +33 -0
- package/src/components/Modal/Modal.tsx +125 -0
- package/src/components/Modal/index.ts +1 -0
- package/src/components/Modal/modal.scss +54 -0
- package/src/components/Toggle/Toggle.stories.ts +35 -0
- package/src/components/Toggle/Toggle.tsx +60 -0
- package/src/components/Toggle/index.ts +1 -0
- package/src/components/Toggle/toggle.scss +97 -0
- package/src/components/index.ts +5 -0
- package/src/main.scss +46 -0
- package/tsconfig.json +15 -0
- package/utils/makeColors.ts +37 -0
- package/utils/notes.txt +11 -0
- package/utils/style_setter.js +19 -0
- package/vite.config.ts +32 -0
|
@@ -0,0 +1,1062 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Button.stories-uPwy2cWr.js","./Button-DBH2W8EG.js","./jsx-runtime-u17CrQMm.js","./Button-CfaZpHIg.css","./Input.stories-Ck4AyV-4.js","./Input-D117xj27.js","./Input-RjFZkyU_.css","./preload-helper-PPVm8Dsz.js","./Modal.stories-3HMpRqSx.js","./Toggle-DiHagfS3.js","./Toggle-BmcBtVup.css","./Modal-CWKTs3Ep.css","./Toggle.stories-d01loxLD.js","./react-18-CW3OMC0n.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as Yi}from"./preload-helper-PPVm8Dsz.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=r(i);fetch(i.href,o)}})();var Cu={},eC=Object.create,Ul=Object.defineProperty,tC=Object.getOwnPropertyDescriptor,Im=Object.getOwnPropertyNames,rC=Object.getPrototypeOf,nC=Object.prototype.hasOwnProperty,Zo=(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')}),Q=(e,t)=>function(){return t||(0,e[Im(e)[0]])((t={exports:{}}).exports,t),t.exports},ir=(e,t)=>{for(var r in t)Ul(e,r,{get:t[r],enumerable:!0})},iC=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Im(t))!nC.call(e,i)&&i!==r&&Ul(e,i,{get:()=>t[i],enumerable:!(n=tC(t,i))||n.enumerable});return e},It=(e,t,r)=>(r=e!=null?eC(rC(e)):{},iC(t||!e||!e.__esModule?Ul(r,"default",{value:e,enumerable:!0}):r,e)),oC=Q({"../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(i){return Object.keys(i).concat(Object.getOwnPropertySymbols(i))}:Object.keys;return function(i,o){return(function a(s,p,l){var d,f,h,m=t.call(s),b=t.call(p);if(s===p)return!0;if(s==null||p==null)return!1;if(l.indexOf(s)>-1&&l.indexOf(p)>-1)return!0;if(l.push(s,p),m!=b||(d=n(s),f=n(p),d.length!=f.length||d.some(function(E){return!a(s[E],p[E],l)})))return!1;switch(m.slice(8,-1)){case"Symbol":return s.valueOf()==p.valueOf();case"Date":case"Number":return+s==+p||+s!=+s&&+p!=+p;case"RegExp":case"Function":case"String":case"Boolean":return""+s==""+p;case"Set":case"Map":d=s.entries(),f=p.entries();do if(!a((h=d.next()).value,f.next().value,l))return!1;while(!h.done);return!0;case"ArrayBuffer":s=new Uint8Array(s),p=new Uint8Array(p);case"DataView":s=new Uint8Array(s.buffer),p=new Uint8Array(p.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(s.length!=p.length)return!1;for(h=0;h<s.length;h++)if((h in s||h in p)&&(h in s!=h in p||!a(s[h],p[h],l)))return!1;return!0;case"Object":return a(r(s),r(p),l);default:return!1}})(i,o,[])}})()}}),aC=Q({"../node_modules/min-indent/index.js"(e,t){t.exports=r=>{let n=r.match(/^[ \t]*(?=\S)/gm);return n?n.reduce((i,o)=>Math.min(i,o.length),1/0):0}}}),sC=Q({"../node_modules/strip-indent/index.js"(e,t){var r=aC();t.exports=n=>{let i=r(n);if(i===0)return n;let o=new RegExp(`^[ \\t]{${i}}`,"gm");return n.replace(o,"")}}}),uC=Q({"../node_modules/indent-string/index.js"(e,t){t.exports=(r,n=1,i)=>{if(i={indent:" ",includeEmptyLines:!1,...i},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 i.indent!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof i.indent}\``);if(n===0)return r;let o=i.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return r.replace(o,i.indent.repeat(n))}}}),Bm=Q({"../node_modules/redent/index.js"(e,t){var r=sC(),n=uC();t.exports=(i,o=0,a)=>n(r(i),o,a)}}),lC=Q({"../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,i={"@@iterator":function(){return i},next:function(){if(n<r.length){var o=r[n];return n=n+1,{done:!1,value:o}}else return{done:!0}}};return i}e.default=t}}),Bo=Q({"../node_modules/aria-query/lib/util/iterationDecorator.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=r(lC());function r(o){return o&&o.__esModule?o:{default:o}}function n(o){"@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(o)}function i(o,a){return typeof Symbol=="function"&&n(Symbol.iterator)==="symbol"&&Object.defineProperty(o,Symbol.iterator,{value:t.default.bind(a)}),o}}}),cC=Q({"../node_modules/aria-query/lib/ariaPropsMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(Bo());function r(f){return f&&f.__esModule?f:{default:f}}function n(f,h){return p(f)||s(f,h)||o(f,h)||i()}function i(){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.`)}function o(f,h){if(f){if(typeof f=="string")return a(f,h);var m={}.toString.call(f).slice(8,-1);return m==="Object"&&f.constructor&&(m=f.constructor.name),m==="Map"||m==="Set"?Array.from(f):m==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(m)?a(f,h):void 0}}function a(f,h){(h==null||h>f.length)&&(h=f.length);for(var m=0,b=Array(h);m<h;m++)b[m]=f[m];return b}function s(f,h){var m=f==null?null:typeof Symbol<"u"&&f[Symbol.iterator]||f["@@iterator"];if(m!=null){var b,E,w,A,S=[],k=!0,O=!1;try{if(w=(m=m.call(f)).next,h===0){if(Object(m)!==m)return;k=!1}else for(;!(k=(b=w.call(m)).done)&&(S.push(b.value),S.length!==h);k=!0);}catch(R){O=!0,E=R}finally{try{if(!k&&m.return!=null&&(A=m.return(),Object(A)!==A))return}finally{if(O)throw E}}return S}}function p(f){if(Array.isArray(f))return f}var l=[["aria-activedescendant",{type:"id"}],["aria-atomic",{type:"boolean"}],["aria-autocomplete",{type:"token",values:["inline","list","both","none"]}],["aria-braillelabel",{type:"string"}],["aria-brailleroledescription",{type:"string"}],["aria-busy",{type:"boolean"}],["aria-checked",{type:"tristate"}],["aria-colcount",{type:"integer"}],["aria-colindex",{type:"integer"}],["aria-colspan",{type:"integer"}],["aria-controls",{type:"idlist"}],["aria-current",{type:"token",values:["page","step","location","date","time",!0,!1]}],["aria-describedby",{type:"idlist"}],["aria-description",{type:"string"}],["aria-details",{type:"id"}],["aria-disabled",{type:"boolean"}],["aria-dropeffect",{type:"tokenlist",values:["copy","execute","link","move","none","popup"]}],["aria-errormessage",{type:"id"}],["aria-expanded",{type:"boolean",allowundefined:!0}],["aria-flowto",{type:"idlist"}],["aria-grabbed",{type:"boolean",allowundefined:!0}],["aria-haspopup",{type:"token",values:[!1,!0,"menu","listbox","tree","grid","dialog"]}],["aria-hidden",{type:"boolean",allowundefined:!0}],["aria-invalid",{type:"token",values:["grammar",!1,"spelling",!0]}],["aria-keyshortcuts",{type:"string"}],["aria-label",{type:"string"}],["aria-labelledby",{type:"idlist"}],["aria-level",{type:"integer"}],["aria-live",{type:"token",values:["assertive","off","polite"]}],["aria-modal",{type:"boolean"}],["aria-multiline",{type:"boolean"}],["aria-multiselectable",{type:"boolean"}],["aria-orientation",{type:"token",values:["vertical","undefined","horizontal"]}],["aria-owns",{type:"idlist"}],["aria-placeholder",{type:"string"}],["aria-posinset",{type:"integer"}],["aria-pressed",{type:"tristate"}],["aria-readonly",{type:"boolean"}],["aria-relevant",{type:"tokenlist",values:["additions","all","removals","text"]}],["aria-required",{type:"boolean"}],["aria-roledescription",{type:"string"}],["aria-rowcount",{type:"integer"}],["aria-rowindex",{type:"integer"}],["aria-rowspan",{type:"integer"}],["aria-selected",{type:"boolean",allowundefined:!0}],["aria-setsize",{type:"integer"}],["aria-sort",{type:"token",values:["ascending","descending","none","other"]}],["aria-valuemax",{type:"number"}],["aria-valuemin",{type:"number"}],["aria-valuenow",{type:"number"}],["aria-valuetext",{type:"string"}]],d={entries:function(){return l},forEach:function(f){for(var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,m=0,b=l;m<b.length;m++){var E=n(b[m],2),w=E[0],A=E[1];f.call(h,A,w,l)}},get:function(f){var h=l.filter(function(m){return m[0]===f})[0];return h&&h[1]},has:function(f){return!!d.get(f)},keys:function(){return l.map(function(f){var h=n(f,1),m=h[0];return m})},values:function(){return l.map(function(f){var h=n(f,2),m=h[1];return m})}};e.default=(0,t.default)(d,d.entries())}}),pC=Q({"../node_modules/aria-query/lib/domMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(Bo());function r(f){return f&&f.__esModule?f:{default:f}}function n(f,h){return p(f)||s(f,h)||o(f,h)||i()}function i(){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.`)}function o(f,h){if(f){if(typeof f=="string")return a(f,h);var m={}.toString.call(f).slice(8,-1);return m==="Object"&&f.constructor&&(m=f.constructor.name),m==="Map"||m==="Set"?Array.from(f):m==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(m)?a(f,h):void 0}}function a(f,h){(h==null||h>f.length)&&(h=f.length);for(var m=0,b=Array(h);m<h;m++)b[m]=f[m];return b}function s(f,h){var m=f==null?null:typeof Symbol<"u"&&f[Symbol.iterator]||f["@@iterator"];if(m!=null){var b,E,w,A,S=[],k=!0,O=!1;try{if(w=(m=m.call(f)).next,h===0){if(Object(m)!==m)return;k=!1}else for(;!(k=(b=w.call(m)).done)&&(S.push(b.value),S.length!==h);k=!0);}catch(R){O=!0,E=R}finally{try{if(!k&&m.return!=null&&(A=m.return(),Object(A)!==A))return}finally{if(O)throw E}}return S}}function p(f){if(Array.isArray(f))return f}var l=[["a",{reserved:!1}],["abbr",{reserved:!1}],["acronym",{reserved:!1}],["address",{reserved:!1}],["applet",{reserved:!1}],["area",{reserved:!1}],["article",{reserved:!1}],["aside",{reserved:!1}],["audio",{reserved:!1}],["b",{reserved:!1}],["base",{reserved:!0}],["bdi",{reserved:!1}],["bdo",{reserved:!1}],["big",{reserved:!1}],["blink",{reserved:!1}],["blockquote",{reserved:!1}],["body",{reserved:!1}],["br",{reserved:!1}],["button",{reserved:!1}],["canvas",{reserved:!1}],["caption",{reserved:!1}],["center",{reserved:!1}],["cite",{reserved:!1}],["code",{reserved:!1}],["col",{reserved:!0}],["colgroup",{reserved:!0}],["content",{reserved:!1}],["data",{reserved:!1}],["datalist",{reserved:!1}],["dd",{reserved:!1}],["del",{reserved:!1}],["details",{reserved:!1}],["dfn",{reserved:!1}],["dialog",{reserved:!1}],["dir",{reserved:!1}],["div",{reserved:!1}],["dl",{reserved:!1}],["dt",{reserved:!1}],["em",{reserved:!1}],["embed",{reserved:!1}],["fieldset",{reserved:!1}],["figcaption",{reserved:!1}],["figure",{reserved:!1}],["font",{reserved:!1}],["footer",{reserved:!1}],["form",{reserved:!1}],["frame",{reserved:!1}],["frameset",{reserved:!1}],["h1",{reserved:!1}],["h2",{reserved:!1}],["h3",{reserved:!1}],["h4",{reserved:!1}],["h5",{reserved:!1}],["h6",{reserved:!1}],["head",{reserved:!0}],["header",{reserved:!1}],["hgroup",{reserved:!1}],["hr",{reserved:!1}],["html",{reserved:!0}],["i",{reserved:!1}],["iframe",{reserved:!1}],["img",{reserved:!1}],["input",{reserved:!1}],["ins",{reserved:!1}],["kbd",{reserved:!1}],["keygen",{reserved:!1}],["label",{reserved:!1}],["legend",{reserved:!1}],["li",{reserved:!1}],["link",{reserved:!0}],["main",{reserved:!1}],["map",{reserved:!1}],["mark",{reserved:!1}],["marquee",{reserved:!1}],["menu",{reserved:!1}],["menuitem",{reserved:!1}],["meta",{reserved:!0}],["meter",{reserved:!1}],["nav",{reserved:!1}],["noembed",{reserved:!0}],["noscript",{reserved:!0}],["object",{reserved:!1}],["ol",{reserved:!1}],["optgroup",{reserved:!1}],["option",{reserved:!1}],["output",{reserved:!1}],["p",{reserved:!1}],["param",{reserved:!0}],["picture",{reserved:!0}],["pre",{reserved:!1}],["progress",{reserved:!1}],["q",{reserved:!1}],["rp",{reserved:!1}],["rt",{reserved:!1}],["rtc",{reserved:!1}],["ruby",{reserved:!1}],["s",{reserved:!1}],["samp",{reserved:!1}],["script",{reserved:!0}],["section",{reserved:!1}],["select",{reserved:!1}],["small",{reserved:!1}],["source",{reserved:!0}],["spacer",{reserved:!1}],["span",{reserved:!1}],["strike",{reserved:!1}],["strong",{reserved:!1}],["style",{reserved:!0}],["sub",{reserved:!1}],["summary",{reserved:!1}],["sup",{reserved:!1}],["table",{reserved:!1}],["tbody",{reserved:!1}],["td",{reserved:!1}],["textarea",{reserved:!1}],["tfoot",{reserved:!1}],["th",{reserved:!1}],["thead",{reserved:!1}],["time",{reserved:!1}],["title",{reserved:!0}],["tr",{reserved:!1}],["track",{reserved:!0}],["tt",{reserved:!1}],["u",{reserved:!1}],["ul",{reserved:!1}],["var",{reserved:!1}],["video",{reserved:!1}],["wbr",{reserved:!1}],["xmp",{reserved:!1}]],d={entries:function(){return l},forEach:function(f){for(var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,m=0,b=l;m<b.length;m++){var E=n(b[m],2),w=E[0],A=E[1];f.call(h,A,w,l)}},get:function(f){var h=l.filter(function(m){return m[0]===f})[0];return h&&h[1]},has:function(f){return!!d.get(f)},keys:function(){return l.map(function(f){var h=n(f,1),m=h[0];return m})},values:function(){return l.map(function(f){var h=n(f,2),m=h[1];return m})}};e.default=(0,t.default)(d,d.entries())}}),dC=Q({"../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}}),fC=Q({"../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}}),hC=Q({"../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}}),mC=Q({"../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}}),yC=Q({"../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}}),gC=Q({"../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}}),bC=Q({"../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}}),EC=Q({"../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}}),vC=Q({"../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}}),AC=Q({"../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}}),wC=Q({"../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}}),CC=Q({"../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}}),_C=Q({"../node_modules/aria-query/lib/etc/roles/ariaAbstractRoles.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=m(dC()),r=m(fC()),n=m(hC()),i=m(mC()),o=m(yC()),a=m(gC()),s=m(bC()),p=m(EC()),l=m(vC()),d=m(AC()),f=m(wC()),h=m(CC());function m(E){return E&&E.__esModule?E:{default:E}}var b=[["command",t.default],["composite",r.default],["input",n.default],["landmark",i.default],["range",o.default],["roletype",a.default],["section",s.default],["sectionhead",p.default],["select",l.default],["structure",d.default],["widget",f.default],["window",h.default]];e.default=b}}),TC=Q({"../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}}),SC=Q({"../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}}),xC=Q({"../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}}),DC=Q({"../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}}),RC=Q({"../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}}),PC=Q({"../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}}),OC=Q({"../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}}),FC=Q({"../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}}),NC=Q({"../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}}),IC=Q({"../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}}),BC=Q({"../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}}),kC=Q({"../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}}),MC=Q({"../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}}),qC=Q({"../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}}),jC=Q({"../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}}),LC=Q({"../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}}),VC=Q({"../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}}),$C=Q({"../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}}),UC=Q({"../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}}),JC=Q({"../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}}),HC=Q({"../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}}),GC=Q({"../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}}),zC=Q({"../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}}),WC=Q({"../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}}),YC=Q({"../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}}),KC=Q({"../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}}),XC=Q({"../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}}),QC=Q({"../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}}),ZC=Q({"../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}}),e_=Q({"../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}}),t_=Q({"../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}}),r_=Q({"../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}}),n_=Q({"../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}}),i_=Q({"../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}}),o_=Q({"../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}}),a_=Q({"../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}}),s_=Q({"../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}}),u_=Q({"../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}}),l_=Q({"../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}}),c_=Q({"../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}}),p_=Q({"../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}}),d_=Q({"../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}}),f_=Q({"../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}}),h_=Q({"../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}}),m_=Q({"../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}}),y_=Q({"../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}}),g_=Q({"../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}}),b_=Q({"../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}}),E_=Q({"../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}}),v_=Q({"../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}}),A_=Q({"../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}}),w_=Q({"../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}}),C_=Q({"../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({"../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}}),T_=Q({"../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}}),S_=Q({"../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}}),x_=Q({"../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}}),D_=Q({"../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}}),R_=Q({"../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}}),P_=Q({"../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}}),O_=Q({"../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}}),F_=Q({"../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}}),N_=Q({"../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}}),I_=Q({"../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}}),B_=Q({"../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}}),k_=Q({"../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}}),M_=Q({"../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}}),q_=Q({"../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}}),j_=Q({"../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}}),L_=Q({"../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}}),V_=Q({"../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}}),$_=Q({"../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}}),U_=Q({"../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}}),J_=Q({"../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}}),H_=Q({"../node_modules/aria-query/lib/etc/roles/literal/termRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dfn"},module:"HTML"},{concept:{name:"dt"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}}),G_=Q({"../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}}),z_=Q({"../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}}),W_=Q({"../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}}),Y_=Q({"../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}}),K_=Q({"../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}}),X_=Q({"../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}}),Q_=Q({"../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}}),Z_=Q({"../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}}),eT=Q({"../node_modules/aria-query/lib/etc/roles/ariaLiteralRoles.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=P(TC()),r=P(SC()),n=P(xC()),i=P(DC()),o=P(RC()),a=P(PC()),s=P(OC()),p=P(FC()),l=P(NC()),d=P(IC()),f=P(BC()),h=P(kC()),m=P(MC()),b=P(qC()),E=P(jC()),w=P(LC()),A=P(VC()),S=P($C()),k=P(UC()),O=P(JC()),R=P(HC()),y=P(GC()),T=P(zC()),_=P(WC()),D=P(YC()),J=P(KC()),M=P(XC()),G=P(QC()),L=P(ZC()),I=P(e_()),$=P(t_()),Y=P(r_()),X=P(n_()),oe=P(i_()),ve=P(o_()),De=P(a_()),z=P(s_()),K=P(u_()),be=P(l_()),me=P(c_()),fe=P(p_()),se=P(d_()),Te=P(f_()),Oe=P(h_()),Le=P(m_()),Z=P(y_()),de=P(g_()),Ae=P(b_()),xe=P(E_()),Se=P(v_()),Re=P(A_()),Pe=P(w_()),Me=P(C_()),st=P(__()),Ot=P(T_()),Ue=P(S_()),mt=P(x_()),Ye=P(D_()),Zt=P(R_()),Ft=P(P_()),ye=P(O_()),ct=P(F_()),Ie=P(N_()),vt=P(I_()),et=P(B_()),Er=P(k_()),xr=P(M_()),yt=P(q_()),Be=P(j_()),er=P(L_()),ot=P(V_()),$t=P($_()),kr=P(U_()),rt=P(J_()),At=P(H_()),tr=P(G_()),gt=P(z_()),nt=P(W_()),Nt=P(Y_()),Ne=P(K_()),C=P(X_()),B=P(Q_()),F=P(Z_());function P(ie){return ie&&ie.__esModule?ie:{default:ie}}var V=[["alert",t.default],["alertdialog",r.default],["application",n.default],["article",i.default],["banner",o.default],["blockquote",a.default],["button",s.default],["caption",p.default],["cell",l.default],["checkbox",d.default],["code",f.default],["columnheader",h.default],["combobox",m.default],["complementary",b.default],["contentinfo",E.default],["definition",w.default],["deletion",A.default],["dialog",S.default],["directory",k.default],["document",O.default],["emphasis",R.default],["feed",y.default],["figure",T.default],["form",_.default],["generic",D.default],["grid",J.default],["gridcell",M.default],["group",G.default],["heading",L.default],["img",I.default],["insertion",$.default],["link",Y.default],["list",X.default],["listbox",oe.default],["listitem",ve.default],["log",De.default],["main",z.default],["mark",K.default],["marquee",be.default],["math",me.default],["menu",fe.default],["menubar",se.default],["menuitem",Te.default],["menuitemcheckbox",Oe.default],["menuitemradio",Le.default],["meter",Z.default],["navigation",de.default],["none",Ae.default],["note",xe.default],["option",Se.default],["paragraph",Re.default],["presentation",Pe.default],["progressbar",Me.default],["radio",st.default],["radiogroup",Ot.default],["region",Ue.default],["row",mt.default],["rowgroup",Ye.default],["rowheader",Zt.default],["scrollbar",Ft.default],["search",ye.default],["searchbox",ct.default],["separator",Ie.default],["slider",vt.default],["spinbutton",et.default],["status",Er.default],["strong",xr.default],["subscript",yt.default],["superscript",Be.default],["switch",er.default],["tab",ot.default],["table",$t.default],["tablist",kr.default],["tabpanel",rt.default],["term",At.default],["textbox",tr.default],["time",gt.default],["timer",nt.default],["toolbar",Nt.default],["tooltip",Ne.default],["tree",C.default],["treegrid",B.default],["treeitem",F.default]];e.default=V}}),tT=Q({"../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}}),rT=Q({"../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}}),nT=Q({"../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}}),iT=Q({"../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}}),oT=Q({"../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}}),aT=Q({"../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}}),sT=Q({"../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}}),uT=Q({"../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}}),lT=Q({"../node_modules/aria-query/lib/etc/roles/dpub/docChapterRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"chapter [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}}),cT=Q({"../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}}),pT=Q({"../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}}),dT=Q({"../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}}),fT=Q({"../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}}),hT=Q({"../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}}),mT=Q({"../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}}),yT=Q({"../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}}),gT=Q({"../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}}),bT=Q({"../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}}),ET=Q({"../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}}),vT=Q({"../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}}),AT=Q({"../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}}),wT=Q({"../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}}),CT=Q({"../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}}),_T=Q({"../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}}),TT=Q({"../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}}),ST=Q({"../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}}),xT=Q({"../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}}),DT=Q({"../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}}),RT=Q({"../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}}),PT=Q({"../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}}),OT=Q({"../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}}),FT=Q({"../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}}),NT=Q({"../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}}),IT=Q({"../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}}),BT=Q({"../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}}),kT=Q({"../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}}),MT=Q({"../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}}),qT=Q({"../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}}),jT=Q({"../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}}),LT=Q({"../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}}),VT=Q({"../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}}),$T=Q({"../node_modules/aria-query/lib/etc/roles/ariaDpubRoles.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=se(tT()),r=se(rT()),n=se(nT()),i=se(iT()),o=se(oT()),a=se(aT()),s=se(sT()),p=se(uT()),l=se(lT()),d=se(cT()),f=se(pT()),h=se(dT()),m=se(fT()),b=se(hT()),E=se(mT()),w=se(yT()),A=se(gT()),S=se(bT()),k=se(ET()),O=se(vT()),R=se(AT()),y=se(wT()),T=se(CT()),_=se(_T()),D=se(TT()),J=se(ST()),M=se(xT()),G=se(DT()),L=se(RT()),I=se(PT()),$=se(OT()),Y=se(FT()),X=se(NT()),oe=se(IT()),ve=se(BT()),De=se(kT()),z=se(MT()),K=se(qT()),be=se(jT()),me=se(LT()),fe=se(VT());function se(Oe){return Oe&&Oe.__esModule?Oe:{default:Oe}}var Te=[["doc-abstract",t.default],["doc-acknowledgments",r.default],["doc-afterword",n.default],["doc-appendix",i.default],["doc-backlink",o.default],["doc-biblioentry",a.default],["doc-bibliography",s.default],["doc-biblioref",p.default],["doc-chapter",l.default],["doc-colophon",d.default],["doc-conclusion",f.default],["doc-cover",h.default],["doc-credit",m.default],["doc-credits",b.default],["doc-dedication",E.default],["doc-endnote",w.default],["doc-endnotes",A.default],["doc-epigraph",S.default],["doc-epilogue",k.default],["doc-errata",O.default],["doc-example",R.default],["doc-footnote",y.default],["doc-foreword",T.default],["doc-glossary",_.default],["doc-glossref",D.default],["doc-index",J.default],["doc-introduction",M.default],["doc-noteref",G.default],["doc-notice",L.default],["doc-pagebreak",I.default],["doc-pagefooter",$.default],["doc-pageheader",Y.default],["doc-pagelist",X.default],["doc-part",oe.default],["doc-preface",ve.default],["doc-prologue",De.default],["doc-pullquote",z.default],["doc-qna",K.default],["doc-subtitle",be.default],["doc-tip",me.default],["doc-toc",fe.default]];e.default=Te}}),UT=Q({"../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}}),JT=Q({"../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}}),HT=Q({"../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}}),GT=Q({"../node_modules/aria-query/lib/etc/roles/ariaGraphicsRoles.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=i(UT()),r=i(JT()),n=i(HT());function i(a){return a&&a.__esModule?a:{default:a}}var o=[["graphics-document",t.default],["graphics-object",r.default],["graphics-symbol",n.default]];e.default=o}}),Jl=Q({"../node_modules/aria-query/lib/rolesMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=a(_C()),r=a(eT()),n=a($T()),i=a(GT()),o=a(Bo());function a(w){return w&&w.__esModule?w:{default:w}}function s(w,A){var S=typeof Symbol<"u"&&w[Symbol.iterator]||w["@@iterator"];if(!S){if(Array.isArray(w)||(S=d(w))||A){S&&(w=S);var k=0,O=function(){};return{s:O,n:function(){return k>=w.length?{done:!0}:{done:!1,value:w[k++]}},e:function(_){throw _},f:O}}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 R,y=!0,T=!1;return{s:function(){S=S.call(w)},n:function(){var _=S.next();return y=_.done,_},e:function(_){T=!0,R=_},f:function(){try{y||S.return==null||S.return()}finally{if(T)throw R}}}}function p(w,A){return m(w)||h(w,A)||d(w,A)||l()}function l(){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.`)}function d(w,A){if(w){if(typeof w=="string")return f(w,A);var S={}.toString.call(w).slice(8,-1);return S==="Object"&&w.constructor&&(S=w.constructor.name),S==="Map"||S==="Set"?Array.from(w):S==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S)?f(w,A):void 0}}function f(w,A){(A==null||A>w.length)&&(A=w.length);for(var S=0,k=Array(A);S<A;S++)k[S]=w[S];return k}function h(w,A){var S=w==null?null:typeof Symbol<"u"&&w[Symbol.iterator]||w["@@iterator"];if(S!=null){var k,O,R,y,T=[],_=!0,D=!1;try{if(R=(S=S.call(w)).next,A===0){if(Object(S)!==S)return;_=!1}else for(;!(_=(k=R.call(S)).done)&&(T.push(k.value),T.length!==A);_=!0);}catch(J){D=!0,O=J}finally{try{if(!_&&S.return!=null&&(y=S.return(),Object(y)!==y))return}finally{if(D)throw O}}return T}}function m(w){if(Array.isArray(w))return w}var b=[].concat(t.default,r.default,n.default,i.default);b.forEach(function(w){var A=p(w,2),S=A[1],k=s(S.superClass),O;try{for(k.s();!(O=k.n()).done;){var R=O.value,y=s(R),T;try{var _=function(){var D=T.value,J=b.filter(function($){var Y=p($,1),X=Y[0];return X===D})[0];if(J)for(var M=J[1],G=0,L=Object.keys(M.props);G<L.length;G++){var I=L[G];Object.prototype.hasOwnProperty.call(S.props,I)||(S.props[I]=M.props[I])}};for(y.s();!(T=y.n()).done;)_()}catch(D){y.e(D)}finally{y.f()}}}catch(D){k.e(D)}finally{k.f()}});var E={entries:function(){return b},forEach:function(w){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,S=s(b),k;try{for(S.s();!(k=S.n()).done;){var O=p(k.value,2),R=O[0],y=O[1];w.call(A,y,R,b)}}catch(T){S.e(T)}finally{S.f()}},get:function(w){var A=b.filter(function(S){return S[0]===w})[0];return A&&A[1]},has:function(w){return!!E.get(w)},keys:function(){return b.map(function(w){var A=p(w,1),S=A[0];return S})},values:function(){return b.map(function(w){var A=p(w,2),S=A[1];return S})}};e.default=(0,o.default)(E,E.entries())}}),zT=Q({"../node_modules/aria-query/lib/elementRoleMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(Bo()),r=n(Jl());function n(y){return y&&y.__esModule?y:{default:y}}function i(y,T){return l(y)||p(y,T)||a(y,T)||o()}function o(){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.`)}function a(y,T){if(y){if(typeof y=="string")return s(y,T);var _={}.toString.call(y).slice(8,-1);return _==="Object"&&y.constructor&&(_=y.constructor.name),_==="Map"||_==="Set"?Array.from(y):_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_)?s(y,T):void 0}}function s(y,T){(T==null||T>y.length)&&(T=y.length);for(var _=0,D=Array(T);_<T;_++)D[_]=y[_];return D}function p(y,T){var _=y==null?null:typeof Symbol<"u"&&y[Symbol.iterator]||y["@@iterator"];if(_!=null){var D,J,M,G,L=[],I=!0,$=!1;try{if(M=(_=_.call(y)).next,T===0){if(Object(_)!==_)return;I=!1}else for(;!(I=(D=M.call(_)).done)&&(L.push(D.value),L.length!==T);I=!0);}catch(Y){$=!0,J=Y}finally{try{if(!I&&_.return!=null&&(G=_.return(),Object(G)!==G))return}finally{if($)throw J}}return L}}function l(y){if(Array.isArray(y))return y}var d=[],f=r.default.keys();for(A=0;A<f.length;A++)if(h=f[A],m=r.default.get(h),m)for(b=[].concat(m.baseConcepts,m.relatedConcepts),E=function(){var y=b[w];if(y.module==="HTML"){var T=y.concept;if(T){var _=d.filter(function(G){return k(G[0],T)})[0],D;_?D=_[1]:D=[];for(var J=!0,M=0;M<D.length;M++)if(D[M]===h){J=!1;break}J&&D.push(h),_||d.push([T,D])}}},w=0;w<b.length;w++)E();var h,m,b,E,w,A,S={entries:function(){return d},forEach:function(y){for(var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,_=0,D=d;_<D.length;_++){var J=i(D[_],2),M=J[0],G=J[1];y.call(T,G,M,d)}},get:function(y){var T=d.filter(function(_){return y.name===_[0].name&&R(y.attributes,_[0].attributes)})[0];return T&&T[1]},has:function(y){return!!S.get(y)},keys:function(){return d.map(function(y){var T=i(y,1),_=T[0];return _})},values:function(){return d.map(function(y){var T=i(y,2),_=T[1];return _})}};function k(y,T){return y.name===T.name&&O(y.constraints,T.constraints)&&R(y.attributes,T.attributes)}function O(y,T){if(y===void 0&&T!==void 0||y!==void 0&&T===void 0)return!1;if(y!==void 0&&T!==void 0){if(y.length!==T.length)return!1;for(var _=0;_<y.length;_++)if(y[_]!==T[_])return!1}return!0}function R(y,T){if(y===void 0&&T!==void 0||y!==void 0&&T===void 0)return!1;if(y!==void 0&&T!==void 0){if(y.length!==T.length)return!1;for(var _=0;_<y.length;_++){if(y[_].name!==T[_].name||y[_].value!==T[_].value||y[_].constraints===void 0&&T[_].constraints!==void 0||y[_].constraints!==void 0&&T[_].constraints===void 0)return!1;if(y[_].constraints!==void 0&&T[_].constraints!==void 0){if(y[_].constraints.length!==T[_].constraints.length)return!1;for(var D=0;D<y[_].constraints.length;D++)if(y[_].constraints[D]!==T[_].constraints[D])return!1}}}return!0}e.default=(0,t.default)(S,S.entries())}}),WT=Q({"../node_modules/aria-query/lib/roleElementMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(Bo()),r=n(Jl());function n(R){return R&&R.__esModule?R:{default:R}}function i(R,y){return l(R)||p(R,y)||a(R,y)||o()}function o(){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.`)}function a(R,y){if(R){if(typeof R=="string")return s(R,y);var T={}.toString.call(R).slice(8,-1);return T==="Object"&&R.constructor&&(T=R.constructor.name),T==="Map"||T==="Set"?Array.from(R):T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T)?s(R,y):void 0}}function s(R,y){(y==null||y>R.length)&&(y=R.length);for(var T=0,_=Array(y);T<y;T++)_[T]=R[T];return _}function p(R,y){var T=R==null?null:typeof Symbol<"u"&&R[Symbol.iterator]||R["@@iterator"];if(T!=null){var _,D,J,M,G=[],L=!0,I=!1;try{if(J=(T=T.call(R)).next,y===0){if(Object(T)!==T)return;L=!1}else for(;!(L=(_=J.call(T)).done)&&(G.push(_.value),G.length!==y);L=!0);}catch($){I=!0,D=$}finally{try{if(!L&&T.return!=null&&(M=T.return(),Object(M)!==M))return}finally{if(I)throw D}}return G}}function l(R){if(Array.isArray(R))return R}var d=[],f=r.default.keys();for(k=0;k<f.length;k++)if(h=f[k],m=r.default.get(h),b=[],m){for(E=[].concat(m.baseConcepts,m.relatedConcepts),S=0;S<E.length;S++)w=E[S],w.module==="HTML"&&(A=w.concept,A!=null&&b.push(A));b.length>0&&d.push([h,b])}var h,m,b,E,w,A,S,k,O={entries:function(){return d},forEach:function(R){for(var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,T=0,_=d;T<_.length;T++){var D=i(_[T],2),J=D[0],M=D[1];R.call(y,M,J,d)}},get:function(R){var y=d.filter(function(T){return T[0]===R})[0];return y&&y[1]},has:function(R){return!!O.get(R)},keys:function(){return d.map(function(R){var y=i(R,1),T=y[0];return T})},values:function(){return d.map(function(R){var y=i(R,2),T=y[1];return T})}};e.default=(0,t.default)(O,O.entries())}}),Hl=Q({"../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(cC()),r=a(pC()),n=a(Jl()),i=a(zT()),o=a(WT());function a(s){return s&&s.__esModule?s:{default:s}}e.aria=t.default,e.dom=r.default,e.roles=n.default,e.elementRoles=i.default,e.roleElements=o.default}}),km=Q({"../node_modules/picocolors/picocolors.browser.js"(e,t){var r=String,n=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}};t.exports=n(),t.exports.createColors=n}}),Mm=Q({"../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=function(i){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");for(var o=String(i),a=o.length,s=-1,p,l="",d=o.charCodeAt(0);++s<a;){if(p=o.charCodeAt(s),p==0){l+="�";continue}if(p>=1&&p<=31||p==127||s==0&&p>=48&&p<=57||s==1&&p>=48&&p<=57&&d==45){l+="\\"+p.toString(16)+" ";continue}if(s==0&&a==1&&p==45){l+="\\"+o.charAt(s);continue}if(p>=128||p==45||p==95||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122){l+=o.charAt(s);continue}l+="\\"+o.charAt(s)}return l};return r.CSS||(r.CSS={}),r.CSS.escape=n,n})}}),qm=Q({"../node_modules/pretty-format/node_modules/ansi-styles/index.js"(e,t){var r=(o=0)=>a=>`\x1B[${38+o};5;${a}m`,n=(o=0)=>(a,s,p)=>`\x1B[${38+o};2;${a};${s};${p}m`;function i(){let o=new Map,a={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]}};a.color.gray=a.color.blackBright,a.bgColor.bgGray=a.bgColor.bgBlackBright,a.color.grey=a.color.blackBright,a.bgColor.bgGrey=a.bgColor.bgBlackBright;for(let[s,p]of Object.entries(a)){for(let[l,d]of Object.entries(p))a[l]={open:`\x1B[${d[0]}m`,close:`\x1B[${d[1]}m`},p[l]=a[l],o.set(d[0],d[1]);Object.defineProperty(a,s,{value:p,enumerable:!1})}return Object.defineProperty(a,"codes",{value:o,enumerable:!1}),a.color.close="\x1B[39m",a.bgColor.close="\x1B[49m",a.color.ansi256=r(),a.color.ansi16m=n(),a.bgColor.ansi256=r(10),a.bgColor.ansi16m=n(10),Object.defineProperties(a,{rgbToAnsi256:{value:(s,p,l)=>s===p&&p===l?s<8?16:s>248?231:Math.round((s-8)/247*24)+232:16+36*Math.round(s/255*5)+6*Math.round(p/255*5)+Math.round(l/255*5),enumerable:!1},hexToRgb:{value:s=>{let p=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(s.toString(16));if(!p)return[0,0,0];let{colorString:l}=p.groups;l.length===3&&(l=l.split("").map(f=>f+f).join(""));let d=Number.parseInt(l,16);return[d>>16&255,d>>8&255,d&255]},enumerable:!1},hexToAnsi256:{value:s=>a.rgbToAnsi256(...a.hexToRgb(s)),enumerable:!1}}),a}Object.defineProperty(t,"exports",{enumerable:!0,get:i})}}),ts=Q({"../node_modules/pretty-format/build/collections.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.printIteratorEntries=r,e.printIteratorValues=n,e.printListItems=i,e.printObjectProperties=o;var t=(a,s)=>{let p=Object.keys(a).sort(s);return Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(a).forEach(l=>{Object.getOwnPropertyDescriptor(a,l).enumerable&&p.push(l)}),p};function r(a,s,p,l,d,f,h=": "){let m="",b=a.next();if(!b.done){m+=s.spacingOuter;let E=p+s.indent;for(;!b.done;){let w=f(b.value[0],s,E,l,d),A=f(b.value[1],s,E,l,d);m+=E+w+h+A,b=a.next(),b.done?s.min||(m+=","):m+=","+s.spacingInner}m+=s.spacingOuter+p}return m}function n(a,s,p,l,d,f){let h="",m=a.next();if(!m.done){h+=s.spacingOuter;let b=p+s.indent;for(;!m.done;)h+=b+f(m.value,s,b,l,d),m=a.next(),m.done?s.min||(h+=","):h+=","+s.spacingInner;h+=s.spacingOuter+p}return h}function i(a,s,p,l,d,f){let h="";if(a.length){h+=s.spacingOuter;let m=p+s.indent;for(let b=0;b<a.length;b++)h+=m,b in a&&(h+=f(a[b],s,m,l,d)),b<a.length-1?h+=","+s.spacingInner:s.min||(h+=",");h+=s.spacingOuter+p}return h}function o(a,s,p,l,d,f){let h="",m=t(a,s.compareKeys);if(m.length){h+=s.spacingOuter;let b=p+s.indent;for(let E=0;E<m.length;E++){let w=m[E],A=f(w,s,b,l,d),S=f(a[w],s,b,l,d);h+=b+A+": "+S,E<m.length-1?h+=","+s.spacingInner:s.min||(h+=",")}h+=s.spacingOuter+p}return h}}}),YT=Q({"../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=ts(),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,i=typeof n=="function"&&n.for?n.for("jest.asymmetricMatcher"):1267621,o=" ",a=(d,f,h,m,b,E)=>{let w=d.toString();return w==="ArrayContaining"||w==="ArrayNotContaining"?++m>f.maxDepth?"["+w+"]":w+o+"["+(0,t.printListItems)(d.sample,f,h,m,b,E)+"]":w==="ObjectContaining"||w==="ObjectNotContaining"?++m>f.maxDepth?"["+w+"]":w+o+"{"+(0,t.printObjectProperties)(d.sample,f,h,m,b,E)+"}":w==="StringMatching"||w==="StringNotMatching"||w==="StringContaining"||w==="StringNotContaining"?w+o+E(d.sample,f,h,m,b):d.toAsymmetricMatcher()};e.serialize=a;var s=d=>d&&d.$$typeof===i;e.test=s;var p={serialize:a,test:s},l=p;e.default=l}}),KT=Q({"../node_modules/pretty-format/node_modules/ansi-regex/index.js"(e,t){t.exports=({onlyFirst:r=!1}={})=>{let 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")}}}),XT=Q({"../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(KT()),r=n(qm());function n(l){return l&&l.__esModule?l:{default:l}}var i=l=>l.replace((0,t.default)(),d=>{switch(d){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""}}),o=l=>typeof l=="string"&&!!l.match((0,t.default)());e.test=o;var a=(l,d,f,h,m,b)=>b(i(l),d,f,h,m);e.serialize=a;var s={serialize:a,test:o},p=s;e.default=p}}),QT=Q({"../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=ts(),r=" ",n=["DOMStringMap","NamedNodeMap"],i=/^(HTML\w*Collection|NodeList)$/,o=f=>n.indexOf(f)!==-1||i.test(f),a=f=>f&&f.constructor&&!!f.constructor.name&&o(f.constructor.name);e.test=a;var s=f=>f.constructor.name==="NamedNodeMap",p=(f,h,m,b,E,w)=>{let A=f.constructor.name;return++b>h.maxDepth?"["+A+"]":(h.min?"":A+r)+(n.indexOf(A)!==-1?"{"+(0,t.printObjectProperties)(s(f)?Array.from(f).reduce((S,k)=>(S[k.name]=k.value,S),{}):{...f},h,m,b,E,w)+"}":"["+(0,t.printListItems)(Array.from(f),h,m,b,E,w)+"]")};e.serialize=p;var l={serialize:p,test:a},d=l;e.default=d}}),ZT=Q({"../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,">")}}}),Gl=Q({"../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(ZT());function r(l){return l&&l.__esModule?l:{default:l}}var n=(l,d,f,h,m,b,E)=>{let w=h+f.indent,A=f.colors;return l.map(S=>{let k=d[S],O=E(k,f,w,m,b);return typeof k!="string"&&(O.indexOf(`
|
|
9
|
+
`)!==-1&&(O=f.spacingOuter+w+O+f.spacingOuter+h),O="{"+O+"}"),f.spacingInner+h+A.prop.open+S+A.prop.close+"="+A.value.open+O+A.value.close}).join("")};e.printProps=n;var i=(l,d,f,h,m,b)=>l.map(E=>d.spacingOuter+f+(typeof E=="string"?o(E,d):b(E,d,f,h,m))).join("");e.printChildren=i;var o=(l,d)=>{let f=d.colors.content;return f.open+(0,t.default)(l)+f.close};e.printText=o;var a=(l,d)=>{let f=d.colors.comment;return f.open+"<!--"+(0,t.default)(l)+"-->"+f.close};e.printComment=a;var s=(l,d,f,h,m)=>{let b=h.colors.tag;return b.open+"<"+l+(d&&b.close+d+h.spacingOuter+m+b.open)+(f?">"+b.close+f+h.spacingOuter+m+b.open+"</"+l:(d&&!h.min?"":" ")+"/")+">"+b.close};e.printElement=s;var p=(l,d)=>{let f=d.colors.tag;return f.open+"<"+l+f.close+" …"+f.open+" />"+f.close};e.printElementAsLeaf=p}}),eS=Q({"../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=Gl(),r=1,n=3,i=8,o=11,a=/^((HTML|SVG)\w*)?Element$/,s=w=>{try{return typeof w.hasAttribute=="function"&&w.hasAttribute("is")}catch{return!1}},p=w=>{let A=w.constructor.name,{nodeType:S,tagName:k}=w,O=typeof k=="string"&&k.includes("-")||s(w);return S===r&&(a.test(A)||O)||S===n&&A==="Text"||S===i&&A==="Comment"||S===o&&A==="DocumentFragment"},l=w=>{var A;return(w==null||(A=w.constructor)===null||A===void 0?void 0:A.name)&&p(w)};e.test=l;function d(w){return w.nodeType===n}function f(w){return w.nodeType===i}function h(w){return w.nodeType===o}var m=(w,A,S,k,O,R)=>{if(d(w))return(0,t.printText)(w.data,A);if(f(w))return(0,t.printComment)(w.data,A);let y=h(w)?"DocumentFragment":w.tagName.toLowerCase();return++k>A.maxDepth?(0,t.printElementAsLeaf)(y,A):(0,t.printElement)(y,(0,t.printProps)(h(w)?[]:Array.from(w.attributes).map(T=>T.name).sort(),h(w)?{}:Array.from(w.attributes).reduce((T,_)=>(T[_.name]=_.value,T),{}),A,S+A.indent,k,O,R),(0,t.printChildren)(Array.prototype.slice.call(w.childNodes||w.children),A,S+A.indent,k,O,R),A,S)};e.serialize=m;var b={serialize:m,test:l},E=b;e.default=E}}),tS=Q({"../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=ts(),r="@@__IMMUTABLE_ITERABLE__@@",n="@@__IMMUTABLE_LIST__@@",i="@@__IMMUTABLE_KEYED__@@",o="@@__IMMUTABLE_MAP__@@",a="@@__IMMUTABLE_ORDERED__@@",s="@@__IMMUTABLE_RECORD__@@",p="@@__IMMUTABLE_SEQ__@@",l="@@__IMMUTABLE_SET__@@",d="@@__IMMUTABLE_STACK__@@",f=_=>"Immutable."+_,h=_=>"["+_+"]",m=" ",b="…",E=(_,D,J,M,G,L,I)=>++M>D.maxDepth?h(f(I)):f(I)+m+"{"+(0,t.printIteratorEntries)(_.entries(),D,J,M,G,L)+"}";function w(_){let D=0;return{next(){if(D<_._keys.length){let J=_._keys[D++];return{done:!1,value:[J,_.get(J)]}}return{done:!0,value:void 0}}}}var A=(_,D,J,M,G,L)=>{let I=f(_._name||"Record");return++M>D.maxDepth?h(I):I+m+"{"+(0,t.printIteratorEntries)(w(_),D,J,M,G,L)+"}"},S=(_,D,J,M,G,L)=>{let I=f("Seq");return++M>D.maxDepth?h(I):_[i]?I+m+"{"+(_._iter||_._object?(0,t.printIteratorEntries)(_.entries(),D,J,M,G,L):b)+"}":I+m+"["+(_._iter||_._array||_._collection||_._iterable?(0,t.printIteratorValues)(_.values(),D,J,M,G,L):b)+"]"},k=(_,D,J,M,G,L,I)=>++M>D.maxDepth?h(f(I)):f(I)+m+"["+(0,t.printIteratorValues)(_.values(),D,J,M,G,L)+"]",O=(_,D,J,M,G,L)=>_[o]?E(_,D,J,M,G,L,_[a]?"OrderedMap":"Map"):_[n]?k(_,D,J,M,G,L,"List"):_[l]?k(_,D,J,M,G,L,_[a]?"OrderedSet":"Set"):_[d]?k(_,D,J,M,G,L,"Stack"):_[p]?S(_,D,J,M,G,L):A(_,D,J,M,G,L);e.serialize=O;var R=_=>_&&(_[r]===!0||_[s]===!0);e.test=R;var y={serialize:O,test:R},T=y;e.default=T}}),rS=Q({"../node_modules/pretty-format/node_modules/react-is/cjs/react-is.production.min.js"(e){var t=60103,r=60106,n=60107,i=60108,o=60114,a=60109,s=60110,p=60112,l=60113,d=60120,f=60115,h=60116,m=60121,b=60122,E=60117,w=60129,A=60131;typeof Symbol=="function"&&Symbol.for&&(S=Symbol.for,t=S("react.element"),r=S("react.portal"),n=S("react.fragment"),i=S("react.strict_mode"),o=S("react.profiler"),a=S("react.provider"),s=S("react.context"),p=S("react.forward_ref"),l=S("react.suspense"),d=S("react.suspense_list"),f=S("react.memo"),h=S("react.lazy"),m=S("react.block"),b=S("react.server.block"),E=S("react.fundamental"),w=S("react.debug_trace_mode"),A=S("react.legacy_hidden"));var S;function k(I){if(typeof I=="object"&&I!==null){var $=I.$$typeof;switch($){case t:switch(I=I.type,I){case n:case o:case i:case l:case d:return I;default:switch(I=I&&I.$$typeof,I){case s:case p:case h:case f:case a:return I;default:return $}}case r:return $}}}var O=a,R=t,y=p,T=n,_=h,D=f,J=r,M=o,G=i,L=l;e.ContextConsumer=s,e.ContextProvider=O,e.Element=R,e.ForwardRef=y,e.Fragment=T,e.Lazy=_,e.Memo=D,e.Portal=J,e.Profiler=M,e.StrictMode=G,e.Suspense=L,e.isAsyncMode=function(){return!1},e.isConcurrentMode=function(){return!1},e.isContextConsumer=function(I){return k(I)===s},e.isContextProvider=function(I){return k(I)===a},e.isElement=function(I){return typeof I=="object"&&I!==null&&I.$$typeof===t},e.isForwardRef=function(I){return k(I)===p},e.isFragment=function(I){return k(I)===n},e.isLazy=function(I){return k(I)===h},e.isMemo=function(I){return k(I)===f},e.isPortal=function(I){return k(I)===r},e.isProfiler=function(I){return k(I)===o},e.isStrictMode=function(I){return k(I)===i},e.isSuspense=function(I){return k(I)===l},e.isValidElementType=function(I){return typeof I=="string"||typeof I=="function"||I===n||I===o||I===w||I===i||I===l||I===d||I===A||typeof I=="object"&&I!==null&&(I.$$typeof===h||I.$$typeof===f||I.$$typeof===a||I.$$typeof===s||I.$$typeof===p||I.$$typeof===E||I.$$typeof===m||I[0]===b)},e.typeOf=k}}),nS=Q({"../node_modules/pretty-format/node_modules/react-is/index.js"(e,t){t.exports=rS()}}),iS=Q({"../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=i(nS()),r=Gl();function n(h){if(typeof WeakMap!="function")return null;var m=new WeakMap,b=new WeakMap;return(n=function(E){return E?b:m})(h)}function i(h,m){if(h&&h.__esModule)return h;if(h===null||typeof h!="object"&&typeof h!="function")return{default:h};var b=n(m);if(b&&b.has(h))return b.get(h);var E={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var A in h)if(A!=="default"&&Object.prototype.hasOwnProperty.call(h,A)){var S=w?Object.getOwnPropertyDescriptor(h,A):null;S&&(S.get||S.set)?Object.defineProperty(E,A,S):E[A]=h[A]}return E.default=h,b&&b.set(h,E),E}var o=(h,m=[])=>(Array.isArray(h)?h.forEach(b=>{o(b,m)}):h!=null&&h!==!1&&m.push(h),m),a=h=>{let m=h.type;if(typeof m=="string")return m;if(typeof m=="function")return m.displayName||m.name||"Unknown";if(t.isFragment(h))return"React.Fragment";if(t.isSuspense(h))return"React.Suspense";if(typeof m=="object"&&m!==null){if(t.isContextProvider(h))return"Context.Provider";if(t.isContextConsumer(h))return"Context.Consumer";if(t.isForwardRef(h)){if(m.displayName)return m.displayName;let b=m.render.displayName||m.render.name||"";return b!==""?"ForwardRef("+b+")":"ForwardRef"}if(t.isMemo(h)){let b=m.displayName||m.type.displayName||m.type.name||"";return b!==""?"Memo("+b+")":"Memo"}}return"UNDEFINED"},s=h=>{let{props:m}=h;return Object.keys(m).filter(b=>b!=="children"&&m[b]!==void 0).sort()},p=(h,m,b,E,w,A)=>++E>m.maxDepth?(0,r.printElementAsLeaf)(a(h),m):(0,r.printElement)(a(h),(0,r.printProps)(s(h),h.props,m,b+m.indent,E,w,A),(0,r.printChildren)(o(h.props.children),m,b+m.indent,E,w,A),m,b);e.serialize=p;var l=h=>h!=null&&t.isElement(h);e.test=l;var d={serialize:p,test:l},f=d;e.default=f}}),oS=Q({"../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=Gl(),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,i=typeof n=="function"&&n.for?n.for("react.test.json"):245830487,o=d=>{let{props:f}=d;return f?Object.keys(f).filter(h=>f[h]!==void 0).sort():[]},a=(d,f,h,m,b,E)=>++m>f.maxDepth?(0,t.printElementAsLeaf)(d.type,f):(0,t.printElement)(d.type,d.props?(0,t.printProps)(o(d),d.props,f,h+f.indent,m,b,E):"",d.children?(0,t.printChildren)(d.children,f,h+f.indent,m,b,E):"",f,h);e.serialize=a;var s=d=>d&&d.$$typeof===i;e.test=s;var p={serialize:a,test:s},l=p;e.default=l}}),aS=Q({"../node_modules/pretty-format/build/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.DEFAULT_OPTIONS=void 0,e.format=Te,e.plugins=void 0;var t=d(qm()),r=ts(),n=d(YT()),i=d(XT()),o=d(QT()),a=d(eS()),s=d(tS()),p=d(iS()),l=d(oS());function d(Z){return Z&&Z.__esModule?Z:{default:Z}}var f=Object.prototype.toString,h=Date.prototype.toISOString,m=Error.prototype.toString,b=RegExp.prototype.toString,E=Z=>typeof Z.constructor=="function"&&Z.constructor.name||"Object",w=Z=>typeof window<"u"&&Z===window,A=/^Symbol\((.*)\)(.*)$/,S=/\n/gi,k=class extends Error{constructor(Z,de){super(Z),this.stack=de,this.name=this.constructor.name}};function O(Z){return Z==="[object Array]"||Z==="[object ArrayBuffer]"||Z==="[object DataView]"||Z==="[object Float32Array]"||Z==="[object Float64Array]"||Z==="[object Int8Array]"||Z==="[object Int16Array]"||Z==="[object Int32Array]"||Z==="[object Uint8Array]"||Z==="[object Uint8ClampedArray]"||Z==="[object Uint16Array]"||Z==="[object Uint32Array]"}function R(Z){return Object.is(Z,-0)?"-0":String(Z)}function y(Z){return`${Z}n`}function T(Z,de){return de?"[Function "+(Z.name||"anonymous")+"]":"[Function]"}function _(Z){return String(Z).replace(A,"Symbol($1)")}function D(Z){return"["+m.call(Z)+"]"}function J(Z,de,Ae,xe){if(Z===!0||Z===!1)return""+Z;if(Z===void 0)return"undefined";if(Z===null)return"null";let Se=typeof Z;if(Se==="number")return R(Z);if(Se==="bigint")return y(Z);if(Se==="string")return xe?'"'+Z.replace(/"|\\/g,"\\$&")+'"':'"'+Z+'"';if(Se==="function")return T(Z,de);if(Se==="symbol")return _(Z);let Re=f.call(Z);return Re==="[object WeakMap]"?"WeakMap {}":Re==="[object WeakSet]"?"WeakSet {}":Re==="[object Function]"||Re==="[object GeneratorFunction]"?T(Z,de):Re==="[object Symbol]"?_(Z):Re==="[object Date]"?isNaN(+Z)?"Date { NaN }":h.call(Z):Re==="[object Error]"?D(Z):Re==="[object RegExp]"?Ae?b.call(Z).replace(/[\\^$*+?.()|[\]{}]/g,"\\$&"):b.call(Z):Z instanceof Error?D(Z):null}function M(Z,de,Ae,xe,Se,Re){if(Se.indexOf(Z)!==-1)return"[Circular]";Se=Se.slice(),Se.push(Z);let Pe=++xe>de.maxDepth,Me=de.min;if(de.callToJSON&&!Pe&&Z.toJSON&&typeof Z.toJSON=="function"&&!Re)return $(Z.toJSON(),de,Ae,xe,Se,!0);let st=f.call(Z);return st==="[object Arguments]"?Pe?"[Arguments]":(Me?"":"Arguments ")+"["+(0,r.printListItems)(Z,de,Ae,xe,Se,$)+"]":O(st)?Pe?"["+Z.constructor.name+"]":(Me||!de.printBasicPrototype&&Z.constructor.name==="Array"?"":Z.constructor.name+" ")+"["+(0,r.printListItems)(Z,de,Ae,xe,Se,$)+"]":st==="[object Map]"?Pe?"[Map]":"Map {"+(0,r.printIteratorEntries)(Z.entries(),de,Ae,xe,Se,$," => ")+"}":st==="[object Set]"?Pe?"[Set]":"Set {"+(0,r.printIteratorValues)(Z.values(),de,Ae,xe,Se,$)+"}":Pe||w(Z)?"["+E(Z)+"]":(Me||!de.printBasicPrototype&&E(Z)==="Object"?"":E(Z)+" ")+"{"+(0,r.printObjectProperties)(Z,de,Ae,xe,Se,$)+"}"}function G(Z){return Z.serialize!=null}function L(Z,de,Ae,xe,Se,Re){let Pe;try{Pe=G(Z)?Z.serialize(de,Ae,xe,Se,Re,$):Z.print(de,Me=>$(Me,Ae,xe,Se,Re),Me=>{let st=xe+Ae.indent;return st+Me.replace(S,`
|
|
10
|
+
`+st)},{edgeSpacing:Ae.spacingOuter,min:Ae.min,spacing:Ae.spacingInner},Ae.colors)}catch(Me){throw new k(Me.message,Me.stack)}if(typeof Pe!="string")throw new Error(`pretty-format: Plugin must return type "string" but instead returned "${typeof Pe}".`);return Pe}function I(Z,de){for(let Ae=0;Ae<Z.length;Ae++)try{if(Z[Ae].test(de))return Z[Ae]}catch(xe){throw new k(xe.message,xe.stack)}return null}function $(Z,de,Ae,xe,Se,Re){let Pe=I(de.plugins,Z);if(Pe!==null)return L(Pe,Z,de,Ae,xe,Se);let Me=J(Z,de.printFunctionName,de.escapeRegex,de.escapeString);return Me!==null?Me:M(Z,de,Ae,xe,Se,Re)}var Y={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},X=Object.keys(Y),oe={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:1/0,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:Y};e.DEFAULT_OPTIONS=oe;function ve(Z){if(Object.keys(Z).forEach(de=>{if(!oe.hasOwnProperty(de))throw new Error(`pretty-format: Unknown option "${de}".`)}),Z.min&&Z.indent!==void 0&&Z.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.');if(Z.theme!==void 0){if(Z.theme===null)throw new Error('pretty-format: Option "theme" must not be null.');if(typeof Z.theme!="object")throw new Error(`pretty-format: Option "theme" must be of type "object" but instead received "${typeof Z.theme}".`)}}var De=Z=>X.reduce((de,Ae)=>{let xe=Z.theme&&Z.theme[Ae]!==void 0?Z.theme[Ae]:Y[Ae],Se=xe&&t.default[xe];if(Se&&typeof Se.close=="string"&&typeof Se.open=="string")de[Ae]=Se;else throw new Error(`pretty-format: Option "theme" has a key "${Ae}" whose value "${xe}" is undefined in ansi-styles.`);return de},Object.create(null)),z=()=>X.reduce((Z,de)=>(Z[de]={close:"",open:""},Z),Object.create(null)),K=Z=>Z&&Z.printFunctionName!==void 0?Z.printFunctionName:oe.printFunctionName,be=Z=>Z&&Z.escapeRegex!==void 0?Z.escapeRegex:oe.escapeRegex,me=Z=>Z&&Z.escapeString!==void 0?Z.escapeString:oe.escapeString,fe=Z=>{var de;return{callToJSON:Z&&Z.callToJSON!==void 0?Z.callToJSON:oe.callToJSON,colors:Z&&Z.highlight?De(Z):z(),compareKeys:Z&&typeof Z.compareKeys=="function"?Z.compareKeys:oe.compareKeys,escapeRegex:be(Z),escapeString:me(Z),indent:Z&&Z.min?"":se(Z&&Z.indent!==void 0?Z.indent:oe.indent),maxDepth:Z&&Z.maxDepth!==void 0?Z.maxDepth:oe.maxDepth,min:Z&&Z.min!==void 0?Z.min:oe.min,plugins:Z&&Z.plugins!==void 0?Z.plugins:oe.plugins,printBasicPrototype:(de=Z?.printBasicPrototype)!==null&&de!==void 0?de:!0,printFunctionName:K(Z),spacingInner:Z&&Z.min?" ":`
|
|
11
|
+
`,spacingOuter:Z&&Z.min?"":`
|
|
12
|
+
`}};function se(Z){return new Array(Z+1).join(" ")}function Te(Z,de){if(de&&(ve(de),de.plugins)){let xe=I(de.plugins,Z);if(xe!==null)return L(xe,Z,fe(de),"",0,[])}let Ae=J(Z,K(de),be(de),me(de));return Ae!==null?Ae:M(Z,fe(de),"",0,[])}var Oe={AsymmetricMatcher:n.default,ConvertAnsi:i.default,DOMCollection:o.default,DOMElement:a.default,Immutable:s.default,ReactElement:p.default,ReactTestComponent:l.default};e.plugins=Oe;var Le=Te;e.default=Le}}),sS=Q({"../node_modules/lz-string/libs/lz-string.js"(e,t){var r=(function(){var n=String.fromCharCode,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",a={};function s(l,d){if(!a[l]){a[l]={};for(var f=0;f<l.length;f++)a[l][l.charAt(f)]=f}return a[l][d]}var p={compressToBase64:function(l){if(l==null)return"";var d=p._compress(l,6,function(f){return i.charAt(f)});switch(d.length%4){default:case 0:return d;case 1:return d+"===";case 2:return d+"==";case 3:return d+"="}},decompressFromBase64:function(l){return l==null?"":l==""?null:p._decompress(l.length,32,function(d){return s(i,l.charAt(d))})},compressToUTF16:function(l){return l==null?"":p._compress(l,15,function(d){return n(d+32)})+" "},decompressFromUTF16:function(l){return l==null?"":l==""?null:p._decompress(l.length,16384,function(d){return l.charCodeAt(d)-32})},compressToUint8Array:function(l){for(var d=p.compress(l),f=new Uint8Array(d.length*2),h=0,m=d.length;h<m;h++){var b=d.charCodeAt(h);f[h*2]=b>>>8,f[h*2+1]=b%256}return f},decompressFromUint8Array:function(l){if(l==null)return p.decompress(l);for(var d=new Array(l.length/2),f=0,h=d.length;f<h;f++)d[f]=l[f*2]*256+l[f*2+1];var m=[];return d.forEach(function(b){m.push(n(b))}),p.decompress(m.join(""))},compressToEncodedURIComponent:function(l){return l==null?"":p._compress(l,6,function(d){return o.charAt(d)})},decompressFromEncodedURIComponent:function(l){return l==null?"":l==""?null:(l=l.replace(/ /g,"+"),p._decompress(l.length,32,function(d){return s(o,l.charAt(d))}))},compress:function(l){return p._compress(l,16,function(d){return n(d)})},_compress:function(l,d,f){if(l==null)return"";var h,m,b={},E={},w="",A="",S="",k=2,O=3,R=2,y=[],T=0,_=0,D;for(D=0;D<l.length;D+=1)if(w=l.charAt(D),Object.prototype.hasOwnProperty.call(b,w)||(b[w]=O++,E[w]=!0),A=S+w,Object.prototype.hasOwnProperty.call(b,A))S=A;else{if(Object.prototype.hasOwnProperty.call(E,S)){if(S.charCodeAt(0)<256){for(h=0;h<R;h++)T=T<<1,_==d-1?(_=0,y.push(f(T)),T=0):_++;for(m=S.charCodeAt(0),h=0;h<8;h++)T=T<<1|m&1,_==d-1?(_=0,y.push(f(T)),T=0):_++,m=m>>1}else{for(m=1,h=0;h<R;h++)T=T<<1|m,_==d-1?(_=0,y.push(f(T)),T=0):_++,m=0;for(m=S.charCodeAt(0),h=0;h<16;h++)T=T<<1|m&1,_==d-1?(_=0,y.push(f(T)),T=0):_++,m=m>>1}k--,k==0&&(k=Math.pow(2,R),R++),delete E[S]}else for(m=b[S],h=0;h<R;h++)T=T<<1|m&1,_==d-1?(_=0,y.push(f(T)),T=0):_++,m=m>>1;k--,k==0&&(k=Math.pow(2,R),R++),b[A]=O++,S=String(w)}if(S!==""){if(Object.prototype.hasOwnProperty.call(E,S)){if(S.charCodeAt(0)<256){for(h=0;h<R;h++)T=T<<1,_==d-1?(_=0,y.push(f(T)),T=0):_++;for(m=S.charCodeAt(0),h=0;h<8;h++)T=T<<1|m&1,_==d-1?(_=0,y.push(f(T)),T=0):_++,m=m>>1}else{for(m=1,h=0;h<R;h++)T=T<<1|m,_==d-1?(_=0,y.push(f(T)),T=0):_++,m=0;for(m=S.charCodeAt(0),h=0;h<16;h++)T=T<<1|m&1,_==d-1?(_=0,y.push(f(T)),T=0):_++,m=m>>1}k--,k==0&&(k=Math.pow(2,R),R++),delete E[S]}else for(m=b[S],h=0;h<R;h++)T=T<<1|m&1,_==d-1?(_=0,y.push(f(T)),T=0):_++,m=m>>1;k--,k==0&&(k=Math.pow(2,R),R++)}for(m=2,h=0;h<R;h++)T=T<<1|m&1,_==d-1?(_=0,y.push(f(T)),T=0):_++,m=m>>1;for(;;)if(T=T<<1,_==d-1){y.push(f(T));break}else _++;return y.join("")},decompress:function(l){return l==null?"":l==""?null:p._decompress(l.length,32768,function(d){return l.charCodeAt(d)})},_decompress:function(l,d,f){var h=[],m=4,b=4,E=3,w="",A=[],S,k,O,R,y,T,_,D={val:f(0),position:d,index:1};for(S=0;S<3;S+=1)h[S]=S;for(O=0,y=Math.pow(2,2),T=1;T!=y;)R=D.val&D.position,D.position>>=1,D.position==0&&(D.position=d,D.val=f(D.index++)),O|=(R>0?1:0)*T,T<<=1;switch(O){case 0:for(O=0,y=Math.pow(2,8),T=1;T!=y;)R=D.val&D.position,D.position>>=1,D.position==0&&(D.position=d,D.val=f(D.index++)),O|=(R>0?1:0)*T,T<<=1;_=n(O);break;case 1:for(O=0,y=Math.pow(2,16),T=1;T!=y;)R=D.val&D.position,D.position>>=1,D.position==0&&(D.position=d,D.val=f(D.index++)),O|=(R>0?1:0)*T,T<<=1;_=n(O);break;case 2:return""}for(h[3]=_,k=_,A.push(_);;){if(D.index>l)return"";for(O=0,y=Math.pow(2,E),T=1;T!=y;)R=D.val&D.position,D.position>>=1,D.position==0&&(D.position=d,D.val=f(D.index++)),O|=(R>0?1:0)*T,T<<=1;switch(_=O){case 0:for(O=0,y=Math.pow(2,8),T=1;T!=y;)R=D.val&D.position,D.position>>=1,D.position==0&&(D.position=d,D.val=f(D.index++)),O|=(R>0?1:0)*T,T<<=1;h[b++]=n(O),_=b-1,m--;break;case 1:for(O=0,y=Math.pow(2,16),T=1;T!=y;)R=D.val&D.position,D.position>>=1,D.position==0&&(D.position=d,D.val=f(D.index++)),O|=(R>0?1:0)*T,T<<=1;h[b++]=n(O),_=b-1,m--;break;case 2:return A.join("")}if(m==0&&(m=Math.pow(2,E),E++),h[_])w=h[_];else if(_===b)w=k+k.charAt(0);else return null;A.push(w),h[b++]=k+w.charAt(0),m--,k=w,m==0&&(m=Math.pow(2,E),E++)}}};return p})();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})}}),jm=Q({"../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(function r(n,i,o){function a(l,d){if(!i[l]){if(!n[l]){var f=typeof Zo=="function"&&Zo;if(!d&&f)return f(l,!0);if(s)return s(l,!0);var h=new Error("Cannot find module '"+l+"'");throw h.code="MODULE_NOT_FOUND",h}var m=i[l]={exports:{}};n[l][0].call(m.exports,function(b){var E=n[l][1][b];return a(E||b)},m,m.exports,r,n,i,o)}return i[l].exports}for(var s=typeof Zo=="function"&&Zo,p=0;p<o.length;p++)a(o[p]);return a})({1:[function(r,n,i){n.exports=function(o){if(typeof Map!="function"||o){var a=r("./similar");return new a}else return new Map}},{"./similar":2}],2:[function(r,n,i){function o(){return this.list=[],this.lastItem=void 0,this.size=0,this}o.prototype.get=function(a){var s;if(this.lastItem&&this.isEqual(this.lastItem.key,a))return this.lastItem.val;if(s=this.indexOf(a),s>=0)return this.lastItem=this.list[s],this.list[s].val},o.prototype.set=function(a,s){var p;return this.lastItem&&this.isEqual(this.lastItem.key,a)?(this.lastItem.val=s,this):(p=this.indexOf(a),p>=0?(this.lastItem=this.list[p],this.list[p].val=s,this):(this.lastItem={key:a,val:s},this.list.push(this.lastItem),this.size++,this))},o.prototype.delete=function(a){var s;if(this.lastItem&&this.isEqual(this.lastItem.key,a)&&(this.lastItem=void 0),s=this.indexOf(a),s>=0)return this.size--,this.list.splice(s,1)[0]},o.prototype.has=function(a){var s;return this.lastItem&&this.isEqual(this.lastItem.key,a)?!0:(s=this.indexOf(a),s>=0?(this.lastItem=this.list[s],!0):!1)},o.prototype.forEach=function(a,s){var p;for(p=0;p<this.size;p++)a.call(s||this,this.list[p].val,this.list[p].key,this)},o.prototype.indexOf=function(a){var s;for(s=0;s<this.size;s++)if(this.isEqual(this.list[s].key,a))return s;return-1},o.prototype.isEqual=function(a,s){return a===s||a!==a&&s!==s},n.exports=o},{}],3:[function(r,n,i){var o=r("map-or-similar");n.exports=function(l){var d=new o(!1),f=[];return function(h){var m=function(){var b=d,E,w,A=arguments.length-1,S=Array(A+1),k=!0,O;if((m.numArgs||m.numArgs===0)&&m.numArgs!==A+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(O=0;O<A;O++){if(S[O]={cacheItem:b,arg:arguments[O]},b.has(arguments[O])){b=b.get(arguments[O]);continue}k=!1,E=new o(!1),b.set(arguments[O],E),b=E}return k&&(b.has(arguments[A])?w=b.get(arguments[A]):k=!1),k||(w=h.apply(null,arguments),b.set(arguments[A],w)),l>0&&(S[A]={cacheItem:b,arg:arguments[A]},k?a(f,S):f.push(S),f.length>l&&s(f.shift())),m.wasMemoized=k,m.numArgs=A+1,w};return m.limit=l,m.wasMemoized=!1,m.cache=d,m.lru=f,m}};function a(l,d){var f=l.length,h=d.length,m,b,E;for(b=0;b<f;b++){for(m=!0,E=0;E<h;E++)if(!p(l[b][E].arg,d[E].arg)){m=!1;break}if(m)break}l.push(l.splice(b,1)[0])}function s(l){var d=l.length,f=l[d-1],h,m;for(f.cacheItem.delete(f.arg),m=d-2;m>=0&&(f=l[m],h=f.cacheItem.get(f.arg),!h||!h.size);m--)f.cacheItem.delete(f.arg)}function p(l,d){return l===d||l!==l&&d!==d}},{"map-or-similar":1}]},{},[3])(3)})}}),Lm=Q({"../node_modules/picoquery/lib/string-util.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.encodeString=n;var t=Array.from({length:256},(i,o)=>"%"+((o<16?"0":"")+o.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(i){let o=i.length;if(o===0)return"";let a="",s=0,p=0;e:for(;p<o;p++){let l=i.charCodeAt(p);for(;l<128;){if(r[l]!==1&&(s<p&&(a+=i.slice(s,p)),s=p+1,a+=t[l]),++p===o)break e;l=i.charCodeAt(p)}if(s<p&&(a+=i.slice(s,p)),l<2048){s=p+1,a+=t[192|l>>6]+t[128|l&63];continue}if(l<55296||l>=57344){s=p+1,a+=t[224|l>>12]+t[128|l>>6&63]+t[128|l&63];continue}if(++p,p>=o)throw new Error("URI malformed");let d=i.charCodeAt(p)&1023;s=p+1,l=65536+((l&1023)<<10|d),a+=t[240|l>>18]+t[128|l>>12&63]+t[128|l>>6&63]+t[128|l&63]}return s===0?i:s<o?a+i.slice(s):a}}}),zl=Q({"../node_modules/picoquery/lib/shared.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultOptions=e.defaultShouldSerializeObject=e.defaultValueSerializer=void 0;var t=Lm(),r=o=>{switch(typeof o){case"string":return(0,t.encodeString)(o);case"bigint":case"boolean":return""+o;case"number":if(Number.isFinite(o))return o<1e21?""+o:(0,t.encodeString)(""+o);break}return o instanceof Date?(0,t.encodeString)(o.toISOString()):""};e.defaultValueSerializer=r;var n=o=>o instanceof Date;e.defaultShouldSerializeObject=n;var i=o=>o;e.defaultOptions={nesting:!0,nestingSyntax:"dot",arrayRepeat:!1,arrayRepeatSyntax:"repeat",delimiter:38,valueDeserializer:i,valueSerializer:e.defaultValueSerializer,keyDeserializer:i,shouldSerializeObject:e.defaultShouldSerializeObject}}}),Vm=Q({"../node_modules/picoquery/lib/object-util.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getDeepObject=i,e.stringifyObject=d;var t=zl(),r=Lm();function n(f){return f==="__proto__"||f==="constructor"||f==="prototype"}function i(f,h,m,b,E){if(n(h))return f;let w=f[h];return typeof w=="object"&&w!==null?w:!b&&(E||typeof m=="number"||typeof m=="string"&&m*0===0&&m.indexOf(".")===-1)?f[h]=[]:f[h]={}}var o=20,a="[]",s="[",p="]",l=".";function d(f,h,m=0,b,E){let{nestingSyntax:w=t.defaultOptions.nestingSyntax,arrayRepeat:A=t.defaultOptions.arrayRepeat,arrayRepeatSyntax:S=t.defaultOptions.arrayRepeatSyntax,nesting:k=t.defaultOptions.nesting,delimiter:O=t.defaultOptions.delimiter,valueSerializer:R=t.defaultOptions.valueSerializer,shouldSerializeObject:y=t.defaultOptions.shouldSerializeObject}=h,T=typeof O=="number"?String.fromCharCode(O):O,_=E===!0&&A,D=w==="dot"||w==="js"&&!E;if(m>o)return"";let J="",M=!0,G=!1;for(let L in f){let I=f[L];if(I===void 0)continue;let $;b?($=b,_?S==="bracket"&&($+=a):D?($+=l,$+=L):($+=s,$+=L,$+=p)):$=L,M||(J+=T),typeof I=="object"&&I!==null&&!y(I)?(G=I.pop!==void 0,(k||A&&G)&&(J+=d(I,h,m+1,$,G))):(J+=(0,r.encodeString)($),J+="=",J+=R(I,L)),M&&(M=!1)}return J}}}),uS=Q({"../node_modules/picoquery/lib/decode-uri-component.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeURIComponent=i;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 i(s){let p=s.indexOf("%");if(p===-1)return s;let l=s.length,d="",f=0,h=0,m=p,b=t;for(;p>-1&&p<l;){let E=a(s[p+1],4),w=a(s[p+2],0),A=E|w,S=n[A];if(b=n[256+b+S],h=h<<6|A&n[364+S],b===t)d+=s.slice(f,m),d+=h<=65535?String.fromCharCode(h):String.fromCharCode(55232+(h>>10),56320+(h&1023)),h=0,f=p+3,p=m=s.indexOf("%",f);else{if(b===r)return null;if(p+=3,p<l&&s.charCodeAt(p)===37)continue;return null}}return d+s.slice(f)}var o={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(s,p){let l=o[s];return l===void 0?255:l<<p}}}),lS=Q({"../node_modules/picoquery/lib/parse.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.numberValueDeserializer=e.numberKeyDeserializer=void 0,e.parse=l;var t=Vm(),r=zl(),n=uS(),i=d=>{let f=Number(d);return Number.isNaN(f)?d:f};e.numberKeyDeserializer=i;var o=d=>{let f=Number(d);return Number.isNaN(f)?d:f};e.numberValueDeserializer=o;var a=/\+/g,s=function(){};s.prototype=Object.create(null);function p(d,f,h,m,b){let E=d.substring(f,h);return m&&(E=E.replace(a," ")),b&&(E=(0,n.decodeURIComponent)(E)||E),E}function l(d,f){let{valueDeserializer:h=r.defaultOptions.valueDeserializer,keyDeserializer:m=r.defaultOptions.keyDeserializer,arrayRepeatSyntax:b=r.defaultOptions.arrayRepeatSyntax,nesting:E=r.defaultOptions.nesting,arrayRepeat:w=r.defaultOptions.arrayRepeat,nestingSyntax:A=r.defaultOptions.nestingSyntax,delimiter:S=r.defaultOptions.delimiter}=f??{},k=typeof S=="string"?S.charCodeAt(0):S,O=A==="js",R=new s;if(typeof d!="string")return R;let y=d.length,T="",_=-1,D=-1,J=-1,M=R,G,L="",I="",$=!1,Y=!1,X=!1,oe=!1,ve=!1,De=!1,z=0,K=-1,be=-1,me=-1;for(let fe=0;fe<y+1;fe++){if(z=fe!==y?d.charCodeAt(fe):k,z===k){if(De=D>_,De||(D=fe),J!==D-1&&(I=p(d,J+1,K>-1?K:D,X,$),L=m(I),G!==void 0&&(M=(0,t.getDeepObject)(M,G,L,O&&ve,void 0))),De||L!==""){De&&(T=d.slice(D+1,fe),oe&&(T=T.replace(a," ")),Y&&(T=(0,n.decodeURIComponent)(T)||T));let se=h(T,L);if(w){let Te=M[L];Te===void 0?K>-1?M[L]=[se]:M[L]=se:Te.pop?Te.push(se):M[L]=[Te,se]}else M[L]=se}T="",_=fe,D=fe,$=!1,Y=!1,X=!1,oe=!1,ve=!1,K=-1,J=fe,M=R,G=void 0,L=""}else z===93?(w&&b==="bracket"&&me===91&&(K=be),E&&(A==="index"||O)&&D<=_&&(J!==be&&(I=p(d,J+1,fe,X,$),L=m(I),G!==void 0&&(M=(0,t.getDeepObject)(M,G,L,void 0,void 0)),G=L,X=!1,$=!1),J=fe,ve=!1)):z===46?E&&(A==="dot"||O)&&D<=_&&(J!==be&&(I=p(d,J+1,fe,X,$),L=m(I),G!==void 0&&(M=(0,t.getDeepObject)(M,G,L,O)),G=L,X=!1,$=!1),ve=!0,J=fe):z===91?E&&(A==="index"||O)&&D<=_&&(J!==be&&(I=p(d,J+1,fe,X,$),L=m(I),O&&G!==void 0&&(M=(0,t.getDeepObject)(M,G,L,O)),G=L,X=!1,$=!1,ve=!1),J=fe):z===61?D<=_?D=fe:Y=!0:z===43?D>_?oe=!0:X=!0:z===37&&(D>_?Y=!0:$=!0);be=fe,me=z}return R}}}),cS=Q({"../node_modules/picoquery/lib/stringify.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=r;var t=Vm();function r(n,i){if(n===null||typeof n!="object")return"";let o=i??{};return(0,t.stringifyObject)(n,o)}}}),Wl=Q({"../node_modules/picoquery/lib/main.js"(e){var t=e&&e.__createBinding||(Object.create?(function(o,a,s,p){p===void 0&&(p=s);var l=Object.getOwnPropertyDescriptor(a,s);(!l||("get"in l?!a.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(o,p,l)}):(function(o,a,s,p){p===void 0&&(p=s),o[p]=a[s]})),r=e&&e.__exportStar||function(o,a){for(var s in o)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&t(a,o,s)};Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=e.parse=void 0;var n=lS();Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return n.parse}});var i=cS();Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return i.stringify}}),r(zl(),e)}}),$m=Q({"../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:""}}}),pS=Q({"../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:"ÿ"}}}),Um=Q({"../node_modules/entities/lib/maps/xml.json"(e,t){t.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}}}),dS=Q({"../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}}}),fS=Q({"../node_modules/entities/lib/decode_codepoint.js"(e){var t=e&&e.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0});var r=t(dS()),n=String.fromCodePoint||function(o){var a="";return o>65535&&(o-=65536,a+=String.fromCharCode(o>>>10&1023|55296),o=56320|o&1023),a+=String.fromCharCode(o),a};function i(o){return o>=55296&&o<=57343||o>1114111?"�":(o in r.default&&(o=r.default[o]),n(o))}e.default=i}}),rd=Q({"../node_modules/entities/lib/decode.js"(e){var t=e&&e.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.decodeHTML=e.decodeHTMLStrict=e.decodeXML=void 0;var r=t($m()),n=t(pS()),i=t(Um()),o=t(fS()),a=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;e.decodeXML=s(i.default),e.decodeHTMLStrict=s(r.default);function s(d){var f=l(d);return function(h){return String(h).replace(a,f)}}var p=function(d,f){return d<f?1:-1};e.decodeHTML=(function(){for(var d=Object.keys(n.default).sort(p),f=Object.keys(r.default).sort(p),h=0,m=0;h<f.length;h++)d[m]===f[h]?(f[h]+=";?",m++):f[h]+=";";var b=new RegExp("&(?:"+f.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),E=l(r.default);function w(A){return A.substr(-1)!==";"&&(A+=";"),E(A)}return function(A){return String(A).replace(b,w)}})();function l(d){return function(f){if(f.charAt(1)==="#"){var h=f.charAt(2);return h==="X"||h==="x"?o.default(parseInt(f.substr(3),16)):o.default(parseInt(f.substr(2),10))}return d[f.slice(1,-1)]||f}}}}),nd=Q({"../node_modules/entities/lib/encode.js"(e){var t=e&&e.__importDefault||function(S){return S&&S.__esModule?S:{default:S}};Object.defineProperty(e,"__esModule",{value:!0}),e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=void 0;var r=t(Um()),n=p(r.default),i=l(n);e.encodeXML=A(n);var o=t($m()),a=p(o.default),s=l(a);e.encodeHTML=m(a,s),e.encodeNonAsciiHTML=A(a);function p(S){return Object.keys(S).sort().reduce(function(k,O){return k[S[O]]="&"+O+";",k},{})}function l(S){for(var k=[],O=[],R=0,y=Object.keys(S);R<y.length;R++){var T=y[R];T.length===1?k.push("\\"+T):O.push(T)}k.sort();for(var _=0;_<k.length-1;_++){for(var D=_;D<k.length-1&&k[D].charCodeAt(1)+1===k[D+1].charCodeAt(1);)D+=1;var J=1+D-_;J<3||k.splice(_,J,k[_]+"-"+k[D])}return O.unshift("["+k.join("")+"]"),new RegExp(O.join("|"),"g")}var d=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,f=String.prototype.codePointAt!=null?(function(S){return S.codePointAt(0)}):(function(S){return(S.charCodeAt(0)-55296)*1024+S.charCodeAt(1)-56320+65536});function h(S){return"&#x"+(S.length>1?f(S):S.charCodeAt(0)).toString(16).toUpperCase()+";"}function m(S,k){return function(O){return O.replace(k,function(R){return S[R]}).replace(d,h)}}var b=new RegExp(i.source+"|"+d.source,"g");function E(S){return S.replace(b,h)}e.escape=E;function w(S){return S.replace(i,h)}e.escapeUTF8=w;function A(S){return function(k){return k.replace(b,function(O){return S[O]||h(O)})}}}}),hS=Q({"../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=rd(),r=nd();function n(p,l){return(!l||l<=0?t.decodeXML:t.decodeHTML)(p)}e.decode=n;function i(p,l){return(!l||l<=0?t.decodeXML:t.decodeHTMLStrict)(p)}e.decodeStrict=i;function o(p,l){return(!l||l<=0?r.encodeXML:r.encodeHTML)(p)}e.encode=o;var a=nd();Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return a.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return a.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return a.encodeNonAsciiHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return a.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return a.escapeUTF8}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return a.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return a.encodeHTML}});var s=rd();Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return s.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return s.decodeXML}})}}),mS=Q({"../node_modules/ansi-to-html/lib/ansi_to_html.js"(e,t){function r(I,$){if(!(I instanceof $))throw new TypeError("Cannot call a class as a function")}function n(I,$){for(var Y=0;Y<$.length;Y++){var X=$[Y];X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X&&(X.writable=!0),Object.defineProperty(I,X.key,X)}}function i(I,$,Y){return $&&n(I.prototype,$),I}function o(I,$){var Y=typeof Symbol<"u"&&I[Symbol.iterator]||I["@@iterator"];if(!Y){if(Array.isArray(I)||(Y=a(I))||$){Y&&(I=Y);var X=0,oe=function(){};return{s:oe,n:function(){return X>=I.length?{done:!0}:{done:!1,value:I[X++]}},e:function(K){throw K},f:oe}}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 ve=!0,De=!1,z;return{s:function(){Y=Y.call(I)},n:function(){var K=Y.next();return ve=K.done,K},e:function(K){De=!0,z=K},f:function(){try{!ve&&Y.return!=null&&Y.return()}finally{if(De)throw z}}}}function a(I,$){if(I){if(typeof I=="string")return s(I,$);var Y=Object.prototype.toString.call(I).slice(8,-1);if(Y==="Object"&&I.constructor&&(Y=I.constructor.name),Y==="Map"||Y==="Set")return Array.from(I);if(Y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Y))return s(I,$)}}function s(I,$){($==null||$>I.length)&&($=I.length);for(var Y=0,X=new Array($);Y<$;Y++)X[Y]=I[Y];return X}var p=hS(),l={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:d()};function d(){var I={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 S(0,5).forEach(function($){S(0,5).forEach(function(Y){S(0,5).forEach(function(X){return f($,Y,X,I)})})}),S(0,23).forEach(function($){var Y=$+232,X=h($*10+8);I[Y]="#"+X+X+X}),I}function f(I,$,Y,X){var oe=16+I*36+$*6+Y,ve=I>0?I*40+55:0,De=$>0?$*40+55:0,z=Y>0?Y*40+55:0;X[oe]=m([ve,De,z])}function h(I){for(var $=I.toString(16);$.length<2;)$="0"+$;return $}function m(I){var $=[],Y=o(I),X;try{for(Y.s();!(X=Y.n()).done;){var oe=X.value;$.push(h(oe))}}catch(ve){Y.e(ve)}finally{Y.f()}return"#"+$.join("")}function b(I,$,Y,X){var oe;return $==="text"?oe=R(Y,X):$==="display"?oe=w(I,Y,X):$==="xterm256Foreground"?oe=_(I,X.colors[Y]):$==="xterm256Background"?oe=D(I,X.colors[Y]):$==="rgb"&&(oe=E(I,Y)),oe}function E(I,$){$=$.substring(2).slice(0,-1);var Y=+$.substr(0,2),X=$.substring(5).split(";"),oe=X.map(function(ve){return("0"+Number(ve).toString(16)).substr(-2)}).join("");return T(I,(Y===38?"color:#":"background-color:#")+oe)}function w(I,$,Y){$=parseInt($,10);var X={"-1":function(){return"<br/>"},0:function(){return I.length&&A(I)},1:function(){return y(I,"b")},3:function(){return y(I,"i")},4:function(){return y(I,"u")},8:function(){return T(I,"display:none")},9:function(){return y(I,"strike")},22:function(){return T(I,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return J(I,"i")},24:function(){return J(I,"u")},39:function(){return _(I,Y.fg)},49:function(){return D(I,Y.bg)},53:function(){return T(I,"text-decoration:overline")}},oe;return X[$]?oe=X[$]():4<$&&$<7?oe=y(I,"blink"):29<$&&$<38?oe=_(I,Y.colors[$-30]):39<$&&$<48?oe=D(I,Y.colors[$-40]):89<$&&$<98?oe=_(I,Y.colors[8+($-90)]):99<$&&$<108&&(oe=D(I,Y.colors[8+($-100)])),oe}function A(I){var $=I.slice(0);return I.length=0,$.reverse().map(function(Y){return"</"+Y+">"}).join("")}function S(I,$){for(var Y=[],X=I;X<=$;X++)Y.push(X);return Y}function k(I){return function($){return(I===null||$.category!==I)&&I!=="all"}}function O(I){I=parseInt(I,10);var $=null;return I===0?$="all":I===1?$="bold":2<I&&I<5?$="underline":4<I&&I<7?$="blink":I===8?$="hide":I===9?$="strike":29<I&&I<38||I===39||89<I&&I<98?$="foreground-color":(39<I&&I<48||I===49||99<I&&I<108)&&($="background-color"),$}function R(I,$){return $.escapeXML?p.encodeXML(I):I}function y(I,$,Y){return Y||(Y=""),I.push($),"<".concat($).concat(Y?' style="'.concat(Y,'"'):"",">")}function T(I,$){return y(I,"span",$)}function _(I,$){return y(I,"span","color:"+$)}function D(I,$){return y(I,"span","background-color:"+$)}function J(I,$){var Y;if(I.slice(-1)[0]===$&&(Y=I.pop()),Y)return"</"+$+">"}function M(I,$,Y){var X=!1,oe=3;function ve(){return""}function De(Re,Pe){return Y("xterm256Foreground",Pe),""}function z(Re,Pe){return Y("xterm256Background",Pe),""}function K(Re){return $.newline?Y("display",-1):Y("text",Re),""}function be(Re,Pe){X=!0,Pe.trim().length===0&&(Pe="0"),Pe=Pe.trimRight(";").split(";");var Me=o(Pe),st;try{for(Me.s();!(st=Me.n()).done;){var Ot=st.value;Y("display",Ot)}}catch(Ue){Me.e(Ue)}finally{Me.f()}return""}function me(Re){return Y("text",Re),""}function fe(Re){return Y("rgb",Re),""}var se=[{pattern:/^\x08+/,sub:ve},{pattern:/^\x1b\[[012]?K/,sub:ve},{pattern:/^\x1b\[\(B/,sub:ve},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:fe},{pattern:/^\x1b\[38;5;(\d+)m/,sub:De},{pattern:/^\x1b\[48;5;(\d+)m/,sub:z},{pattern:/^\n/,sub:K},{pattern:/^\r+\n/,sub:K},{pattern:/^\r/,sub:K},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:be},{pattern:/^\x1b\[\d?J/,sub:ve},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:ve},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:ve},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:me}];function Te(Re,Pe){Pe>oe&&X||(X=!1,I=I.replace(Re.pattern,Re.sub))}var Oe=[],Le=I,Z=Le.length;e:for(;Z>0;){for(var de=0,Ae=0,xe=se.length;Ae<xe;de=++Ae){var Se=se[de];if(Te(Se,de),I.length!==Z){Z=I.length;continue e}}if(I.length===Z)break;Oe.push(0),Z=I.length}return Oe}function G(I,$,Y){return $!=="text"&&(I=I.filter(k(O(Y))),I.push({token:$,data:Y,category:O(Y)})),I}var L=(function(){function I($){r(this,I),$=$||{},$.colors&&($.colors=Object.assign({},l.colors,$.colors)),this.options=Object.assign({},l,$),this.stack=[],this.stickyStack=[]}return i(I,[{key:"toHtml",value:function($){var Y=this;$=typeof $=="string"?[$]:$;var X=this.stack,oe=this.options,ve=[];return this.stickyStack.forEach(function(De){var z=b(X,De.token,De.data,oe);z&&ve.push(z)}),M($.join(""),oe,function(De,z){var K=b(X,De,z,oe);K&&ve.push(K),oe.stream&&(Y.stickyStack=G(Y.stickyStack,De,z))}),X.length&&ve.push(A(X)),ve.join("")}}]),I})();t.exports=L}}),yS=Q({"../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(u){return u.text!==void 0&&u.text!==""?`'${u.type}' with value '${u.text}'`:`'${u.type}'`}class i extends Error{constructor(g){super(`No parslet found for token: ${n(g)}`),this.token=g,Object.setPrototypeOf(this,i.prototype)}getToken(){return this.token}}class o extends Error{constructor(g){super(`The parsing ended early. The next token was: ${n(g)}`),this.token=g,Object.setPrototypeOf(this,o.prototype)}getToken(){return this.token}}class a extends Error{constructor(g,x){let q=`Unexpected type: '${g.type}'.`;x!==void 0&&(q+=` Message: ${x}`),super(q),Object.setPrototypeOf(this,a.prototype)}}function s(u){return g=>g.startsWith(u)?{type:u,text:u}:null}function p(u){let g=0,x,q=u[0],ee=!1;if(q!=="'"&&q!=='"')return null;for(;g<u.length;){if(g++,x=u[g],!ee&&x===q){g++;break}ee=!ee&&x==="\\"}if(x!==q)throw new Error("Unterminated String");return u.slice(0,g)}let l=new RegExp("[$_\\p{ID_Start}]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}","u"),d=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 f(u){let g=u[0];if(!l.test(g))return null;let x=1;do{if(g=u[x],!d.test(g))break;x++}while(x<u.length);return u.slice(0,x)}let h=/^(NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity))/;function m(u){var g,x;return(x=(g=h.exec(u))===null||g===void 0?void 0:g[0])!==null&&x!==void 0?x:null}let b=u=>{let g=f(u);return g==null?null:{type:"Identifier",text:g}};function E(u){return g=>{if(!g.startsWith(u))return null;let x=g[u.length];return x!==void 0&&d.test(x)?null:{type:u,text:u}}}let w=u=>{let g=p(u);return g==null?null:{type:"StringValue",text:g}},A=u=>u.length>0?null:{type:"EOF",text:""},S=u=>{let g=m(u);return g===null?null:{type:"Number",text:g}},k=[A,s("=>"),s("("),s(")"),s("{"),s("}"),s("["),s("]"),s("|"),s("&"),s("<"),s(">"),s(","),s(";"),s("*"),s("?"),s("!"),s("="),s(":"),s("..."),s("."),s("#"),s("~"),s("/"),s("@"),E("undefined"),E("null"),E("function"),E("this"),E("new"),E("module"),E("event"),E("extends"),E("external"),E("infer"),E("typeof"),E("keyof"),E("readonly"),E("import"),E("is"),E("in"),E("asserts"),S,b,w],O=/^\s*\n\s*/;class R{static create(g){let x=this.read(g);g=x.text;let q=this.read(g);return g=q.text,new R(g,void 0,x.token,q.token)}constructor(g,x,q,ee){this.text="",this.text=g,this.previous=x,this.current=q,this.next=ee}static read(g,x=!1){x=x||O.test(g),g=g.trim();for(let q of k){let ee=q(g);if(ee!==null){let ae=Object.assign(Object.assign({},ee),{startOfLine:x});return g=g.slice(ae.text.length),{text:g,token:ae}}}throw new Error("Unexpected Token "+g)}advance(){let g=R.read(this.text);return new R(g.text,this.current,this.next,g.token)}}function y(u){if(u===void 0)throw new Error("Unexpected undefined");if(u.type==="JsdocTypeKeyValue"||u.type==="JsdocTypeParameterList"||u.type==="JsdocTypeProperty"||u.type==="JsdocTypeReadonlyProperty"||u.type==="JsdocTypeObjectField"||u.type==="JsdocTypeJsdocObjectField"||u.type==="JsdocTypeIndexSignature"||u.type==="JsdocTypeMappedType"||u.type==="JsdocTypeTypeParameter")throw new a(u);return u}function T(u){return u.type==="JsdocTypeKeyValue"?D(u):y(u)}function _(u){return u.type==="JsdocTypeName"?u:D(u)}function D(u){if(u.type!=="JsdocTypeKeyValue")throw new a(u);return u}function J(u){var g;if(u.type==="JsdocTypeVariadic"){if(((g=u.element)===null||g===void 0?void 0:g.type)==="JsdocTypeName")return u;throw new a(u)}if(u.type!=="JsdocTypeNumber"&&u.type!=="JsdocTypeName")throw new a(u);return u}function M(u){if(u.type==="JsdocTypeTuple"||u.type==="JsdocTypeGeneric"&&u.meta.brackets==="square")return u;throw new a(u)}function G(u){return u.type==="JsdocTypeIndexSignature"||u.type==="JsdocTypeMappedType"}var L;(function(u){u[u.ALL=0]="ALL",u[u.PARAMETER_LIST=1]="PARAMETER_LIST",u[u.OBJECT=2]="OBJECT",u[u.KEY_VALUE=3]="KEY_VALUE",u[u.INDEX_BRACKETS=4]="INDEX_BRACKETS",u[u.UNION=5]="UNION",u[u.INTERSECTION=6]="INTERSECTION",u[u.PREFIX=7]="PREFIX",u[u.INFIX=8]="INFIX",u[u.TUPLE=9]="TUPLE",u[u.SYMBOL=10]="SYMBOL",u[u.OPTIONAL=11]="OPTIONAL",u[u.NULLABLE=12]="NULLABLE",u[u.KEY_OF_TYPE_OF=13]="KEY_OF_TYPE_OF",u[u.FUNCTION=14]="FUNCTION",u[u.ARROW=15]="ARROW",u[u.ARRAY_BRACKETS=16]="ARRAY_BRACKETS",u[u.GENERIC=17]="GENERIC",u[u.NAME_PATH=18]="NAME_PATH",u[u.PARENTHESIS=19]="PARENTHESIS",u[u.SPECIAL_TYPES=20]="SPECIAL_TYPES"})(L||(L={}));class I{constructor(g,x,q){this.grammar=g,typeof x=="string"?this._lexer=R.create(x):this._lexer=x,this.baseParser=q}get lexer(){return this._lexer}parse(){let g=this.parseType(L.ALL);if(this.lexer.current.type!=="EOF")throw new o(this.lexer.current);return g}parseType(g){return y(this.parseIntermediateType(g))}parseIntermediateType(g){let x=this.tryParslets(null,g);if(x===null)throw new i(this.lexer.current);return this.parseInfixIntermediateType(x,g)}parseInfixIntermediateType(g,x){let q=this.tryParslets(g,x);for(;q!==null;)g=q,q=this.tryParslets(g,x);return g}tryParslets(g,x){for(let q of this.grammar){let ee=q(this,x,g);if(ee!==null)return ee}return null}consume(g){return Array.isArray(g)||(g=[g]),g.includes(this.lexer.current.type)?(this._lexer=this.lexer.advance(),!0):!1}acceptLexerState(g){this._lexer=g.lexer}}function $(u){return u==="}"||u==="EOF"||u==="|"||u===","||u===")"||u===">"}let Y=(u,g,x)=>{let q=u.lexer.current.type,ee=u.lexer.next.type;return x==null&&q==="?"&&!$(ee)||x!=null&&q==="?"?(u.consume("?"),x==null?{type:"JsdocTypeNullable",element:u.parseType(L.NULLABLE),meta:{position:"prefix"}}:{type:"JsdocTypeNullable",element:y(x),meta:{position:"suffix"}}):null};function X(u){let g=(x,q,ee)=>{let ae=x.lexer.current.type,pe=x.lexer.next.type;if(ee===null){if("parsePrefix"in u&&u.accept(ae,pe))return u.parsePrefix(x)}else if("parseInfix"in u&&u.precedence>q&&u.accept(ae,pe))return u.parseInfix(x,ee);return null};return Object.defineProperty(g,"name",{value:u.name}),g}let oe=X({name:"optionalParslet",accept:u=>u==="=",precedence:L.OPTIONAL,parsePrefix:u=>(u.consume("="),{type:"JsdocTypeOptional",element:u.parseType(L.OPTIONAL),meta:{position:"prefix"}}),parseInfix:(u,g)=>(u.consume("="),{type:"JsdocTypeOptional",element:y(g),meta:{position:"suffix"}})}),ve=X({name:"numberParslet",accept:u=>u==="Number",parsePrefix:u=>{let g=parseFloat(u.lexer.current.text);return u.consume("Number"),{type:"JsdocTypeNumber",value:g}}}),De=X({name:"parenthesisParslet",accept:u=>u==="(",parsePrefix:u=>{if(u.consume("("),u.consume(")"))return{type:"JsdocTypeParameterList",elements:[]};let g=u.parseIntermediateType(L.ALL);if(!u.consume(")"))throw new Error("Unterminated parenthesis");return g.type==="JsdocTypeParameterList"?g:g.type==="JsdocTypeKeyValue"?{type:"JsdocTypeParameterList",elements:[g]}:{type:"JsdocTypeParenthesis",element:y(g)}}}),z=X({name:"specialTypesParslet",accept:(u,g)=>u==="?"&&$(g)||u==="null"||u==="undefined"||u==="*",parsePrefix:u=>{if(u.consume("null"))return{type:"JsdocTypeNull"};if(u.consume("undefined"))return{type:"JsdocTypeUndefined"};if(u.consume("*"))return{type:"JsdocTypeAny"};if(u.consume("?"))return{type:"JsdocTypeUnknown"};throw new Error("Unacceptable token: "+u.lexer.current.text)}}),K=X({name:"notNullableParslet",accept:u=>u==="!",precedence:L.NULLABLE,parsePrefix:u=>(u.consume("!"),{type:"JsdocTypeNotNullable",element:u.parseType(L.NULLABLE),meta:{position:"prefix"}}),parseInfix:(u,g)=>(u.consume("!"),{type:"JsdocTypeNotNullable",element:y(g),meta:{position:"suffix"}})});function be({allowTrailingComma:u}){return X({name:"parameterListParslet",accept:g=>g===",",precedence:L.PARAMETER_LIST,parseInfix:(g,x)=>{let q=[T(x)];g.consume(",");do try{let ee=g.parseIntermediateType(L.PARAMETER_LIST);q.push(T(ee))}catch(ee){if(ee instanceof i)break;throw ee}while(g.consume(","));if(q.length>0&&q.slice(0,-1).some(ee=>ee.type==="JsdocTypeVariadic"))throw new Error("Only the last parameter may be a rest parameter");return{type:"JsdocTypeParameterList",elements:q}}})}let me=X({name:"genericParslet",accept:(u,g)=>u==="<"||u==="."&&g==="<",precedence:L.GENERIC,parseInfix:(u,g)=>{let x=u.consume(".");u.consume("<");let q=[],ee=!1;if(u.consume("infer")){ee=!0;let ae=u.parseIntermediateType(L.SYMBOL);if(ae.type!=="JsdocTypeName")throw new a(ae,"A typescript asserts always has to have a name on the left side.");q.push(ae)}else do q.push(u.parseType(L.PARAMETER_LIST));while(u.consume(","));if(!u.consume(">"))throw new Error("Unterminated generic parameter list");return Object.assign(Object.assign({type:"JsdocTypeGeneric",left:y(g),elements:q},ee?{infer:!0}:{}),{meta:{brackets:"angle",dot:x}})}}),fe=X({name:"unionParslet",accept:u=>u==="|",precedence:L.UNION,parseInfix:(u,g)=>{u.consume("|");let x=[];do x.push(u.parseType(L.UNION));while(u.consume("|"));return{type:"JsdocTypeUnion",elements:[y(g),...x]}}}),se=[Y,oe,ve,De,z,K,be({allowTrailingComma:!0}),me,fe,oe];function Te({allowSquareBracketsOnAnyType:u,allowJsdocNamePaths:g,pathGrammar:x}){return function(q,ee,ae){if(ae==null||ee>=L.NAME_PATH)return null;let pe=q.lexer.current.type,ge=q.lexer.next.type;if(!(pe==="."&&ge!=="<"||pe==="["&&(u||ae.type==="JsdocTypeName")||g&&(pe==="~"||pe==="#")))return null;let ke,ze=!1;q.consume(".")?ke="property":q.consume("[")?(ke="property-brackets",ze=!0):q.consume("~")?ke="inner":(q.consume("#"),ke="instance");let _t=x!==null?new I(x,q.lexer,q):q,pt=_t.parseIntermediateType(L.NAME_PATH);q.acceptLexerState(_t);let rr;switch(pt.type){case"JsdocTypeName":rr={type:"JsdocTypeProperty",value:pt.value,meta:{quote:void 0}};break;case"JsdocTypeNumber":rr={type:"JsdocTypeProperty",value:pt.value.toString(10),meta:{quote:void 0}};break;case"JsdocTypeStringValue":rr={type:"JsdocTypeProperty",value:pt.value,meta:{quote:pt.meta.quote}};break;case"JsdocTypeSpecialNamePath":if(pt.specialType==="event")rr=pt;else throw new a(pt,"Type 'JsdocTypeSpecialNamePath' is only allowed with specialType 'event'");break;default:throw new a(pt,"Expecting 'JsdocTypeName', 'JsdocTypeNumber', 'JsdocStringValue' or 'JsdocTypeSpecialNamePath'")}if(ze&&!q.consume("]")){let Pn=q.lexer.current;throw new Error(`Unterminated square brackets. Next token is '${Pn.type}' with text '${Pn.text}'`)}return{type:"JsdocTypeNamePath",left:y(ae),right:rr,pathType:ke}}}function Oe({allowedAdditionalTokens:u}){return X({name:"nameParslet",accept:g=>g==="Identifier"||g==="this"||g==="new"||u.includes(g),parsePrefix:g=>{let{type:x,text:q}=g.lexer.current;return g.consume(x),{type:"JsdocTypeName",value:q}}})}let Le=X({name:"stringValueParslet",accept:u=>u==="StringValue",parsePrefix:u=>{let g=u.lexer.current.text;return u.consume("StringValue"),{type:"JsdocTypeStringValue",value:g.slice(1,-1),meta:{quote:g[0]==="'"?"single":"double"}}}});function Z({pathGrammar:u,allowedTypes:g}){return X({name:"specialNamePathParslet",accept:x=>g.includes(x),parsePrefix:x=>{let q=x.lexer.current.type;if(x.consume(q),!x.consume(":"))return{type:"JsdocTypeName",value:q};let ee,ae=x.lexer.current;if(x.consume("StringValue"))ee={type:"JsdocTypeSpecialNamePath",value:ae.text.slice(1,-1),specialType:q,meta:{quote:ae.text[0]==="'"?"single":"double"}};else{let ke="",ze=["Identifier","@","/"];for(;ze.some(_t=>x.consume(_t));)ke+=ae.text,ae=x.lexer.current;ee={type:"JsdocTypeSpecialNamePath",value:ke,specialType:q,meta:{quote:void 0}}}let pe=new I(u,x.lexer,x),ge=pe.parseInfixIntermediateType(ee,L.ALL);return x.acceptLexerState(pe),y(ge)}})}let de=[Oe({allowedAdditionalTokens:["external","module"]}),Le,ve,Te({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:null})],Ae=[...de,Z({allowedTypes:["event"],pathGrammar:de})];function xe(u){let g;if(u.type==="JsdocTypeParameterList")g=u.elements;else if(u.type==="JsdocTypeParenthesis")g=[u.element];else throw new a(u);return g.map(x=>T(x))}function Se(u){let g=xe(u);if(g.some(x=>x.type==="JsdocTypeKeyValue"))throw new Error("No parameter should be named");return g}function Re({allowNamedParameters:u,allowNoReturnType:g,allowWithoutParenthesis:x,allowNewAsFunctionKeyword:q}){return X({name:"functionParslet",accept:(ee,ae)=>ee==="function"||q&&ee==="new"&&ae==="(",parsePrefix:ee=>{let ae=ee.consume("new");ee.consume("function");let pe=ee.lexer.current.type==="(";if(!pe){if(!x)throw new Error("function is missing parameter list");return{type:"JsdocTypeName",value:"function"}}let ge={type:"JsdocTypeFunction",parameters:[],arrow:!1,constructor:ae,parenthesis:pe},ke=ee.parseIntermediateType(L.FUNCTION);if(u===void 0)ge.parameters=Se(ke);else{if(ae&&ke.type==="JsdocTypeFunction"&&ke.arrow)return ge=ke,ge.constructor=!0,ge;ge.parameters=xe(ke);for(let ze of ge.parameters)if(ze.type==="JsdocTypeKeyValue"&&!u.includes(ze.key))throw new Error(`only allowed named parameters are ${u.join(", ")} but got ${ze.type}`)}if(ee.consume(":"))ge.returnType=ee.parseType(L.PREFIX);else if(!g)throw new Error("function is missing return type");return ge}})}function Pe({allowPostfix:u,allowEnclosingBrackets:g}){return X({name:"variadicParslet",accept:x=>x==="...",precedence:L.PREFIX,parsePrefix:x=>{x.consume("...");let q=g&&x.consume("[");try{let ee=x.parseType(L.PREFIX);if(q&&!x.consume("]"))throw new Error("Unterminated variadic type. Missing ']'");return{type:"JsdocTypeVariadic",element:y(ee),meta:{position:"prefix",squareBrackets:q}}}catch(ee){if(ee instanceof i){if(q)throw new Error("Empty square brackets for variadic are not allowed.");return{type:"JsdocTypeVariadic",meta:{position:void 0,squareBrackets:!1}}}else throw ee}},parseInfix:u?(x,q)=>(x.consume("..."),{type:"JsdocTypeVariadic",element:y(q),meta:{position:"suffix",squareBrackets:!1}}):void 0})}let Me=X({name:"symbolParslet",accept:u=>u==="(",precedence:L.SYMBOL,parseInfix:(u,g)=>{if(g.type!=="JsdocTypeName")throw new Error("Symbol expects a name on the left side. (Reacting on '(')");u.consume("(");let x={type:"JsdocTypeSymbol",value:g.value};if(!u.consume(")")){let q=u.parseIntermediateType(L.SYMBOL);if(x.element=J(q),!u.consume(")"))throw new Error("Symbol does not end after value")}return x}}),st=X({name:"arrayBracketsParslet",precedence:L.ARRAY_BRACKETS,accept:(u,g)=>u==="["&&g==="]",parseInfix:(u,g)=>(u.consume("["),u.consume("]"),{type:"JsdocTypeGeneric",left:{type:"JsdocTypeName",value:"Array"},elements:[y(g)],meta:{brackets:"square",dot:!1}})});function Ot({objectFieldGrammar:u,allowKeyTypes:g}){return X({name:"objectParslet",accept:x=>x==="{",parsePrefix:x=>{x.consume("{");let q={type:"JsdocTypeObject",meta:{separator:"comma"},elements:[]};if(!x.consume("}")){let ee,ae=new I(u,x.lexer,x);for(;;){ae.acceptLexerState(x);let pe=ae.parseIntermediateType(L.OBJECT);x.acceptLexerState(ae),pe===void 0&&g&&(pe=x.parseIntermediateType(L.OBJECT));let ge=!1;if(pe.type==="JsdocTypeNullable"&&(ge=!0,pe=pe.element),pe.type==="JsdocTypeNumber"||pe.type==="JsdocTypeName"||pe.type==="JsdocTypeStringValue"){let ke;pe.type==="JsdocTypeStringValue"&&(ke=pe.meta.quote),q.elements.push({type:"JsdocTypeObjectField",key:pe.value.toString(),right:void 0,optional:ge,readonly:!1,meta:{quote:ke}})}else if(pe.type==="JsdocTypeObjectField"||pe.type==="JsdocTypeJsdocObjectField")q.elements.push(pe);else throw new a(pe);if(x.lexer.current.startOfLine)ee="linebreak",x.consume(",")||x.consume(";");else if(x.consume(","))ee="comma";else if(x.consume(";"))ee="semicolon";else break;if(x.lexer.current.type==="}")break}if(q.meta.separator=ee??"comma",ee==="linebreak"&&(q.meta.propertyIndent=" "),!x.consume("}"))throw new Error("Unterminated record type. Missing '}'")}return q}})}function Ue({allowSquaredProperties:u,allowKeyTypes:g,allowReadonly:x,allowOptional:q}){return X({name:"objectFieldParslet",precedence:L.KEY_VALUE,accept:ee=>ee===":",parseInfix:(ee,ae)=>{var pe;let ge=!1,ke=!1;q&&ae.type==="JsdocTypeNullable"&&(ge=!0,ae=ae.element),x&&ae.type==="JsdocTypeReadonlyProperty"&&(ke=!0,ae=ae.element);let ze=(pe=ee.baseParser)!==null&&pe!==void 0?pe:ee;if(ze.acceptLexerState(ee),ae.type==="JsdocTypeNumber"||ae.type==="JsdocTypeName"||ae.type==="JsdocTypeStringValue"||G(ae)){if(G(ae)&&!u)throw new a(ae);ze.consume(":");let _t;ae.type==="JsdocTypeStringValue"&&(_t=ae.meta.quote);let pt=ze.parseType(L.KEY_VALUE);return ee.acceptLexerState(ze),{type:"JsdocTypeObjectField",key:G(ae)?ae:ae.value.toString(),right:pt,optional:ge,readonly:ke,meta:{quote:_t}}}else{if(!g)throw new a(ae);ze.consume(":");let _t=ze.parseType(L.KEY_VALUE);return ee.acceptLexerState(ze),{type:"JsdocTypeJsdocObjectField",left:y(ae),right:_t}}}})}function mt({allowOptional:u,allowVariadic:g}){return X({name:"keyValueParslet",precedence:L.KEY_VALUE,accept:x=>x===":",parseInfix:(x,q)=>{let ee=!1,ae=!1;if(u&&q.type==="JsdocTypeNullable"&&(ee=!0,q=q.element),g&&q.type==="JsdocTypeVariadic"&&q.element!==void 0&&(ae=!0,q=q.element),q.type!=="JsdocTypeName")throw new a(q);x.consume(":");let pe=x.parseType(L.KEY_VALUE);return{type:"JsdocTypeKeyValue",key:q.value,right:pe,optional:ee,variadic:ae}}})}let Ye=[...se,Re({allowWithoutParenthesis:!0,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),Le,Z({allowedTypes:["module","external","event"],pathGrammar:Ae}),Pe({allowEnclosingBrackets:!0,allowPostfix:!0}),Oe({allowedAdditionalTokens:["keyof"]}),Me,st,Te({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:Ae})],Zt=[...Ye,Ot({objectFieldGrammar:[Oe({allowedAdditionalTokens:["typeof","module","in"]}),Ue({allowSquaredProperties:!1,allowKeyTypes:!0,allowOptional:!1,allowReadonly:!1}),...Ye],allowKeyTypes:!0}),mt({allowOptional:!0,allowVariadic:!0})],Ft=X({name:"typeOfParslet",accept:u=>u==="typeof",parsePrefix:u=>(u.consume("typeof"),{type:"JsdocTypeTypeof",element:u.parseType(L.KEY_OF_TYPE_OF)})}),ye=[Oe({allowedAdditionalTokens:["typeof","module","keyof","event","external","in"]}),Y,oe,Le,ve,Ue({allowSquaredProperties:!1,allowKeyTypes:!1,allowOptional:!1,allowReadonly:!1})],ct=[...se,Ot({allowKeyTypes:!1,objectFieldGrammar:ye}),Oe({allowedAdditionalTokens:["event","external","in"]}),Ft,Re({allowWithoutParenthesis:!1,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),Pe({allowEnclosingBrackets:!1,allowPostfix:!1}),Oe({allowedAdditionalTokens:["keyof"]}),Z({allowedTypes:["module"],pathGrammar:Ae}),Te({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:Ae}),mt({allowOptional:!1,allowVariadic:!1}),Me],Ie=X({name:"assertsParslet",accept:u=>u==="asserts",parsePrefix:u=>{u.consume("asserts");let g=u.parseIntermediateType(L.SYMBOL);if(g.type!=="JsdocTypeName")throw new a(g,"A typescript asserts always has to have a name on the left side.");return u.consume("is")?{type:"JsdocTypeAsserts",left:g,right:y(u.parseIntermediateType(L.INFIX))}:{type:"JsdocTypeAssertsPlain",element:g}}});function vt({allowQuestionMark:u}){return X({name:"tupleParslet",accept:g=>g==="[",parsePrefix:g=>{g.consume("[");let x={type:"JsdocTypeTuple",elements:[]};if(g.consume("]"))return x;let q=g.parseIntermediateType(L.ALL);if(q.type==="JsdocTypeParameterList"?q.elements[0].type==="JsdocTypeKeyValue"?x.elements=q.elements.map(D):x.elements=q.elements.map(y):q.type==="JsdocTypeKeyValue"?x.elements=[D(q)]:x.elements=[y(q)],!g.consume("]"))throw new Error("Unterminated '['");if(x.elements.some(ee=>ee.type==="JsdocTypeUnknown"))throw new Error("Question mark in tuple not allowed");return x}})}let et=X({name:"keyOfParslet",accept:u=>u==="keyof",parsePrefix:u=>(u.consume("keyof"),{type:"JsdocTypeKeyof",element:y(u.parseType(L.KEY_OF_TYPE_OF))})}),Er=X({name:"importParslet",accept:u=>u==="import",parsePrefix:u=>{if(u.consume("import"),!u.consume("("))throw new Error("Missing parenthesis after import keyword");let g=u.parseType(L.PREFIX);if(g.type!=="JsdocTypeStringValue")throw new Error("Only string values are allowed as paths for imports");if(!u.consume(")"))throw new Error("Missing closing parenthesis after import keyword");return{type:"JsdocTypeImport",element:g}}}),xr=X({name:"readonlyPropertyParslet",accept:u=>u==="readonly",parsePrefix:u=>(u.consume("readonly"),{type:"JsdocTypeReadonlyProperty",element:u.parseIntermediateType(L.KEY_VALUE)})}),yt=X({name:"arrowFunctionParslet",precedence:L.ARROW,accept:u=>u==="=>",parseInfix:(u,g)=>(u.consume("=>"),{type:"JsdocTypeFunction",parameters:xe(g).map(_),arrow:!0,constructor:!1,parenthesis:!0,returnType:u.parseType(L.OBJECT)})}),Be=X({name:"genericArrowFunctionParslet",accept:u=>u==="<",parsePrefix:u=>{let g=[];u.consume("<");do{let q,ee=u.parseIntermediateType(L.SYMBOL);if(ee.type==="JsdocTypeOptional"&&(ee=ee.element,q=u.parseType(L.SYMBOL)),ee.type!=="JsdocTypeName")throw new a(ee);let ae;u.consume("extends")&&(ae=u.parseType(L.SYMBOL),ae.type==="JsdocTypeOptional"&&(ae=ae.element,q=u.parseType(L.SYMBOL)));let pe={type:"JsdocTypeTypeParameter",name:ee};if(ae!==void 0&&(pe.constraint=ae),q!==void 0&&(pe.defaultValue=q),g.push(pe),u.consume(">"))break}while(u.consume(","));let x=u.parseIntermediateType(L.SYMBOL);return x.typeParameters=g,x}}),er=X({name:"intersectionParslet",accept:u=>u==="&",precedence:L.INTERSECTION,parseInfix:(u,g)=>{u.consume("&");let x=[];do x.push(u.parseType(L.INTERSECTION));while(u.consume("&"));return{type:"JsdocTypeIntersection",elements:[y(g),...x]}}}),ot=X({name:"predicateParslet",precedence:L.INFIX,accept:u=>u==="is",parseInfix:(u,g)=>{if(g.type!=="JsdocTypeName")throw new a(g,"A typescript predicate always has to have a name on the left side.");return u.consume("is"),{type:"JsdocTypePredicate",left:g,right:y(u.parseIntermediateType(L.INFIX))}}}),$t=X({name:"objectSquareBracketPropertyParslet",accept:u=>u==="[",parsePrefix:u=>{if(u.baseParser===void 0)throw new Error("Only allowed inside object grammar");u.consume("[");let g=u.lexer.current.text;u.consume("Identifier");let x;if(u.consume(":")){let q=u.baseParser;q.acceptLexerState(u),x={type:"JsdocTypeIndexSignature",key:g,right:q.parseType(L.INDEX_BRACKETS)},u.acceptLexerState(q)}else if(u.consume("in")){let q=u.baseParser;q.acceptLexerState(u),x={type:"JsdocTypeMappedType",key:g,right:q.parseType(L.ARRAY_BRACKETS)},u.acceptLexerState(q)}else throw new Error("Missing ':' or 'in' inside square bracketed property.");if(!u.consume("]"))throw new Error("Unterminated square brackets");return x}}),kr=X({name:"readonlyArrayParslet",accept:u=>u==="readonly",parsePrefix:u=>(u.consume("readonly"),{type:"JsdocTypeReadonlyArray",element:M(u.parseIntermediateType(L.ALL))})}),rt=X({name:"conditionalParslet",precedence:L.INFIX,accept:u=>u==="extends",parseInfix:(u,g)=>{u.consume("extends");let x=u.parseType(L.KEY_OF_TYPE_OF).element,q=u.parseType(L.INFIX);return u.consume(":"),{type:"JsdocTypeConditional",checksType:y(g),extendsType:x,trueType:q,falseType:u.parseType(L.INFIX)}}}),At=[xr,Oe({allowedAdditionalTokens:["typeof","module","keyof","event","external","in"]}),Y,oe,Le,ve,Ue({allowSquaredProperties:!0,allowKeyTypes:!1,allowOptional:!0,allowReadonly:!0}),$t],tr=[...se,Ot({allowKeyTypes:!1,objectFieldGrammar:At}),kr,Ft,et,Er,Le,Re({allowWithoutParenthesis:!0,allowNoReturnType:!1,allowNamedParameters:["this","new","args"],allowNewAsFunctionKeyword:!0}),vt({allowQuestionMark:!1}),Pe({allowEnclosingBrackets:!1,allowPostfix:!1}),Ie,rt,Oe({allowedAdditionalTokens:["event","external","in"]}),Z({allowedTypes:["module"],pathGrammar:Ae}),st,yt,Be,Te({allowSquareBracketsOnAnyType:!0,allowJsdocNamePaths:!1,pathGrammar:Ae}),er,ot,mt({allowVariadic:!0,allowOptional:!0})];function gt(u,g){switch(g){case"closure":return new I(ct,u).parse();case"jsdoc":return new I(Zt,u).parse();case"typescript":return new I(tr,u).parse()}}function nt(u,g=["typescript","closure","jsdoc"]){let x;for(let q of g)try{return gt(u,q)}catch(ee){x=ee}throw x}function Nt(u,g){let x=u[g.type];if(x===void 0)throw new Error(`In this set of transform rules exists no rule for type ${g.type}.`);return x(g,q=>Nt(u,q))}function Ne(u){throw new Error("This transform is not available. Are you trying the correct parsing mode?")}function C(u){let g={params:[]};for(let x of u.parameters)x.type==="JsdocTypeKeyValue"?x.key==="this"?g.this=x.right:x.key==="new"?g.new=x.right:g.params.push(x):g.params.push(x);return g}function B(u,g,x){return u==="prefix"?x+g:g+x}function F(u,g){switch(g){case"double":return`"${u}"`;case"single":return`'${u}'`;case void 0:return u}}function P(){return{JsdocTypeParenthesis:(u,g)=>`(${u.element!==void 0?g(u.element):""})`,JsdocTypeKeyof:(u,g)=>`keyof ${g(u.element)}`,JsdocTypeFunction:(u,g)=>{var x;if(u.arrow){if(u.returnType===void 0)throw new Error("Arrow function needs a return type.");let q=`${u.typeParameters!==void 0?`<${(x=u.typeParameters.map(g).join(", "))!==null&&x!==void 0?x:""}>`:""}(${u.parameters.map(g).join(", ")}) => ${g(u.returnType)}`;return u.constructor&&(q="new "+q),q}else{let q=u.constructor?"new":"function";return u.parenthesis&&(q+=`(${u.parameters.map(g).join(", ")})`,u.returnType!==void 0&&(q+=`: ${g(u.returnType)}`)),q}},JsdocTypeName:u=>u.value,JsdocTypeTuple:(u,g)=>`[${u.elements.map(g).join(", ")}]`,JsdocTypeVariadic:(u,g)=>u.meta.position===void 0?"...":B(u.meta.position,g(u.element),"..."),JsdocTypeNamePath:(u,g)=>{let x=g(u.left),q=g(u.right);switch(u.pathType){case"inner":return`${x}~${q}`;case"instance":return`${x}#${q}`;case"property":return`${x}.${q}`;case"property-brackets":return`${x}[${q}]`}},JsdocTypeStringValue:u=>F(u.value,u.meta.quote),JsdocTypeAny:()=>"*",JsdocTypeGeneric:(u,g)=>{if(u.meta.brackets==="square"){let x=u.elements[0],q=g(x);return x.type==="JsdocTypeUnion"||x.type==="JsdocTypeIntersection"?`(${q})[]`:`${q}[]`}else return`${g(u.left)}${u.meta.dot?".":""}<${u.infer===!0?"infer ":""}${u.elements.map(g).join(", ")}>`},JsdocTypeImport:(u,g)=>`import(${g(u.element)})`,JsdocTypeObjectField:(u,g)=>{let x="";return u.readonly&&(x+="readonly "),typeof u.key=="string"?x+=F(u.key,u.meta.quote):x+=g(u.key),u.optional&&(x+="?"),u.right===void 0?x:x+`: ${g(u.right)}`},JsdocTypeJsdocObjectField:(u,g)=>`${g(u.left)}: ${g(u.right)}`,JsdocTypeKeyValue:(u,g)=>{let x=u.key;return u.optional&&(x+="?"),u.variadic&&(x="..."+x),u.right===void 0?x:x+`: ${g(u.right)}`},JsdocTypeSpecialNamePath:u=>`${u.specialType}:${F(u.value,u.meta.quote)}`,JsdocTypeNotNullable:(u,g)=>B(u.meta.position,g(u.element),"!"),JsdocTypeNull:()=>"null",JsdocTypeNullable:(u,g)=>B(u.meta.position,g(u.element),"?"),JsdocTypeNumber:u=>u.value.toString(),JsdocTypeObject:(u,g)=>{var x,q;return`{${(u.meta.separator==="linebreak"&&u.elements.length>1?`
|
|
15
|
+
`+((x=u.meta.propertyIndent)!==null&&x!==void 0?x:""):"")+u.elements.map(g).join(u.meta.separator==="comma"?", ":u.meta.separator==="linebreak"?`
|
|
16
|
+
`+((q=u.meta.propertyIndent)!==null&&q!==void 0?q:""):"; ")+(u.meta.separator==="linebreak"&&u.elements.length>1?`
|
|
17
|
+
`:"")}}`},JsdocTypeOptional:(u,g)=>B(u.meta.position,g(u.element),"="),JsdocTypeSymbol:(u,g)=>`${u.value}(${u.element!==void 0?g(u.element):""})`,JsdocTypeTypeof:(u,g)=>`typeof ${g(u.element)}`,JsdocTypeUndefined:()=>"undefined",JsdocTypeUnion:(u,g)=>u.elements.map(g).join(" | "),JsdocTypeUnknown:()=>"?",JsdocTypeIntersection:(u,g)=>u.elements.map(g).join(" & "),JsdocTypeProperty:u=>F(u.value,u.meta.quote),JsdocTypePredicate:(u,g)=>`${g(u.left)} is ${g(u.right)}`,JsdocTypeIndexSignature:(u,g)=>`[${u.key}: ${g(u.right)}]`,JsdocTypeMappedType:(u,g)=>`[${u.key} in ${g(u.right)}]`,JsdocTypeAsserts:(u,g)=>`asserts ${g(u.left)} is ${g(u.right)}`,JsdocTypeReadonlyArray:(u,g)=>`readonly ${g(u.element)}`,JsdocTypeAssertsPlain:(u,g)=>`asserts ${g(u.element)}`,JsdocTypeConditional:(u,g)=>`${g(u.checksType)} extends ${g(u.extendsType)} ? ${g(u.trueType)} : ${g(u.falseType)}`,JsdocTypeTypeParameter:(u,g)=>`${g(u.name)}${u.constraint!==void 0?` extends ${g(u.constraint)}`:""}${u.defaultValue!==void 0?` = ${g(u.defaultValue)}`:""}`}}let V=P();function ie(u){return Nt(V,u)}let ue=["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 ce(u){let g={type:"NameExpression",name:u};return ue.includes(u)&&(g.reservedWord=!0),g}let _e={JsdocTypeOptional:(u,g)=>{let x=g(u.element);return x.optional=!0,x},JsdocTypeNullable:(u,g)=>{let x=g(u.element);return x.nullable=!0,x},JsdocTypeNotNullable:(u,g)=>{let x=g(u.element);return x.nullable=!1,x},JsdocTypeVariadic:(u,g)=>{if(u.element===void 0)throw new Error("dots without value are not allowed in catharsis mode");let x=g(u.element);return x.repeatable=!0,x},JsdocTypeAny:()=>({type:"AllLiteral"}),JsdocTypeNull:()=>({type:"NullLiteral"}),JsdocTypeStringValue:u=>ce(F(u.value,u.meta.quote)),JsdocTypeUndefined:()=>({type:"UndefinedLiteral"}),JsdocTypeUnknown:()=>({type:"UnknownLiteral"}),JsdocTypeFunction:(u,g)=>{let x=C(u),q={type:"FunctionType",params:x.params.map(g)};return x.this!==void 0&&(q.this=g(x.this)),x.new!==void 0&&(q.new=g(x.new)),u.returnType!==void 0&&(q.result=g(u.returnType)),q},JsdocTypeGeneric:(u,g)=>({type:"TypeApplication",applications:u.elements.map(x=>g(x)),expression:g(u.left)}),JsdocTypeSpecialNamePath:u=>ce(u.specialType+":"+F(u.value,u.meta.quote)),JsdocTypeName:u=>u.value!=="function"?ce(u.value):{type:"FunctionType",params:[]},JsdocTypeNumber:u=>ce(u.value.toString()),JsdocTypeObject:(u,g)=>{let x={type:"RecordType",fields:[]};for(let q of u.elements)q.type!=="JsdocTypeObjectField"&&q.type!=="JsdocTypeJsdocObjectField"?x.fields.push({type:"FieldType",key:g(q),value:void 0}):x.fields.push(g(q));return x},JsdocTypeObjectField:(u,g)=>{if(typeof u.key!="string")throw new Error("Index signatures and mapped types are not supported");return{type:"FieldType",key:ce(F(u.key,u.meta.quote)),value:u.right===void 0?void 0:g(u.right)}},JsdocTypeJsdocObjectField:(u,g)=>({type:"FieldType",key:g(u.left),value:g(u.right)}),JsdocTypeUnion:(u,g)=>({type:"TypeUnion",elements:u.elements.map(x=>g(x))}),JsdocTypeKeyValue:(u,g)=>({type:"FieldType",key:ce(u.key),value:u.right===void 0?void 0:g(u.right)}),JsdocTypeNamePath:(u,g)=>{let x=g(u.left),q;u.right.type==="JsdocTypeSpecialNamePath"?q=g(u.right).name:q=F(u.right.value,u.right.meta.quote);let ee=u.pathType==="inner"?"~":u.pathType==="instance"?"#":".";return ce(`${x.name}${ee}${q}`)},JsdocTypeSymbol:u=>{let g="",x=u.element,q=!1;return x?.type==="JsdocTypeVariadic"&&(x.meta.position==="prefix"?g="...":q=!0,x=x.element),x?.type==="JsdocTypeName"?g+=x.value:x?.type==="JsdocTypeNumber"&&(g+=x.value.toString()),q&&(g+="..."),ce(`${u.value}(${g})`)},JsdocTypeParenthesis:(u,g)=>g(y(u.element)),JsdocTypeMappedType:Ne,JsdocTypeIndexSignature:Ne,JsdocTypeImport:Ne,JsdocTypeKeyof:Ne,JsdocTypeTuple:Ne,JsdocTypeTypeof:Ne,JsdocTypeIntersection:Ne,JsdocTypeProperty:Ne,JsdocTypePredicate:Ne,JsdocTypeAsserts:Ne,JsdocTypeReadonlyArray:Ne,JsdocTypeAssertsPlain:Ne,JsdocTypeConditional:Ne,JsdocTypeTypeParameter:Ne};function Ve(u){return Nt(_e,u)}function he(u){switch(u){case void 0:return"none";case"single":return"single";case"double":return"double"}}function Pt(u){switch(u){case"inner":return"INNER_MEMBER";case"instance":return"INSTANCE_MEMBER";case"property":return"MEMBER";case"property-brackets":return"MEMBER"}}function kt(u,g){return g.length===2?{type:u,left:g[0],right:g[1]}:{type:u,left:g[0],right:kt(u,g.slice(1))}}let Mr={JsdocTypeOptional:(u,g)=>({type:"OPTIONAL",value:g(u.element),meta:{syntax:u.meta.position==="prefix"?"PREFIX_EQUAL_SIGN":"SUFFIX_EQUALS_SIGN"}}),JsdocTypeNullable:(u,g)=>({type:"NULLABLE",value:g(u.element),meta:{syntax:u.meta.position==="prefix"?"PREFIX_QUESTION_MARK":"SUFFIX_QUESTION_MARK"}}),JsdocTypeNotNullable:(u,g)=>({type:"NOT_NULLABLE",value:g(u.element),meta:{syntax:u.meta.position==="prefix"?"PREFIX_BANG":"SUFFIX_BANG"}}),JsdocTypeVariadic:(u,g)=>{let x={type:"VARIADIC",meta:{syntax:u.meta.position==="prefix"?"PREFIX_DOTS":u.meta.position==="suffix"?"SUFFIX_DOTS":"ONLY_DOTS"}};return u.element!==void 0&&(x.value=g(u.element)),x},JsdocTypeName:u=>({type:"NAME",name:u.value}),JsdocTypeTypeof:(u,g)=>({type:"TYPE_QUERY",name:g(u.element)}),JsdocTypeTuple:(u,g)=>({type:"TUPLE",entries:u.elements.map(g)}),JsdocTypeKeyof:(u,g)=>({type:"KEY_QUERY",value:g(u.element)}),JsdocTypeImport:u=>({type:"IMPORT",path:{type:"STRING_VALUE",quoteStyle:he(u.element.meta.quote),string:u.element.value}}),JsdocTypeUndefined:()=>({type:"NAME",name:"undefined"}),JsdocTypeAny:()=>({type:"ANY"}),JsdocTypeFunction:(u,g)=>{let x=C(u),q={type:u.arrow?"ARROW":"FUNCTION",params:x.params.map(ee=>{if(ee.type==="JsdocTypeKeyValue"){if(ee.right===void 0)throw new Error("Function parameter without ':' is not expected to be 'KEY_VALUE'");return{type:"NAMED_PARAMETER",name:ee.key,typeName:g(ee.right)}}else return g(ee)}),new:null,returns:null};return x.this!==void 0?q.this=g(x.this):u.arrow||(q.this=null),x.new!==void 0&&(q.new=g(x.new)),u.returnType!==void 0&&(q.returns=g(u.returnType)),q},JsdocTypeGeneric:(u,g)=>{let x={type:"GENERIC",subject:g(u.left),objects:u.elements.map(g),meta:{syntax:u.meta.brackets==="square"?"SQUARE_BRACKET":u.meta.dot?"ANGLE_BRACKET_WITH_DOT":"ANGLE_BRACKET"}};return u.meta.brackets==="square"&&u.elements[0].type==="JsdocTypeFunction"&&!u.elements[0].parenthesis&&(x.objects[0]={type:"NAME",name:"function"}),x},JsdocTypeObjectField:(u,g)=>{if(typeof u.key!="string")throw new Error("Index signatures and mapped types are not supported");if(u.right===void 0)return{type:"RECORD_ENTRY",key:u.key,quoteStyle:he(u.meta.quote),value:null,readonly:!1};let x=g(u.right);return u.optional&&(x={type:"OPTIONAL",value:x,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:u.key.toString(),quoteStyle:he(u.meta.quote),value:x,readonly:!1}},JsdocTypeJsdocObjectField:()=>{throw new Error("Keys may not be typed in jsdoctypeparser.")},JsdocTypeKeyValue:(u,g)=>{if(u.right===void 0)return{type:"RECORD_ENTRY",key:u.key,quoteStyle:"none",value:null,readonly:!1};let x=g(u.right);return u.optional&&(x={type:"OPTIONAL",value:x,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:u.key,quoteStyle:"none",value:x,readonly:!1}},JsdocTypeObject:(u,g)=>{let x=[];for(let q of u.elements)(q.type==="JsdocTypeObjectField"||q.type==="JsdocTypeJsdocObjectField")&&x.push(g(q));return{type:"RECORD",entries:x}},JsdocTypeSpecialNamePath:u=>{if(u.specialType!=="module")throw new Error(`jsdoctypeparser does not support type ${u.specialType} at this point.`);return{type:"MODULE",value:{type:"FILE_PATH",quoteStyle:he(u.meta.quote),path:u.value}}},JsdocTypeNamePath:(u,g)=>{let x=!1,q,ee;u.right.type==="JsdocTypeSpecialNamePath"&&u.right.specialType==="event"?(x=!0,q=u.right.value,ee=he(u.right.meta.quote)):(q=u.right.value,ee=he(u.right.meta.quote));let ae={type:Pt(u.pathType),owner:g(u.left),name:q,quoteStyle:ee,hasEventPrefix:x};if(ae.owner.type==="MODULE"){let pe=ae.owner;return ae.owner=ae.owner.value,pe.value=ae,pe}else return ae},JsdocTypeUnion:(u,g)=>kt("UNION",u.elements.map(g)),JsdocTypeParenthesis:(u,g)=>({type:"PARENTHESIS",value:g(y(u.element))}),JsdocTypeNull:()=>({type:"NAME",name:"null"}),JsdocTypeUnknown:()=>({type:"UNKNOWN"}),JsdocTypeStringValue:u=>({type:"STRING_VALUE",quoteStyle:he(u.meta.quote),string:u.value}),JsdocTypeIntersection:(u,g)=>kt("INTERSECTION",u.elements.map(g)),JsdocTypeNumber:u=>({type:"NUMBER_VALUE",number:u.value.toString()}),JsdocTypeSymbol:Ne,JsdocTypeProperty:Ne,JsdocTypePredicate:Ne,JsdocTypeMappedType:Ne,JsdocTypeIndexSignature:Ne,JsdocTypeAsserts:Ne,JsdocTypeReadonlyArray:Ne,JsdocTypeAssertsPlain:Ne,JsdocTypeConditional:Ne,JsdocTypeTypeParameter:Ne};function rn(u){return Nt(Mr,u)}function Jt(){return{JsdocTypeIntersection:(u,g)=>({type:"JsdocTypeIntersection",elements:u.elements.map(g)}),JsdocTypeGeneric:(u,g)=>({type:"JsdocTypeGeneric",left:g(u.left),elements:u.elements.map(g),meta:{dot:u.meta.dot,brackets:u.meta.brackets}}),JsdocTypeNullable:u=>u,JsdocTypeUnion:(u,g)=>({type:"JsdocTypeUnion",elements:u.elements.map(g)}),JsdocTypeUnknown:u=>u,JsdocTypeUndefined:u=>u,JsdocTypeTypeof:(u,g)=>({type:"JsdocTypeTypeof",element:g(u.element)}),JsdocTypeSymbol:(u,g)=>{let x={type:"JsdocTypeSymbol",value:u.value};return u.element!==void 0&&(x.element=g(u.element)),x},JsdocTypeOptional:(u,g)=>({type:"JsdocTypeOptional",element:g(u.element),meta:{position:u.meta.position}}),JsdocTypeObject:(u,g)=>({type:"JsdocTypeObject",meta:{separator:"comma"},elements:u.elements.map(g)}),JsdocTypeNumber:u=>u,JsdocTypeNull:u=>u,JsdocTypeNotNullable:(u,g)=>({type:"JsdocTypeNotNullable",element:g(u.element),meta:{position:u.meta.position}}),JsdocTypeSpecialNamePath:u=>u,JsdocTypeObjectField:(u,g)=>({type:"JsdocTypeObjectField",key:u.key,right:u.right===void 0?void 0:g(u.right),optional:u.optional,readonly:u.readonly,meta:u.meta}),JsdocTypeJsdocObjectField:(u,g)=>({type:"JsdocTypeJsdocObjectField",left:g(u.left),right:g(u.right)}),JsdocTypeKeyValue:(u,g)=>({type:"JsdocTypeKeyValue",key:u.key,right:u.right===void 0?void 0:g(u.right),optional:u.optional,variadic:u.variadic}),JsdocTypeImport:(u,g)=>({type:"JsdocTypeImport",element:g(u.element)}),JsdocTypeAny:u=>u,JsdocTypeStringValue:u=>u,JsdocTypeNamePath:u=>u,JsdocTypeVariadic:(u,g)=>{let x={type:"JsdocTypeVariadic",meta:{position:u.meta.position,squareBrackets:u.meta.squareBrackets}};return u.element!==void 0&&(x.element=g(u.element)),x},JsdocTypeTuple:(u,g)=>({type:"JsdocTypeTuple",elements:u.elements.map(g)}),JsdocTypeName:u=>u,JsdocTypeFunction:(u,g)=>{let x={type:"JsdocTypeFunction",arrow:u.arrow,parameters:u.parameters.map(g),constructor:u.constructor,parenthesis:u.parenthesis};return u.returnType!==void 0&&(x.returnType=g(u.returnType)),x},JsdocTypeKeyof:(u,g)=>({type:"JsdocTypeKeyof",element:g(u.element)}),JsdocTypeParenthesis:(u,g)=>({type:"JsdocTypeParenthesis",element:g(u.element)}),JsdocTypeProperty:u=>u,JsdocTypePredicate:(u,g)=>({type:"JsdocTypePredicate",left:g(u.left),right:g(u.right)}),JsdocTypeIndexSignature:(u,g)=>({type:"JsdocTypeIndexSignature",key:u.key,right:g(u.right)}),JsdocTypeMappedType:(u,g)=>({type:"JsdocTypeMappedType",key:u.key,right:g(u.right)}),JsdocTypeAsserts:(u,g)=>({type:"JsdocTypeAsserts",left:g(u.left),right:g(u.right)}),JsdocTypeReadonlyArray:(u,g)=>({type:"JsdocTypeReadonlyArray",element:g(u.element)}),JsdocTypeAssertsPlain:(u,g)=>({type:"JsdocTypeAssertsPlain",element:g(u.element)}),JsdocTypeConditional:(u,g)=>({type:"JsdocTypeConditional",checksType:g(u.checksType),extendsType:g(u.extendsType),trueType:g(u.trueType),falseType:g(u.falseType)}),JsdocTypeTypeParameter:(u,g)=>({type:"JsdocTypeTypeParameter",name:g(u.name),constraint:u.constraint!==void 0?g(u.constraint):void 0,defaultValue:u.defaultValue!==void 0?g(u.defaultValue):void 0})}}let nn={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 qr(u,g,x,q,ee){q?.(u,g,x);let ae=nn[u.type];for(let pe of ae){let ge=u[pe];if(ge!==void 0)if(Array.isArray(ge))for(let ke of ge)qr(ke,u,pe,q,ee);else qr(ge,u,pe,q,ee)}ee?.(u,g,x)}function Vi(u,g,x){qr(u,void 0,void 0,g,x)}r.catharsisTransform=Ve,r.identityTransformRules=Jt,r.jtpTransform=rn,r.parse=gt,r.stringify=ie,r.stringifyRules=P,r.transform=Nt,r.traverse=Vi,r.tryParse=nt,r.visitorKeys=nn}))}}),gS=Q({"../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(p,l){for(var d=0;d<l.length;d++){var f=l[d];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(p,(h=f.key,m=void 0,typeof(m=(function(b,E){if(typeof b!="object"||b===null)return b;var w=b[Symbol.toPrimitive];if(w!==void 0){var A=w.call(b,E);if(typeof A!="object")return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return(E==="string"?String:Number)(b)})(h,"string"))=="symbol"?m:String(m)),f)}var h,m}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"},i={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"},o=function(p){var l=new RegExp("^-?\\d+(?:.\\d{0,".concat(arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1,"})?")),d=Number(p).toString().match(l);return d?d[0]:null},a=function(){return typeof window<"u"?window.navigator:null},s=(function(){function p(h){var m;(function(b,E){if(!(b instanceof E))throw new TypeError("Cannot call a class as a function")})(this,p),this.userAgent=h||((m=a())===null||m===void 0?void 0:m.userAgent)||null}var l,d,f;return l=p,d=[{key:"parseUserAgent",value:function(h){var m,b,E,w={},A=h||this.userAgent||"",S=A.toLowerCase().replace(/\s\s+/g," "),k=/(edge)\/([\w.]+)/.exec(S)||/(edg)[/]([\w.]+)/.exec(S)||/(opr)[/]([\w.]+)/.exec(S)||/(opt)[/]([\w.]+)/.exec(S)||/(fxios)[/]([\w.]+)/.exec(S)||/(edgios)[/]([\w.]+)/.exec(S)||/(jsdom)[/]([\w.]+)/.exec(S)||/(samsungbrowser)[/]([\w.]+)/.exec(S)||/(electron)[/]([\w.]+)/.exec(S)||/(chrome)[/]([\w.]+)/.exec(S)||/(crios)[/]([\w.]+)/.exec(S)||/(opios)[/]([\w.]+)/.exec(S)||/(version)(applewebkit)[/]([\w.]+).*(safari)[/]([\w.]+)/.exec(S)||/(webkit)[/]([\w.]+).*(version)[/]([\w.]+).*(safari)[/]([\w.]+)/.exec(S)||/(applewebkit)[/]([\w.]+).*(safari)[/]([\w.]+)/.exec(S)||/(webkit)[/]([\w.]+)/.exec(S)||/(opera)(?:.*version|)[/]([\w.]+)/.exec(S)||/(msie) ([\w.]+)/.exec(S)||/(fennec)[/]([\w.]+)/.exec(S)||S.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(S)||S.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(S)||[],O=/(ipad)/.exec(S)||/(ipod)/.exec(S)||/(iphone)/.exec(S)||/(jsdom)/.exec(S)||/(windows phone)/.exec(S)||/(xbox)/.exec(S)||/(win)/.exec(S)||/(tablet)/.exec(S)||/(android)/.test(S)&&/(mobile)/.test(S)===!1&&["androidTablet"]||/(android)/.exec(S)||/(mac)/.exec(S)||/(linux)/.exec(S)||/(cros)/.exec(S)||[],R=k[5]||k[3]||k[1]||null,y=O[0]||null,T=k[4]||k[2]||null,_=a();R==="chrome"&&typeof(_==null||(m=_.brave)===null||m===void 0?void 0:m.isBrave)=="function"&&(R="brave"),R&&(w[R]=!0),y&&(w[y]=!0);var D=!!(w.tablet||w.android||w.androidTablet),J=!!(w.ipad||w.tablet||w.androidTablet),M=!!(w.android||w.androidTablet||w.tablet||w.ipad||w.ipod||w.iphone||w["windows phone"]),G=!!(w.cros||w.mac||w.linux||w.win),L=!!(w.brave||w.chrome||w.crios||w.opr||w.safari||w.edg||w.electron),I=!!(w.msie||w.rv);return{name:(b=n[R])!==null&&b!==void 0?b:null,platform:(E=i[y])!==null&&E!==void 0?E:null,userAgent:A,version:T,shortVersion:T?o(parseFloat(T),2):null,isAndroid:D,isTablet:J,isMobile:M,isDesktop:G,isWebkit:L,isIE:I}}},{key:"getBrowserInfo",value:function(){var h=this.parseUserAgent();return{name:h.name,platform:h.platform,userAgent:h.userAgent,version:h.version,shortVersion:h.shortVersion}}}],f=[{key:"VERSION",get:function(){return"3.4.0"}}],d&&r(l.prototype,d),f&&r(l,f),Object.defineProperty(l,"prototype",{writable:!1}),p})();return s}))}}),Yl={};ir(Yl,{ARGTYPES_INFO_REQUEST:()=>cy,ARGTYPES_INFO_RESPONSE:()=>xu,CHANNEL_CREATED:()=>ES,CHANNEL_WS_DISCONNECT:()=>Jm,CONFIG_ERROR:()=>Hm,CREATE_NEW_STORYFILE_REQUEST:()=>vS,CREATE_NEW_STORYFILE_RESPONSE:()=>AS,CURRENT_STORY_WAS_SET:()=>_u,DOCS_PREPARED:()=>Gm,DOCS_RENDERED:()=>Xl,FILE_COMPONENT_SEARCH_REQUEST:()=>wS,FILE_COMPONENT_SEARCH_RESPONSE:()=>CS,FORCE_REMOUNT:()=>Da,FORCE_RE_RENDER:()=>Ql,GLOBALS_UPDATED:()=>fo,NAVIGATE_URL:()=>_S,OPEN_IN_EDITOR_REQUEST:()=>$S,OPEN_IN_EDITOR_RESPONSE:()=>US,PLAY_FUNCTION_THREW_EXCEPTION:()=>zm,PRELOAD_ENTRIES:()=>Ym,PREVIEW_BUILDER_PROGRESS:()=>TS,PREVIEW_INITIALIZED:()=>Km,PREVIEW_KEYDOWN:()=>Xm,REGISTER_SUBSCRIPTION:()=>SS,REQUEST_WHATS_NEW_DATA:()=>kS,RESET_STORY_ARGS:()=>Zl,RESULT_WHATS_NEW_DATA:()=>MS,SAVE_STORY_REQUEST:()=>LS,SAVE_STORY_RESPONSE:()=>VS,SELECT_STORY:()=>xS,SET_CONFIG:()=>DS,SET_CURRENT_STORY:()=>ec,SET_FILTER:()=>RS,SET_GLOBALS:()=>Qm,SET_INDEX:()=>PS,SET_STORIES:()=>OS,SET_WHATS_NEW_CACHE:()=>qS,SHARED_STATE_CHANGED:()=>FS,SHARED_STATE_SET:()=>NS,STORIES_COLLAPSE_ALL:()=>IS,STORIES_EXPAND_ALL:()=>BS,STORY_ARGS_UPDATED:()=>Zm,STORY_CHANGED:()=>ey,STORY_ERRORED:()=>ty,STORY_FINISHED:()=>Su,STORY_HOT_UPDATED:()=>sy,STORY_INDEX_INVALIDATED:()=>ry,STORY_MISSING:()=>Tu,STORY_PREPARED:()=>ny,STORY_RENDERED:()=>Ra,STORY_RENDER_PHASE_CHANGED:()=>Un,STORY_SPECIFIED:()=>iy,STORY_THREW_EXCEPTION:()=>oy,STORY_UNCHANGED:()=>ay,TELEMETRY_ERROR:()=>ly,TOGGLE_WHATS_NEW_NOTIFICATIONS:()=>jS,UNHANDLED_ERRORS_WHILE_PLAYING:()=>Wm,UPDATE_GLOBALS:()=>tc,UPDATE_QUERY_PARAMS:()=>uy,UPDATE_STORY_ARGS:()=>rc,default:()=>bS});var Kl=(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))(Kl||{}),bS=Kl,{CHANNEL_WS_DISCONNECT:Jm,CHANNEL_CREATED:ES,CONFIG_ERROR:Hm,CREATE_NEW_STORYFILE_REQUEST:vS,CREATE_NEW_STORYFILE_RESPONSE:AS,CURRENT_STORY_WAS_SET:_u,DOCS_PREPARED:Gm,DOCS_RENDERED:Xl,FILE_COMPONENT_SEARCH_REQUEST:wS,FILE_COMPONENT_SEARCH_RESPONSE:CS,FORCE_RE_RENDER:Ql,FORCE_REMOUNT:Da,GLOBALS_UPDATED:fo,NAVIGATE_URL:_S,PLAY_FUNCTION_THREW_EXCEPTION:zm,UNHANDLED_ERRORS_WHILE_PLAYING:Wm,PRELOAD_ENTRIES:Ym,PREVIEW_INITIALIZED:Km,PREVIEW_BUILDER_PROGRESS:TS,PREVIEW_KEYDOWN:Xm,REGISTER_SUBSCRIPTION:SS,RESET_STORY_ARGS:Zl,SELECT_STORY:xS,SET_CONFIG:DS,SET_CURRENT_STORY:ec,SET_FILTER:RS,SET_GLOBALS:Qm,SET_INDEX:PS,SET_STORIES:OS,SHARED_STATE_CHANGED:FS,SHARED_STATE_SET:NS,STORIES_COLLAPSE_ALL:IS,STORIES_EXPAND_ALL:BS,STORY_ARGS_UPDATED:Zm,STORY_CHANGED:ey,STORY_ERRORED:ty,STORY_INDEX_INVALIDATED:ry,STORY_MISSING:Tu,STORY_PREPARED:ny,STORY_RENDER_PHASE_CHANGED:Un,STORY_RENDERED:Ra,STORY_FINISHED:Su,STORY_SPECIFIED:iy,STORY_THREW_EXCEPTION:oy,STORY_UNCHANGED:ay,STORY_HOT_UPDATED:sy,UPDATE_GLOBALS:tc,UPDATE_QUERY_PARAMS:uy,UPDATE_STORY_ARGS:rc,REQUEST_WHATS_NEW_DATA:kS,RESULT_WHATS_NEW_DATA:MS,SET_WHATS_NEW_CACHE:qS,TOGGLE_WHATS_NEW_NOTIFICATIONS:jS,TELEMETRY_ERROR:ly,SAVE_STORY_REQUEST:LS,SAVE_STORY_RESPONSE:VS,ARGTYPES_INFO_REQUEST:cy,ARGTYPES_INFO_RESPONSE:xu,OPEN_IN_EDITOR_REQUEST:$S,OPEN_IN_EDITOR_RESPONSE:US}=Kl,py={};ir(py,{global:()=>we});var we=(()=>{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})(),dy={"@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__"},JS=Object.keys(dy),fy={};ir(fy,{Channel:()=>rs,HEARTBEAT_INTERVAL:()=>My,HEARTBEAT_MAX_LATENCY:()=>qy,PostMessageTransport:()=>ky,WebsocketTransport:()=>jy,createBrowserChannel:()=>nR,default:()=>rR});function We(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 i=n.reduce(function(s,p){var l=p.match(/\n([\t ]+|(?!\s).)/g);return l?s.concat(l.map(function(d){var f,h;return(h=(f=d.match(/[\t ]/g))===null||f===void 0?void 0:f.length)!==null&&h!==void 0?h:0})):s},[]);if(i.length){var o=new RegExp(`
|
|
18
|
+
[ ]{`+Math.min.apply(Math,i)+"}","g");n=n.map(function(s){return s.replace(o,`
|
|
19
|
+
`)})}n[0]=n[0].replace(/^\r?\n/,"");var a=n[0];return t.forEach(function(s,p){var l=a.match(/(?:^|\n)( *)$/),d=l?l[1]:"",f=s;typeof s=="string"&&s.includes(`
|
|
20
|
+
`)&&(f=String(s).split(`
|
|
21
|
+
`).map(function(h,m){return m===0?h:""+d+h}).join(`
|
|
22
|
+
`)),a+=f+n[p+1]}),a}var id=new Map,HS="UNIVERSAL_STORE:",cr={PENDING:"PENDING",RESOLVED:"RESOLVED",REJECTED:"REJECTED"},Bn=class $e{constructor(t,r){if(this.debugging=!1,this.listeners=new Map([["*",new Set]]),this.getState=()=>(this.debug("getState",{state:this.state}),this.state),this.subscribe=(n,i)=>{let o=typeof n=="function",a=o?"*":n,s=o?n:i;if(this.debug("subscribe",{eventType:a,listener:s}),!s)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(s),()=>{this.debug("unsubscribe",{eventType:a,listener:s}),this.listeners.has(a)&&(this.listeners.get(a).delete(s),this.listeners.get(a)?.size===0&&this.listeners.delete(a))}},this.send=n=>{if(this.debug("send",{event:n}),this.status!==$e.Status.READY)throw new TypeError(We`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})},this.debugging=t.debug??!1,!$e.isInternalConstructing)throw new TypeError("UniversalStore is not constructable - use UniversalStore.create() instead");if($e.isInternalConstructing=!1,this.id=t.id,this.actorId=Date.now().toString(36)+Math.random().toString(36).substring(2),this.actorType=t.leader?$e.ActorType.LEADER:$e.ActorType.FOLLOWER,this.state=t.initialState,this.channelEventName=`${HS}${this.id}`,this.debug("constructor",{options:t,environmentOverrides:r,channelEventName:this.channelEventName}),this.actor.type===$e.ActorType.LEADER)this.syncing={state:cr.RESOLVED,promise:Promise.resolve()};else{let n,i,o=new Promise((a,s)=>{n=()=>{this.syncing.state===cr.PENDING&&(this.syncing.state=cr.RESOLVED,a())},i=p=>{this.syncing.state===cr.PENDING&&(this.syncing.state=cr.REJECTED,s(p))}});this.syncing={state:cr.PENDING,promise:o,resolve:n,reject:i}}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??$e.preparation.channel,this.environment=r?.environment??$e.preparation.environment,this.channel&&this.environment?($e.preparation.resolve({channel:this.channel,environment:this.environment}),this.prepareThis({channel:this.channel,environment:this.environment})):$e.preparation.promise.then(this.prepareThis)}static setupPreparationPromise(){let t,r,n=new Promise((i,o)=>{t=a=>{i(a)},r=(...a)=>{o(a)}});$e.preparation={resolve:t,reject:r,promise:n}}get actor(){return Object.freeze({id:this.actorId,type:this.actorType,environment:this.environment??$e.Environment.UNKNOWN})}get status(){if(!this.channel||!this.environment)return $e.Status.UNPREPARED;switch(this.syncing?.state){case cr.PENDING:case void 0:return $e.Status.SYNCING;case cr.REJECTED:return $e.Status.ERROR;case cr.RESOLVED:default:return $e.Status.READY}}untilReady(){return Promise.all([$e.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(We`[UniversalStore]
|
|
25
|
+
create`,{options:t});let r=id.get(t.id);if(r)return console.warn(We`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;$e.isInternalConstructing=!0;let n=new $e(t);return id.set(t.id,n),n}static __prepare(t,r){$e.preparation.channel=t,$e.preparation.environment=r,$e.preparation.resolve({channel:t,environment:r})}setState(t){let r=this.state,n=typeof t=="function"?t(r):t;if(this.debug("setState",{newState:n,previousState:r,updater:t}),this.status!==$e.Status.READY)throw new TypeError(We`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;let i={type:$e.InternalEventType.SET_STATE,payload:{state:n,previousState:r}};this.emitToChannel(i,{actor:this.actor}),this.emitToListeners(i,{actor:this.actor})}onStateChange(t){return this.debug("onStateChange",{listener:t}),this.subscribe($e.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===$e.ActorType.LEADER?this.emitToChannel({type:$e.InternalEventType.LEADER_CREATED},{actor:this.actor}):(this.emitToChannel({type:$e.InternalEventType.FOLLOWER_CREATED},{actor:this.actor}),this.emitToChannel({type:$e.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){let n=this.listeners.get(t.type),i=this.listeners.get("*");this.debug("emitToListeners",{event:t,eventInfo:r,eventTypeListeners:n,everythingListeners:i}),[...n??[],...i??[]].forEach(o=>o(t,r))}handleChannelEvents(t){let{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===cr.PENDING&&r.type!==$e.InternalEventType.EXISTING_STATE_RESPONSE){this.debug("handleChannelEvents: Ignoring event while syncing",{channelEvent:t});return}if(this.debug("handleChannelEvents",{channelEvent:t}),this.actor.type===$e.ActorType.LEADER){let i=!0;switch(r.type){case $e.InternalEventType.EXISTING_STATE_REQUEST:i=!1;let o={type:$e.InternalEventType.EXISTING_STATE_RESPONSE,payload:this.state};this.debug("handleChannelEvents: responding to existing state request",{responseEvent:o}),this.emitToChannel(o,{actor:this.actor}),this.emitToListeners(o,{actor:this.actor});break;case $e.InternalEventType.LEADER_CREATED:i=!1,this.syncing.state=cr.REJECTED,this.debug("handleChannelEvents: erroring due to second leader being created",{event:r}),console.error(We`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}i&&(this.debug("handleChannelEvents: forwarding event",{channelEvent:t}),this.emitToChannel(r,{actor:n.actor,forwardingActor:this.actor}))}if(this.actor.type===$e.ActorType.FOLLOWER)switch(r.type){case $e.InternalEventType.EXISTING_STATE_RESPONSE:if(this.debug("handleChannelEvents: Setting state from leader's existing state response",{event:r}),this.syncing?.state!==cr.PENDING)break;this.syncing.resolve?.();let i={type:$e.InternalEventType.SET_STATE,payload:{state:r.payload,previousState:this.state}};this.state=r.payload,this.emitToListeners(i,n);break}switch(r.type){case $e.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(We`[UniversalStore::${this.id}::${this.environment??$e.Environment.UNKNOWN}]
|
|
33
|
+
${t}`,JSON.stringify({data:r,actor:this.actor,state:this.state,status:this.status},null,2))}static __reset(){$e.preparation.reject(new Error("reset")),$e.setupPreparationPromise(),$e.isInternalConstructing=!1}};Bn.ActorType={LEADER:"LEADER",FOLLOWER:"FOLLOWER"},Bn.Environment={SERVER:"SERVER",MANAGER:"MANAGER",PREVIEW:"PREVIEW",UNKNOWN:"UNKNOWN",MOCK:"MOCK"},Bn.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"},Bn.Status={UNPREPARED:"UNPREPARED",SYNCING:"SYNCING",READY:"READY",ERROR:"ERROR"},Bn.isInternalConstructing=!1,Bn.setupPreparationPromise();var ks=Bn,GS=e=>e.transports!==void 0,zS=()=>Math.random().toString(16).slice(2),rs=class{constructor(e={}){this.sender=zS(),this.events={},this.data={},this.transports=[],this.isAsync=e.async||!1,GS(e)?(this.transports=e.transports||[],this.transports.forEach(t=>{t.setHandler(r=>this.handleEvent(r))})):this.transports=e.transport?[e.transport]:[],this.transports.forEach(t=>{t.setHandler(r=>this.handleEvent(r))})}get hasTransport(){return this.transports.length>0}addListener(e,t){this.events[e]=this.events[e]||[],this.events[e].push(t)}emit(e,...t){let r={type:e,args:t,from:this.sender},n={};t.length>=1&&t[0]&&t[0].options&&(n=t[0].options);let i=()=>{this.transports.forEach(o=>{o.send(r,n)}),this.handleEvent(r)};this.isAsync?setImmediate(i):i()}last(e){return this.data[e]}eventNames(){return Object.keys(this.events)}listenerCount(e){let t=this.listeners(e);return t?t.length:0}listeners(e){return this.events[e]||void 0}once(e,t){let r=this.onceListener(e,t);this.addListener(e,r)}removeAllListeners(e){e?this.events[e]&&delete this.events[e]:this.events={}}removeListener(e,t){let r=this.listeners(e);r&&(this.events[e]=r.filter(n=>n!==t))}on(e,t){this.addListener(e,t)}off(e,t){this.removeListener(e,t)}handleEvent(e){let t=this.listeners(e.type);t&&t.length&&t.forEach(r=>{r.apply(e,e.args)}),this.data[e.type]=e.args}onceListener(e,t){let r=(...n)=>(this.removeListener(e,r),t(...n));return r}},hy={};ir(hy,{deprecate:()=>nc,logger:()=>Et,once:()=>Rt,pretty:()=>ur});var{LOGLEVEL:WS}=we,cn={trace:1,debug:2,info:3,warn:4,error:5,silent:10},YS=WS,ii=cn[YS]||cn.info,Et={trace:(e,...t)=>{ii<=cn.trace&&console.trace(e,...t)},debug:(e,...t)=>{ii<=cn.debug&&console.debug(e,...t)},info:(e,...t)=>{ii<=cn.info&&console.info(e,...t)},warn:(e,...t)=>{ii<=cn.warn&&console.warn(e,...t)},error:(e,...t)=>{ii<=cn.error&&console.error(e,...t)},log:(e,...t)=>{ii<cn.silent&&console.log(e,...t)}},Du=new Set,Rt=e=>(t,...r)=>{if(!Du.has(t))return Du.add(t),Et[e](t,...r)};Rt.clear=()=>Du.clear();Rt.trace=Rt("trace");Rt.debug=Rt("debug");Rt.info=Rt("info");Rt.warn=Rt("warn");Rt.error=Rt("error");Rt.log=Rt("log");var nc=Rt("warn"),ur=e=>(...t)=>{let r=[];if(t.length){let n=/<span\s+style=(['"])([^'"]*)\1\s*>/gi,i=/<\/span>/gi,o;for(r.push(t[0].replace(n,"%c").replace(i,"%c"));o=n.exec(t[0]);)r.push(o[2]),r.push("");for(let a=1;a<t.length;a++)r.push(t[a])}Et[e].apply(Et,r)};ur.trace=ur("trace");ur.debug=ur("debug");ur.info=ur("info");ur.warn=ur("warn");ur.error=ur("error");var KS=Object.create,my=Object.defineProperty,XS=Object.getOwnPropertyDescriptor,yy=Object.getOwnPropertyNames,QS=Object.getPrototypeOf,ZS=Object.prototype.hasOwnProperty,He=(e,t)=>function(){return t||(0,e[yy(e)[0]])((t={exports:{}}).exports,t),t.exports},e1=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of yy(t))!ZS.call(e,i)&&i!==r&&my(e,i,{get:()=>t[i],enumerable:!(n=XS(t,i))||n.enumerable});return e},ic=(e,t,r)=>(r=e!=null?KS(QS(e)):{},e1(!e||!e.__esModule?my(r,"default",{value:e,enumerable:!0}):r,e)),t1=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],r1=["detail"];function n1(e){let t=t1.filter(r=>e[r]!==void 0).reduce((r,n)=>(r[n]=e[n],r),{});if(e instanceof CustomEvent)for(let r of r1.filter(n=>e[n]!==void 0))t[r]=e[r];return t}var gy=He({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),i1=He({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),o1=He({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),a1=He({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),s1=He({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),u1=He({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),oc=He({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),l1=He({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),c1=He({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),p1=He({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),d1=He({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),f1=He({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),h1=He({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),m1=He({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),y1=He({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(e,t){t.exports=Number.isNaN||function(r){return r!==r}}}),g1=He({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var r=y1();t.exports=function(n){return r(n)||n===0?n:n<0?-1:1}}}),b1=He({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),ac=He({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var r=b1();if(r)try{r([],"length")}catch{r=null}t.exports=r}}),E1=He({"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}}),by=He({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),i=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var o=42;r[n]=o;for(var a in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var s=Object.getOwnPropertySymbols(r);if(s.length!==1||s[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var p=Object.getOwnPropertyDescriptor(r,n);if(p.value!==o||p.enumerable!==!0)return!1}return!0}}}),Ey=He({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=by();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),vy=He({"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}}),Ay=He({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){var r=gy();t.exports=r.getPrototypeOf||null}}),v1=He({"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,i=Math.max,o="[object Function]",a=function(l,d){for(var f=[],h=0;h<l.length;h+=1)f[h]=l[h];for(var m=0;m<d.length;m+=1)f[m+l.length]=d[m];return f},s=function(l,d){for(var f=[],h=d,m=0;h<l.length;h+=1,m+=1)f[m]=l[h];return f},p=function(l,d){for(var f="",h=0;h<l.length;h+=1)f+=l[h],h+1<l.length&&(f+=d);return f};t.exports=function(l){var d=this;if(typeof d!="function"||n.apply(d)!==o)throw new TypeError(r+d);for(var f=s(arguments,1),h,m=function(){if(this instanceof h){var S=d.apply(this,a(f,arguments));return Object(S)===S?S:this}return d.apply(l,a(f,arguments))},b=i(0,d.length-f.length),E=[],w=0;w<b;w++)E[w]="$"+w;if(h=Function("binder","return function ("+p(E,",")+"){ return binder.apply(this,arguments); }")(m),d.prototype){var A=function(){};A.prototype=d.prototype,h.prototype=new A,A.prototype=null}return h}}}),ns=He({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var r=v1();t.exports=Function.prototype.bind||r}}),sc=He({"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}}),wy=He({"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}}),A1=He({"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}}),w1=He({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var r=ns(),n=wy(),i=sc(),o=A1();t.exports=o||r.call(i,n)}}),Cy=He({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var r=ns(),n=oc(),i=sc(),o=w1();t.exports=function(a){if(a.length<1||typeof a[0]!="function")throw new n("a function is required");return o(r,i,a)}}}),C1=He({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var r=Cy(),n=ac(),i;try{i=[].__proto__===Array.prototype}catch(p){if(!p||typeof p!="object"||!("code"in p)||p.code!=="ERR_PROTO_ACCESS")throw p}var o=!!i&&n&&n(Object.prototype,"__proto__"),a=Object,s=a.getPrototypeOf;t.exports=o&&typeof o.get=="function"?r([o.get]):typeof s=="function"?(function(p){return s(p==null?p:a(p))}):!1}}),_1=He({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var r=vy(),n=Ay(),i=C1();t.exports=r?function(o){return r(o)}:n?function(o){if(!o||typeof o!="object"&&typeof o!="function")throw new TypeError("getProto: not an object");return n(o)}:i?function(o){return i(o)}:null}}),_y=He({"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e,t){var r=Function.prototype.call,n=Object.prototype.hasOwnProperty,i=ns();t.exports=i.call(r,n)}}),T1=He({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var r,n=gy(),i=i1(),o=o1(),a=a1(),s=s1(),p=u1(),l=oc(),d=l1(),f=c1(),h=p1(),m=d1(),b=f1(),E=h1(),w=m1(),A=g1(),S=Function,k=function(de){try{return S('"use strict"; return ('+de+").constructor;")()}catch{}},O=ac(),R=E1(),y=function(){throw new l},T=O?(function(){try{return arguments.callee,y}catch{try{return O(arguments,"callee").get}catch{return y}}})():y,_=Ey()(),D=_1(),J=Ay(),M=vy(),G=wy(),L=sc(),I={},$=typeof Uint8Array>"u"||!D?r:D(Uint8Array),Y={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":_&&D?D([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":I,"%AsyncGenerator%":I,"%AsyncGeneratorFunction%":I,"%AsyncIteratorPrototype%":I,"%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%":i,"%eval%":eval,"%EvalError%":o,"%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%":S,"%GeneratorFunction%":I,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":_&&D?D(D([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!_||!D?r:D(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":O,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!_||!D?r:D(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":_&&D?D(""[Symbol.iterator]()):r,"%Symbol%":_?Symbol:r,"%SyntaxError%":p,"%ThrowTypeError%":T,"%TypedArray%":$,"%TypeError%":l,"%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%":d,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":L,"%Function.prototype.apply%":G,"%Object.defineProperty%":R,"%Object.getPrototypeOf%":J,"%Math.abs%":f,"%Math.floor%":h,"%Math.max%":m,"%Math.min%":b,"%Math.pow%":E,"%Math.round%":w,"%Math.sign%":A,"%Reflect.getPrototypeOf%":M};if(D)try{null.error}catch(de){X=D(D(de)),Y["%Error.prototype%"]=X}var X,oe=function de(Ae){var xe;if(Ae==="%AsyncFunction%")xe=k("async function () {}");else if(Ae==="%GeneratorFunction%")xe=k("function* () {}");else if(Ae==="%AsyncGeneratorFunction%")xe=k("async function* () {}");else if(Ae==="%AsyncGenerator%"){var Se=de("%AsyncGeneratorFunction%");Se&&(xe=Se.prototype)}else if(Ae==="%AsyncIteratorPrototype%"){var Re=de("%AsyncGenerator%");Re&&D&&(xe=D(Re.prototype))}return Y[Ae]=xe,xe},ve={__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"]},De=ns(),z=_y(),K=De.call(L,Array.prototype.concat),be=De.call(G,Array.prototype.splice),me=De.call(L,String.prototype.replace),fe=De.call(L,String.prototype.slice),se=De.call(L,RegExp.prototype.exec),Te=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Oe=/\\(\\)?/g,Le=function(de){var Ae=fe(de,0,1),xe=fe(de,-1);if(Ae==="%"&&xe!=="%")throw new p("invalid intrinsic syntax, expected closing `%`");if(xe==="%"&&Ae!=="%")throw new p("invalid intrinsic syntax, expected opening `%`");var Se=[];return me(de,Te,function(Re,Pe,Me,st){Se[Se.length]=Me?me(st,Oe,"$1"):Pe||Re}),Se},Z=function(de,Ae){var xe=de,Se;if(z(ve,xe)&&(Se=ve[xe],xe="%"+Se[0]+"%"),z(Y,xe)){var Re=Y[xe];if(Re===I&&(Re=oe(xe)),typeof Re>"u"&&!Ae)throw new l("intrinsic "+de+" exists, but is not available. Please file an issue!");return{alias:Se,name:xe,value:Re}}throw new p("intrinsic "+de+" does not exist!")};t.exports=function(de,Ae){if(typeof de!="string"||de.length===0)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Ae!="boolean")throw new l('"allowMissing" argument must be a boolean');if(se(/^%?[^%]*%?$/,de)===null)throw new p("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var xe=Le(de),Se=xe.length>0?xe[0]:"",Re=Z("%"+Se+"%",Ae),Pe=Re.name,Me=Re.value,st=!1,Ot=Re.alias;Ot&&(Se=Ot[0],be(xe,K([0,1],Ot)));for(var Ue=1,mt=!0;Ue<xe.length;Ue+=1){var Ye=xe[Ue],Zt=fe(Ye,0,1),Ft=fe(Ye,-1);if((Zt==='"'||Zt==="'"||Zt==="`"||Ft==='"'||Ft==="'"||Ft==="`")&&Zt!==Ft)throw new p("property names with quotes must have matching quotes");if((Ye==="constructor"||!mt)&&(st=!0),Se+="."+Ye,Pe="%"+Se+"%",z(Y,Pe))Me=Y[Pe];else if(Me!=null){if(!(Ye in Me)){if(!Ae)throw new l("base intrinsic for "+de+" exists, but the property is not available.");return}if(O&&Ue+1>=xe.length){var ye=O(Me,Ye);mt=!!ye,mt&&"get"in ye&&!("originalValue"in ye.get)?Me=ye.get:Me=Me[Ye]}else mt=z(Me,Ye),Me=Me[Ye];mt&&!st&&(Y[Pe]=Me)}}return Me}}}),uc=He({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var r=T1(),n=Cy(),i=n([r("%String.prototype.indexOf%")]);t.exports=function(o,a){var s=r(o,!!a);return typeof s=="function"&&i(o,".prototype.")>-1?n([s]):s}}}),S1=He({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var r=by();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),Ty=He({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var r=uc(),n=S1()(),i=_y(),o=ac(),a;n?(s=r("RegExp.prototype.exec"),p={},l=function(){throw p},d={toString:l,valueOf:l},typeof Symbol.toPrimitive=="symbol"&&(d[Symbol.toPrimitive]=l),a=function(m){if(!m||typeof m!="object")return!1;var b=o(m,"lastIndex"),E=b&&i(b,"value");if(!E)return!1;try{s(m,d)}catch(w){return w===p}}):(f=r("Object.prototype.toString"),h="[object RegExp]",a=function(m){return!m||typeof m!="object"&&typeof m!="function"?!1:f(m)===h});var s,p,l,d,f,h;t.exports=a}}),x1=He({"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(i){if(!i)return!1;var o=r.call(i);return o==="[object Function]"||typeof i=="function"&&o!=="[object RegExp]"||typeof window<"u"&&(i===window.setTimeout||i===window.alert||i===window.confirm||i===window.prompt)}}}),D1=He({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var r=uc(),n=Ty(),i=r("RegExp.prototype.exec"),o=oc();t.exports=function(a){if(!n(a))throw new o("`regex` must be a RegExp");return function(s){return i(a,s)!==null}}}}),R1=He({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var r=uc(),n=r("Object.prototype.toString"),i=Ey()(),o=D1();i?(a=r("Symbol.prototype.toString"),s=o(/^Symbol\(.*\)$/),p=function(l){return typeof l.valueOf()!="symbol"?!1:s(a(l))},t.exports=function(l){if(typeof l=="symbol")return!0;if(!l||typeof l!="object"||n(l)!=="[object Symbol]")return!1;try{return p(l)}catch{return!1}}):t.exports=function(l){return!1};var a,s,p}}),P1=ic(Ty()),O1=ic(x1()),F1=ic(R1());function N1(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var I1=typeof global=="object"&&global&&global.Object===Object&&global,B1=I1,k1=typeof self=="object"&&self&&self.Object===Object&&self,M1=B1||k1||Function("return this")(),lc=M1,q1=lc.Symbol,mi=q1,Sy=Object.prototype,j1=Sy.hasOwnProperty,L1=Sy.toString,$i=mi?mi.toStringTag:void 0;function V1(e){var t=j1.call(e,$i),r=e[$i];try{e[$i]=void 0;var n=!0}catch{}var i=L1.call(e);return n&&(t?e[$i]=r:delete e[$i]),i}var $1=V1,U1=Object.prototype,J1=U1.toString;function H1(e){return J1.call(e)}var G1=H1,z1="[object Null]",W1="[object Undefined]",od=mi?mi.toStringTag:void 0;function Y1(e){return e==null?e===void 0?W1:z1:od&&od in Object(e)?$1(e):G1(e)}var xy=Y1;function K1(e){return e!=null&&typeof e=="object"}var X1=K1,Q1="[object Symbol]";function Z1(e){return typeof e=="symbol"||X1(e)&&xy(e)==Q1}var cc=Z1;function ex(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var tx=ex,rx=Array.isArray,pc=rx,ad=mi?mi.prototype:void 0,sd=ad?ad.toString:void 0;function Dy(e){if(typeof e=="string")return e;if(pc(e))return tx(e,Dy)+"";if(cc(e))return sd?sd.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var nx=Dy;function ix(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ry=ix,ox="[object AsyncFunction]",ax="[object Function]",sx="[object GeneratorFunction]",ux="[object Proxy]";function lx(e){if(!Ry(e))return!1;var t=xy(e);return t==ax||t==sx||t==ox||t==ux}var cx=lx,px=lc["__core-js_shared__"],Ms=px,ud=(function(){var e=/[^.]+$/.exec(Ms&&Ms.keys&&Ms.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function dx(e){return!!ud&&ud in e}var fx=dx,hx=Function.prototype,mx=hx.toString;function yx(e){if(e!=null){try{return mx.call(e)}catch{}try{return e+""}catch{}}return""}var gx=yx,bx=/[\\^$.*+?()[\]{}|]/g,Ex=/^\[object .+?Constructor\]$/,vx=Function.prototype,Ax=Object.prototype,wx=vx.toString,Cx=Ax.hasOwnProperty,_x=RegExp("^"+wx.call(Cx).replace(bx,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Tx(e){if(!Ry(e)||fx(e))return!1;var t=cx(e)?_x:Ex;return t.test(gx(e))}var Sx=Tx;function xx(e,t){return e?.[t]}var Dx=xx;function Rx(e,t){var r=Dx(e,t);return Sx(r)?r:void 0}var Py=Rx;function Px(e,t){return e===t||e!==e&&t!==t}var Ox=Px,Fx=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Nx=/^\w*$/;function Ix(e,t){if(pc(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||cc(e)?!0:Nx.test(e)||!Fx.test(e)||t!=null&&e in Object(t)}var Bx=Ix,kx=Py(Object,"create"),ho=kx;function Mx(){this.__data__=ho?ho(null):{},this.size=0}var qx=Mx;function jx(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Lx=jx,Vx="__lodash_hash_undefined__",$x=Object.prototype,Ux=$x.hasOwnProperty;function Jx(e){var t=this.__data__;if(ho){var r=t[e];return r===Vx?void 0:r}return Ux.call(t,e)?t[e]:void 0}var Hx=Jx,Gx=Object.prototype,zx=Gx.hasOwnProperty;function Wx(e){var t=this.__data__;return ho?t[e]!==void 0:zx.call(t,e)}var Yx=Wx,Kx="__lodash_hash_undefined__";function Xx(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ho&&t===void 0?Kx:t,this}var Qx=Xx;function Oi(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])}}Oi.prototype.clear=qx;Oi.prototype.delete=Lx;Oi.prototype.get=Hx;Oi.prototype.has=Yx;Oi.prototype.set=Qx;var ld=Oi;function Zx(){this.__data__=[],this.size=0}var eD=Zx;function tD(e,t){for(var r=e.length;r--;)if(Ox(e[r][0],t))return r;return-1}var is=tD,rD=Array.prototype,nD=rD.splice;function iD(e){var t=this.__data__,r=is(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():nD.call(t,r,1),--this.size,!0}var oD=iD;function aD(e){var t=this.__data__,r=is(t,e);return r<0?void 0:t[r][1]}var sD=aD;function uD(e){return is(this.__data__,e)>-1}var lD=uD;function cD(e,t){var r=this.__data__,n=is(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var pD=cD;function Fi(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])}}Fi.prototype.clear=eD;Fi.prototype.delete=oD;Fi.prototype.get=sD;Fi.prototype.has=lD;Fi.prototype.set=pD;var dD=Fi,fD=Py(lc,"Map"),hD=fD;function mD(){this.size=0,this.__data__={hash:new ld,map:new(hD||dD),string:new ld}}var yD=mD;function gD(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var bD=gD;function ED(e,t){var r=e.__data__;return bD(t)?r[typeof t=="string"?"string":"hash"]:r.map}var os=ED;function vD(e){var t=os(this,e).delete(e);return this.size-=t?1:0,t}var AD=vD;function wD(e){return os(this,e).get(e)}var CD=wD;function _D(e){return os(this,e).has(e)}var TD=_D;function SD(e,t){var r=os(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var xD=SD;function Ni(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])}}Ni.prototype.clear=yD;Ni.prototype.delete=AD;Ni.prototype.get=CD;Ni.prototype.has=TD;Ni.prototype.set=xD;var Oy=Ni,DD="Expected a function";function dc(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(DD);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(dc.Cache||Oy),r}dc.Cache=Oy;var RD=dc,PD=500;function OD(e){var t=RD(e,function(n){return r.size===PD&&r.clear(),n}),r=t.cache;return t}var FD=OD,ND=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ID=/\\(\\)?/g,BD=FD(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(ND,function(r,n,i,o){t.push(i?o.replace(ID,"$1"):n||r)}),t}),kD=BD;function MD(e){return e==null?"":nx(e)}var qD=MD;function jD(e,t){return pc(e)?e:Bx(e,t)?[e]:kD(qD(e))}var LD=jD;function VD(e){if(typeof e=="string"||cc(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var $D=VD;function UD(e,t){t=LD(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[$D(t[r++])];return r&&r==n?e:void 0}var JD=UD;function HD(e,t,r){var n=e==null?void 0:JD(e,t);return n===void 0?r:n}var GD=HD,fc=N1,zD=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,hc=e=>e.match(/^[\[\{\"\}].*[\]\}\"]$/);function Fy(e){if(!fc(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=n1(t),r=!0),t=Object.keys(t).reduce((n,i)=>{try{t[i]&&t[i].toJSON,n[i]=t[i]}catch{r=!0}return n},{}),r?t:e}var WD=function(e){let t,r,n,i;return function(o,a){try{if(o==="")return i=[],t=new Map([[a,"[]"]]),r=new Map,n=[],a;let s=r.get(this)||this;for(;n.length&&s!==n[0];)n.shift(),i.pop();if(typeof a=="boolean")return a;if(a===void 0)return e.allowUndefined?"_undefined_":void 0;if(a===null)return null;if(typeof a=="number")return a===Number.NEGATIVE_INFINITY?"_-Infinity_":a===Number.POSITIVE_INFINITY?"_Infinity_":Number.isNaN(a)?"_NaN_":a;if(typeof a=="bigint")return`_bigint_${a.toString()}`;if(typeof a=="string")return zD.test(a)?e.allowDate?`_date_${a}`:void 0:a;if((0,P1.default)(a))return e.allowRegExp?`_regexp_${a.flags}|${a.source}`:void 0;if((0,O1.default)(a))return;if((0,F1.default)(a)){if(!e.allowSymbol)return;let l=Symbol.keyFor(a);return l!==void 0?`_gsymbol_${l}`:`_symbol_${a.toString().slice(7,-1)}`}if(n.length>=e.maxDepth)return Array.isArray(a)?`[Array(${a.length})]`:"[Object]";if(a===this)return`_duplicate_${JSON.stringify(i)}`;if(a instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...a.cause?{cause:a.cause}:{},...a,name:a.name,message:a.message,stack:a.stack,"_constructor-name_":a.constructor.name}};if(a?.constructor?.name&&a.constructor.name!=="Object"&&!Array.isArray(a)){let l=t.get(a);if(!l){let d={__isClassInstance__:!0,__className__:a.constructor.name,...Object.getOwnPropertyNames(a).reduce((f,h)=>{try{f[h]=a[h]}catch{}return f},{})};return i.push(o),n.unshift(d),t.set(a,JSON.stringify(i)),a!==d&&r.set(a,d),d}return`_duplicate_${l}`}let p=t.get(a);if(!p){let l=Array.isArray(a)?a:Fy(a);return i.push(o),n.unshift(l),t.set(a,JSON.stringify(i)),a!==l&&r.set(a,l),l}return`_duplicate_${p}`}catch{return}}},YD=function(e){let t=[],r;return function(n,i){if(n===""&&(r=i,t.forEach(({target:o,container:a,replacement:s})=>{let p=hc(s)?JSON.parse(s):s.split(".");p.length===0?a[o]=r:a[o]=GD(r,p)})),n==="_constructor-name_")return i;if(fc(i)&&i.__isConvertedError__){let{message:o,...a}=i.errorProperties,s=new Error(o);return Object.assign(s,a),s}if(typeof i=="string"&&i.startsWith("_regexp_")&&e.allowRegExp){let[,o,a]=i.match(/_regexp_([^|]*)\|(.*)/)||[];return new RegExp(a,o)}return typeof i=="string"&&i.startsWith("_date_")&&e.allowDate?new Date(i.replace("_date_","")):typeof i=="string"&&i.startsWith("_duplicate_")?(t.push({target:n,container:this,replacement:i.replace(/^_duplicate_/,"")}),null):typeof i=="string"&&i.startsWith("_symbol_")&&e.allowSymbol?Symbol(i.replace("_symbol_","")):typeof i=="string"&&i.startsWith("_gsymbol_")&&e.allowSymbol?Symbol.for(i.replace("_gsymbol_","")):typeof i=="string"&&i==="_-Infinity_"?Number.NEGATIVE_INFINITY:typeof i=="string"&&i==="_Infinity_"?Number.POSITIVE_INFINITY:typeof i=="string"&&i==="_NaN_"?Number.NaN:typeof i=="string"&&i.startsWith("_bigint_")&&typeof BigInt=="function"?BigInt(i.replace("_bigint_","")):i}},Ny={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},Iy=(e,t={})=>{let r={...Ny,...t};return JSON.stringify(Fy(e),WD(r),t.space)},KD=()=>{let e=new Map;return function t(r){fc(r)&&Object.entries(r).forEach(([n,i])=>{i==="_undefined_"?r[n]=void 0:e.get(i)||(e.set(i,!0),t(i))}),Array.isArray(r)&&r.forEach((n,i)=>{n==="_undefined_"?(e.set(n,!0),r[i]=void 0):e.get(n)||(e.set(n,!0),t(n))})}},By=(e,t={})=>{let r={...Ny,...t},n=JSON.parse(e,YD(r));return KD()(n),n},XD="Invariant failed";function Yr(e,t){if(!e)throw new Error(XD)}var QD=e=>{let t=Array.from(document.querySelectorAll("iframe[data-is-storybook]")),[r,...n]=t.filter(o=>{try{return o.contentWindow?.location.origin===e.source.location.origin&&o.contentWindow?.location.pathname===e.source.location.pathname}catch{}try{return o.contentWindow===e.source}catch{}let a=o.getAttribute("src"),s;try{if(!a)return!1;({origin:s}=new URL(a,document.location.toString()))}catch{return!1}return s===e.origin}),i=r?.getAttribute("src");if(i&&n.length===0){let{protocol:o,host:a,pathname:s}=new URL(i,document.location.toString());return`${o}//${a}${s}`}return n.length>0&&Et.error("found multiple candidates for event source"),null},{document:qs,location:js}=we,cd="storybook-channel",ZD={maxDepth:25},ky=class{constructor(e){if(this.config=e,this.connected=!1,this.buffer=[],typeof we?.addEventListener=="function"&&we.addEventListener("message",this.handleEvent.bind(this),!1),e.page!=="manager"&&e.page!=="preview")throw new Error(`postmsg-channel: "config.page" cannot be "${e.page}"`)}setHandler(e){this.handler=(...t)=>{e.apply(this,t),!this.connected&&this.getLocalFrame().length&&(this.flush(),this.connected=!0)}}send(e,t){let{target:r,allowRegExp:n,allowSymbol:i,allowDate:o,allowError:a,allowUndefined:s,maxDepth:p,space:l}=t||{},d=Object.fromEntries(Object.entries({allowRegExp:n,allowSymbol:i,allowDate:o,allowError:a,allowUndefined:s,maxDepth:p,space:l}).filter(([E,w])=>typeof w<"u")),f={...ZD,...we.CHANNEL_OPTIONS||{},...d},h=this.getFrames(r),m=new URLSearchParams(js?.search||""),b=Iy({key:cd,event:e,refId:m.get("refId")},f);return h.length?(this.buffer.length&&this.flush(),h.forEach(E=>{try{E.postMessage(b,"*")}catch{Et.error("sending over postmessage fail")}}),Promise.resolve(null)):new Promise((E,w)=>{this.buffer.push({event:e,resolve:E,reject:w})})}flush(){let{buffer:e}=this;this.buffer=[],e.forEach(t=>{this.send(t.event).then(t.resolve).catch(t.reject)})}getFrames(e){if(this.config.page==="manager"){let t=Array.from(qs.querySelectorAll("iframe[data-is-storybook][data-is-loaded]")).flatMap(r=>{try{return r.contentWindow&&r.dataset.isStorybook!==void 0&&r.id===e?[r.contentWindow]:[]}catch{return[]}});return t?.length?t:this.getCurrentFrames()}return we&&we.parent&&we.parent!==we.self?[we.parent]:[]}getCurrentFrames(){return this.config.page==="manager"?Array.from(qs.querySelectorAll('[data-is-storybook="true"]')).flatMap(e=>e.contentWindow?[e.contentWindow]:[]):we&&we.parent?[we.parent]:[]}getLocalFrame(){return this.config.page==="manager"?Array.from(qs.querySelectorAll("#storybook-preview-iframe")).flatMap(e=>e.contentWindow?[e.contentWindow]:[]):we&&we.parent?[we.parent]:[]}handleEvent(e){try{let{data:t}=e,{key:r,event:n,refId:i}=typeof t=="string"&&hc(t)?By(t,we.CHANNEL_OPTIONS||{}):t;if(r===cd){let o=this.config.page==="manager"?'<span style="color: #37D5D3; background: black"> manager </span>':'<span style="color: #1EA7FD; background: black"> preview </span>',a=Object.values(Yl).includes(n.type)?`<span style="color: #FF4785">${n.type}</span>`:`<span style="color: #FFAE00">${n.type}</span>`;if(i&&(n.refId=i),n.source=this.config.page==="preview"?e.origin:QD(e),!n.source){ur.error(`${o} received ${a} but was unable to determine the source of the event`);return}let s=`${o} received ${a} (${t.length})`;ur.debug(js.origin!==n.source?s:`${s} <span style="color: gray">(on ${js.origin} from ${n.source})</span>`,...n.args),Yr(this.handler,"ChannelHandler should be set"),this.handler(n)}}catch(t){Et.error(t)}}},{WebSocket:eR}=we,My=15e3,qy=5e3,jy=class{constructor({url:e,onError:t,page:r}){this.buffer=[],this.isReady=!1,this.isClosed=!1,this.pingTimeout=0,this.socket=new eR(e),this.socket.onopen=()=>{this.isReady=!0,this.heartbeat(),this.flush()},this.socket.onmessage=({data:n})=>{let i=typeof n=="string"&&hc(n)?By(n):n;Yr(this.handler),this.handler(i),i.type==="ping"&&(this.heartbeat(),this.send({type:"pong"}))},this.socket.onerror=n=>{t&&t(n)},this.socket.onclose=n=>{Yr(this.handler),this.handler({type:Jm,args:[{reason:n.reason,code:n.code}],from:r||"preview"}),this.isClosed=!0,clearTimeout(this.pingTimeout)}}heartbeat(){clearTimeout(this.pingTimeout),this.pingTimeout=setTimeout(()=>{this.socket.close(3008,"timeout")},My+qy)}setHandler(e){this.handler=e}send(e){this.isClosed||(this.isReady?this.sendNow(e):this.sendLater(e))}sendLater(e){this.buffer.push(e)}sendNow(e){let t=Iy(e,{maxDepth:15,...we.CHANNEL_OPTIONS});this.socket.send(t)}flush(){let{buffer:e}=this;this.buffer=[],e.forEach(t=>this.send(t))}},{CONFIG_TYPE:tR}=we,rR=rs;function nR({page:e,extraTransports:t=[]}){let r=[new ky({page:e}),...t];if(tR==="DEVELOPMENT"){let i=window.location.protocol==="http:"?"ws":"wss",{hostname:o,port:a}=window.location,s=`${i}://${o}:${a}/storybook-server-channel`;r.push(new jy({url:s,onError:()=>{},page:e}))}let n=new rs({transports:r});return ks.__prepare(n,e==="manager"?ks.Environment.MANAGER:ks.Environment.PREVIEW),n}var Ly={};ir(Ly,{CalledExtractOnStoreError:()=>Hy,CalledPreviewMethodBeforeInitializationError:()=>ar,Category:()=>$y,ElementA11yParameterError:()=>lR,EmptyIndexError:()=>Yy,ImplicitActionsDuringRendering:()=>Jy,MdxFileWithNoCsfReferencesError:()=>Wy,MissingRenderToCanvasError:()=>Gy,MissingStoryAfterHmrError:()=>Uy,MissingStoryFromCsfFileError:()=>Xy,MountMustBeDestructuredError:()=>mc,NextJsSharpError:()=>oR,NextjsRouterMocksNotAvailable:()=>aR,NoRenderFunctionError:()=>Zy,NoStoryMatchError:()=>Ky,NoStoryMountedError:()=>eg,StatusTypeIdMismatchError:()=>iR,StoryIndexFetchError:()=>zy,StoryStoreAccessedBeforeInitializationError:()=>Qy,UnknownArgTypesError:()=>sR,UnsupportedViewportDimensionError:()=>uR});function pd({code:e,category:t}){let r=String(e).padStart(4,"0");return`SB_${t}_${r}`}function dd(e){if(/^(?!.*storybook\.js\.org)|[?&]ref=error\b/.test(e))return e;try{let t=new URL(e);return t.searchParams.set("ref","error"),t.toString()}catch{return e}}var Bt=class Vy extends Error{constructor(t){super(Vy.getFullMessage(t)),this.data={},this.fromStorybook=!0,this.isHandledError=!1,this.subErrors=[],this.category=t.category,this.documentation=t.documentation??!1,this.code=t.code,this.isHandledError=t.isHandledError??!1,this.name=t.name,this.subErrors=t.subErrors??[]}get fullErrorCode(){return pd({code:this.code,category:this.category})}get name(){let t=this._name||this.constructor.name;return`${this.fullErrorCode} (${t})`}set name(t){this._name=t}static getFullMessage({documentation:t,code:r,category:n,message:i}){let o;return t===!0?o=`https://storybook.js.org/error/${pd({code:r,category:n})}?ref=error`:typeof t=="string"?o=dd(t):Array.isArray(t)&&(o=`
|
|
34
|
+
${t.map(a=>` - ${dd(a)}`).join(`
|
|
35
|
+
`)}`),`${i}${o!=null?`
|
|
36
|
+
|
|
37
|
+
More info: ${o}
|
|
38
|
+
`:""}`}},$y=(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))($y||{}),Uy=class extends Bt{constructor(e){super({name:"MissingStoryAfterHmrError",category:"PREVIEW_API",code:1,message:We`
|
|
39
|
+
Couldn't find story matching id '${e.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 '${e.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=e}},Jy=class extends Bt{constructor(e){super({name:"ImplicitActionsDuringRendering",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:We`
|
|
45
|
+
We detected that you use an implicit action arg while ${e.phase} of your story.
|
|
46
|
+
${e.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
|
+
${e.name}: fn()
|
|
54
|
+
}`}),this.data=e}},Hy=class extends Bt{constructor(){super({name:"CalledExtractOnStoreError",category:"PREVIEW_API",code:3,message:We`
|
|
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.`})}},Gy=class extends Bt{constructor(){super({name:"MissingRenderToCanvasError",category:"PREVIEW_API",code:4,message:We`
|
|
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"})}},ar=class extends Bt{constructor(e){super({name:"CalledPreviewMethodBeforeInitializationError",category:"PREVIEW_API",code:5,message:We`
|
|
61
|
+
Called \`Preview.${e.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 \`${e.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=e}},zy=class extends Bt{constructor(e){super({name:"StoryIndexFetchError",category:"PREVIEW_API",code:6,message:We`
|
|
68
|
+
Error fetching \`/index.json\`:
|
|
69
|
+
|
|
70
|
+
${e.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=e}},Wy=class extends Bt{constructor(e){super({name:"MdxFileWithNoCsfReferencesError",category:"PREVIEW_API",code:7,message:We`
|
|
77
|
+
Tried to render docs entry ${e.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=e}},Yy=class extends Bt{constructor(){super({name:"EmptyIndexError",category:"PREVIEW_API",code:8,message:We`
|
|
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.`})}},Ky=class extends Bt{constructor(e){super({name:"NoStoryMatchError",category:"PREVIEW_API",code:9,message:We`
|
|
86
|
+
Couldn't find story matching '${e.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=e}},Xy=class extends Bt{constructor(e){super({name:"MissingStoryFromCsfFileError",category:"PREVIEW_API",code:10,message:We`
|
|
91
|
+
Couldn't find story matching id '${e.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=e}},Qy=class extends Bt{constructor(){super({name:"StoryStoreAccessedBeforeInitializationError",category:"PREVIEW_API",code:11,message:We`
|
|
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`})}},mc=class extends Bt{constructor(e){super({name:"MountMustBeDestructuredError",category:"PREVIEW_API",code:12,message:We`
|
|
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
|
+
${e.playFunction}`}),this.data=e}},Zy=class extends Bt{constructor(e){super({name:"NoRenderFunctionError",category:"PREVIEW_API",code:14,message:We`
|
|
120
|
+
No render function available for storyId '${e.id}'
|
|
121
|
+
`}),this.data=e}},eg=class extends Bt{constructor(){super({name:"NoStoryMountedError",category:"PREVIEW_API",code:15,message:We`
|
|
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
|
+
`})}},iR=class extends Bt{constructor(e){super({name:"StatusTypeIdMismatchError",category:"PREVIEW_API",code:16,message:`Status has typeId "${e.status.typeId}" but was added to store with typeId "${e.typeId}". Full status: ${JSON.stringify(e.status,null,2)}`}),this.data=e}},oR=class extends Bt{constructor(){super({name:"NextJsSharpError",category:"FRAMEWORK_NEXTJS",code:1,documentation:"https://storybook.js.org/docs/get-started/nextjs#faq",message:We`
|
|
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
|
+
`})}},aR=class extends Bt{constructor(e){super({name:"NextjsRouterMocksNotAvailable",category:"FRAMEWORK_NEXTJS",code:2,message:We`
|
|
141
|
+
Tried to access router mocks from "${e.importType}" but they were not created yet. You might be running code in an unsupported environment.
|
|
142
|
+
`}),this.data=e}},sR=class extends Bt{constructor(t){super({name:"UnknownArgTypesError",category:"DOCS-TOOLS",code:1,documentation:"https://github.com/storybookjs/storybook/issues/26606",message:We`
|
|
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}},uR=class extends Bt{constructor(e){super({name:"UnsupportedViewportDimensionError",category:"ADDON_VITEST",code:1,message:We`
|
|
151
|
+
Encountered an unsupported value "${e.value}" when setting the viewport ${e.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=e}},lR=class extends Bt{constructor(){super({name:"ElementA11yParameterError",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.'})}},tg={};ir(tg,{Addon_TypesEnum:()=>rg,CoreWebpackCompiler:()=>og,Feature:()=>sg,SupportedBuilder:()=>ag,SupportedFramework:()=>ng,SupportedLanguage:()=>ug,SupportedRenderer:()=>ig});var rg=(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))(rg||{}),ng=(e=>(e.ANGULAR="angular",e.EMBER="ember",e.HTML_VITE="html-vite",e.NEXTJS="nextjs",e.NEXTJS_VITE="nextjs-vite",e.PREACT_VITE="preact-vite",e.REACT_NATIVE_WEB_VITE="react-native-web-vite",e.REACT_VITE="react-vite",e.REACT_WEBPACK5="react-webpack5",e.SERVER_WEBPACK5="server-webpack5",e.SVELTE_VITE="svelte-vite",e.SVELTEKIT="sveltekit",e.VUE3_VITE="vue3-vite",e.WEB_COMPONENTS_VITE="web-components-vite",e.HTML_RSBUILD="html-rsbuild",e.NUXT="nuxt",e.QWIK="qwik",e.REACT_RSBUILD="react-rsbuild",e.SOLID="solid",e.VUE3_RSBUILD="vue3-rsbuild",e.WEB_COMPONENTS_RSBUILD="web-components-rsbuild",e))(ng||{}),ig=(e=>(e.REACT="react",e.REACT_NATIVE="react-native",e.VUE3="vue3",e.ANGULAR="angular",e.EMBER="ember",e.PREACT="preact",e.SVELTE="svelte",e.QWIK="qwik",e.HTML="html",e.WEB_COMPONENTS="web-components",e.SERVER="server",e.SOLID="solid",e.NUXT="nuxt",e))(ig||{}),og=(e=>(e.Babel="babel",e.SWC="swc",e))(og||{}),ag=(e=>(e.WEBPACK5="webpack5",e.VITE="vite",e.RSBUILD="rsbuild",e))(ag||{}),sg=(e=>(e.DOCS="docs",e.TEST="test",e.ONBOARDING="onboarding",e.A11Y="a11y",e))(sg||{}),ug=(e=>(e.JAVASCRIPT="javascript",e.TYPESCRIPT="typescript",e))(ug||{}),lg={};ir(lg,{ADDON_ID:()=>as,CLEAR_ID:()=>dR,CYCLIC_KEY:()=>fR,EVENT_ID:()=>cg,PANEL_ID:()=>pR,PARAM_KEY:()=>cR,action:()=>Wo,actions:()=>$5,config:()=>No,configureActions:()=>j5});var cR="actions",as="storybook/actions",pR=`${as}/panel`,cg=`${as}/action-event`,dR=`${as}/action-clear`,fR="$___storybook.isCyclic",Ru={};ir(Ru,{DocsContext:()=>Up,HooksContext:()=>yc,Preview:()=>UA,PreviewWeb:()=>R5,PreviewWithSelection:()=>HA,ReporterAPI:()=>$p,StoryStore:()=>VA,UrlStore:()=>KA,WebView:()=>QA,addons:()=>yr,applyHooks:()=>dg,combineArgs:()=>Ka,combineParameters:()=>Yn,composeConfigs:()=>Di,composeStepRunners:()=>kA,composeStories:()=>r5,composeStory:()=>LA,createPlaywrightTest:()=>n5,decorateStory:()=>DA,defaultDecorateStory:()=>PA,emitTransformCode:()=>q5,filterArgTypes:()=>BA,getCsfFactoryAnnotations:()=>jA,inferControls:()=>jp,makeDecorator:()=>xR,mockChannel:()=>pg,normalizeArrays:()=>ft,normalizeProjectAnnotations:()=>Za,normalizeStory:()=>uo,pauseAnimations:()=>Lp,prepareMeta:()=>OA,prepareStory:()=>qp,sanitizeStoryContextUpdate:()=>RA,setDefaultProjectAnnotations:()=>K6,setProjectAnnotations:()=>e5,simulateDOMContentLoaded:()=>Nl,simulatePageLoad:()=>N5,sortStoriesV7:()=>p5,useArgs:()=>TR,useCallback:()=>mo,useChannel:()=>CR,useEffect:()=>Jn,useGlobals:()=>SR,useMemo:()=>hg,useParameter:()=>_R,useReducer:()=>wR,useRef:()=>ER,useState:()=>AR,useStoryContext:()=>us,userOrAutoTitle:()=>u5,userOrAutoTitleFromSpecifier:()=>$A,waitForAnimations:()=>Vp});function pg(){let e={setHandler:()=>{},send:()=>{}};return new rs({transport:e})}var hR=class{constructor(){this.getChannel=()=>{if(!this.channel){let e=pg();return this.setChannel(e),e}return this.channel},this.ready=()=>this.promise,this.hasChannel=()=>!!this.channel,this.setChannel=e=>{this.channel=e,this.resolve()},this.promise=new Promise(e=>{this.resolve=()=>e(this.getChannel())})}},Ls="__STORYBOOK_ADDONS_PREVIEW";function mR(){return we[Ls]||(we[Ls]=new hR),we[Ls]}var yr=mR(),yc=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=e=>{e===this.currentContext?.id&&(this.triggerEffects(),this.currentContext=null,this.removeRenderListeners())},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(e=>{e.destroy&&e.destroy()}),this.init(),this.removeRenderListeners()}getNextHook(){let e=this.currentHooks[this.nextHookIndex];return this.nextHookIndex+=1,e}triggerEffects(){this.prevEffects.forEach(e=>{!this.currentEffects.includes(e)&&e.destroy&&e.destroy()}),this.currentEffects.forEach(e=>{this.prevEffects.includes(e)||(e.destroy=e.create())}),this.prevEffects=this.currentEffects,this.currentEffects=[]}addRenderListeners(){this.removeRenderListeners(),yr.getChannel().on(Ra,this.renderListener)}removeRenderListeners(){yr.getChannel().removeListener(Ra,this.renderListener)}};function fd(e){let t=(...r)=>{let{hooks:n}=typeof r[0]=="function"?r[1]:r[0],i=n.currentPhase,o=n.currentHooks,a=n.nextHookIndex,s=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;let p=we.STORYBOOK_HOOKS_CONTEXT;we.STORYBOOK_HOOKS_CONTEXT=n;let l=e(...r);if(we.STORYBOOK_HOOKS_CONTEXT=p,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=i,n.currentHooks=o,n.nextHookIndex=a,n.currentDecoratorName=s,l};return t.originalFn=e,t}var Vs=0,yR=25,dg=e=>(t,r)=>{let n=e(fd(t),r.map(i=>fd(i)));return i=>{let{hooks:o}=i;o.prevMountedDecorators??=new Set,o.mountedDecorators=new Set([t,...r]),o.currentContext=i,o.hasUpdates=!1;let a=n(i);for(Vs=1;o.hasUpdates;)if(o.hasUpdates=!1,o.currentEffects=[],a=n(i),Vs+=1,Vs>yR)throw new Error("Too many re-renders. Storybook limits the number of renders to prevent an infinite loop.");return o.addRenderListeners(),a}},gR=(e,t)=>e.length===t.length&&e.every((r,n)=>r===t[n]),gc=()=>new Error("Storybook preview hooks can only be called inside decorators and story functions.");function fg(){return we.STORYBOOK_HOOKS_CONTEXT||null}function bc(){let e=fg();if(e==null)throw gc();return e}function bR(e,t,r){let n=bc();if(n.currentPhase==="MOUNT"){r!=null&&!Array.isArray(r)&&Et.warn(`${e} received a final argument that is not an array (instead, received ${r}). When specified, the final argument must be an array.`);let i={name:e,deps:r};return n.currentHooks.push(i),t(i),i}if(n.currentPhase==="UPDATE"){let i=n.getNextHook();if(i==null)throw new Error("Rendered more hooks than during the previous render.");return i.name!==e&&Et.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&&i.deps==null&&Et.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&&i.deps!=null&&r.length!==i.deps.length&&Et.warn(`The final argument passed to ${e} changed size between renders. The order and size of this array must remain constant.
|
|
158
|
+
Previous: ${i.deps}
|
|
159
|
+
Incoming: ${r}`),(r==null||i.deps==null||!gR(r,i.deps))&&(t(i),i.deps=r),i}throw gc()}function ss(e,t,r){let{memoizedState:n}=bR(e,i=>{i.memoizedState=t()},r);return n}function hg(e,t){return ss("useMemo",e,t)}function mo(e,t){return ss("useCallback",()=>e,t)}function mg(e,t){return ss(e,()=>({current:t}),[])}function ER(e){return mg("useRef",e)}function vR(){let e=fg();if(e!=null&&e.currentPhase!=="NONE")e.hasUpdates=!0;else try{yr.getChannel().emit(Ql)}catch{Et.warn("State updates of Storybook preview hooks work only in browser")}}function yg(e,t){let r=mg(e,typeof t=="function"?t():t),n=i=>{r.current=typeof i=="function"?i(r.current):i,vR()};return[r.current,n]}function AR(e){return yg("useState",e)}function wR(e,t,r){let n=r!=null?()=>r(t):t,[i,o]=yg("useReducer",n);return[i,a=>o(s=>e(s,a))]}function Jn(e,t){let r=bc(),n=ss("useEffect",()=>({create:e}),t);r.currentEffects.includes(n)||r.currentEffects.push(n)}function CR(e,t=[]){let r=yr.getChannel();return Jn(()=>(Object.entries(e).forEach(([n,i])=>r.on(n,i)),()=>{Object.entries(e).forEach(([n,i])=>r.removeListener(n,i))}),[...Object.keys(e),...t]),mo(r.emit.bind(r),[r])}function us(){let{currentContext:e}=bc();if(e==null)throw gc();return e}function _R(e,t){let{parameters:r}=us();if(e)return r[e]??t}function TR(){let e=yr.getChannel(),{id:t,args:r}=us(),n=mo(o=>e.emit(rc,{storyId:t,updatedArgs:o}),[e,t]),i=mo(o=>e.emit(Zl,{storyId:t,argNames:o}),[e,t]);return[r,n,i]}function SR(){let e=yr.getChannel(),{globals:t}=us(),r=mo(n=>e.emit(tc,{globals:n}),[e]);return[t,r]}var xR=({name:e,parameterName:t,wrapper:r,skipIfNoParametersOrOptions:n=!1})=>{let i=o=>(a,s)=>{let p=s.parameters&&s.parameters[t];return p&&p.disable||n&&!o&&!p?a(s):r(a,s,{options:o,parameters:p})};return(...o)=>typeof o[0]=="function"?i()(...o):(...a)=>{if(a.length>1)return o.length>1?i(o)(...a):i(...o)(...a);throw new Error(`Passing stories directly into ${e}() is not allowed,
|
|
160
|
+
instead use addDecorator(${e}) and pass options with the '${t}' parameter`)}};function DR(e){return e.replace(/_/g," ").replace(/-/g," ").replace(/\./g," ").replace(/([^\n])([A-Z])([a-z])/g,(t,r,n,i)=>`${r} ${n}${i}`).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()}var hd=It(oC(),1),gg=e=>e.map(t=>typeof t<"u").filter(Boolean).length,RR=(e,t)=>{let{exists:r,eq:n,neq:i,truthy:o}=e;if(gg([r,n,i,o])>1)throw new Error(`Invalid conditional test ${JSON.stringify({exists:r,eq:n,neq:i})}`);if(typeof n<"u")return(0,hd.isEqual)(t,n);if(typeof i<"u")return!(0,hd.isEqual)(t,i);if(typeof r<"u"){let a=typeof t<"u";return r?a:!a}return typeof o>"u"||o?!!t:!t},PR=(e,t,r)=>{if(!e.if)return!0;let{arg:n,global:i}=e.if;if(gg([n,i])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:n,global:i})}`);let o=n?t[n]:r[i];return RR(e.if,o)};function OR(e){return e!=null&&FR(e).includes("mount")}function FR(e){let t=e.toString().match(/[^(]*\(([^)]*)/);if(!t)return[];let r=md(t[1]);if(!r.length)return[];let n=r[0];return n.startsWith("{")&&n.endsWith("}")?md(n.slice(1,-1).replace(/\s/g,"")).map(i=>i.replace(/:.*|=.*/g,"")):[]}function md(e){let t=[],r=[],n=0;for(let o=0;o<e.length;o++)if(e[o]==="{"||e[o]==="[")r.push(e[o]==="{"?"}":"]");else if(e[o]===r[r.length-1])r.pop();else if(!r.length&&e[o]===","){let a=e.substring(n,o).trim();a&&t.push(a),n=o+1}let i=e.substring(n).trim();return i&&t.push(i),t}var bg={};ir(bg,{argsEnhancers:()=>BR});var Eg=(e,t)=>typeof t[e]>"u"&&!(e in t),NR=e=>{let{initialArgs:t,argTypes:r,id:n,parameters:{actions:i}}=e;if(!i||i.disable||!i.argTypesRegex||!r)return{};let o=new RegExp(i.argTypesRegex);return Object.entries(r).filter(([a])=>!!o.test(a)).reduce((a,[s,p])=>(Eg(s,t)&&(a[s]=Wo(s,{implicit:!0,id:n})),a),{})},IR=e=>{let{initialArgs:t,argTypes:r,parameters:{actions:n}}=e;return n?.disable||!r?{}:Object.entries(r).filter(([i,o])=>!!o.action).reduce((i,[o,a])=>(Eg(o,t)&&(i[o]=Wo(typeof a.action=="string"?a.action:o)),i),{})},BR=[IR,NR],vg={};ir(vg,{loaders:()=>V3});var Ag={};ir(Ag,{buildQueries:()=>vL,clearAllMocks:()=>iE,configure:()=>AL,createEvent:()=>wL,expect:()=>q3,findAllByAltText:()=>_L,findAllByDisplayValue:()=>TL,findAllByLabelText:()=>SL,findAllByPlaceholderText:()=>xL,findAllByRole:()=>DL,findAllByTestId:()=>RL,findAllByText:()=>PL,findAllByTitle:()=>OL,findByAltText:()=>FL,findByDisplayValue:()=>NL,findByLabelText:()=>IL,findByPlaceholderText:()=>BL,findByRole:()=>kL,findByTestId:()=>ML,findByText:()=>qL,findByTitle:()=>jL,fireEvent:()=>CL,fn:()=>rE,getAllByAltText:()=>LL,getAllByDisplayValue:()=>VL,getAllByLabelText:()=>$L,getAllByPlaceholderText:()=>UL,getAllByRole:()=>JL,getAllByTestId:()=>HL,getAllByText:()=>GL,getAllByTitle:()=>zL,getByAltText:()=>WL,getByDisplayValue:()=>YL,getByLabelText:()=>KL,getByPlaceholderText:()=>XL,getByRole:()=>QL,getByTestId:()=>ZL,getByText:()=>e3,getByTitle:()=>t3,getConfig:()=>r3,getDefaultNormalizer:()=>n3,getElementError:()=>i3,getNodeText:()=>o3,getQueriesForElement:()=>a3,getRoles:()=>s3,getSuggestedQuery:()=>u3,isInaccessible:()=>l3,isMockFunction:()=>di,logDOM:()=>c3,logRoles:()=>p3,mocked:()=>zB,mocks:()=>Uo,onMockCall:()=>tE,prettyDOM:()=>d3,prettyFormat:()=>k3,queries:()=>f3,queryAllByAltText:()=>h3,queryAllByAttribute:()=>m3,queryAllByDisplayValue:()=>y3,queryAllByLabelText:()=>g3,queryAllByPlaceholderText:()=>b3,queryAllByRole:()=>E3,queryAllByTestId:()=>v3,queryAllByText:()=>A3,queryAllByTitle:()=>w3,queryByAltText:()=>C3,queryByAttribute:()=>_3,queryByDisplayValue:()=>T3,queryByLabelText:()=>S3,queryByPlaceholderText:()=>x3,queryByRole:()=>D3,queryByTestId:()=>R3,queryByText:()=>P3,queryByTitle:()=>O3,queryHelpers:()=>F3,resetAllMocks:()=>oE,restoreAllMocks:()=>aE,sb:()=>j3,screen:()=>N3,spyOn:()=>GB,uninstrumentedUserEvent:()=>bA,userEvent:()=>M3,waitFor:()=>I3,waitForElementToBeRemoved:()=>B3,within:()=>gA});var kR={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]},wg=Object.entries(kR);function ls(e){return String(e)}ls.open="";ls.close="";wg.reduce((e,[t])=>(e[t]=ls,e),{isColorSupported:!1});function MR(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}function qR(e=!1){let t=MR(e),r=(a,s,p,l)=>{let d="",f=0;do d+=a.substring(f,l)+p,f=l+s.length,l=a.indexOf(s,f);while(~l);return d+a.substring(f)},n=(a,s,p=a)=>{let l=d=>{let f=String(d),h=f.indexOf(s,a.length);return~h?a+r(f,s,p,h)+s:a+f+s};return l.open=a,l.close=s,l},i={isColorSupported:t},o=a=>`\x1B[${a}m`;for(let[a,s]of wg)i[a]=t?n(o(s[0]),o(s[1]),s[2]):ls;return i}var Dt=qR();function Cg(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 i=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:function(){return r[n]}})}})}),Object.freeze(e)}function jR(e,t){let r=Object.keys(e),n=t===null?r:r.sort(t);if(Object.getOwnPropertySymbols)for(let i of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,i).enumerable&&n.push(i);return n}function ko(e,t,r,n,i,o,a=": "){let s="",p=0,l=e.next();if(!l.done){s+=t.spacingOuter;let d=r+t.indent;for(;!l.done;){if(s+=d,p++===t.maxWidth){s+="…";break}let f=o(l.value[0],t,d,n,i),h=o(l.value[1],t,d,n,i);s+=f+a+h,l=e.next(),l.done?t.min||(s+=","):s+=`,${t.spacingInner}`}s+=t.spacingOuter+r}return s}function Ec(e,t,r,n,i,o){let a="",s=0,p=e.next();if(!p.done){a+=t.spacingOuter;let l=r+t.indent;for(;!p.done;){if(a+=l,s++===t.maxWidth){a+="…";break}a+=o(p.value,t,l,n,i),p=e.next(),p.done?t.min||(a+=","):a+=`,${t.spacingInner}`}a+=t.spacingOuter+r}return a}function Pa(e,t,r,n,i,o){let a="";e=e instanceof ArrayBuffer?new DataView(e):e;let s=l=>l instanceof DataView,p=s(e)?e.byteLength:e.length;if(p>0){a+=t.spacingOuter;let l=r+t.indent;for(let d=0;d<p;d++){if(a+=l,d===t.maxWidth){a+="…";break}(s(e)||d in e)&&(a+=o(s(e)?e.getInt8(d):e[d],t,l,n,i)),d<p-1?a+=`,${t.spacingInner}`:t.min||(a+=",")}a+=t.spacingOuter+r}return a}function vc(e,t,r,n,i,o){let a="",s=jR(e,t.compareKeys);if(s.length>0){a+=t.spacingOuter;let p=r+t.indent;for(let l=0;l<s.length;l++){let d=s[l],f=o(d,t,p,n,i),h=o(e[d],t,p,n,i);a+=`${p+f}: ${h}`,l<s.length-1?a+=`,${t.spacingInner}`:t.min||(a+=",")}a+=t.spacingOuter+r}return a}var LR=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,$s=" ",VR=(e,t,r,n,i,o)=>{let a=e.toString();if(a==="ArrayContaining"||a==="ArrayNotContaining")return++n>t.maxDepth?`[${a}]`:`${a+$s}[${Pa(e.sample,t,r,n,i,o)}]`;if(a==="ObjectContaining"||a==="ObjectNotContaining")return++n>t.maxDepth?`[${a}]`:`${a+$s}{${vc(e.sample,t,r,n,i,o)}}`;if(a==="StringMatching"||a==="StringNotMatching"||a==="StringContaining"||a==="StringNotContaining")return a+$s+o(e.sample,t,r,n,i);if(typeof e.toAsymmetricMatcher!="function")throw new TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},$R=e=>e&&e.$$typeof===LR,UR={serialize:VR,test:$R},JR=" ",_g=new Set(["DOMStringMap","NamedNodeMap"]),HR=/^(?:HTML\w*Collection|NodeList)$/;function GR(e){return _g.has(e)||HR.test(e)}var zR=e=>e&&e.constructor&&!!e.constructor.name&&GR(e.constructor.name);function WR(e){return e.constructor.name==="NamedNodeMap"}var YR=(e,t,r,n,i,o)=>{let a=e.constructor.name;return++n>t.maxDepth?`[${a}]`:(t.min?"":a+JR)+(_g.has(a)?`{${vc(WR(e)?[...e].reduce((s,p)=>(s[p.name]=p.value,s),{}):{...e},t,r,n,i,o)}}`:`[${Pa([...e],t,r,n,i,o)}]`)},KR={serialize:YR,test:zR};function Tg(e){return e.replaceAll("<","<").replaceAll(">",">")}function Ac(e,t,r,n,i,o,a){let s=n+r.indent,p=r.colors;return e.map(l=>{let d=t[l],f=a(d,r,s,i,o);return typeof d!="string"&&(f.includes(`
|
|
161
|
+
`)&&(f=r.spacingOuter+s+f+r.spacingOuter+n),f=`{${f}}`),`${r.spacingInner+n+p.prop.open+l+p.prop.close}=${p.value.open}${f}${p.value.close}`}).join("")}function wc(e,t,r,n,i,o){return e.map(a=>t.spacingOuter+r+(typeof a=="string"?Sg(a,t):o(a,t,r,n,i))).join("")}function Sg(e,t){let r=t.colors.content;return r.open+Tg(e)+r.close}function XR(e,t){let r=t.colors.comment;return`${r.open}<!--${Tg(e)}-->${r.close}`}function Cc(e,t,r,n,i){let o=n.colors.tag;return`${o.open}<${e}${t&&o.close+t+n.spacingOuter+i+o.open}${r?`>${o.close}${r}${n.spacingOuter}${i}${o.open}</${e}`:`${t&&!n.min?"":" "}/`}>${o.close}`}function _c(e,t){let r=t.colors.tag;return`${r.open}<${e}${r.close} …${r.open} />${r.close}`}var QR=1,xg=3,Dg=8,Rg=11,ZR=/^(?:(?:HTML|SVG)\w*)?Element$/;function eP(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return!1}}function tP(e){let t=e.constructor.name,{nodeType:r,tagName:n}=e,i=typeof n=="string"&&n.includes("-")||eP(e);return r===QR&&(ZR.test(t)||i)||r===xg&&t==="Text"||r===Dg&&t==="Comment"||r===Rg&&t==="DocumentFragment"}var rP=e=>{var t;return(e==null||(t=e.constructor)===null||t===void 0?void 0:t.name)&&tP(e)};function nP(e){return e.nodeType===xg}function iP(e){return e.nodeType===Dg}function Us(e){return e.nodeType===Rg}var oP=(e,t,r,n,i,o)=>{if(nP(e))return Sg(e.data,t);if(iP(e))return XR(e.data,t);let a=Us(e)?"DocumentFragment":e.tagName.toLowerCase();return++n>t.maxDepth?_c(a,t):Cc(a,Ac(Us(e)?[]:Array.from(e.attributes,s=>s.name).sort(),Us(e)?{}:[...e.attributes].reduce((s,p)=>(s[p.name]=p.value,s),{}),t,r+t.indent,n,i,o),wc(Array.prototype.slice.call(e.childNodes||e.children),t,r+t.indent,n,i,o),t,r)},aP={serialize:oP,test:rP},sP="@@__IMMUTABLE_ITERABLE__@@",uP="@@__IMMUTABLE_LIST__@@",lP="@@__IMMUTABLE_KEYED__@@",cP="@@__IMMUTABLE_MAP__@@",yd="@@__IMMUTABLE_ORDERED__@@",pP="@@__IMMUTABLE_RECORD__@@",dP="@@__IMMUTABLE_SEQ__@@",fP="@@__IMMUTABLE_SET__@@",hP="@@__IMMUTABLE_STACK__@@",yi=e=>`Immutable.${e}`,cs=e=>`[${e}]`,yo=" ",gd="…";function mP(e,t,r,n,i,o,a){return++n>t.maxDepth?cs(yi(a)):`${yi(a)+yo}{${ko(e.entries(),t,r,n,i,o)}}`}function yP(e){let t=0;return{next(){if(t<e._keys.length){let r=e._keys[t++];return{done:!1,value:[r,e.get(r)]}}return{done:!0,value:void 0}}}}function gP(e,t,r,n,i,o){let a=yi(e._name||"Record");return++n>t.maxDepth?cs(a):`${a+yo}{${ko(yP(e),t,r,n,i,o)}}`}function bP(e,t,r,n,i,o){let a=yi("Seq");return++n>t.maxDepth?cs(a):e[lP]?`${a+yo}{${e._iter||e._object?ko(e.entries(),t,r,n,i,o):gd}}`:`${a+yo}[${e._iter||e._array||e._collection||e._iterable?Ec(e.values(),t,r,n,i,o):gd}]`}function Js(e,t,r,n,i,o,a){return++n>t.maxDepth?cs(yi(a)):`${yi(a)+yo}[${Ec(e.values(),t,r,n,i,o)}]`}var EP=(e,t,r,n,i,o)=>e[cP]?mP(e,t,r,n,i,o,e[yd]?"OrderedMap":"Map"):e[uP]?Js(e,t,r,n,i,o,"List"):e[fP]?Js(e,t,r,n,i,o,e[yd]?"OrderedSet":"Set"):e[hP]?Js(e,t,r,n,i,o,"Stack"):e[dP]?bP(e,t,r,n,i,o):gP(e,t,r,n,i,o),vP=e=>e&&(e[sP]===!0||e[pP]===!0),AP={serialize:EP,test:vP};function Pg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var bd={exports:{}},ut={},Ed;function wP(){if(Ed)return ut;Ed=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");function b(E){if(typeof E=="object"&&E!==null){var w=E.$$typeof;switch(w){case e:switch(E=E.type,E){case r:case i:case n:case p:case l:case h:return E;default:switch(E=E&&E.$$typeof,E){case a:case s:case f:case d:return E;case o:return E;default:return w}}case t:return w}}}return ut.ContextConsumer=o,ut.ContextProvider=a,ut.Element=e,ut.ForwardRef=s,ut.Fragment=r,ut.Lazy=f,ut.Memo=d,ut.Portal=t,ut.Profiler=i,ut.StrictMode=n,ut.Suspense=p,ut.SuspenseList=l,ut.isContextConsumer=function(E){return b(E)===o},ut.isContextProvider=function(E){return b(E)===a},ut.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===e},ut.isForwardRef=function(E){return b(E)===s},ut.isFragment=function(E){return b(E)===r},ut.isLazy=function(E){return b(E)===f},ut.isMemo=function(E){return b(E)===d},ut.isPortal=function(E){return b(E)===t},ut.isProfiler=function(E){return b(E)===i},ut.isStrictMode=function(E){return b(E)===n},ut.isSuspense=function(E){return b(E)===p},ut.isSuspenseList=function(E){return b(E)===l},ut.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===r||E===i||E===n||E===p||E===l||typeof E=="object"&&E!==null&&(E.$$typeof===f||E.$$typeof===d||E.$$typeof===a||E.$$typeof===o||E.$$typeof===s||E.$$typeof===m||E.getModuleId!==void 0)},ut.typeOf=b,ut}var vd;function CP(){return vd||(vd=1,bd.exports=wP()),bd.exports}var Og=CP(),_P=Pg(Og),TP=Cg({__proto__:null,default:_P},[Og]),Ad={exports:{}},at={},wd;function SP(){if(wd)return at;wd=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),p=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function E(w){if(typeof w=="object"&&w!==null){var A=w.$$typeof;switch(A){case e:switch(w=w.type,w){case r:case i:case n:case l:case d:return w;default:switch(w=w&&w.$$typeof,w){case s:case a:case p:case h:case f:case o:return w;default:return A}}case t:return A}}}return at.ContextConsumer=a,at.ContextProvider=o,at.Element=e,at.ForwardRef=p,at.Fragment=r,at.Lazy=h,at.Memo=f,at.Portal=t,at.Profiler=i,at.StrictMode=n,at.Suspense=l,at.SuspenseList=d,at.isAsyncMode=function(){return!1},at.isConcurrentMode=function(){return!1},at.isContextConsumer=function(w){return E(w)===a},at.isContextProvider=function(w){return E(w)===o},at.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===e},at.isForwardRef=function(w){return E(w)===p},at.isFragment=function(w){return E(w)===r},at.isLazy=function(w){return E(w)===h},at.isMemo=function(w){return E(w)===f},at.isPortal=function(w){return E(w)===t},at.isProfiler=function(w){return E(w)===i},at.isStrictMode=function(w){return E(w)===n},at.isSuspense=function(w){return E(w)===l},at.isSuspenseList=function(w){return E(w)===d},at.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===i||w===n||w===l||w===d||w===m||typeof w=="object"&&w!==null&&(w.$$typeof===h||w.$$typeof===f||w.$$typeof===o||w.$$typeof===a||w.$$typeof===p||w.$$typeof===b||w.getModuleId!==void 0)},at.typeOf=E,at}var Cd;function xP(){return Cd||(Cd=1,Ad.exports=SP()),Ad.exports}var Fg=xP(),DP=Pg(Fg),RP=Cg({__proto__:null,default:DP},[Fg]),PP=["isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","isValidElementType"],kn=Object.fromEntries(PP.map(e=>[e,t=>RP[e](t)||TP[e](t)]));function Ng(e,t=[]){if(Array.isArray(e))for(let r of e)Ng(r,t);else e!=null&&e!==!1&&e!==""&&t.push(e);return t}function _d(e){let t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(kn.isFragment(e))return"React.Fragment";if(kn.isSuspense(e))return"React.Suspense";if(typeof t=="object"&&t!==null){if(kn.isContextProvider(e))return"Context.Provider";if(kn.isContextConsumer(e))return"Context.Consumer";if(kn.isForwardRef(e)){if(t.displayName)return t.displayName;let r=t.render.displayName||t.render.name||"";return r===""?"ForwardRef":`ForwardRef(${r})`}if(kn.isMemo(e)){let r=t.displayName||t.type.displayName||t.type.name||"";return r===""?"Memo":`Memo(${r})`}}return"UNDEFINED"}function OP(e){let{props:t}=e;return Object.keys(t).filter(r=>r!=="children"&&t[r]!==void 0).sort()}var FP=(e,t,r,n,i,o)=>++n>t.maxDepth?_c(_d(e),t):Cc(_d(e),Ac(OP(e),e.props,t,r+t.indent,n,i,o),wc(Ng(e.props.children),t,r+t.indent,n,i,o),t,r),NP=e=>e!=null&&kn.isElement(e),IP={serialize:FP,test:NP},BP=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function kP(e){let{props:t}=e;return t?Object.keys(t).filter(r=>t[r]!==void 0).sort():[]}var MP=(e,t,r,n,i,o)=>++n>t.maxDepth?_c(e.type,t):Cc(e.type,e.props?Ac(kP(e),e.props,t,r+t.indent,n,i,o):"",e.children?wc(e.children,t,r+t.indent,n,i,o):"",t,r),qP=e=>e&&e.$$typeof===BP,jP={serialize:MP,test:qP},Ig=Object.prototype.toString,LP=Date.prototype.toISOString,VP=Error.prototype.toString,Td=RegExp.prototype.toString;function ya(e){return typeof e.constructor=="function"&&e.constructor.name||"Object"}function $P(e){return typeof window<"u"&&e===window}var UP=/^Symbol\((.*)\)(.*)$/,JP=/\n/g,Bg=class extends Error{constructor(e,t){super(e),this.stack=t,this.name=this.constructor.name}};function HP(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]"}function GP(e){return Object.is(e,-0)?"-0":String(e)}function zP(e){return`${e}n`}function Sd(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}function xd(e){return String(e).replace(UP,"Symbol($1)")}function Dd(e){return`[${VP.call(e)}]`}function kg(e,t,r,n){if(e===!0||e===!1)return`${e}`;if(e===void 0)return"undefined";if(e===null)return"null";let i=typeof e;if(i==="number")return GP(e);if(i==="bigint")return zP(e);if(i==="string")return n?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if(i==="function")return Sd(e,t);if(i==="symbol")return xd(e);let o=Ig.call(e);return o==="[object WeakMap]"?"WeakMap {}":o==="[object WeakSet]"?"WeakSet {}":o==="[object Function]"||o==="[object GeneratorFunction]"?Sd(e,t):o==="[object Symbol]"?xd(e):o==="[object Date]"?Number.isNaN(+e)?"Date { NaN }":LP.call(e):o==="[object Error]"?Dd(e):o==="[object RegExp]"?r?Td.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):Td.call(e):e instanceof Error?Dd(e):null}function Mg(e,t,r,n,i,o){if(i.includes(e))return"[Circular]";i=[...i],i.push(e);let a=++n>t.maxDepth,s=t.min;if(t.callToJSON&&!a&&e.toJSON&&typeof e.toJSON=="function"&&!o)return pn(e.toJSON(),t,r,n,i,!0);let p=Ig.call(e);return p==="[object Arguments]"?a?"[Arguments]":`${s?"":"Arguments "}[${Pa(e,t,r,n,i,pn)}]`:HP(p)?a?`[${e.constructor.name}]`:`${s||!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${Pa(e,t,r,n,i,pn)}]`:p==="[object Map]"?a?"[Map]":`Map {${ko(e.entries(),t,r,n,i,pn," => ")}}`:p==="[object Set]"?a?"[Set]":`Set {${Ec(e.values(),t,r,n,i,pn)}}`:a||$P(e)?`[${ya(e)}]`:`${s||!t.printBasicPrototype&&ya(e)==="Object"?"":`${ya(e)} `}{${vc(e,t,r,n,i,pn)}}`}var WP={test:e=>e&&e instanceof Error,serialize(e,t,r,n,i,o){if(i.includes(e))return"[Circular]";i=[...i,e];let a=++n>t.maxDepth,{message:s,cause:p,...l}=e,d={message:s,...typeof p<"u"?{cause:p}:{},...e instanceof AggregateError?{errors:e.errors}:{},...l},f=e.name!=="Error"?e.name:ya(e);return a?`[${f}]`:`${f} {${ko(Object.entries(d).values(),t,r,n,i,o)}}`}};function YP(e){return e.serialize!=null}function qg(e,t,r,n,i,o){let a;try{a=YP(e)?e.serialize(t,r,n,i,o,pn):e.print(t,s=>pn(s,r,n,i,o),s=>{let p=n+r.indent;return p+s.replaceAll(JP,`
|
|
162
|
+
${p}`)},{edgeSpacing:r.spacingOuter,min:r.min,spacing:r.spacingInner},r.colors)}catch(s){throw new Bg(s.message,s.stack)}if(typeof a!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof a}".`);return a}function jg(e,t){for(let r of e)try{if(r.test(t))return r}catch(n){throw new Bg(n.message,n.stack)}return null}function pn(e,t,r,n,i,o){let a=jg(t.plugins,e);if(a!==null)return qg(a,e,t,r,n,i);let s=kg(e,t.printFunctionName,t.escapeRegex,t.escapeString);return s!==null?s:Mg(e,t,r,n,i,o)}var Tc={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},Lg=Object.keys(Tc),vr={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:Tc};function KP(e){for(let t of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(vr,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.')}function XP(){return Lg.reduce((e,t)=>{let r=Tc[t],n=r&&Dt[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))}function QP(){return Lg.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}function Vg(e){return e?.printFunctionName??vr.printFunctionName}function $g(e){return e?.escapeRegex??vr.escapeRegex}function Ug(e){return e?.escapeString??vr.escapeString}function Rd(e){return{callToJSON:e?.callToJSON??vr.callToJSON,colors:e?.highlight?XP():QP(),compareKeys:typeof e?.compareKeys=="function"||e?.compareKeys===null?e.compareKeys:vr.compareKeys,escapeRegex:$g(e),escapeString:Ug(e),indent:e?.min?"":ZP(e?.indent??vr.indent),maxDepth:e?.maxDepth??vr.maxDepth,maxWidth:e?.maxWidth??vr.maxWidth,min:e?.min??vr.min,plugins:e?.plugins??vr.plugins,printBasicPrototype:e?.printBasicPrototype??!0,printFunctionName:Vg(e),spacingInner:e?.min?" ":`
|
|
163
|
+
`,spacingOuter:e?.min?"":`
|
|
164
|
+
`}}function ZP(e){return Array.from({length:e+1}).join(" ")}function Or(e,t){if(t&&(KP(t),t.plugins)){let n=jg(t.plugins,e);if(n!==null)return qg(n,e,Rd(t),"",0,[])}let r=kg(e,Vg(t),$g(t),Ug(t));return r!==null?r:Mg(e,Rd(t),"",0,[])}var Sc={AsymmetricMatcher:UR,DOMCollection:KR,DOMElement:aP,Immutable:AP,ReactElement:IP,ReactTestComponent:jP,Error:WP},Pd={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"]},eO={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},gi="…";function tO(e,t){let r=Pd[eO[t]]||Pd[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}function rO({showHidden:e=!1,depth:t=2,colors:r=!1,customInspect:n=!0,showProxy:i=!1,maxArrayLength:o=1/0,breakLength:a=1/0,seen:s=[],truncate:p=1/0,stylize:l=String}={},d){let f={showHidden:!!e,depth:Number(t),colors:!!r,customInspect:!!n,showProxy:!!i,maxArrayLength:Number(o),breakLength:Number(a),truncate:Number(p),seen:s,inspect:d,stylize:l};return f.colors&&(f.stylize=tO),f}function nO(e){return e>="\uD800"&&e<="\uDBFF"}function xn(e,t,r=gi){e=String(e);let n=r.length,i=e.length;if(n>t&&i>n)return r;if(i>t&&i>n){let o=t-n;return o>0&&nO(e[o-1])&&(o=o-1),`${e.slice(0,o)}${r}`}return e}function Tr(e,t,r,n=", "){r=r||t.inspect;let i=e.length;if(i===0)return"";let o=t.truncate,a="",s="",p="";for(let l=0;l<i;l+=1){let d=l+1===e.length,f=l+2===e.length;p=`${gi}(${e.length-l})`;let h=e[l];t.truncate=o-a.length-(d?0:n.length);let m=s||r(h,t)+(d?"":n),b=a.length+m.length,E=b+p.length;if(d&&b>o&&a.length+p.length<=o||!d&&!f&&E>o||(s=d?"":r(e[l+1],t)+(f?"":n),!d&&f&&E>o&&b+s.length>o))break;if(a+=m,!d&&!f&&b+s.length>=o){p=`${gi}(${e.length-l-1})`;break}p=""}return`${a}${p}`}function iO(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function go([e,t],r){return r.truncate-=2,typeof e=="string"?e=iO(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}function oO(e,t){let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return"[]";t.truncate-=4;let n=Tr(e,t);t.truncate-=n.length;let i="";return r.length&&(i=Tr(r.map(o=>[o,e[o]]),t,go)),`[ ${n}${i?`, ${i}`:""} ]`}var aO=e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name;function jr(e,t){let r=aO(e);t.truncate-=r.length+4;let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return`${r}[]`;let i="";for(let a=0;a<e.length;a++){let s=`${t.stylize(xn(e[a],t.truncate),"number")}${a===e.length-1?"":", "}`;if(t.truncate-=s.length,e[a]!==e.length&&t.truncate<=3){i+=`${gi}(${e.length-e[a]+1})`;break}i+=s}let o="";return n.length&&(o=Tr(n.map(a=>[a,e[a]]),t,go)),`${r}[ ${i}${o?`, ${o}`:""} ]`}function sO(e,t){let r=e.toJSON();if(r===null)return"Invalid Date";let n=r.split("T"),i=n[0];return t.stylize(`${i}T${xn(n[1],t.truncate-i.length-1)}`,"date")}function Od(e,t){let r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${xn(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}function uO([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}function lO(e){let t=[];return e.forEach((r,n)=>{t.push([n,r])}),t}function cO(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${Tr(lO(e),t,uO)} }`)}var pO=Number.isNaN||(e=>e!==e);function Fd(e,t){return pO(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(xn(String(e),t.truncate),"number")}function Nd(e,t){let r=xn(e.toString(),t.truncate-1);return r!==gi&&(r+="n"),t.stylize(r,"bigint")}function dO(e,t){let r=e.toString().split("/")[2],n=t.truncate-(2+r.length),i=e.source;return t.stylize(`/${xn(i,n)}/${r}`,"regexp")}function fO(e){let t=[];return e.forEach(r=>{t.push(r)}),t}function hO(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${Tr(fO(e),t)} }`)}var Id=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),mO={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},yO=16;function gO(e){return mO[e]||`\\u${`0000${e.charCodeAt(0).toString(yO)}`.slice(-4)}`}function Bd(e,t){return Id.test(e)&&(e=e.replace(Id,gO)),t.stylize(`'${xn(e,t.truncate-2)}'`,"string")}function kd(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}var bO=()=>"Promise{…}",EO=bO;function ga(e,t){let 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);let i=Tr(r.map(s=>[s,e[s]]),t,go),o=Tr(n.map(s=>[s,e[s]]),t,go);t.seen.pop();let a="";return i&&o&&(a=", "),`{ ${i}${a}${o} }`}var Hs=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function vO(e,t){let r="";return Hs&&Hs in e&&(r=e[Hs]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${ga(e,t)}`}function AO(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${Tr(e,t)} ]`)}var wO=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function CO(e,t){let r=Object.getOwnPropertyNames(e).filter(a=>wO.indexOf(a)===-1),n=e.name;t.truncate-=n.length;let i="";if(typeof e.message=="string"?i=xn(e.message,t.truncate):r.unshift("message"),i=i?`: ${i}`:"",t.truncate-=i.length+5,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let o=Tr(r.map(a=>[a,e[a]]),t,go);return`${n}${i}${o?` { ${o} }`:""}`}function _O([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}function Pu(e,t){return Tr(e,t,TO,`
|
|
165
|
+
`)}function TO(e,t){switch(e.nodeType){case 1:return Jg(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}function Jg(e,t){let r=e.getAttributeNames(),n=e.tagName.toLowerCase(),i=t.stylize(`<${n}`,"special"),o=t.stylize(">","special"),a=t.stylize(`</${n}>`,"special");t.truncate-=n.length*2+5;let s="";r.length>0&&(s+=" ",s+=Tr(r.map(d=>[d,e.getAttribute(d)]),t,_O," ")),t.truncate-=s.length;let p=t.truncate,l=Pu(e.children,t);return l&&l.length>p&&(l=`${gi}(${e.children.length})`),`${i}${s}${o}${l}${a}`}var SO=typeof Symbol=="function"&&typeof Symbol.for=="function",Gs=SO?Symbol.for("chai/inspect"):"@@chai/inspect",zs=Symbol.for("nodejs.util.inspect.custom"),Md=new WeakMap,qd={},jd={undefined:(e,t)=>t.stylize("undefined","undefined"),null:(e,t)=>t.stylize("null","null"),boolean:(e,t)=>t.stylize(String(e),"boolean"),Boolean:(e,t)=>t.stylize(String(e),"boolean"),number:Fd,Number:Fd,bigint:Nd,BigInt:Nd,string:Bd,String:Bd,function:Od,Function:Od,symbol:kd,Symbol:kd,Array:oO,Date:sO,Map:cO,Set:hO,RegExp:dO,Promise:EO,WeakSet:(e,t)=>t.stylize("WeakSet{…}","special"),WeakMap:(e,t)=>t.stylize("WeakMap{…}","special"),Arguments:AO,Int8Array:jr,Uint8Array:jr,Uint8ClampedArray:jr,Int16Array:jr,Uint16Array:jr,Int32Array:jr,Uint32Array:jr,Float32Array:jr,Float64Array:jr,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:CO,HTMLCollection:Pu,NodeList:Pu},xO=(e,t,r,n)=>Gs in e&&typeof e[Gs]=="function"?e[Gs](t):zs in e&&typeof e[zs]=="function"?e[zs](t.depth,t,n):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&Md.has(e.constructor)?Md.get(e.constructor)(e,t):qd[r]?qd[r](e,t):"",DO=Object.prototype.toString;function ba(e,t={}){let r=rO(t,ba),{customInspect:n}=r,i=e===null?"null":typeof e;if(i==="object"&&(i=DO.call(e).slice(8,-1)),i in jd)return jd[i](e,r);if(n&&e){let a=xO(e,r,i,ba);if(a)return typeof a=="string"?a:ba(a,r)}let o=e?Object.getPrototypeOf(e):!1;return o===Object.prototype||o===null?ga(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?Jg(e,r):"constructor"in e?e.constructor!==Object?vO(e,r):ga(e,r):e===Object(e)?ga(e,r):r.stylize(String(e),i)}var{AsymmetricMatcher:RO,DOMCollection:PO,DOMElement:OO,Immutable:FO,ReactElement:NO,ReactTestComponent:IO}=Sc,Ld=[IO,NO,OO,PO,FO,RO];function lr(e,t=10,{maxLength:r,...n}={}){let i=r??1e4,o;try{o=Or(e,{maxDepth:t,escapeString:!1,plugins:Ld,...n})}catch{o=Or(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:Ld,...n})}return o.length>=i&&t>1?lr(e,Math.floor(Math.min(t,Number.MAX_SAFE_INTEGER)/2),{maxLength:r,...n}):o}var BO=/%[sdjifoOc%]/g;function kO(...e){if(typeof e[0]!="string"){let o=[];for(let a=0;a<e.length;a++)o.push(Ui(e[a],{depth:0,colors:!1}));return o.join(" ")}let t=e.length,r=1,n=e[0],i=String(n).replace(BO,o=>{if(o==="%%")return"%";if(r>=t)return o;switch(o){case"%s":{let 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():Ui(a,{depth:0,colors:!1}):String(a)}case"%d":{let a=e[r++];return typeof a=="bigint"?`${a.toString()}n`:Number(a).toString()}case"%i":{let 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 Ui(e[r++],{showHidden:!0,showProxy:!0});case"%O":return Ui(e[r++]);case"%c":return r++,"";case"%j":try{return JSON.stringify(e[r++])}catch(a){let s=a.message;if(s.includes("circular structure")||s.includes("cyclic structures")||s.includes("cyclic object"))return"[Circular]";throw a}default:return o}});for(let o=e[r];r<t;o=e[++r])o===null||typeof o!="object"?i+=` ${o}`:i+=` ${Ui(o)}`;return i}function Ui(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),ba(e,t)}function Hg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Lr(e,t,r){let n=typeof e;if(!r.includes(n))throw new TypeError(`${t} value must be ${r.join(" or ")}, received "${n}"`)}function Ea(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function MO(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}function Oa(e){return Object.prototype.toString.apply(e).slice(8,-1)}function qO(e,t){let r=typeof t=="function"?t:n=>t.add(n);Object.getOwnPropertyNames(e).forEach(r),Object.getOwnPropertySymbols(e).forEach(r)}function Gg(e){let t=new Set;return MO(e)?[]:(qO(e,t),Array.from(t))}var zg={forceWritable:!1};function Vd(e,t=zg){return Ou(e,new WeakMap,t)}function Ou(e,t,r=zg){let n,i;if(t.has(e))return t.get(e);if(Array.isArray(e)){for(i=Array.from({length:n=e.length}),t.set(e,i);n--;)i[n]=Ou(e[n],t,r);return i}if(Object.prototype.toString.call(e)==="[object Object]"){i=Object.create(Object.getPrototypeOf(e)),t.set(e,i);let o=Gg(e);for(let a of o){let s=Object.getOwnPropertyDescriptor(e,a);if(!s)continue;let p=Ou(e[a],t,r);r.forceWritable?Object.defineProperty(i,a,{enumerable:s.enumerable,configurable:!0,writable:!0,value:p}):"get"in s?Object.defineProperty(i,a,{...s,get(){return p}}):Object.defineProperty(i,a,{...s,value:p})}return i}return e}function jO(){}var zt=-1,Ut=1,xt=0,Tt=class{0;1;constructor(e,t){this[0]=e,this[1]=t}};function LO(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let r=0,n=Math.min(e.length,t.length),i=n,o=0;for(;r<i;)e.substring(o,i)===t.substring(o,i)?(r=i,o=r):n=i,i=Math.floor((n-r)/2+r);return i}function Wg(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),i=n,o=0;for(;r<i;)e.substring(e.length-i,e.length-o)===t.substring(t.length-i,t.length-o)?(r=i,o=r):n=i,i=Math.floor((n-r)/2+r);return i}function $d(e,t){let 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));let i=Math.min(r,n);if(e===t)return i;let o=0,a=1;for(;;){let s=e.substring(i-a),p=t.indexOf(s);if(p===-1)return o;a+=p,(p===0||e.substring(i-a)===t.substring(0,a))&&(o=a,a++)}}function VO(e){let t=!1,r=[],n=0,i=null,o=0,a=0,s=0,p=0,l=0;for(;o<e.length;)e[o][0]===xt?(r[n++]=o,a=p,s=l,p=0,l=0,i=e[o][1]):(e[o][0]===Ut?p+=e[o][1].length:l+=e[o][1].length,i&&i.length<=Math.max(a,s)&&i.length<=Math.max(p,l)&&(e.splice(r[n-1],0,new Tt(zt,i)),e[r[n-1]+1][0]=Ut,n--,n--,o=n>0?r[n-1]:-1,a=0,s=0,p=0,l=0,i=null,t=!0)),o++;for(t&&Yg(e),JO(e),o=1;o<e.length;){if(e[o-1][0]===zt&&e[o][0]===Ut){let d=e[o-1][1],f=e[o][1],h=$d(d,f),m=$d(f,d);h>=m?(h>=d.length/2||h>=f.length/2)&&(e.splice(o,0,new Tt(xt,f.substring(0,h))),e[o-1][1]=d.substring(0,d.length-h),e[o+1][1]=f.substring(h),o++):(m>=d.length/2||m>=f.length/2)&&(e.splice(o,0,new Tt(xt,d.substring(0,m))),e[o-1][0]=Ut,e[o-1][1]=f.substring(0,f.length-m),e[o+1][0]=zt,e[o+1][1]=d.substring(m),o++),o++}o++}}var Ud=/[^a-z0-9]/i,Jd=/\s/,Hd=/[\r\n]/,$O=/\n\r?\n$/,UO=/^\r?\n\r?\n/;function JO(e){let t=1;for(;t<e.length-1;){if(e[t-1][0]===xt&&e[t+1][0]===xt){let r=e[t-1][1],n=e[t][1],i=e[t+1][1],o=Wg(r,n);if(o){let d=n.substring(n.length-o);r=r.substring(0,r.length-o),n=d+n.substring(0,n.length-o),i=d+i}let a=r,s=n,p=i,l=ea(r,n)+ea(n,i);for(;n.charAt(0)===i.charAt(0);){r+=n.charAt(0),n=n.substring(1)+i.charAt(0),i=i.substring(1);let d=ea(r,n)+ea(n,i);d>=l&&(l=d,a=r,s=n,p=i)}e[t-1][1]!==a&&(a?e[t-1][1]=a:(e.splice(t-1,1),t--),e[t][1]=s,p?e[t+1][1]=p:(e.splice(t+1,1),t--))}t++}}function Yg(e){e.push(new Tt(xt,""));let t=0,r=0,n=0,i="",o="",a;for(;t<e.length;)switch(e[t][0]){case Ut:n++,o+=e[t][1],t++;break;case zt:r++,i+=e[t][1],t++;break;case xt:r+n>1?(r!==0&&n!==0&&(a=LO(o,i),a!==0&&(t-r-n>0&&e[t-r-n-1][0]===xt?e[t-r-n-1][1]+=o.substring(0,a):(e.splice(0,0,new Tt(xt,o.substring(0,a))),t++),o=o.substring(a),i=i.substring(a)),a=Wg(o,i),a!==0&&(e[t][1]=o.substring(o.length-a)+e[t][1],o=o.substring(0,o.length-a),i=i.substring(0,i.length-a))),t-=r+n,e.splice(t,r+n),i.length&&(e.splice(t,0,new Tt(zt,i)),t++),o.length&&(e.splice(t,0,new Tt(Ut,o)),t++),t++):t!==0&&e[t-1][0]===xt?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,n=0,r=0,i="",o="";break}e[e.length-1][1]===""&&e.pop();let s=!1;for(t=1;t<e.length-1;)e[t-1][0]===xt&&e[t+1][0]===xt&&(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),s=!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),s=!0)),t++;s&&Yg(e)}function ea(e,t){if(!e||!t)return 6;let r=e.charAt(e.length-1),n=t.charAt(0),i=r.match(Ud),o=n.match(Ud),a=i&&r.match(Jd),s=o&&n.match(Jd),p=a&&r.match(Hd),l=s&&n.match(Hd),d=p&&e.match($O),f=l&&t.match(UO);return d||f?5:p||l?4:i&&!a&&s?3:a||s?2:i||o?1:0}var Kg="Compared values have no visual difference.",HO="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",ta={},Gd;function GO(){if(Gd)return ta;Gd=1,Object.defineProperty(ta,"__esModule",{value:!0}),ta.default=h;let e="diff-sequences",t=0,r=(m,b,E,w,A)=>{let S=0;for(;m<b&&E<w&&A(m,E);)m+=1,E+=1,S+=1;return S},n=(m,b,E,w,A)=>{let S=0;for(;m<=b&&E<=w&&A(b,w);)b-=1,w-=1,S+=1;return S},i=(m,b,E,w,A,S,k)=>{let O=0,R=-m,y=S[O],T=y;S[O]+=r(y+1,b,w+y-R+1,E,A);let _=m<k?m:k;for(O+=1,R+=2;O<=_;O+=1,R+=2){if(O!==m&&T<S[O])y=S[O];else if(y=T+1,b<=y)return O-1;T=S[O],S[O]=y+r(y+1,b,w+y-R+1,E,A)}return k},o=(m,b,E,w,A,S,k)=>{let O=0,R=m,y=S[O],T=y;S[O]-=n(b,y-1,E,w+y-R-1,A);let _=m<k?m:k;for(O+=1,R-=2;O<=_;O+=1,R-=2){if(O!==m&&S[O]<T)y=S[O];else if(y=T-1,y<b)return O-1;T=S[O],S[O]=y-n(b,y-1,E,w+y-R-1,A)}return k},a=(m,b,E,w,A,S,k,O,R,y,T)=>{let _=w-b,D=E-b,J=A-w-D,M=-J-(m-1),G=-J+(m-1),L=t,I=m<O?m:O;for(let $=0,Y=-m;$<=I;$+=1,Y+=2){let X=$===0||$!==m&&L<k[$],oe=X?k[$]:L,ve=X?oe:oe+1,De=_+ve-Y,z=r(ve+1,E,De+1,A,S),K=ve+z;if(L=k[$],k[$]=K,M<=Y&&Y<=G){let be=(m-1-(Y+J))/2;if(be<=y&&R[be]-1<=K){let me=_+oe-(X?Y+1:Y-1),fe=n(b,oe,w,me,S),se=oe-fe,Te=me-fe,Oe=se+1,Le=Te+1;T.nChangePreceding=m-1,m-1===Oe+Le-b-w?(T.aEndPreceding=b,T.bEndPreceding=w):(T.aEndPreceding=Oe,T.bEndPreceding=Le),T.nCommonPreceding=fe,fe!==0&&(T.aCommonPreceding=Oe,T.bCommonPreceding=Le),T.nCommonFollowing=z,z!==0&&(T.aCommonFollowing=ve+1,T.bCommonFollowing=De+1);let Z=K+1,de=De+z+1;return T.nChangeFollowing=m-1,m-1===E+A-Z-de?(T.aStartFollowing=E,T.bStartFollowing=A):(T.aStartFollowing=Z,T.bStartFollowing=de),!0}}}return!1},s=(m,b,E,w,A,S,k,O,R,y,T)=>{let _=A-E,D=E-b,J=A-w-D,M=J-m,G=J+m,L=t,I=m<y?m:y;for(let $=0,Y=m;$<=I;$+=1,Y-=2){let X=$===0||$!==m&&R[$]<L,oe=X?R[$]:L,ve=X?oe:oe-1,De=_+ve-Y,z=n(b,ve-1,w,De-1,S),K=ve-z;if(L=R[$],R[$]=K,M<=Y&&Y<=G){let be=(m+(Y-J))/2;if(be<=O&&K-1<=k[be]){let me=De-z;if(T.nChangePreceding=m,m===K+me-b-w?(T.aEndPreceding=b,T.bEndPreceding=w):(T.aEndPreceding=K,T.bEndPreceding=me),T.nCommonPreceding=z,z!==0&&(T.aCommonPreceding=K,T.bCommonPreceding=me),T.nChangeFollowing=m-1,m===1)T.nCommonFollowing=0,T.aStartFollowing=E,T.bStartFollowing=A;else{let fe=_+oe-(X?Y-1:Y+1),se=r(oe,E,fe,A,S);T.nCommonFollowing=se,se!==0&&(T.aCommonFollowing=oe,T.bCommonFollowing=fe);let Te=oe+se,Oe=fe+se;m-1===E+A-Te-Oe?(T.aStartFollowing=E,T.bStartFollowing=A):(T.aStartFollowing=Te,T.bStartFollowing=Oe)}return!0}}}return!1},p=(m,b,E,w,A,S,k,O,R)=>{let y=w-b,T=A-E,_=E-b,D=A-w,J=D-_,M=_,G=_;if(k[0]=b-1,O[0]=E,J%2===0){let L=(m||J)/2,I=(_+D)/2;for(let $=1;$<=I;$+=1)if(M=i($,E,A,y,S,k,M),$<L)G=o($,b,w,T,S,O,G);else if(s($,b,E,w,A,S,k,M,O,G,R))return}else{let L=((m||J)+1)/2,I=(_+D+1)/2,$=1;for(M=i($,E,A,y,S,k,M),$+=1;$<=I;$+=1)if(G=o($-1,b,w,T,S,O,G),$<L)M=i($,E,A,y,S,k,M);else if(a($,b,E,w,A,S,k,M,O,G,R))return}throw new Error(`${e}: no overlap aStart=${b} aEnd=${E} bStart=${w} bEnd=${A}`)},l=(m,b,E,w,A,S,k,O,R,y)=>{if(A-w<E-b){if(S=!S,S&&k.length===1){let{foundSubsequence:be,isCommon:me}=k[0];k[1]={foundSubsequence:(fe,se,Te)=>{be(fe,Te,se)},isCommon:(fe,se)=>me(se,fe)}}let z=b,K=E;b=w,E=A,w=z,A=K}let{foundSubsequence:T,isCommon:_}=k[S?1:0];p(m,b,E,w,A,_,O,R,y);let{nChangePreceding:D,aEndPreceding:J,bEndPreceding:M,nCommonPreceding:G,aCommonPreceding:L,bCommonPreceding:I,nCommonFollowing:$,aCommonFollowing:Y,bCommonFollowing:X,nChangeFollowing:oe,aStartFollowing:ve,bStartFollowing:De}=y;b<J&&w<M&&l(D,b,J,w,M,S,k,O,R,y),G!==0&&T(G,L,I),$!==0&&T($,Y,X),ve<E&&De<A&&l(oe,ve,E,De,A,S,k,O,R,y)},d=(m,b)=>{if(typeof b!="number")throw new TypeError(`${e}: ${m} typeof ${typeof b} is not a number`);if(!Number.isSafeInteger(b))throw new RangeError(`${e}: ${m} value ${b} is not a safe integer`);if(b<0)throw new RangeError(`${e}: ${m} value ${b} is a negative integer`)},f=(m,b)=>{let E=typeof b;if(E!=="function")throw new TypeError(`${e}: ${m} typeof ${E} is not a function`)};function h(m,b,E,w){d("aLength",m),d("bLength",b),f("isCommon",E),f("foundSubsequence",w);let A=r(0,m,0,b,E);if(A!==0&&w(A,0,0),m!==A||b!==A){let S=A,k=A,O=n(S,m-1,k,b-1,E),R=m-O,y=b-O,T=A+O;m!==T&&b!==T&&l(0,S,R,k,y,!1,[{foundSubsequence:w,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}),O!==0&&w(O,R,y)}}return ta}var zO=GO(),Xg=Hg(zO);function WO(e,t){return e.replace(/\s+$/,r=>t(r))}function xc(e,t,r,n,i,o){return e.length!==0?r(`${n} ${WO(e,i)}`):n!==" "?r(n):t&&o.length!==0?r(`${n} ${o}`):""}function Qg(e,t,{aColor:r,aIndicator:n,changeLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:o}){return xc(e,t,r,n,i,o)}function Zg(e,t,{bColor:r,bIndicator:n,changeLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:o}){return xc(e,t,r,n,i,o)}function eb(e,t,{commonColor:r,commonIndicator:n,commonLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:o}){return xc(e,t,r,n,i,o)}function zd(e,t,r,n,{patchColor:i}){return i(`@@ -${e+1},${t-e} +${r+1},${n-r} @@`)}function YO(e,t){let r=e.length,n=t.contextLines,i=n+n,o=r,a=!1,s=0,p=0;for(;p!==r;){let O=p;for(;p!==r&&e[p][0]===xt;)p+=1;if(O!==p)if(O===0)p>n&&(o-=p-n,a=!0);else if(p===r){let R=p-O;R>n&&(o-=R-n,a=!0)}else{let R=p-O;R>i&&(o-=R-i,s+=1)}for(;p!==r&&e[p][0]!==xt;)p+=1}let l=s!==0||a;s!==0?o+=s+1:a&&(o+=1);let d=o-1,f=[],h=0;l&&f.push("");let m=0,b=0,E=0,w=0,A=O=>{let R=f.length;f.push(eb(O,R===0||R===d,t)),E+=1,w+=1},S=O=>{let R=f.length;f.push(Qg(O,R===0||R===d,t)),E+=1},k=O=>{let R=f.length;f.push(Zg(O,R===0||R===d,t)),w+=1};for(p=0;p!==r;){let O=p;for(;p!==r&&e[p][0]===xt;)p+=1;if(O!==p)if(O===0){p>n&&(O=p-n,m=O,b=O,E=m,w=b);for(let R=O;R!==p;R+=1)A(e[R][1])}else if(p===r){let R=p-O>n?O+n:p;for(let y=O;y!==R;y+=1)A(e[y][1])}else{let R=p-O;if(R>i){let y=O+n;for(let _=O;_!==y;_+=1)A(e[_][1]);f[h]=zd(m,E,b,w,t),h=f.length,f.push("");let T=R-i;m=E+T,b=w+T,E=m,w=b;for(let _=p-n;_!==p;_+=1)A(e[_][1])}else for(let y=O;y!==p;y+=1)A(e[y][1])}for(;p!==r&&e[p][0]===zt;)S(e[p][1]),p+=1;for(;p!==r&&e[p][0]===Ut;)k(e[p][1]),p+=1}return l&&(f[h]=zd(m,E,b,w,t)),f.join(`
|
|
166
|
+
`)}function KO(e,t){return e.map((r,n,i)=>{let o=r[1],a=n===0||n===i.length-1;switch(r[0]){case zt:return Qg(o,a,t);case Ut:return Zg(o,a,t);default:return eb(o,a,t)}}).join(`
|
|
167
|
+
`)}var Ws=e=>e,tb=5,XO=0;function QO(){return{aAnnotation:"Expected",aColor:Dt.green,aIndicator:"-",bAnnotation:"Received",bColor:Dt.red,bIndicator:"+",changeColor:Dt.inverse,changeLineTrailingSpaceColor:Ws,commonColor:Dt.dim,commonIndicator:" ",commonLineTrailingSpaceColor:Ws,compareKeys:void 0,contextLines:tb,emptyFirstOrLastLinePlaceholder:"",expand:!1,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:Dt.yellow,printBasicPrototype:!1,truncateThreshold:XO,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:Ws}}function ZO(e){return e&&typeof e=="function"?e:void 0}function eF(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0?e:tb}function Kn(e={}){return{...QO(),...e,compareKeys:ZO(e.compareKeys),contextLines:eF(e.contextLines)}}function ai(e){return e.length===1&&e[0].length===0}function tF(e){let t=0,r=0;return e.forEach(n=>{switch(n[0]){case zt:t+=1;break;case Ut:r+=1;break}}),{a:t,b:r}}function rF({aAnnotation:e,aColor:t,aIndicator:r,bAnnotation:n,bColor:i,bIndicator:o,includeChangeCounts:a,omitAnnotationLines:s},p){if(s)return"";let l="",d="";if(a){let m=String(p.a),b=String(p.b),E=n.length-e.length,w=" ".repeat(Math.max(0,E)),A=" ".repeat(Math.max(0,-E)),S=b.length-m.length,k=" ".repeat(Math.max(0,S)),O=" ".repeat(Math.max(0,-S));l=`${w} ${r} ${k}${m}`,d=`${A} ${o} ${O}${b}`}let f=`${r} ${e}${l}`,h=`${o} ${n}${d}`;return`${t(f)}
|
|
168
|
+
${i(h)}
|
|
169
|
+
|
|
170
|
+
`}function Dc(e,t,r){return rF(r,tF(e))+(r.expand?KO(e,r):YO(e,r))+(t?r.truncateAnnotationColor(`
|
|
171
|
+
${r.truncateAnnotation}`):"")}function ps(e,t,r){let n=Kn(r),[i,o]=rb(ai(e)?[]:e,ai(t)?[]:t,n);return Dc(i,o,n)}function nF(e,t,r,n,i){if(ai(e)&&ai(r)&&(e=[],r=[]),ai(t)&&ai(n)&&(t=[],n=[]),e.length!==r.length||t.length!==n.length)return ps(e,t,i);let[o,a]=rb(r,n,i),s=0,p=0;return o.forEach(l=>{switch(l[0]){case zt:l[1]=e[s],s+=1;break;case Ut:l[1]=t[p],p+=1;break;default:l[1]=t[p],s+=1,p+=1}}),Dc(o,a,Kn(i))}function rb(e,t,r){let n=r?.truncateThreshold??!1,i=Math.max(Math.floor(r?.truncateThreshold??0),0),o=n?Math.min(e.length,i):e.length,a=n?Math.min(t.length,i):t.length,s=o!==e.length||a!==t.length,p=(h,m)=>e[h]===t[m],l=[],d=0,f=0;for(Xg(o,a,p,(h,m,b)=>{for(;d!==m;d+=1)l.push(new Tt(zt,e[d]));for(;f!==b;f+=1)l.push(new Tt(Ut,t[f]));for(;h!==0;h-=1,d+=1,f+=1)l.push(new Tt(xt,t[f]))});d!==o;d+=1)l.push(new Tt(zt,e[d]));for(;f!==a;f+=1)l.push(new Tt(Ut,t[f]));return[l,s]}function Wd(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}`)}function Yd(e){return e.includes(`\r
|
|
172
|
+
`)?`\r
|
|
173
|
+
`:`
|
|
174
|
+
`}function iF(e,t,r){let n=r?.truncateThreshold??!1,i=Math.max(Math.floor(r?.truncateThreshold??0),0),o=e.length,a=t.length;if(n){let h=e.includes(`
|
|
175
|
+
`),m=t.includes(`
|
|
176
|
+
`),b=Yd(e),E=Yd(t),w=h?`${e.split(b,i).join(b)}
|
|
177
|
+
`:e,A=m?`${t.split(E,i).join(E)}
|
|
178
|
+
`:t;o=w.length,a=A.length}let s=o!==e.length||a!==t.length,p=(h,m)=>e[h]===t[m],l=0,d=0,f=[];return Xg(o,a,p,(h,m,b)=>{l!==m&&f.push(new Tt(zt,e.slice(l,m))),d!==b&&f.push(new Tt(Ut,t.slice(d,b))),l=m+h,d=b+h,f.push(new Tt(xt,t.slice(b,d)))}),l!==o&&f.push(new Tt(zt,e.slice(l))),d!==a&&f.push(new Tt(Ut,t.slice(d))),[f,s]}function oF(e,t,r){return t.reduce((n,i)=>n+(i[0]===xt?i[1]:i[0]===e&&i[1].length!==0?r(i[1]):""),"")}var Kd=class{op;line;lines;changeColor;constructor(e,t){this.op=e,this.line=[],this.lines=[],this.changeColor=t}pushSubstring(e){this.pushDiff(new Tt(this.op,e))}pushLine(){this.lines.push(this.line.length!==1?new Tt(this.op,oF(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new Tt(this.op,this.line[0][1])),this.line.length=0}isLineEmpty(){return this.line.length===0}pushDiff(e){this.line.push(e)}align(e){let t=e[1];if(t.includes(`
|
|
179
|
+
`)){let r=t.split(`
|
|
180
|
+
`),n=r.length-1;r.forEach((i,o)=>{o<n?(this.pushSubstring(i),this.pushLine()):i.length!==0&&this.pushSubstring(i)})}else this.pushDiff(e)}moveLinesTo(e){this.isLineEmpty()||this.pushLine(),e.push(...this.lines),this.lines.length=0}},aF=class{deleteBuffer;insertBuffer;lines;constructor(e,t){this.deleteBuffer=e,this.insertBuffer=t,this.lines=[]}pushDiffCommonLine(e){this.lines.push(e)}pushDiffChangeLines(e){let t=e[1].length===0;(!t||this.deleteBuffer.isLineEmpty())&&this.deleteBuffer.pushDiff(e),(!t||this.insertBuffer.isLineEmpty())&&this.insertBuffer.pushDiff(e)}flushChangeLines(){this.deleteBuffer.moveLinesTo(this.lines),this.insertBuffer.moveLinesTo(this.lines)}align(e){let t=e[0],r=e[1];if(r.includes(`
|
|
181
|
+
`)){let n=r.split(`
|
|
182
|
+
`),i=n.length-1;n.forEach((o,a)=>{if(a===0){let s=new Tt(t,o);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(s)):(this.pushDiffChangeLines(s),this.flushChangeLines())}else a<i?this.pushDiffCommonLine(new Tt(t,o)):o.length!==0&&this.pushDiffChangeLines(new Tt(t,o))})}else this.pushDiffChangeLines(e)}getLines(){return this.flushChangeLines(),this.lines}};function sF(e,t){let r=new Kd(zt,t),n=new Kd(Ut,t),i=new aF(r,n);return e.forEach(o=>{switch(o[0]){case zt:r.align(o);break;case Ut:n.align(o);break;default:i.align(o)}}),i.getLines()}function uF(e,t){if(t){let r=e.length-1;return e.some((n,i)=>n[0]===xt&&(i!==r||n[1]!==`
|
|
183
|
+
`))}return e.some(r=>r[0]===xt)}function lF(e,t,r){if(e!==t&&e.length!==0&&t.length!==0){let n=e.includes(`
|
|
184
|
+
`)||t.includes(`
|
|
185
|
+
`),[i,o]=nb(n?`${e}
|
|
186
|
+
`:e,n?`${t}
|
|
187
|
+
`:t,!0,r);if(uF(i,n)){let a=Kn(r),s=sF(i,a.changeColor);return Dc(s,o,a)}}return ps(e.split(`
|
|
188
|
+
`),t.split(`
|
|
189
|
+
`),r)}function nb(e,t,r,n){let[i,o]=iF(e,t,n);return VO(i),[i,o]}function Fu(e,t){let{commonColor:r}=Kn(t);return r(e)}var{AsymmetricMatcher:cF,DOMCollection:pF,DOMElement:dF,Immutable:fF,ReactElement:hF,ReactTestComponent:mF}=Sc,ib=[mF,hF,dF,pF,fF,cF,Sc.Error],Nu={maxDepth:20,plugins:ib},ob={callToJSON:!1,maxDepth:8,plugins:ib};function Ii(e,t,r){if(Object.is(e,t))return"";let n=Wd(e),i=n,o=!1;if(n==="object"&&typeof e.asymmetricMatch=="function"){if(e.$$typeof!==Symbol.for("jest.asymmetricMatcher")||typeof e.getExpectedType!="function")return;i=e.getExpectedType(),o=i==="string"}if(i!==Wd(t)){let a=function(k){return k.length<=w?k:`${k.slice(0,w)}...`},{aAnnotation:s,aColor:p,aIndicator:l,bAnnotation:d,bColor:f,bIndicator:h}=Kn(r),m=Iu(ob,r),b=Or(e,m),E=Or(t,m),w=1e5;b=a(b),E=a(E);let A=`${p(`${l} ${s}:`)}
|
|
190
|
+
${b}`,S=`${f(`${h} ${d}:`)}
|
|
191
|
+
${E}`;return`${A}
|
|
192
|
+
|
|
193
|
+
${S}`}if(!o)switch(n){case"string":return ps(e.split(`
|
|
194
|
+
`),t.split(`
|
|
195
|
+
`),r);case"boolean":case"number":return yF(e,t,r);case"map":return Ys(Xd(e),Xd(t),r);case"set":return Ys(Qd(e),Qd(t),r);default:return Ys(e,t,r)}}function yF(e,t,r){let n=Or(e,Nu),i=Or(t,Nu);return n===i?"":ps(n.split(`
|
|
196
|
+
`),i.split(`
|
|
197
|
+
`),r)}function Xd(e){return new Map(Array.from(e.entries()).sort())}function Qd(e){return new Set(Array.from(e.values()).sort())}function Ys(e,t,r){let n,i=!1;try{let a=Iu(Nu,r);n=Zd(e,t,a,r)}catch{i=!0}let o=Fu(Kg,r);if(n===void 0||n===o){let a=Iu(ob,r);n=Zd(e,t,a,r),n!==o&&!i&&(n=`${Fu(HO,r)}
|
|
198
|
+
|
|
199
|
+
${n}`)}return n}function Iu(e,t){let{compareKeys:r,printBasicPrototype:n,maxDepth:i}=Kn(t);return{...e,compareKeys:r,printBasicPrototype:n,maxDepth:i??e.maxDepth}}function Zd(e,t,r,n){let i={...r,indent:0},o=Or(e,i),a=Or(t,i);if(o===a)return Fu(Kg,n);{let s=Or(e,r),p=Or(t,r);return nF(s.split(`
|
|
200
|
+
`),p.split(`
|
|
201
|
+
`),o.split(`
|
|
202
|
+
`),a.split(`
|
|
203
|
+
`),n)}}var ef=2e4;function tf(e){return Oa(e)==="Object"&&typeof e.asymmetricMatch=="function"}function rf(e,t){let r=Oa(e),n=Oa(t);return r===n&&(r==="Object"||r==="Array")}function ab(e,t,r){let{aAnnotation:n,bAnnotation:i}=Kn(r);if(typeof t=="string"&&typeof e=="string"&&t.length>0&&e.length>0&&t.length<=ef&&e.length<=ef&&t!==e){if(t.includes(`
|
|
204
|
+
`)||e.includes(`
|
|
205
|
+
`))return lF(t,e,r);let[l]=nb(t,e),d=l.some(b=>b[0]===xt),f=gF(n,i),h=f(n)+vF(nf(l,zt,d)),m=f(i)+EF(nf(l,Ut,d));return`${h}
|
|
206
|
+
${m}`}let o=Vd(t,{forceWritable:!0}),a=Vd(e,{forceWritable:!0}),{replacedExpected:s,replacedActual:p}=sb(a,o);return Ii(s,p,r)}function sb(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}):rf(e,t)?r.has(e)||n.has(t)?{replacedActual:e,replacedExpected:t}:(r.add(e),n.add(t),Gg(t).forEach(i=>{let o=t[i],a=e[i];if(tf(o))o.asymmetricMatch(a)&&(e[i]=o);else if(tf(a))a.asymmetricMatch(o)&&(t[i]=a);else if(rf(a,o)){let s=sb(a,o,r,n);e[i]=s.replacedActual,t[i]=s.replacedExpected}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}function gF(...e){let t=e.reduce((r,n)=>n.length>r?n.length:r,0);return r=>`${r}: ${" ".repeat(t-r.length)}`}var bF="·";function ub(e){return e.replace(/\s+$/gm,t=>bF.repeat(t.length))}function EF(e){return Dt.red(ub(lr(e)))}function vF(e){return Dt.green(ub(lr(e)))}function nf(e,t,r){return e.reduce((n,i)=>n+(i[0]===xt?i[1]:i[0]===t?r?Dt.inverse(i[1]):i[1]:""),"")}var AF="@@__IMMUTABLE_RECORD__@@",wF="@@__IMMUTABLE_ITERABLE__@@";function CF(e){return e&&(e[wF]||e[AF])}var _F=Object.getPrototypeOf({});function of(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e=="string"?`<unserializable>: ${e}`:"<unserializable>"}function dn(e,t=new WeakMap){if(!e||typeof e=="string")return e;if(e instanceof Error&&"toJSON"in e&&typeof e.toJSON=="function"){let r=e.toJSON();return r&&r!==e&&typeof r=="object"&&(typeof e.message=="string"&&ra(()=>r.message??(r.message=e.message)),typeof e.stack=="string"&&ra(()=>r.stack??(r.stack=e.stack)),typeof e.name=="string"&&ra(()=>r.name??(r.name=e.name)),e.cause!=null&&ra(()=>r.cause??(r.cause=dn(e.cause,t)))),dn(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(CF(e))return dn(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()} ${kO(e.sample)}`;if(typeof e.toJSON=="function")return dn(e.toJSON(),t);if(t.has(e))return t.get(e);if(Array.isArray(e)){let r=new Array(e.length);return t.set(e,r),e.forEach((n,i)=>{try{r[i]=dn(n,t)}catch(o){r[i]=of(o)}}),r}else{let r=Object.create(null);t.set(e,r);let n=e;for(;n&&n!==_F;)Object.getOwnPropertyNames(n).forEach(i=>{if(!(i in r))try{r[i]=dn(e[i],t)}catch(o){delete r[i],r[i]=of(o)}}),n=Object.getPrototypeOf(n);return r}}function ra(e){try{return e()}catch{}}function TF(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}function Rc(e,t,r=new WeakSet){if(!e||typeof e!="object")return{message:String(e)};let n=e;(n.showDiff||n.showDiff===void 0&&n.expected!==void 0&&n.actual!==void 0)&&(n.diff=ab(n.actual,n.expected,{...t,...n.diffOptions})),"expected"in n&&typeof n.expected!="string"&&(n.expected=lr(n.expected,10)),"actual"in n&&typeof n.actual!="string"&&(n.actual=lr(n.actual,10));try{typeof n.message=="string"&&(n.message=TF(n.message))}catch{}try{!r.has(n)&&typeof n.cause=="object"&&(r.add(n),n.cause=Rc(n.cause,t,r))}catch{}try{return dn(n)}catch(i){return dn(new Error(`Failed to fully serialize error: ${i?.message}
|
|
207
|
+
Inner error message: ${n?.message}`))}}var Vr={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"},Ks=globalThis.__STORYBOOK_ADDONS_PREVIEW,SF=new Error("This function ran after the play function completed. Did you forget to `await` it?"),af=e=>Object.prototype.toString.call(e)==="[object Object]",xF=e=>Object.prototype.toString.call(e)==="[object Module]",DF=e=>{if(!af(e)&&!xF(e))return!1;if(e.constructor===void 0)return!0;let t=e.constructor.prototype;return!!af(t)},RF=e=>{try{return new e.constructor}catch{return{}}},Xs=()=>({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}),sf=(e,t=!1)=>{let r=(t?e.shadowCalls:e.calls).filter(i=>i.retain);if(!r.length)return;let n=new Map(Array.from(e.callRefsByResult.entries()).filter(([,i])=>i.retain));return{cursor:r.length,calls:r,callRefsByResult:n}},PF=class{constructor(){this.detached=!1,this.initialized=!1,this.state={},this.loadParentWindowState=()=>{try{this.state=we.window?.parent?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__||{}}catch{this.detached=!0}},this.updateParentWindowState=()=>{try{we.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state}catch{this.detached=!0}},this.loadParentWindowState();let e=({storyId:s,renderPhase:p,isPlaying:l=!0,isDebugging:d=!1})=>{let f=this.getState(s);this.setState(s,{...Xs(),...sf(f,d),renderPhase:p||f.renderPhase,shadowCalls:d?f.shadowCalls:[],chainedCallIds:d?f.chainedCallIds:new Set,playUntil:d?f.playUntil:void 0,isPlaying:l,isDebugging:d}),this.sync(s)},t=s=>({storyId:p,playUntil:l})=>{this.getState(p).isDebugging||this.setState(p,({calls:f})=>({calls:[],shadowCalls:f.map(h=>({...h,status:"waiting"})),isDebugging:!0}));let d=this.getLog(p);this.setState(p,({shadowCalls:f})=>{if(l||!d.length)return{playUntil:l};let h=f.findIndex(m=>m.id===d[0].callId);return{playUntil:f.slice(0,h).filter(m=>m.interceptable&&!m.ancestors?.length).slice(-1)[0]?.id}}),s.emit(Da,{storyId:p,isDebugging:!0})},r=s=>({storyId:p})=>{let l=this.getLog(p).filter(f=>!f.ancestors?.length),d=l.reduceRight((f,h,m)=>f>=0||h.status==="waiting"?f:m,-1);t(s)({storyId:p,playUntil:l[d-1]?.callId})},n=s=>({storyId:p,callId:l})=>{let{calls:d,shadowCalls:f,resolvers:h}=this.getState(p),m=d.find(({id:E})=>E===l),b=f.find(({id:E})=>E===l);if(!m&&b&&Object.values(h).length>0){let E=this.getLog(p).find(w=>w.status==="waiting")?.callId;b.id!==E&&this.setState(p,{playUntil:b.id}),Object.values(h).forEach(w=>w())}else t(s)({storyId:p,playUntil:l})},i=s=>({storyId:p})=>{let{resolvers:l}=this.getState(p);if(Object.values(l).length>0)Object.values(l).forEach(d=>d());else{let d=this.getLog(p).find(f=>f.status==="waiting")?.callId;d?t(s)({storyId:p,playUntil:d}):o({storyId:p})}},o=({storyId:s})=>{this.setState(s,{playUntil:void 0,isDebugging:!1}),Object.values(this.getState(s).resolvers).forEach(p=>p())},a=({storyId:s,newPhase:p})=>{let{isDebugging:l}=this.getState(s);if(p==="preparing"&&l)return e({storyId:s,renderPhase:p,isDebugging:l});if(p==="playing")return e({storyId:s,renderPhase:p,isDebugging:l});p==="played"?this.setState(s,{renderPhase:p,isLocked:!1,isPlaying:!1,isDebugging:!1}):p==="errored"?this.setState(s,{renderPhase:p,isLocked:!1,isPlaying:!1}):p==="aborted"?this.setState(s,{renderPhase:p,isLocked:!0,isPlaying:!1}):this.setState(s,{renderPhase:p}),this.sync(s)};Ks&&Ks.ready().then(()=>{this.channel=Ks.getChannel(),this.channel.on(Da,e),this.channel.on(Un,a),this.channel.on(ec,()=>{this.initialized?this.cleanup():this.initialized=!0}),this.channel.on(Vr.START,t(this.channel)),this.channel.on(Vr.BACK,r(this.channel)),this.channel.on(Vr.GOTO,n(this.channel)),this.channel.on(Vr.NEXT,i(this.channel)),this.channel.on(Vr.END,o)})}getState(e){return this.state[e]||Xs()}setState(e,t){if(e){let r=this.getState(e),n=typeof t=="function"?t(r):t;this.state={...this.state,[e]:{...r,...n}},this.updateParentWindowState()}}cleanup(){this.state=Object.entries(this.state).reduce((t,[r,n])=>{let i=sf(n);return i&&(t[r]=Object.assign(Xs(),i)),t},{});let e={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:[]};this.channel?.emit(Vr.SYNC,e),this.updateParentWindowState()}getLog(e){let{calls:t,shadowCalls:r}=this.getState(e),n=[...r];t.forEach((o,a)=>{n[a]=o});let i=new Set;return n.reduceRight((o,a)=>(a.args.forEach(s=>{s?.__callId__&&i.add(s.__callId__)}),a.path.forEach(s=>{s.__callId__&&i.add(s.__callId__)}),(a.interceptable||a.exception)&&!i.has(a.id)&&(o.unshift({callId:a.id,status:a.status,ancestors:a.ancestors}),i.add(a.id)),o),[])}instrument(e,t,r=0){if(!DF(e))return e;let{mutate:n=!1,path:i=[]}=t,o=t.getKeys?t.getKeys(e,r):Object.keys(e);return r+=1,o.reduce((a,s)=>{let p=OF(e,s);if(typeof p?.get=="function"){if(p.configurable){let d=()=>p?.get?.bind(e)?.();Object.defineProperty(a,s,{get:()=>this.instrument(d(),{...t,path:i.concat(s)},r)})}return a}let l=e[s];return typeof l!="function"?(a[s]=this.instrument(l,{...t,path:i.concat(s)},r),a):"__originalFn__"in l&&typeof l.__originalFn__=="function"?(a[s]=l,a):(a[s]=(...d)=>this.track(s,l,e,d,t),a[s].__originalFn__=l,Object.defineProperty(a[s],"name",{value:s,writable:!1}),Object.keys(l).length>0&&Object.assign(a[s],this.instrument({...l},{...t,path:i.concat(s)},r)),a)},n?e:RF(e))}track(e,t,r,n,i){let o=n?.[0]?.__storyId__||we.__STORYBOOK_PREVIEW__?.selectionStore?.selection?.storyId,{cursor:a,ancestors:s}=this.getState(o);this.setState(o,{cursor:a+1});let p=`${s.slice(-1)[0]||o} [${a}] ${e}`,{path:l=[],intercept:d=!1,retain:f=!1}=i,h=typeof d=="function"?d(e,l):d,m={id:p,cursor:a,storyId:o,ancestors:s,path:l,method:e,args:n,interceptable:h,retain:f},b=(h&&!s.length?this.intercept:this.invoke).call(this,t,r,m,i);return this.instrument(b,{...i,mutate:!0,path:[{__callId__:m.id}]})}intercept(e,t,r,n){let{chainedCallIds:i,isDebugging:o,playUntil:a}=this.getState(r.storyId),s=i.has(r.id);return!o||s||a?(a===r.id&&this.setState(r.storyId,{playUntil:void 0}),this.invoke(e,t,r,n)):new Promise(p=>{this.setState(r.storyId,({resolvers:l})=>({isLocked:!1,resolvers:{...l,[r.id]:p}}))}).then(()=>(this.setState(r.storyId,p=>{let{[r.id]:l,...d}=p.resolvers;return{isLocked:!0,resolvers:d}}),this.invoke(e,t,r,n)))}invoke(e,t,r,n){let{callRefsByResult:i,renderPhase:o}=this.getState(r.storyId),a=25,s=(d,f,h)=>{if(h.includes(d))return"[Circular]";if(h=[...h,d],f>a)return"...";if(i.has(d))return i.get(d);if(d instanceof Array)return d.map(m=>s(m,++f,h));if(d instanceof Date)return{__date__:{value:d.toISOString()}};if(d instanceof Error){let{name:m,message:b,stack:E}=d;return{__error__:{name:m,message:b,stack:E}}}if(d instanceof RegExp){let{flags:m,source:b}=d;return{__regexp__:{flags:m,source:b}}}if(d instanceof we.window?.HTMLElement){let{prefix:m,localName:b,id:E,classList:w,innerText:A}=d,S=Array.from(w);return{__element__:{prefix:m,localName:b,id:E,classNames:S,innerText:A}}}return typeof d=="function"?{__function__:{name:"getMockName"in d?d.getMockName():d.name}}:typeof d=="symbol"?{__symbol__:{description:d.description}}:typeof d=="object"&&d?.constructor?.name&&d?.constructor?.name!=="Object"?{__class__:{name:d.constructor.name}}:Object.prototype.toString.call(d)==="[object Object]"?Object.fromEntries(Object.entries(d).map(([m,b])=>[m,s(b,++f,h)])):d},p={...r,args:r.args.map(d=>s(d,0,[]))};r.path.forEach(d=>{d?.__callId__&&this.setState(r.storyId,({chainedCallIds:f})=>({chainedCallIds:new Set(Array.from(f).concat(d.__callId__))}))});let l=d=>{if(d instanceof Error){let{name:f,message:h,stack:m,callId:b=r.id}=d,{showDiff:E=void 0,diff:w=void 0,actual:A=void 0,expected:S=void 0}=d.name==="AssertionError"?Rc(d):d,k={name:f,message:h,stack:m,callId:b,showDiff:E,diff:w,actual:A,expected:S};if(this.update({...p,status:"error",exception:k}),this.setState(r.storyId,O=>({callRefsByResult:new Map([...Array.from(O.callRefsByResult.entries()),[d,{__callId__:r.id,retain:r.retain}]])})),r.ancestors?.length)throw Object.prototype.hasOwnProperty.call(d,"callId")||Object.defineProperty(d,"callId",{value:r.id}),d}throw d};try{if(o==="played"&&!r.retain)throw SF;let d=(n.getArgs?n.getArgs(r,this.getState(r.storyId)):r.args).map(h=>typeof h!="function"||FF(h)||Object.keys(h).length?h:(...m)=>{let{cursor:b,ancestors:E}=this.getState(r.storyId);this.setState(r.storyId,{cursor:0,ancestors:[...E,r.id]});let w=()=>this.setState(r.storyId,{cursor:b,ancestors:E}),A=!1;try{let S=h(...m);return S instanceof Promise?(A=!0,S.finally(w)):S}finally{A||w()}}),f=e.apply(t,d);return f&&["object","function","symbol"].includes(typeof f)&&this.setState(r.storyId,h=>({callRefsByResult:new Map([...Array.from(h.callRefsByResult.entries()),[f,{__callId__:r.id,retain:r.retain}]])})),this.update({...p,status:f instanceof Promise?"active":"done"}),f instanceof Promise?f.then(h=>(this.update({...p,status:"done"}),h),l):f}catch(d){return l(d)}}update(e){this.channel?.emit(Vr.CALL,e),this.setState(e.storyId,({calls:t})=>{let r=t.concat(e).reduce((n,i)=>Object.assign(n,{[i.id]:i}),{});return{calls:Object.values(r).sort((n,i)=>n.id.localeCompare(i.id,void 0,{numeric:!0}))}}),this.sync(e.storyId)}sync(e){let t=()=>{let{isLocked:r,isPlaying:n}=this.getState(e),i=this.getLog(e),o=i.filter(({ancestors:l})=>!l.length).find(l=>l.status==="waiting")?.callId,a=i.some(l=>l.status==="active");if(this.detached||r||a||i.length===0){let l={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:i};this.channel?.emit(Vr.SYNC,l);return}let s=i.some(l=>l.status==="done"||l.status==="error"),p={controlStates:{detached:this.detached,start:s,back:s,goto:!0,next:n,end:n},logItems:i,pausedAt:o};this.channel?.emit(Vr.SYNC,p)};this.setState(e,({syncTimeout:r})=>(clearTimeout(r),{syncTimeout:setTimeout(t,0)}))}};function Mo(e,t={}){try{let r=!1,n=!1;return we.window?.location?.search?.includes("instrument=true")?r=!0:we.window?.location?.search?.includes("instrument=false")&&(n=!0),we.window?.parent===we.window&&!r||n?e:(we.window&&!we.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__&&(we.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__=new PF),(we.window?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(e,t))}catch(r){return Rt.warn(r),e}}function OF(e,t){let r=e;for(;r!=null;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function FF(e){if(typeof e!="function")return!1;let t=Object.getOwnPropertyDescriptor(e,"prototype");return t?!t.writable:!1}var lb=Object.defineProperty,re=(e,t)=>lb(e,"name",{value:t,configurable:!0}),Pc=(e,t)=>{for(var r in t)lb(e,r,{get:t[r],enumerable:!0})},Fr={};Pc(Fr,{addChainableMethod:()=>$c,addLengthGuard:()=>Lo,addMethod:()=>jc,addProperty:()=>qc,checkError:()=>or,compareByInspect:()=>Ba,eql:()=>kb,expectTypes:()=>yb,flag:()=>Je,getActual:()=>fs,getMessage:()=>Nc,getName:()=>ms,getOperator:()=>Gc,getOwnEnumerableProperties:()=>Hc,getOwnEnumerablePropertySymbols:()=>Jc,getPathInfo:()=>Mc,hasProperty:()=>hs,inspect:()=>Ze,isNaN:()=>ka,isNumeric:()=>Vt,isProxyEnabled:()=>jo,isRegExp:()=>Ma,objDisplay:()=>jn,overwriteChainableMethod:()=>Uc,overwriteMethod:()=>Vc,overwriteProperty:()=>Lc,proxify:()=>Bi,test:()=>Oc,transferFlags:()=>Sr,type:()=>lt});var or={};Pc(or,{compatibleConstructor:()=>db,compatibleInstance:()=>pb,compatibleMessage:()=>fb,getConstructorName:()=>hb,getMessage:()=>mb});function ds(e){return e instanceof Error||Object.prototype.toString.call(e)==="[object Error]"}re(ds,"isErrorInstance");function cb(e){return Object.prototype.toString.call(e)==="[object RegExp]"}re(cb,"isRegExp");function pb(e,t){return ds(t)&&e===t}re(pb,"compatibleInstance");function db(e,t){return ds(t)?e.constructor===t.constructor||e instanceof t.constructor:(typeof t=="object"||typeof t=="function")&&t.prototype?e.constructor===t||e instanceof t:!1}re(db,"compatibleConstructor");function fb(e,t){let r=typeof e=="string"?e:e.message;return cb(t)?t.test(r):typeof t=="string"?r.indexOf(t)!==-1:!1}re(fb,"compatibleMessage");function hb(e){let t=e;return ds(e)?t=e.constructor.name:typeof e=="function"&&(t=e.name,t===""&&(t=new e().name||t)),t}re(hb,"getConstructorName");function mb(e){let t="";return e&&e.message?t=e.message:typeof e=="string"&&(t=e),t}re(mb,"getMessage");function Je(e,t,r){let n=e.__flags||(e.__flags=Object.create(null));if(arguments.length===3)n[t]=r;else return n[t]}re(Je,"flag");function Oc(e,t){let r=Je(e,"negate"),n=t[0];return r?!n:n}re(Oc,"test");function lt(e){if(typeof e>"u")return"undefined";if(e===null)return"null";let t=e[Symbol.toStringTag];return typeof t=="string"?t:Object.prototype.toString.call(e).slice(8,-1)}re(lt,"type");var NF="captureStackTrace"in Error,na,tt=(na=class extends Error{message;get name(){return"AssertionError"}get ok(){return!1}constructor(e="Unspecified AssertionError",t,r){super(e),this.message=e,NF&&Error.captureStackTrace(this,r||na);for(let 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}}},re(na,"AssertionError"),na);function yb(e,t){let r=Je(e,"message"),n=Je(e,"ssfi");r=r?r+": ":"",e=Je(e,"object"),t=t.map(function(a){return a.toLowerCase()}),t.sort();let i=t.map(function(a,s){let p=~["a","e","i","o","u"].indexOf(a.charAt(0))?"an":"a";return(t.length>1&&s===t.length-1?"or ":"")+p+" "+a}).join(", "),o=lt(e).toLowerCase();if(!t.some(function(a){return o===a}))throw new tt(r+"object tested must be "+i+", but "+o+" given",void 0,n)}re(yb,"expectTypes");function fs(e,t){return t.length>4?t[4]:e._obj}re(fs,"getActual");var uf={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"]},IF={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},bi="…";function gb(e,t){let r=uf[IF[t]]||uf[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}re(gb,"colorise");function bb({showHidden:e=!1,depth:t=2,colors:r=!1,customInspect:n=!0,showProxy:i=!1,maxArrayLength:o=1/0,breakLength:a=1/0,seen:s=[],truncate:p=1/0,stylize:l=String}={},d){let f={showHidden:!!e,depth:Number(t),colors:!!r,customInspect:!!n,showProxy:!!i,maxArrayLength:Number(o),breakLength:Number(a),truncate:Number(p),seen:s,inspect:d,stylize:l};return f.colors&&(f.stylize=gb),f}re(bb,"normaliseOptions");function Eb(e){return e>="\uD800"&&e<="\uDBFF"}re(Eb,"isHighSurrogate");function Qr(e,t,r=bi){e=String(e);let n=r.length,i=e.length;if(n>t&&i>n)return r;if(i>t&&i>n){let o=t-n;return o>0&&Eb(e[o-1])&&(o=o-1),`${e.slice(0,o)}${r}`}return e}re(Qr,"truncate");function gr(e,t,r,n=", "){r=r||t.inspect;let i=e.length;if(i===0)return"";let o=t.truncate,a="",s="",p="";for(let l=0;l<i;l+=1){let d=l+1===e.length,f=l+2===e.length;p=`${bi}(${e.length-l})`;let h=e[l];t.truncate=o-a.length-(d?0:n.length);let m=s||r(h,t)+(d?"":n),b=a.length+m.length,E=b+p.length;if(d&&b>o&&a.length+p.length<=o||!d&&!f&&E>o||(s=d?"":r(e[l+1],t)+(f?"":n),!d&&f&&E>o&&b+s.length>o))break;if(a+=m,!d&&!f&&b+s.length>=o){p=`${bi}(${e.length-l-1})`;break}p=""}return`${a}${p}`}re(gr,"inspectList");function vb(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}re(vb,"quoteComplexKey");function Ei([e,t],r){return r.truncate-=2,typeof e=="string"?e=vb(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}re(Ei,"inspectProperty");function Ab(e,t){let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return"[]";t.truncate-=4;let n=gr(e,t);t.truncate-=n.length;let i="";return r.length&&(i=gr(r.map(o=>[o,e[o]]),t,Ei)),`[ ${n}${i?`, ${i}`:""} ]`}re(Ab,"inspectArray");var BF=re(e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,"getArrayName");function Rr(e,t){let r=BF(e);t.truncate-=r.length+4;let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return`${r}[]`;let i="";for(let a=0;a<e.length;a++){let s=`${t.stylize(Qr(e[a],t.truncate),"number")}${a===e.length-1?"":", "}`;if(t.truncate-=s.length,e[a]!==e.length&&t.truncate<=3){i+=`${bi}(${e.length-e[a]+1})`;break}i+=s}let o="";return n.length&&(o=gr(n.map(a=>[a,e[a]]),t,Ei)),`${r}[ ${i}${o?`, ${o}`:""} ]`}re(Rr,"inspectTypedArray");function wb(e,t){let r=e.toJSON();if(r===null)return"Invalid Date";let n=r.split("T"),i=n[0];return t.stylize(`${i}T${Qr(n[1],t.truncate-i.length-1)}`,"date")}re(wb,"inspectDate");function Bu(e,t){let r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${Qr(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}re(Bu,"inspectFunction");function Cb([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}re(Cb,"inspectMapEntry");function _b(e){let t=[];return e.forEach((r,n)=>{t.push([n,r])}),t}re(_b,"mapToEntries");function Tb(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${gr(_b(e),t,Cb)} }`)}re(Tb,"inspectMap");var kF=Number.isNaN||(e=>e!==e);function ku(e,t){return kF(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(Qr(String(e),t.truncate),"number")}re(ku,"inspectNumber");function Mu(e,t){let r=Qr(e.toString(),t.truncate-1);return r!==bi&&(r+="n"),t.stylize(r,"bigint")}re(Mu,"inspectBigInt");function Sb(e,t){let r=e.toString().split("/")[2],n=t.truncate-(2+r.length),i=e.source;return t.stylize(`/${Qr(i,n)}/${r}`,"regexp")}re(Sb,"inspectRegExp");function xb(e){let t=[];return e.forEach(r=>{t.push(r)}),t}re(xb,"arrayFromSet");function Db(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${gr(xb(e),t)} }`)}re(Db,"inspectSet");var lf=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),MF={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},qF=16;function Rb(e){return MF[e]||`\\u${`0000${e.charCodeAt(0).toString(qF)}`.slice(-4)}`}re(Rb,"escape");function qu(e,t){return lf.test(e)&&(e=e.replace(lf,Rb)),t.stylize(`'${Qr(e,t.truncate-2)}'`,"string")}re(qu,"inspectString");function ju(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}re(ju,"inspectSymbol");var jF=re(()=>"Promise{…}","getPromiseValue"),LF=jF;function ro(e,t){let 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);let i=gr(r.map(s=>[s,e[s]]),t,Ei),o=gr(n.map(s=>[s,e[s]]),t,Ei);t.seen.pop();let a="";return i&&o&&(a=", "),`{ ${i}${a}${o} }`}re(ro,"inspectObject");var Qs=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function Pb(e,t){let r="";return Qs&&Qs in e&&(r=e[Qs]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${ro(e,t)}`}re(Pb,"inspectClass");function Ob(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${gr(e,t)} ]`)}re(Ob,"inspectArguments");var VF=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function Fb(e,t){let r=Object.getOwnPropertyNames(e).filter(a=>VF.indexOf(a)===-1),n=e.name;t.truncate-=n.length;let i="";if(typeof e.message=="string"?i=Qr(e.message,t.truncate):r.unshift("message"),i=i?`: ${i}`:"",t.truncate-=i.length+5,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let o=gr(r.map(a=>[a,e[a]]),t,Ei);return`${n}${i}${o?` { ${o} }`:""}`}re(Fb,"inspectObject");function Nb([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}re(Nb,"inspectAttribute");function Fa(e,t){return gr(e,t,Ib,`
|
|
208
|
+
`)}re(Fa,"inspectNodeCollection");function Ib(e,t){switch(e.nodeType){case 1:return Fc(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}re(Ib,"inspectNode");function Fc(e,t){let r=e.getAttributeNames(),n=e.tagName.toLowerCase(),i=t.stylize(`<${n}`,"special"),o=t.stylize(">","special"),a=t.stylize(`</${n}>`,"special");t.truncate-=n.length*2+5;let s="";r.length>0&&(s+=" ",s+=gr(r.map(d=>[d,e.getAttribute(d)]),t,Nb," ")),t.truncate-=s.length;let p=t.truncate,l=Fa(e.children,t);return l&&l.length>p&&(l=`${bi}(${e.children.length})`),`${i}${s}${o}${l}${a}`}re(Fc,"inspectHTML");var $F=typeof Symbol=="function"&&typeof Symbol.for=="function",Zs=$F?Symbol.for("chai/inspect"):"@@chai/inspect",eu=Symbol.for("nodejs.util.inspect.custom"),cf=new WeakMap,pf={},df={undefined:re((e,t)=>t.stylize("undefined","undefined"),"undefined"),null:re((e,t)=>t.stylize("null","null"),"null"),boolean:re((e,t)=>t.stylize(String(e),"boolean"),"boolean"),Boolean:re((e,t)=>t.stylize(String(e),"boolean"),"Boolean"),number:ku,Number:ku,bigint:Mu,BigInt:Mu,string:qu,String:qu,function:Bu,Function:Bu,symbol:ju,Symbol:ju,Array:Ab,Date:wb,Map:Tb,Set:Db,RegExp:Sb,Promise:LF,WeakSet:re((e,t)=>t.stylize("WeakSet{…}","special"),"WeakSet"),WeakMap:re((e,t)=>t.stylize("WeakMap{…}","special"),"WeakMap"),Arguments:Ob,Int8Array:Rr,Uint8Array:Rr,Uint8ClampedArray:Rr,Int16Array:Rr,Uint16Array:Rr,Int32Array:Rr,Uint32Array:Rr,Float32Array:Rr,Float64Array:Rr,Generator:re(()=>"","Generator"),DataView:re(()=>"","DataView"),ArrayBuffer:re(()=>"","ArrayBuffer"),Error:Fb,HTMLCollection:Fa,NodeList:Fa},UF=re((e,t,r)=>Zs in e&&typeof e[Zs]=="function"?e[Zs](t):eu in e&&typeof e[eu]=="function"?e[eu](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&cf.has(e.constructor)?cf.get(e.constructor)(e,t):pf[r]?pf[r](e,t):"","inspectCustom"),JF=Object.prototype.toString;function Na(e,t={}){let r=bb(t,Na),{customInspect:n}=r,i=e===null?"null":typeof e;if(i==="object"&&(i=JF.call(e).slice(8,-1)),i in df)return df[i](e,r);if(n&&e){let a=UF(e,r,i);if(a)return typeof a=="string"?a:Na(a,r)}let o=e?Object.getPrototypeOf(e):!1;return o===Object.prototype||o===null?ro(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?Fc(e,r):"constructor"in e?e.constructor!==Object?Pb(e,r):ro(e,r):e===Object(e)?ro(e,r):r.stylize(String(e),i)}re(Na,"inspect");var Qt={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:["then","catch","inspect","toJSON"],deepEqual:null};function Ze(e,t,r,n){let i={colors:n,depth:typeof r>"u"?2:r,showHidden:t,truncate:Qt.truncateThreshold?Qt.truncateThreshold:1/0};return Na(e,i)}re(Ze,"inspect");function jn(e){let t=Ze(e),r=Object.prototype.toString.call(e);if(Qt.truncateThreshold&&t.length>=Qt.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}re(jn,"objDisplay");function Nc(e,t){let r=Je(e,"negate"),n=Je(e,"object"),i=t[3],o=fs(e,t),a=r?t[2]:t[1],s=Je(e,"message");return typeof a=="function"&&(a=a()),a=a||"",a=a.replace(/#\{this\}/g,function(){return jn(n)}).replace(/#\{act\}/g,function(){return jn(o)}).replace(/#\{exp\}/g,function(){return jn(i)}),s?s+": "+a:a}re(Nc,"getMessage");function Sr(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 i in n)(r||i!=="object"&&i!=="ssfi"&&i!=="lockSsfi"&&i!="message")&&(t.__flags[i]=n[i])}re(Sr,"transferFlags");function Lu(e){if(typeof e>"u")return"undefined";if(e===null)return"null";let t=e[Symbol.toStringTag];return typeof t=="string"?t:Object.prototype.toString.call(e).slice(8,-1)}re(Lu,"type");function Ic(){this._key="chai/deep-eql__"+Math.random()+Date.now()}re(Ic,"FakeMap");Ic.prototype={get:re(function(e){return e[this._key]},"get"),set:re(function(e,t){Object.isExtensible(e)&&Object.defineProperty(e,this._key,{value:t,configurable:!0})},"set")};var Bb=typeof WeakMap=="function"?WeakMap:Ic;function Vu(e,t,r){if(!r||Hn(e)||Hn(t))return null;var n=r.get(e);if(n){var i=n.get(t);if(typeof i=="boolean")return i}return null}re(Vu,"memoizeCompare");function Ki(e,t,r,n){if(!(!r||Hn(e)||Hn(t))){var i=r.get(e);i?i.set(t,n):(i=new Bb,i.set(t,n),r.set(e,i))}}re(Ki,"memoizeSet");var kb=qo;function qo(e,t,r){if(r&&r.comparator)return $u(e,t,r);var n=Bc(e,t);return n!==null?n:$u(e,t,r)}re(qo,"deepEqual");function Bc(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t?!0:Hn(e)||Hn(t)?!1:null}re(Bc,"simpleEqual");function $u(e,t,r){r=r||{},r.memoize=r.memoize===!1?!1:r.memoize||new Bb;var n=r&&r.comparator,i=Vu(e,t,r.memoize);if(i!==null)return i;var o=Vu(t,e,r.memoize);if(o!==null)return o;if(n){var a=n(e,t);if(a===!1||a===!0)return Ki(e,t,r.memoize,a),a;var s=Bc(e,t);if(s!==null)return s}var p=Lu(e);if(p!==Lu(t))return Ki(e,t,r.memoize,!1),!1;Ki(e,t,r.memoize,!0);var l=Mb(e,t,p,r);return Ki(e,t,r.memoize,l),l}re($u,"extensiveDeepEqual");function Mb(e,t,r,n){switch(r){case"String":case"Number":case"Boolean":case"Date":return qo(e.valueOf(),t.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":return e===t;case"Error":return kc(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 gn(e,t,n);case"RegExp":return qb(e,t);case"Generator":return jb(e,t,n);case"DataView":return gn(new Uint8Array(e.buffer),new Uint8Array(t.buffer),n);case"ArrayBuffer":return gn(new Uint8Array(e),new Uint8Array(t),n);case"Set":return Uu(e,t,n);case"Map":return Uu(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 Vb(e,t,n)}}re(Mb,"extensiveDeepEqualByType");function qb(e,t){return e.toString()===t.toString()}re(qb,"regexpEqual");function Uu(e,t,r){try{if(e.size!==t.size)return!1;if(e.size===0)return!0}catch{return!1}var n=[],i=[];return e.forEach(re(function(o,a){n.push([o,a])},"gatherEntries")),t.forEach(re(function(o,a){i.push([o,a])},"gatherEntries")),gn(n.sort(),i.sort(),r)}re(Uu,"entriesEqual");function gn(e,t,r){var n=e.length;if(n!==t.length)return!1;if(n===0)return!0;for(var i=-1;++i<n;)if(qo(e[i],t[i],r)===!1)return!1;return!0}re(gn,"iterableEqual");function jb(e,t,r){return gn(Ia(e),Ia(t),r)}re(jb,"generatorEqual");function Lb(e){return typeof Symbol<"u"&&typeof e=="object"&&typeof Symbol.iterator<"u"&&typeof e[Symbol.iterator]=="function"}re(Lb,"hasIteratorFunction");function Ju(e){if(Lb(e))try{return Ia(e[Symbol.iterator]())}catch{return[]}return[]}re(Ju,"getIteratorEntries");function Ia(e){for(var t=e.next(),r=[t.value];t.done===!1;)t=e.next(),r.push(t.value);return r}re(Ia,"getGeneratorEntries");function Hu(e){var t=[];for(var r in e)t.push(r);return t}re(Hu,"getEnumerableKeys");function Gu(e){for(var t=[],r=Object.getOwnPropertySymbols(e),n=0;n<r.length;n+=1){var i=r[n];Object.getOwnPropertyDescriptor(e,i).enumerable&&t.push(i)}return t}re(Gu,"getEnumerableSymbols");function kc(e,t,r,n){var i=r.length;if(i===0)return!0;for(var o=0;o<i;o+=1)if(qo(e[r[o]],t[r[o]],n)===!1)return!1;return!0}re(kc,"keysEqual");function Vb(e,t,r){var n=Hu(e),i=Hu(t),o=Gu(e),a=Gu(t);if(n=n.concat(o),i=i.concat(a),n.length&&n.length===i.length)return gn(zu(n).sort(),zu(i).sort())===!1?!1:kc(e,t,n,r);var s=Ju(e),p=Ju(t);return s.length&&s.length===p.length?(s.sort(),p.sort(),gn(s,p,r)):n.length===0&&s.length===0&&i.length===0&&p.length===0}re(Vb,"objectEqual");function Hn(e){return e===null||typeof e!="object"}re(Hn,"isPrimitive");function zu(e){return e.map(re(function(t){return typeof t=="symbol"?t.toString():t},"mapSymbol"))}re(zu,"mapSymbols");function hs(e,t){return typeof e>"u"||e===null?!1:t in Object(e)}re(hs,"hasProperty");function $b(e){return e.replace(/([^\\])\[/g,"$1.[").match(/(\\\.|[^.]+?)+/g).map(t=>{if(t==="constructor"||t==="__proto__"||t==="prototype")return{};let r=/^\[(\d+)\]$/.exec(t),n=null;return r?n={i:parseFloat(r[1])}:n={p:t.replace(/\\([.[\]])/g,"$1")},n})}re($b,"parsePath");function Wu(e,t,r){let n=e,i=null;r=typeof r>"u"?t.length:r;for(let o=0;o<r;o++){let a=t[o];n&&(typeof a.p>"u"?n=n[a.i]:n=n[a.p],o===r-1&&(i=n))}return i}re(Wu,"internalGetPathValue");function Mc(e,t){let r=$b(t),n=r[r.length-1],i={parent:r.length>1?Wu(e,r,r.length-1):e,name:n.p||n.i,value:Wu(e,r)};return i.exists=hs(i.parent,i.name),i}re(Mc,"getPathInfo");var ia,H=(ia=class{__flags={};constructor(e,t,r,n){return Je(this,"ssfi",r||ia),Je(this,"lockSsfi",n),Je(this,"object",e),Je(this,"message",t),Je(this,"eql",Qt.deepEqual||kb),Bi(this)}static get includeStack(){return console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),Qt.includeStack}static set includeStack(e){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),Qt.includeStack=e}static get showDiff(){return console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),Qt.showDiff}static set showDiff(e){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),Qt.showDiff=e}static addProperty(e,t){qc(this.prototype,e,t)}static addMethod(e,t){jc(this.prototype,e,t)}static addChainableMethod(e,t,r){$c(this.prototype,e,t,r)}static overwriteProperty(e,t){Lc(this.prototype,e,t)}static overwriteMethod(e,t){Vc(this.prototype,e,t)}static overwriteChainableMethod(e,t,r){Uc(this.prototype,e,t,r)}assert(e,t,r,n,i,o){let a=Oc(this,arguments);if(o!==!1&&(o=!0),n===void 0&&i===void 0&&(o=!1),Qt.showDiff!==!0&&(o=!1),!a){t=Nc(this,arguments);let s={actual:fs(this,arguments),expected:n,showDiff:o},p=Gc(this,arguments);throw p&&(s.operator=p),new tt(t,s,Qt.includeStack?this.assert:Je(this,"ssfi"))}}get _obj(){return Je(this,"object")}set _obj(e){Je(this,"object",e)}},re(ia,"Assertion"),ia);function jo(){return Qt.useProxy&&typeof Proxy<"u"&&typeof Reflect<"u"}re(jo,"isProxyEnabled");function qc(e,t,r){r=r===void 0?function(){}:r,Object.defineProperty(e,t,{get:re(function n(){!jo()&&!Je(this,"lockSsfi")&&Je(this,"ssfi",n);let i=r.call(this);if(i!==void 0)return i;let o=new H;return Sr(this,o),o},"propertyGetter"),configurable:!0})}re(qc,"addProperty");var HF=Object.getOwnPropertyDescriptor(function(){},"length");function Lo(e,t,r){return HF.configurable&&Object.defineProperty(e,"length",{get:re(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}re(Lo,"addLengthGuard");function Ub(e){let t=Object.getOwnPropertyNames(e);function r(i){t.indexOf(i)===-1&&t.push(i)}re(r,"addProperty");let n=Object.getPrototypeOf(e);for(;n!==null;)Object.getOwnPropertyNames(n).forEach(r),n=Object.getPrototypeOf(n);return t}re(Ub,"getProperties");var ff=["__flags","__methods","_obj","assert"];function Bi(e,t){return jo()?new Proxy(e,{get:re(function r(n,i){if(typeof i=="string"&&Qt.proxyExcludedKeys.indexOf(i)===-1&&!Reflect.has(n,i)){if(t)throw Error("Invalid Chai property: "+t+"."+i+'. See docs for proper usage of "'+t+'".');let o=null,a=4;throw Ub(n).forEach(function(s){if(!Object.prototype.hasOwnProperty(s)&&ff.indexOf(s)===-1){let p=Jb(i,s,a);p<a&&(o=s,a=p)}}),Error(o!==null?"Invalid Chai property: "+i+'. Did you mean "'+o+'"?':"Invalid Chai property: "+i)}return ff.indexOf(i)===-1&&!Je(n,"lockSsfi")&&Je(n,"ssfi",r),Reflect.get(n,i)},"proxyGetter")}):e}re(Bi,"proxify");function Jb(e,t,r){if(Math.abs(e.length-t.length)>=r)return r;let n=[];for(let i=0;i<=e.length;i++)n[i]=Array(t.length+1).fill(0),n[i][0]=i;for(let i=0;i<t.length;i++)n[0][i]=i;for(let i=1;i<=e.length;i++){let o=e.charCodeAt(i-1);for(let a=1;a<=t.length;a++){if(Math.abs(i-a)>=r){n[i][a]=r;continue}n[i][a]=Math.min(n[i-1][a]+1,n[i][a-1]+1,n[i-1][a-1]+(o===t.charCodeAt(a-1)?0:1))}}return n[e.length][t.length]}re(Jb,"stringDistanceCapped");function jc(e,t,r){let n=re(function(){Je(this,"lockSsfi")||Je(this,"ssfi",n);let i=r.apply(this,arguments);if(i!==void 0)return i;let o=new H;return Sr(this,o),o},"methodWrapper");Lo(n,t,!1),e[t]=Bi(n,t)}re(jc,"addMethod");function Lc(e,t,r){let n=Object.getOwnPropertyDescriptor(e,t),i=re(function(){},"_super");n&&typeof n.get=="function"&&(i=n.get),Object.defineProperty(e,t,{get:re(function o(){!jo()&&!Je(this,"lockSsfi")&&Je(this,"ssfi",o);let a=Je(this,"lockSsfi");Je(this,"lockSsfi",!0);let s=r(i).call(this);if(Je(this,"lockSsfi",a),s!==void 0)return s;let p=new H;return Sr(this,p),p},"overwritingPropertyGetter"),configurable:!0})}re(Lc,"overwriteProperty");function Vc(e,t,r){let n=e[t],i=re(function(){throw new Error(t+" is not a function")},"_super");n&&typeof n=="function"&&(i=n);let o=re(function(){Je(this,"lockSsfi")||Je(this,"ssfi",o);let a=Je(this,"lockSsfi");Je(this,"lockSsfi",!0);let s=r(i).apply(this,arguments);if(Je(this,"lockSsfi",a),s!==void 0)return s;let p=new H;return Sr(this,p),p},"overwritingMethodWrapper");Lo(o,t,!1),e[t]=Bi(o,t)}re(Vc,"overwriteMethod");var GF=typeof Object.setPrototypeOf=="function",hf=re(function(){},"testFn"),zF=Object.getOwnPropertyNames(hf).filter(function(e){let t=Object.getOwnPropertyDescriptor(hf,e);return typeof t!="object"?!0:!t.configurable}),WF=Function.prototype.call,YF=Function.prototype.apply;function $c(e,t,r,n){typeof n!="function"&&(n=re(function(){},"chainingBehavior"));let i={method:r,chainingBehavior:n};e.__methods||(e.__methods={}),e.__methods[t]=i,Object.defineProperty(e,t,{get:re(function(){i.chainingBehavior.call(this);let o=re(function(){Je(this,"lockSsfi")||Je(this,"ssfi",o);let a=i.method.apply(this,arguments);if(a!==void 0)return a;let s=new H;return Sr(this,s),s},"chainableMethodWrapper");if(Lo(o,t,!0),GF){let a=Object.create(this);a.call=WF,a.apply=YF,Object.setPrototypeOf(o,a)}else Object.getOwnPropertyNames(e).forEach(function(a){if(zF.indexOf(a)!==-1)return;let s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(o,a,s)});return Sr(this,o),Bi(o)},"chainableMethodGetter"),configurable:!0})}re($c,"addChainableMethod");function Uc(e,t,r,n){let i=e.__methods[t],o=i.chainingBehavior;i.chainingBehavior=re(function(){let s=n(o).call(this);if(s!==void 0)return s;let p=new H;return Sr(this,p),p},"overwritingChainableMethodGetter");let a=i.method;i.method=re(function(){let s=r(a).apply(this,arguments);if(s!==void 0)return s;let p=new H;return Sr(this,p),p},"overwritingChainableMethodWrapper")}re(Uc,"overwriteChainableMethod");function Ba(e,t){return Ze(e)<Ze(t)?-1:1}re(Ba,"compareByInspect");function Jc(e){return typeof Object.getOwnPropertySymbols!="function"?[]:Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})}re(Jc,"getOwnEnumerablePropertySymbols");function Hc(e){return Object.keys(e).concat(Jc(e))}re(Hc,"getOwnEnumerableProperties");var ka=Number.isNaN;function Hb(e){let t=lt(e);return["Array","Object","Function"].indexOf(t)!==-1}re(Hb,"isObjectType");function Gc(e,t){let r=Je(e,"operator"),n=Je(e,"negate"),i=t[3],o=n?t[2]:t[1];if(r)return r;if(typeof o=="function"&&(o=o()),o=o||"",!o||/\shave\s/.test(o))return;let a=Hb(i);return/\snot\s/.test(o)?a?"notDeepStrictEqual":"notStrictEqual":a?"deepStrictEqual":"strictEqual"}re(Gc,"getOperator");function ms(e){return e.name}re(ms,"getName");function Ma(e){return Object.prototype.toString.call(e)==="[object RegExp]"}re(Ma,"isRegExp");function Vt(e){return["Number","BigInt"].includes(lt(e))}re(Vt,"isNumeric");var{flag:te}=Fr;["to","be","been","is","and","has","have","with","that","which","at","of","same","but","does","still","also"].forEach(function(e){H.addProperty(e)});H.addProperty("not",function(){te(this,"negate",!0)});H.addProperty("deep",function(){te(this,"deep",!0)});H.addProperty("nested",function(){te(this,"nested",!0)});H.addProperty("own",function(){te(this,"own",!0)});H.addProperty("ordered",function(){te(this,"ordered",!0)});H.addProperty("any",function(){te(this,"any",!0),te(this,"all",!1)});H.addProperty("all",function(){te(this,"all",!0),te(this,"any",!1)});var mf={function:["function","asyncfunction","generatorfunction","asyncgeneratorfunction"],asyncfunction:["asyncfunction","asyncgeneratorfunction"],generatorfunction:["generatorfunction","asyncgeneratorfunction"],asyncgeneratorfunction:["asyncgeneratorfunction"]};function zc(e,t){t&&te(this,"message",t),e=e.toLowerCase();let r=te(this,"object"),n=~["a","e","i","o","u"].indexOf(e.charAt(0))?"an ":"a ",i=lt(r).toLowerCase();mf.function.includes(e)?this.assert(mf[e].includes(i),"expected #{this} to be "+n+e,"expected #{this} not to be "+n+e):this.assert(e===i,"expected #{this} to be "+n+e,"expected #{this} not to be "+n+e)}re(zc,"an");H.addChainableMethod("an",zc);H.addChainableMethod("a",zc);function Gb(e,t){return ka(e)&&ka(t)||e===t}re(Gb,"SameValueZero");function Vo(){te(this,"contains",!0)}re(Vo,"includeChainingBehavior");function $o(e,t){t&&te(this,"message",t);let r=te(this,"object"),n=lt(r).toLowerCase(),i=te(this,"message"),o=te(this,"negate"),a=te(this,"ssfi"),s=te(this,"deep"),p=s?"deep ":"",l=s?te(this,"eql"):Gb;i=i?i+": ":"";let d=!1;switch(n){case"string":d=r.indexOf(e)!==-1;break;case"weakset":if(s)throw new tt(i+"unable to use .deep.include with WeakSet",void 0,a);d=r.has(e);break;case"map":r.forEach(function(f){d=d||l(f,e)});break;case"set":s?r.forEach(function(f){d=d||l(f,e)}):d=r.has(e);break;case"array":s?d=r.some(function(f){return l(f,e)}):d=r.indexOf(e)!==-1;break;default:{if(e!==Object(e))throw new tt(i+"the given combination of arguments ("+n+" and "+lt(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 "+lt(e).toLowerCase(),void 0,a);let f=Object.keys(e),h=null,m=0;if(f.forEach(function(b){let E=new H(r);if(Sr(this,E,!0),te(E,"lockSsfi",!0),!o||f.length===1){E.property(b,e[b]);return}try{E.property(b,e[b])}catch(w){if(!or.compatibleConstructor(w,tt))throw w;h===null&&(h=w),m++}},this),o&&f.length>1&&m===f.length)throw h;return}}this.assert(d,"expected #{this} to "+p+"include "+Ze(e),"expected #{this} to not "+p+"include "+Ze(e))}re($o,"include");H.addChainableMethod("include",$o,Vo);H.addChainableMethod("contain",$o,Vo);H.addChainableMethod("contains",$o,Vo);H.addChainableMethod("includes",$o,Vo);H.addProperty("ok",function(){this.assert(te(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy")});H.addProperty("true",function(){this.assert(te(this,"object")===!0,"expected #{this} to be true","expected #{this} to be false",!te(this,"negate"))});H.addProperty("numeric",function(){let e=te(this,"object");this.assert(["Number","BigInt"].includes(lt(e)),"expected #{this} to be numeric","expected #{this} to not be numeric",!te(this,"negate"))});H.addProperty("callable",function(){let e=te(this,"object"),t=te(this,"ssfi"),r=te(this,"message"),n=r?`${r}: `:"",i=te(this,"negate"),o=i?`${n}expected ${Ze(e)} not to be a callable function`:`${n}expected ${Ze(e)} to be a callable function`,a=["Function","AsyncFunction","GeneratorFunction","AsyncGeneratorFunction"].includes(lt(e));if(a&&i||!a&&!i)throw new tt(o,void 0,t)});H.addProperty("false",function(){this.assert(te(this,"object")===!1,"expected #{this} to be false","expected #{this} to be true",!!te(this,"negate"))});H.addProperty("null",function(){this.assert(te(this,"object")===null,"expected #{this} to be null","expected #{this} not to be null")});H.addProperty("undefined",function(){this.assert(te(this,"object")===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined")});H.addProperty("NaN",function(){this.assert(ka(te(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN")});function Wc(){let e=te(this,"object");this.assert(e!=null,"expected #{this} to exist","expected #{this} to not exist")}re(Wc,"assertExist");H.addProperty("exist",Wc);H.addProperty("exists",Wc);H.addProperty("empty",function(){let e=te(this,"object"),t=te(this,"ssfi"),r=te(this,"message"),n;switch(r=r?r+": ":"",lt(e).toLowerCase()){case"array":case"string":n=e.length;break;case"map":case"set":n=e.size;break;case"weakmap":case"weakset":throw new tt(r+".empty was passed a weak collection",void 0,t);case"function":{let i=r+".empty was passed a function "+ms(e);throw new tt(i.trim(),void 0,t)}default:if(e!==Object(e))throw new tt(r+".empty was passed non-string primitive "+Ze(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 Yc(){let e=te(this,"object"),t=lt(e);this.assert(t==="Arguments","expected #{this} to be arguments but got "+t,"expected #{this} to not be arguments")}re(Yc,"checkArguments");H.addProperty("arguments",Yc);H.addProperty("Arguments",Yc);function ys(e,t){t&&te(this,"message",t);let r=te(this,"object");if(te(this,"deep")){let n=te(this,"lockSsfi");te(this,"lockSsfi",!0),this.eql(e),te(this,"lockSsfi",n)}else this.assert(e===r,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",e,this._obj,!0)}re(ys,"assertEqual");H.addMethod("equal",ys);H.addMethod("equals",ys);H.addMethod("eq",ys);function Kc(e,t){t&&te(this,"message",t);let r=te(this,"eql");this.assert(r(e,te(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",e,this._obj,!0)}re(Kc,"assertEql");H.addMethod("eql",Kc);H.addMethod("eqls",Kc);function gs(e,t){t&&te(this,"message",t);let r=te(this,"object"),n=te(this,"doLength"),i=te(this,"message"),o=i?i+": ":"",a=te(this,"ssfi"),s=lt(r).toLowerCase(),p=lt(e).toLowerCase();if(n&&s!=="map"&&s!=="set"&&new H(r,i,a,!0).to.have.property("length"),!n&&s==="date"&&p!=="date")throw new tt(o+"the argument to above must be a date",void 0,a);if(!Vt(e)&&(n||Vt(r)))throw new tt(o+"the argument to above must be a number",void 0,a);if(!n&&s!=="date"&&!Vt(r)){let l=s==="string"?"'"+r+"'":r;throw new tt(o+"expected "+l+" to be a number or a date",void 0,a)}if(n){let l="length",d;s==="map"||s==="set"?(l="size",d=r.size):d=r.length,this.assert(d>e,"expected #{this} to have a "+l+" above #{exp} but got #{act}","expected #{this} to not have a "+l+" above #{exp}",e,d)}else this.assert(r>e,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",e)}re(gs,"assertAbove");H.addMethod("above",gs);H.addMethod("gt",gs);H.addMethod("greaterThan",gs);function bs(e,t){t&&te(this,"message",t);let r=te(this,"object"),n=te(this,"doLength"),i=te(this,"message"),o=i?i+": ":"",a=te(this,"ssfi"),s=lt(r).toLowerCase(),p=lt(e).toLowerCase(),l,d=!0;if(n&&s!=="map"&&s!=="set"&&new H(r,i,a,!0).to.have.property("length"),!n&&s==="date"&&p!=="date")l=o+"the argument to least must be a date";else if(!Vt(e)&&(n||Vt(r)))l=o+"the argument to least must be a number";else if(!n&&s!=="date"&&!Vt(r)){let f=s==="string"?"'"+r+"'":r;l=o+"expected "+f+" to be a number or a date"}else d=!1;if(d)throw new tt(l,void 0,a);if(n){let f="length",h;s==="map"||s==="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)}re(bs,"assertLeast");H.addMethod("least",bs);H.addMethod("gte",bs);H.addMethod("greaterThanOrEqual",bs);function Es(e,t){t&&te(this,"message",t);let r=te(this,"object"),n=te(this,"doLength"),i=te(this,"message"),o=i?i+": ":"",a=te(this,"ssfi"),s=lt(r).toLowerCase(),p=lt(e).toLowerCase(),l,d=!0;if(n&&s!=="map"&&s!=="set"&&new H(r,i,a,!0).to.have.property("length"),!n&&s==="date"&&p!=="date")l=o+"the argument to below must be a date";else if(!Vt(e)&&(n||Vt(r)))l=o+"the argument to below must be a number";else if(!n&&s!=="date"&&!Vt(r)){let f=s==="string"?"'"+r+"'":r;l=o+"expected "+f+" to be a number or a date"}else d=!1;if(d)throw new tt(l,void 0,a);if(n){let f="length",h;s==="map"||s==="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)}re(Es,"assertBelow");H.addMethod("below",Es);H.addMethod("lt",Es);H.addMethod("lessThan",Es);function vs(e,t){t&&te(this,"message",t);let r=te(this,"object"),n=te(this,"doLength"),i=te(this,"message"),o=i?i+": ":"",a=te(this,"ssfi"),s=lt(r).toLowerCase(),p=lt(e).toLowerCase(),l,d=!0;if(n&&s!=="map"&&s!=="set"&&new H(r,i,a,!0).to.have.property("length"),!n&&s==="date"&&p!=="date")l=o+"the argument to most must be a date";else if(!Vt(e)&&(n||Vt(r)))l=o+"the argument to most must be a number";else if(!n&&s!=="date"&&!Vt(r)){let f=s==="string"?"'"+r+"'":r;l=o+"expected "+f+" to be a number or a date"}else d=!1;if(d)throw new tt(l,void 0,a);if(n){let f="length",h;s==="map"||s==="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)}re(vs,"assertMost");H.addMethod("most",vs);H.addMethod("lte",vs);H.addMethod("lessThanOrEqual",vs);H.addMethod("within",function(e,t,r){r&&te(this,"message",r);let n=te(this,"object"),i=te(this,"doLength"),o=te(this,"message"),a=o?o+": ":"",s=te(this,"ssfi"),p=lt(n).toLowerCase(),l=lt(e).toLowerCase(),d=lt(t).toLowerCase(),f,h=!0,m=l==="date"&&d==="date"?e.toISOString()+".."+t.toISOString():e+".."+t;if(i&&p!=="map"&&p!=="set"&&new H(n,o,s,!0).to.have.property("length"),!i&&p==="date"&&(l!=="date"||d!=="date"))f=a+"the arguments to within must be dates";else if((!Vt(e)||!Vt(t))&&(i||Vt(n)))f=a+"the arguments to within must be numbers";else if(!i&&p!=="date"&&!Vt(n)){let b=p==="string"?"'"+n+"'":n;f=a+"expected "+b+" to be a number or a date"}else h=!1;if(h)throw new tt(f,void 0,s);if(i){let b="length",E;p==="map"||p==="set"?(b="size",E=n.size):E=n.length,this.assert(E>=e&&E<=t,"expected #{this} to have a "+b+" within "+m,"expected #{this} to not have a "+b+" within "+m)}else this.assert(n>=e&&n<=t,"expected #{this} to be within "+m,"expected #{this} to not be within "+m)});function Xc(e,t){t&&te(this,"message",t);let r=te(this,"object"),n=te(this,"ssfi"),i=te(this,"message"),o;try{o=r instanceof e}catch(s){throw s instanceof TypeError?(i=i?i+": ":"",new tt(i+"The instanceof assertion needs a constructor but "+lt(e)+" was given.",void 0,n)):s}let a=ms(e);a==null&&(a="an unnamed constructor"),this.assert(o,"expected #{this} to be an instance of "+a,"expected #{this} to not be an instance of "+a)}re(Xc,"assertInstanceOf");H.addMethod("instanceof",Xc);H.addMethod("instanceOf",Xc);function Qc(e,t,r){r&&te(this,"message",r);let n=te(this,"nested"),i=te(this,"own"),o=te(this,"message"),a=te(this,"object"),s=te(this,"ssfi"),p=typeof e;if(o=o?o+": ":"",n){if(p!=="string")throw new tt(o+"the argument to property must be a string when using nested syntax",void 0,s)}else if(p!=="string"&&p!=="number"&&p!=="symbol")throw new tt(o+"the argument to property must be a string, number, or symbol",void 0,s);if(n&&i)throw new tt(o+'The "nested" and "own" flags cannot be combined.',void 0,s);if(a==null)throw new tt(o+"Target cannot be null or undefined.",void 0,s);let l=te(this,"deep"),d=te(this,"negate"),f=n?Mc(a,e):null,h=n?f.value:a[e],m=l?te(this,"eql"):(w,A)=>w===A,b="";l&&(b+="deep "),i&&(b+="own "),n&&(b+="nested "),b+="property ";let E;i?E=Object.prototype.hasOwnProperty.call(a,e):n?E=f.exists:E=hs(a,e),(!d||arguments.length===1)&&this.assert(E,"expected #{this} to have "+b+Ze(e),"expected #{this} to not have "+b+Ze(e)),arguments.length>1&&this.assert(E&&m(t,h),"expected #{this} to have "+b+Ze(e)+" of #{exp}, but got #{act}","expected #{this} to not have "+b+Ze(e)+" of #{act}",t,h),te(this,"object",h)}re(Qc,"assertProperty");H.addMethod("property",Qc);function Zc(e,t,r){te(this,"own",!0),Qc.apply(this,arguments)}re(Zc,"assertOwnProperty");H.addMethod("ownProperty",Zc);H.addMethod("haveOwnProperty",Zc);function ep(e,t,r){typeof t=="string"&&(r=t,t=null),r&&te(this,"message",r);let n=te(this,"object"),i=Object.getOwnPropertyDescriptor(Object(n),e),o=te(this,"eql");i&&t?this.assert(o(t,i),"expected the own property descriptor for "+Ze(e)+" on #{this} to match "+Ze(t)+", got "+Ze(i),"expected the own property descriptor for "+Ze(e)+" on #{this} to not match "+Ze(t),t,i,!0):this.assert(i,"expected #{this} to have an own property descriptor for "+Ze(e),"expected #{this} to not have an own property descriptor for "+Ze(e)),te(this,"object",i)}re(ep,"assertOwnPropertyDescriptor");H.addMethod("ownPropertyDescriptor",ep);H.addMethod("haveOwnPropertyDescriptor",ep);function tp(){te(this,"doLength",!0)}re(tp,"assertLengthChain");function rp(e,t){t&&te(this,"message",t);let r=te(this,"object"),n=lt(r).toLowerCase(),i=te(this,"message"),o=te(this,"ssfi"),a="length",s;switch(n){case"map":case"set":a="size",s=r.size;break;default:new H(r,i,o,!0).to.have.property("length"),s=r.length}this.assert(s==e,"expected #{this} to have a "+a+" of #{exp} but got #{act}","expected #{this} to not have a "+a+" of #{act}",e,s)}re(rp,"assertLength");H.addChainableMethod("length",rp,tp);H.addChainableMethod("lengthOf",rp,tp);function np(e,t){t&&te(this,"message",t);let r=te(this,"object");this.assert(e.exec(r),"expected #{this} to match "+e,"expected #{this} not to match "+e)}re(np,"assertMatch");H.addMethod("match",np);H.addMethod("matches",np);H.addMethod("string",function(e,t){t&&te(this,"message",t);let r=te(this,"object"),n=te(this,"message"),i=te(this,"ssfi");new H(r,n,i,!0).is.a("string"),this.assert(~r.indexOf(e),"expected #{this} to contain "+Ze(e),"expected #{this} to not contain "+Ze(e))});function ip(e){let t=te(this,"object"),r=lt(t),n=lt(e),i=te(this,"ssfi"),o=te(this,"deep"),a,s="",p,l=!0,d=te(this,"message");d=d?d+": ":"";let f=d+"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")s=o?"deeply ":"",p=[],t.forEach(function(A,S){p.push(S)}),n!=="Array"&&(e=Array.prototype.slice.call(arguments));else{switch(p=Hc(t),n){case"Array":if(arguments.length>1)throw new tt(f,void 0,i);break;case"Object":if(arguments.length>1)throw new tt(f,void 0,i);e=Object.keys(e);break;default:e=Array.prototype.slice.call(arguments)}e=e.map(function(A){return typeof A=="symbol"?A:String(A)})}if(!e.length)throw new tt(d+"keys required",void 0,i);let h=e.length,m=te(this,"any"),b=te(this,"all"),E=e,w=o?te(this,"eql"):(A,S)=>A===S;if(!m&&!b&&(b=!0),m&&(l=E.some(function(A){return p.some(function(S){return w(A,S)})})),b&&(l=E.every(function(A){return p.some(function(S){return w(A,S)})}),te(this,"contains")||(l=l&&e.length==p.length)),h>1){e=e.map(function(S){return Ze(S)});let A=e.pop();b&&(a=e.join(", ")+", and "+A),m&&(a=e.join(", ")+", or "+A)}else a=Ze(e[0]);a=(h>1?"keys ":"key ")+a,a=(te(this,"contains")?"contain ":"have ")+a,this.assert(l,"expected #{this} to "+s+a,"expected #{this} to not "+s+a,E.slice(0).sort(Ba),p.sort(Ba),!0)}re(ip,"assertKeys");H.addMethod("keys",ip);H.addMethod("key",ip);function As(e,t,r){r&&te(this,"message",r);let n=te(this,"object"),i=te(this,"ssfi"),o=te(this,"message"),a=te(this,"negate")||!1;new H(n,o,i,!0).is.a("function"),(Ma(e)||typeof e=="string")&&(t=e,e=null);let s,p=!1;try{n()}catch(m){p=!0,s=m}let l=e===void 0&&t===void 0,d=!!(e&&t),f=!1,h=!1;if(l||!l&&!a){let m="an error";e instanceof Error?m="#{exp}":e&&(m=or.getConstructorName(e));let b=s;if(s instanceof Error)b=s.toString();else if(typeof s=="string")b=s;else if(s&&(typeof s=="object"||typeof s=="function"))try{b=or.getConstructorName(s)}catch{}this.assert(p,"expected #{this} to throw "+m,"expected #{this} to not throw an error but #{act} was thrown",e&&e.toString(),b)}if(e&&s&&(e instanceof Error&&or.compatibleInstance(s,e)===a&&(d&&a?f=!0:this.assert(a,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(s&&!a?" but #{act} was thrown":""),e.toString(),s.toString())),or.compatibleConstructor(s,e)===a&&(d&&a?f=!0:this.assert(a,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(s?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&or.getConstructorName(e),s instanceof Error?s.toString():s&&or.getConstructorName(s)))),s&&t!==void 0&&t!==null){let m="including";Ma(t)&&(m="matching"),or.compatibleMessage(s,t)===a&&(d&&a?h=!0:this.assert(a,"expected #{this} to throw error "+m+" #{exp} but got #{act}","expected #{this} to throw error not "+m+" #{exp}",t,or.getMessage(s)))}f&&h&&this.assert(a,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(s?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&or.getConstructorName(e),s instanceof Error?s.toString():s&&or.getConstructorName(s)),te(this,"object",s)}re(As,"assertThrows");H.addMethod("throw",As);H.addMethod("throws",As);H.addMethod("Throw",As);function op(e,t){t&&te(this,"message",t);let r=te(this,"object"),n=te(this,"itself"),i=typeof r=="function"&&!n?r.prototype[e]:r[e];this.assert(typeof i=="function","expected #{this} to respond to "+Ze(e),"expected #{this} to not respond to "+Ze(e))}re(op,"respondTo");H.addMethod("respondTo",op);H.addMethod("respondsTo",op);H.addProperty("itself",function(){te(this,"itself",!0)});function ap(e,t){t&&te(this,"message",t);let r=te(this,"object"),n=e(r);this.assert(n,"expected #{this} to satisfy "+jn(e),"expected #{this} to not satisfy"+jn(e),!te(this,"negate"),n)}re(ap,"satisfy");H.addMethod("satisfy",ap);H.addMethod("satisfies",ap);function sp(e,t,r){r&&te(this,"message",r);let n=te(this,"object"),i=te(this,"message"),o=te(this,"ssfi");new H(n,i,o,!0).is.numeric;let a="A `delta` value is required for `closeTo`";if(t==null)throw new tt(i?`${i}: ${a}`:a,void 0,o);if(new H(t,i,o,!0).is.numeric,a="A `expected` value is required for `closeTo`",e==null)throw new tt(i?`${i}: ${a}`:a,void 0,o);new H(e,i,o,!0).is.numeric;let s=re(l=>l<0n?-l:l,"abs"),p=re(l=>parseFloat(parseFloat(l).toPrecision(12)),"strip");this.assert(p(s(n-e))<=t,"expected #{this} to be close to "+e+" +/- "+t,"expected #{this} not to be close to "+e+" +/- "+t)}re(sp,"closeTo");H.addMethod("closeTo",sp);H.addMethod("approximately",sp);function zb(e,t,r,n,i){let o=Array.from(t),a=Array.from(e);if(!n){if(a.length!==o.length)return!1;o=o.slice()}return a.every(function(s,p){if(i)return r?r(s,o[p]):s===o[p];if(!r){let l=o.indexOf(s);return l===-1?!1:(n||o.splice(l,1),!0)}return o.some(function(l,d){return r(s,l)?(n||o.splice(d,1),!0):!1})})}re(zb,"isSubsetOf");H.addMethod("members",function(e,t){t&&te(this,"message",t);let r=te(this,"object"),n=te(this,"message"),i=te(this,"ssfi");new H(r,n,i,!0).to.be.iterable,new H(e,n,i,!0).to.be.iterable;let o=te(this,"contains"),a=te(this,"ordered"),s,p,l;o?(s=a?"an ordered superset":"a superset",p="expected #{this} to be "+s+" of #{exp}",l="expected #{this} to not be "+s+" of #{exp}"):(s=a?"ordered members":"members",p="expected #{this} to have the same "+s+" as #{exp}",l="expected #{this} to not have the same "+s+" as #{exp}");let d=te(this,"deep")?te(this,"eql"):void 0;this.assert(zb(e,r,d,o,a),p,l,e,r,!0)});H.addProperty("iterable",function(e){e&&te(this,"message",e);let t=te(this,"object");this.assert(t!=null&&t[Symbol.iterator],"expected #{this} to be an iterable","expected #{this} to not be an iterable",t)});function Wb(e,t){t&&te(this,"message",t);let r=te(this,"object"),n=te(this,"message"),i=te(this,"ssfi"),o=te(this,"contains"),a=te(this,"deep"),s=te(this,"eql");new H(e,n,i,!0).to.be.an("array"),o?this.assert(e.some(function(p){return r.indexOf(p)>-1}),"expected #{this} to contain one of #{exp}","expected #{this} to not contain one of #{exp}",e,r):a?this.assert(e.some(function(p){return s(r,p)}),"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)}re(Wb,"oneOf");H.addMethod("oneOf",Wb);function up(e,t,r){r&&te(this,"message",r);let n=te(this,"object"),i=te(this,"message"),o=te(this,"ssfi");new H(n,i,o,!0).is.a("function");let a;t?(new H(e,i,o,!0).to.have.property(t),a=e[t]):(new H(e,i,o,!0).is.a("function"),a=e()),n();let s=t==null?e():e[t],p=t==null?a:"."+t;te(this,"deltaMsgObj",p),te(this,"initialDeltaValue",a),te(this,"finalDeltaValue",s),te(this,"deltaBehavior","change"),te(this,"realDelta",s!==a),this.assert(a!==s,"expected "+p+" to change","expected "+p+" to not change")}re(up,"assertChanges");H.addMethod("change",up);H.addMethod("changes",up);function lp(e,t,r){r&&te(this,"message",r);let n=te(this,"object"),i=te(this,"message"),o=te(this,"ssfi");new H(n,i,o,!0).is.a("function");let a;t?(new H(e,i,o,!0).to.have.property(t),a=e[t]):(new H(e,i,o,!0).is.a("function"),a=e()),new H(a,i,o,!0).is.a("number"),n();let s=t==null?e():e[t],p=t==null?a:"."+t;te(this,"deltaMsgObj",p),te(this,"initialDeltaValue",a),te(this,"finalDeltaValue",s),te(this,"deltaBehavior","increase"),te(this,"realDelta",s-a),this.assert(s-a>0,"expected "+p+" to increase","expected "+p+" to not increase")}re(lp,"assertIncreases");H.addMethod("increase",lp);H.addMethod("increases",lp);function cp(e,t,r){r&&te(this,"message",r);let n=te(this,"object"),i=te(this,"message"),o=te(this,"ssfi");new H(n,i,o,!0).is.a("function");let a;t?(new H(e,i,o,!0).to.have.property(t),a=e[t]):(new H(e,i,o,!0).is.a("function"),a=e()),new H(a,i,o,!0).is.a("number"),n();let s=t==null?e():e[t],p=t==null?a:"."+t;te(this,"deltaMsgObj",p),te(this,"initialDeltaValue",a),te(this,"finalDeltaValue",s),te(this,"deltaBehavior","decrease"),te(this,"realDelta",a-s),this.assert(s-a<0,"expected "+p+" to decrease","expected "+p+" to not decrease")}re(cp,"assertDecreases");H.addMethod("decrease",cp);H.addMethod("decreases",cp);function Yb(e,t){t&&te(this,"message",t);let r=te(this,"deltaMsgObj"),n=te(this,"initialDeltaValue"),i=te(this,"finalDeltaValue"),o=te(this,"deltaBehavior"),a=te(this,"realDelta"),s;o==="change"?s=Math.abs(i-n)===Math.abs(e):s=a===Math.abs(e),this.assert(s,"expected "+r+" to "+o+" by "+e,"expected "+r+" to not "+o+" by "+e)}re(Yb,"assertDelta");H.addMethod("by",Yb);H.addProperty("extensible",function(){let e=te(this,"object"),t=e===Object(e)&&Object.isExtensible(e);this.assert(t,"expected #{this} to be extensible","expected #{this} to not be extensible")});H.addProperty("sealed",function(){let e=te(this,"object"),t=e===Object(e)?Object.isSealed(e):!0;this.assert(t,"expected #{this} to be sealed","expected #{this} to not be sealed")});H.addProperty("frozen",function(){let e=te(this,"object"),t=e===Object(e)?Object.isFrozen(e):!0;this.assert(t,"expected #{this} to be frozen","expected #{this} to not be frozen")});H.addProperty("finite",function(e){let t=te(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 qa(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 qa(r,n)})}):!1:e instanceof Date?t instanceof Date?e.getTime()===t.getTime():!1:Object.keys(e).every(function(r){let n=e[r],i=t[r];return typeof n=="object"&&n!==null&&i!==null?qa(n,i):typeof n=="function"?n(i):i===n}):!1}re(qa,"compareSubset");H.addMethod("containSubset",function(e){let t=Je(this,"object"),r=Qt.showDiff;this.assert(qa(e,t),"expected #{act} to contain subset #{exp}","expected #{act} to not contain subset #{exp}",e,t,r)});function Ln(e,t){return new H(e,t)}re(Ln,"expect");Ln.fail=function(e,t,r,n){throw arguments.length<2&&(r=e,e=void 0),r=r||"expect.fail()",new tt(r,{actual:e,expected:t,operator:n},Ln.fail)};var Kb={};Pc(Kb,{Should:()=>XF,should:()=>KF});function pp(){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 H(this.valueOf(),null,e):new H(this,null,e)}re(e,"shouldGetter");function t(n){Object.defineProperty(this,"should",{value:n,enumerable:!0,configurable:!0,writable:!0})}re(t,"shouldSetter"),Object.defineProperty(Object.prototype,"should",{set:t,get:e,configurable:!0});let r={};return r.fail=function(n,i,o,a){throw arguments.length<2&&(o=n,n=void 0),o=o||"should.fail()",new tt(o,{actual:n,expected:i,operator:a},r.fail)},r.equal=function(n,i,o){new H(n,o).to.equal(i)},r.Throw=function(n,i,o,a){new H(n,a).to.Throw(i,o)},r.exist=function(n,i){new H(n,i).to.exist},r.not={},r.not.equal=function(n,i,o){new H(n,o).to.not.equal(i)},r.not.Throw=function(n,i,o,a){new H(n,a).to.not.Throw(i,o)},r.not.exist=function(n,i){new H(n,i).to.not.exist},r.throw=r.Throw,r.not.throw=r.not.Throw,r}re(pp,"loadShould");var KF=pp,XF=pp;function U(e,t){new H(null,null,U,!0).assert(e,t,"[ negation message unavailable ]")}re(U,"assert");U.fail=function(e,t,r,n){throw arguments.length<2&&(r=e,e=void 0),r=r||"assert.fail()",new tt(r,{actual:e,expected:t,operator:n},U.fail)};U.isOk=function(e,t){new H(e,t,U.isOk,!0).is.ok};U.isNotOk=function(e,t){new H(e,t,U.isNotOk,!0).is.not.ok};U.equal=function(e,t,r){let n=new H(e,r,U.equal,!0);n.assert(t==Je(n,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",t,e,!0)};U.notEqual=function(e,t,r){let n=new H(e,r,U.notEqual,!0);n.assert(t!=Je(n,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",t,e,!0)};U.strictEqual=function(e,t,r){new H(e,r,U.strictEqual,!0).to.equal(t)};U.notStrictEqual=function(e,t,r){new H(e,r,U.notStrictEqual,!0).to.not.equal(t)};U.deepEqual=U.deepStrictEqual=function(e,t,r){new H(e,r,U.deepEqual,!0).to.eql(t)};U.notDeepEqual=function(e,t,r){new H(e,r,U.notDeepEqual,!0).to.not.eql(t)};U.isAbove=function(e,t,r){new H(e,r,U.isAbove,!0).to.be.above(t)};U.isAtLeast=function(e,t,r){new H(e,r,U.isAtLeast,!0).to.be.least(t)};U.isBelow=function(e,t,r){new H(e,r,U.isBelow,!0).to.be.below(t)};U.isAtMost=function(e,t,r){new H(e,r,U.isAtMost,!0).to.be.most(t)};U.isTrue=function(e,t){new H(e,t,U.isTrue,!0).is.true};U.isNotTrue=function(e,t){new H(e,t,U.isNotTrue,!0).to.not.equal(!0)};U.isFalse=function(e,t){new H(e,t,U.isFalse,!0).is.false};U.isNotFalse=function(e,t){new H(e,t,U.isNotFalse,!0).to.not.equal(!1)};U.isNull=function(e,t){new H(e,t,U.isNull,!0).to.equal(null)};U.isNotNull=function(e,t){new H(e,t,U.isNotNull,!0).to.not.equal(null)};U.isNaN=function(e,t){new H(e,t,U.isNaN,!0).to.be.NaN};U.isNotNaN=function(e,t){new H(e,t,U.isNotNaN,!0).not.to.be.NaN};U.exists=function(e,t){new H(e,t,U.exists,!0).to.exist};U.notExists=function(e,t){new H(e,t,U.notExists,!0).to.not.exist};U.isUndefined=function(e,t){new H(e,t,U.isUndefined,!0).to.equal(void 0)};U.isDefined=function(e,t){new H(e,t,U.isDefined,!0).to.not.equal(void 0)};U.isCallable=function(e,t){new H(e,t,U.isCallable,!0).is.callable};U.isNotCallable=function(e,t){new H(e,t,U.isNotCallable,!0).is.not.callable};U.isObject=function(e,t){new H(e,t,U.isObject,!0).to.be.a("object")};U.isNotObject=function(e,t){new H(e,t,U.isNotObject,!0).to.not.be.a("object")};U.isArray=function(e,t){new H(e,t,U.isArray,!0).to.be.an("array")};U.isNotArray=function(e,t){new H(e,t,U.isNotArray,!0).to.not.be.an("array")};U.isString=function(e,t){new H(e,t,U.isString,!0).to.be.a("string")};U.isNotString=function(e,t){new H(e,t,U.isNotString,!0).to.not.be.a("string")};U.isNumber=function(e,t){new H(e,t,U.isNumber,!0).to.be.a("number")};U.isNotNumber=function(e,t){new H(e,t,U.isNotNumber,!0).to.not.be.a("number")};U.isNumeric=function(e,t){new H(e,t,U.isNumeric,!0).is.numeric};U.isNotNumeric=function(e,t){new H(e,t,U.isNotNumeric,!0).is.not.numeric};U.isFinite=function(e,t){new H(e,t,U.isFinite,!0).to.be.finite};U.isBoolean=function(e,t){new H(e,t,U.isBoolean,!0).to.be.a("boolean")};U.isNotBoolean=function(e,t){new H(e,t,U.isNotBoolean,!0).to.not.be.a("boolean")};U.typeOf=function(e,t,r){new H(e,r,U.typeOf,!0).to.be.a(t)};U.notTypeOf=function(e,t,r){new H(e,r,U.notTypeOf,!0).to.not.be.a(t)};U.instanceOf=function(e,t,r){new H(e,r,U.instanceOf,!0).to.be.instanceOf(t)};U.notInstanceOf=function(e,t,r){new H(e,r,U.notInstanceOf,!0).to.not.be.instanceOf(t)};U.include=function(e,t,r){new H(e,r,U.include,!0).include(t)};U.notInclude=function(e,t,r){new H(e,r,U.notInclude,!0).not.include(t)};U.deepInclude=function(e,t,r){new H(e,r,U.deepInclude,!0).deep.include(t)};U.notDeepInclude=function(e,t,r){new H(e,r,U.notDeepInclude,!0).not.deep.include(t)};U.nestedInclude=function(e,t,r){new H(e,r,U.nestedInclude,!0).nested.include(t)};U.notNestedInclude=function(e,t,r){new H(e,r,U.notNestedInclude,!0).not.nested.include(t)};U.deepNestedInclude=function(e,t,r){new H(e,r,U.deepNestedInclude,!0).deep.nested.include(t)};U.notDeepNestedInclude=function(e,t,r){new H(e,r,U.notDeepNestedInclude,!0).not.deep.nested.include(t)};U.ownInclude=function(e,t,r){new H(e,r,U.ownInclude,!0).own.include(t)};U.notOwnInclude=function(e,t,r){new H(e,r,U.notOwnInclude,!0).not.own.include(t)};U.deepOwnInclude=function(e,t,r){new H(e,r,U.deepOwnInclude,!0).deep.own.include(t)};U.notDeepOwnInclude=function(e,t,r){new H(e,r,U.notDeepOwnInclude,!0).not.deep.own.include(t)};U.match=function(e,t,r){new H(e,r,U.match,!0).to.match(t)};U.notMatch=function(e,t,r){new H(e,r,U.notMatch,!0).to.not.match(t)};U.property=function(e,t,r){new H(e,r,U.property,!0).to.have.property(t)};U.notProperty=function(e,t,r){new H(e,r,U.notProperty,!0).to.not.have.property(t)};U.propertyVal=function(e,t,r,n){new H(e,n,U.propertyVal,!0).to.have.property(t,r)};U.notPropertyVal=function(e,t,r,n){new H(e,n,U.notPropertyVal,!0).to.not.have.property(t,r)};U.deepPropertyVal=function(e,t,r,n){new H(e,n,U.deepPropertyVal,!0).to.have.deep.property(t,r)};U.notDeepPropertyVal=function(e,t,r,n){new H(e,n,U.notDeepPropertyVal,!0).to.not.have.deep.property(t,r)};U.ownProperty=function(e,t,r){new H(e,r,U.ownProperty,!0).to.have.own.property(t)};U.notOwnProperty=function(e,t,r){new H(e,r,U.notOwnProperty,!0).to.not.have.own.property(t)};U.ownPropertyVal=function(e,t,r,n){new H(e,n,U.ownPropertyVal,!0).to.have.own.property(t,r)};U.notOwnPropertyVal=function(e,t,r,n){new H(e,n,U.notOwnPropertyVal,!0).to.not.have.own.property(t,r)};U.deepOwnPropertyVal=function(e,t,r,n){new H(e,n,U.deepOwnPropertyVal,!0).to.have.deep.own.property(t,r)};U.notDeepOwnPropertyVal=function(e,t,r,n){new H(e,n,U.notDeepOwnPropertyVal,!0).to.not.have.deep.own.property(t,r)};U.nestedProperty=function(e,t,r){new H(e,r,U.nestedProperty,!0).to.have.nested.property(t)};U.notNestedProperty=function(e,t,r){new H(e,r,U.notNestedProperty,!0).to.not.have.nested.property(t)};U.nestedPropertyVal=function(e,t,r,n){new H(e,n,U.nestedPropertyVal,!0).to.have.nested.property(t,r)};U.notNestedPropertyVal=function(e,t,r,n){new H(e,n,U.notNestedPropertyVal,!0).to.not.have.nested.property(t,r)};U.deepNestedPropertyVal=function(e,t,r,n){new H(e,n,U.deepNestedPropertyVal,!0).to.have.deep.nested.property(t,r)};U.notDeepNestedPropertyVal=function(e,t,r,n){new H(e,n,U.notDeepNestedPropertyVal,!0).to.not.have.deep.nested.property(t,r)};U.lengthOf=function(e,t,r){new H(e,r,U.lengthOf,!0).to.have.lengthOf(t)};U.hasAnyKeys=function(e,t,r){new H(e,r,U.hasAnyKeys,!0).to.have.any.keys(t)};U.hasAllKeys=function(e,t,r){new H(e,r,U.hasAllKeys,!0).to.have.all.keys(t)};U.containsAllKeys=function(e,t,r){new H(e,r,U.containsAllKeys,!0).to.contain.all.keys(t)};U.doesNotHaveAnyKeys=function(e,t,r){new H(e,r,U.doesNotHaveAnyKeys,!0).to.not.have.any.keys(t)};U.doesNotHaveAllKeys=function(e,t,r){new H(e,r,U.doesNotHaveAllKeys,!0).to.not.have.all.keys(t)};U.hasAnyDeepKeys=function(e,t,r){new H(e,r,U.hasAnyDeepKeys,!0).to.have.any.deep.keys(t)};U.hasAllDeepKeys=function(e,t,r){new H(e,r,U.hasAllDeepKeys,!0).to.have.all.deep.keys(t)};U.containsAllDeepKeys=function(e,t,r){new H(e,r,U.containsAllDeepKeys,!0).to.contain.all.deep.keys(t)};U.doesNotHaveAnyDeepKeys=function(e,t,r){new H(e,r,U.doesNotHaveAnyDeepKeys,!0).to.not.have.any.deep.keys(t)};U.doesNotHaveAllDeepKeys=function(e,t,r){new H(e,r,U.doesNotHaveAllDeepKeys,!0).to.not.have.all.deep.keys(t)};U.throws=function(e,t,r,n){(typeof t=="string"||t instanceof RegExp)&&(r=t,t=null);let i=new H(e,n,U.throws,!0).to.throw(t,r);return Je(i,"object")};U.doesNotThrow=function(e,t,r,n){(typeof t=="string"||t instanceof RegExp)&&(r=t,t=null),new H(e,n,U.doesNotThrow,!0).to.not.throw(t,r)};U.operator=function(e,t,r,n){let i;switch(t){case"==":i=e==r;break;case"===":i=e===r;break;case">":i=e>r;break;case">=":i=e>=r;break;case"<":i=e<r;break;case"<=":i=e<=r;break;case"!=":i=e!=r;break;case"!==":i=e!==r;break;default:throw n=n&&n+": ",new tt(n+'Invalid operator "'+t+'"',void 0,U.operator)}let o=new H(i,n,U.operator,!0);o.assert(Je(o,"object")===!0,"expected "+Ze(e)+" to be "+t+" "+Ze(r),"expected "+Ze(e)+" to not be "+t+" "+Ze(r))};U.closeTo=function(e,t,r,n){new H(e,n,U.closeTo,!0).to.be.closeTo(t,r)};U.approximately=function(e,t,r,n){new H(e,n,U.approximately,!0).to.be.approximately(t,r)};U.sameMembers=function(e,t,r){new H(e,r,U.sameMembers,!0).to.have.same.members(t)};U.notSameMembers=function(e,t,r){new H(e,r,U.notSameMembers,!0).to.not.have.same.members(t)};U.sameDeepMembers=function(e,t,r){new H(e,r,U.sameDeepMembers,!0).to.have.same.deep.members(t)};U.notSameDeepMembers=function(e,t,r){new H(e,r,U.notSameDeepMembers,!0).to.not.have.same.deep.members(t)};U.sameOrderedMembers=function(e,t,r){new H(e,r,U.sameOrderedMembers,!0).to.have.same.ordered.members(t)};U.notSameOrderedMembers=function(e,t,r){new H(e,r,U.notSameOrderedMembers,!0).to.not.have.same.ordered.members(t)};U.sameDeepOrderedMembers=function(e,t,r){new H(e,r,U.sameDeepOrderedMembers,!0).to.have.same.deep.ordered.members(t)};U.notSameDeepOrderedMembers=function(e,t,r){new H(e,r,U.notSameDeepOrderedMembers,!0).to.not.have.same.deep.ordered.members(t)};U.includeMembers=function(e,t,r){new H(e,r,U.includeMembers,!0).to.include.members(t)};U.notIncludeMembers=function(e,t,r){new H(e,r,U.notIncludeMembers,!0).to.not.include.members(t)};U.includeDeepMembers=function(e,t,r){new H(e,r,U.includeDeepMembers,!0).to.include.deep.members(t)};U.notIncludeDeepMembers=function(e,t,r){new H(e,r,U.notIncludeDeepMembers,!0).to.not.include.deep.members(t)};U.includeOrderedMembers=function(e,t,r){new H(e,r,U.includeOrderedMembers,!0).to.include.ordered.members(t)};U.notIncludeOrderedMembers=function(e,t,r){new H(e,r,U.notIncludeOrderedMembers,!0).to.not.include.ordered.members(t)};U.includeDeepOrderedMembers=function(e,t,r){new H(e,r,U.includeDeepOrderedMembers,!0).to.include.deep.ordered.members(t)};U.notIncludeDeepOrderedMembers=function(e,t,r){new H(e,r,U.notIncludeDeepOrderedMembers,!0).to.not.include.deep.ordered.members(t)};U.oneOf=function(e,t,r){new H(e,r,U.oneOf,!0).to.be.oneOf(t)};U.isIterable=function(e,t){if(e==null||!e[Symbol.iterator])throw t=t?`${t} expected ${Ze(e)} to be an iterable`:`expected ${Ze(e)} to be an iterable`,new tt(t,void 0,U.isIterable)};U.changes=function(e,t,r,n){arguments.length===3&&typeof t=="function"&&(n=r,r=null),new H(e,n,U.changes,!0).to.change(t,r)};U.changesBy=function(e,t,r,n,i){if(arguments.length===4&&typeof t=="function"){let o=n;n=r,i=o}else arguments.length===3&&(n=r,r=null);new H(e,i,U.changesBy,!0).to.change(t,r).by(n)};U.doesNotChange=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new H(e,n,U.doesNotChange,!0).to.not.change(t,r)};U.changesButNotBy=function(e,t,r,n,i){if(arguments.length===4&&typeof t=="function"){let o=n;n=r,i=o}else arguments.length===3&&(n=r,r=null);new H(e,i,U.changesButNotBy,!0).to.change(t,r).but.not.by(n)};U.increases=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new H(e,n,U.increases,!0).to.increase(t,r)};U.increasesBy=function(e,t,r,n,i){if(arguments.length===4&&typeof t=="function"){let o=n;n=r,i=o}else arguments.length===3&&(n=r,r=null);new H(e,i,U.increasesBy,!0).to.increase(t,r).by(n)};U.doesNotIncrease=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new H(e,n,U.doesNotIncrease,!0).to.not.increase(t,r)};U.increasesButNotBy=function(e,t,r,n,i){if(arguments.length===4&&typeof t=="function"){let o=n;n=r,i=o}else arguments.length===3&&(n=r,r=null);new H(e,i,U.increasesButNotBy,!0).to.increase(t,r).but.not.by(n)};U.decreases=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new H(e,n,U.decreases,!0).to.decrease(t,r)};U.decreasesBy=function(e,t,r,n,i){if(arguments.length===4&&typeof t=="function"){let o=n;n=r,i=o}else arguments.length===3&&(n=r,r=null);new H(e,i,U.decreasesBy,!0).to.decrease(t,r).by(n)};U.doesNotDecrease=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new H(e,n,U.doesNotDecrease,!0).to.not.decrease(t,r)};U.doesNotDecreaseBy=function(e,t,r,n,i){if(arguments.length===4&&typeof t=="function"){let o=n;n=r,i=o}else arguments.length===3&&(n=r,r=null);return new H(e,i,U.doesNotDecreaseBy,!0).to.not.decrease(t,r).by(n)};U.decreasesButNotBy=function(e,t,r,n,i){if(arguments.length===4&&typeof t=="function"){let o=n;n=r,i=o}else arguments.length===3&&(n=r,r=null);new H(e,i,U.decreasesButNotBy,!0).to.decrease(t,r).but.not.by(n)};U.ifError=function(e){if(e)throw e};U.isExtensible=function(e,t){new H(e,t,U.isExtensible,!0).to.be.extensible};U.isNotExtensible=function(e,t){new H(e,t,U.isNotExtensible,!0).to.not.be.extensible};U.isSealed=function(e,t){new H(e,t,U.isSealed,!0).to.be.sealed};U.isNotSealed=function(e,t){new H(e,t,U.isNotSealed,!0).to.not.be.sealed};U.isFrozen=function(e,t){new H(e,t,U.isFrozen,!0).to.be.frozen};U.isNotFrozen=function(e,t){new H(e,t,U.isNotFrozen,!0).to.not.be.frozen};U.isEmpty=function(e,t){new H(e,t,U.isEmpty,!0).to.be.empty};U.isNotEmpty=function(e,t){new H(e,t,U.isNotEmpty,!0).to.not.be.empty};U.containsSubset=function(e,t,r){new H(e,r).to.containSubset(t)};U.doesNotContainSubset=function(e,t,r){new H(e,r).to.not.containSubset(t)};var QF=[["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(let[e,t]of QF)U[t]=U[e];var yf=[];function ci(e){let t={use:ci,AssertionError:tt,util:Fr,config:Qt,expect:Ln,assert:U,Assertion:H,...Kb};return~yf.indexOf(e)||(e(t,Fr),yf.push(e)),t}re(ci,"use");var Xb={};ir(Xb,{toAppearAfter:()=>WI,toAppearBefore:()=>il,toBeChecked:()=>F0,toBeDisabled:()=>_0,toBeEmpty:()=>l0,toBeEmptyDOMElement:()=>c0,toBeEnabled:()=>T0,toBeInTheDOM:()=>Qu,toBeInTheDocument:()=>u0,toBeInvalid:()=>D0,toBePartiallyChecked:()=>I0,toBePartiallyPressed:()=>j0,toBePressed:()=>q0,toBeRequired:()=>S0,toBeValid:()=>R0,toBeVisible:()=>E0,toContainElement:()=>Zu,toContainHTML:()=>p0,toHaveAccessibleDescription:()=>el,toHaveAccessibleErrorMessage:()=>f0,toHaveAccessibleName:()=>rl,toHaveAttribute:()=>h0,toHaveClass:()=>m0,toHaveDescription:()=>B0,toHaveDisplayValue:()=>O0,toHaveErrorMessage:()=>k0,toHaveFocus:()=>y0,toHaveFormValues:()=>g0,toHaveRole:()=>tl,toHaveSelection:()=>M0,toHaveStyle:()=>nl,toHaveTextContent:()=>d0,toHaveValue:()=>P0});var gf=It(Bm(),1),ZF=class extends Error{reason;filename;line;column;source;constructor(e,t,r,n,i){super(`${e}:${r}:${n}: ${t}`),this.reason=t,this.filename=e,this.line=r,this.column=n,this.source=i}},eN=class{start;end;source;constructor(e,t,r){this.start=e,this.end=t,this.source=r}},Mt;(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"})(Mt||(Mt={}));var bf=(e,t,r)=>{let n=r,i=1e4;do{let o=t.map(p=>e.indexOf(p,n));o.push(e.indexOf("\\",n));let a=o.filter(p=>p!==-1);if(a.length===0)return-1;let s=Math.min(...a);if(e[s]!=="\\")return s;n=s+2,i--}while(i>0);throw new Error("Too many escaping")},Yu=(e,t,r)=>{let n=r,i=1e4;do{let o=t.map(p=>e.indexOf(p,n));o.push(e.indexOf("(",n)),o.push(e.indexOf('"',n)),o.push(e.indexOf("'",n)),o.push(e.indexOf("\\",n));let a=o.filter(p=>p!==-1);if(a.length===0)return-1;let s=Math.min(...a);switch(e[s]){case"\\":n=s+2;break;case"(":{let p=Yu(e,[")"],s+1);if(p===-1)return-1;n=p+1}break;case'"':{let p=bf(e,['"'],s+1);if(p===-1)return-1;n=p+1}break;case"'":{let p=bf(e,["'"],s+1);if(p===-1)return-1;n=p+1}break;default:return s}i--}while(i>0);throw new Error("Too many escaping")},tu=/\/\*[^]*?(?:\*\/|$)/g;function pr(e){return e?e.trim():""}function Ku(e,t){let r=e&&typeof e.type=="string",n=r?e:t;for(let i in e){let o=e[i];Array.isArray(o)?o.forEach(a=>{Ku(a,n)}):o&&typeof o=="object"&&Ku(o,n)}return r&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}var tN=(e,t)=>{t=t||{};let r=1,n=1;function i(){let _={line:r,column:n};return D=>(D.position=new eN(_,{line:r,column:n},t?.source||""),f(),D)}let o=[];function a(_){let D=new ZF(t?.source||"",_,r,n,e);if(!t?.silent)throw D;o.push(D)}function s(){let _=/^{\s*/.exec(e);return!!_&&(d(_),!0)}function p(){let _=/^}/.exec(e);return!!_&&(d(_),!0)}function l(){let _,D=[];for(f(),h(D);e.length&&e.charAt(0)!=="}"&&(_=y()||T(),_);)D.push(_),h(D);return D}function d(_){let D=_[0];return(function(J){let M=J.match(/\n/g);M&&(r+=M.length);let G=J.lastIndexOf(`
|
|
209
|
+
`);n=~G?J.length-G:n+J.length})(D),e=e.slice(D.length),_}function f(){let _=/^\s*/.exec(e);_&&d(_)}function h(_){_=_||[];let D=m();for(;D;)_.push(D),D=m();return _}function m(){let _=i();if(e.charAt(0)!=="/"||e.charAt(1)!=="*")return;let D=/^\/\*[^]*?\*\//.exec(e);return D?(d(D),_({type:Mt.comment,comment:D[0].slice(2,-2)})):a("End of comment missing")}function b(){let _=/^([^{]+)/.exec(e);if(_)return d(_),((D,J)=>{let M=[],G=0;for(;G<D.length;){let L=Yu(D,J,G);if(L===-1)return M.push(D.substring(G)),M;M.push(D.substring(G,L)),G=L+1}return M})(pr(_[0]).replace(tu,""),[","]).map(D=>pr(D))}function E(){let _=i(),D=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/.exec(e);if(!D)return;d(D);let J=pr(D[0]),M=/^:\s*/.exec(e);if(!M)return a("property missing ':'");d(M);let G="",L=Yu(e,[";","}"]);L!==-1&&(G=e.substring(0,L),d([G]),G=pr(G).replace(tu,""));let I=_({type:Mt.declaration,property:J.replace(tu,""),value:G}),$=/^[;\s]*/.exec(e);return $&&d($),I}function w(){let _=[];if(!s())return a("missing '{'");h(_);let D=E();for(;D;)_.push(D),h(_),D=E();return p()?_:a("missing '}'")}function A(){let _=[],D=i(),J=/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/.exec(e);for(;J;){let M=d(J);_.push(M[1]);let G=/^,\s*/.exec(e);G&&d(G),J=/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/.exec(e)}if(_.length)return D({type:Mt.keyframe,values:_,declarations:w()||[]})}let S=R("import"),k=R("charset"),O=R("namespace");function R(_){let D=new RegExp("^@"+_+`\\s*((?::?[^;'"]|"(?:\\\\"|[^"])*?"|'(?:\\\\'|[^'])*?')+)(?:;|$)`);return()=>{let J=i(),M=D.exec(e);if(!M)return;let G=d(M),L={type:_};return L[_]=G[1].trim(),J(L)}}function y(){if(e[0]==="@")return(function(){let _=i(),D=/^@([-\w]+)?keyframes\s*/.exec(e);if(!D)return;let J=d(D)[1],M=/^([-\w]+)\s*/.exec(e);if(!M)return a("@keyframes missing name");let G=d(M)[1];if(!s())return a("@keyframes missing '{'");let L=h(),I=A();for(;I;)L.push(I),L=L.concat(h()),I=A();return p()?_({type:Mt.keyframes,name:G,vendor:J,keyframes:L}):a("@keyframes missing '}'")})()||(function(){let _=i(),D=/^@media *([^{]+)/.exec(e);if(!D)return;let J=pr(d(D)[1]);if(!s())return a("@media missing '{'");let M=h().concat(l());return p()?_({type:Mt.media,media:J,rules:M}):a("@media missing '}'")})()||(function(){let _=i(),D=/^@custom-media\s+(--\S+)\s+([^{;\s][^{;]*);/.exec(e);if(!D)return;let J=d(D);return _({type:Mt.customMedia,name:pr(J[1]),media:pr(J[2])})})()||(function(){let _=i(),D=/^@supports *([^{]+)/.exec(e);if(!D)return;let J=pr(d(D)[1]);if(!s())return a("@supports missing '{'");let M=h().concat(l());return p()?_({type:Mt.supports,supports:J,rules:M}):a("@supports missing '}'")})()||S()||k()||O()||(function(){let _=i(),D=/^@([-\w]+)?document *([^{]+)/.exec(e);if(!D)return;let J=d(D),M=pr(J[1]),G=pr(J[2]);if(!s())return a("@document missing '{'");let L=h().concat(l());return p()?_({type:Mt.document,document:G,vendor:M,rules:L}):a("@document missing '}'")})()||(function(){let _=i(),D=/^@page */.exec(e);if(!D)return;d(D);let J=b()||[];if(!s())return a("@page missing '{'");let M=h(),G=E();for(;G;)M.push(G),M=M.concat(h()),G=E();return p()?_({type:Mt.page,selectors:J,declarations:M}):a("@page missing '}'")})()||(function(){let _=i(),D=/^@host\s*/.exec(e);if(!D)return;if(d(D),!s())return a("@host missing '{'");let J=h().concat(l());return p()?_({type:Mt.host,rules:J}):a("@host missing '}'")})()||(function(){let _=i(),D=/^@font-face\s*/.exec(e);if(!D)return;if(d(D),!s())return a("@font-face missing '{'");let J=h(),M=E();for(;M;)J.push(M),J=J.concat(h()),M=E();return p()?_({type:Mt.fontFace,declarations:J}):a("@font-face missing '}'")})()||(function(){let _=i(),D=/^@container *([^{]+)/.exec(e);if(!D)return;let J=pr(d(D)[1]);if(!s())return a("@container missing '{'");let M=h().concat(l());return p()?_({type:Mt.container,container:J,rules:M}):a("@container missing '}'")})()||(function(){let _=i(),D=/^@starting-style\s*/.exec(e);if(!D)return;if(d(D),!s())return a("@starting-style missing '{'");let J=h().concat(l());return p()?_({type:Mt.startingStyle,rules:J}):a("@starting-style missing '}'")})()||(function(){let _=i(),D=/^@layer *([^{;@]+)/.exec(e);if(!D)return;let J=pr(d(D)[1]);if(!s()){let G=/^[;\s]*/.exec(e);return G&&d(G),_({type:Mt.layer,layer:J})}let M=h().concat(l());return p()?_({type:Mt.layer,layer:J,rules:M}):a("@layer missing '}'")})()}function T(){let _=i(),D=b();return D?(h(),_({type:Mt.rule,selectors:D,declarations:w()||[]})):a("selector missing")}return Ku((function(){let _=l();return{type:Mt.stylesheet,stylesheet:{source:t?.source,rules:_,parsingErrors:o}}})())},rN=Object.prototype.toString;function nN(e){return typeof e=="function"||rN.call(e)==="[object Function]"}function iN(e){var t=Number(e);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))}var oN=Math.pow(2,53)-1;function aN(e){var t=iN(e);return Math.min(Math.max(t,0),oN)}function Ar(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");for(var i=aN(n.length),o=nN(r)?Object(new r(i)):new Array(i),a=0,s;a<i;)s=n[a],o[a]=s,a+=1;return o.length=i,o}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)}function sN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uN(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,Qb(n.key),n)}}function lN(e,t,r){return t&&uN(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function cN(e,t,r){return t=Qb(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qb(e){var t=pN(e,"string");return bo(t)==="symbol"?t:String(t)}function pN(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);if(bo(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var dN=(function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];sN(this,e),cN(this,"items",void 0),this.items=t}return lN(e,[{key:"add",value:function(t){return this.has(t)===!1&&this.items.push(t),this}},{key:"clear",value:function(){this.items=[]}},{key:"delete",value:function(t){var r=this.items.length;return this.items=this.items.filter(function(n){return n!==t}),r!==this.items.length}},{key:"forEach",value:function(t){var r=this;this.items.forEach(function(n){t(n,n,r)})}},{key:"has",value:function(t){return this.items.indexOf(t)!==-1}},{key:"size",get:function(){return this.items.length}}]),e})(),fN=typeof Set>"u"?Set:dN;function Yt(e){var t;return(t=e.localName)!==null&&t!==void 0?t:e.tagName.toLowerCase()}var hN={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"},mN={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 yN(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=mN[t])!==null&&n!==void 0&&n.has(r))})}function Zb(e,t){return yN(e,t)}function gN(e){var t=EN(e);if(t===null||Xu.indexOf(t)!==-1){var r=bN(e);if(Xu.indexOf(t||"")===-1||Zb(e,r||""))return r}return t}function bN(e){var t=hN[Yt(e)];if(t!==void 0)return t;switch(Yt(e)){case"a":case"area":case"link":if(e.hasAttribute("href"))return"link";break;case"img":return e.getAttribute("alt")===""&&!Zb(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}function EN(e){var t=e.getAttribute("role");if(t!==null){var r=t.trim().split(" ")[0];if(r.length>0)return r}return null}var Xu=["presentation","none"];function wt(e){return e!==null&&e.nodeType===e.ELEMENT_NODE}function e0(e){return wt(e)&&Yt(e)==="caption"}function va(e){return wt(e)&&Yt(e)==="input"}function vN(e){return wt(e)&&Yt(e)==="optgroup"}function AN(e){return wt(e)&&Yt(e)==="select"}function wN(e){return wt(e)&&Yt(e)==="table"}function CN(e){return wt(e)&&Yt(e)==="textarea"}function _N(e){var t=e.ownerDocument===null?e:e.ownerDocument,r=t.defaultView;if(r===null)throw new TypeError("no window available");return r}function TN(e){return wt(e)&&Yt(e)==="fieldset"}function SN(e){return wt(e)&&Yt(e)==="legend"}function xN(e){return wt(e)&&Yt(e)==="slot"}function DN(e){return wt(e)&&e.ownerSVGElement!==void 0}function RN(e){return wt(e)&&Yt(e)==="svg"}function PN(e){return DN(e)&&Yt(e)==="title"}function ja(e,t){if(wt(e)&&e.hasAttribute(t)){var r=e.getAttribute(t).split(" "),n=e.getRootNode?e.getRootNode():e.ownerDocument;return r.map(function(i){return n.getElementById(i)}).filter(function(i){return i!==null})}return[]}function Jr(e,t){return wt(e)?t.indexOf(gN(e))!==-1:!1}function ON(e){return e.trim().replace(/\s\s+/g," ")}function FN(e,t){if(!wt(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"}function NN(e){return Jr(e,["button","combobox","listbox","textbox"])||t0(e,"range")}function t0(e,t){if(!wt(e))return!1;switch(t){case"range":return Jr(e,["meter","progressbar","scrollbar","slider","spinbutton"]);default:throw new TypeError("No knowledge about abstract role '".concat(t,"'. This is likely a bug :("))}}function Ef(e,t){var r=Ar(e.querySelectorAll(t));return ja(e,"aria-owns").forEach(function(n){r.push.apply(r,Ar(n.querySelectorAll(t)))}),r}function IN(e){return AN(e)?e.selectedOptions||Ef(e,"[selected]"):Ef(e,'[aria-selected="true"]')}function BN(e){return Jr(e,Xu)}function kN(e){return e0(e)}function MN(e){return Jr(e,["button","cell","checkbox","columnheader","gridcell","heading","label","legend","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"])}function qN(e){return!1}function jN(e){return va(e)||CN(e)?e.value:e.textContent||""}function vf(e){var t=e.getPropertyValue("content");return/^["'].*["']$/.test(t)?t.slice(1,-1):""}function r0(e){var t=Yt(e);return t==="button"||t==="input"&&e.getAttribute("type")!=="hidden"||t==="meter"||t==="output"||t==="progress"||t==="select"||t==="textarea"}function n0(e){if(r0(e))return e;var t=null;return e.childNodes.forEach(function(r){if(t===null&&wt(r)){var n=n0(r);n!==null&&(t=n)}}),t}function LN(e){if(e.control!==void 0)return e.control;var t=e.getAttribute("for");return t!==null?e.ownerDocument.getElementById(t):n0(e)}function VN(e){var t=e.labels;if(t===null)return t;if(t!==void 0)return Ar(t);if(!r0(e))return null;var r=e.ownerDocument;return Ar(r.querySelectorAll("label")).filter(function(n){return LN(n)===e})}function $N(e){var t=e.assignedNodes();return t.length===0?Ar(e.childNodes):t}function i0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=new fN,n=_N(e),i=t.compute,o=i===void 0?"name":i,a=t.computedStyleSupportsPseudoElements,s=a===void 0?t.getComputedStyle!==void 0:a,p=t.getComputedStyle,l=p===void 0?n.getComputedStyle.bind(n):p,d=t.hidden,f=d===void 0?!1:d;function h(A,S){var k="";if(wt(A)&&s){var O=l(A,"::before"),R=vf(O);k="".concat(R," ").concat(k)}var y=xN(A)?$N(A):Ar(A.childNodes).concat(ja(A,"aria-owns"));if(y.forEach(function(D){var J=w(D,{isEmbeddedInLabel:S.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),M=wt(D)?l(D).getPropertyValue("display"):"inline",G=M!=="inline"?" ":"";k+="".concat(G).concat(J).concat(G)}),wt(A)&&s){var T=l(A,"::after"),_=vf(T);k="".concat(k," ").concat(_)}return k.trim()}function m(A,S){var k=A.getAttributeNode(S);return k!==null&&!r.has(k)&&k.value.trim()!==""?(r.add(k),k.value):null}function b(A){return wt(A)?m(A,"title"):null}function E(A){if(!wt(A))return null;if(TN(A)){r.add(A);for(var S=Ar(A.childNodes),k=0;k<S.length;k+=1){var O=S[k];if(SN(O))return w(O,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(wN(A)){r.add(A);for(var R=Ar(A.childNodes),y=0;y<R.length;y+=1){var T=R[y];if(e0(T))return w(T,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(RN(A)){r.add(A);for(var _=Ar(A.childNodes),D=0;D<_.length;D+=1){var J=_[D];if(PN(J))return J.textContent}return null}else if(Yt(A)==="img"||Yt(A)==="area"){var M=m(A,"alt");if(M!==null)return M}else if(vN(A)){var G=m(A,"label");if(G!==null)return G}if(va(A)&&(A.type==="button"||A.type==="submit"||A.type==="reset")){var L=m(A,"value");if(L!==null)return L;if(A.type==="submit")return"Submit";if(A.type==="reset")return"Reset"}var I=VN(A);if(I!==null&&I.length!==0)return r.add(A),Ar(I).map(function(oe){return w(oe,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(oe){return oe.length>0}).join(" ");if(va(A)&&A.type==="image"){var $=m(A,"alt");if($!==null)return $;var Y=m(A,"title");return Y!==null?Y:"Submit Query"}if(Jr(A,["button"])){var X=h(A,{isEmbeddedInLabel:!1});if(X!=="")return X}return null}function w(A,S){if(r.has(A))return"";if(!f&&FN(A,l)&&!S.isReferenced)return r.add(A),"";var k=wt(A)?A.getAttributeNode("aria-labelledby"):null,O=k!==null&&!r.has(k)?ja(A,"aria-labelledby"):[];if(o==="name"&&!S.isReferenced&&O.length>0)return r.add(k),O.map(function(M){return w(M,{isEmbeddedInLabel:S.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(" ");var R=S.recursion&&NN(A)&&o==="name";if(!R){var y=(wt(A)&&A.getAttribute("aria-label")||"").trim();if(y!==""&&o==="name")return r.add(A),y;if(!BN(A)){var T=E(A);if(T!==null)return r.add(A),T}}if(Jr(A,["menu"]))return r.add(A),"";if(R||S.isEmbeddedInLabel||S.isReferenced){if(Jr(A,["combobox","listbox"])){r.add(A);var _=IN(A);return _.length===0?va(A)?A.value:"":Ar(_).map(function(M){return w(M,{isEmbeddedInLabel:S.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(" ")}if(t0(A,"range"))return r.add(A),A.hasAttribute("aria-valuetext")?A.getAttribute("aria-valuetext"):A.hasAttribute("aria-valuenow")?A.getAttribute("aria-valuenow"):A.getAttribute("value")||"";if(Jr(A,["textbox"]))return r.add(A),jN(A)}if(MN(A)||wt(A)&&S.isReferenced||kN(A)||qN()){var D=h(A,{isEmbeddedInLabel:S.isEmbeddedInLabel});if(D!=="")return r.add(A),D}if(A.nodeType===A.TEXT_NODE)return r.add(A),A.textContent||"";if(S.recursion)return r.add(A),h(A,{isEmbeddedInLabel:S.isEmbeddedInLabel});var J=b(A);return J!==null?(r.add(A),J):(r.add(A),"")}return ON(w(e,{isEmbeddedInLabel:!1,isReferenced:o==="description",recursion:!1}))}function Eo(e){"@babel/helpers - typeof";return Eo=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},Eo(e)}function Af(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function wf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Af(Object(r),!0).forEach(function(n){UN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Af(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function UN(e,t,r){return t=JN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JN(e){var t=HN(e,"string");return Eo(t)==="symbol"?t:String(t)}function HN(e,t){if(Eo(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Eo(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function GN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=ja(e,"aria-describedby").map(function(o){return i0(o,wf(wf({},t),{},{compute:"description"}))}).join(" ");if(r===""){var n=e.getAttribute("aria-description");r=n===null?"":n}if(r===""){var i=e.getAttribute("title");r=i===null?"":i}return r}function zN(e){return Jr(e,["caption","code","deletion","emphasis","generic","insertion","none","paragraph","presentation","strong","subscript","superscript"])}function WN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return zN(e)?"":i0(e,t)}var dp=It(Hl(),1),YN=It(km(),1),KN=It(Mm(),1),o0=class extends Error{constructor(e,t,r,n){super(),Error.captureStackTrace&&Error.captureStackTrace(this,r);let i="";try{i=n.utils.printWithType("Received",t,n.utils.printReceived)}catch{}this.message=[n.utils.matcherHint(`${n.isNot?".not":""}.${r.name}`,"received",""),"",`${n.utils.RECEIVED_COLOR("received")} value must ${e}.`,i].join(`
|
|
210
|
+
`)}},Cf=class extends o0{constructor(...e){super("be an HTMLElement or an SVGElement",...e)}},_f=class extends o0{constructor(...e){super("be a Node",...e)}};function a0(e,t,...r){if(!e||!e.ownerDocument||!e.ownerDocument.defaultView)throw new t(e,...r)}function XN(e,...t){a0(e,_f,...t);let r=e.ownerDocument.defaultView;if(!(e instanceof r.Node))throw new _f(e,...t)}function Qe(e,...t){a0(e,Cf,...t);let r=e.ownerDocument.defaultView;if(!(e instanceof r.HTMLElement)&&!(e instanceof r.SVGElement))throw new Cf(e,...t)}var QN=class extends Error{constructor(e,t,r){super(),Error.captureStackTrace&&Error.captureStackTrace(this,t),this.message=[e.message,"",r.utils.RECEIVED_COLOR("Failing css:"),r.utils.RECEIVED_COLOR(`${e.css}`)].join(`
|
|
211
|
+
`)}};function ZN(e,...t){let r=tN(`selector { ${e} }`,{silent:!0}).stylesheet;if(r.parsingErrors&&r.parsingErrors.length>0){let{reason:n,line:i}=r.parsingErrors[0];throw new QN({css:e,message:`Syntax error parsing expected css: ${n} on line: ${i}`},...t)}return r.rules[0].declarations.filter(n=>n.type==="declaration").reduce((n,{property:i,value:o})=>Object.assign(n,{[i]:o}),{})}function Tf(e,t){return typeof t=="string"?t:e.utils.stringify(t)}function Lt(e,t,r,n,i,o){return[`${t}
|
|
212
|
+
`,`${r}:
|
|
213
|
+
${e.utils.EXPECTED_COLOR((0,gf.default)(Tf(e,n),2))}`,`${i}:
|
|
214
|
+
${e.utils.RECEIVED_COLOR((0,gf.default)(Tf(e,o),2))}`].join(`
|
|
215
|
+
`)}function eI(e,t){return t instanceof RegExp?t.test(e):e.includes(String(t))}function ws(e,t){console.warn(`Warning: ${e} has been deprecated and will be removed in future updates.`,t)}function Cs(e){return e.replace(/\s+/g," ").trim()}function bn(e){return e.tagName&&e.tagName.toLowerCase()}function tI({multiple:e,options:t}){let r=[...t].filter(n=>n.selected);if(e)return[...r].map(n=>n.value);if(r.length!==0)return r[0].value}function rI(e){switch(e.type){case"number":return e.value===""?null:Number(e.value);case"checkbox":return e.checked;default:return e.value}}var nI=["meter","progressbar","slider","spinbutton"];function iI(e){if(nI.includes(e.getAttribute("role")))return Number(e.getAttribute("aria-valuenow"))}function s0(e){if(e)switch(e.tagName.toLowerCase()){case"input":return rI(e);case"select":return tI(e);default:return e.value??iI(e)}}function oI(e,{wordConnector:t=", ",lastWordConnector:r=" and "}={}){return[e.slice(0,-1).join(t),e[e.length-1]].join(e.length>1?r:"")}function fp(e,t){return Array.isArray(e)&&Array.isArray(t)?[...new Set(e)].every(r=>new Set(t).has(r)):e===t}function Qu(e,t){return ws("toBeInTheDOM","Please use toBeInTheDocument for searching the entire document and toContainElement for searching a specific container."),e&&Qe(e,Qu,this),t&&Qe(t,Qu,this),{pass:t?t.contains(e):!!e,message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeInTheDOM`,"element",""),"","Received:",` ${this.utils.printReceived(e&&e.cloneNode(!1))}`].join(`
|
|
216
|
+
`)}}function u0(e){(e!==null||!this.isNot)&&Qe(e,u0,this);let t=e===null?!1:e.ownerDocument===e.getRootNode({composed:!0}),r=()=>`expected document not to contain element, found ${this.utils.stringify(e.cloneNode(!0))} instead`,n=()=>"element could not be found in the document";return{pass:t,message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeInTheDocument`,"element",""),"",this.utils.RECEIVED_COLOR(this.isNot?r():n())].join(`
|
|
217
|
+
`)}}function l0(e){return ws("toBeEmpty","Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM."),Qe(e,l0,this),{pass:e.innerHTML==="",message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeEmpty`,"element",""),"","Received:",` ${this.utils.printReceived(e.innerHTML)}`].join(`
|
|
218
|
+
`)}}function c0(e){return Qe(e,c0,this),{pass:aI(e),message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeEmptyDOMElement`,"element",""),"","Received:",` ${this.utils.printReceived(e.innerHTML)}`].join(`
|
|
219
|
+
`)}}function aI(e){return[...e.childNodes].filter(t=>t.nodeType!==8).length===0}function Zu(e,t){return Qe(e,Zu,this),t!==null&&Qe(t,Zu,this),{pass:e.contains(t),message:()=>[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
|
+
`)}}function sI(e,t){let r=e.ownerDocument.createElement("div");return r.innerHTML=t,r.innerHTML}function p0(e,t){if(Qe(e,p0,this),typeof t!="string")throw new Error(`.toContainHTML() expects a string value, got ${t}`);return{pass:e.outerHTML.includes(sI(e,t)),message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toContainHTML`,"element",""),"Expected:",` ${this.utils.EXPECTED_COLOR(t)}`,"Received:",` ${this.utils.printReceived(e.cloneNode(!0))}`].join(`
|
|
222
|
+
`)}}function d0(e,t,r={normalizeWhitespace:!0}){XN(e,d0,this);let n=r.normalizeWhitespace?Cs(e.textContent):e.textContent.replace(/\u00a0/g," "),i=n!==""&&t==="";return{pass:!i&&eI(n,t),message:()=>{let o=this.isNot?"not to":"to";return Lt(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveTextContent`,"element",""),i?"Checking with empty string will always match, use .toBeEmptyDOMElement() instead":`Expected element ${o} have text content`,t,"Received",n)}}}function el(e,t){Qe(e,el,this);let r=GN(e),n=arguments.length===1,i=!1;return n?i=r!=="":i=t instanceof RegExp?t.test(r):this.equals(r,t),{pass:i,message:()=>{let o=this.isNot?"not to":"to";return Lt(this,this.utils.matcherHint(`${this.isNot?".not":""}.${el.name}`,"element",""),`Expected element ${o} have accessible description`,t,"Received",r)}}}var Ji="aria-invalid",uI=["false"];function f0(e,t){Qe(e,f0,this);let r=this.isNot?"not to":"to",n=this.isNot?".not.toHaveAccessibleErrorMessage":".toHaveAccessibleErrorMessage",i=e.getAttribute("aria-errormessage");if(i&&/\s+/.test(i))return{pass:!1,message:()=>Lt(this,this.utils.matcherHint(n,"element"),"Expected element's `aria-errormessage` attribute to be empty or a single, valid ID","","Received",`aria-errormessage="${i}"`)};let o=e.getAttribute(Ji);if(!e.hasAttribute(Ji)||uI.includes(o))return{pass:!1,message:()=>Lt(this,this.utils.matcherHint(n,"element"),"Expected element to be marked as invalid with attribute",`${Ji}="${String(!0)}"`,"Received",e.hasAttribute("aria-invalid")?`${Ji}="${e.getAttribute(Ji)}`:null)};let a=Cs(e.ownerDocument.getElementById(i)?.textContent??"");return{pass:t===void 0?!!a:t instanceof RegExp?t.test(a):this.equals(a,t),message:()=>Lt(this,this.utils.matcherHint(n,"element"),`Expected element ${r} have accessible error message`,t??"","Received",a)}}var lI=dI(dp.elementRoles);function tl(e,t){Qe(e,tl,this);let r=cI(e);return{pass:r.some(n=>n===t),message:()=>{let n=this.isNot?"not to":"to";return Lt(this,this.utils.matcherHint(`${this.isNot?".not":""}.${tl.name}`,"element",""),`Expected element ${n} have role`,t,"Received",r.join(", "))}}}function cI(e){return e.hasAttribute("role")?e.getAttribute("role").split(" ").filter(Boolean):pI(e)}function pI(e){for(let{match:t,roles:r}of lI)if(t(e))return[...r];return[]}function dI(e){function t({name:a,attributes:s}){return`${a}${s.map(({name:p,value:l,constraints:d=[]})=>d.indexOf("undefined")!==-1?`:not([${p}])`:l?`[${p}="${l}"]`:`[${p}]`).join("")}`}function r({attributes:a=[]}){return a.length}function n({specificity:a},{specificity:s}){return s-a}function i(a){let{attributes:s=[]}=a,p=s.findIndex(d=>d.value&&d.name==="type"&&d.value==="text");p>=0&&(s=[...s.slice(0,p),...s.slice(p+1)]);let l=t({...a,attributes:s});return d=>p>=0&&d.type!=="text"?!1:d.matches(l)}let o=[];for(let[a,s]of e.entries())o=[...o,{match:i(a),roles:Array.from(s),specificity:r(a)}];return o.sort(n)}function rl(e,t){Qe(e,rl,this);let r=WN(e),n=arguments.length===1,i=!1;return n?i=r!=="":i=t instanceof RegExp?t.test(r):this.equals(r,t),{pass:i,message:()=>{let o=this.isNot?"not to":"to";return Lt(this,this.utils.matcherHint(`${this.isNot?".not":""}.${rl.name}`,"element",""),`Expected element ${o} have accessible name`,t,"Received",r)}}}function Sf(e,t,r){return r===void 0?t:`${t}=${e(r)}`}function fI(e,t,r){return r===void 0?`element.hasAttribute(${e(t)})`:`element.getAttribute(${e(t)}) === ${e(r)}`}function h0(e,t,r){Qe(e,h0,this);let n=r!==void 0,i=e.hasAttribute(t),o=e.getAttribute(t);return{pass:n?i&&this.equals(o,r):i,message:()=>{let a=this.isNot?"not to":"to",s=i?Sf(this.utils.stringify,t,o):null,p=this.utils.matcherHint(`${this.isNot?".not":""}.toHaveAttribute`,"element",this.utils.printExpected(t),{secondArgument:n?this.utils.printExpected(r):void 0,comment:fI(this.utils.stringify,t,r)});return Lt(this,p,`Expected the element ${a} have attribute`,Sf(this.utils.stringify,t,r),"Received",s)}}}function hI(e){let t=e.pop(),r,n;return typeof t=="object"&&!(t instanceof RegExp)?(r=e,n=t):(r=e.concat(t),n={exact:!1}),{expectedClassNames:r,options:n}}function xf(e){return e?e.split(/\s+/).filter(t=>t.length>0):[]}function Df(e,t){return e.every(r=>typeof r=="string"?t.includes(r):t.some(n=>r.test(n)))}function m0(e,...t){Qe(e,m0,this);let{expectedClassNames:r,options:n}=hI(t),i=xf(e.getAttribute("class")),o=r.reduce((s,p)=>s.concat(typeof p=="string"||!p?xf(p):p),[]),a=o.some(s=>s instanceof RegExp);if(n.exact&&a)throw new Error("Exact option does not support RegExp expected class names");return n.exact?{pass:Df(o,i)&&o.length===i.length,message:()=>{let s=this.isNot?"not to":"to";return Lt(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveClass`,"element",this.utils.printExpected(o.join(" "))),`Expected the element ${s} have EXACTLY defined classes`,o.join(" "),"Received",i.join(" "))}}:o.length>0?{pass:Df(o,i),message:()=>{let s=this.isNot?"not to":"to";return Lt(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveClass`,"element",this.utils.printExpected(o.join(" "))),`Expected the element ${s} have class`,o.join(" "),"Received",i.join(" "))}}:{pass:this.isNot?i.length>0:!1,message:()=>this.isNot?Lt(this,this.utils.matcherHint(".not.toHaveClass","element",""),"Expected the element to have classes","(none)","Received",i.join(" ")):[this.utils.matcherHint(".toHaveClass","element"),"At least one expected class must be provided."].join(`
|
|
223
|
+
`)}}function mI(e,t){let r={},n=e.createElement("div");return Object.keys(t).forEach(i=>{n.style[i]=t[i],r[i]=n.style[i]}),r}function yI(e,t){return!!Object.keys(e).length&&Object.entries(e).every(([r,n])=>{let i=r.startsWith("--"),o=[r];return i||o.push(r.toLowerCase()),o.some(a=>t[a]===n||t.getPropertyValue(a)===n)})}function Rf(e){return Object.keys(e).sort().map(t=>`${t}: ${e[t]};`).join(`
|
|
224
|
+
`)}function gI(e,t,r){let n=Array.from(r).filter(i=>t[i]!==void 0).reduce((i,o)=>Object.assign(i,{[o]:r.getPropertyValue(o)}),{});return e(Rf(t),Rf(n)).replace(`${YN.default.red("+ Received")}
|
|
225
|
+
`,"")}function nl(e,t){Qe(e,nl,this);let r=typeof t=="object"?t:ZN(t,nl,this),{getComputedStyle:n}=e.ownerDocument.defaultView,i=mI(e.ownerDocument,r),o=n(e);return{pass:yI(i,o),message:()=>{let a=`${this.isNot?".not":""}.toHaveStyle`;return[this.utils.matcherHint(a,"element",""),gI(this.utils.diff,i,o)].join(`
|
|
226
|
+
|
|
227
|
+
`)}}}function y0(e){return Qe(e,y0,this),{pass:e.ownerDocument.activeElement===e,message:()=>[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
|
+
`)}}function bI(e){let 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":{let 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)}}function EI(e,t){let r=[...e.querySelectorAll(`[name="${(0,KN.default)(t)}"]`)];if(r.length!==0)switch(r.length){case 1:return s0(r[0]);default:return bI(r)}}function vI(e){return/\[\]$/.test(e)?e.slice(0,-2):e}function AI(e){return Array.from(e.elements).map(t=>t.name).reduce((t,r)=>({...t,[vI(r)]:EI(e,r)}),{})}function g0(e,t){if(Qe(e,g0,this),!e.elements)throw new Error("toHaveFormValues must be called on a form or a fieldset");let r=AI(e);return{pass:Object.entries(t).every(([n,i])=>fp(r[n],i)),message:()=>{let n=this.isNot?"not to":"to",i=`${this.isNot?".not":""}.toHaveFormValues`,o=Object.keys(r).filter(a=>t.hasOwnProperty(a)).reduce((a,s)=>({...a,[s]:r[s]}),{});return[this.utils.matcherHint(i,"element",""),`Expected the element ${n} have form values`,this.utils.diff(t,o)].join(`
|
|
229
|
+
|
|
230
|
+
`)}}}function wI(e){let{getComputedStyle:t}=e.ownerDocument.defaultView,{display:r,visibility:n,opacity:i}=t(e);return r!=="none"&&n!=="hidden"&&n!=="collapse"&&i!=="0"&&i!==0}function CI(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}function b0(e,t){return wI(e)&&CI(e,t)&&(!e.parentElement||b0(e.parentElement,e))}function E0(e){Qe(e,E0,this);let t=e.ownerDocument===e.getRootNode({composed:!0}),r=t&&b0(e);return{pass:r,message:()=>{let 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
|
+
`)}}}var _I=["fieldset","input","select","optgroup","option","button","textarea"];function TI(e,t){return bn(e)==="legend"&&bn(t)==="fieldset"&&e.isSameNode(Array.from(t.children).find(r=>bn(r)==="legend"))}function SI(e,t){return A0(t)&&!TI(e,t)}function xI(e){return e.includes("-")}function v0(e){let t=bn(e);return _I.includes(t)||xI(t)}function A0(e){return v0(e)&&e.hasAttribute("disabled")}function w0(e){let t=e.parentElement;return!!t&&(SI(e,t)||w0(t))}function C0(e){return v0(e)&&(A0(e)||w0(e))}function _0(e){Qe(e,_0,this);let t=C0(e);return{pass:t,message:()=>{let 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
|
+
`)}}}function T0(e){Qe(e,T0,this);let t=!C0(e);return{pass:t,message:()=>{let 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
|
+
`)}}}var DI=["select","textarea"],RI=["input","select","textarea"],PI=["color","hidden","range","submit","image","reset"],OI=["checkbox","combobox","gridcell","listbox","radiogroup","spinbutton","textbox","tree"];function FI(e){return DI.includes(bn(e))&&e.hasAttribute("required")}function NI(e){return bn(e)==="input"&&e.hasAttribute("required")&&(e.hasAttribute("type")&&!PI.includes(e.getAttribute("type"))||!e.hasAttribute("type"))}function II(e){return e.hasAttribute("aria-required")&&e.getAttribute("aria-required")==="true"&&(RI.includes(bn(e))||e.hasAttribute("role")&&OI.includes(e.getAttribute("role")))}function S0(e){Qe(e,S0,this);let t=FI(e)||NI(e)||II(e);return{pass:t,message:()=>{let 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
|
+
`)}}}var BI=["form","input","select","textarea"];function kI(e){return e.hasAttribute("aria-invalid")&&e.getAttribute("aria-invalid")!=="false"}function MI(e){return BI.includes(bn(e))}function x0(e){let t=kI(e);return MI(e)?t||!e.checkValidity():t}function D0(e){Qe(e,D0,this);let t=x0(e);return{pass:t,message:()=>{let 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
|
+
`)}}}function R0(e){Qe(e,R0,this);let t=!x0(e);return{pass:t,message:()=>{let 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
|
+
`)}}}function P0(e,t){if(Qe(e,P0,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");let r=s0(e),n=t!==void 0,i=t,o=r;return t==r&&t!==r&&(i=`${t} (${typeof t})`,o=`${r} (${typeof r})`),{pass:n?fp(r,t):!!r,message:()=>{let a=this.isNot?"not to":"to",s=this.utils.matcherHint(`${this.isNot?".not":""}.toHaveValue`,"element",t);return Lt(this,s,`Expected the element ${a} have value`,n?i:"(any)","Received",o)}}}function O0(e,t){Qe(e,O0,this);let 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.`);let n=qI(r,e),i=jI(t),o=i.filter(p=>n.some(l=>p instanceof RegExp?p.test(l):this.equals(l,String(p)))).length,a=o===n.length,s=o===i.length;return{pass:a&&s,message:()=>Lt(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveDisplayValue`,"element",""),`Expected element ${this.isNot?"not ":""}to have display value`,t,"Received",n)}}function qI(e,t){return e==="select"?Array.from(t).filter(r=>r.selected).map(r=>r.textContent):[t.value]}function jI(e){return e instanceof Array?e:[e]}function F0(e){Qe(e,F0,this);let t=()=>e.tagName.toLowerCase()==="input"&&["checkbox","radio"].includes(e.type),r=()=>N0(e.getAttribute("role"))&&["true","false"].includes(e.getAttribute("aria-checked"));if(!t()&&!r())return{pass:!1,message:()=>`only inputs with type="checkbox" or type="radio" or elements with ${LI()} and a valid aria-checked attribute can be used with .toBeChecked(). Use .toHaveValue() instead`};let n=()=>t()?e.checked:e.getAttribute("aria-checked")==="true";return{pass:n(),message:()=>{let i=n()?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeChecked`,"element",""),"",`Received element ${i} checked:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
237
|
+
`)}}}function LI(){return oI(VI().map(e=>`role="${e}"`),{lastWordConnector:" or "})}function VI(){return dp.roles.keys().filter(N0)}function N0(e){return dp.roles.get(e)?.props["aria-checked"]!==void 0}function I0(e){Qe(e,I0,this);let t=()=>e.tagName.toLowerCase()==="input"&&e.type==="checkbox",r=()=>e.getAttribute("role")==="checkbox";if(!t()&&!r())return{pass:!1,message:()=>'only inputs with type="checkbox" or elements with role="checkbox" and a valid aria-checked attribute can be used with .toBePartiallyChecked(). Use .toHaveValue() instead'};let n=()=>{let i=e.getAttribute("aria-checked")==="mixed";return t()&&e.indeterminate||i};return{pass:n(),message:()=>{let i=n()?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBePartiallyChecked`,"element",""),"",`Received element ${i} partially checked:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
238
|
+
`)}}}function B0(e,t){ws("toHaveDescription","Please use toHaveAccessibleDescription."),Qe(e,B0,this);let r=t!==void 0,n=(e.getAttribute("aria-describedby")||"").split(/\s+/).filter(Boolean),i="";if(n.length>0){let o=e.ownerDocument,a=n.map(s=>o.getElementById(s)).filter(Boolean);i=Cs(a.map(s=>s.textContent).join(" "))}return{pass:r?t instanceof RegExp?t.test(i):this.equals(i,t):!!i,message:()=>{let o=this.isNot?"not to":"to";return Lt(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveDescription`,"element",""),`Expected the element ${o} have description`,this.utils.printExpected(t),"Received",this.utils.printReceived(i))}}}function k0(e,t){if(ws("toHaveErrorMessage","Please use toHaveAccessibleErrorMessage."),Qe(e,k0,this),!e.hasAttribute("aria-invalid")||e.getAttribute("aria-invalid")==="false"){let o=this.isNot?".not":"";return{pass:!1,message:()=>Lt(this,this.utils.matcherHint(`${o}.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(""))}}let r=t!==void 0,n=(e.getAttribute("aria-errormessage")||"").split(/\s+/).filter(Boolean),i="";if(n.length>0){let o=e.ownerDocument,a=n.map(s=>o.getElementById(s)).filter(Boolean);i=Cs(a.map(s=>s.textContent).join(" "))}return{pass:r?t instanceof RegExp?t.test(i):this.equals(i,t):!!i,message:()=>{let o=this.isNot?"not to":"to";return Lt(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveErrorMessage`,"element",""),`Expected the element ${o} have error message`,this.utils.printExpected(t),"Received",this.utils.printReceived(i))}}}function $I(e){let 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"";let 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))){let o=e===r.startContainer||e.contains(r.startContainer),a=e===r.endContainer||e.contains(r.endContainer);t.removeAllRanges(),(o||a)&&(n.selectNodeContents(e),o&&n.setStart(r.startContainer,r.startOffset),a&&n.setEnd(r.endContainer,r.endOffset),t.addRange(n))}let i=t.toString();return t.removeAllRanges(),t.addRange(r),i}function M0(e,t){Qe(e,M0,this);let r=t!==void 0;if(r&&typeof t!="string")throw new Error("expected selection must be a string or undefined");let n=$I(e);return{pass:r?fp(n,t):!!n,message:()=>{let i=this.isNot?"not to":"to",o=this.utils.matcherHint(`${this.isNot?".not":""}.toHaveSelection`,"element",t);return Lt(this,o,`Expected the element ${i} have selection`,r?t:"(any)","Received",n)}}}function q0(e){Qe(e,q0,this);let t=(e.getAttribute("role")||"").split(" ").map(i=>i.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:()=>'Only button or input with type="button" or element with role="button" and a valid aria-pressed attribute can be used with .toBePressed()'}:{pass:r&&n==="true",message:()=>{let i=this.utils.matcherHint(`${this.isNot?".not":""}.toBePressed`,"element","");return Lt(this,i,"Expected element to have",`aria-pressed="${this.isNot?"false":"true"}"`,"Received",`aria-pressed="${n}"`)}}}function j0(e){Qe(e,j0,this);let t=(e.getAttribute("role")||"").split(" ").map(i=>i.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:()=>'Only button or input with type="button" or element with role="button" and a valid aria-pressed attribute can be used with .toBePartiallyPressed()'}:{pass:r&&n==="mixed",message:()=>{let i=this.isNot?"not to":"to",o=this.utils.matcherHint(`${this.isNot?".not":""}.toBePartiallyPressed`,"element","");return Lt(this,o,`Expected element ${i} have`,'aria-pressed="mixed"',"Received",`aria-pressed="${n}"`)}}}var UI=1,L0=2,V0=4,JI=8,HI=16,GI=32,Pf={[UI]:"Node.DOCUMENT_POSITION_DISCONNECTED",[L0]:"Node.DOCUMENT_POSITION_PRECEDING",[V0]:"Node.DOCUMENT_POSITION_FOLLOWING",[JI]:"Node.DOCUMENT_POSITION_CONTAINS",[HI]:"Node.DOCUMENT_POSITION_CONTAINED_BY",[GI]:"Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC"};function zI(e){return e in Pf?`${Pf[e]} (${e})`:`Unknown document position (${e})`}function $0(e,t){return function(r,n){Qe(r,il,this),Qe(n,il,this);let i=r.compareDocumentPosition(n);return{pass:i===t,message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.${e}`,"element","secondElement"),"",`Received: ${zI(i)}`].join(`
|
|
239
|
+
`)}}}function il(e,t){return $0("toAppearBefore",V0).apply(this,[e,t])}function WI(e,t){return $0("toAppearAfter",L0).apply(this,[e,t])}It(Bm(),1);It(Hl(),1);It(km(),1);It(Mm(),1);var ru,Of;function YI(){if(Of)return ru;Of=1;var e,t,r,n,i,o,a,s,p,l,d,f,h,m,b,E,w,A,S;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,b=/(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y,d=/(?: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,S=/[\t\v\f\ufeff\p{Zs}]+/yu,s=/\r?\n|[\r\u2028\u2029]/y,p=/\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y,m=/\/\/.*/y,r=/[<>.:={}]|\/(?![\/*])/y,t=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,n=/(['"])(?:(?!\1)[^])*(\1)?/y,i=/[^<>{}]+/y,A=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,w=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,o=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,a=/^(?:return|throw|yield)$/,l=RegExp(s.source),ru=function*(k,{jsx:O=!1}={}){var R,y,T,_,D,J,M,G,L,I,$,Y,X,oe;for({length:J}=k,_=0,D="",oe=[{tag:"JS"}],R=[],$=0,Y=!1;_<J;){switch(G=oe[oe.length-1],G.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if(k[_]==="/"&&(A.test(D)||o.test(D))&&(h.lastIndex=_,M=h.exec(k))){_=h.lastIndex,D=M[0],Y=!0,yield{type:"RegularExpressionLiteral",value:M[0],closed:M[1]!==void 0&&M[1]!=="\\"};continue}if(f.lastIndex=_,M=f.exec(k)){switch(X=M[0],L=f.lastIndex,I=X,X){case"(":D==="?NonExpressionParenKeyword"&&oe.push({tag:"JSNonExpressionParen",nesting:$}),$++,Y=!1;break;case")":$--,Y=!0,G.tag==="JSNonExpressionParen"&&$===G.nesting&&(oe.pop(),I="?NonExpressionParenEnd",Y=!1);break;case"{":f.lastIndex=0,T=!w.test(D)&&(A.test(D)||o.test(D)),R.push(T),Y=!1;break;case"}":switch(G.tag){case"InterpolationInTemplate":if(R.length===G.nesting){E.lastIndex=_,M=E.exec(k),_=E.lastIndex,D=M[0],M[1]==="${"?(D="?InterpolationInTemplate",Y=!1,yield{type:"TemplateMiddle",value:M[0]}):(oe.pop(),Y=!0,yield{type:"TemplateTail",value:M[0],closed:M[1]==="`"});continue}break;case"InterpolationInJSX":if(R.length===G.nesting){oe.pop(),_+=1,D="}",yield{type:"JSXPunctuator",value:"}"};continue}}Y=R.pop(),I=Y?"?ExpressionBraceEnd":"}";break;case"]":Y=!0;break;case"++":case"--":I=Y?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(O&&(A.test(D)||o.test(D))){oe.push({tag:"JSXTag"}),_+=1,D="<",yield{type:"JSXPunctuator",value:X};continue}Y=!1;break;default:Y=!1}_=L,D=I,yield{type:"Punctuator",value:X};continue}if(e.lastIndex=_,M=e.exec(k)){switch(_=e.lastIndex,I=M[0],M[0]){case"for":case"if":case"while":case"with":D!=="."&&D!=="?."&&(I="?NonExpressionParenKeyword")}D=I,Y=!o.test(M[0]),yield{type:M[1]==="#"?"PrivateIdentifier":"IdentifierName",value:M[0]};continue}if(b.lastIndex=_,M=b.exec(k)){_=b.lastIndex,D=M[0],Y=!0,yield{type:"StringLiteral",value:M[0],closed:M[2]!==void 0};continue}if(d.lastIndex=_,M=d.exec(k)){_=d.lastIndex,D=M[0],Y=!0,yield{type:"NumericLiteral",value:M[0]};continue}if(E.lastIndex=_,M=E.exec(k)){_=E.lastIndex,D=M[0],M[1]==="${"?(D="?InterpolationInTemplate",oe.push({tag:"InterpolationInTemplate",nesting:R.length}),Y=!1,yield{type:"TemplateHead",value:M[0]}):(Y=!0,yield{type:"NoSubstitutionTemplate",value:M[0],closed:M[1]==="`"});continue}break;case"JSXTag":case"JSXTagEnd":if(r.lastIndex=_,M=r.exec(k)){switch(_=r.lastIndex,I=M[0],M[0]){case"<":oe.push({tag:"JSXTag"});break;case">":oe.pop(),D==="/"||G.tag==="JSXTagEnd"?(I="?JSX",Y=!0):oe.push({tag:"JSXChildren"});break;case"{":oe.push({tag:"InterpolationInJSX",nesting:R.length}),I="?InterpolationInJSX",Y=!1;break;case"/":D==="<"&&(oe.pop(),oe[oe.length-1].tag==="JSXChildren"&&oe.pop(),oe.push({tag:"JSXTagEnd"}))}D=I,yield{type:"JSXPunctuator",value:M[0]};continue}if(t.lastIndex=_,M=t.exec(k)){_=t.lastIndex,D=M[0],yield{type:"JSXIdentifier",value:M[0]};continue}if(n.lastIndex=_,M=n.exec(k)){_=n.lastIndex,D=M[0],yield{type:"JSXString",value:M[0],closed:M[2]!==void 0};continue}break;case"JSXChildren":if(i.lastIndex=_,M=i.exec(k)){_=i.lastIndex,D=M[0],yield{type:"JSXText",value:M[0]};continue}switch(k[_]){case"<":oe.push({tag:"JSXTag"}),_++,D="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":oe.push({tag:"InterpolationInJSX",nesting:R.length}),_++,D="?InterpolationInJSX",Y=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(S.lastIndex=_,M=S.exec(k)){_=S.lastIndex,yield{type:"WhiteSpace",value:M[0]};continue}if(s.lastIndex=_,M=s.exec(k)){_=s.lastIndex,Y=!1,a.test(D)&&(D="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:M[0]};continue}if(p.lastIndex=_,M=p.exec(k)){_=p.lastIndex,l.test(M[0])&&(Y=!1,a.test(D)&&(D="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:M[0],closed:M[1]!==void 0};continue}if(m.lastIndex=_,M=m.exec(k)){_=m.lastIndex,Y=!1,yield{type:"SingleLineComment",value:M[0]};continue}y=String.fromCodePoint(k.codePointAt(_)),_+=y.length,D=y,Y=!1,yield{type:G.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:y}}},ru}var KI=YI();Hg(KI);var U0={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(U0.keyword);new Set(U0.strict);function Aa(e,t){if(!e)throw new Error(t)}function si(e,t){return typeof t===e}function XI(e){return e instanceof Promise}function vo(e,t,r){Object.defineProperty(e,t,r)}function pi(e,t,r){vo(e,t,{value:r,configurable:!0,writable:!0})}var En=Symbol.for("tinyspy:spy"),QI=new Set,ZI=e=>{e.called=!1,e.callCount=0,e.calls=[],e.results=[],e.resolves=[],e.next=[]},eB=e=>(vo(e,En,{value:{reset:()=>ZI(e[En])}}),e[En]),ol=e=>e[En]||eB(e);function tB(e){Aa(si("function",e)||si("undefined",e),"cannot spy on a non-function value");let t=function(...n){let i=ol(t);i.called=!0,i.callCount++,i.calls.push(n);let o=i.next.shift();if(o){i.results.push(o);let[d,f]=o;if(d==="ok")return f;throw f}let a,s="ok",p=i.results.length;if(i.impl)try{new.target?a=Reflect.construct(i.impl,n,new.target):a=i.impl.apply(this,n),s="ok"}catch(d){throw a=d,s="error",i.results.push([s,d]),d}let l=[s,a];return XI(a)&&a.then(d=>i.resolves[p]=["ok",d],d=>i.resolves[p]=["error",d]),i.results.push(l),a};pi(t,"_isMockFunction",!0),pi(t,"length",e?e.length:0),pi(t,"name",e&&e.name||"spy");let r=ol(t);return r.reset(),r.impl=e,t}function rB(e){return!!e&&e._isMockFunction===!0}var J0=(e,t)=>{let r=Object.getOwnPropertyDescriptor(e,t);if(r)return[e,r];let n=Object.getPrototypeOf(e);for(;n!==null;){let i=Object.getOwnPropertyDescriptor(n,t);if(i)return[n,i];n=Object.getPrototypeOf(n)}},Ff=(e,t)=>{t!=null&&typeof t=="function"&&t.prototype!=null&&Object.setPrototypeOf(e.prototype,t.prototype)};function H0(e,t,r){Aa(!si("undefined",e),"spyOn could not find an object to spy upon"),Aa(si("object",e)||si("function",e),"cannot spyOn on a primitive value");let[n,i]=(()=>{if(!si("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")})(),[o,a]=J0(e,n)||[];Aa(a||n in e,`${String(n)} does not exist`);let s=!1;i==="value"&&a&&!a.value&&a.get&&(i="get",s=!0,r=a.get());let p;a?p=a[i]:i!=="value"?p=()=>e[n]:p=e[n],p&&aB(p)&&(p=p[En].getOriginal());let l=m=>{let{value:b,...E}=a||{configurable:!0,writable:!0};i!=="value"&&delete E.writable,E[i]=m,vo(e,n,E)},d=()=>{o!==e?Reflect.deleteProperty(e,n):a&&!p?vo(e,n,a):l(p)};r||(r=p);let f=oB(tB(r),r);i==="value"&&Ff(f,p);let h=f[En];return pi(h,"restore",d),pi(h,"getOriginal",()=>s?p():p),pi(h,"willCall",m=>(h.impl=m,f)),l(s?()=>(Ff(f,r),f):f),QI.add(f),f}var nB=new Set(["length","name","prototype"]);function iB(e){let t=new Set,r={};for(;e&&e!==Object.prototype&&e!==Function.prototype;){let n=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(let i of n)r[i]||nB.has(i)||(t.add(i),r[i]=Object.getOwnPropertyDescriptor(e,i));e=Object.getPrototypeOf(e)}return{properties:t,descriptors:r}}function oB(e,t){if(!t||En in t)return e;let{properties:r,descriptors:n}=iB(t);for(let i of r){let o=n[i];J0(e,i)||vo(e,i,o)}return e}function aB(e){return rB(e)&&"getOriginal"in e[En]}var Uo=new Set;function di(e){return typeof e=="function"&&"_isMockFunction"in e&&e._isMockFunction}function sB(e,t,r){let n=r?{[{get:"getter",set:"setter"}[r]]:t}:t,i,o=lB(e,t),a=o&&o[r||"value"];di(a)&&(i=a.mock._state());try{let s=H0(e,n),p=G0(s);return i&&p.mock._state(i),p}catch(s){throw s instanceof TypeError&&Symbol.toStringTag&&e[Symbol.toStringTag]==="Module"&&(s.message.includes("Cannot redefine property")||s.message.includes("Cannot replace module namespace")||s.message.includes("can't redefine non-configurable property"))?new TypeError(`Cannot spy on export "${String(n)}". Module namespace is not configurable in ESM. See: https://vitest.dev/guide/browser/#limitations`,{cause:s}):s}}var uB=0;function G0(e){let t=e,r,n=[],i=!1,o=[],a=[],s=[],p=ol(e),l={get calls(){return p.calls},get contexts(){return a},get instances(){return o},get invocationCallOrder(){return s},get results(){return p.results.map(([m,b])=>({type:m==="error"?"throw":"return",value:b}))},get settledResults(){return p.resolves.map(([m,b])=>({type:m==="error"?"rejected":"fulfilled",value:b}))},get lastCall(){return p.calls[p.calls.length-1]},_state(m){return m&&(r=m.implementation,n=m.onceImplementations,i=m.implementationChangedTemporarily),{implementation:r,onceImplementations:n,implementationChangedTemporarily:i}}};function d(...m){return o.push(this),a.push(this),s.push(++uB),(i?r:n.shift()||r||p.getOriginal()||(()=>{})).apply(this,m)}let f=t.name;t.getMockName=()=>f||"vi.fn()",t.mockName=m=>(f=m,t),t.mockClear=()=>(p.reset(),o=[],a=[],s=[],t),t.mockReset=()=>(t.mockClear(),r=void 0,n=[],t),t.mockRestore=()=>(t.mockReset(),p.restore(),t),Symbol.dispose&&(t[Symbol.dispose]=()=>t.mockRestore()),t.getMockImplementation=()=>i?r:n.at(0)||r,t.mockImplementation=m=>(r=m,p.willCall(d),t),t.mockImplementationOnce=m=>(n.push(m),t);function h(m,b){let E=r;r=m,p.willCall(d),i=!0;let w=()=>{r=E,i=!1},A=b();return typeof A=="object"&&A&&typeof A.then=="function"?A.then(()=>(w(),t)):(w(),t)}return t.withImplementation=h,t.mockReturnThis=()=>t.mockImplementation(function(){return this}),t.mockReturnValue=m=>t.mockImplementation(()=>m),t.mockReturnValueOnce=m=>t.mockImplementationOnce(()=>m),t.mockResolvedValue=m=>t.mockImplementation(()=>Promise.resolve(m)),t.mockResolvedValueOnce=m=>t.mockImplementationOnce(()=>Promise.resolve(m)),t.mockRejectedValue=m=>t.mockImplementation(()=>Promise.reject(m)),t.mockRejectedValueOnce=m=>t.mockImplementationOnce(()=>Promise.reject(m)),Object.defineProperty(t,"mock",{get:()=>l}),p.willCall(d),Uo.add(t),t}function Nf(e){let t=G0(H0({spy:e||function(){}},"spy"));return e&&t.mockImplementation(e),t}function lB(e,t){let r=Object.getOwnPropertyDescriptor(e,t);if(r)return r;let n=Object.getPrototypeOf(e);for(;n!==null;){let i=Object.getOwnPropertyDescriptor(n,t);if(i)return i;n=Object.getPrototypeOf(n)}}var Ao=Symbol.for("matchers-object"),wo=Symbol.for("$$jest-matchers-object-storybook"),hp=Symbol.for("expect-global"),al=Symbol.for("asymmetric-matchers-object"),cB={toSatisfy(e,t,r){let{printReceived:n,printExpected:i,matcherHint:o}=this.utils,a=t(e);return{pass:a,message:()=>a?`${o(".not.toSatisfy","received","")}
|
|
240
|
+
|
|
241
|
+
Expected value to not satisfy:
|
|
242
|
+
${r||i(t)}
|
|
243
|
+
Received:
|
|
244
|
+
${n(e)}`:`${o(".toSatisfy","received","")}
|
|
245
|
+
|
|
246
|
+
Expected value to satisfy:
|
|
247
|
+
${r||i(t)}
|
|
248
|
+
|
|
249
|
+
Received:
|
|
250
|
+
${n(e)}`}},toBeOneOf(e,t){let{equals:r,customTesters:n}=this,{printReceived:i,printExpected:o,matcherHint:a}=this.utils;if(!Array.isArray(t))throw new TypeError(`You must provide an array to ${a(".toBeOneOf")}, not '${typeof t}'.`);let s=t.length===0||t.some(p=>r(p,e,n));return{pass:s,message:()=>s?`${a(".not.toBeOneOf","received","")}
|
|
251
|
+
|
|
252
|
+
Expected value to not be one of:
|
|
253
|
+
${o(t)}
|
|
254
|
+
Received:
|
|
255
|
+
${i(e)}`:`${a(".toBeOneOf","received","")}
|
|
256
|
+
|
|
257
|
+
Expected value to be one of:
|
|
258
|
+
${o(t)}
|
|
259
|
+
|
|
260
|
+
Received:
|
|
261
|
+
${i(e)}`}}},La=Dt.green,mp=Dt.red,pB=Dt.inverse,dB=Dt.bold,ln=Dt.dim;function fB(e,t="received",r="expected",n={}){let{comment:i="",isDirectExpectCall:o=!1,isNot:a=!1,promise:s="",secondArgument:p="",expectedColor:l=La,receivedColor:d=mp,secondArgumentColor:f=La}=n,h="",m="expect";return!o&&t!==""&&(h+=ln(`${m}(`)+d(t),m=")"),s!==""&&(h+=ln(`${m}.`)+s,m=""),a&&(h+=`${ln(`${m}.`)}not`,m=""),e.includes(".")?m+=e:(h+=ln(`${m}.`)+e,m=""),r===""?m+="()":(h+=ln(`${m}(`)+l(r),p&&(h+=ln(", ")+f(p)),m=")"),i!==""&&(m+=` // ${i}`),m!==""&&(h+=ln(m)),h}var hB="·";function z0(e){return e.replace(/\s+$/gm,t=>hB.repeat(t.length))}function mB(e){return mp(z0(lr(e)))}function yB(e){return La(z0(lr(e)))}function W0(){return{EXPECTED_COLOR:La,RECEIVED_COLOR:mp,INVERTED_COLOR:pB,BOLD_WEIGHT:dB,DIM_COLOR:ln,diff:Ii,matcherHint:fB,printReceived:mB,printExpected:yB,printDiffOrStringify:ab,printWithType:gB}}function gB(e,t,r){let n=Oa(t),i=n!=="null"&&n!=="undefined"?`${e} has type: ${n}
|
|
262
|
+
`:"",o=`${e} has value: ${r(t)}`;return i+o}function yp(){return globalThis[wo].customEqualityTesters}function it(e,t,r,n){return r=r||[],no(e,t,[],[],r,n?Y0:vB)}function If(e){return!!e&&typeof e=="object"&&"asymmetricMatch"in e&&_r("Function",e.asymmetricMatch)}function bB(e,t){let r=If(e),n=If(t);if(!(r&&n)){if(r)return e.asymmetricMatch(t);if(n)return t.asymmetricMatch(e)}}function no(e,t,r,n,i,o){let a=!0,s=bB(e,t);if(s!==void 0)return s;let p={equals:it};for(let b=0;b<i.length;b++){let E=i[b].call(p,e,t,i);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;let l=Object.prototype.toString.call(e);if(l!==Object.prototype.toString.call(t))return!1;switch(l){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]":{let b=+e,E=+t;return b===E||Number.isNaN(b)&&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(kf(e)&&kf(t))return e.isEqualNode(t);let d=r.length;for(;d--;){if(r[d]===e)return n[d]===t;if(n[d]===t)return!1}if(r.push(e),n.push(t),l==="[object Array]"&&e.length!==t.length)return!1;if(e instanceof Error&&t instanceof Error)try{return EB(e,t,r,n,i,o)}finally{r.pop(),n.pop()}let f=Bf(e,o),h,m=f.length;if(Bf(t,o).length!==m)return!1;for(;m--;)if(h=f[m],a=o(t,h)&&no(e[h],t[h],r,n,i,o),!a)return!1;return r.pop(),n.pop(),a}function EB(e,t,r,n,i,o){let a=Object.getPrototypeOf(e)===Object.getPrototypeOf(t)&&e.name===t.name&&e.message===t.message;return typeof t.cause<"u"&&a&&(a=no(e.cause,t.cause,r,n,i,o)),e instanceof AggregateError&&t instanceof AggregateError&&a&&(a=no(e.errors,t.errors,r,n,i,o)),a&&(a=no({...e},{...t},r,n,i,o)),a}function Bf(e,t){let r=[];for(let n in e)t(e,n)&&r.push(n);return r.concat(Object.getOwnPropertySymbols(e).filter(n=>Object.getOwnPropertyDescriptor(e,n).enumerable))}function vB(e,t){return Y0(e,t)&&e[t]!==void 0}function Y0(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function _r(e,t){return Object.prototype.toString.apply(t)===`[object ${e}]`}function kf(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"}var K0="@@__IMMUTABLE_KEYED__@@",X0="@@__IMMUTABLE_SET__@@",AB="@@__IMMUTABLE_LIST__@@",_s="@@__IMMUTABLE_ORDERED__@@",wB="@@__IMMUTABLE_RECORD__@@";function CB(e){return!!(e&&e[K0]&&!e[_s])}function _B(e){return!!(e&&e[X0]&&!e[_s])}function Ts(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function TB(e){return!!(e&&Ts(e)&&e[AB])}function SB(e){return!!(e&&Ts(e)&&e[K0]&&e[_s])}function xB(e){return!!(e&&Ts(e)&&e[X0]&&e[_s])}function DB(e){return!!(e&&Ts(e)&&e[wB])}var Q0=Symbol.iterator;function Mf(e){return!!(e!=null&&e[Q0])}function hr(e,t,r=[],n=[],i=[]){if(typeof e!="object"||typeof t!="object"||Array.isArray(e)||Array.isArray(t)||!Mf(e)||!Mf(t))return;if(e.constructor!==t.constructor)return!1;let o=n.length;for(;o--;)if(n[o]===e)return i[o]===t;n.push(e),i.push(t);let a=[...r.filter(l=>l!==hr),s];function s(l,d){return hr(l,d,[...r],[...n],[...i])}if(e.size!==void 0){if(e.size!==t.size)return!1;if(_r("Set",e)||_B(e)){let l=!0;for(let d of e)if(!t.has(d)){let f=!1;for(let h of t)it(d,h,a)===!0&&(f=!0);if(f===!1){l=!1;break}}return n.pop(),i.pop(),l}else if(_r("Map",e)||CB(e)){let l=!0;for(let d of e)if(!t.has(d[0])||!it(d[1],t.get(d[0]),a)){let f=!1;for(let h of t){let m=it(d[0],h[0],a),b=!1;m===!0&&(b=it(d[1],h[1],a)),b===!0&&(f=!0)}if(f===!1){l=!1;break}}return n.pop(),i.pop(),l}}let p=t[Q0]();for(let l of e){let d=p.next();if(d.done||!it(l,d.value,a))return!1}if(!p.next().done)return!1;if(!TB(e)&&!SB(e)&&!xB(e)&&!DB(e)){let l=Object.entries(e),d=Object.entries(t);if(!it(l,d,a))return!1}return n.pop(),i.pop(),!0}function gp(e,t){return!e||typeof e!="object"||e===Object.prototype?!1:Object.prototype.hasOwnProperty.call(e,t)||gp(Object.getPrototypeOf(e),t)}function RB(e){return Ea(e)&&!(e instanceof Error)&&!Array.isArray(e)&&!(e instanceof Date)}function Jo(e,t,r=[]){let n=r.filter(o=>o!==Jo),i=(o=new WeakMap)=>(a,s)=>{if(RB(s))return Object.keys(s).every(p=>{if(s[p]!=null&&typeof s[p]=="object"){if(o.has(s[p]))return it(a[p],s[p],n);o.set(s[p],!0)}let l=a!=null&&gp(a,p)&&it(a[p],s[p],[...n,i(o)]);return o.delete(s[p]),l})};return i()(e,t)}function qf(e,t){if(!(e==null||t==null||e.constructor===t.constructor))return!1}function jf(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 i=0;i<r.byteLength;i++)if(r.getUint8(i)!==n.getUint8(i))return!1;return!0}function sl(e,t,r=[]){if(!Array.isArray(e)||!Array.isArray(t))return;let n=Object.keys(e),i=Object.keys(t),o=r.filter(a=>a!==sl);return it(e,t,o,!0)&&it(n,i)}function PB(e,t="#{this}",r="#{exp}"){let n=`expected ${t} to be ${r} // Object.is equality`;return["toStrictEqual","toEqual"].includes(e)?`${n}
|
|
263
|
+
|
|
264
|
+
If it should pass with deep equality, replace "toBe" with "${e}"
|
|
265
|
+
|
|
266
|
+
Expected: ${t}
|
|
267
|
+
Received: serializes to the same string
|
|
268
|
+
`:n}function OB(e,t){return`${t} ${e}${t===1?"":"s"}`}function nu(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})]}function FB(e,t,r){let n=0,i=(o=new WeakMap)=>(a,s)=>{if(Array.isArray(a)){if(Array.isArray(s)&&s.length===a.length)return s.map((p,l)=>i(o)(a[l],p))}else{if(a instanceof Date)return a;if(Ea(a)&&Ea(s)){if(it(a,s,[...r,hr,Jo]))return s;let p={};o.set(a,p),typeof a.constructor=="function"&&typeof a.constructor.name=="string"&&Object.defineProperty(p,"constructor",{enumerable:!1,value:a.constructor});for(let l of nu(a))gp(s,l)?p[l]=o.has(a[l])?o.get(a[l]):i(o)(a[l],s[l]):o.has(a[l])||(n+=1,Ea(a[l])&&(n+=nu(a[l]).length),i(o)(a[l],s[l]));if(nu(p).length>0)return p}}return a};return{subset:i()(e,t),stripped:n}}if(!Object.prototype.hasOwnProperty.call(globalThis,Ao)){let e=new WeakMap;Object.defineProperty(globalThis,Ao,{get:()=>e})}if(!Object.prototype.hasOwnProperty.call(globalThis,wo)){let e=Object.create(null),t=[];Object.defineProperty(globalThis,wo,{configurable:!0,get:()=>({state:globalThis[Ao].get(globalThis[hp]),matchers:e,customEqualityTesters:t})})}if(!Object.prototype.hasOwnProperty.call(globalThis,al)){let e=Object.create(null);Object.defineProperty(globalThis,al,{get:()=>e})}function Va(e){return globalThis[Ao].get(e)}function iu(e,t){let r=globalThis[Ao],n=r.get(t)||{},i=Object.defineProperties(n,{...Object.getOwnPropertyDescriptors(n),...Object.getOwnPropertyDescriptors(e)});r.set(t,i)}var Zr=class{$$typeof=Symbol.for("jest.asymmetricMatcher");constructor(e,t=!1){this.sample=e,this.inverse=t}getMatcherContext(e){return{...Va(e||globalThis[hp]),equals:it,isNot:this.inverse,customTesters:yp(),utils:{...W0(),diff:Ii,stringify:lr,iterableEquality:hr,subsetEquality:Jo}}}};Zr.prototype[Symbol.for("chai/inspect")]=function(e){let t=lr(this,e.depth,{min:!0});return t.length<=e.truncate?t:`${this.toString()}{…}`};var Lf=class extends Zr{constructor(e,t=!1){if(!_r("String",e))throw new Error("Expected is not a string");super(e,t)}asymmetricMatch(e){let t=_r("String",e)&&e.includes(this.sample);return this.inverse?!t:t}toString(){return`String${this.inverse?"Not":""}Containing`}getExpectedType(){return"string"}},NB=class extends Zr{asymmetricMatch(e){return e!=null}toString(){return"Anything"}toAsymmetricMatcher(){return"Anything"}},Vf=class extends Zr{constructor(e,t=!1){super(e,t)}getPrototype(e){return Object.getPrototypeOf?Object.getPrototypeOf(e):e.constructor.prototype===e?null:e.constructor.prototype}hasProperty(e,t){return e?Object.prototype.hasOwnProperty.call(e,t)?!0:this.hasProperty(this.getPrototype(e),t):!1}asymmetricMatch(e){if(typeof this.sample!="object")throw new TypeError(`You must provide an object to ${this.toString()}, not '${typeof this.sample}'.`);let t=!0,r=this.getMatcherContext();for(let n in this.sample)if(!this.hasProperty(e,n)||!it(this.sample[n],e[n],r.customTesters)){t=!1;break}return this.inverse?!t:t}toString(){return`Object${this.inverse?"Not":""}Containing`}getExpectedType(){return"object"}},$f=class extends Zr{constructor(e,t=!1){super(e,t)}asymmetricMatch(e){if(!Array.isArray(this.sample))throw new TypeError(`You must provide an array to ${this.toString()}, not '${typeof this.sample}'.`);let t=this.getMatcherContext(),r=this.sample.length===0||Array.isArray(e)&&this.sample.every(n=>e.some(i=>it(n,i,t.customTesters)));return this.inverse?!r:r}toString(){return`Array${this.inverse?"Not":""}Containing`}getExpectedType(){return"array"}},IB=class extends Zr{constructor(e){if(typeof e>"u")throw new TypeError("any() expects to be passed a constructor function. Please pass one or use anything() to match any object.");super(e)}fnNameFor(e){if(e.name)return e.name;let t=Function.prototype.toString.call(e).match(/^(?:async)?\s*function\s*(?:\*\s*)?([\w$]+)\s*\(/);return t?t[1]:"<anonymous>"}asymmetricMatch(e){return this.sample===String?typeof e=="string"||e instanceof String:this.sample===Number?typeof e=="number"||e instanceof Number:this.sample===Function?typeof e=="function"||typeof e=="function":this.sample===Boolean?typeof e=="boolean"||e instanceof Boolean:this.sample===BigInt?typeof e=="bigint"||e instanceof BigInt:this.sample===Symbol?typeof e=="symbol"||e instanceof Symbol:this.sample===Object?typeof e=="object":e 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)}>`}},Uf=class extends Zr{constructor(e,t=!1){if(!_r("String",e)&&!_r("RegExp",e))throw new Error("Expected is not a String or a RegExp");super(new RegExp(e),t)}asymmetricMatch(e){let t=_r("String",e)&&this.sample.test(e);return this.inverse?!t:t}toString(){return`String${this.inverse?"Not":""}Matching`}getExpectedType(){return"string"}},Jf=class extends Zr{precision;constructor(e,t=2,r=!1){if(!_r("Number",e))throw new Error("Expected is not a Number");if(!_r("Number",t))throw new Error("Precision is not a Number");super(e),this.inverse=r,this.precision=t}asymmetricMatch(e){if(!_r("Number",e))return!1;let t=!1;return e===Number.POSITIVE_INFINITY&&this.sample===Number.POSITIVE_INFINITY||e===Number.NEGATIVE_INFINITY&&this.sample===Number.NEGATIVE_INFINITY?t=!0:t=Math.abs(this.sample-e)<10**-this.precision/2,this.inverse?!t:t}toString(){return`Number${this.inverse?"Not":""}CloseTo`}getExpectedType(){return"number"}toAsymmetricMatcher(){return[this.toString(),this.sample,`(${OB("digit",this.precision)})`].join(" ")}},BB=(e,t)=>{t.addMethod(e.expect,"anything",()=>new NB),t.addMethod(e.expect,"any",r=>new IB(r)),t.addMethod(e.expect,"stringContaining",r=>new Lf(r)),t.addMethod(e.expect,"objectContaining",r=>new Vf(r)),t.addMethod(e.expect,"arrayContaining",r=>new $f(r)),t.addMethod(e.expect,"stringMatching",r=>new Uf(r)),t.addMethod(e.expect,"closeTo",(r,n)=>new Jf(r,n)),e.expect.not={stringContaining:r=>new Lf(r,!0),objectContaining:r=>new Vf(r,!0),arrayContaining:r=>new $f(r,!0),stringMatching:r=>new Uf(r,!0),closeTo:(r,n)=>new Jf(r,n,!0)}};function Hf(e,t,r){let n=e.flag(t,"negate")?"not.":"",i=`${e.flag(t,"_name")}(${r?"expected":""})`,o=e.flag(t,"promise");return`expect(actual)${o?`.${o}`:""}.${n}${i}`}function Gf(e,t,r,n){let i=e;if(i&&t instanceof Promise){t=t.finally(()=>{if(!i.promises)return;let a=i.promises.indexOf(t);a!==-1&&i.promises.splice(a,1)}),i.promises||(i.promises=[]),i.promises.push(t);let o=!1;return i.onFinished??(i.onFinished=[]),i.onFinished.push(()=>{if(!o){var a;let s=(((a=globalThis.__vitest_worker__)===null||a===void 0?void 0:a.onFilterStackTrace)||(p=>p||""))(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.
|
|
269
|
+
`,s].join(""))}}),{then(a,s){return o=!0,t.then(a,s)},catch(a){return t.catch(a)},finally(a){return t.finally(a)},[Symbol.toStringTag]:"Promise"}}return t}function zf(e,t){var r;e.result||(e.result={state:"fail"}),e.result.state="fail",(r=e.result).errors||(r.errors=[]),e.result.errors.push(Rc(t))}function Z0(e,t,r){return function(...n){if(t!=="withTest"&&e.flag(this,"_name",t),!e.flag(this,"soft"))return r.apply(this,n);let i=e.flag(this,"vitest-test");if(!i)throw new Error("expect.soft() can only be used inside a test");try{let o=r.apply(this,n);return o&&typeof o=="object"&&typeof o.then=="function"?o.then(jO,a=>{zf(i,a)}):o}catch(o){zf(i,o)}}}var kB=(e,t)=>{let{AssertionError:r}=e,n=yp();function i(l,d){let f=h=>{let m=Z0(t,h,d);t.addMethod(e.Assertion.prototype,h,m),t.addMethod(globalThis[wo].matchers,h,m)};Array.isArray(l)?l.forEach(h=>f(h)):f(l)}["throw","throws","Throw"].forEach(l=>{t.overwriteMethod(e.Assertion.prototype,l,d=>function(...f){let h=t.flag(this,"promise"),m=t.flag(this,"object"),b=t.flag(this,"negate");if(h==="rejects")t.flag(this,"object",()=>{throw m});else if(h==="resolves"&&typeof m!="function"){if(b)return;{let E=t.flag(this,"message")||"expected promise to throw an error, but it didn't",w={showDiff:!1};throw new r(E,w,t.flag(this,"ssfi"))}}d.apply(this,f)})}),i("withTest",function(l){return t.flag(this,"vitest-test",l),this}),i("toEqual",function(l){let d=t.flag(this,"object"),f=it(d,l,[...n,hr]);return this.assert(f,"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",l,d)}),i("toStrictEqual",function(l){let d=t.flag(this,"object"),f=it(d,l,[...n,hr,qf,sl,jf],!0);return this.assert(f,"expected #{this} to strictly equal #{exp}","expected #{this} to not strictly equal #{exp}",l,d)}),i("toBe",function(l){let d=this._obj,f=Object.is(d,l),h="";return f||(it(d,l,[...n,hr,qf,sl,jf],!0)?h="toStrictEqual":it(d,l,[...n,hr])&&(h="toEqual")),this.assert(f,PB(h),"expected #{this} not to be #{exp} // Object.is equality",l,d)}),i("toMatchObject",function(l){let d=this._obj,f=it(d,l,[...n,hr,Jo]),h=t.flag(this,"negate"),{subset:m,stripped:b}=FB(d,l,n);if(f&&h||!f&&!h){let E=t.getMessage(this,[f,"expected #{this} to match object #{exp}","expected #{this} to not match object #{exp}",l,m,!1]),w=b===0?E:`${E}
|
|
270
|
+
(${b} matching ${b===1?"property":"properties"} omitted from actual)`;throw new r(w,{showDiff:!0,expected:l,actual:m})}}),i("toMatch",function(l){let d=this._obj;if(typeof d!="string")throw new TypeError(`.toMatch() expects to receive a string, but got ${typeof d}`);return this.assert(typeof l=="string"?d.includes(l):d.match(l),"expected #{this} to match #{exp}","expected #{this} not to match #{exp}",l,d)}),i("toContain",function(l){let d=this._obj;if(typeof Node<"u"&&d instanceof Node){if(!(l instanceof Node))throw new TypeError(`toContain() expected a DOM node as the argument, but got ${typeof l}`);return this.assert(d.contains(l),"expected #{this} to contain element #{exp}","expected #{this} not to contain element #{exp}",l,d)}if(typeof DOMTokenList<"u"&&d instanceof DOMTokenList){Lr(l,"class name",["string"]);let f=t.flag(this,"negate")?d.value.replace(l,"").trim():`${d.value} ${l}`;return this.assert(d.contains(l),`expected "${d.value}" to contain "${l}"`,`expected "${d.value}" not to contain "${l}"`,f,d.value)}return typeof d=="string"&&typeof l=="string"?this.assert(d.includes(l),"expected #{this} to contain #{exp}","expected #{this} not to contain #{exp}",l,d):(d!=null&&typeof d!="string"&&t.flag(this,"object",Array.from(d)),this.contain(l))}),i("toContainEqual",function(l){let d=t.flag(this,"object"),f=Array.from(d).findIndex(h=>it(h,l,n));this.assert(f!==-1,"expected #{this} to deep equally contain #{exp}","expected #{this} to not deep equally contain #{exp}",l)}),i("toBeTruthy",function(){let l=t.flag(this,"object");this.assert(!!l,"expected #{this} to be truthy","expected #{this} to not be truthy",!0,l)}),i("toBeFalsy",function(){let l=t.flag(this,"object");this.assert(!l,"expected #{this} to be falsy","expected #{this} to not be falsy",!1,l)}),i("toBeGreaterThan",function(l){let d=this._obj;return Lr(d,"actual",["number","bigint"]),Lr(l,"expected",["number","bigint"]),this.assert(d>l,`expected ${d} to be greater than ${l}`,`expected ${d} to be not greater than ${l}`,l,d,!1)}),i("toBeGreaterThanOrEqual",function(l){let d=this._obj;return Lr(d,"actual",["number","bigint"]),Lr(l,"expected",["number","bigint"]),this.assert(d>=l,`expected ${d} to be greater than or equal to ${l}`,`expected ${d} to be not greater than or equal to ${l}`,l,d,!1)}),i("toBeLessThan",function(l){let d=this._obj;return Lr(d,"actual",["number","bigint"]),Lr(l,"expected",["number","bigint"]),this.assert(d<l,`expected ${d} to be less than ${l}`,`expected ${d} to be not less than ${l}`,l,d,!1)}),i("toBeLessThanOrEqual",function(l){let d=this._obj;return Lr(d,"actual",["number","bigint"]),Lr(l,"expected",["number","bigint"]),this.assert(d<=l,`expected ${d} to be less than or equal to ${l}`,`expected ${d} to be not less than or equal to ${l}`,l,d,!1)}),i("toBeNaN",function(){let l=t.flag(this,"object");this.assert(Number.isNaN(l),"expected #{this} to be NaN","expected #{this} not to be NaN",Number.NaN,l)}),i("toBeUndefined",function(){let l=t.flag(this,"object");this.assert(l===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined",void 0,l)}),i("toBeNull",function(){let l=t.flag(this,"object");this.assert(l===null,"expected #{this} to be null","expected #{this} not to be null",null,l)}),i("toBeDefined",function(){let l=t.flag(this,"object");this.assert(typeof l<"u","expected #{this} to be defined","expected #{this} to be undefined",l)}),i("toBeTypeOf",function(l){let d=typeof this._obj,f=l===d;return this.assert(f,"expected #{this} to be type of #{exp}","expected #{this} not to be type of #{exp}",l,d)}),i("toBeInstanceOf",function(l){return this.instanceOf(l)}),i("toHaveLength",function(l){return this.have.length(l)}),i("toHaveProperty",function(...l){Array.isArray(l[0])&&(l[0]=l[0].map(S=>String(S).replace(/([.[\]])/g,"\\$1")).join("."));let d=this._obj,[f,h]=l,m=()=>Object.prototype.hasOwnProperty.call(d,f)?{value:d[f],exists:!0}:t.getPathInfo(d,f),{value:b,exists:E}=m(),w=E&&(l.length===1||it(h,b,n)),A=l.length===1?"":` with value ${t.objDisplay(h)}`;return this.assert(w,`expected #{this} to have property "${f}"${A}`,`expected #{this} to not have property "${f}"${A}`,h,E?b:void 0)}),i("toBeCloseTo",function(l,d=2){let f=this._obj,h=!1,m=0,b=0;return l===Number.POSITIVE_INFINITY&&f===Number.POSITIVE_INFINITY||l===Number.NEGATIVE_INFINITY&&f===Number.NEGATIVE_INFINITY?h=!0:(m=10**-d/2,b=Math.abs(f-l),h=b<m),this.assert(h,`expected #{this} to be close to #{exp}, received difference is ${b}, but expected ${m}`,`expected #{this} to not be close to #{exp}, received difference is ${b}, but expected ${m}`,l,f,!1)});function o(l){if(!di(l._obj))throw new TypeError(`${t.inspect(l._obj)} is not a spy or a call to a spy!`)}function a(l){return o(l),l._obj}i(["toHaveBeenCalledTimes","toBeCalledTimes"],function(l){let d=a(this),f=d.getMockName(),h=d.mock.calls.length;return this.assert(h===l,`expected "${f}" to be called #{exp} times, but got ${h} times`,`expected "${f}" to not be called #{exp} times`,l,h,!1)}),i("toHaveBeenCalledOnce",function(){let l=a(this),d=l.getMockName(),f=l.mock.calls.length;return this.assert(f===1,`expected "${d}" to be called once, but got ${f} times`,`expected "${d}" to not be called once`,1,f,!1)}),i(["toHaveBeenCalled","toBeCalled"],function(){let l=a(this),d=l.getMockName(),f=l.mock.calls.length,h=f>0,m=t.flag(this,"negate"),b=t.getMessage(this,[h,`expected "${d}" to be called at least once`,`expected "${d}" to not be called at all, but actually been called ${f} times`,!0,h]);if(h&&m&&(b=ou(l,b)),h&&m||!h&&!m)throw new r(b)});function s(l,d){return l.length===d.length&&l.every((f,h)=>it(f,d[h],[...n,hr]))}i(["toHaveBeenCalledWith","toBeCalledWith"],function(...l){let d=a(this),f=d.getMockName(),h=d.mock.calls.some(E=>s(E,l)),m=t.flag(this,"negate"),b=t.getMessage(this,[h,`expected "${f}" to be called with arguments: #{exp}`,`expected "${f}" to not be called with arguments: #{exp}`,l]);if(h&&m||!h&&!m)throw new r(ou(d,b,l))}),i("toHaveBeenCalledExactlyOnceWith",function(...l){let d=a(this),f=d.getMockName(),h=d.mock.calls.length,m=d.mock.calls.some(w=>s(w,l))&&h===1,b=t.flag(this,"negate"),E=t.getMessage(this,[m,`expected "${f}" to be called once with arguments: #{exp}`,`expected "${f}" to not be called once with arguments: #{exp}`,l]);if(m&&b||!m&&!b)throw new r(ou(d,E,l))}),i(["toHaveBeenNthCalledWith","nthCalledWith"],function(l,...d){let f=a(this),h=f.getMockName(),m=f.mock.calls[l-1],b=f.mock.calls.length,E=l<=b;this.assert(m&&s(m,d),`expected ${io(l)} "${h}" call to have been called with #{exp}${E?"":`, but called only ${b} times`}`,`expected ${io(l)} "${h}" call to not have been called with #{exp}`,d,m,E)}),i(["toHaveBeenLastCalledWith","lastCalledWith"],function(...l){let d=a(this),f=d.getMockName(),h=d.mock.calls[d.mock.calls.length-1];this.assert(h&&s(h,l),`expected last "${f}" call to have been called with #{exp}`,`expected last "${f}" call to not have been called with #{exp}`,l,h)});function p(l,d,f){let h=l.mock.invocationCallOrder,m=d.mock.invocationCallOrder;return h.length===0?!f:m.length===0?!1:h[0]<m[0]}i(["toHaveBeenCalledBefore"],function(l,d=!0){let f=a(this);if(!di(l))throw new TypeError(`${t.inspect(l)} is not a spy or a call to a spy`);this.assert(p(f,l,d),`expected "${f.getMockName()}" to have been called before "${l.getMockName()}"`,`expected "${f.getMockName()}" to not have been called before "${l.getMockName()}"`,l,f)}),i(["toHaveBeenCalledAfter"],function(l,d=!0){let f=a(this);if(!di(l))throw new TypeError(`${t.inspect(l)} is not a spy or a call to a spy`);this.assert(p(l,f,d),`expected "${f.getMockName()}" to have been called after "${l.getMockName()}"`,`expected "${f.getMockName()}" to not have been called after "${l.getMockName()}"`,l,f)}),i(["toThrow","toThrowError"],function(l){if(typeof l=="string"||typeof l>"u"||l instanceof RegExp)return this.throws(l===""?/^$/:l);let d=this._obj,f=t.flag(this,"promise"),h=t.flag(this,"negate"),m=null;if(f==="rejects")m=d;else if(f==="resolves"&&typeof d!="function"){if(h)return;{let b=t.flag(this,"message")||"expected promise to throw an error, but it didn't",E={showDiff:!1};throw new r(b,E,t.flag(this,"ssfi"))}}else{let b=!1;try{d()}catch(E){b=!0,m=E}if(!b&&!h){let E=t.flag(this,"message")||"expected function to throw an error, but it didn't",w={showDiff:!1};throw new r(E,w,t.flag(this,"ssfi"))}}if(typeof l=="function"){let b=l.name||l.prototype.constructor.name;return this.assert(m&&m instanceof l,`expected error to be instance of ${b}`,`expected error not to be instance of ${b}`,l,m)}if(l instanceof Error){let b=it(m,l,[...n,hr]);return this.assert(b,"expected a thrown error to be #{exp}","expected a thrown error not to be #{exp}",l,m)}if(typeof l=="object"&&"asymmetricMatch"in l&&typeof l.asymmetricMatch=="function"){let b=l;return this.assert(m&&b.asymmetricMatch(m),"expected error to match asymmetric matcher","expected error not to match asymmetric matcher",b,m)}throw new Error(`"toThrow" expects string, RegExp, function, Error instance or asymmetric matcher, got "${typeof l}"`)}),[{name:"toHaveResolved",condition:l=>l.mock.settledResults.length>0&&l.mock.settledResults.some(({type:d})=>d==="fulfilled"),action:"resolved"},{name:["toHaveReturned","toReturn"],condition:l=>l.mock.calls.length>0&&l.mock.results.some(({type:d})=>d!=="throw"),action:"called"}].forEach(({name:l,condition:d,action:f})=>{i(l,function(){let h=a(this),m=h.getMockName(),b=d(h);this.assert(b,`expected "${m}" to be successfully ${f} at least once`,`expected "${m}" to not be successfully ${f}`,b,!b,!1)})}),[{name:"toHaveResolvedTimes",condition:(l,d)=>l.mock.settledResults.reduce((f,{type:h})=>h==="fulfilled"?++f:f,0)===d,action:"resolved"},{name:["toHaveReturnedTimes","toReturnTimes"],condition:(l,d)=>l.mock.results.reduce((f,{type:h})=>h==="throw"?f:++f,0)===d,action:"called"}].forEach(({name:l,condition:d,action:f})=>{i(l,function(h){let m=a(this),b=m.getMockName(),E=d(m,h);this.assert(E,`expected "${b}" to be successfully ${f} ${h} times`,`expected "${b}" to not be successfully ${f} ${h} times`,`expected resolved times: ${h}`,`received resolved times: ${E}`,!1)})}),[{name:"toHaveResolvedWith",condition:(l,d)=>l.mock.settledResults.some(({type:f,value:h})=>f==="fulfilled"&&it(d,h)),action:"resolve"},{name:["toHaveReturnedWith","toReturnWith"],condition:(l,d)=>l.mock.results.some(({type:f,value:h})=>f==="return"&&it(d,h)),action:"return"}].forEach(({name:l,condition:d,action:f})=>{i(l,function(h){let m=a(this),b=d(m,h),E=t.flag(this,"negate");if(b&&E||!b&&!E){let w=m.getMockName(),A=t.getMessage(this,[b,`expected "${w}" to ${f} with: #{exp} at least once`,`expected "${w}" to not ${f} with: #{exp}`,h]),S=f==="return"?m.mock.results:m.mock.settledResults;throw new r(MB(m,S,A,h))}})}),[{name:"toHaveLastResolvedWith",condition:(l,d)=>{let f=l.mock.settledResults[l.mock.settledResults.length-1];return f&&f.type==="fulfilled"&&it(f.value,d)},action:"resolve"},{name:["toHaveLastReturnedWith","lastReturnedWith"],condition:(l,d)=>{let f=l.mock.results[l.mock.results.length-1];return f&&f.type==="return"&&it(f.value,d)},action:"return"}].forEach(({name:l,condition:d,action:f})=>{i(l,function(h){let m=a(this),b=f==="return"?m.mock.results:m.mock.settledResults,E=b[b.length-1],w=m.getMockName();this.assert(d(m,h),`expected last "${w}" call to ${f} #{exp}`,`expected last "${w}" call to not ${f} #{exp}`,h,E?.value)})}),[{name:"toHaveNthResolvedWith",condition:(l,d,f)=>{let h=l.mock.settledResults[d-1];return h&&h.type==="fulfilled"&&it(h.value,f)},action:"resolve"},{name:["toHaveNthReturnedWith","nthReturnedWith"],condition:(l,d,f)=>{let h=l.mock.results[d-1];return h&&h.type==="return"&&it(h.value,f)},action:"return"}].forEach(({name:l,condition:d,action:f})=>{i(l,function(h,m){let b=a(this),E=b.getMockName(),w=(f==="return"?b.mock.results:b.mock.settledResults)[h-1],A=`${io(h)} call`;this.assert(d(b,h,m),`expected ${A} "${E}" call to ${f} #{exp}`,`expected ${A} "${E}" call to not ${f} #{exp}`,m,w?.value)})}),i("withContext",function(l){for(let d in l)t.flag(this,d,l[d]);return this}),t.addProperty(e.Assertion.prototype,"resolves",function(){let l=new Error("resolves");t.flag(this,"promise","resolves"),t.flag(this,"error",l);let d=t.flag(this,"vitest-test"),f=t.flag(this,"object");if(t.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .resolves");if(typeof f?.then!="function")throw new TypeError(`You must provide a Promise to expect() when using .resolves, not '${typeof f}'.`);let h=new Proxy(this,{get:(m,b,E)=>{let w=Reflect.get(m,b,E);return typeof w!="function"?w instanceof e.Assertion?h:w:(...A)=>{t.flag(this,"_name",b);let S=f.then(k=>(t.flag(this,"object",k),w.call(this,...A)),k=>{let O=new r(`promise rejected "${t.inspect(k)}" instead of resolving`,{showDiff:!1});throw O.cause=k,O.stack=l.stack.replace(l.message,O.message),O});return Gf(d,S,Hf(t,this,!!A.length),l)}}});return h}),t.addProperty(e.Assertion.prototype,"rejects",function(){let l=new Error("rejects");t.flag(this,"promise","rejects"),t.flag(this,"error",l);let d=t.flag(this,"vitest-test"),f=t.flag(this,"object"),h=typeof f=="function"?f():f;if(t.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .rejects");if(typeof h?.then!="function")throw new TypeError(`You must provide a Promise to expect() when using .rejects, not '${typeof h}'.`);let m=new Proxy(this,{get:(b,E,w)=>{let A=Reflect.get(b,E,w);return typeof A!="function"?A instanceof e.Assertion?m:A:(...S)=>{t.flag(this,"_name",E);let k=h.then(O=>{let R=new r(`promise resolved "${t.inspect(O)}" instead of rejecting`,{showDiff:!0,expected:new Error("rejected promise"),actual:O});throw R.stack=l.stack.replace(l.message,R.message),R},O=>(t.flag(this,"object",O),A.call(this,...S)));return Gf(d,k,Hf(t,this,!!S.length),l)}}});return m})};function io(e){let 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`}function ou(e,t,r){return e.mock.calls.length&&(t+=Dt.gray(`
|
|
271
|
+
|
|
272
|
+
Received:
|
|
273
|
+
|
|
274
|
+
${e.mock.calls.map((n,i)=>{let o=Dt.bold(` ${io(i+1)} ${e.getMockName()} call:
|
|
275
|
+
|
|
276
|
+
`);return r?o+=Ii(r,n,{omitAnnotationLines:!0}):o+=lr(n).split(`
|
|
277
|
+
`).map(a=>` ${a}`).join(`
|
|
278
|
+
`),o+=`
|
|
279
|
+
`,o}).join(`
|
|
280
|
+
`)}`)),t+=Dt.gray(`
|
|
281
|
+
|
|
282
|
+
Number of calls: ${Dt.bold(e.mock.calls.length)}
|
|
283
|
+
`),t}function MB(e,t,r,n){return t.length&&(r+=Dt.gray(`
|
|
284
|
+
|
|
285
|
+
Received:
|
|
286
|
+
|
|
287
|
+
${t.map((i,o)=>{let a=Dt.bold(` ${io(o+1)} ${e.getMockName()} call return:
|
|
288
|
+
|
|
289
|
+
`);return n?a+=Ii(n,i.value,{omitAnnotationLines:!0}):a+=lr(i).split(`
|
|
290
|
+
`).map(s=>` ${s}`).join(`
|
|
291
|
+
`),a+=`
|
|
292
|
+
`,a}).join(`
|
|
293
|
+
`)}`)),r+=Dt.gray(`
|
|
294
|
+
|
|
295
|
+
Number of calls: ${Dt.bold(e.mock.calls.length)}
|
|
296
|
+
`),r}function qB(e,t){let r=e._obj,n=Fr.flag(e,"negate"),i=Fr.flag(e,"promise")||"",o={...W0(),diff:Ii,stringify:lr,iterableEquality:hr,subsetEquality:Jo};return{state:{...Va(t),customTesters:yp(),isNot:n,utils:o,promise:i,equals:it,suppressedErrors:[],soft:Fr.flag(e,"soft"),poll:Fr.flag(e,"poll")},isNot:n,obj:r}}var Wf=class extends Error{constructor(e,t,r){super(e),this.actual=t,this.expected=r}};function jB(e,t,r){return(n,i)=>{Object.entries(r).forEach(([o,a])=>{function s(...f){let{state:h,isNot:m,obj:b}=qB(this,t),E=a.call(h,b,...f);if(E&&typeof E=="object"&&typeof E.then=="function")return E.then(({pass:O,message:R,actual:y,expected:T})=>{if(O&&m||!O&&!m)throw new Wf(R(),y,T)});let{pass:w,message:A,actual:S,expected:k}=E;if(w&&m||!w&&!m)throw new Wf(A(),S,k)}let p=Z0(i,o,s);i.addMethod(globalThis[wo].matchers,o,p),i.addMethod(e.Assertion.prototype,o,p);class l extends Zr{constructor(h=!1,...m){super(m,h)}asymmetricMatch(h){let{pass:m}=a.call(this.getMatcherContext(t),h,...this.sample);return this.inverse?!m:m}toString(){return`${this.inverse?"not.":""}${o}`}getExpectedType(){return"any"}toAsymmetricMatcher(){return`${this.toString()}<${this.sample.map(h=>lr(h)).join(", ")}>`}}let d=(...f)=>new l(!1,...f);Object.defineProperty(t,o,{configurable:!0,enumerable:!0,value:d,writable:!0}),Object.defineProperty(t.not,o,{configurable:!0,enumerable:!0,value:(...f)=>new l(!0,...f),writable:!0}),Object.defineProperty(globalThis[al],o,{configurable:!0,enumerable:!0,value:d,writable:!0})})}}var LB=(e,t)=>{t.addMethod(e.expect,"extend",(r,n)=>{ci(jB(e,r,n))})};function VB(){ci(LB),ci(kB),ci(BB);let e=((n,i)=>{let{assertionCalls:o}=Va(e);return iu({assertionCalls:o+1,soft:!1},e),Ln(n,i)});Object.assign(e,Ln),e.getState=()=>Va(e),e.setState=n=>iu(n,e),e.extend=n=>Ln.extend(e,n),e.soft=(...n)=>{let i=e(...n);return e.setState({soft:!0}),i},e.extend(cB),e.unreachable=n=>{U.fail(`expected${n?` "${n}" `:" "}not to be reached`)};function t(n){let i=()=>new Error(`expected number of assertions to be ${n}, but got ${e.getState().assertionCalls}`);"captureStackTrace"in Error&&typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(i(),t),e.setState({expectedAssertionsNumber:n,expectedAssertionsNumberErrorGen:i})}function r(){let 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 iu({assertionCalls:0,isExpectingAssertions:!1,isExpectingAssertionsError:null,expectedAssertionsNumber:null,expectedAssertionsNumberErrorGen:null},e),Fr.addMethod(e,"assertions",t),Fr.addMethod(e,"hasAssertions",r),e.extend(Xb),e}var eE=VB();Object.defineProperty(globalThis,hp,{value:eE,writable:!0,configurable:!0});function $B(e,t,r){Object.defineProperty(e,t,r)}var wa=Symbol.for("tinyspy:spy"),UB=e=>{e.called=!1,e.callCount=0,e.calls=[],e.results=[],e.resolves=[],e.next=[]},JB=e=>($B(e,wa,{value:{reset:()=>UB(e[wa])}}),e[wa]),HB=e=>e[wa]||JB(e),ul=new Set;function tE(e){return ul.add(e),()=>void ul.delete(e)}var GB=(...e)=>{let t=sB(...e);return nE(t)};function rE(e){let t=e?Nf(e):Nf();return nE(t)}function nE(e){let t=Yf(e),r=t.mockImplementation.bind(null);return t.mockImplementation=n=>Yf(r(n)),t}function Yf(e){let t=HB(e),r=t.impl;return t.willCall(function(...n){return ul.forEach(i=>i(e,n)),r?.apply(this,n)}),e}function iE(){Uo.forEach(e=>e.mockClear())}function oE(){Uo.forEach(e=>e.mockReset())}function aE(){Uo.forEach(e=>e.mockRestore())}function zB(e,t={}){return e}var sE={};ir(sE,{buildQueries:()=>tn,configure:()=>aM,createEvent:()=>_a,findAllByAltText:()=>pv,findAllByDisplayValue:()=>ov,findAllByLabelText:()=>qE,findAllByPlaceholderText:()=>zE,findAllByRole:()=>_v,findAllByTestId:()=>Pv,findAllByText:()=>ZE,findAllByTitle:()=>gv,findByAltText:()=>dv,findByDisplayValue:()=>av,findByLabelText:()=>jE,findByPlaceholderText:()=>WE,findByRole:()=>Tv,findByTestId:()=>Ov,findByText:()=>ev,findByTitle:()=>bv,fireEvent:()=>xo,getAllByAltText:()=>lv,getAllByDisplayValue:()=>nv,getAllByLabelText:()=>LE,getAllByPlaceholderText:()=>HE,getAllByRole:()=>wv,getAllByTestId:()=>Dv,getAllByText:()=>XE,getAllByTitle:()=>mv,getByAltText:()=>cv,getByDisplayValue:()=>iv,getByLabelText:()=>VE,getByPlaceholderText:()=>GE,getByRole:()=>Cv,getByTestId:()=>Rv,getByText:()=>QE,getByTitle:()=>yv,getConfig:()=>Xe,getDefaultNormalizer:()=>Cp,getElementError:()=>xs,getMultipleElementsFoundError:()=>Ds,getNodeText:()=>Ho,getQueriesForElement:()=>bl,getRoles:()=>OE,getSuggestedQuery:()=>Ua,isInaccessible:()=>Ss,logDOM:()=>ll,logRoles:()=>pM,makeFindQuery:()=>Ai,makeGetAllQuery:()=>Sp,makeSingleQuery:()=>vi,prettyDOM:()=>To,prettyFormat:()=>bp,queries:()=>Ja,queryAllByAltText:()=>sv,queryAllByAttribute:()=>Qn,queryAllByDisplayValue:()=>tv,queryAllByLabelText:()=>$E,queryAllByPlaceholderText:()=>UE,queryAllByRole:()=>vv,queryAllByTestId:()=>Sv,queryAllByText:()=>YE,queryAllByTitle:()=>fv,queryByAltText:()=>uv,queryByAttribute:()=>NE,queryByDisplayValue:()=>rv,queryByLabelText:()=>kE,queryByPlaceholderText:()=>JE,queryByRole:()=>Av,queryByTestId:()=>xv,queryByText:()=>KE,queryByTitle:()=>hv,queryHelpers:()=>TM,screen:()=>ZM,waitFor:()=>Tp,waitForElementToBeRemoved:()=>GM,within:()=>bl,wrapAllByQueryWithSuggestion:()=>nr,wrapSingleQueryWithSuggestion:()=>vn});var bp=It(aS()),WB=Object.prototype.toString;function YB(e){return typeof e=="function"||WB.call(e)==="[object Function]"}function KB(e){var t=Number(e);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))}var XB=Math.pow(2,53)-1;function QB(e){var t=KB(e);return Math.min(Math.max(t,0),XB)}function wr(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");for(var i=QB(n.length),o=YB(r)?Object(new r(i)):new Array(i),a=0,s;a<i;)s=n[a],o[a]=s,a+=1;return o.length=i,o}function Co(e){"@babel/helpers - typeof";return Co=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},Co(e)}function ZB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ek(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,uE(n.key),n)}}function tk(e,t,r){return t&&ek(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function rk(e,t,r){return t=uE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uE(e){var t=nk(e,"string");return Co(t)==="symbol"?t:String(t)}function nk(e,t){if(Co(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Co(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ik=(function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];ZB(this,e),rk(this,"items",void 0),this.items=t}return tk(e,[{key:"add",value:function(t){return this.has(t)===!1&&this.items.push(t),this}},{key:"clear",value:function(){this.items=[]}},{key:"delete",value:function(t){var r=this.items.length;return this.items=this.items.filter(function(n){return n!==t}),r!==this.items.length}},{key:"forEach",value:function(t){var r=this;this.items.forEach(function(n){t(n,n,r)})}},{key:"has",value:function(t){return this.items.indexOf(t)!==-1}},{key:"size",get:function(){return this.items.length}}]),e})(),ok=typeof Set>"u"?Set:ik;function Kt(e){var t;return(t=e.localName)!==null&&t!==void 0?t:e.tagName.toLowerCase()}var ak={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"},sk={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 uk(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=sk[t])!==null&&n!==void 0&&n.has(r))})}function lE(e,t){return uk(e,t)}function lk(e){var t=pk(e);if(t===null||t==="presentation"){var r=ck(e);if(t!=="presentation"||lE(e,r||""))return r}return t}function ck(e){var t=ak[Kt(e)];if(t!==void 0)return t;switch(Kt(e)){case"a":case"area":case"link":if(e.hasAttribute("href"))return"link";break;case"img":return e.getAttribute("alt")===""&&!lE(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}function pk(e){var t=e.getAttribute("role");if(t!==null){var r=t.trim().split(" ")[0];if(r.length>0)return r}return null}function Ct(e){return e!==null&&e.nodeType===e.ELEMENT_NODE}function cE(e){return Ct(e)&&Kt(e)==="caption"}function Ca(e){return Ct(e)&&Kt(e)==="input"}function dk(e){return Ct(e)&&Kt(e)==="optgroup"}function fk(e){return Ct(e)&&Kt(e)==="select"}function hk(e){return Ct(e)&&Kt(e)==="table"}function mk(e){return Ct(e)&&Kt(e)==="textarea"}function yk(e){var t=e.ownerDocument===null?e:e.ownerDocument,r=t.defaultView;if(r===null)throw new TypeError("no window available");return r}function gk(e){return Ct(e)&&Kt(e)==="fieldset"}function bk(e){return Ct(e)&&Kt(e)==="legend"}function Ek(e){return Ct(e)&&Kt(e)==="slot"}function vk(e){return Ct(e)&&e.ownerSVGElement!==void 0}function Ak(e){return Ct(e)&&Kt(e)==="svg"}function wk(e){return vk(e)&&Kt(e)==="title"}function $a(e,t){if(Ct(e)&&e.hasAttribute(t)){var r=e.getAttribute(t).split(" "),n=e.getRootNode?e.getRootNode():e.ownerDocument;return r.map(function(i){return n.getElementById(i)}).filter(function(i){return i!==null})}return[]}function Hr(e,t){return Ct(e)?t.indexOf(lk(e))!==-1:!1}function Ck(e){return e.trim().replace(/\s\s+/g," ")}function _k(e,t){if(!Ct(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"}function Tk(e){return Hr(e,["button","combobox","listbox","textbox"])||pE(e,"range")}function pE(e,t){if(!Ct(e))return!1;switch(t){case"range":return Hr(e,["meter","progressbar","scrollbar","slider","spinbutton"]);default:throw new TypeError("No knowledge about abstract role '".concat(t,"'. This is likely a bug :("))}}function Kf(e,t){var r=wr(e.querySelectorAll(t));return $a(e,"aria-owns").forEach(function(n){r.push.apply(r,wr(n.querySelectorAll(t)))}),r}function Sk(e){return fk(e)?e.selectedOptions||Kf(e,"[selected]"):Kf(e,'[aria-selected="true"]')}function xk(e){return Hr(e,["none","presentation"])}function Dk(e){return cE(e)}function Rk(e){return Hr(e,["button","cell","checkbox","columnheader","gridcell","heading","label","legend","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"])}function Pk(e){return!1}function Ok(e){return Ca(e)||mk(e)?e.value:e.textContent||""}function Xf(e){var t=e.getPropertyValue("content");return/^["'].*["']$/.test(t)?t.slice(1,-1):""}function dE(e){var t=Kt(e);return t==="button"||t==="input"&&e.getAttribute("type")!=="hidden"||t==="meter"||t==="output"||t==="progress"||t==="select"||t==="textarea"}function fE(e){if(dE(e))return e;var t=null;return e.childNodes.forEach(function(r){if(t===null&&Ct(r)){var n=fE(r);n!==null&&(t=n)}}),t}function Fk(e){if(e.control!==void 0)return e.control;var t=e.getAttribute("for");return t!==null?e.ownerDocument.getElementById(t):fE(e)}function Nk(e){var t=e.labels;if(t===null)return t;if(t!==void 0)return wr(t);if(!dE(e))return null;var r=e.ownerDocument;return wr(r.querySelectorAll("label")).filter(function(n){return Fk(n)===e})}function Ik(e){var t=e.assignedNodes();return t.length===0?wr(e.childNodes):t}function hE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=new ok,n=yk(e),i=t.compute,o=i===void 0?"name":i,a=t.computedStyleSupportsPseudoElements,s=a===void 0?t.getComputedStyle!==void 0:a,p=t.getComputedStyle,l=p===void 0?n.getComputedStyle.bind(n):p,d=t.hidden,f=d===void 0?!1:d;function h(A,S){var k="";if(Ct(A)&&s){var O=l(A,"::before"),R=Xf(O);k="".concat(R," ").concat(k)}var y=Ek(A)?Ik(A):wr(A.childNodes).concat($a(A,"aria-owns"));if(y.forEach(function(D){var J=w(D,{isEmbeddedInLabel:S.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),M=Ct(D)?l(D).getPropertyValue("display"):"inline",G=M!=="inline"?" ":"";k+="".concat(G).concat(J).concat(G)}),Ct(A)&&s){var T=l(A,"::after"),_=Xf(T);k="".concat(k," ").concat(_)}return k.trim()}function m(A,S){var k=A.getAttributeNode(S);return k!==null&&!r.has(k)&&k.value.trim()!==""?(r.add(k),k.value):null}function b(A){return Ct(A)?m(A,"title"):null}function E(A){if(!Ct(A))return null;if(gk(A)){r.add(A);for(var S=wr(A.childNodes),k=0;k<S.length;k+=1){var O=S[k];if(bk(O))return w(O,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(hk(A)){r.add(A);for(var R=wr(A.childNodes),y=0;y<R.length;y+=1){var T=R[y];if(cE(T))return w(T,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(Ak(A)){r.add(A);for(var _=wr(A.childNodes),D=0;D<_.length;D+=1){var J=_[D];if(wk(J))return J.textContent}return null}else if(Kt(A)==="img"||Kt(A)==="area"){var M=m(A,"alt");if(M!==null)return M}else if(dk(A)){var G=m(A,"label");if(G!==null)return G}if(Ca(A)&&(A.type==="button"||A.type==="submit"||A.type==="reset")){var L=m(A,"value");if(L!==null)return L;if(A.type==="submit")return"Submit";if(A.type==="reset")return"Reset"}var I=Nk(A);if(I!==null&&I.length!==0)return r.add(A),wr(I).map(function(oe){return w(oe,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(oe){return oe.length>0}).join(" ");if(Ca(A)&&A.type==="image"){var $=m(A,"alt");if($!==null)return $;var Y=m(A,"title");return Y!==null?Y:"Submit Query"}if(Hr(A,["button"])){var X=h(A,{isEmbeddedInLabel:!1});if(X!=="")return X}return null}function w(A,S){if(r.has(A))return"";if(!f&&_k(A,l)&&!S.isReferenced)return r.add(A),"";var k=Ct(A)?A.getAttributeNode("aria-labelledby"):null,O=k!==null&&!r.has(k)?$a(A,"aria-labelledby"):[];if(o==="name"&&!S.isReferenced&&O.length>0)return r.add(k),O.map(function(M){return w(M,{isEmbeddedInLabel:S.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(" ");var R=S.recursion&&Tk(A)&&o==="name";if(!R){var y=(Ct(A)&&A.getAttribute("aria-label")||"").trim();if(y!==""&&o==="name")return r.add(A),y;if(!xk(A)){var T=E(A);if(T!==null)return r.add(A),T}}if(Hr(A,["menu"]))return r.add(A),"";if(R||S.isEmbeddedInLabel||S.isReferenced){if(Hr(A,["combobox","listbox"])){r.add(A);var _=Sk(A);return _.length===0?Ca(A)?A.value:"":wr(_).map(function(M){return w(M,{isEmbeddedInLabel:S.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(" ")}if(pE(A,"range"))return r.add(A),A.hasAttribute("aria-valuetext")?A.getAttribute("aria-valuetext"):A.hasAttribute("aria-valuenow")?A.getAttribute("aria-valuenow"):A.getAttribute("value")||"";if(Hr(A,["textbox"]))return r.add(A),Ok(A)}if(Rk(A)||Ct(A)&&S.isReferenced||Dk(A)||Pk()){var D=h(A,{isEmbeddedInLabel:S.isEmbeddedInLabel});if(D!=="")return r.add(A),D}if(A.nodeType===A.TEXT_NODE)return r.add(A),A.textContent||"";if(S.recursion)return r.add(A),h(A,{isEmbeddedInLabel:S.isEmbeddedInLabel});var J=b(A);return J!==null?(r.add(A),J):(r.add(A),"")}return Ck(w(e,{isEmbeddedInLabel:!1,isReferenced:o==="description",recursion:!1}))}function _o(e){"@babel/helpers - typeof";return _o=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},_o(e)}function Qf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Zf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qf(Object(r),!0).forEach(function(n){Bk(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Bk(e,t,r){return t=kk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kk(e){var t=Mk(e,"string");return _o(t)==="symbol"?t:String(t)}function Mk(e,t){if(_o(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_o(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=$a(e,"aria-describedby").map(function(i){return hE(i,Zf(Zf({},t),{},{compute:"description"}))}).join(" ");if(r===""){var n=e.getAttribute("title");r=n===null?"":n}return r}function qk(e){return Hr(e,["caption","code","deletion","emphasis","generic","insertion","paragraph","presentation","strong","subscript","superscript"])}function Ep(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return qk(e)?"":hE(e,t)}var fr=It(Hl()),jk=It(sS());function yE(e){return e.replace(/</g,"<").replace(/>/g,">")}var Lk=(e,t,r,n,i,o,a)=>{let s=n+r.indent,p=r.colors;return e.map(l=>{let d=t[l],f=a(d,r,s,i,o);return typeof d!="string"&&(f.indexOf(`
|
|
297
|
+
`)!==-1&&(f=r.spacingOuter+s+f+r.spacingOuter+n),f="{"+f+"}"),r.spacingInner+n+p.prop.open+l+p.prop.close+"="+p.value.open+f+p.value.close}).join("")},Vk=3,$k=(e,t,r,n,i,o)=>e.map(a=>{let s=typeof a=="string"?gE(a,t):o(a,t,r,n,i);return s===""&&typeof a=="object"&&a!==null&&a.nodeType!==Vk?"":t.spacingOuter+r+s}).join(""),gE=(e,t)=>{let r=t.colors.content;return r.open+yE(e)+r.close},Uk=(e,t)=>{let r=t.colors.comment;return r.open+"<!--"+yE(e)+"-->"+r.close},Jk=(e,t,r,n,i)=>{let o=n.colors.tag;return o.open+"<"+e+(t&&o.close+t+n.spacingOuter+i+o.open)+(r?">"+o.close+r+n.spacingOuter+i+o.open+"</"+e:(t&&!n.min?"":" ")+"/")+">"+o.close},Hk=(e,t)=>{let r=t.colors.tag;return r.open+"<"+e+r.close+" …"+r.open+" />"+r.close},Gk=1,bE=3,EE=8,vE=11,zk=/^((HTML|SVG)\w*)?Element$/,AE=e=>{let{tagName:t}=e;return!!(typeof t=="string"&&t.includes("-")||typeof e.hasAttribute=="function"&&e.hasAttribute("is"))},Wk=e=>{let t=e.constructor.name,{nodeType:r}=e;return r===Gk&&(zk.test(t)||AE(e))||r===bE&&t==="Text"||r===EE&&t==="Comment"||r===vE&&t==="DocumentFragment"};function Yk(e){return e.nodeType===bE}function Kk(e){return e.nodeType===EE}function au(e){return e.nodeType===vE}function Xk(e){return{test:t=>{var r;return((t==null||(r=t.constructor)==null?void 0:r.name)||AE(t))&&Wk(t)},serialize:(t,r,n,i,o,a)=>{if(Yk(t))return gE(t.data,r);if(Kk(t))return Uk(t.data,r);let s=au(t)?"DocumentFragment":t.tagName.toLowerCase();return++i>r.maxDepth?Hk(s,r):Jk(s,Lk(au(t)?[]:Array.from(t.attributes).map(p=>p.name).sort(),au(t)?{}:Array.from(t.attributes).reduce((p,l)=>(p[l.name]=l.value,p),{}),r,n+r.indent,i,o,a),$k(Array.prototype.slice.call(t.childNodes||t.children).filter(e),r,n+r.indent,i,o,a),r,n)}}}var wE=null,vp=null,Ap=null;try{let e=module&&module.require;vp=e.call(module,"fs").readFileSync,Ap=e.call(module,"@babel/code-frame").codeFrameColumns,wE=e.call(module,"picocolors")}catch{}function Qk(e){let t=e.indexOf("(")+1,r=e.indexOf(")"),n=e.slice(t,r),i=n.split(":"),[o,a,s]=[i[0],parseInt(i[1],10),parseInt(i[2],10)],p="";try{p=vp(o,"utf-8")}catch{return""}let l=Ap(p,{start:{line:a,column:s}},{highlightCode:!0,linesBelow:0});return wE.dim(n)+`
|
|
298
|
+
`+l+`
|
|
299
|
+
`}function Zk(){if(!vp||!Ap)return"";let e=new Error().stack.split(`
|
|
300
|
+
`).slice(1).find(t=>!t.includes("node_modules/"));return Qk(e)}var CE=3;function su(){return typeof jest<"u"&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,"clock"):!1}function wp(){if(typeof window>"u")throw new Error("Could not find default container");return window.document}function _E(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+".")}function en(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}}var eM=()=>{if(typeof process>"u")return!1;let e;try{var t;let r=(t=Cu)==null?void 0:t.COLORS;r&&(e=JSON.parse(r))}catch{}return typeof e=="boolean"?e:process.versions!==void 0&&process.versions.node!==void 0},{DOMCollection:tM}=bp.plugins,rM=1,nM=8;function iM(e){return e.nodeType!==nM&&(e.nodeType!==rM||!e.matches(Xe().defaultIgnore))}function To(e,t,r){if(r===void 0&&(r={}),e||(e=wp().body),typeof t!="number"&&(t=typeof process<"u"&&typeof Cu<"u"&&Cu.DEBUG_PRINT_LIMIT||7e3),t===0)return"";e.documentElement&&(e=e.documentElement);let n=typeof e;if(n==="object"?n=e.constructor.name:e={},!("outerHTML"in e))throw new TypeError("Expected an element or document but got "+n);let{filterNode:i=iM,...o}=r,a=bp.format(e,{plugins:[Xk(i),tM],printFunctionName:!1,highlight:eM(),...o});return t!==void 0&&e.outerHTML.length>t?a.slice(0,t)+"...":a}var ll=function(){let e=Zk();console.log(e?To(...arguments)+`
|
|
301
|
+
|
|
302
|
+
`+e:To(...arguments))},Vn={testIdAttribute:"data-testid",asyncUtilTimeout:1e3,asyncWrapper:e=>e(),unstable_advanceTimersWrapper:e=>e(),eventWrapper:e=>e(),defaultHidden:!1,defaultIgnore:"script, style",showOriginalStackTrace:!1,throwSuggestions:!1,getElementError(e,t){let r=To(t),n=new Error([e,"Ignored nodes: comments, "+Vn.defaultIgnore+`
|
|
303
|
+
`+r].filter(Boolean).join(`
|
|
304
|
+
|
|
305
|
+
`));return n.name="TestingLibraryElementError",n},_disableExpensiveErrorDiagnostics:!1,computedStyleSupportsPseudoElements:!1};function oM(e){try{return Vn._disableExpensiveErrorDiagnostics=!0,e()}finally{Vn._disableExpensiveErrorDiagnostics=!1}}function aM(e){typeof e=="function"&&(e=e(Vn)),Vn={...Vn,...e}}function Xe(){return Vn}var sM=["button","meter","output","progress","select","textarea","input"];function TE(e){return sM.includes(e.nodeName.toLowerCase())?"":e.nodeType===CE?e.textContent:Array.from(e.childNodes).map(t=>TE(t)).join("")}function cl(e){let t;return e.tagName.toLowerCase()==="label"?t=TE(e):t=e.value||e.textContent,t}function SE(e){if(e.labels!==void 0){var t;return(t=e.labels)!=null?t:[]}if(!uM(e))return[];let r=e.ownerDocument.querySelectorAll("label");return Array.from(r).filter(n=>n.control===e)}function uM(e){return/BUTTON|METER|OUTPUT|PROGRESS|SELECT|TEXTAREA/.test(e.tagName)||e.tagName==="INPUT"&&e.getAttribute("type")!=="hidden"}function xE(e,t,r){let{selector:n="*"}=r===void 0?{}:r,i=t.getAttribute("aria-labelledby"),o=i?i.split(" "):[];return o.length?o.map(a=>{let s=e.querySelector('[id="'+a+'"]');return s?{content:cl(s),formControl:null}:{content:"",formControl:null}}):Array.from(SE(t)).map(a=>{let s=cl(a),p=Array.from(a.querySelectorAll("button, input, meter, output, progress, select, textarea")).filter(l=>l.matches(n))[0];return{content:s,formControl:p}})}function DE(e){if(e==null)throw new Error("It looks like "+e+" was passed instead of a matcher. Did you do something like getByText("+e+")?")}function ki(e,t,r,n){if(typeof e!="string")return!1;DE(r);let i=n(e);return typeof r=="string"||typeof r=="number"?i.toLowerCase().includes(r.toString().toLowerCase()):typeof r=="function"?r(i,t):RE(r,i)}function Kr(e,t,r,n){if(typeof e!="string")return!1;DE(r);let i=n(e);return r instanceof Function?r(i,t):r instanceof RegExp?RE(r,i):i===String(r)}function Cp(e){let{trim:t=!0,collapseWhitespace:r=!0}=e===void 0?{}:e;return n=>{let i=n;return i=t?i.trim():i,i=r?i.replace(/\s+/g," "):i,i}}function Xn(e){let{trim:t,collapseWhitespace:r,normalizer:n}=e;if(!n)return Cp({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}function RE(e,t){let 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}function Ho(e){return e.matches("input[type=submit], input[type=button], input[type=reset]")?e.value:Array.from(e.childNodes).filter(t=>t.nodeType===CE&&!!t.textContent).map(t=>t.textContent).join("")}var lM=cM(fr.elementRoles);function PE(e){return e.hidden===!0||e.getAttribute("aria-hidden")==="true"||e.ownerDocument.defaultView.getComputedStyle(e).display==="none"}function Ss(e,t){t===void 0&&(t={});let{isSubtreeInaccessible:r=PE}=t;if(e.ownerDocument.defaultView.getComputedStyle(e).visibility==="hidden")return!0;let n=e;for(;n;){if(r(n))return!0;n=n.parentElement}return!1}function _p(e){for(let{match:t,roles:r}of lM)if(t(e))return[...r];return[]}function cM(e){function t(a){let{name:s,attributes:p}=a;return""+s+p.map(l=>{let{name:d,value:f,constraints:h=[]}=l,m=h.indexOf("undefined")!==-1,b=h.indexOf("set")!==-1;return typeof f<"u"?"["+d+'="'+f+'"]':m?":not(["+d+"])":b?"["+d+"]:not(["+d+'=""])':"["+d+"]"}).join("")}function r(a){let{attributes:s=[]}=a;return s.length}function n(a,s){let{specificity:p}=a,{specificity:l}=s;return l-p}function i(a){let{attributes:s=[]}=a,p=s.findIndex(d=>d.value&&d.name==="type"&&d.value==="text");p>=0&&(s=[...s.slice(0,p),...s.slice(p+1)]);let l=t({...a,attributes:s});return d=>p>=0&&d.type!=="text"?!1:d.matches(l)}let o=[];for(let[a,s]of e.entries())o=[...o,{match:i(a),roles:Array.from(s),specificity:r(a)}];return o.sort(n)}function OE(e,t){let{hidden:r=!1}=t===void 0?{}:t;function n(i){return[i,...Array.from(i.children).reduce((o,a)=>[...o,...n(a)],[])]}return n(e).filter(i=>r===!1?Ss(i)===!1:!0).reduce((i,o)=>{let a=[];return o.hasAttribute("role")?a=o.getAttribute("role").split(" ").slice(0,1):a=_p(o),a.reduce((s,p)=>Array.isArray(s[p])?{...s,[p]:[...s[p],o]}:{...s,[p]:[o]},i)},{})}function FE(e,t){let{hidden:r,includeDescription:n}=t,i=OE(e,{hidden:r});return Object.entries(i).filter(o=>{let[a]=o;return a!=="generic"}).map(o=>{let[a,s]=o,p="-".repeat(50),l=s.map(d=>{let f='Name "'+Ep(d,{computedStyleSupportsPseudoElements:Xe().computedStyleSupportsPseudoElements})+`":
|
|
306
|
+
`,h=To(d.cloneNode(!1));if(n){let m='Description "'+mE(d,{computedStyleSupportsPseudoElements:Xe().computedStyleSupportsPseudoElements})+`":
|
|
307
|
+
`;return""+f+m+h}return""+f+h}).join(`
|
|
308
|
+
|
|
309
|
+
`);return a+`:
|
|
310
|
+
|
|
311
|
+
`+l+`
|
|
312
|
+
|
|
313
|
+
`+p}).join(`
|
|
314
|
+
`)}var pM=function(e,t){let{hidden:r=!1}=t===void 0?{}:t;return console.log(FE(e,{hidden:r}))};function dM(e){return e.tagName==="OPTION"?e.selected:Go(e,"aria-selected")}function fM(e){return e.getAttribute("aria-busy")==="true"}function hM(e){if(!("indeterminate"in e&&e.indeterminate))return"checked"in e?e.checked:Go(e,"aria-checked")}function mM(e){return Go(e,"aria-pressed")}function yM(e){var t,r;return(t=(r=Go(e,"aria-current"))!=null?r:e.getAttribute("aria-current"))!=null?t:!1}function gM(e){return Go(e,"aria-expanded")}function Go(e,t){let r=e.getAttribute(t);if(r==="true")return!0;if(r==="false")return!1}function bM(e){let 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]}function EM(e){let t=e.getAttribute("aria-valuenow");return t===null?void 0:+t}function vM(e){let t=e.getAttribute("aria-valuemax");return t===null?void 0:+t}function AM(e){let t=e.getAttribute("aria-valuemin");return t===null?void 0:+t}function wM(e){let t=e.getAttribute("aria-valuetext");return t===null?void 0:t}var eh=Cp();function CM(e){return e.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&")}function th(e){return new RegExp(CM(e.toLowerCase()),"i")}function on(e,t,r,n){let{variant:i,name:o}=n,a="",s={},p=[["Role","TestId"].includes(e)?r:th(r)];o&&(s.name=th(o)),e==="Role"&&Ss(t)&&(s.hidden=!0,a=`Element is inaccessible. This means that the element and all its children are invisible to screen readers.
|
|
315
|
+
If you are using the aria-hidden prop, make sure this is the right choice for your case.
|
|
316
|
+
`),Object.keys(s).length>0&&p.push(s);let l=i+"By"+e;return{queryName:e,queryMethod:l,queryArgs:p,variant:i,warning:a,toString(){a&&console.warn(a);let[d,f]=p;return d=typeof d=="string"?"'"+d+"'":d,f=f?", { "+Object.entries(f).map(h=>{let[m,b]=h;return m+": "+b}).join(", ")+" }":"",l+"("+d+f+")"}}}function an(e,t,r){return r&&(!t||t.toLowerCase()===e.toLowerCase())}function Ua(e,t,r){var n,i;if(t===void 0&&(t="get"),e.matches(Xe().defaultIgnore))return;let o=(n=e.getAttribute("role"))!=null?n:(i=_p(e))==null?void 0:i[0];if(o!=="generic"&&an("Role",r,o))return on("Role",e,o,{variant:t,name:Ep(e,{computedStyleSupportsPseudoElements:Xe().computedStyleSupportsPseudoElements})});let a=xE(document,e).map(h=>h.content).join(" ");if(an("LabelText",r,a))return on("LabelText",e,a,{variant:t});let s=e.getAttribute("placeholder");if(an("PlaceholderText",r,s))return on("PlaceholderText",e,s,{variant:t});let p=eh(Ho(e));if(an("Text",r,p))return on("Text",e,p,{variant:t});if(an("DisplayValue",r,e.value))return on("DisplayValue",e,eh(e.value),{variant:t});let l=e.getAttribute("alt");if(an("AltText",r,l))return on("AltText",e,l,{variant:t});let d=e.getAttribute("title");if(an("Title",r,d))return on("Title",e,d,{variant:t});let f=e.getAttribute(Xe().testIdAttribute);if(an("TestId",r,f))return on("TestId",e,f,{variant:t})}function oa(e,t){e.stack=t.stack.replace(t.message,e.message)}function _M(e,t){let{container:r=wp(),timeout:n=Xe().asyncUtilTimeout,showOriginalStackTrace:i=Xe().showOriginalStackTrace,stackTraceError:o,interval:a=50,onTimeout:s=l=>(Object.defineProperty(l,"message",{value:Xe().getElementError(l.message,r).message}),l),mutationObserverOptions:p={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(l,d)=>{let f,h,m,b=!1,E="idle",w=setTimeout(R,n),A=su();if(A){let{unstable_advanceTimersWrapper:y}=Xe();for(O();!b;){if(!su()){let T=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");i||oa(T,o),d(T);return}if(await y(async()=>{jest.advanceTimersByTime(a)}),b)break;O()}}else{try{en(r)}catch(T){d(T);return}h=setInterval(k,a);let{MutationObserver:y}=_E(r);m=new y(k),m.observe(r,p),O()}function S(y,T){b=!0,clearTimeout(w),A||(clearInterval(h),m.disconnect()),y?d(y):l(T)}function k(){if(su()){let y=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 i||oa(y,o),d(y)}else return O()}function O(){if(E!=="pending")try{let y=oM(e);typeof y?.then=="function"?(E="pending",y.then(T=>{E="resolved",S(null,T)},T=>{E="rejected",f=T})):S(null,y)}catch(y){f=y}}function R(){let y;f?(y=f,!i&&y.name==="TestingLibraryElementError"&&oa(y,o)):(y=new Error("Timed out in waitFor."),i||oa(y,o)),S(s(y),null)}})}function Tp(e,t){let r=new Error("STACK_TRACE_MESSAGE");return Xe().asyncWrapper(()=>_M(e,{stackTraceError:r,...t}))}function xs(e,t){return Xe().getElementError(e,t)}function Ds(e,t){return xs(e+"\n\n(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).",t)}function Qn(e,t,r,n){let{exact:i=!0,collapseWhitespace:o,trim:a,normalizer:s}=n===void 0?{}:n,p=i?Kr:ki,l=Xn({collapseWhitespace:o,trim:a,normalizer:s});return Array.from(t.querySelectorAll("["+e+"]")).filter(d=>p(d.getAttribute(e),d,r,l))}function NE(e,t,r,n){let i=Qn(e,t,r,n);if(i.length>1)throw Ds("Found multiple elements by ["+e+"="+r+"]",t);return i[0]||null}function vi(e,t){return function(r){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];let a=e(r,...i);if(a.length>1){let s=a.map(p=>xs(null,p).message).join(`
|
|
317
|
+
|
|
318
|
+
`);throw Ds(t(r,...i)+`
|
|
319
|
+
|
|
320
|
+
Here are the matching elements:
|
|
321
|
+
|
|
322
|
+
`+s,r)}return a[0]||null}}function IE(e,t){return Xe().getElementError(`A better query is available, try this:
|
|
323
|
+
`+e.toString()+`
|
|
324
|
+
`,t)}function Sp(e,t){return function(r){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];let a=e(r,...i);if(!a.length)throw Xe().getElementError(t(r,...i),r);return a}}function Ai(e){return(t,r,n,i)=>Tp(()=>e(t,r,n),{container:t,...i})}var vn=(e,t,r)=>function(n){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];let s=e(n,...o),[{suggest:p=Xe().throwSuggestions}={}]=o.slice(-1);if(s&&p){let l=Ua(s,r);if(l&&!t.endsWith(l.queryName))throw IE(l.toString(),n)}return s},nr=(e,t,r)=>function(n){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];let s=e(n,...o),[{suggest:p=Xe().throwSuggestions}={}]=o.slice(-1);if(s.length&&p){let l=[...new Set(s.map(d=>{var f;return(f=Ua(d,r))==null?void 0:f.toString()}))];if(l.length===1&&!t.endsWith(Ua(s[0],r).queryName))throw IE(l[0],n)}return s};function tn(e,t,r){let n=vn(vi(e,t),e.name,"query"),i=Sp(e,r),o=vi(i,t),a=vn(o,e.name,"get"),s=nr(i,e.name.replace("query","get"),"getAll"),p=Ai(nr(i,e.name,"findAll")),l=Ai(vn(o,e.name,"find"));return[n,s,a,p,l]}var TM=Object.freeze({__proto__:null,getElementError:xs,wrapAllByQueryWithSuggestion:nr,wrapSingleQueryWithSuggestion:vn,getMultipleElementsFoundError:Ds,queryAllByAttribute:Qn,queryByAttribute:NE,makeSingleQuery:vi,makeGetAllQuery:Sp,makeFindQuery:Ai,buildQueries:tn});function SM(e){return Array.from(e.querySelectorAll("label,input")).map(t=>({node:t,textToMatch:cl(t)})).filter(t=>{let{textToMatch:r}=t;return r!==null})}var xM=function(e,t,r){let{exact:n=!0,trim:i,collapseWhitespace:o,normalizer:a}=r===void 0?{}:r,s=n?Kr:ki,p=Xn({collapseWhitespace:o,trim:i,normalizer:a});return SM(e).filter(l=>{let{node:d,textToMatch:f}=l;return s(f,d,t,p)}).map(l=>{let{node:d}=l;return d})},So=function(e,t,r){let{selector:n="*",exact:i=!0,collapseWhitespace:o,trim:a,normalizer:s}=r===void 0?{}:r;en(e);let p=i?Kr:ki,l=Xn({collapseWhitespace:o,trim:a,normalizer:s}),d=Array.from(e.querySelectorAll("*")).filter(f=>SE(f).length||f.hasAttribute("aria-labelledby")).reduce((f,h)=>{let m=xE(e,h,{selector:n});m.filter(E=>!!E.formControl).forEach(E=>{p(E.content,E.formControl,t,l)&&E.formControl&&f.push(E.formControl)});let b=m.filter(E=>!!E.content).map(E=>E.content);return p(b.join(" "),h,t,l)&&f.push(h),b.length>1&&b.forEach((E,w)=>{p(E,h,t,l)&&f.push(h);let A=[...b];A.splice(w,1),A.length>1&&p(A.join(" "),h,t,l)&&f.push(h)}),f},[]).concat(Qn("aria-label",e,t,{exact:i,normalizer:l}));return Array.from(new Set(d)).filter(f=>f.matches(n))},Gn=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];let o=So(e,t,...n);if(!o.length){let a=xM(e,t,...n);if(a.length){let s=a.map(p=>DM(e,p)).filter(p=>!!p);throw s.length?Xe().getElementError(s.map(p=>"Found a label with the text of: "+t+", however the element associated with this label (<"+p+" />) is non-labellable [https://html.spec.whatwg.org/multipage/forms.html#category-label]. If you really need to label a <"+p+" />, you can use aria-label or aria-labelledby instead.").join(`
|
|
325
|
+
|
|
326
|
+
`),e):Xe().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 Xe().getElementError("Unable to find a label with the text of: "+t,e)}return o};function DM(e,t){let r=t.getAttribute("for");if(!r)return null;let n=e.querySelector('[id="'+r+'"]');return n?n.tagName.toLowerCase():null}var BE=(e,t)=>"Found multiple elements with the text of: "+t,kE=vn(vi(So,BE),So.name,"query"),ME=vi(Gn,BE),qE=Ai(nr(Gn,Gn.name,"findAll")),jE=Ai(vn(ME,Gn.name,"find")),LE=nr(Gn,Gn.name,"getAll"),VE=vn(ME,Gn.name,"get"),$E=nr(So,So.name,"queryAll"),pl=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return en(t[0]),Qn("placeholder",...t)},RM=(e,t)=>"Found multiple elements with the placeholder text of: "+t,PM=(e,t)=>"Unable to find an element with the placeholder text of: "+t,UE=nr(pl,pl.name,"queryAll"),[JE,HE,GE,zE,WE]=tn(pl,RM,PM),dl=function(e,t,r){let{selector:n="*",exact:i=!0,collapseWhitespace:o,trim:a,ignore:s=Xe().defaultIgnore,normalizer:p}=r===void 0?{}:r;en(e);let l=i?Kr:ki,d=Xn({collapseWhitespace:o,trim:a,normalizer:p}),f=[];return typeof e.matches=="function"&&e.matches(n)&&(f=[e]),[...f,...Array.from(e.querySelectorAll(n))].filter(h=>!s||!h.matches(s)).filter(h=>l(Ho(h),h,t,d))},OM=(e,t)=>"Found multiple elements with the text: "+t,FM=function(e,t,r){r===void 0&&(r={});let{collapseWhitespace:n,trim:i,normalizer:o,selector:a}=r,s=Xn({collapseWhitespace:n,trim:i,normalizer:o})(t.toString()),p=s!==t.toString(),l=(a??"*")!=="*";return"Unable to find an element with the text: "+(p?s+" (normalized from '"+t+"')":t)+(l?", 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."},YE=nr(dl,dl.name,"queryAll"),[KE,XE,QE,ZE,ev]=tn(dl,OM,FM),fl=function(e,t,r){let{exact:n=!0,collapseWhitespace:i,trim:o,normalizer:a}=r===void 0?{}:r;en(e);let s=n?Kr:ki,p=Xn({collapseWhitespace:i,trim:o,normalizer:a});return Array.from(e.querySelectorAll("input,textarea,select")).filter(l=>l.tagName==="SELECT"?Array.from(l.options).filter(d=>d.selected).some(d=>s(Ho(d),d,t,p)):s(l.value,l,t,p))},NM=(e,t)=>"Found multiple elements with the display value: "+t+".",IM=(e,t)=>"Unable to find an element with the display value: "+t+".",tv=nr(fl,fl.name,"queryAll"),[rv,nv,iv,ov,av]=tn(fl,NM,IM),BM=/^(img|input|area|.+-.+)$/i,hl=function(e,t,r){return r===void 0&&(r={}),en(e),Qn("alt",e,t,r).filter(n=>BM.test(n.tagName))},kM=(e,t)=>"Found multiple elements with the alt text: "+t,MM=(e,t)=>"Unable to find an element with the alt text: "+t,sv=nr(hl,hl.name,"queryAll"),[uv,lv,cv,pv,dv]=tn(hl,kM,MM),qM=e=>{var t;return e.tagName.toLowerCase()==="title"&&((t=e.parentElement)==null?void 0:t.tagName.toLowerCase())==="svg"},ml=function(e,t,r){let{exact:n=!0,collapseWhitespace:i,trim:o,normalizer:a}=r===void 0?{}:r;en(e);let s=n?Kr:ki,p=Xn({collapseWhitespace:i,trim:o,normalizer:a});return Array.from(e.querySelectorAll("[title], svg > title")).filter(l=>s(l.getAttribute("title"),l,t,p)||qM(l)&&s(Ho(l),l,t,p))},jM=(e,t)=>"Found multiple elements with the title: "+t+".",LM=(e,t)=>"Unable to find an element with the title: "+t+".",fv=nr(ml,ml.name,"queryAll"),[hv,mv,yv,gv,bv]=tn(ml,jM,LM),yl=function(e,t,r){let{hidden:n=Xe().defaultHidden,name:i,description:o,queryFallbacks:a=!1,selected:s,busy:p,checked:l,pressed:d,current:f,level:h,expanded:m,value:{now:b,min:E,max:w,text:A}={}}=r===void 0?{}:r;if(en(e),s!==void 0){var S;if(((S=fr.roles.get(t))==null?void 0:S.props["aria-selected"])===void 0)throw new Error('"aria-selected" is not supported on role "'+t+'".')}if(p!==void 0){var k;if(((k=fr.roles.get(t))==null?void 0:k.props["aria-busy"])===void 0)throw new Error('"aria-busy" is not supported on role "'+t+'".')}if(l!==void 0){var O;if(((O=fr.roles.get(t))==null?void 0:O.props["aria-checked"])===void 0)throw new Error('"aria-checked" is not supported on role "'+t+'".')}if(d!==void 0){var R;if(((R=fr.roles.get(t))==null?void 0:R.props["aria-pressed"])===void 0)throw new Error('"aria-pressed" is not supported on role "'+t+'".')}if(f!==void 0){var y;if(((y=fr.roles.get(t))==null?void 0:y.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(b!==void 0){var T;if(((T=fr.roles.get(t))==null?void 0:T.props["aria-valuenow"])===void 0)throw new Error('"aria-valuenow" is not supported on role "'+t+'".')}if(w!==void 0){var _;if(((_=fr.roles.get(t))==null?void 0:_.props["aria-valuemax"])===void 0)throw new Error('"aria-valuemax" is not supported on role "'+t+'".')}if(E!==void 0){var D;if(((D=fr.roles.get(t))==null?void 0:D.props["aria-valuemin"])===void 0)throw new Error('"aria-valuemin" is not supported on role "'+t+'".')}if(A!==void 0){var J;if(((J=fr.roles.get(t))==null?void 0:J.props["aria-valuetext"])===void 0)throw new Error('"aria-valuetext" is not supported on role "'+t+'".')}if(m!==void 0){var M;if(((M=fr.roles.get(t))==null?void 0:M.props["aria-expanded"])===void 0)throw new Error('"aria-expanded" is not supported on role "'+t+'".')}let G=new WeakMap;function L(I){return G.has(I)||G.set(I,PE(I)),G.get(I)}return Array.from(e.querySelectorAll(VM(t))).filter(I=>{if(I.hasAttribute("role")){let $=I.getAttribute("role");if(a)return $.split(" ").filter(Boolean).some(X=>X===t);let[Y]=$.split(" ");return Y===t}return _p(I).some($=>$===t)}).filter(I=>{if(s!==void 0)return s===dM(I);if(p!==void 0)return p===fM(I);if(l!==void 0)return l===hM(I);if(d!==void 0)return d===mM(I);if(f!==void 0)return f===yM(I);if(m!==void 0)return m===gM(I);if(h!==void 0)return h===bM(I);if(b!==void 0||w!==void 0||E!==void 0||A!==void 0){let Y=!0;if(b!==void 0&&Y&&(Y=b===EM(I)),w!==void 0&&Y&&(Y=w===vM(I)),E!==void 0&&Y&&(Y=E===AM(I)),A!==void 0){var $;Y&&(Y=Kr(($=wM(I))!=null?$:null,I,A,X=>X))}return Y}return!0}).filter(I=>i===void 0?!0:Kr(Ep(I,{computedStyleSupportsPseudoElements:Xe().computedStyleSupportsPseudoElements}),I,i,$=>$)).filter(I=>o===void 0?!0:Kr(mE(I,{computedStyleSupportsPseudoElements:Xe().computedStyleSupportsPseudoElements}),I,o,$=>$)).filter(I=>n===!1?Ss(I,{isSubtreeInaccessible:L})===!1:!0)};function VM(e){var t;let r='*[role~="'+e+'"]',n=(t=fr.roleElements.get(e))!=null?t:new Set,i=new Set(Array.from(n).map(o=>{let{name:a}=o;return a}));return[r].concat(Array.from(i)).join(",")}var Ev=e=>{let t="";return e===void 0?t="":typeof e=="string"?t=' and name "'+e+'"':t=" and name `"+e+"`",t},$M=function(e,t,r){let{name:n}=r===void 0?{}:r;return'Found multiple elements with the role "'+t+'"'+Ev(n)},UM=function(e,t,r){let{hidden:n=Xe().defaultHidden,name:i,description:o}=r===void 0?{}:r;if(Xe()._disableExpensiveErrorDiagnostics)return'Unable to find role="'+t+'"'+Ev(i);let a="";Array.from(e.children).forEach(d=>{a+=FE(d,{hidden:n,includeDescription:o!==void 0})});let s;a.length===0?n===!1?s="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":s="There are no available roles.":s=(`
|
|
327
|
+
Here are the `+(n===!1?"accessible":"available")+` roles:
|
|
328
|
+
|
|
329
|
+
`+a.replace(/\n/g,`
|
|
330
|
+
`).replace(/\n\s\s\n/g,`
|
|
331
|
+
|
|
332
|
+
`)+`
|
|
333
|
+
`).trim();let p="";i===void 0?p="":typeof i=="string"?p=' and name "'+i+'"':p=" and name `"+i+"`";let l="";return o===void 0?l="":typeof o=="string"?l=' and description "'+o+'"':l=" and description `"+o+"`",(`
|
|
334
|
+
Unable to find an `+(n===!1?"accessible ":"")+'element with the role "'+t+'"'+p+l+`
|
|
335
|
+
|
|
336
|
+
`+s).trim()},vv=nr(yl,yl.name,"queryAll"),[Av,wv,Cv,_v,Tv]=tn(yl,$M,UM),xp=()=>Xe().testIdAttribute,gl=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return en(t[0]),Qn(xp(),...t)},JM=(e,t)=>"Found multiple elements by: ["+xp()+'="'+t+'"]',HM=(e,t)=>"Unable to find an element by: ["+xp()+'="'+t+'"]',Sv=nr(gl,gl.name,"queryAll"),[xv,Dv,Rv,Pv,Ov]=tn(gl,JM,HM),Ja=Object.freeze({__proto__:null,queryAllByLabelText:$E,queryByLabelText:kE,getAllByLabelText:LE,getByLabelText:VE,findAllByLabelText:qE,findByLabelText:jE,queryByPlaceholderText:JE,queryAllByPlaceholderText:UE,getByPlaceholderText:GE,getAllByPlaceholderText:HE,findAllByPlaceholderText:zE,findByPlaceholderText:WE,queryByText:KE,queryAllByText:YE,getByText:QE,getAllByText:XE,findAllByText:ZE,findByText:ev,queryByDisplayValue:rv,queryAllByDisplayValue:tv,getByDisplayValue:iv,getAllByDisplayValue:nv,findAllByDisplayValue:ov,findByDisplayValue:av,queryByAltText:uv,queryAllByAltText:sv,getByAltText:cv,getAllByAltText:lv,findAllByAltText:pv,findByAltText:dv,queryByTitle:hv,queryAllByTitle:fv,getByTitle:yv,getAllByTitle:mv,findAllByTitle:gv,findByTitle:bv,queryByRole:Av,queryAllByRole:vv,getAllByRole:wv,getByRole:Cv,findAllByRole:_v,findByRole:Tv,queryByTestId:xv,queryAllByTestId:Sv,getByTestId:Rv,getAllByTestId:Dv,findAllByTestId:Pv,findByTestId:Ov});function bl(e,t,r){return t===void 0&&(t=Ja),r===void 0&&(r={}),Object.keys(t).reduce((n,i)=>{let o=t[i];return n[i]=o.bind(null,e),n},r)}var Fv=e=>!e||Array.isArray(e)&&!e.length;function rh(e){if(Fv(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.")}async function GM(e,t){let r=new Error("Timed out in waitForElementToBeRemoved.");if(typeof e!="function"){rh(e);let n=(Array.isArray(e)?e:[e]).map(i=>{let o=i.parentElement;if(o===null)return()=>null;for(;o.parentElement;)o=o.parentElement;return()=>o.contains(i)?i:null});e=()=>n.map(i=>i()).filter(Boolean)}return rh(e()),Tp(()=>{let n;try{n=e()}catch(i){if(i.name==="TestingLibraryElementError")return;throw i}if(!Fv(n))throw r},t)}var nh={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}}},ih={doubleClick:"dblClick"};function xo(e,t){return Xe().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)})}function _a(e,t,r,n){let{EventType:i="Event",defaultInit:o={}}=n===void 0?{}:n;if(!t)throw new Error('Unable to fire a "'+e+'" event - please provide a DOM element.');let a={...o,...r},{target:{value:s,files:p,...l}={}}=a;s!==void 0&&zM(t,s),p!==void 0&&Object.defineProperty(t,"files",{configurable:!0,enumerable:!0,writable:!0,value:p}),Object.assign(t,l);let d=_E(t),f=d[i]||d.Event,h;if(typeof f=="function")h=new f(e,a);else{h=d.document.createEvent(i);let{bubbles:m,cancelable:b,detail:E,...w}=a;h.initEvent(e,m,b,E),Object.keys(w).forEach(A=>{h[A]=w[A]})}return["dataTransfer","clipboardData"].forEach(m=>{let b=a[m];typeof b=="object"&&(typeof d.DataTransfer=="function"?Object.defineProperty(h,m,{value:Object.getOwnPropertyNames(b).reduce((E,w)=>(Object.defineProperty(E,w,{value:b[w]}),E),new d.DataTransfer)}):Object.defineProperty(h,m,{value:b}))}),h}Object.keys(nh).forEach(e=>{let{EventType:t,defaultInit:r}=nh[e],n=e.toLowerCase();_a[e]=(i,o)=>_a(n,i,o,{EventType:t,defaultInit:r}),xo[e]=(i,o)=>xo(i,_a[e](i,o))});function zM(e,t){let{set:r}=Object.getOwnPropertyDescriptor(e,"value")||{},n=Object.getPrototypeOf(e),{set:i}=Object.getOwnPropertyDescriptor(n,"value")||{};if(i&&r!==i)i.call(e,t);else if(r)r.call(e,t);else throw new Error("The given element does not have a value setter")}Object.keys(ih).forEach(e=>{let t=ih[e];xo[e]=function(){return xo[t](...arguments)}});function WM(e){return e.replace(/[ \t]*[\n][ \t]*/g,`
|
|
337
|
+
`)}function YM(e){return jk.default.compressToEncodedURIComponent(WM(e))}function KM(e){return"https://testing-playground.com/#markup="+YM(e)}var XM=(e,t,r)=>Array.isArray(e)?e.forEach(n=>ll(n,t,r)):ll(e,t,r),QM=function(e){if(e===void 0&&(e=wp().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}let t=KM(e.innerHTML);return console.log(`Open this URL in your browser
|
|
338
|
+
|
|
339
|
+
`+t),t},oh={debug:XM,logTestingPlaygroundURL:QM},ZM=typeof document<"u"&&document.body?bl(document.body,Ja,oh):Object.keys(Ja).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),oh);function Ge(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,i])=>e[n]===i):!0}function br(e){var t;if(eq(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 ${tq(e)}`)}function eq(e){return e.nodeType===9}function tq(e){return typeof e=="function"?`function ${e.name}`:e===null?"null":String(e)}function Nv(e,t){return new Promise((r,n)=>{let i=new t;i.onerror=n,i.onabort=n,i.onload=()=>{r(String(i.result))},i.readAsText(e)})}function Dp(e,t){let r={...t,length:t.length,item:n=>r[n],[Symbol.iterator]:function*(){for(let n=0;n<r.length;n++)yield r[n]}};return r.constructor=e.FileList,e.FileList&&Object.setPrototypeOf(r,e.FileList.prototype),Object.freeze(r),r}function hn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Iv=class{getAsFile(){return this.file}getAsString(e){typeof this.data=="string"&&e(this.data)}webkitGetAsEntry(){throw new Error("not implemented")}constructor(e,t){hn(this,"kind",void 0),hn(this,"type",void 0),hn(this,"file",null),hn(this,"data",void 0),typeof e=="string"?(this.kind="string",this.type=String(t),this.data=e):(this.kind="file",this.type=e.type,this.file=e)}},rq=class extends Array{add(...e){let t=new Iv(e[0],e[1]);return this.push(t),t}clear(){this.splice(0,this.length)}remove(e){this.splice(e,1)}};function aa(e,t){let[r,n]=e.split("/"),i=!n||n==="*";return o=>t?o.type===(i?r:e):i?o.type.startsWith(`${r}/`):o.type===r}function nq(e){return new class{getData(t){var r;let n=(r=this.items.find(aa(t,!0)))!==null&&r!==void 0?r:this.items.find(aa(t,!1)),i="";return n?.getAsString(o=>{i=o}),i}setData(t,r){let n=this.items.findIndex(aa(t,!0)),i=new Iv(r,t);n>=0?this.items.splice(n,1,i):this.items.push(i)}clearData(t){if(t){let r=this.items.findIndex(aa(t,!0));r>=0&&this.items.remove(r)}else this.items.clear()}get types(){let t=[];return this.files.length&&t.push("Files"),this.items.forEach(r=>t.push(r.type)),Object.freeze(t),t}setDragImage(){}constructor(){hn(this,"dropEffect","none"),hn(this,"effectAllowed","uninitialized"),hn(this,"items",new rq),hn(this,"files",Dp(e,[]))}}}function Rp(e,t=[]){let r=typeof e.DataTransfer>"u"?nq(e):new e.DataTransfer;return Object.defineProperty(r,"files",{get:()=>Dp(e,t)}),r}async function iq(e,t){return t.kind==="file"?t.getAsFile():new e.Blob([await new Promise(r=>t.getAsString(r))],{type:t.type})}function Bv(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kv(e,...t){let r=Object.fromEntries(t.map(n=>[typeof n=="string"?"text/plain":n.type,Promise.resolve(n)]));return typeof e.ClipboardItem<"u"?new e.ClipboardItem(r):new class{get types(){return Array.from(Object.keys(this.data))}async getType(n){let i=await this.data[n];if(!i)throw new Error(`${n} is not one of the available MIME types on this item.`);return i instanceof e.Blob?i:new e.Blob([i],{type:n})}constructor(n){Bv(this,"data",void 0),this.data=n}}(r)}var wi=Symbol("Manage ClipboardSub");function ah(e,t){return Object.assign(new class extends e.EventTarget{async read(){return Array.from(this.items)}async readText(){let r="";for(let n of this.items){let i=n.types.includes("text/plain")?"text/plain":n.types.find(o=>o.startsWith("text/"));i&&(r+=await n.getType(i).then(o=>Nv(o,e.FileReader)))}return r}async write(r){this.items=r}async writeText(r){this.items=[kv(e,r)]}constructor(...r){super(...r),Bv(this,"items",[])}},{[wi]:t})}function Pp(e){return!!e?.[wi]}function oq(e){if(Pp(e.navigator.clipboard))return e.navigator.clipboard[wi];let t=Object.getOwnPropertyDescriptor(e.navigator,"clipboard"),r,n={resetClipboardStub:()=>{r=ah(e,n)},detachClipboardStub:()=>{t?Object.defineProperty(e.navigator,"clipboard",t):Object.defineProperty(e.navigator,"clipboard",{value:void 0,configurable:!0})}};return r=ah(e,n),Object.defineProperty(e.navigator,"clipboard",{get:()=>r,configurable:!0}),r[wi]}function aq(e){Pp(e.navigator.clipboard)&&e.navigator.clipboard[wi].resetClipboardStub()}function sq(e){Pp(e.navigator.clipboard)&&e.navigator.clipboard[wi].detachClipboardStub()}async function uq(e){let t=e.defaultView,r=t?.navigator.clipboard,n=r&&await r.read();if(!n)throw new Error("The Clipboard API is unavailable.");let i=Rp(t);for(let o of n)for(let a of o.types)i.setData(a,await o.getType(a).then(s=>Nv(s,t.FileReader)));return i}async function Mv(e,t){let r=br(e),n=r.navigator.clipboard,i=[];for(let o=0;o<t.items.length;o++){let a=t.items[o],s=await iq(r,a);i.push(kv(r,s))}if(!(n&&await n.write(i).then(()=>!0,()=>!1)))throw new Error("The Clipboard API is unavailable.")}var Ha=globalThis;typeof Ha.afterEach=="function"&&Ha.afterEach(()=>{typeof globalThis.window<"u"&&aq(globalThis.window)});typeof Ha.afterAll=="function"&&Ha.afterAll(()=>{typeof globalThis.window<"u"&&sq(globalThis.window)});var qv=["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 Op(e){return e.matches(qv)}function lq(e){return new e.constructor(e.type,e)}function Xr(e){for(let r=e;r;r=r.parentElement)if(Ge(r,["button","input","select","textarea","optgroup","option"])){if(r.hasAttribute("disabled"))return!0}else if(Ge(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}function zo(e){let t=e.activeElement;return t?.shadowRoot?zo(t.shadowRoot):Xr(t)?e.ownerDocument?e.ownerDocument.body:e.body:t}function uu(e){var t;return(t=zo(e))!==null&&t!==void 0?t:e.body}function cq(e,t){let r=e;do{if(t(r))return r;r=r.parentElement}while(r&&r!==e.ownerDocument.body)}function zn(e){return e.hasAttribute("contenteditable")&&(e.getAttribute("contenteditable")=="true"||e.getAttribute("contenteditable")=="")}function Do(e){let t=pq(e);return t&&(t.closest('[contenteditable=""]')||t.closest('[contenteditable="true"]'))}function pq(e){return e.nodeType===1?e:e.parentElement}var jv=(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})(jv||{});function Lv(e){return Ge(e,"button")||Ge(e,"input")&&e.type in jv}function Ci(e){return $v(e)&&!e.readOnly||zn(e)}var Vv=(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})(Vv||{});function $v(e){return Ge(e,"textarea")||Ge(e,"input")&&e.type in Vv}function Ir(e){return Uv(e)&&$v(e)}function dq(e){return Uv(e)&&Lv(e)}function Uv(e){return e.nodeType===1}function fq(e){let t=e.ownerDocument.getSelection();if(t?.focusNode&&Ir(e)){let n=Do(t.focusNode);if(n){if(!t.isCollapsed){var r;let i=((r=n.firstChild)===null||r===void 0?void 0:r.nodeType)===3?n.firstChild:n;t.setBaseAndExtent(i,0,i,0)}}else t.setBaseAndExtent(e,0,e,0)}}function _i(e,t){return Xe().eventWrapper(e)}function _n(e){let t=cq(e,Op),r=zo(e.ownerDocument);(t??e.ownerDocument.body)!==r&&(_i(t?()=>t.focus():()=>r?.blur()),fq(t??e.ownerDocument.body))}function hq(e){!Op(e)||zo(e.ownerDocument)!==e||_i(()=>e.blur())}var Tn={};Tn.click=(e,t,r)=>{let n=t.closest("button,input,label,select,textarea"),i=n&&Ge(n,"label")&&n.control;if(i&&i!==t)return()=>{Op(i)&&(_n(i),r.dispatchEvent(i,lq(e)))};if(Ge(t,"input",{type:"file"}))return()=>{hq(t),t.dispatchEvent(new(br(t)).Event("fileDialog")),_n(t)}};var Ti=Symbol("Displayed value in UI"),Gr=Symbol("Displayed selection in UI"),Ga=Symbol("Initial value to compare on blur");function mq(e){return typeof e=="object"&&Ti in e}function yq(e){return!!e&&typeof e=="object"&&Gr in e}function gq(e,t){e[Ga]===void 0&&(e[Ga]=e.value),e[Ti]=t,e.value=Object.assign(new String(t),{[Ti]:!0})}function Br(e){return e[Ti]===void 0?e.value:String(e[Ti])}function Fp(e){e[Ti]=void 0}function Jv(e){e[Ga]=void 0}function bq(e){return e[Ga]}function Eq(e,t){e[Gr]=t}function Mi(e,{focusOffset:t,anchorOffset:r=t},n="replace"){let i=Br(e).length,o=f=>Math.max(0,Math.min(i,f)),a=n==="replace"||e[Gr]===void 0?o(r):e[Gr].anchorOffset,s=o(t),p=Math.min(a,s),l=Math.max(a,s);if(e[Gr]={anchorOffset:a,focusOffset:s},e.selectionStart===p&&e.selectionEnd===l)return;let d=Object.assign(new Number(p),{[Gr]:!0});try{e.setSelectionRange(d,l)}catch{}}function Ro(e){var t,r,n;let i=(n=e[Gr])!==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{...i,startOffset:Math.min(i.anchorOffset,i.focusOffset),endOffset:Math.max(i.anchorOffset,i.focusOffset)}}function vq(e){return!!e[Gr]}function Ta(e){e[Gr]=void 0}var za=globalThis.parseInt;function Aq(e){let t=e.replace(/\D/g,"");if(t.length<2)return e;let r=za(t[0],10),n=za(t[1],10);if(r>=3||r===2&&n>=4){let i;return r>=3?i=1:i=2,sh(t,i)}return e.length===2?e:sh(t,2)}function sh(e,t){let r=e.slice(0,t),n=Math.min(za(r,10),23),i=e.slice(t),o=za(i,10),a=Math.min(o,59);return`${n.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`}function Hv(e,t){let r=e.cloneNode();return r.value=t,r.value===t}var Gv=(function(e){return e.email="email",e.password="password",e.search="search",e.telephone="telephone",e.text="text",e.url="url",e})(Gv||{});function wq(e){var t;let r=(t=e.getAttribute("maxlength"))!==null&&t!==void 0?t:"";return/^\d+$/.test(r)&&Number(r)>=0?Number(r):void 0}function Cq(e){return Ge(e,"textarea")||Ge(e,"input")&&e.type in Gv}function zv(e,t,r,n){if(Sa(e)&&t+r>=0&&t+r<=e.nodeValue.length)return{node:e,offset:t+r};let i=uh(e,t,r);if(i){if(Sa(i))return{node:i,offset:r>0?Math.min(1,i.nodeValue.length):Math.max(i.nodeValue.length-1,0)};if(Ge(i,"br")){let o=uh(i,void 0,r);return o?Sa(o)?{node:o,offset:r>0?0:o.nodeValue.length}:r<0&&Ge(o,"br")?{node:i.parentNode,offset:sa(i)}:{node:o.parentNode,offset:sa(o)+(r>0?0:1)}:r<0&&n==="deleteContentBackward"?{node:i.parentNode,offset:sa(i)}:void 0}else return{node:i.parentNode,offset:sa(i)+(r>0?1:0)}}}function uh(e,t,r){let n=Number(t)+(r<0?-1:0);return t!==void 0&&Np(e)&&n>=0&&n<e.children.length&&(e=e.children[n]),Tq(e,r===1?"next":"previous",_q)}function _q(e){if(Sa(e))return!0;if(Np(e)){if(Ge(e,["input","textarea"]))return e.type!=="hidden";if(Ge(e,"br"))return!0}return!1}function sa(e){let t=0;for(;e.previousSibling;)t++,e=e.previousSibling;return t}function Np(e){return e.nodeType===1}function Sa(e){return e.nodeType===3}function Tq(e,t,r){for(;;){var n;let i=e[`${t}Sibling`];if(i){if(e=Sq(i,t==="next"?"first":"last"),r(e))return e}else if(e.parentNode&&(!Np(e.parentNode)||!zn(e.parentNode)&&e.parentNode!==((n=e.ownerDocument)===null||n===void 0?void 0:n.body)))e=e.parentNode;else break}}function Sq(e,t){for(;e.hasChildNodes();)e=e[`${t}Child`];return e}var Po=Symbol("Track programmatic changes for React workaround");function xq(e){return Object.getOwnPropertyNames(e).some(t=>t.startsWith("__react"))&&br(e).REACT_VERSION===17}function Dq(e){xq(e)&&(e[Po]={previousValue:String(e.value),tracked:[]})}function Rq(e,t){var r,n;(n=e[Po])===null||n===void 0||(r=n.tracked)===null||r===void 0||r.push(t),e[Po]||(Fp(e),Mi(e,{focusOffset:t.length}))}function Pq(e,t){var r;let n=e[Po];if(e[Po]=void 0,!(!(n==null||(r=n.tracked)===null||r===void 0)&&r.length))return;let i=n.tracked.length===2&&n.tracked[0]===n.previousValue&&n.tracked[1]===e.value;i||Fp(e),vq(e)&&Mi(e,{focusOffset:i?t:e.value.length})}function Wv(e){let t=Oq(e);if(t&&Ir(t))return{type:"input",selection:Ro(t)};let r=t?.ownerDocument.getSelection();return{type:Do(e)&&r?.anchorNode&&Do(r.anchorNode)?"contenteditable":"default",selection:r}}function Oq(e){return e.nodeType===1?e:e.parentElement}function Fq(e){let t=Wv(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)}}function Wn({focusNode:e,focusOffset:t,anchorNode:r=e,anchorOffset:n=t}){var i,o;if(Wv(e).type==="input")return Mi(e,{anchorOffset:n,focusOffset:t});(o=r.ownerDocument)===null||o===void 0||(i=o.getSelection())===null||i===void 0||i.setBaseAndExtent(r,n,e,t)}function Yv(e){return Ge(e,"input")&&["date","time"].includes(e.type)}function Si(e,t,r,n="insertText"){let i=Fq(t);i&&(!Yv(t)&&!e.dispatchUIEvent(t,"beforeinput",{inputType:n,data:r})||("startContainer"in i?Nq(e,t,i,r,n):Iq(e,t,i,r,n)))}function Nq(e,t,r,n,i){let o=!1;if(!r.collapsed)o=!0,r.deleteContents();else if(["deleteContentBackward","deleteContentForward"].includes(i)){let a=zv(r.startContainer,r.startOffset,i==="deleteContentBackward"?-1:1,i);if(a){o=!0;let s=r.cloneRange();s.comparePoint(a.node,a.offset)<0?s.setStart(a.node,a.offset):s.setEnd(a.node,a.offset),s.deleteContents()}}if(n)if(r.endContainer.nodeType===3){let a=r.endOffset;r.endContainer.insertData(a,n),r.setStart(r.endContainer,a+n.length),r.setEnd(r.endContainer,a+n.length)}else{let a=t.ownerDocument.createTextNode(n);r.insertNode(a),r.setStart(a,n.length),r.setEnd(a,n.length)}(o||n)&&e.dispatchUIEvent(t,"input",{inputType:i})}function Iq(e,t,r,n,i){let o=n;if(Cq(t)){let l=wq(t);if(l!==void 0&&n.length>0){let d=l-t.value.length;if(d>0)o=n.substring(0,d);else return}}let{newValue:a,newOffset:s,oldValue:p}=Bq(o,t,r,i);a===p&&s===r.startOffset&&s===r.endOffset||Ge(t,"input",{type:"number"})&&!kq(a)||(gq(t,a),Wn({focusNode:t,anchorOffset:s,focusOffset:s}),Yv(t)?Hv(t,a)&&(lh(e,t,s,{}),e.dispatchUIEvent(t,"change"),Jv(t)):lh(e,t,s,{data:n,inputType:i}))}function Bq(e,t,{startOffset:r,endOffset:n},i){let o=Br(t),a=Math.max(0,r===n&&i==="deleteContentBackward"?r-1:r),s=o.substring(0,a),p=Math.min(o.length,r===n&&i==="deleteContentForward"?r+1:n),l=o.substring(p,o.length),d=`${s}${e}${l}`,f=a+e.length;if(Ge(t,"input",{type:"time"})){let h=Aq(d);h!==""&&Hv(t,h)&&(d=h,f=h.length)}return{oldValue:o,newValue:d,newOffset:f}}function lh(e,t,r,n){e.dispatchUIEvent(t,"input",n),Pq(t,r)}function kq(e){var t,r;let 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]))}Tn.cut=(e,t,r)=>()=>{Ci(t)&&Si(r,t,"","deleteByCut")};function Mq(e){return e?zn(e)?e.textContent:Br(e):null}function qq(e){let t=br(e);for(let r=e;r?.ownerDocument;r=r.parentElement){let{display:n,visibility:i}=t.getComputedStyle(r);if(n==="none"||i==="hidden")return!1}return!0}function jq(e,t){let r=e.ownerDocument,n=r.querySelectorAll(qv),i=Array.from(n).filter(p=>p===e||!(Number(p.getAttribute("tabindex"))<0||Xr(p)));Number(e.getAttribute("tabindex"))>=0&&i.sort((p,l)=>{let d=Number(p.getAttribute("tabindex")),f=Number(l.getAttribute("tabindex"));return d===f?0:d===0?1:f===0?-1:d-f});let o={},a=[r.body],s=Ge(e,"input",{type:"radio"})?e.name:void 0;i.forEach(p=>{let l=p;if(Ge(l,"input",{type:"radio"})&&l.name){if(l===e){a.push(l);return}else if(l.name===s)return;if(l.checked){a=a.filter(d=>!Ge(d,"input",{type:"radio",name:l.name})),a.push(l),o[l.name]=l;return}if(typeof o[l.name]<"u")return}a.push(l)});for(let p=a.findIndex(l=>l===e);;)if(p+=t?-1:1,p===a.length?p=0:p===-1&&(p=a.length-1),a[p]===e||a[p]===r.body||qq(a[p]))return a[p]}function ch(e,t){if(Ir(e)){let r=Ro(e);Wn({focusNode:e,focusOffset:r.startOffset===r.endOffset?r.focusOffset+t:t<0?r.startOffset:r.endOffset})}else{let r=e.ownerDocument.getSelection();if(!r?.focusNode)return;if(r.isCollapsed){let n=zv(r.focusNode,r.focusOffset,t);n&&Wn({focusNode:n.node,focusOffset:n.offset})}else r[t<0?"collapseToStart":"collapseToEnd"]()}}function Kv(e){if(Ir(e))return Wn({focusNode:e,anchorOffset:0,focusOffset:Br(e).length});var t;let r=(t=Do(e))!==null&&t!==void 0?t:e.ownerDocument.body;Wn({focusNode:r,anchorOffset:0,focusOffset:r.childNodes.length})}function Lq(e){if(Ir(e))return Ro(e).startOffset===0&&Ro(e).endOffset===Br(e).length;var t;let r=(t=Do(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}function Xi(e,t,r){var n;if(Ir(e))return Wn({focusNode:e,anchorOffset:t,focusOffset:r});if(zn(e)&&((n=e.firstChild)===null||n===void 0?void 0:n.nodeType)===3)return Wn({focusNode:e.firstChild,anchorOffset:t,focusOffset:r});throw new Error("Not implemented. The result of this interaction is unreliable.")}function ua(e,t,r){let n=br(t),i=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 o=i.findIndex(a=>a===t)+r;;o+=r){if(i[o]||(o=r>0?0:i.length-1),i[o]===t)return;if(!Xr(i[o])){_n(i[o]),e.dispatchUIEvent(i[o],"click");return}}}Tn.keydown=(e,t,r)=>{var n,i;return(i=(n=ph[e.key])===null||n===void 0?void 0:n.call(ph,e,t,r))!==null&&i!==void 0?i:Vq(e,t,r)};var ph={ArrowDown:(e,t,r)=>{if(Ge(t,"input",{type:"radio"}))return()=>ua(r,t,1)},ArrowLeft:(e,t,r)=>Ge(t,"input",{type:"radio"})?()=>ua(r,t,-1):()=>ch(t,-1),ArrowRight:(e,t,r)=>Ge(t,"input",{type:"radio"})?()=>ua(r,t,1):()=>ch(t,1),ArrowUp:(e,t,r)=>{if(Ge(t,"input",{type:"radio"}))return()=>ua(r,t,-1)},Backspace:(e,t,r)=>{if(Ci(t))return()=>{Si(r,t,"","deleteContentBackward")}},Delete:(e,t,r)=>{if(Ci(t))return()=>{Si(r,t,"","deleteContentForward")}},End:(e,t)=>{if(Ge(t,["input","textarea"])||zn(t))return()=>{var r,n;let i=(n=(r=Mq(t))===null||r===void 0?void 0:r.length)!==null&&n!==void 0?n:0;Xi(t,i,i)}},Home:(e,t)=>{if(Ge(t,["input","textarea"])||zn(t))return()=>{Xi(t,0,0)}},PageDown:(e,t)=>{if(Ge(t,["input"]))return()=>{let r=Br(t).length;Xi(t,r,r)}},PageUp:(e,t)=>{if(Ge(t,["input"]))return()=>{Xi(t,0,0)}},Tab:(e,t,r)=>()=>{let n=jq(t,r.system.keyboard.modifiers.Shift);_n(n),Ir(n)&&Mi(n,{anchorOffset:0,focusOffset:n.value.length})}},Vq=(e,t,r)=>{if(e.code==="KeyA"&&r.system.keyboard.modifiers.Control)return()=>Kv(t)};Tn.keypress=(e,t,r)=>{if(e.key==="Enter"){if(Ge(t,"button")||Ge(t,"input")&&$q.includes(t.type)||Ge(t,"a")&&t.href)return()=>{r.dispatchUIEvent(t,"click")};if(Ge(t,"input")){let n=t.form,i=n?.querySelector('input[type="submit"], button:not([type]), button[type="submit"]');return i?()=>r.dispatchUIEvent(i,"click"):n&&Uq.includes(t.type)&&n.querySelectorAll("input").length===1?()=>r.dispatchUIEvent(n,"submit"):void 0}}if(Ci(t)){let n=e.key==="Enter"?zn(t)&&!r.system.keyboard.modifiers.Shift?"insertParagraph":"insertLineBreak":"insertText",i=e.key==="Enter"?`
|
|
340
|
+
`:e.key;return()=>Si(r,t,i,n)}};var $q=["button","color","file","image","reset","submit"],Uq=["email","month","password","search","tel","text","url","week"];Tn.keyup=(e,t,r)=>{var n;return(n=dh[e.key])===null||n===void 0?void 0:n.call(dh,e,t,r)};var dh={" ":(e,t,r)=>{if(Lv(t))return()=>r.dispatchUIEvent(t,"click")}};Tn.paste=(e,t,r)=>{if(Ci(t))return()=>{var n;let i=(n=e.clipboardData)===null||n===void 0?void 0:n.getData("text");i&&Si(r,t,i,"insertFromPaste")}};var Xv={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 Qv(e){return Xv[e].EventType}var Jq=["MouseEvent","PointerEvent"];function Hq(e){return Jq.includes(Qv(e))}function Gq(e){return Qv(e)==="KeyboardEvent"}var zq={ClipboardEvent:[Yq],Event:[],FocusEvent:[Hi,Kq],InputEvent:[Hi,Xq],MouseEvent:[Hi,lu,fh],PointerEvent:[Hi,lu,fh,Zq],KeyboardEvent:[Hi,lu,Qq]};function Zv(e,t,r){let n=br(t),{EventType:i,defaultInit:o}=Xv[e],a=new(Wq(n))[i](e,o);return zq[i].forEach(s=>s(a,r??{})),a}function Wq(e){var t;let r=(t=e.Event)!==null&&t!==void 0?t:class{};var n;let i=(n=e.AnimationEvent)!==null&&n!==void 0?n:class extends r{};var o;let a=(o=e.ClipboardEvent)!==null&&o!==void 0?o:class extends r{};var s;let p=(s=e.PopStateEvent)!==null&&s!==void 0?s:class extends r{};var l;let d=(l=e.ProgressEvent)!==null&&l!==void 0?l:class extends r{};var f;let h=(f=e.TransitionEvent)!==null&&f!==void 0?f:class extends r{};var m;let b=(m=e.UIEvent)!==null&&m!==void 0?m:class extends r{};var E;let w=(E=e.CompositionEvent)!==null&&E!==void 0?E:class extends b{};var A;let S=(A=e.FocusEvent)!==null&&A!==void 0?A:class extends b{};var k;let O=(k=e.InputEvent)!==null&&k!==void 0?k:class extends b{};var R;let y=(R=e.KeyboardEvent)!==null&&R!==void 0?R:class extends b{};var T;let _=(T=e.MouseEvent)!==null&&T!==void 0?T:class extends b{};var D;let J=(D=e.DragEvent)!==null&&D!==void 0?D:class extends _{};var M;let G=(M=e.PointerEvent)!==null&&M!==void 0?M:class extends _{};var L;let I=(L=e.TouchEvent)!==null&&L!==void 0?L:class extends b{};return{Event:r,AnimationEvent:i,ClipboardEvent:a,PopStateEvent:p,ProgressEvent:d,TransitionEvent:h,UIEvent:b,CompositionEvent:w,FocusEvent:S,InputEvent:O,KeyboardEvent:y,MouseEvent:_,DragEvent:J,PointerEvent:G,TouchEvent:I}}function Dn(e,t){for(let[r,n]of Object.entries(t))Object.defineProperty(e,r,{get:()=>n??null})}function St(e){return Number(e??0)}function Yq(e,{clipboardData:t}){Dn(e,{clipboardData:t})}function Kq(e,{relatedTarget:t}){Dn(e,{relatedTarget:t})}function Xq(e,{data:t,inputType:r,isComposing:n}){Dn(e,{data:t,isComposing:!!n,inputType:String(r)})}function Hi(e,{view:t,detail:r}){Dn(e,{view:t,detail:St(r??0)})}function lu(e,{altKey:t,ctrlKey:r,metaKey:n,shiftKey:i,modifierAltGraph:o,modifierCapsLock:a,modifierFn:s,modifierFnLock:p,modifierNumLock:l,modifierScrollLock:d,modifierSymbol:f,modifierSymbolLock:h}){Dn(e,{altKey:!!t,ctrlKey:!!r,metaKey:!!n,shiftKey:!!i,getModifierState(m){return!!{Alt:t,AltGraph:o,CapsLock:a,Control:r,Fn:s,FnLock:p,Meta:n,NumLock:l,ScrollLock:d,Shift:i,Symbol:f,SymbolLock:h}[m]}})}function Qq(e,{key:t,code:r,location:n,repeat:i,isComposing:o,charCode:a}){Dn(e,{key:String(t),code:String(r),location:St(n),repeat:!!i,isComposing:!!o,charCode:a})}function fh(e,{x:t,y:r,screenX:n,screenY:i,clientX:o=t,clientY:a=r,button:s,buttons:p,relatedTarget:l,offsetX:d,offsetY:f,pageX:h,pageY:m}){Dn(e,{screenX:St(n),screenY:St(i),clientX:St(o),x:St(o),clientY:St(a),y:St(a),button:St(s),buttons:St(p),relatedTarget:l,offsetX:St(d),offsetY:St(f),pageX:St(h),pageY:St(m)})}function Zq(e,{pointerId:t,width:r,height:n,pressure:i,tangentialPressure:o,tiltX:a,tiltY:s,twist:p,pointerType:l,isPrimary:d}){Dn(e,{pointerId:St(t),width:St(r??1),height:St(n??1),pressure:St(i),tangentialPressure:St(o),tiltX:St(a),tiltY:St(s),twist:St(p),pointerType:String(l),isPrimary:!!d})}function ej(e,t,r,n=!1){(Hq(t)||Gq(t))&&(r={...r,...this.system.getUIEventModifiers()});let i=Zv(t,e,r);return eA.call(this,e,i,n)}function eA(e,t,r=!1){var n;let i=t.type,o=r?()=>{}:(n=Tn[i])===null||n===void 0?void 0:n.call(Tn,t,e,this);if(o){t.preventDefault();let a=!1;return Object.defineProperty(t,"defaultPrevented",{get:()=>a}),Object.defineProperty(t,"preventDefault",{value:()=>{a=t.cancelable}}),_i(()=>e.dispatchEvent(t)),a||o(),!a}return _i(()=>e.dispatchEvent(t))}function Mn(e,t,r){let n=Zv(t,e,r);_i(()=>e.dispatchEvent(n))}var hh=Symbol("patched focus/blur methods");function tA(e){if(e.prototype[hh])return;let{focus:t,blur:r}=e.prototype;Object.defineProperties(e.prototype,{focus:{configurable:!0,get:()=>i},blur:{configurable:!0,get:()=>o},[hh]:{configurable:!0,get:()=>({focus:t,blur:r})}});let n;function i(a){if(this.ownerDocument.visibilityState!=="hidden")return t.call(this,a);let s=mh(this.ownerDocument);if(s===this)return;let p=Symbol("focus call");n=p,s&&(r.call(s),Mn(s,"blur",{relatedTarget:this}),Mn(s,"focusout",{relatedTarget:n===p?this:null})),n===p&&(t.call(this,a),Mn(this,"focus",{relatedTarget:s})),n===p&&Mn(this,"focusin",{relatedTarget:s})}function o(){if(this.ownerDocument.visibilityState!=="hidden")return r.call(this);let a=mh(this.ownerDocument);a===this&&(n=Symbol("blur call"),r.call(this),Mn(a,"blur",{relatedTarget:null}),Mn(a,"focusout",{relatedTarget:null}))}}function mh(e){let t=zo(e);return t?.tagName==="BODY"?null:t}var cu=Symbol("Interceptor for programmatical calls");function ui(e,t,r){let n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=Object.getOwnPropertyDescriptor(e,t),o=n?.set?"set":"value";if(typeof n?.[o]!="function"||n[o][cu])throw new Error(`Element ${e.tagName} does not implement "${String(t)}".`);function a(...s){let{applyNative:p=!1,realArgs:l,then:d}=r.call(this,...s),f=(!p&&i||n)[o];o==="set"?f.call(this,l):f.call(this,...l),d?.()}a[cu]=cu,Object.defineProperty(e,t,{...i??n,[o]:a})}function tj(e){ui(e,"value",function(t){let r=mq(t);return r&&Dq(this),{applyNative:!!r,realArgs:rj(this,t),then:r?void 0:()=>Rq(this,String(t))}})}function rj(e,t){return Ge(e,"input",{type:"number"})&&String(t)!==""&&!Number.isNaN(Number(t))?String(Number(t)):String(t)}function nj(e){ui(e,"setSelectionRange",function(t,...r){let n=yq(t);return{applyNative:!!n,realArgs:[Number(t),...r],then:()=>n?void 0:Ta(e)}}),ui(e,"selectionStart",function(t){return{realArgs:t,then:()=>Ta(e)}}),ui(e,"selectionEnd",function(t){return{realArgs:t,then:()=>Ta(e)}}),ui(e,"select",function(){return{realArgs:[],then:()=>Eq(e,{anchorOffset:0,focusOffset:Br(e).length})}})}function ij(e){ui(e,"setRangeText",function(...t){return{realArgs:t,then:()=>{Fp(e),Ta(e)}}})}var fi=Symbol("Node prepared with document state workarounds");function rA(e){e[fi]||(e.addEventListener("focus",t=>{let r=t.target;yh(r)},{capture:!0,passive:!0}),e.activeElement&&yh(e.activeElement),e.addEventListener("blur",t=>{let r=t.target,n=bq(r);n!==void 0&&(r.value!==n&&Mn(r,"change"),Jv(r))},{capture:!0,passive:!0}),e[fi]=fi)}function yh(e){e[fi]||(Ge(e,["input","textarea"])&&(tj(e),nj(e),ij(e)),e[fi]=fi)}function oj(e){return aj(e)?e:e.ownerDocument}function aj(e){return e.nodeType===9}var sr=(function(e){return e[e.Trigger=2]="Trigger",e[e.Call=1]="Call",e})({});function Qi(e,t){e.levelRefs[t]={}}function la(e,t){return e.levelRefs[t]}function xi(e){let t=e.delay;if(typeof t=="number")return Promise.all([new Promise(r=>globalThis.setTimeout(()=>r(),t)),e.advanceTimers(t)])}var xa=(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 Fn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Dr=(function(e){return e[e.STANDARD=0]="STANDARD",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.NUMPAD=3]="NUMPAD",e})({}),sj=["Alt","AltGraph","Control","Fn","Meta","Shift","Symbol"];function gh(e){return sj.includes(e)}var uj=["CapsLock","FnLock","NumLock","ScrollLock","SymbolLock"];function bh(e){return uj.includes(e)}var lj=class{isKeyPressed(e){return this.pressed.has(String(e.code))}getPressedKeys(){return this.pressed.values().map(e=>e.keyDef)}async keydown(e,t){let r=String(t.key),n=String(t.code),i=uu(e.config.document);this.setKeydownTarget(i),this.pressed.add(n,t),gh(r)&&(this.modifiers[r]=!0);let o=e.dispatchUIEvent(i,"keydown",{key:r,code:n});bh(r)&&!this.modifiers[r]&&(this.modifiers[r]=!0,this.modifierLockStart[r]=!0),o&&this.pressed.setUnprevented(n),o&&this.hasKeyPress(r)&&e.dispatchUIEvent(uu(e.config.document),"keypress",{key:r,code:n,charCode:t.key==="Enter"?13:String(t.key).charCodeAt(0)})}async keyup(e,t){let r=String(t.key),n=String(t.code),i=this.pressed.isUnprevented(n);this.pressed.delete(n),gh(r)&&!this.pressed.values().find(o=>o.keyDef.key===r)&&(this.modifiers[r]=!1),e.dispatchUIEvent(uu(e.config.document),"keyup",{key:r,code:n},!i),bh(r)&&this.modifiers[r]&&(this.modifierLockStart[r]?this.modifierLockStart[r]=!1:this.modifiers[r]=!1)}setKeydownTarget(e){e!==this.lastKeydownTarget&&(this.carryChar=""),this.lastKeydownTarget=e}hasKeyPress(e){return(e.length===1||e==="Enter")&&!this.modifiers.Control&&!this.modifiers.Alt}constructor(e){Fn(this,"system",void 0),Fn(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}),Fn(this,"pressed",new class{add(t,r){var n,i,o;(o=(n=this.registry)[i=t])!==null&&o!==void 0||(n[i]={keyDef:r,unpreventedDefault:!1})}has(t){return!!this.registry[t]}setUnprevented(t){let r=this.registry[t];r&&(r.unpreventedDefault=!0)}isUnprevented(t){var r;return!!(!((r=this.registry[t])===null||r===void 0)&&r.unpreventedDefault)}delete(t){delete this.registry[t]}values(){return Object.values(this.registry)}constructor(){Fn(this,"registry",{})}}),Fn(this,"carryChar",""),Fn(this,"lastKeydownTarget",void 0),Fn(this,"modifierLockStart",{}),this.system=e}},cj=[..."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:Dr.LEFT},{code:"AltRight",key:"Alt",location:Dr.RIGHT},{code:"ShiftLeft",key:"Shift",location:Dr.LEFT},{code:"ShiftRight",key:"Shift",location:Dr.RIGHT},{code:"ControlLeft",key:"Control",location:Dr.LEFT},{code:"ControlRight",key:"Control",location:Dr.RIGHT},{code:"MetaLeft",key:"Meta",location:Dr.LEFT},{code:"MetaRight",key:"Meta",location:Dr.RIGHT},{code:"OSLeft",key:"OS",location:Dr.LEFT},{code:"OSRight",key:"OS",location:Dr.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"}],pj=[{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 dj(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var nA=class{getButtons(){let e=0;for(let t of Object.keys(this.pressed))e|=2**Number(t);return e}down(e){let t=El(e.button);if(t in this.pressed){this.pressed[t].push(e);return}return this.pressed[t]=[e],t}up(e){let t=El(e.button);if(t in this.pressed&&(this.pressed[t]=this.pressed[t].filter(r=>r.name!==e.name),this.pressed[t].length===0))return delete this.pressed[t],t}constructor(){dj(this,"pressed",{})}},Eh={primary:0,secondary:1,auxiliary:2,back:3,X1:3,forward:4,X2:4};function El(e=0){return e in Eh?Eh[e]:Number(e)}var vh={1:2,2:1};function vl(e){return e=El(e),e in vh?vh[e]:e}function fj(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var hj=class{get countPressed(){return this.pressedKeys.size}isPressed(e){return this.pressedKeys.has(e.name)}addPressed(e){return this.pressedKeys.add(e.name)}removePressed(e){return this.pressedKeys.delete(e.name)}constructor(){fj(this,"pressedKeys",new Set)}};function oo(e,t){let r=[];for(let o=e;o;o=o.parentElement)r.push(o);let n=[];for(let o=t;o;o=o.parentElement)n.push(o);let i=0;for(;!(i>=r.length||i>=n.length||r[r.length-1-i]!==n[n.length-1-i]);i++);return[r.slice(0,r.length-i),n.slice(0,n.length-i),n.slice(n.length-i)]}function Al({target:e,node:t,offset:r}){return Ir(e)?{node:e,offset:r??Br(e).length}:t?{node:t,offset:r??(t.nodeType===3?t.nodeValue.length:t.childNodes.length)}:iA(e,r)}function iA(e,t,r=!0){let n=t===void 0?e.childNodes.length-1:0,i=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.");let o=e.childNodes.item(n),a=String(o.textContent);if(a.length)if(t!==void 0&&a.length<t)t-=a.length;else{if(o.nodeType===1)return iA(o,t,!1);if(o.nodeType===3)return{node:o,offset:t??o.nodeValue.length}}n+=i}return{node:e,offset:e.childNodes.length}}function mj({document:e,target:t,clickCount:r,node:n,offset:i}){if(dq(t))return;let o=Ir(t),a=String(o?Br(t):t.textContent),[s,p]=n?[i,i]:yj(a,i,r);if(o)return Mi(t,{anchorOffset:s??a.length,focusOffset:p??a.length}),{node:t,start:s??0,end:p??a.length};{let{node:l,offset:d}=Al({target:t,node:n,offset:s}),{node:f,offset:h}=Al({target:t,node:n,offset:p}),m=t.ownerDocument.createRange();try{m.setStart(l,d),m.setEnd(f,h)}catch{throw new Error("The given offset is out of bounds.")}let b=e.getSelection();return b?.removeAllRanges(),b?.addRange(m.cloneRange()),m}}function yj(e,t,r){if(r%3===1||e.length===0)return[t,t];let 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]}function gj(e,{document:t,target:r,node:n,offset:i}){let o=Al({target:r,node:n,offset:i});if("node"in e){if(o.node===e.node){let a=o.offset<e.start?e.end:e.start,s=o.offset>e.end||o.offset<e.start?o.offset:e.end;Mi(e.node,{anchorOffset:a,focusOffset:s})}}else{let a=e.cloneRange(),s=a.comparePoint(o.node,o.offset);s<0?a.setStart(o.node,o.offset):s>0&&a.setEnd(o.node,o.offset);let p=t.getSelection();p?.removeAllRanges(),p?.addRange(a.cloneRange())}}function oA(e,t){var r,n,i,o,a,s,p,l,d,f,h,m,b,E,w,A,S,k,O,R,y,T,_,D;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)||((i=e.coords)===null||i===void 0?void 0:i.y)!==((o=t.coords)===null||o===void 0?void 0:o.y)||((a=e.coords)===null||a===void 0?void 0:a.clientX)!==((s=t.coords)===null||s===void 0?void 0:s.clientX)||((p=e.coords)===null||p===void 0?void 0:p.clientY)!==((l=t.coords)===null||l===void 0?void 0:l.clientY)||((d=e.coords)===null||d===void 0?void 0:d.offsetX)!==((f=t.coords)===null||f===void 0?void 0:f.offsetX)||((h=e.coords)===null||h===void 0?void 0:h.offsetY)!==((m=t.coords)===null||m===void 0?void 0:m.offsetY)||((b=e.coords)===null||b===void 0?void 0:b.pageX)!==((E=t.coords)===null||E===void 0?void 0:E.pageX)||((w=e.coords)===null||w===void 0?void 0:w.pageY)!==((A=t.coords)===null||A===void 0?void 0:A.pageY)||((S=e.coords)===null||S===void 0?void 0:S.screenX)!==((k=t.coords)===null||k===void 0?void 0:k.screenX)||((O=e.coords)===null||O===void 0?void 0:O.screenY)!==((R=t.coords)===null||R===void 0?void 0:R.screenY)||((y=e.caret)===null||y===void 0?void 0:y.node)!==((T=t.caret)===null||T===void 0?void 0:T.node)||((_=e.caret)===null||_===void 0?void 0:_.offset)!==((D=t.caret)===null||D===void 0?void 0:D.offset)}function Nn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var bj=class{move(e,t,r){let n=this.position,i=this.getTarget(e);if(this.position=t,!oA(n,t))return;let o=this.getTarget(e),a=this.getEventInit("mousemove"),[s,p]=oo(i,o);return{leave:()=>{i!==o&&(e.dispatchUIEvent(i,"mouseout",a),s.forEach(l=>e.dispatchUIEvent(l,"mouseleave",a)))},enter:()=>{i!==o&&(e.dispatchUIEvent(o,"mouseover",a),p.forEach(l=>e.dispatchUIEvent(l,"mouseenter",a)))},move:()=>{r||(e.dispatchUIEvent(o,"mousemove",a),this.modifySelecting(e))}}}down(e,t,r){let n=this.buttons.down(t);if(n===void 0)return;let i=this.getTarget(e);this.buttonDownTarget[n]=i;let o=this.getEventInit("mousedown",t.button),a=Xr(i);!r&&(a||e.dispatchUIEvent(i,"mousedown",o))&&(this.startSelecting(e,o.detail),_n(i)),!a&&vl(t.button)===2&&e.dispatchUIEvent(i,"contextmenu",this.getEventInit("contextmenu",t.button))}up(e,t,r){let n=this.buttons.up(t);if(n===void 0)return;let i=this.getTarget(e);if(!Xr(i)){if(!r){let a=this.getEventInit("mouseup",t.button);e.dispatchUIEvent(i,"mouseup",a),this.endSelecting()}let o=oo(this.buttonDownTarget[n],i)[2][0];if(o){let a=this.getEventInit("click",t.button);a.detail&&(e.dispatchUIEvent(o,a.button===0?"click":"auxclick",a),a.button===0&&a.detail===2&&e.dispatchUIEvent(o,"dblclick",{...this.getEventInit("dblclick",t.button),detail:a.detail}))}}}resetClickCount(){this.clickCount.reset()}getEventInit(e,t){let r={...this.position.coords};return r.button=vl(t),r.buttons=this.buttons.getButtons(),e==="mousedown"?r.detail=this.clickCount.getOnDown(r.button):e==="mouseup"?r.detail=this.clickCount.getOnUp(r.button):(e==="click"||e==="auxclick")&&(r.detail=this.clickCount.incOnClick(r.button)),r}getTarget(e){var t;return(t=this.position.target)!==null&&t!==void 0?t:e.config.document.body}startSelecting(e,t){var r,n;this.selecting=mj({document:e.config.document,target:this.getTarget(e),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,clickCount:t})}modifySelecting(e){var t,r;this.selecting&&gj(this.selecting,{document:e.config.document,target:this.getTarget(e),node:(t=this.position.caret)===null||t===void 0?void 0:t.node,offset:(r=this.position.caret)===null||r===void 0?void 0:r.offset})}endSelecting(){this.selecting=void 0}constructor(){Nn(this,"position",{}),Nn(this,"buttons",new nA),Nn(this,"selecting",void 0),Nn(this,"buttonDownTarget",{}),Nn(this,"clickCount",new class{incOnClick(e){let t=this.down[e]===void 0?void 0:Number(this.down[e])+1;return this.count=this.count[e]===void 0?{}:{[e]:Number(this.count[e])+1},t}getOnDown(e){var t;this.down={[e]:(t=this.count[e])!==null&&t!==void 0?t:0};var r;return this.count={[e]:(r=this.count[e])!==null&&r!==void 0?r:0},Number(this.count[e])+1}getOnUp(e){return this.down[e]===void 0?void 0:Number(this.down[e])+1}reset(){this.count={}}constructor(){Nn(this,"down",{}),Nn(this,"count",{})}})}};function Wa(e,t){var r;return((r=aA(e,t))===null||r===void 0?void 0:r.pointerEvents)!=="none"}function Ej(e){let t=br(e);for(let r=e,n=[];r?.ownerDocument;r=r.parentElement){n.push(r);let i=t.getComputedStyle(r).pointerEvents;if(i&&!["inherit","unset"].includes(i))return{pointerEvents:i,tree:n}}}var Ah=Symbol("Last check for pointer-events");function aA(e,t){let r=t[Ah];if(!(e.config.pointerEventsCheck!==xa.Never&&(!r||wh(e.config.pointerEventsCheck,xa.EachApiCall)&&r[sr.Call]!==la(e,sr.Call)||wh(e.config.pointerEventsCheck,xa.EachTrigger)&&r[sr.Trigger]!==la(e,sr.Trigger))))return r?.result;let n=Ej(t);return t[Ah]={[sr.Call]:la(e,sr.Call),[sr.Trigger]:la(e,sr.Trigger),result:n},n}function Zi(e,t){let r=aA(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\`:`,"",vj(r.tree)].join(`
|
|
341
|
+
`))}function vj(e){return e.reverse().map((t,r)=>["".padEnd(r),t.tagName,t.id&&`#${t.id}`,t.hasAttribute("data-testid")&&`(testId=${t.getAttribute("data-testid")})`,Aj(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(`
|
|
342
|
+
`)}function Aj(e){var t;let r;if(e.hasAttribute("aria-label"))r=e.getAttribute("aria-label");else if(e.hasAttribute("aria-labelledby")){var n,i;r=(i=e.ownerDocument.getElementById(e.getAttribute("aria-labelledby")))===null||i===void 0||(n=i.textContent)===null||n===void 0?void 0:n.trim()}else if(Ge(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 s;return(s=a.textContent)===null||s===void 0?void 0:s.trim()}).join("|");else if(Ge(e,"button")){var o;r=(o=e.textContent)===null||o===void 0?void 0:o.trim()}return r=r?.replace(/\n/g," "),Number(r?.length)>30&&(r=`${r?.substring(0,29)}…`),r?`(label=${r})`:""}function wh(e,t){return(e&t)>0}function $r(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var wj=class{init(e){let t=this.getTarget(e),[,r]=oo(null,t),n=this.getEventInit();return Zi(e,t),e.dispatchUIEvent(t,"pointerover",n),r.forEach(i=>e.dispatchUIEvent(i,"pointerenter",n)),this}move(e,t){let r=this.position,n=this.getTarget(e);if(this.position=t,!oA(r,t))return;let i=this.getTarget(e),o=this.getEventInit(-1),[a,s]=oo(n,i);return{leave:()=>{Wa(e,n)&&n!==i&&(e.dispatchUIEvent(n,"pointerout",o),a.forEach(p=>e.dispatchUIEvent(p,"pointerleave",o)))},enter:()=>{Zi(e,i),n!==i&&(e.dispatchUIEvent(i,"pointerover",o),s.forEach(p=>e.dispatchUIEvent(p,"pointerenter",o)))},move:()=>{e.dispatchUIEvent(i,"pointermove",o)}}}down(e,t=0){if(this.isDown)return;let r=this.getTarget(e);Zi(e,r),this.isDown=!0,this.isPrevented=!e.dispatchUIEvent(r,"pointerdown",this.getEventInit(t))}up(e,t=0){if(!this.isDown)return;let r=this.getTarget(e);Zi(e,r),this.isPrevented=!1,this.isDown=!1,e.dispatchUIEvent(r,"pointerup",this.getEventInit(t))}release(e){let t=this.getTarget(e),[r]=oo(t,null),n=this.getEventInit();Wa(e,t)&&(e.dispatchUIEvent(t,"pointerout",n),r.forEach(i=>e.dispatchUIEvent(i,"pointerleave",n))),this.isCancelled=!0}getTarget(e){var t;return(t=this.position.target)!==null&&t!==void 0?t:e.config.document.body}getEventInit(e){return{...this.position.coords,pointerId:this.pointerId,pointerType:this.pointerType,isPrimary:this.isPrimary,button:vl(e),buttons:this.buttons.getButtons()}}constructor({pointerId:e,pointerType:t,isPrimary:r},n){$r(this,"pointerId",void 0),$r(this,"pointerType",void 0),$r(this,"isPrimary",void 0),$r(this,"buttons",void 0),$r(this,"isMultitouch",!1),$r(this,"isCancelled",!1),$r(this,"isDown",!1),$r(this,"isPrevented",!1),$r(this,"position",{}),this.pointerId=e,this.pointerType=t,this.isPrimary=r,this.isMultitouch=!r,this.buttons=n}};function sn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Cj=class{isKeyPressed(e){return this.devices.get(e.pointerType).isPressed(e)}async press(e,t,r){this.devices.get(t.pointerType).addPressed(t),this.buttons.down(t);let n=this.getPointerName(t),i=t.pointerType==="touch"?this.pointers.new(n,t.pointerType,this.buttons):this.pointers.get(n);i.position=r,i.pointerType!=="touch"&&(this.mouse.position=r),i.pointerType==="touch"&&i.init(e),i.down(e,t.button),i.pointerType!=="touch"&&this.mouse.down(e,t,i.isPrevented)}async move(e,t,r){let n=this.pointers.get(t),i=n.move(e,r),o=n.pointerType==="touch"?void 0:this.mouse.move(e,r,n.isPrevented);i?.leave(),o?.leave(),i?.enter(),o?.enter(),i?.move(),o?.move()}async release(e,t,r){let n=this.devices.get(t.pointerType);n.removePressed(t),this.buttons.up(t);let i=this.pointers.get(this.getPointerName(t)),o=i.isPrevented;if(i.position=r,i.pointerType!=="touch"&&(this.mouse.position=r),n.countPressed===0&&i.up(e,t.button),i.pointerType==="touch"&&i.release(e),i.pointerType==="touch"&&!i.isMultitouch){let a=this.mouse.move(e,r,o);a?.leave(),a?.enter(),a?.move(),this.mouse.down(e,t,o)}if(!i.isMultitouch){let a=this.mouse.move(e,r,o);a?.leave(),a?.enter(),a?.move(),this.mouse.up(e,t,o)}}getPointerName(e){return e.pointerType==="touch"?e.name:e.pointerType}getPreviousPosition(e){return this.pointers.has(e)?this.pointers.get(e).position:void 0}resetClickCount(){this.mouse.resetClickCount()}getMouseTarget(e){var t;return(t=this.mouse.position.target)!==null&&t!==void 0?t:e.config.document.body}setMousePosition(e){this.mouse.position=e,this.pointers.get("mouse").position=e}constructor(e){sn(this,"system",void 0),sn(this,"mouse",void 0),sn(this,"buttons",void 0),sn(this,"devices",new class{get(t){var r,n,i;return(i=(r=this.registry)[n=t])!==null&&i!==void 0?i:r[n]=new hj}constructor(){sn(this,"registry",{})}}),sn(this,"pointers",new class{new(t,r,n){let i=r!=="touch"||!Object.values(this.registry).some(o=>o.pointerType==="touch"&&!o.isCancelled);return i||Object.values(this.registry).forEach(o=>{o.pointerType===r&&!o.isCancelled&&(o.isMultitouch=!0)}),this.registry[t]=new wj({pointerId:this.nextId++,pointerType:r,isPrimary:i},n),this.registry[t]}get(t){if(!this.has(t))throw new Error(`Trying to access pointer "${t}" which does not exist.`);return this.registry[t]}has(t){return t in this.registry}constructor(){sn(this,"registry",{}),sn(this,"nextId",1)}}),this.system=e,this.buttons=new nA,this.mouse=new bj,this.pointers.new("mouse","mouse",this.buttons)}};function Ch(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var sA=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(){Ch(this,"keyboard",new lj(this)),Ch(this,"pointer",new Cj(this))}};async function _j(e){let t=[];return this.config.skipHover||t.push({target:e}),t.push({keys:"[MouseLeft]",target:e}),this.pointer(t)}async function Tj(e){return this.pointer([{target:e},"[MouseLeft][MouseLeft]"])}async function Sj(e){return this.pointer([{target:e},"[MouseLeft][MouseLeft][MouseLeft]"])}async function xj(e){return this.pointer({target:e})}async function Dj(e){return Zi(this,this.system.pointer.getMouseTarget(this)),this.pointer({target:e.ownerDocument.body})}async function Rj({shift:e}={}){return this.keyboard(e===!0?"{Shift>}{Tab}{/Shift}":e===!1?"[/ShiftLeft][/ShiftRight]{Tab}":"{Tab}")}var Ip=(function(e){return e["{"]="}",e["["]="]",e})(Ip||{});function uA(e,t){let r=0,n=e[r]in Ip?e[r]:"";r+=n.length;let i=new RegExp(`^\\${n}{2}`).test(e)?"":n;return{type:i,...i===""?Pj(e,r,t):Oj(e,r,i,t)}}function Pj(e,t,r){let n=e[t];return lA(n,e,t,r),t+=n.length,{consumedLength:t,descriptor:n,releasePrevious:!1,releaseSelf:!0,repeat:1}}function Oj(e,t,r,n){var i,o;let a=e[t]==="/"?"/":"";t+=a.length;let s=r==="{"&&e[t]==="\\";t+=Number(s);let p=s?e[t]:(i=e.slice(t).match(r==="{"?/^\w+|^[^}>/]/:/^\w+/))===null||i===void 0?void 0:i[0];lA(p,e,t,n),t+=p.length;var l;let d=(l=(o=e.slice(t).match(/^>\d+/))===null||o===void 0?void 0:o[0])!==null&&l!==void 0?l:"";t+=d.length;let f=e[t]==="/"||!d&&e[t]===">"?e[t]:"";t+=f.length;let h=Ip[r],m=e[t]===h?h:"";if(!m)throw new Error(cA([!d&&"repeat modifier",!f&&"release modifier",`"${h}"`].filter(Boolean).join(" or "),e[t],e,n));return t+=m.length,{consumedLength:t,descriptor:p,releasePrevious:!!a,repeat:d?Math.max(Number(d.substr(1)),1):1,releaseSelf:Fj(f,d)}}function lA(e,t,r,n){if(!e)throw new Error(cA("key descriptor",t[r],t,n))}function Fj(e,t){if(e)return e==="/";if(t)return!1}function cA(e,t,r,n){return`Expected ${e} but found "${t??""}" in "${r}"
|
|
343
|
+
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"}
|
|
344
|
+
for more information about how userEvent parses your input.`}function Nj(e,t){let r=[];do{let{type:i,descriptor:o,consumedLength:a,releasePrevious:s,releaseSelf:p=!0,repeat:l}=uA(t,"keyboard");var n;let d=(n=e.find(f=>{if(i==="["){var h;return((h=f.code)===null||h===void 0?void 0:h.toLowerCase())===o.toLowerCase()}else if(i==="{"){var m;return((m=f.key)===null||m===void 0?void 0:m.toLowerCase())===o.toLowerCase()}return f.key===o}))!==null&&n!==void 0?n:{key:"Unknown",code:"Unknown",[i==="["?"code":"key"]:o};r.push({keyDef:d,releasePrevious:s,releaseSelf:p,repeat:l}),t=t.slice(a)}while(t);return r}async function Ij(e){let t=Nj(this.config.keyboardMap,e);for(let r=0;r<t.length;r++)await xi(this.config),await Bj(this,t[r])}async function Bj(e,{keyDef:t,releasePrevious:r,releaseSelf:n,repeat:i}){let{system:o}=e;if(o.keyboard.isKeyPressed(t)&&await o.keyboard.keyup(e,t),!r){for(let a=1;a<=i;a++)await o.keyboard.keydown(e,t),a<i&&await xi(e.config);n&&await o.keyboard.keyup(e,t)}}async function kj(e){for(let t of e.system.keyboard.getPressedKeys())await e.system.keyboard.keyup(e,t)}function pA(e){let t=Ir(e)?{"text/plain":Mj(e)}:{"text/plain":String(e.ownerDocument.getSelection())},r=Rp(br(e));for(let n in t)t[n]&&r.setData(n,t[n]);return r}function Mj(e){let t=Ro(e);return Br(e).substring(t.startOffset,t.endOffset)}async function qj(){let e=this.config.document;var t;let r=(t=e.activeElement)!==null&&t!==void 0?t:e.body,n=pA(r);if(n.items.length!==0)return this.dispatchUIEvent(r,"copy",{clipboardData:n})&&this.config.writeToClipboard&&await Mv(e,n),n}async function jj(){let e=this.config.document;var t;let r=(t=e.activeElement)!==null&&t!==void 0?t:e.body,n=pA(r);if(n.items.length!==0)return this.dispatchUIEvent(r,"cut",{clipboardData:n})&&this.config.writeToClipboard&&await Mv(r.ownerDocument,n),n}async function Lj(e){let t=this.config.document;var r;let n=(r=t.activeElement)!==null&&r!==void 0?r:t.body;var i;let o=(i=typeof e=="string"?Vj(t,e):e)!==null&&i!==void 0?i:await uq(t).catch(()=>{throw new Error("`userEvent.paste()` without `clipboardData` requires the `ClipboardAPI` to be available.")});this.dispatchUIEvent(n,"paste",{clipboardData:o})}function Vj(e,t){let r=Rp(br(e));return r.setData("text",t),r}function _h(e,t){let r=[];do{let{descriptor:n,consumedLength:i,releasePrevious:o,releaseSelf:a=!0}=uA(t,"pointer"),s=e.find(p=>p.name===n);s&&r.push({keyDef:s,releasePrevious:o,releaseSelf:a}),t=t.slice(i)}while(t);return r}async function $j(e){let{pointerMap:t}=this.config,r=[];(Array.isArray(e)?e:[e]).forEach(n=>{typeof n=="string"?r.push(..._h(t,n)):"keys"in n?r.push(..._h(t,n.keys).map(i=>({...n,...i}))):r.push(n)});for(let n=0;n<r.length;n++)await xi(this.config),await Uj(this,r[n]);this.system.pointer.resetClickCount()}async function Uj(e,t){var r,n;let i="pointerName"in t&&t.pointerName?t.pointerName:"keyDef"in t?e.system.pointer.getPointerName(t.keyDef):"mouse",o=e.system.pointer.getPreviousPosition(i);var a,s,p,l;let d={target:(a=t.target)!==null&&a!==void 0?a:Jj(e,o),coords:(s=t.coords)!==null&&s!==void 0?s:o?.coords,caret:{node:(p=t.node)!==null&&p!==void 0?p:Th(t)||o==null||(r=o.caret)===null||r===void 0?void 0:r.node,offset:(l=t.offset)!==null&&l!==void 0?l:Th(t)||o==null||(n=o.caret)===null||n===void 0?void 0:n.offset}};"keyDef"in t?(e.system.pointer.isKeyPressed(t.keyDef)&&(Qi(e,sr.Trigger),await e.system.pointer.release(e,t.keyDef,d)),t.releasePrevious||(Qi(e,sr.Trigger),await e.system.pointer.press(e,t.keyDef,d),t.releaseSelf&&(Qi(e,sr.Trigger),await e.system.pointer.release(e,t.keyDef,d)))):(Qi(e,sr.Trigger),await e.system.pointer.move(e,i,d))}function Th(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)}function Jj(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}async function Hj(e){if(!Ci(e)||Xr(e))throw new Error("clear()` is only supported on editable elements.");if(_n(e),e.ownerDocument.activeElement!==e)throw new Error("The element to be cleared could not be focused.");if(Kv(e),!Lq(e))throw new Error("The element content to be cleared could not be selected.");Si(this,e,"","deleteContentBackward")}async function Gj(e,t){return dA.call(this,!0,e,t)}async function zj(e,t){return dA.call(this,!1,e,t)}async function dA(e,t,r){if(!e&&!t.multiple)throw Xe().getElementError("Unable to deselect an option in a non-multiple select. Use selectOptions to change the selection instead.",t);let n=Array.isArray(r)?r:[r],i=Array.from(t.querySelectorAll('option, [role="option"]')),o=n.map(s=>{if(typeof s!="string"&&i.includes(s))return s;{let p=i.find(l=>l.value===s||l.innerHTML===s);if(p)return p;throw Xe().getElementError(`Value "${String(s)}" not found in options`,t)}}).filter(s=>!Xr(s));if(Xr(t)||!o.length)return;let a=s=>{s.selected=e,this.dispatchUIEvent(t,"input",{bubbles:!0,cancelable:!1,composed:!0}),this.dispatchUIEvent(t,"change")};if(Ge(t,"select"))if(t.multiple)for(let s of o){let p=this.config.pointerEventsCheck===0?!0:Wa(this,s);p&&(this.dispatchUIEvent(s,"pointerover"),this.dispatchUIEvent(t,"pointerenter"),this.dispatchUIEvent(s,"mouseover"),this.dispatchUIEvent(t,"mouseenter"),this.dispatchUIEvent(s,"pointermove"),this.dispatchUIEvent(s,"mousemove"),this.dispatchUIEvent(s,"pointerdown"),this.dispatchUIEvent(s,"mousedown")),_n(t),p&&(this.dispatchUIEvent(s,"pointerup"),this.dispatchUIEvent(s,"mouseup")),a(s),p&&this.dispatchUIEvent(s,"click"),await xi(this.config)}else if(o.length===1){let s=this.config.pointerEventsCheck===0?!0:Wa(this,t);s?await this.click(t):_n(t),a(o[0]),s&&(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 xi(this.config)}else throw Xe().getElementError("Cannot select multiple options on a non-multiple select",t);else if(t.getAttribute("role")==="listbox")for(let s of o)await this.click(s),await this.unhover(s);else throw Xe().getElementError("Cannot select options on elements that are neither select nor listbox elements",t)}async function Wj(e,t,{skipClick:r=this.config.skipClick,skipAutoClose:n=this.config.skipAutoClose,initialSelectionStart:i,initialSelectionEnd:o}={}){e.disabled||(r||await this.click(e),i!==void 0&&Xi(e,i,o??i),await this.keyboard(t),n||await kj(this))}var Sh=Symbol("files and value properties are mocked");function pu(e,t,r){r?Object.defineProperty(e,t,r):delete e[t]}function Yj(e,t){var r;(r=e[Sh])===null||r===void 0||r.restore();let n=Object.getOwnPropertyDescriptor(e,"type"),i=Object.getOwnPropertyDescriptor(e,"value"),o=Object.getOwnPropertyDescriptor(e,"files");function a(){pu(e,"type",n),pu(e,"value",i),pu(e,"files",o)}e[Sh]={restore:a},Object.defineProperties(e,{files:{configurable:!0,get:()=>t},value:{configurable:!0,get:()=>t.length?`C:\\fakepath\\${t[0].name}`:"",set(s){if(s==="")a();else{var p;i==null||(p=i.set)===null||p===void 0||p.call(e,s)}}},type:{configurable:!0,get:()=>"file",set(s){s!=="file"&&(a(),e.type=s)}}})}async function Kj(e,t){let r=Ge(e,"label")?e.control:e;if(!r||!Ge(r,"input",{type:"file"}))throw new TypeError(`The ${r===e?"given":"associated"} ${r?.tagName} element does not accept file uploads`);if(Xr(e))return;let n=(Array.isArray(t)?t:[t]).filter(o=>!this.config.applyAccept||Xj(o,r.accept)).slice(0,r.multiple?void 0:1),i=()=>{var o;n.length===((o=r.files)===null||o===void 0?void 0:o.length)&&n.every((a,s)=>{var p;return a===((p=r.files)===null||p===void 0?void 0:p.item(s))})||(Yj(r,Dp(br(e),n)),this.dispatchUIEvent(r,"input"),this.dispatchUIEvent(r,"change"))};r.addEventListener("fileDialog",i),await this.click(e),r.removeEventListener("fileDialog",i)}function ca(e){return e.toLowerCase().replace(/(\.|\/)jpg\b/g,"$1jpeg")}function Xj(e,t){if(!t)return!0;let r=["audio/*","image/*","video/*"];return ca(t).trim().split(/\s*,\s*/).some(n=>n.startsWith(".")?ca(e.name).endsWith(n):r.includes(n)?ca(e.type).startsWith(n.replace("*","")):ca(e.type)===n)}var xh={click:_j,dblClick:Tj,tripleClick:Sj,hover:xj,unhover:Dj,tab:Rj,keyboard:Ij,copy:qj,cut:jj,paste:Lj,pointer:$j,clear:Hj,deselectOptions:zj,selectOptions:Gj,type:Wj,upload:Kj};function Qj(e){return Xe().asyncWrapper(e)}var fA={applyAccept:!0,autoModify:!0,delay:0,document:globalThis.document,keyboardMap:cj,pointerMap:pj,pointerEventsCheck:xa.EachApiCall,skipAutoClose:!1,skipClick:!1,skipHover:!1,writeToClipboard:!1,advanceTimers:()=>Promise.resolve()},Zj={...fA,writeToClipboard:!0};function hA(e={},t=Zj,r){let n=nL(e,r,t);return{...t,...e,document:n}}function eL(e={}){let t=hA(e);rA(t.document),tA(br(t.document).HTMLElement);var r;let n=(r=t.document.defaultView)!==null&&r!==void 0?r:globalThis.window;return oq(n),Bp(t).api}function Xt({keyboardState:e,pointerState:t,...r}={},n){let i=hA(r,fA,n);rA(i.document),tA(br(i.document).HTMLElement);var o;let a=(o=t??e)!==null&&o!==void 0?o:new sA;return{api:Bp(i,a).api,system:a}}function tL(e){return Bp({...this.config,...e},this.system).api}function rL(e,t){function r(...n){return Qi(e,sr.Call),Qj(()=>t.apply(e,n).then(async i=>(await xi(e.config),i)))}return Object.defineProperty(r,"name",{get:()=>t.name}),r}function Bp(e,t=new sA){let r={};return Object.assign(r,{config:e,dispatchEvent:eA.bind(r),dispatchUIEvent:ej.bind(r),system:t,levelRefs:{},...xh}),{instance:r,api:{...Object.fromEntries(Object.entries(xh).map(([n,i])=>[n,rL(r,i)])),setup:tL.bind(r)}}}function nL(e,t,r){var n,i;return(i=(n=e.document)!==null&&n!==void 0?n:t&&oj(t))!==null&&i!==void 0?i:r.document}var mA={};ir(mA,{clear:()=>iL,click:()=>oL,copy:()=>aL,cut:()=>sL,dblClick:()=>uL,deselectOptions:()=>lL,hover:()=>cL,keyboard:()=>pL,paste:()=>fL,pointer:()=>dL,selectOptions:()=>hL,tab:()=>EL,tripleClick:()=>mL,type:()=>yL,unhover:()=>gL,upload:()=>bL});function iL(e){return Xt().api.clear(e)}function oL(e,t={}){return Xt(t,e).api.click(e)}function aL(e={}){return Xt(e).api.copy()}function sL(e={}){return Xt(e).api.cut()}function uL(e,t={}){return Xt(t).api.dblClick(e)}function lL(e,t,r={}){return Xt(r).api.deselectOptions(e,t)}function cL(e,t={}){return Xt(t).api.hover(e)}async function pL(e,t={}){let{api:r,system:n}=Xt(t);return r.keyboard(e).then(()=>n)}async function dL(e,t={}){let{api:r,system:n}=Xt(t);return r.pointer(e).then(()=>n)}function fL(e,t){return Xt(t).api.paste(e)}function hL(e,t,r={}){return Xt(r).api.selectOptions(e,t)}function mL(e,t={}){return Xt(t).api.tripleClick(e)}function yL(e,t,r={}){return Xt(r,e).api.type(e,t,r)}function gL(e,t={}){let{api:r,system:n}=Xt(t);return n.pointer.setMousePosition({target:e}),r.unhover(e)}function bL(e,t,r={}){return Xt(r).api.upload(e,t)}function EL(e={}){return Xt().api.tab(e)}var yA={...mA,setup:eL},wl=Mo({...sE},{getKeys:e=>Object.keys(e).filter(t=>t!=="eventWrapper"),intercept:(e,t)=>t[0]==="fireEvent"||e.startsWith("find")||e.startsWith("waitFor")});wl.screen=new Proxy(wl.screen,{get(e,t,r){return typeof window<"u"&&globalThis.location?.href?.includes("viewMode=docs")&&Rt.warn(We`
|
|
345
|
+
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.
|
|
346
|
+
|
|
347
|
+
More info: https://storybook.js.org/docs/writing-tests/interaction-testing?ref=error#querying-the-canvas
|
|
348
|
+
`),Reflect.get(e,t,r)}});var{buildQueries:vL,configure:AL,createEvent:wL,fireEvent:CL,findAllByAltText:_L,findAllByDisplayValue:TL,findAllByLabelText:SL,findAllByPlaceholderText:xL,findAllByRole:DL,findAllByTestId:RL,findAllByText:PL,findAllByTitle:OL,findByAltText:FL,findByDisplayValue:NL,findByLabelText:IL,findByPlaceholderText:BL,findByRole:kL,findByTestId:ML,findByText:qL,findByTitle:jL,getAllByAltText:LL,getAllByDisplayValue:VL,getAllByLabelText:$L,getAllByPlaceholderText:UL,getAllByRole:JL,getAllByTestId:HL,getAllByText:GL,getAllByTitle:zL,getByAltText:WL,getByDisplayValue:YL,getByLabelText:KL,getByPlaceholderText:XL,getByRole:QL,getByTestId:ZL,getByText:e3,getByTitle:t3,getConfig:r3,getDefaultNormalizer:n3,getElementError:i3,getNodeText:o3,getQueriesForElement:a3,getRoles:s3,getSuggestedQuery:u3,isInaccessible:l3,logDOM:c3,logRoles:p3,prettyDOM:d3,queries:f3,queryAllByAltText:h3,queryAllByAttribute:m3,queryAllByDisplayValue:y3,queryAllByLabelText:g3,queryAllByPlaceholderText:b3,queryAllByRole:E3,queryAllByTestId:v3,queryAllByText:A3,queryAllByTitle:w3,queryByAltText:C3,queryByAttribute:_3,queryByDisplayValue:T3,queryByLabelText:S3,queryByPlaceholderText:x3,queryByRole:D3,queryByTestId:R3,queryByText:P3,queryByTitle:O3,queryHelpers:F3,screen:N3,waitFor:I3,waitForElementToBeRemoved:B3,within:gA,prettyFormat:k3}=wl,bA=yA,{userEvent:M3}=Mo({userEvent:yA},{intercept:!0,getKeys:e=>Object.keys(e).filter(t=>t!=="eventWrapper")}),{expect:q3}=Mo({expect:eE},{getKeys:(e,t)=>{if("constructor"in e&&e.constructor===H){let r=["assert","__methods","__flags","_obj"],n=Object.keys(Object.getPrototypeOf(e)).filter(i=>!r.includes(i));return t>2?n:[...n,"not"]}return"any"in e?Object.keys(e).filter(r=>r!=="any"):Object.keys(e)},mutate:!0,intercept:e=>e!=="expect"}),j3={mock:()=>{}},Dh=!1,L3=e=>{let{parameters:t}=e;t?.actions?.disable||Dh||(tE((r,n)=>{let i=r.getMockName();i!=="spy"&&i!=="vi.fn()"&&(!/^next\/.*::/.test(i)||["next/router::useRouter()","next/navigation::useRouter()","next/navigation::redirect","next/cache::","next/headers::cookies().set","next/headers::cookies().delete","next/headers::headers().set","next/headers::headers().delete"].some(o=>i.startsWith(o)))&&Wo(i)(n)}),Dh=!0)},V3=[L3],Rh=()=>({...bg,...vg}),Ya="backgrounds",$3={light:{name:"light",value:"#F8F8F8"},dark:{name:"dark",value:"#333"}},{document:Cr}=globalThis,U3=()=>globalThis?.matchMedia?!!globalThis.matchMedia("(prefers-reduced-motion: reduce)")?.matches:!1,Ph=e=>{(Array.isArray(e)?e:[e]).forEach(J3)},J3=e=>{if(!Cr)return;let t=Cr.getElementById(e);t&&t.parentElement&&t.parentElement.removeChild(t)},H3=(e,t)=>{if(!Cr)return;let r=Cr.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let n=Cr.createElement("style");n.setAttribute("id",e),n.innerHTML=t,Cr.head.appendChild(n)}},G3=(e,t,r)=>{if(!Cr)return;let n=Cr.getElementById(e);if(n)n.innerHTML!==t&&(n.innerHTML=t);else{let i=Cr.createElement("style");i.setAttribute("id",e),i.innerHTML=t;let o=`addon-backgrounds-grid${r?`-docs-${r}`:""}`,a=Cr.getElementById(o);a?a.parentElement?.insertBefore(i,a):Cr.head.appendChild(i)}},z3={cellSize:100,cellAmount:10,opacity:.8},Oh="addon-backgrounds",Fh="addon-backgrounds-grid",W3=U3()?"":"transition: background-color 0.3s;",Y3=(e,t)=>{let{globals:r={},parameters:n={},viewMode:i,id:o}=t,{options:a=$3,disable:s,grid:p=z3}=n[Ya]||{},l=r[Ya]||{},d=typeof l=="string"?l:l?.value,f=d?a[d]:void 0,h=typeof f=="string"?f:f?.value||"transparent",m=typeof l=="string"?!1:l.grid||!1,b=!!f&&!s,E=i==="docs"?`#anchor--${o} .docs-story`:".sb-show-main",w=i==="docs"?`#anchor--${o} .docs-story`:".sb-show-main",A=n.layout===void 0||n.layout==="padded",S=i==="docs"?20:A?16:0,{cellAmount:k,cellSize:O,opacity:R,offsetX:y=S,offsetY:T=S}=p,_=i==="docs"?`${Oh}-docs-${o}`:`${Oh}-color`,D=i==="docs"?o:null;Jn(()=>{let M=`
|
|
349
|
+
${E} {
|
|
350
|
+
background: ${h} !important;
|
|
351
|
+
${W3}
|
|
352
|
+
}`;if(!b){Ph(_);return}G3(_,M,D)},[E,_,D,b,h]);let J=i==="docs"?`${Fh}-docs-${o}`:`${Fh}`;return Jn(()=>{if(!m){Ph(J);return}let M=[`${O*k}px ${O*k}px`,`${O*k}px ${O*k}px`,`${O}px ${O}px`,`${O}px ${O}px`].join(", "),G=`
|
|
353
|
+
${w} {
|
|
354
|
+
background-size: ${M} !important;
|
|
355
|
+
background-position: ${y}px ${T}px, ${y}px ${T}px, ${y}px ${T}px, ${y}px ${T}px !important;
|
|
356
|
+
background-blend-mode: difference !important;
|
|
357
|
+
background-image: linear-gradient(rgba(130, 130, 130, ${R}) 1px, transparent 1px),
|
|
358
|
+
linear-gradient(90deg, rgba(130, 130, 130, ${R}) 1px, transparent 1px),
|
|
359
|
+
linear-gradient(rgba(130, 130, 130, ${R/2}) 1px, transparent 1px),
|
|
360
|
+
linear-gradient(90deg, rgba(130, 130, 130, ${R/2}) 1px, transparent 1px) !important;
|
|
361
|
+
}
|
|
362
|
+
`;H3(J,G)},[k,O,w,J,m,y,T,R]),e()},K3=globalThis.FEATURES?.backgrounds?[Y3]:[],X3={[Ya]:{grid:{cellSize:20,opacity:.5,cellAmount:5},disable:!1}},Q3={[Ya]:{value:void 0,grid:!1}},Nh=()=>({decorators:K3,parameters:X3,initialGlobals:Q3}),{step:Z3}=Mo({step:async(e,t,r)=>t(r)},{intercept:!0}),Ih=()=>({parameters:{throwPlayFunctionExceptions:!1},runStep:Z3}),Rs="storybook/highlight",e8=`${Rs}/add`,t8=`${Rs}/remove`,r8=`${Rs}/reset`,n8=`${Rs}/scroll-into-view`,Bh=2147483647,fn=28,kh={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"]},i8="svg,path,rect,circle,line,polyline,polygon,ellipse,text".split(","),qt=(e,t={},r)=>{let n=i8.includes(e)?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return Object.entries(t).forEach(([i,o])=>{/[A-Z]/.test(i)?(i==="onClick"&&(n.addEventListener("click",o),n.addEventListener("keydown",a=>{(a.key==="Enter"||a.key===" ")&&(a.preventDefault(),o())})),i==="onMouseEnter"&&n.addEventListener("mouseenter",o),i==="onMouseLeave"&&n.addEventListener("mouseleave",o)):n.setAttribute(i,o)}),r?.forEach(i=>{if(!(i==null||i===!1))try{n.appendChild(i)}catch{n.appendChild(document.createTextNode(String(i)))}}),n},pa=e=>kh[e]&&qt("svg",{width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},kh[e].map(t=>qt("path",{fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd",d:t}))),o8=e=>{if("elements"in e){let{elements:n,color:i,style:o}=e;return{id:void 0,priority:0,selectors:n,styles:{outline:`2px ${o} ${i}`,outlineOffset:"2px",boxShadow:"0 0 0 6px rgba(255,255,255,0.6)"},menu:void 0}}let{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}},a8=e=>e instanceof Function,Gi=new Map,In=new Map,da=new Map,Ur=e=>{let t=Symbol();return In.set(t,[]),Gi.set(t,e),{get:()=>Gi.get(t),set:r=>{let n=Gi.get(t),i=a8(r)?r(n):r;i!==n&&(Gi.set(t,i),In.get(t)?.forEach(o=>{da.get(o)?.(),da.set(o,o(i))}))},subscribe:r=>(In.get(t)?.push(r),()=>{let n=In.get(t);n&&In.set(t,n.filter(i=>i!==r))}),teardown:()=>{In.get(t)?.forEach(r=>{da.get(r)?.(),da.delete(r)}),In.delete(t),Gi.delete(t)}}},Mh=e=>{let t=document.getElementById("storybook-root"),r=new Map;for(let n of e){let{priority:i=0}=n;for(let o of n.selectors){let a=[...document.querySelectorAll(`:is(${o}):not([id^="storybook-"], [id^="storybook-"] *, [class^="sb-"], [class^="sb-"] *)`),...t?.querySelectorAll(o)||[]];for(let s of a){let p=r.get(s);(!p||p.priority<=i)&&r.set(s,{...n,priority:i,selectors:Array.from(new Set((p?.selectors||[]).concat(o)))})}}}return r},s8=e=>Array.from(e.entries()).map(([t,{selectors:r,styles:n,hoverStyles:i,focusStyles:o,menu:a}])=>{let{top:s,left:p,width:l,height:d}=t.getBoundingClientRect(),{position:f}=getComputedStyle(t);return{element:t,selectors:r,styles:n,hoverStyles:i,focusStyles:o,menu:a,top:f==="fixed"?s:s+window.scrollY,left:f==="fixed"?p:p+window.scrollX,width:l,height:d}}).sort((t,r)=>r.width*r.height-t.width*t.height),qh=(e,t)=>{let r=e.getBoundingClientRect(),{x:n,y:i}=t;return r?.top&&r?.left&&n>=r.left&&n<=r.left+r.width&&i>=r.top&&i<=r.top+r.height},jh=(e,t,r)=>{if(!t||!r)return!1;let{left:n,top:i,width:o,height:a}=e;a<fn&&(i=i-Math.round((fn-a)/2),a=fn),o<fn&&(n=n-Math.round((fn-o)/2),o=fn),t.style.position==="fixed"&&(n+=window.scrollX,i+=window.scrollY);let{x:s,y:p}=r;return s>=n&&s<=n+o&&p>=i&&p<=i+a},u8=(e,t,r={})=>{let{x:n,y:i}=t,{margin:o=5,topOffset:a=0,centered:s=!1}=r,{scrollX:p,scrollY:l,innerHeight:d,innerWidth:f}=window,h=Math.min(e.style.position==="fixed"?i-l:i,d-e.clientHeight-o-a+l),m=s?e.clientWidth/2:0,b=e.style.position==="fixed"?Math.max(Math.min(n-p,f-m-o),m+o):Math.max(Math.min(n,f-m-o+p),m+o+p);Object.assign(e.style,{...b!==n&&{left:`${b}px`},...h!==i&&{top:`${h}px`}})},Lh=e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.showPopover()},l8=e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.hidePopover()},c8=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}}),bt="storybook-highlights-menu",Vh="storybook-highlights-root",p8="storybook-root",d8=e=>{if(globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED)return;globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED=!0;let{document:t}=globalThis,r=Ur([]),n=Ur(new Map),i=Ur([]),o=Ur(),a=Ur(),s=Ur([]),p=Ur([]),l=Ur(),d=Ur(),f=t.getElementById(Vh);r.subscribe(()=>{f||(f=qt("div",{id:Vh}),t.body.appendChild(f))}),r.subscribe(T=>{let _=t.getElementById(p8);if(!_)return;n.set(Mh(T));let D=new MutationObserver(()=>n.set(Mh(T)));return D.observe(_,{subtree:!0,childList:!0}),()=>{D.disconnect()}}),n.subscribe(T=>{let _=()=>requestAnimationFrame(()=>i.set(s8(T))),D=new ResizeObserver(_);D.observe(t.body),Array.from(T.keys()).forEach(M=>D.observe(M));let J=Array.from(t.body.querySelectorAll("*")).filter(M=>{let{overflow:G,overflowX:L,overflowY:I}=window.getComputedStyle(M);return["auto","scroll"].some($=>[G,L,I].includes($))});return J.forEach(M=>M.addEventListener("scroll",_)),()=>{D.disconnect(),J.forEach(M=>M.removeEventListener("scroll",_))}}),n.subscribe(T=>{let _=Array.from(T.keys()).filter(({style:J})=>J.position==="sticky"),D=()=>requestAnimationFrame(()=>{i.set(J=>J.map(M=>{if(_.includes(M.element)){let{top:G,left:L}=M.element.getBoundingClientRect();return{...M,top:G+window.scrollY,left:L+window.scrollX}}return M}))});return t.addEventListener("scroll",D),()=>t.removeEventListener("scroll",D)}),n.subscribe(T=>{s.set(_=>_.filter(({element:D})=>T.has(D)))}),s.subscribe(T=>{T.length?(d.set(_=>T.some(D=>D.element===_?.element)?_:void 0),l.set(_=>T.some(D=>D.element===_?.element)?_:void 0)):(d.set(void 0),l.set(void 0),o.set(void 0))});let h=new Map(new Map);r.subscribe(T=>{T.forEach(({keyframes:_})=>{if(_){let D=h.get(_);D||(D=t.createElement("style"),D.setAttribute("data-highlight","keyframes"),h.set(_,D),t.head.appendChild(D)),D.innerHTML=_}}),h.forEach((_,D)=>{T.some(J=>J.keyframes===D)||(_.remove(),h.delete(D))})});let m=new Map(new Map);i.subscribe(T=>{T.forEach(_=>{let D=m.get(_.element);if(f&&!D){let J={popover:"manual","data-highlight-dimensions":`w${_.width.toFixed(0)}h${_.height.toFixed(0)}`,"data-highlight-coordinates":`x${_.left.toFixed(0)}y${_.top.toFixed(0)}`};D=f.appendChild(qt("div",J,[qt("div")])),m.set(_.element,D)}}),m.forEach((_,D)=>{T.some(({element:J})=>J===D)||(_.remove(),m.delete(D))})}),i.subscribe(T=>{let _=T.filter(J=>J.menu);if(!_.length)return;let D=J=>{requestAnimationFrame(()=>{let M=t.getElementById(bt),G={x:J.pageX,y:J.pageY};if(M&&!qh(M,G)){let L=_.filter(I=>{let $=m.get(I.element);return jh(I,$,G)});o.set(L.length?G:void 0),s.set(L)}})};return t.addEventListener("click",D),()=>t.removeEventListener("click",D)});let b=()=>{let T=t.getElementById(bt),_=a.get();!_||T&&qh(T,_)||p.set(D=>{let J=i.get().filter(I=>{let $=m.get(I.element);return jh(I,$,_)}),M=D.filter(I=>J.includes(I)),G=J.filter(I=>!D.includes(I)),L=D.length-M.length;return G.length||L?[...M,...G]:D})};a.subscribe(b),i.subscribe(b);let E=()=>{let T=d.get(),_=T?[T]:s.get(),D=_.length===1?_[0]:l.get(),J=o.get()!==void 0;i.get().forEach(M=>{let G=m.get(M.element);if(G){let L=D===M,I=J?D?L:_.includes(M):p.get()?.includes(M);Object.assign(G.style,{animation:"none",background:"transparent",border:"none",boxSizing:"border-box",outline:"none",outlineOffset:"0px",...M.styles,...I?M.hoverStyles:{},...L?M.focusStyles:{},position:getComputedStyle(M.element).position==="fixed"?"fixed":"absolute",zIndex:Bh-10,top:`${M.top}px`,left:`${M.left}px`,width:`${M.width}px`,height:`${M.height}px`,margin:0,padding:0,cursor:M.menu&&I?"pointer":"default",pointerEvents:M.menu?"auto":"none",display:"flex",alignItems:"center",justifyContent:"center",overflow:"visible"}),Object.assign(G.children[0].style,{width:"100%",height:"100%",minHeight:`${fn}px`,minWidth:`${fn}px`,boxSizing:"content-box",padding:G.style.outlineWidth||"0px"}),Lh(G)}})};i.subscribe(E),s.subscribe(E),p.subscribe(E),l.subscribe(E),d.subscribe(E);let w=()=>{if(!f)return;let T=t.getElementById(bt);if(T)T.innerHTML="";else{let M={id:bt,popover:"manual"};T=f.appendChild(qt("div",M)),f.appendChild(qt("style",{},[`
|
|
363
|
+
#${bt} {
|
|
364
|
+
position: absolute;
|
|
365
|
+
z-index: ${Bh};
|
|
366
|
+
width: 300px;
|
|
367
|
+
padding: 0px;
|
|
368
|
+
margin: 15px 0 0 0;
|
|
369
|
+
transform: translateX(-50%);
|
|
370
|
+
font-family: "Nunito Sans", -apple-system, ".SFNSText-Regular", "San Francisco", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
371
|
+
font-size: 12px;
|
|
372
|
+
background: white;
|
|
373
|
+
border: none;
|
|
374
|
+
border-radius: 6px;
|
|
375
|
+
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.05), 0 5px 15px 0 rgba(0, 0, 0, 0.1);
|
|
376
|
+
color: #2E3438;
|
|
377
|
+
}
|
|
378
|
+
#${bt} ul {
|
|
379
|
+
list-style: none;
|
|
380
|
+
margin: 0;
|
|
381
|
+
padding: 0;
|
|
382
|
+
}
|
|
383
|
+
#${bt} > ul {
|
|
384
|
+
max-height: 300px;
|
|
385
|
+
overflow-y: auto;
|
|
386
|
+
padding: 4px 0;
|
|
387
|
+
}
|
|
388
|
+
#${bt} li {
|
|
389
|
+
padding: 0 4px;
|
|
390
|
+
margin: 0;
|
|
391
|
+
}
|
|
392
|
+
#${bt} li > :not(ul) {
|
|
393
|
+
display: flex;
|
|
394
|
+
padding: 8px;
|
|
395
|
+
margin: 0;
|
|
396
|
+
align-items: center;
|
|
397
|
+
gap: 8px;
|
|
398
|
+
border-radius: 4px;
|
|
399
|
+
}
|
|
400
|
+
#${bt} button {
|
|
401
|
+
width: 100%;
|
|
402
|
+
border: 0;
|
|
403
|
+
background: transparent;
|
|
404
|
+
color: inherit;
|
|
405
|
+
text-align: left;
|
|
406
|
+
font-family: inherit;
|
|
407
|
+
font-size: inherit;
|
|
408
|
+
}
|
|
409
|
+
#${bt} button:focus-visible {
|
|
410
|
+
outline-color: #029CFD;
|
|
411
|
+
}
|
|
412
|
+
#${bt} button:hover {
|
|
413
|
+
background: rgba(2, 156, 253, 0.07);
|
|
414
|
+
color: #029CFD;
|
|
415
|
+
cursor: pointer;
|
|
416
|
+
}
|
|
417
|
+
#${bt} li code {
|
|
418
|
+
white-space: nowrap;
|
|
419
|
+
overflow: hidden;
|
|
420
|
+
text-overflow: ellipsis;
|
|
421
|
+
line-height: 16px;
|
|
422
|
+
font-size: 11px;
|
|
423
|
+
}
|
|
424
|
+
#${bt} li svg {
|
|
425
|
+
flex-shrink: 0;
|
|
426
|
+
margin: 1px;
|
|
427
|
+
color: #73828C;
|
|
428
|
+
}
|
|
429
|
+
#${bt} li > button:hover svg, #${bt} li > button:focus-visible svg {
|
|
430
|
+
color: #029CFD;
|
|
431
|
+
}
|
|
432
|
+
#${bt} .element-list li svg {
|
|
433
|
+
display: none;
|
|
434
|
+
}
|
|
435
|
+
#${bt} li.selectable svg, #${bt} li.selected svg {
|
|
436
|
+
display: block;
|
|
437
|
+
}
|
|
438
|
+
#${bt} .menu-list {
|
|
439
|
+
border-top: 1px solid rgba(38, 85, 115, 0.15);
|
|
440
|
+
}
|
|
441
|
+
#${bt} .menu-list > li:not(:last-child) {
|
|
442
|
+
padding-bottom: 4px;
|
|
443
|
+
margin-bottom: 4px;
|
|
444
|
+
border-bottom: 1px solid rgba(38, 85, 115, 0.15);
|
|
445
|
+
}
|
|
446
|
+
#${bt} .menu-items, #${bt} .menu-items li {
|
|
447
|
+
padding: 0;
|
|
448
|
+
}
|
|
449
|
+
#${bt} .menu-item {
|
|
450
|
+
display: flex;
|
|
451
|
+
}
|
|
452
|
+
#${bt} .menu-item-content {
|
|
453
|
+
display: flex;
|
|
454
|
+
flex-direction: column;
|
|
455
|
+
flex-grow: 1;
|
|
456
|
+
}
|
|
457
|
+
`]))}let _=d.get(),D=_?[_]:s.get();if(D.length&&(T.style.position=getComputedStyle(D[0].element).position==="fixed"?"fixed":"absolute",T.appendChild(qt("ul",{class:"element-list"},D.map(M=>{let G=D.length>1&&!!M.menu?.some($=>$.some(Y=>!Y.selectors||Y.selectors.some(X=>M.selectors.includes(X)))),L=G?{class:"selectable",onClick:()=>d.set(M),onMouseEnter:()=>l.set(M),onMouseLeave:()=>l.set(void 0)}:_?{class:"selected",onClick:()=>d.set(void 0)}:{},I=G||_;return qt("li",L,[qt(I?"button":"div",I?{type:"button"}:{},[_?pa("chevronLeft"):null,qt("code",{},[M.element.outerHTML]),G?pa("chevronRight"):null])])})))),d.get()||s.get().length===1){let M=d.get()||s.get()[0],G=M.menu?.filter(L=>L.some(I=>!I.selectors||I.selectors.some($=>M.selectors.includes($))));G?.length&&T.appendChild(qt("ul",{class:"menu-list"},G.map(L=>qt("li",{},[qt("ul",{class:"menu-items"},L.map(({id:I,title:$,description:Y,iconLeft:X,iconRight:oe,clickEvent:ve})=>{let De=ve&&(()=>e.emit(ve,I,c8(M)));return qt("li",{},[qt(De?"button":"div",De?{class:"menu-item",type:"button",onClick:De}:{class:"menu-item"},[X?pa(X):null,qt("div",{class:"menu-item-content"},[qt(Y?"strong":"span",{},[$]),Y&&qt("span",{},[Y])]),oe?pa(oe):null])])}))]))))}let J=o.get();J?(Object.assign(T.style,{display:"block",left:`${T.style.position==="fixed"?J.x-window.scrollX:J.x}px`,top:`${T.style.position==="fixed"?J.y-window.scrollY:J.y}px`}),Lh(T),requestAnimationFrame(()=>u8(T,J,{topOffset:15,centered:!0}))):(l8(T),Object.assign(T.style,{display:"none"}))};s.subscribe(w),d.subscribe(w);let A=T=>{let _=o8(T);r.set(D=>{let J=_.id?D.filter(M=>M.id!==_.id):D;return _.selectors?.length?[...J,_]:J})},S=T=>{T&&r.set(_=>_.filter(D=>D.id!==T))},k=()=>{r.set([]),n.set(new Map),i.set([]),o.set(void 0),a.set(void 0),s.set([]),p.set([]),l.set(void 0),d.set(void 0)},O,R=(T,_)=>{let D="scrollIntoView-highlight";clearTimeout(O),S(D);let J=t.querySelector(T);if(!J){console.warn(`Cannot scroll into view: ${T} not found`);return}J.scrollIntoView({behavior:"smooth",block:"center",..._});let M=`kf-${Math.random().toString(36).substring(2,15)}`;r.set(G=>[...G,{id:D,priority:1e3,selectors:[T],styles:{outline:"2px solid #1EA7FD",outlineOffset:"-1px",animation:`${M} 3s linear forwards`},keyframes:`@keyframes ${M} {
|
|
458
|
+
0% { outline: 2px solid #1EA7FD; }
|
|
459
|
+
20% { outline: 2px solid #1EA7FD00; }
|
|
460
|
+
40% { outline: 2px solid #1EA7FD; }
|
|
461
|
+
60% { outline: 2px solid #1EA7FD00; }
|
|
462
|
+
80% { outline: 2px solid #1EA7FD; }
|
|
463
|
+
100% { outline: 2px solid #1EA7FD00; }
|
|
464
|
+
}`}]),O=setTimeout(()=>S(D),3500)},y=T=>{requestAnimationFrame(()=>a.set({x:T.pageX,y:T.pageY}))};t.body.addEventListener("mousemove",y),e.on(e8,A),e.on(t8,S),e.on(r8,k),e.on(n8,R),e.on(Un,({newPhase:T})=>{T==="loading"&&k()})};globalThis?.FEATURES?.highlight&&yr?.ready&&yr.ready().then(d8);var $h=()=>({}),f8="measureEnabled";function EA(){let e=we.document.documentElement,t=Math.max(e.scrollHeight,e.offsetHeight);return{width:Math.max(e.scrollWidth,e.offsetWidth),height:t}}function h8(){let e=we.document.createElement("canvas");e.id="storybook-addon-measure";let t=e.getContext("2d");Yr(t!=null);let{width:r,height:n}=EA();return Cl(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",we.document.body.appendChild(e),{canvas:e,context:t,width:r,height:n}}function Cl(e,t,{width:r,height:n}){e.style.width=`${r}px`,e.style.height=`${n}px`;let i=we.window.devicePixelRatio;e.width=Math.floor(r*i),e.height=Math.floor(n*i),t.scale(i,i)}var jt={};function m8(){jt.canvas||(jt=h8())}function vA(){jt.context&&jt.context.clearRect(0,0,jt.width??0,jt.height??0)}function y8(e){vA(),e(jt.context)}function g8(){Yr(jt.canvas),Yr(jt.context),Cl(jt.canvas,jt.context,{width:0,height:0});let{width:e,height:t}=EA();Cl(jt.canvas,jt.context,{width:e,height:t}),jt.width=e,jt.height=t}function b8(){jt.canvas&&(vA(),jt.canvas.parentNode?.removeChild(jt.canvas),jt={})}var oi={margin:"#f6b26b",border:"#ffe599",padding:"#93c47d",content:"#6fa8dc",text:"#232020"},zr=6;function Uh(e,{x:t,y:r,w:n,h:i,r:o}){t=t-n/2,r=r-i/2,n<2*o&&(o=n/2),i<2*o&&(o=i/2),e.beginPath(),e.moveTo(t+o,r),e.arcTo(t+n,r,t+n,r+i,o),e.arcTo(t+n,r+i,t,r+i,o),e.arcTo(t,r+i,t,r,o),e.arcTo(t,r,t+n,r,o),e.closePath()}function E8(e,{padding:t,border:r,width:n,height:i,top:o,left:a}){let s=n-r.left-r.right-t.left-t.right,p=i-t.top-t.bottom-r.top-r.bottom,l=a+r.left+t.left,d=o+r.top+t.top;return e==="top"?l+=s/2:e==="right"?(l+=s,d+=p/2):e==="bottom"?(l+=s/2,d+=p):e==="left"?d+=p/2:e==="center"&&(l+=s/2,d+=p/2),{x:l,y:d}}function v8(e,t,{margin:r,border:n,padding:i},o,a){let s=h=>0,p=0,l=0,d=a?1:.5,f=a?o*2:0;return e==="padding"?s=h=>i[h]*d+f:e==="border"?s=h=>i[h]+n[h]*d+f:e==="margin"&&(s=h=>i[h]+n[h]+r[h]*d+f),t==="top"?l=-s("top"):t==="right"?p=s("right"):t==="bottom"?l=s("bottom"):t==="left"&&(p=-s("left")),{offsetX:p,offsetY:l}}function A8(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}function w8(e,t,r){return e==="top"?t.y=r.y-r.h-zr:e==="right"?t.x=r.x+r.w/2+zr+t.w/2:e==="bottom"?t.y=r.y+r.h+zr:e==="left"&&(t.x=r.x-r.w/2-zr-t.w/2),{x:t.x,y:t.y}}function AA(e,t,{x:r,y:n,w:i,h:o},a){return Uh(e,{x:r,y:n,w:i,h:o,r:3}),e.fillStyle=`${oi[t]}dd`,e.fill(),e.strokeStyle=oi[t],e.stroke(),e.fillStyle=oi.text,e.fillText(a,r,n),Uh(e,{x:r,y:n,w:i,h:o,r:3}),e.fillStyle=`${oi[t]}dd`,e.fill(),e.strokeStyle=oi[t],e.stroke(),e.fillStyle=oi.text,e.fillText(a,r,n),{x:r,y:n,w:i,h:o}}function wA(e,t){e.font="600 12px monospace",e.textBaseline="middle",e.textAlign="center";let r=e.measureText(t),n=r.actualBoundingBoxAscent+r.actualBoundingBoxDescent,i=r.width+zr*2,o=n+zr*2;return{w:i,h:o}}function C8(e,t,{type:r,position:n="center",text:i},o,a=!1){let{x:s,y:p}=E8(n,t),{offsetX:l,offsetY:d}=v8(r,n,t,zr+1,a);s+=l,p+=d;let{w:f,h}=wA(e,i);if(o&&A8({x:s,y:p,w:f,h},o)){let m=w8(n,{x:s,y:p,w:f},o);s=m.x,p=m.y}return AA(e,r,{x:s,y:p,w:f,h},i)}function _8(e,{w:t,h:r}){let n=t*.5+zr,i=r*.5+zr;return{offsetX:(e.x==="left"?-1:1)*n,offsetY:(e.y==="top"?-1:1)*i}}function T8(e,t,{type:r,text:n}){let{floatingAlignment:i,extremities:o}=t,a=o[i.x],s=o[i.y],{w:p,h:l}=wA(e,n),{offsetX:d,offsetY:f}=_8(i,{w:p,h:l});return a+=d,s+=f,AA(e,r,{x:a,y:s,w:p,h:l},n)}function zi(e,t,r,n){let i=[];r.forEach((o,a)=>{let s=n&&o.position==="center"?T8(e,t,o):C8(e,t,o,i[a-1],n);i[a]=s})}function S8(e,t,r,n){let i=r.reduce((o,a)=>(Object.prototype.hasOwnProperty.call(o,a.position)||(o[a.position]=[]),o[a.position]?.push(a),o),{});i.top&&zi(e,t,i.top,n),i.right&&zi(e,t,i.right,n),i.bottom&&zi(e,t,i.bottom,n),i.left&&zi(e,t,i.left,n),i.center&&zi(e,t,i.center,n)}var Ps={margin:"#f6b26ba8",border:"#ffe599a8",padding:"#93c47d8c",content:"#6fa8dca8"},Jh=30;function dr(e){return parseInt(e.replace("px",""),10)}function li(e){return Number.isInteger(e)?e:e.toFixed(2)}function kp(e){return e.filter(t=>t.text!==0&&t.text!=="0")}function x8(e){let t={top:we.window.scrollY,bottom:we.window.scrollY+we.window.innerHeight,left:we.window.scrollX,right:we.window.scrollX+we.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"}}function D8(e){let t=we.getComputedStyle(e),{top:r,left:n,right:i,bottom:o,width:a,height:s}=e.getBoundingClientRect(),{marginTop:p,marginBottom:l,marginLeft:d,marginRight:f,paddingTop:h,paddingBottom:m,paddingLeft:b,paddingRight:E,borderBottomWidth:w,borderTopWidth:A,borderLeftWidth:S,borderRightWidth:k}=t;r=r+we.window.scrollY,n=n+we.window.scrollX,o=o+we.window.scrollY,i=i+we.window.scrollX;let O={top:dr(p),bottom:dr(l),left:dr(d),right:dr(f)},R={top:dr(h),bottom:dr(m),left:dr(b),right:dr(E)},y={top:dr(A),bottom:dr(w),left:dr(S),right:dr(k)},T={top:r-O.top,bottom:o+O.bottom,left:n-O.left,right:i+O.right};return{margin:O,padding:R,border:y,top:r,left:n,bottom:o,right:i,width:a,height:s,extremities:T,floatingAlignment:x8(T)}}function R8(e,{margin:t,width:r,height:n,top:i,left:o,bottom:a,right:s}){let p=n+t.bottom+t.top;e.fillStyle=Ps.margin,e.fillRect(o,i-t.top,r,t.top),e.fillRect(s,i-t.top,t.right,p),e.fillRect(o,a,r,t.bottom),e.fillRect(o-t.left,i-t.top,t.left,p);let l=[{type:"margin",text:li(t.top),position:"top"},{type:"margin",text:li(t.right),position:"right"},{type:"margin",text:li(t.bottom),position:"bottom"},{type:"margin",text:li(t.left),position:"left"}];return kp(l)}function P8(e,{padding:t,border:r,width:n,height:i,top:o,left:a,bottom:s,right:p}){let l=n-r.left-r.right,d=i-t.top-t.bottom-r.top-r.bottom;e.fillStyle=Ps.padding,e.fillRect(a+r.left,o+r.top,l,t.top),e.fillRect(p-t.right-r.right,o+t.top+r.top,t.right,d),e.fillRect(a+r.left,s-t.bottom-r.bottom,l,t.bottom),e.fillRect(a+r.left,o+t.top+r.top,t.left,d);let 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 kp(f)}function O8(e,{border:t,width:r,height:n,top:i,left:o,bottom:a,right:s}){let p=n-t.top-t.bottom;e.fillStyle=Ps.border,e.fillRect(o,i,r,t.top),e.fillRect(o,a-t.bottom,r,t.bottom),e.fillRect(o,i+t.top,t.left,p),e.fillRect(s-t.right,i+t.top,t.right,p);let l=[{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 kp(l)}function F8(e,{padding:t,border:r,width:n,height:i,top:o,left:a}){let s=n-r.left-r.right-t.left-t.right,p=i-t.top-t.bottom-r.top-r.bottom;return e.fillStyle=Ps.content,e.fillRect(a+r.left+t.left,o+r.top+t.top,s,p),[{type:"content",position:"center",text:`${li(s)} x ${li(p)}`}]}function N8(e){return t=>{if(e&&t){let r=D8(e),n=R8(t,r),i=P8(t,r),o=O8(t,r),a=F8(t,r),s=r.width<=Jh*3||r.height<=Jh;S8(t,r,[...a,...i,...o,...n],s)}}}function I8(e){y8(N8(e))}var B8=(e,t)=>{let r=we.document.elementFromPoint(e,t),n=i=>{if(i&&i.shadowRoot){let o=i.shadowRoot.elementFromPoint(e,t);return i.isEqualNode(o)?i:o.shadowRoot?n(o):o}return i};return n(r)||r},Hh,fa={x:0,y:0};function Gh(e,t){Hh=B8(e,t),I8(Hh)}var k8=(e,t)=>{let{measureEnabled:r}=t.globals||{};return Jn(()=>{if(typeof globalThis.document>"u")return;let n=i=>{window.requestAnimationFrame(()=>{i.stopPropagation(),fa.x=i.clientX,fa.y=i.clientY})};return globalThis.document.addEventListener("pointermove",n),()=>{globalThis.document.removeEventListener("pointermove",n)}},[]),Jn(()=>{let n=o=>{window.requestAnimationFrame(()=>{o.stopPropagation(),Gh(o.clientX,o.clientY)})},i=()=>{window.requestAnimationFrame(()=>{g8()})};return t.viewMode==="story"&&r&&(globalThis.document.addEventListener("pointerover",n),m8(),globalThis.window.addEventListener("resize",i),Gh(fa.x,fa.y)),()=>{globalThis.window.removeEventListener("resize",i),b8()}},[r,t.viewMode]),e()},M8=globalThis.FEATURES?.measure?[k8]:[],q8={[f8]:!1},zh=()=>({decorators:M8,initialGlobals:q8}),CA="outline",Wh=e=>{(Array.isArray(e)?e:[e]).forEach(j8)},j8=e=>{let t=typeof e=="string"?e:e.join(""),r=we.document.getElementById(t);r&&r.parentElement&&r.parentElement.removeChild(r)},L8=(e,t)=>{let r=we.document.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let n=we.document.createElement("style");n.setAttribute("id",e),n.innerHTML=t,we.document.head.appendChild(n)}};function V8(e){return We`
|
|
465
|
+
${e} body {
|
|
466
|
+
outline: 1px solid #2980b9 !important;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
${e} article {
|
|
470
|
+
outline: 1px solid #3498db !important;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
${e} nav {
|
|
474
|
+
outline: 1px solid #0088c3 !important;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
${e} aside {
|
|
478
|
+
outline: 1px solid #33a0ce !important;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
${e} section {
|
|
482
|
+
outline: 1px solid #66b8da !important;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
${e} header {
|
|
486
|
+
outline: 1px solid #99cfe7 !important;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
${e} footer {
|
|
490
|
+
outline: 1px solid #cce7f3 !important;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
${e} h1 {
|
|
494
|
+
outline: 1px solid #162544 !important;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
${e} h2 {
|
|
498
|
+
outline: 1px solid #314e6e !important;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
${e} h3 {
|
|
502
|
+
outline: 1px solid #3e5e85 !important;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
${e} h4 {
|
|
506
|
+
outline: 1px solid #449baf !important;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
${e} h5 {
|
|
510
|
+
outline: 1px solid #c7d1cb !important;
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
${e} h6 {
|
|
514
|
+
outline: 1px solid #4371d0 !important;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
${e} main {
|
|
518
|
+
outline: 1px solid #2f4f90 !important;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
${e} address {
|
|
522
|
+
outline: 1px solid #1a2c51 !important;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
${e} div {
|
|
526
|
+
outline: 1px solid #036cdb !important;
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
${e} p {
|
|
530
|
+
outline: 1px solid #ac050b !important;
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
${e} hr {
|
|
534
|
+
outline: 1px solid #ff063f !important;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
${e} pre {
|
|
538
|
+
outline: 1px solid #850440 !important;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
${e} blockquote {
|
|
542
|
+
outline: 1px solid #f1b8e7 !important;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
${e} ol {
|
|
546
|
+
outline: 1px solid #ff050c !important;
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
${e} ul {
|
|
550
|
+
outline: 1px solid #d90416 !important;
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
${e} li {
|
|
554
|
+
outline: 1px solid #d90416 !important;
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
${e} dl {
|
|
558
|
+
outline: 1px solid #fd3427 !important;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
${e} dt {
|
|
562
|
+
outline: 1px solid #ff0043 !important;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
${e} dd {
|
|
566
|
+
outline: 1px solid #e80174 !important;
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
${e} figure {
|
|
570
|
+
outline: 1px solid #ff00bb !important;
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
${e} figcaption {
|
|
574
|
+
outline: 1px solid #bf0032 !important;
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
${e} table {
|
|
578
|
+
outline: 1px solid #00cc99 !important;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
${e} caption {
|
|
582
|
+
outline: 1px solid #37ffc4 !important;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
${e} thead {
|
|
586
|
+
outline: 1px solid #98daca !important;
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
${e} tbody {
|
|
590
|
+
outline: 1px solid #64a7a0 !important;
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
${e} tfoot {
|
|
594
|
+
outline: 1px solid #22746b !important;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
${e} tr {
|
|
598
|
+
outline: 1px solid #86c0b2 !important;
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
${e} th {
|
|
602
|
+
outline: 1px solid #a1e7d6 !important;
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
${e} td {
|
|
606
|
+
outline: 1px solid #3f5a54 !important;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
${e} col {
|
|
610
|
+
outline: 1px solid #6c9a8f !important;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
${e} colgroup {
|
|
614
|
+
outline: 1px solid #6c9a9d !important;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
${e} button {
|
|
618
|
+
outline: 1px solid #da8301 !important;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
${e} datalist {
|
|
622
|
+
outline: 1px solid #c06000 !important;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
${e} fieldset {
|
|
626
|
+
outline: 1px solid #d95100 !important;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
${e} form {
|
|
630
|
+
outline: 1px solid #d23600 !important;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
${e} input {
|
|
634
|
+
outline: 1px solid #fca600 !important;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
${e} keygen {
|
|
638
|
+
outline: 1px solid #b31e00 !important;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
${e} label {
|
|
642
|
+
outline: 1px solid #ee8900 !important;
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
${e} legend {
|
|
646
|
+
outline: 1px solid #de6d00 !important;
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
${e} meter {
|
|
650
|
+
outline: 1px solid #e8630c !important;
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
${e} optgroup {
|
|
654
|
+
outline: 1px solid #b33600 !important;
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
${e} option {
|
|
658
|
+
outline: 1px solid #ff8a00 !important;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
${e} output {
|
|
662
|
+
outline: 1px solid #ff9619 !important;
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
${e} progress {
|
|
666
|
+
outline: 1px solid #e57c00 !important;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
${e} select {
|
|
670
|
+
outline: 1px solid #e26e0f !important;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
${e} textarea {
|
|
674
|
+
outline: 1px solid #cc5400 !important;
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
${e} details {
|
|
678
|
+
outline: 1px solid #33848f !important;
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
${e} summary {
|
|
682
|
+
outline: 1px solid #60a1a6 !important;
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
${e} command {
|
|
686
|
+
outline: 1px solid #438da1 !important;
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
${e} menu {
|
|
690
|
+
outline: 1px solid #449da6 !important;
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
${e} del {
|
|
694
|
+
outline: 1px solid #bf0000 !important;
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
${e} ins {
|
|
698
|
+
outline: 1px solid #400000 !important;
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
${e} img {
|
|
702
|
+
outline: 1px solid #22746b !important;
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
${e} iframe {
|
|
706
|
+
outline: 1px solid #64a7a0 !important;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
${e} embed {
|
|
710
|
+
outline: 1px solid #98daca !important;
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
${e} object {
|
|
714
|
+
outline: 1px solid #00cc99 !important;
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
${e} param {
|
|
718
|
+
outline: 1px solid #37ffc4 !important;
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
${e} video {
|
|
722
|
+
outline: 1px solid #6ee866 !important;
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
${e} audio {
|
|
726
|
+
outline: 1px solid #027353 !important;
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
${e} source {
|
|
730
|
+
outline: 1px solid #012426 !important;
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
${e} canvas {
|
|
734
|
+
outline: 1px solid #a2f570 !important;
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
${e} track {
|
|
738
|
+
outline: 1px solid #59a600 !important;
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
${e} map {
|
|
742
|
+
outline: 1px solid #7be500 !important;
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
${e} area {
|
|
746
|
+
outline: 1px solid #305900 !important;
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
${e} a {
|
|
750
|
+
outline: 1px solid #ff62ab !important;
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
${e} em {
|
|
754
|
+
outline: 1px solid #800b41 !important;
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
${e} strong {
|
|
758
|
+
outline: 1px solid #ff1583 !important;
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
${e} i {
|
|
762
|
+
outline: 1px solid #803156 !important;
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
${e} b {
|
|
766
|
+
outline: 1px solid #cc1169 !important;
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
${e} u {
|
|
770
|
+
outline: 1px solid #ff0430 !important;
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
${e} s {
|
|
774
|
+
outline: 1px solid #f805e3 !important;
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
${e} small {
|
|
778
|
+
outline: 1px solid #d107b2 !important;
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
${e} abbr {
|
|
782
|
+
outline: 1px solid #4a0263 !important;
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
${e} q {
|
|
786
|
+
outline: 1px solid #240018 !important;
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
${e} cite {
|
|
790
|
+
outline: 1px solid #64003c !important;
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
${e} dfn {
|
|
794
|
+
outline: 1px solid #b4005a !important;
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
${e} sub {
|
|
798
|
+
outline: 1px solid #dba0c8 !important;
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
${e} sup {
|
|
802
|
+
outline: 1px solid #cc0256 !important;
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
${e} time {
|
|
806
|
+
outline: 1px solid #d6606d !important;
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
${e} code {
|
|
810
|
+
outline: 1px solid #e04251 !important;
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
${e} kbd {
|
|
814
|
+
outline: 1px solid #5e001f !important;
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
${e} samp {
|
|
818
|
+
outline: 1px solid #9c0033 !important;
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
${e} var {
|
|
822
|
+
outline: 1px solid #d90047 !important;
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
${e} mark {
|
|
826
|
+
outline: 1px solid #ff0053 !important;
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
${e} bdi {
|
|
830
|
+
outline: 1px solid #bf3668 !important;
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
${e} bdo {
|
|
834
|
+
outline: 1px solid #6f1400 !important;
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
${e} ruby {
|
|
838
|
+
outline: 1px solid #ff7b93 !important;
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
${e} rt {
|
|
842
|
+
outline: 1px solid #ff2f54 !important;
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
${e} rp {
|
|
846
|
+
outline: 1px solid #803e49 !important;
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
${e} span {
|
|
850
|
+
outline: 1px solid #cc2643 !important;
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
${e} br {
|
|
854
|
+
outline: 1px solid #db687d !important;
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
${e} wbr {
|
|
858
|
+
outline: 1px solid #db175b !important;
|
|
859
|
+
}`}var $8=(e,t)=>{let r=t.globals||{},n=[!0,"true"].includes(r[CA]),i=t.viewMode==="docs",o=hg(()=>V8(i?'[data-story-block="true"]':".sb-show-main"),[t]);return Jn(()=>{let a=i?`addon-outline-docs-${t.id}`:"addon-outline";return n?L8(a,o):Wh(a),()=>{Wh(a)}},[n,o,t]),e()},U8=globalThis.FEATURES?.outline?[$8]:[],J8={[CA]:!1},Yh=()=>({decorators:U8,initialGlobals:J8}),H8=({parameters:e})=>{e?.test?.mockReset===!0?oE():e?.test?.clearMocks===!0?iE():e?.test?.restoreMocks!==!1&&aE()},_l=(e,t=0,r)=>{if(t>5||e==null)return e;if(di(e))return r&&e.mockName(r),e;if(typeof e=="function"&&"isAction"in e&&e.isAction&&!("implicit"in e&&e.implicit)){let n=rE(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]=_l(e[n],t));return e}if(typeof e=="object"&&e.constructor===Object){t++;for(let[n,i]of Object.entries(e))Object.getOwnPropertyDescriptor(e,n)?.writable&&(e[n]=_l(i,t,n));return e}return e},G8=({initialArgs:e})=>{_l(e)},Kh=!1,z8=async e=>{globalThis.HTMLElement&&e.canvasElement instanceof globalThis.HTMLElement&&(e.canvas=gA(e.canvasElement));let t=globalThis.window?.navigator?.clipboard;if(t&&(e.userEvent=Mo({userEvent:bA.setup()},{intercept:!0,getKeys:r=>Object.keys(r).filter(n=>n!=="eventWrapper")}).userEvent,Object.defineProperty(globalThis.window.navigator,"clipboard",{get:()=>t,configurable:!0}),!Kh)){let r=HTMLElement.prototype.focus,n=HTMLElement.prototype.focus,i=new Set;Object.defineProperties(HTMLElement.prototype,{focus:{configurable:!0,set:o=>{n=o},get(){return i.has(this)?r:(i.add(this),setTimeout(()=>i.delete(this),0),n)}}}),Kh=!0}},Xh=()=>({loaders:[H8,G8,z8]}),W8="viewport",Y8={[W8]:{value:void 0,isRotated:!1}},Qh=()=>({initialGlobals:Y8});function _A(){return[(zh.default??zh)(),(Nh.default??Nh)(),($h.default??$h)(),(Yh.default??Yh)(),(Qh.default??Qh)(),(Rh.default??Rh)(),(Ih.default??Ih)(),(Xh.default??Xh)()]}function K8(e){return e!=null&&typeof e=="object"&&"_tag"in e&&e?._tag==="Meta"}function Mp(e){return e!=null&&typeof e=="object"&&"_tag"in e&&e?._tag==="Story"}function X8(e){return"__children"in e?e.__children:[]}var TA=e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,""),Tl=(e,t)=>{let r=TA(e);if(r==="")throw new Error(`Invalid ${t} '${e}', must include alphanumeric characters`);return r},Q8=(e,t)=>`${Tl(e,"kind")}${t?`--${Tl(t,"name")}`:""}`,Z8=(e,t)=>`${e}:${Tl(t,"test")}`,e6=e=>DR(e);function Zh(e,t){return Array.isArray(t)?t.includes(e):e.match(t)}function Sl(e,{includeStories:t,excludeStories:r}){return e!=="__esModule"&&(!t||Zh(e,t))&&(!r||!Zh(e,r))}var t6=(...e)=>{let t=e.reduce((r,n)=>(n.startsWith("!")?r.delete(n.slice(1)):r.add(n),r),new Set);return Array.from(t)};function em(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function tm(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var r6="[object RegExp]",n6="[object String]",i6="[object Number]",o6="[object Boolean]",rm="[object Arguments]",a6="[object Symbol]",s6="[object Date]",u6="[object Map]",l6="[object Set]",c6="[object Array]",p6="[object Function]",d6="[object ArrayBuffer]",du="[object Object]",f6="[object Error]",h6="[object DataView]",m6="[object Uint8Array]",y6="[object Uint8ClampedArray]",g6="[object Uint16Array]",b6="[object Uint32Array]",E6="[object BigUint64Array]",v6="[object Int8Array]",A6="[object Int16Array]",w6="[object Int32Array]",C6="[object BigInt64Array]",_6="[object Float32Array]",T6="[object Float64Array]";function Nr(e){if(!e||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype||Object.getPrototypeOf(t)===null?Object.prototype.toString.call(e)==="[object Object]":!1}function Oo(e,t){let r={},n=Object.keys(e);for(let i=0;i<n.length;i++){let o=n[i],a=e[o];r[o]=t(a,o,e)}return r}function S6(e,t){let r={},n=Object.keys(e);for(let i=0;i<n.length;i++){let o=n[i],a=e[o];t(a,o)&&(r[o]=a)}return r}var fu=It(jm(),1);function x6(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function D6(e,t,r){return eo(e,t,void 0,void 0,void 0,void 0,r)}function eo(e,t,r,n,i,o,a){let s=a(e,t,r,n,i,o);if(s!==void 0)return s;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 ao(e,t,o,a)}return ao(e,t,o,a)}function ao(e,t,r,n){if(Object.is(e,t))return!0;let i=tm(e),o=tm(t);if(i===rm&&(i=du),o===rm&&(o=du),i!==o)return!1;switch(i){case n6:return e.toString()===t.toString();case i6:{let p=e.valueOf(),l=t.valueOf();return x6(p,l)}case o6:case s6:case a6:return Object.is(e.valueOf(),t.valueOf());case r6:return e.source===t.source&&e.flags===t.flags;case p6:return e===t}r=r??new Map;let a=r.get(e),s=r.get(t);if(a!=null&&s!=null)return a===t;r.set(e,t),r.set(t,e);try{switch(i){case u6:{if(e.size!==t.size)return!1;for(let[p,l]of e.entries())if(!t.has(p)||!eo(l,t.get(p),p,e,t,r,n))return!1;return!0}case l6:{if(e.size!==t.size)return!1;let p=Array.from(e.values()),l=Array.from(t.values());for(let d=0;d<p.length;d++){let f=p[d],h=l.findIndex(m=>eo(f,m,void 0,e,t,r,n));if(h===-1)return!1;l.splice(h,1)}return!0}case c6:case m6:case y6:case g6:case b6:case E6:case v6:case A6:case w6:case C6:case _6:case T6:{if(typeof Buffer<"u"&&Buffer.isBuffer(e)!==Buffer.isBuffer(t)||e.length!==t.length)return!1;for(let p=0;p<e.length;p++)if(!eo(e[p],t[p],p,e,t,r,n))return!1;return!0}case d6:return e.byteLength!==t.byteLength?!1:ao(new Uint8Array(e),new Uint8Array(t),r,n);case h6:return e.byteLength!==t.byteLength||e.byteOffset!==t.byteOffset?!1:ao(new Uint8Array(e),new Uint8Array(t),r,n);case f6:return e.name===t.name&&e.message===t.message;case du:{if(!(ao(e.constructor,t.constructor,r,n)||Nr(e)&&Nr(t)))return!1;let p=[...Object.keys(e),...em(e)],l=[...Object.keys(t),...em(t)];if(p.length!==l.length)return!1;for(let d=0;d<p.length;d++){let f=p[d],h=e[f];if(!Object.hasOwn(t,f))return!1;let m=t[f];if(!eo(h,m,f,e,t,r,n))return!1}return!0}default:return!1}}finally{r.delete(e),r.delete(t)}}function R6(){}function P6(e,t){return D6(e,t,R6)}var qn=Symbol("incompatible"),xl=(e,t)=>{let 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)?qn:e.reduce((n,i,o)=>{let a=xl(i,{type:r.value});return a!==qn&&(n[o]=a),n},new Array(e.length));case"object":return typeof e=="string"||typeof e=="number"?e:!r.value||typeof e!="object"?qn:Object.entries(e).reduce((n,[i,o])=>{let a=xl(o,{type:r.value[i]});return a===qn?n:Object.assign(n,{[i]:a})},{});case"other":{let n=typeof e=="string"||typeof e=="number"||typeof e=="boolean";return r.value==="ReactNode"&&n?e:qn}default:return qn}},O6=(e,t)=>Object.entries(e).reduce((r,[n,i])=>{if(!t[n])return r;let o=xl(i,t[n]);return o===qn?r:Object.assign(r,{[n]:o})},{}),Ka=(e,t)=>Array.isArray(e)&&Array.isArray(t)?t.reduce((r,n,i)=>(r[i]=Ka(e[i],t[i]),r),[...e]).filter(r=>r!==void 0):!Nr(e)||!Nr(t)?t:Object.keys({...e,...t}).reduce((r,n)=>{if(n in t){let i=Ka(e[n],t[n]);i!==void 0&&(r[n]=i)}else r[n]=e[n];return r},{}),F6=(e,t)=>Object.entries(t).reduce((r,[n,{options:i}])=>{function o(){return n in e&&(r[n]=e[n]),r}if(!i)return o();if(!Array.isArray(i))return Rt.error(We`
|
|
860
|
+
Invalid argType: '${n}.options' should be an array.
|
|
861
|
+
|
|
862
|
+
More info: https://storybook.js.org/docs/api/arg-types?ref=error
|
|
863
|
+
`),o();if(i.some(f=>f&&["object","function"].includes(typeof f)))return Rt.error(We`
|
|
864
|
+
Invalid argType: '${n}.options' should only contain primitives. Use a 'mapping' for complex values.
|
|
865
|
+
|
|
866
|
+
More info: https://storybook.js.org/docs/writing-stories/args?ref=error#mapping-to-complex-arg-values
|
|
867
|
+
`),o();let a=Array.isArray(e[n]),s=a&&e[n].findIndex(f=>!i.includes(f)),p=a&&s===-1;if(e[n]===void 0||i.includes(e[n])||p)return o();let l=a?`${n}[${s}]`:n,d=i.map(f=>typeof f=="string"?`'${f}'`:String(f)).join(", ");return Rt.warn(`Received illegal value for '${l}'. Supported options: ${d}`),r},{}),so=Symbol("Deeply equal"),Xa=(e,t)=>{if(typeof e!=typeof t)return t;if(P6(e,t))return so;if(Array.isArray(e)&&Array.isArray(t)){let r=t.reduce((n,i,o)=>{let a=Xa(e[o],i);return a!==so&&(n[o]=a),n},new Array(t.length));return t.length>=e.length?r:r.concat(new Array(e.length-t.length).fill(void 0))}return Nr(e)&&Nr(t)?Object.keys({...e,...t}).reduce((r,n)=>{let i=Xa(e?.[n],t?.[n]);return i===so?r:Object.assign(r,{[n]:i})},{}):t},SA="UNTARGETED";function N6({args:e,argTypes:t}){let r={};return Object.entries(e).forEach(([n,i])=>{let{target:o=SA}=t[n]||{};r[o]=r[o]||{},r[o][n]=i}),r}function I6(e){return Object.keys(e).forEach(t=>e[t]===void 0&&delete e[t]),e}var B6=class{constructor(){this.initialArgsByStoryId={},this.argsByStoryId={}}get(e){if(!(e in this.argsByStoryId))throw new Error(`No args known for ${e} -- has it been rendered yet?`);return this.argsByStoryId[e]}setInitial(e){if(!this.initialArgsByStoryId[e.id])this.initialArgsByStoryId[e.id]=e.initialArgs,this.argsByStoryId[e.id]=e.initialArgs;else if(this.initialArgsByStoryId[e.id]!==e.initialArgs){let t=Xa(this.initialArgsByStoryId[e.id],this.argsByStoryId[e.id]);this.initialArgsByStoryId[e.id]=e.initialArgs,this.argsByStoryId[e.id]=e.initialArgs,t!==so&&this.updateFromDelta(e,t)}}updateFromDelta(e,t){let r=F6(t,e.argTypes);this.argsByStoryId[e.id]=Ka(this.argsByStoryId[e.id],r)}updateFromPersisted(e,t){let r=O6(t,e.argTypes);return this.updateFromDelta(e,r)}update(e,t){if(!(e in this.argsByStoryId))throw new Error(`No args known for ${e} -- has it been rendered yet?`);this.argsByStoryId[e]=I6({...this.argsByStoryId[e],...t})}},xA=(e={})=>Object.entries(e).reduce((t,[r,{defaultValue:n}])=>(typeof n<"u"&&(t[r]=n),t),{}),k6=class{constructor({globals:e={},globalTypes:t={}}){this.set({globals:e,globalTypes:t})}set({globals:e={},globalTypes:t={}}){let r=this.initialGlobals&&Xa(this.initialGlobals,this.globals);this.allowedGlobalNames=new Set([...Object.keys(e),...Object.keys(t)]);let n=xA(t);this.initialGlobals={...n,...e},this.globals=this.initialGlobals,r&&r!==so&&this.updateFromPersisted(r)}filterAllowedGlobals(e){return Object.entries(e).reduce((t,[r,n])=>(this.allowedGlobalNames.has(r)?t[r]=n:Et.warn(`Attempted to set a global (${r}) that is not defined in initial globals or globalTypes`),t),{})}updateFromPersisted(e){let t=this.filterAllowedGlobals(e);this.globals={...this.globals,...t}}get(){return this.globals}update(e){this.globals={...this.globals,...this.filterAllowedGlobals(e)};for(let t in e)e[t]===void 0&&(this.globals[t]=this.initialGlobals[t])}},M6=It(jm(),1),q6=(0,M6.default)(1)(e=>Object.values(e).reduce((t,r)=>(t[r.importPath]=t[r.importPath]||r,t),{})),j6=class{constructor({entries:e}={v:5,entries:{}}){this.entries=e}entryFromSpecifier(e){let t=Object.values(this.entries);if(e==="*")return t[0];if(typeof e=="string")return this.entries[e]?this.entries[e]:t.find(i=>i.id.startsWith(e));let{name:r,title:n}=e;return t.find(i=>i.name===r&&i.title===n)}storyIdToEntry(e){let t=this.entries[e];if(!t)throw new Uy({storyId:e});return t}importPathToEntry(e){return q6(this.entries)[e]}},L6=e=>typeof e=="string"?{name:e}:e,V6=e=>typeof e=="string"?{type:e}:e,$6=(e,t)=>{let{type:r,control:n,...i}=e,o={name:t,...i};return r&&(o.type=L6(r)),n?o.control=V6(n):n===!1&&(o.control={disable:!0}),o},Qa=e=>Oo(e,$6),ft=e=>Array.isArray(e)?e:e?[e]:[],U6=We`
|
|
868
|
+
CSF .story annotations deprecated; annotate story functions directly:
|
|
869
|
+
- StoryFn.story.name => StoryFn.storyName
|
|
870
|
+
- StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators)
|
|
871
|
+
See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod.
|
|
872
|
+
`;function uo(e,t,r){let n=t,i=typeof t=="function"?t:null,{story:o}=n;o&&(Et.debug("deprecated story",o),nc(U6));let a=e6(e),s=typeof n!="function"&&n.name||n.storyName||o?.name||a,p=[...ft(n.decorators),...ft(o?.decorators)],l={...o?.parameters,...n.parameters},d={...o?.args,...n.args},f={...o?.argTypes,...n.argTypes},h=[...ft(n.loaders),...ft(o?.loaders)],m=[...ft(n.beforeEach),...ft(o?.beforeEach)],b=[...ft(n.afterEach),...ft(o?.afterEach)],{render:E,play:w,tags:A=[],globals:S={}}=n,k=l.__id||Q8(r.id,a);return{moduleExport:t,id:k,name:s,tags:A,decorators:p,parameters:l,args:d,argTypes:Qa(f),loaders:h,beforeEach:m,afterEach:b,globals:S,...E&&{render:E},...i&&{userStoryFn:i},...w&&{play:w}}}function Dl(e,t=e.title,r){let{id:n,argTypes:i}=e;return{id:TA(n||t),...e,title:t,...i&&{argTypes:Qa(i)},parameters:{fileName:r,...e.parameters}}}var J6=e=>{let{globals:t,globalTypes:r}=e;(t||r)&&Et.error("Global args/argTypes can only be set globally",JSON.stringify({globals:t,globalTypes:r}))},H6=e=>{let{options:t}=e;t?.storySort&&Et.error("The storySort option parameter can only be set globally")},ha=e=>{e&&(J6(e),H6(e))};function G6(e,t,r){let{default:n,__namedExportsOrder:i,...o}=e,a=Object.values(o)[0];if(Mp(a)){let l=Dl(a.meta.input,r,t);ha(l.parameters);let d={meta:l,stories:{},moduleExports:e};return Object.keys(o).forEach(f=>{if(Sl(f,l)){let h=o[f],m=uo(f,h.input,l);ha(m.parameters),d.stories[m.id]=m,X8(h).forEach(b=>{let E=b.input.name,w=Z8(m.id,E);b.input.parameters??={},b.input.parameters.__id=w,d.stories[w]=uo(E,b.input,l)})}}),d.projectAnnotations=a.meta.preview.composed,d}let s=Dl(n,r,t);ha(s.parameters);let p={meta:s,stories:{},moduleExports:e};return Object.keys(o).forEach(l=>{if(Sl(l,s)){let d=uo(l,o[l],s);ha(d.parameters),p.stories[d.id]=d}}),p}function DA(e,t,r){let n=r(e);return i=>t(n,i)}function RA({componentId:e,title:t,kind:r,id:n,name:i,story:o,parameters:a,initialArgs:s,argTypes:p,...l}={}){return l}function PA(e,t){let r={},n=o=>a=>{if(!r.value)throw new Error("Decorated function called without init");return r.value={...r.value,...RA(a)},o(r.value)},i=t.reduce((o,a)=>DA(o,a,n),e);return o=>(r.value=o,i(o))}var Yn=(...e)=>{let t={},r=e.filter(Boolean),n=r.reduce((i,o)=>(Object.entries(o).forEach(([a,s])=>{let p=i[a];Array.isArray(s)||typeof p>"u"?i[a]=s:Nr(s)&&Nr(p)?t[a]=!0:typeof s<"u"&&(i[a]=s)}),i),{});return Object.keys(t).forEach(i=>{let o=r.filter(Boolean).map(a=>a[i]).filter(a=>typeof a<"u");o.every(a=>Nr(a))?n[i]=Yn(...o):n[i]=o[o.length-1]}),n};function qp(e,t,r){let{moduleExport:n,id:i,name:o}=e||{},a=FA(e,t,r),s=async y=>{let T={};for(let _ of[ft(r.loaders),ft(t.loaders),ft(e.loaders)]){if(y.abortSignal.aborted)return T;let D=await Promise.all(_.map(J=>J(y)));Object.assign(T,...D)}return T},p=async y=>{let T=new Array;for(let _ of[...ft(r.beforeEach),...ft(t.beforeEach),...ft(e.beforeEach)]){if(y.abortSignal.aborted)return T;let D=await _(y);D&&T.push(D)}return T},l=async y=>{let T=[...ft(r.afterEach),...ft(t.afterEach),...ft(e.afterEach)].reverse();for(let _ of T){if(y.abortSignal.aborted)return;await _(y)}},d=y=>y.originalStoryFn(y.args,y),{applyDecorators:f=PA,runStep:h}=r,m=[...ft(e?.decorators),...ft(t?.decorators),...ft(r?.decorators)],b=e?.userStoryFn||e?.render||t.render||r.render,E=dg(f)(d,m),w=y=>E(y),A=e?.play??t?.play,S=OR(A);if(!b&&!S)throw new Zy({id:i});let k=y=>async()=>(await y.renderToCanvas(),y.canvas),O=e.mount??t.mount??r.mount??k,R=r.testingLibraryRender;return{storyGlobals:{},...a,moduleExport:n,id:i,name:o,story:o,originalStoryFn:b,undecoratedStoryFn:d,unboundStoryFn:w,applyLoaders:s,applyBeforeEach:p,applyAfterEach:l,playFunction:A,runStep:h,mount:O,testingLibraryRender:R,renderToCanvas:r.renderToCanvas,usesMount:S}}function OA(e,t,r){return{...FA(void 0,e,t),moduleExport:r}}function FA(e,t,r){let n=["dev","test"],i=we.DOCS_OPTIONS?.autodocs===!0?["autodocs"]:[],o=e?.tags?.includes("test-fn")?["!autodocs"]:[],a=t6(...n,...i,...r.tags??[],...t.tags??[],...o,...e?.tags??[]),s=Yn(r.parameters,t.parameters,e?.parameters),{argTypesEnhancers:p=[],argsEnhancers:l=[]}=r,d=Yn(r.argTypes,t.argTypes,e?.argTypes);if(e){let S=e?.userStoryFn||e?.render||t.render||r.render;s.__isArgsStory=S&&S.length>0}let f={...r.args,...t.args,...e?.args},h={...t.globals,...e?.globals},m={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:s,initialArgs:f,argTypes:d,storyGlobals:h};m.argTypes=p.reduce((S,k)=>k({...m,argTypes:S}),m.argTypes);let b={...f};m.initialArgs=[...l].reduce((S,k)=>({...S,...k({...m,initialArgs:S})}),b);let{name:E,story:w,...A}=m;return A}function NA(e){let{args:t}=e,r={...e,allArgs:void 0,argsByTarget:void 0};if(we.FEATURES?.argTypeTargetsV7){let o=N6(e);r={...e,allArgs:e.args,argsByTarget:o,args:o[SA]||{}}}let n=Object.entries(r.args).reduce((o,[a,s])=>{if(!r.argTypes[a]?.mapping)return o[a]=s,o;let p=l=>{let d=r.argTypes[a].mapping;return d&&l in d?d[l]:l};return o[a]=Array.isArray(s)?s.map(p):p(s),o},{}),i=Object.entries(n).reduce((o,[a,s])=>{let p=r.argTypes[a]||{};return PR(p,n,r.globals)&&(o[a]=s),o},{});return{...r,unmappedArgs:t,args:i}}var Rl=(e,t,r)=>{let n=typeof e;switch(n){case"boolean":case"string":case"number":case"function":case"symbol":return{name:n}}return e?r.has(e)?(Et.warn(We`
|
|
873
|
+
We've detected a cycle in arg '${t}'. Args should be JSON-serializable.
|
|
874
|
+
|
|
875
|
+
Consider using the mapping feature or fully custom args:
|
|
876
|
+
- Mapping: https://storybook.js.org/docs/writing-stories/args#mapping-to-complex-arg-values
|
|
877
|
+
- Custom args: https://storybook.js.org/docs/essentials/controls#fully-custom-args
|
|
878
|
+
`),{name:"other",value:"cyclic object"}):(r.add(e),Array.isArray(e)?{name:"array",value:e.length>0?Rl(e[0],t,new Set(r)):{name:"other",value:"unknown"}}:{name:"object",value:Oo(e,i=>Rl(i,t,new Set(r)))}):{name:"object",value:{}}},IA=e=>{let{id:t,argTypes:r={},initialArgs:n={}}=e,i=Oo(n,(a,s)=>({name:s,type:Rl(a,`${t}.${s}`,new Set)})),o=Oo(r,(a,s)=>({name:s}));return Yn(i,o,r)};IA.secondPass=!0;var nm=(e,t)=>Array.isArray(t)?t.includes(e):e.match(t),BA=(e,t,r)=>!t&&!r?e:e&&S6(e,(n,i)=>{let o=n.name||i.toString();return!!(!t||nm(o,t))&&(!r||!nm(o,r))}),z6=(e,t,r)=>{let{type:n,options:i}=e;if(n){if(r.color&&r.color.test(t)){let o=n.name;if(o==="string")return{control:{type:"color"}};o!=="enum"&&Et.warn(`Addon controls: Control of type color only supports string, received "${o}" 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":{let{value:o}=n;return{control:{type:o?.length<=5?"radio":"select"},options:o}}case"function":case"symbol":return null;default:return{control:{type:i?"select":"object"}}}}},jp=e=>{let{argTypes:t,parameters:{__isArgsStory:r,controls:{include:n=null,exclude:i=null,matchers:o={}}={}}}=e;if(!r)return t;let a=BA(t,n,i),s=Oo(a,(p,l)=>p?.type&&z6(p,l.toString(),o));return Yn(s,a)};jp.secondPass=!0;function Za({argTypes:e,globalTypes:t,argTypesEnhancers:r,decorators:n,loaders:i,beforeEach:o,afterEach:a,initialGlobals:s,...p}){return{...e&&{argTypes:Qa(e)},...t&&{globalTypes:Qa(t)},decorators:ft(n),loaders:ft(i),beforeEach:ft(o),afterEach:ft(a),argTypesEnhancers:[...r||[],IA,jp],initialGlobals:s,...p}}var W6=e=>async()=>{let t=[];for(let r of e){let n=await r();n&&t.unshift(n)}return async()=>{for(let r of t)await r()}};function kA(e){return async(t,r,n)=>{await e.reduceRight((i,o)=>async()=>o(t,i,n),async()=>r(n))()}}function Fo(e,t){return e.map(r=>r.default?.[t]??r[t]).filter(Boolean)}function un(e,t,r={}){return Fo(e,t).reduce((n,i)=>{let o=ft(i);return r.reverseFileOrder?[...o,...n]:[...n,...o]},[])}function ma(e,t){return Object.assign({},...Fo(e,t))}function Wi(e,t){return Fo(e,t).pop()}function Di(e){let t=un(e,"argTypesEnhancers"),r=Fo(e,"runStep"),n=un(e,"beforeAll");return{parameters:Yn(...Fo(e,"parameters")),decorators:un(e,"decorators",{reverseFileOrder:!(we.FEATURES?.legacyDecoratorFileOrder??!1)}),args:ma(e,"args"),argsEnhancers:un(e,"argsEnhancers"),argTypes:ma(e,"argTypes"),argTypesEnhancers:[...t.filter(i=>!i.secondPass),...t.filter(i=>i.secondPass)],initialGlobals:ma(e,"initialGlobals"),globalTypes:ma(e,"globalTypes"),loaders:un(e,"loaders"),beforeAll:W6(n),beforeEach:un(e,"beforeEach"),afterEach:un(e,"afterEach"),render:Wi(e,"render"),renderToCanvas:Wi(e,"renderToCanvas"),applyDecorators:Wi(e,"applyDecorators"),runStep:kA(r),tags:un(e,"tags"),mount:Wi(e,"mount"),testingLibraryRender:Wi(e,"testingLibraryRender")}}function MA(){try{return!!globalThis.__vitest_browser__||!!globalThis.window?.navigator?.userAgent?.match(/StorybookTestRunner/)}catch{return!1}}function Lp(e=!0){if(!("document"in globalThis&&"createElement"in globalThis.document))return()=>{};let t=document.createElement("style");t.textContent=`*, *:before, *:after {
|
|
879
|
+
animation: none !important;
|
|
880
|
+
}`,document.head.appendChild(t);let r=document.createElement("style");return r.textContent=`*, *:before, *:after {
|
|
881
|
+
animation-delay: 0s !important;
|
|
882
|
+
animation-direction: ${e?"reverse":"normal"} !important;
|
|
883
|
+
animation-play-state: paused !important;
|
|
884
|
+
transition: none !important;
|
|
885
|
+
}`,document.head.appendChild(r),document.body.clientHeight,document.head.removeChild(t),()=>{r.parentNode?.removeChild(r)}}async function Vp(e){if(!("document"in globalThis&&"getAnimations"in globalThis.document&&"querySelectorAll"in globalThis.document))return;let t=!1;await Promise.race([new Promise(r=>{setTimeout(()=>{let n=[globalThis.document,...qA(globalThis.document)],i=async()=>{if(t||e?.aborted)return;let o=n.flatMap(a=>a?.getAnimations?.()||[]).filter(a=>a.playState==="running"&&!Y6(a));o.length>0&&(await Promise.all(o.map(a=>a.finished)),await i())};i().then(r)},100)}),new Promise(r=>setTimeout(()=>{t=!0,r(void 0)},5e3))])}function qA(e){return[e,...e.querySelectorAll("*")].reduce((t,r)=>("shadowRoot"in r&&r.shadowRoot&&t.push(r.shadowRoot,...qA(r.shadowRoot)),t),[])}function Y6(e){if(e instanceof CSSAnimation&&e.effect instanceof KeyframeEffect&&e.effect.target){let t=getComputedStyle(e.effect.target,e.effect.pseudoElement),r=t.animationName?.split(", ").indexOf(e.animationName);return t.animationIterationCount.split(", ")[r]==="infinite"}return!1}var $p=class{constructor(){this.reports=[]}async addReport(e){this.reports.push(e)}};function jA(e,t,r){return Mp(e)?{story:e.input,meta:e.meta.input,preview:e.meta.preview.composed}:{story:e,meta:K8(t)?t.input:t,preview:r}}function K6(e){globalThis.defaultProjectAnnotations=e}var X6="ComposedStory",Q6="Unnamed Story";function Z6(e){return e?Di([e]):{}}function e5(e){let t=Array.isArray(e)?e:[e];return globalThis.globalProjectAnnotations=Di([..._A(),globalThis.defaultProjectAnnotations??{},Di(t.map(Z6))]),globalThis.globalProjectAnnotations??{}}var mn=[];function LA(e,t,r,n,i){if(e===void 0)throw new Error("Expected a story but received undefined.");t.title=t.title??X6;let o=Dl(t),a=i||e.storyName||e.story?.name||e.name||Q6,s=uo(a,e,o),p=Za(Di([n??globalThis.globalProjectAnnotations??{},r??{}])),l=qp(s,o,p),d={...xA(p.globalTypes),...p.initialGlobals,...l.storyGlobals},f=new $p,h=()=>{let A=NA({hooks:new yc,globals:d,args:{...l.initialArgs},viewMode:"story",reporting:f,loaded:{},abortSignal:new AbortController().signal,step:(S,k)=>l.runStep(S,k,A),canvasElement:null,canvas:{},userEvent:{},globalTypes:p.globalTypes,...l,context:null,mount:null});return A.parameters.__isPortableStory=!0,A.context=A,l.renderToCanvas&&(A.renderToCanvas=async()=>{let S=await l.renderToCanvas?.({componentId:l.componentId,title:l.title,id:l.id,name:l.name,tags:l.tags,showMain:()=>{},showError:k=>{throw new Error(`${k.title}
|
|
886
|
+
${k.description}`)},showException:k=>{throw k},forceRemount:!0,storyContext:A,storyFn:()=>l.unboundStoryFn(A),unboundStoryFn:l.unboundStoryFn},A.canvasElement);S&&mn.push(S)}),A.mount=l.mount(A),A},m,b=async A=>{let S=h();return S.canvasElement??=globalThis?.document?.body,m&&(S.loaded=m.loaded),Object.assign(S,A),l.playFunction(S)},E=A=>{let S=h();return Object.assign(S,A),i5(l,S)},w=l.playFunction?b:void 0;return Object.assign(function(A){let S=h();return m&&(S.loaded=m.loaded),S.args={...S.initialArgs,...A},l.unboundStoryFn(S)},{id:l.id,storyName:a,load:async()=>{for(let S of[...mn].reverse())await S();mn.length=0;let A=h();A.loaded=await l.applyLoaders(A),mn.push(...(await l.applyBeforeEach(A)).filter(Boolean)),m=A},globals:d,args:l.initialArgs,parameters:l.parameters,argTypes:l.argTypes,play:w,run:E,reporting:f,tags:l.tags})}var t5=(e,t,r,n)=>LA(e,t,r,{},n);function r5(e,t,r=t5){let{default:n,__esModule:i,__namedExportsOrder:o,...a}=e,s=n;return Object.entries(a).reduce((p,[l,d])=>{let{story:f,meta:h}=jA(d);return!s&&h&&(s=h),Sl(l,s)?Object.assign(p,{[l]:r(f,s,t,l)}):p},{})}function n5(e){return e.extend({mount:async({mount:t,page:r},n)=>{await n(async(i,...o)=>{if(!("__pw_type"in i)||"__pw_type"in i&&i.__pw_type!=="jsx")throw new Error(We`
|
|
887
|
+
Portable stories in Playwright CT only work when referencing JSX elements.
|
|
888
|
+
Please use JSX format for your components such as:
|
|
889
|
+
|
|
890
|
+
instead of:
|
|
891
|
+
await mount(MyComponent, { props: { foo: 'bar' } })
|
|
892
|
+
|
|
893
|
+
do:
|
|
894
|
+
await mount(<MyComponent foo="bar"/>)
|
|
895
|
+
|
|
896
|
+
More info: https://storybook.js.org/docs/api/portable-stories/portable-stories-playwright?ref=error
|
|
897
|
+
`);let{props:a,...s}=i;await r.evaluate(async l=>{let d=await globalThis.__pwUnwrapObject?.(l);return("__pw_type"in d?d.type:d)?.load?.()},s);let p=await t(i,...o);return await r.evaluate(async l=>{let d=await globalThis.__pwUnwrapObject?.(l),f="__pw_type"in d?d.type:d,h=document.querySelector("#root");return f?.play?.({canvasElement:h})},s),p})}})}async function i5(e,t){for(let o of[...mn].reverse())await o();if(mn.length=0,!t.canvasElement){let o=document.createElement("div");globalThis?.document?.body?.appendChild(o),t.canvasElement=o,mn.push(()=>{globalThis?.document?.body?.contains(o)&&globalThis?.document?.body?.removeChild(o)})}if(t.loaded=await e.applyLoaders(t),t.abortSignal.aborted)return;mn.push(...(await e.applyBeforeEach(t)).filter(Boolean));let r=e.playFunction,n=e.usesMount;if(n||await t.mount(),t.abortSignal.aborted)return;r&&(n||(t.mount=async()=>{throw new mc({playFunction:r.toString()})}),await r(t));let i;MA()?i=Lp():await Vp(t.abortSignal),await e.applyAfterEach(t),await i?.()}var im=1e3,o5=1e4,VA=class{constructor(e,t,r){this.importFn=t,this.storyIndex=new j6(e),this.projectAnnotations=Za(Di([..._A(),r]));let{initialGlobals:n,globalTypes:i}=this.projectAnnotations;this.args=new B6,this.userGlobals=new k6({globals:n,globalTypes:i}),this.hooks={},this.cleanupCallbacks={},this.processCSFFileWithCache=(0,fu.default)(im)(G6),this.prepareMetaWithCache=(0,fu.default)(im)(OA),this.prepareStoryWithCache=(0,fu.default)(o5)(qp)}setProjectAnnotations(e){this.projectAnnotations=Za(e);let{initialGlobals:t,globalTypes:r}=e;this.userGlobals.set({globals:t,globalTypes:r})}async onStoriesChanged({importFn:e,storyIndex:t}){e&&(this.importFn=e),t&&(this.storyIndex.entries=t.entries),this.cachedCSFFiles&&await this.cacheAllCSFFiles()}async storyIdToEntry(e){return this.storyIndex.storyIdToEntry(e)}async loadCSFFileByStoryId(e){let{importPath:t,title:r}=this.storyIndex.storyIdToEntry(e),n=await this.importFn(t);return this.processCSFFileWithCache(n,t,r)}async loadAllCSFFiles(){let e={};return Object.entries(this.storyIndex.entries).forEach(([t,{importPath:r}])=>{e[r]=t}),(await Promise.all(Object.entries(e).map(async([t,r])=>({importPath:t,csfFile:await this.loadCSFFileByStoryId(r)})))).reduce((t,{importPath:r,csfFile:n})=>(t[r]=n,t),{})}async cacheAllCSFFiles(){this.cachedCSFFiles=await this.loadAllCSFFiles()}preparedMetaFromCSFFile({csfFile:e}){let t=e.meta;return this.prepareMetaWithCache(t,this.projectAnnotations,e.moduleExports.default)}async loadStory({storyId:e}){let t=await this.loadCSFFileByStoryId(e);return this.storyFromCSFFile({storyId:e,csfFile:t})}storyFromCSFFile({storyId:e,csfFile:t}){let r=t.stories[e];if(!r)throw new Xy({storyId:e});let n=t.meta,i=this.prepareStoryWithCache(r,n,t.projectAnnotations??this.projectAnnotations);return this.args.setInitial(i),this.hooks[i.id]=this.hooks[i.id]||new yc,i}componentStoriesFromCSFFile({csfFile:e}){return Object.keys(this.storyIndex.entries).filter(t=>!!e.stories[t]).map(t=>this.storyFromCSFFile({storyId:t,csfFile:e}))}async loadEntry(e){let t=await this.storyIdToEntry(e),r=t.type==="docs"?t.storiesImports:[],[n,...i]=await Promise.all([this.importFn(t.importPath),...r.map(o=>{let a=this.storyIndex.importPathToEntry(o);return this.loadCSFFileByStoryId(a.id)})]);return{entryExports:n,csfFiles:i}}getStoryContext(e,{forceInitialArgs:t=!1}={}){let r=this.userGlobals.get(),{initialGlobals:n}=this.userGlobals,i=new $p;return NA({...e,args:t?e.initialArgs:this.args.get(e.id),initialGlobals:n,globalTypes:this.projectAnnotations.globalTypes,userGlobals:r,reporting:i,globals:{...r,...e.storyGlobals},hooks:this.hooks[e.id]})}addCleanupCallbacks(e,...t){this.cleanupCallbacks[e.id]=(this.cleanupCallbacks[e.id]||[]).concat(t)}async cleanupStory(e){this.hooks[e.id].clean();let t=this.cleanupCallbacks[e.id];if(t)for(let r of[...t].reverse())await r();delete this.cleanupCallbacks[e.id]}extract(e={includeDocsOnly:!1}){let{cachedCSFFiles:t}=this;if(console.log("extract: extracting stories",t),!t)throw new Hy;let r=Object.entries(this.storyIndex.entries).reduce((n,[i,o])=>{if(o.type==="docs")return n;let a=t[o.importPath],s=this.storyFromCSFFile({storyId:i,csfFile:a});return!e.includeDocsOnly&&s.parameters.docsOnly||(n[i]=Object.entries(s).reduce((p,[l,d])=>l==="story"&&o.subtype==="test"?{...p,story:o.parentName}:l==="moduleExport"||typeof d=="function"?p:Array.isArray(d)?Object.assign(p,{[l]:d.slice().sort()}):Object.assign(p,{[l]:d}),{args:s.initialArgs,globals:{...this.userGlobals.initialGlobals,...this.userGlobals.globals,...s.storyGlobals},storyId:o.parent?o.parent:i})),n},{});return console.log("extract: stories",r),r}};function a5(e){return e.startsWith("\\\\?\\")?e:e.replace(/\\/g,"/")}var s5=e=>{if(e.length===0)return e;let t=e[e.length-1],r=t?.replace(/(?:[.](?:story|stories))?([.][^.]+)$/i,"");if(e.length===1)return[r];let 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]};function om(e){return e.flatMap(t=>t.split("/")).filter(Boolean).join("/")}var $A=(e,t,r)=>{let{directory:n,importPathMatcher:i,titlePrefix:o=""}=t||{};typeof e=="number"&&Rt.warn(We`
|
|
898
|
+
CSF Auto-title received a numeric fileName. This typically happens when
|
|
899
|
+
webpack is mis-configured in production mode. To force webpack to produce
|
|
900
|
+
filenames, set optimization.moduleIds = "named" in your webpack config.
|
|
901
|
+
`);let a=a5(String(e));if(i.exec(a)){if(!r){let s=a.replace(n,""),p=om([o,s]).split("/");return p=s5(p),p.join("/")}return o?om([o,r]):r}},u5=(e,t,r)=>{for(let n=0;n<t.length;n+=1){let i=$A(e,t[n],r);if(i)return i}return r||void 0},am=/\s*\/\s*/,l5=(e={})=>(t,r)=>{if(t.title===r.title&&!e.includeNames)return 0;let n=e.method||"configure",i=e.order||[],o=t.title.trim().split(am),a=r.title.trim().split(am);e.includeNames&&(o.push(t.name),a.push(r.name));let s=0;for(;o[s]||a[s];){if(!o[s])return-1;if(!a[s])return 1;let p=o[s],l=a[s];if(p!==l){let f=i.indexOf(p),h=i.indexOf(l),m=i.indexOf("*");return f!==-1||h!==-1?(f===-1&&(m!==-1?f=m:f=i.length),h===-1&&(m!==-1?h=m:h=i.length),f-h):n==="configure"?0:p.localeCompare(l,e.locales?e.locales:void 0,{numeric:!0,sensitivity:"accent"})}let d=i.indexOf(p);d===-1&&(d=i.indexOf("*")),i=d!==-1&&Array.isArray(i[d+1])?i[d+1]:[],s+=1}return 0},c5=(e,t,r)=>{if(t){let n;typeof t=="function"?n=t:n=l5(t),e.sort(n)}else e.sort((n,i)=>r.indexOf(n.importPath)-r.indexOf(i.importPath));return e},p5=(e,t,r)=>{try{return c5(e,t,r)}catch(n){throw new Error(We`
|
|
902
|
+
Error sorting stories with sort parameter ${t}:
|
|
903
|
+
|
|
904
|
+
> ${n.message}
|
|
905
|
+
|
|
906
|
+
Are you using a V6-style sort function in V7 mode?
|
|
907
|
+
|
|
908
|
+
More info: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#v7-style-story-sort
|
|
909
|
+
`)}},Os=new Error("prepareAborted"),{AbortController:sm}=globalThis;function um(e){try{let{name:t="Error",message:r=String(e),stack:n}=e;return{name:t,message:r,stack:n}}catch{return{name:"Error",message:String(e)}}}var Pl=class{constructor(e,t,r,n,i,o,a={autoplay:!0,forceInitialArgs:!1},s){this.channel=e,this.store=t,this.renderToScreen=r,this.callbacks=n,this.id=i,this.viewMode=o,this.renderOptions=a,this.type="story",this.notYetRendered=!0,this.rerenderEnqueued=!1,this.disableKeyListeners=!1,this.teardownRender=()=>{},this.torndown=!1,this.abortController=new sm,this.renderId=Date.now(),s&&(this.story=s,this.phase="preparing")}async runPhase(e,t,r){this.phase=t,this.channel.emit(Un,{newPhase:this.phase,renderId:this.renderId,storyId:this.id}),r&&(await r(),this.checkIfAborted(e))}checkIfAborted(e){return e.aborted&&!["finished","aborted","errored"].includes(this.phase)&&(this.phase="aborted",this.channel.emit(Un,{newPhase:this.phase,renderId:this.renderId,storyId:this.id})),e.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),Os}isEqual(e){return!!(this.id===e.id&&this.story&&this.story===e.story)}isPreparing(){return["preparing"].includes(this.phase)}isPending(){return["loading","beforeEach","rendering","playing","afterEach"].includes(this.phase)}async renderToElement(e){return this.canvasElement=e,this.render({initial:!0,forceRemount:!0})}storyContext(){if(!this.story)throw new Error("Cannot call storyContext before preparing");let{forceInitialArgs:e}=this.renderOptions;return this.store.getStoryContext(this.story,{forceInitialArgs:e})}async render({initial:e=!1,forceRemount:t=!1}={}){let{canvasElement:r}=this;if(!this.story)throw new Error("cannot render when not prepared");let n=this.story;if(!r)throw new Error("cannot render when canvasElement is unset");let{id:i,componentId:o,title:a,name:s,tags:p,applyLoaders:l,applyBeforeEach:d,applyAfterEach:f,unboundStoryFn:h,playFunction:m,runStep:b}=n;t&&!e&&(this.cancelRender(),this.abortController=new sm);let E=this.abortController.signal,w=!1,A=n.usesMount;try{let S={...this.storyContext(),viewMode:this.viewMode,abortSignal:E,canvasElement:r,loaded:{},step:(G,L)=>b(G,L,S),context:null,canvas:{},userEvent:{},renderToCanvas:async()=>{let G=await this.renderToScreen(k,r);this.teardownRender=G||(()=>{}),w=!0},mount:async(...G)=>{this.callbacks.showStoryDuringRender?.();let L=null;return await this.runPhase(E,"rendering",async()=>{L=await n.mount(S)(...G)}),A&&await this.runPhase(E,"playing"),L}};S.context=S;let k={componentId:o,title:a,kind:a,id:i,name:s,story:s,tags:p,...this.callbacks,showError:G=>(this.phase="errored",this.callbacks.showError(G)),showException:G=>(this.phase="errored",this.callbacks.showException(G)),forceRemount:t||this.notYetRendered,storyContext:S,storyFn:()=>h(S),unboundStoryFn:h};if(await this.runPhase(E,"loading",async()=>{S.loaded=await l(S)}),E.aborted)return;let O=await d(S);if(this.store.addCleanupCallbacks(n,...O),this.checkIfAborted(E)||(!w&&!A&&await S.mount(),this.notYetRendered=!1,E.aborted))return;let R=this.story.parameters?.test?.dangerouslyIgnoreUnhandledErrors===!0,y=new Set,T=G=>{G.error&&y.add(G.error)},_=G=>{G.reason&&y.add(G.reason)};if(this.renderOptions.autoplay&&t&&m&&this.phase!=="errored"){window?.addEventListener?.("error",T),window?.addEventListener?.("unhandledrejection",_),this.disableKeyListeners=!0;try{if(A?await m(S):(S.mount=async()=>{throw new mc({playFunction:m.toString()})},await this.runPhase(E,"playing",async()=>m(S))),!w)throw new eg;this.checkIfAborted(E),!R&&y.size>0?await this.runPhase(E,"errored"):await this.runPhase(E,"played")}catch(G){if(this.callbacks.showStoryDuringRender?.(),await this.runPhase(E,"errored",async()=>{this.channel.emit(zm,um(G))}),this.story.parameters.throwPlayFunctionExceptions!==!1)throw G;console.error(G)}if(!R&&y.size>0&&this.channel.emit(Wm,Array.from(y).map(um)),this.disableKeyListeners=!1,window?.removeEventListener?.("unhandledrejection",_),window?.removeEventListener?.("error",T),E.aborted)return}await this.runPhase(E,"completing",async()=>{MA()?this.store.addCleanupCallbacks(n,Lp()):await Vp(E)}),await this.runPhase(E,"completed",async()=>{this.channel.emit(Ra,i)}),this.phase!=="errored"&&await this.runPhase(E,"afterEach",async()=>{await f(S)});let D=!R&&y.size>0,J=S.reporting.reports.some(G=>G.status==="failed"),M=D||J;await this.runPhase(E,"finished",async()=>this.channel.emit(Su,{storyId:i,status:M?"error":"success",reporters:S.reporting.reports}))}catch(S){this.phase="errored",this.callbacks.showException(S),await this.runPhase(E,"finished",async()=>this.channel.emit(Su,{storyId:i,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 e=0;e<3;e+=1){if(!this.isPending()){await this.teardownRender();return}await new Promise(t=>setTimeout(t,0))}window?.location?.reload?.(),await new Promise(()=>{})}},{fetch:d5}=we,f5="./index.json",UA=class{constructor(e,t,r=yr.getChannel(),n=!0){this.importFn=e,this.getProjectAnnotations=t,this.channel=r,this.storyRenders=[],this.storeInitializationPromise=new Promise((i,o)=>{this.resolveStoreInitializationPromise=i,this.rejectStoreInitializationPromise=o}),n&&this.initialize()}get storyStore(){return new Proxy({},{get:(e,t)=>{if(this.storyStoreValue)return nc("Accessing the Story Store is deprecated and will be removed in 9.0"),this.storyStoreValue[t];throw new Qy}})}async initialize(){this.setupListeners();try{let e=await this.getProjectAnnotationsOrRenderError();await this.runBeforeAllHook(e),await this.initializeWithProjectAnnotations(e);let t=globalThis?.navigator?.userAgent;await this.channel.emit(Km,{userAgent:t})}catch(e){this.rejectStoreInitializationPromise(e)}}ready(){return this.storeInitializationPromise}setupListeners(){this.channel.on(ry,this.onStoryIndexChanged.bind(this)),this.channel.on(tc,this.onUpdateGlobals.bind(this)),this.channel.on(rc,this.onUpdateArgs.bind(this)),this.channel.on(cy,this.onRequestArgTypesInfo.bind(this)),this.channel.on(Zl,this.onResetArgs.bind(this)),this.channel.on(Ql,this.onForceReRender.bind(this)),this.channel.on(Da,this.onForceRemount.bind(this)),this.channel.on(sy,this.onStoryHotUpdated.bind(this))}async getProjectAnnotationsOrRenderError(){try{let e=await this.getProjectAnnotations();if(this.renderToCanvas=e.renderToCanvas,!this.renderToCanvas)throw new Gy;return e}catch(e){throw this.renderPreviewEntryError("Error reading preview.js:",e),e}}async initializeWithProjectAnnotations(e){this.projectAnnotationsBeforeInitialization=e;try{let t=await this.getStoryIndexFromServer();return this.initializeWithStoryIndex(t)}catch(t){throw this.renderPreviewEntryError("Error loading story index:",t),t}}async runBeforeAllHook(e){try{await this.beforeAllCleanup?.(),this.beforeAllCleanup=await e.beforeAll?.()}catch(t){throw this.renderPreviewEntryError("Error in beforeAll hook:",t),t}}async getStoryIndexFromServer(){let e=await d5(f5);if(e.status===200)return e.json();throw new zy({text:await e.text()})}initializeWithStoryIndex(e){if(!this.projectAnnotationsBeforeInitialization)throw new Error("Cannot call initializeWithStoryIndex until project annotations resolve");this.storyStoreValue=new VA(e,this.importFn,this.projectAnnotationsBeforeInitialization),delete this.projectAnnotationsBeforeInitialization,this.setInitialGlobals(),this.resolveStoreInitializationPromise()}async setInitialGlobals(){this.emitGlobals()}emitGlobals(){if(!this.storyStoreValue)throw new ar({methodName:"emitGlobals"});let e={globals:this.storyStoreValue.userGlobals.get()||{},globalTypes:this.storyStoreValue.projectAnnotations.globalTypes||{}};this.channel.emit(Qm,e)}async onGetProjectAnnotationsChanged({getProjectAnnotations:e}){delete this.previewEntryError,this.getProjectAnnotations=e;let t=await this.getProjectAnnotationsOrRenderError();if(await this.runBeforeAllHook(t),!this.storyStoreValue){await this.initializeWithProjectAnnotations(t);return}this.storyStoreValue.setProjectAnnotations(t),this.emitGlobals()}async onStoryIndexChanged(){if(delete this.previewEntryError,!(!this.storyStoreValue&&!this.projectAnnotationsBeforeInitialization))try{let e=await this.getStoryIndexFromServer();if(this.projectAnnotationsBeforeInitialization){this.initializeWithStoryIndex(e);return}await this.onStoriesChanged({storyIndex:e})}catch(e){throw this.renderPreviewEntryError("Error loading story index:",e),e}}async onStoriesChanged({importFn:e,storyIndex:t}){if(!this.storyStoreValue)throw new ar({methodName:"onStoriesChanged"});await this.storyStoreValue.onStoriesChanged({importFn:e,storyIndex:t})}async onUpdateGlobals({globals:e,currentStory:t}){if(this.storyStoreValue||await this.storeInitializationPromise,!this.storyStoreValue)throw new ar({methodName:"onUpdateGlobals"});if(this.storyStoreValue.userGlobals.update(e),t){let{initialGlobals:r,storyGlobals:n,userGlobals:i,globals:o}=this.storyStoreValue.getStoryContext(t);this.channel.emit(fo,{initialGlobals:r,userGlobals:i,storyGlobals:n,globals:o})}else{let{initialGlobals:r,globals:n}=this.storyStoreValue.userGlobals;this.channel.emit(fo,{initialGlobals:r,userGlobals:n,storyGlobals:{},globals:n})}await Promise.all(this.storyRenders.map(r=>r.rerender()))}async onUpdateArgs({storyId:e,updatedArgs:t}){if(!this.storyStoreValue)throw new ar({methodName:"onUpdateArgs"});this.storyStoreValue.args.update(e,t),await Promise.all(this.storyRenders.filter(r=>r.id===e&&!r.renderOptions.forceInitialArgs).map(r=>r.story&&r.story.usesMount?r.remount():r.rerender())),this.channel.emit(Zm,{storyId:e,args:this.storyStoreValue.args.get(e)})}async onRequestArgTypesInfo({id:e,payload:t}){try{await this.storeInitializationPromise;let r=await this.storyStoreValue?.loadStory(t);this.channel.emit(xu,{id:e,success:!0,payload:{argTypes:r?.argTypes||{}},error:null})}catch(r){this.channel.emit(xu,{id:e,success:!1,error:r?.message})}}async onResetArgs({storyId:e,argNames:t}){if(!this.storyStoreValue)throw new ar({methodName:"onResetArgs"});let r=this.storyRenders.find(i=>i.id===e)?.story||await this.storyStoreValue.loadStory({storyId:e}),n=(t||[...new Set([...Object.keys(r.initialArgs),...Object.keys(this.storyStoreValue.args.get(e))])]).reduce((i,o)=>(i[o]=r.initialArgs[o],i),{});await this.onUpdateArgs({storyId:e,updatedArgs:n})}async onForceReRender(){await Promise.all(this.storyRenders.map(e=>e.rerender()))}async onForceRemount({storyId:e}){await Promise.all(this.storyRenders.filter(t=>t.id===e).map(t=>t.remount()))}async onStoryHotUpdated(){await Promise.all(this.storyRenders.map(e=>e.cancelPlayFunction()))}renderStoryToElement(e,t,r,n){if(!this.renderToCanvas||!this.storyStoreValue)throw new ar({methodName:"renderStoryToElement"});let i=new Pl(this.channel,this.storyStoreValue,this.renderToCanvas,r,e.id,"docs",n,e);return i.renderToElement(t),this.storyRenders.push(i),async()=>{await this.teardownRender(i)}}async teardownRender(e,{viewModeChanged:t}={}){this.storyRenders=this.storyRenders.filter(r=>r!==e),await e?.teardown?.({viewModeChanged:t})}async loadStory({storyId:e}){if(!this.storyStoreValue)throw new ar({methodName:"loadStory"});return this.storyStoreValue.loadStory({storyId:e})}getStoryContext(e,{forceInitialArgs:t=!1}={}){if(!this.storyStoreValue)throw new ar({methodName:"getStoryContext"});return this.storyStoreValue.getStoryContext(e,{forceInitialArgs:t})}async extract(e){if(!this.storyStoreValue)throw new ar({methodName:"extract"});if(this.previewEntryError)throw this.previewEntryError;return await this.storyStoreValue.cacheAllCSFFiles(),this.storyStoreValue.extract(e)}renderPreviewEntryError(e,t){this.previewEntryError=t,Et.error(e),Et.error(t),this.channel.emit(Hm,t)}},Up=class{constructor(e,t,r,n){this.channel=e,this.store=t,this.renderStoryToElement=r,this.storyIdByName=i=>{let o=this.nameToStoryId.get(i);if(o)return o;throw new Error(`No story found with that name: ${i}`)},this.componentStories=()=>this.componentStoriesValue,this.componentStoriesFromCSFFile=i=>this.store.componentStoriesFromCSFFile({csfFile:i}),this.storyById=i=>{if(!i){if(!this.primaryStory)throw new Error("No primary story defined for docs entry. Did you forget to use `<Meta>`?");return this.primaryStory}let o=this.storyIdToCSFFile.get(i);if(!o)throw new Error(`Called \`storyById\` for story that was never loaded: ${i}`);return this.store.storyFromCSFFile({storyId:i,csfFile:o})},this.getStoryContext=i=>({...this.store.getStoryContext(i),loaded:{},viewMode:"docs"}),this.loadStory=i=>this.store.loadStory({storyId:i}),this.componentStoriesValue=[],this.storyIdToCSFFile=new Map,this.exportToStory=new Map,this.exportsToCSFFile=new Map,this.nameToStoryId=new Map,this.attachedCSFFiles=new Set,n.forEach((i,o)=>{this.referenceCSFFile(i)})}referenceCSFFile(e){this.exportsToCSFFile.set(e.moduleExports,e),this.exportsToCSFFile.set(e.moduleExports.default,e),this.store.componentStoriesFromCSFFile({csfFile:e}).forEach(t=>{let r=e.stories[t.id];this.storyIdToCSFFile.set(r.id,e),this.exportToStory.set(r.moduleExport,t)})}attachCSFFile(e){if(!this.exportsToCSFFile.has(e.moduleExports))throw new Error("Cannot attach a CSF file that has not been referenced");this.attachedCSFFiles.has(e)||(this.attachedCSFFiles.add(e),this.store.componentStoriesFromCSFFile({csfFile:e}).forEach(t=>{this.nameToStoryId.set(t.name,t.id),this.componentStoriesValue.push(t),this.primaryStory||(this.primaryStory=t)}))}referenceMeta(e,t){let r=this.resolveModuleExport(e);if(r.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?");t&&this.attachCSFFile(r.csfFile)}get projectAnnotations(){let{projectAnnotations:e}=this.store;if(!e)throw new Error("Can't get projectAnnotations from DocsContext before they are initialized");return e}resolveAttachedModuleExportType(e){if(e==="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={} />?");let t=Array.from(this.attachedCSFFiles)[0];if(e==="meta")return{type:"meta",csfFile:t};let{component:r}=t.meta;if(!r)throw new Error("Attached CSF file does not defined a component, did you forget to export one?");return{type:"component",component:r}}resolveModuleExport(e){let t=this.exportsToCSFFile.get(e);if(!t&&e&&typeof e=="object"&&"default"in e&&(t=this.exportsToCSFFile.get(e.default)),t)return{type:"meta",csfFile:t};let r=this.exportToStory.get(Mp(e)?e.input:e);return r?{type:"story",story:r}:{type:"component",component:e}}resolveOf(e,t=[]){let r;if(["component","meta","story"].includes(e)){let n=e;r=this.resolveAttachedModuleExportType(n)}else r=this.resolveModuleExport(e);if(t.length&&!t.includes(r.type)){let n=r.type==="component"?"component or unknown":r.type;throw new Error(We`Invalid value passed to the 'of' prop. The value was resolved to a '${n}' type but the only types for this block are: ${t.join(", ")}.
|
|
910
|
+
- Did you pass a component to the 'of' prop when the block only supports a story or a meta?
|
|
911
|
+
- ... or vice versa?
|
|
912
|
+
- 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(r.type){case"component":return{...r,projectAnnotations:this.projectAnnotations};case"meta":return{...r,preparedMeta:this.store.preparedMetaFromCSFFile({csfFile:r.csfFile})};case"story":default:return r}}},lm=class{constructor(e,t,r,n){this.channel=e,this.store=t,this.entry=r,this.callbacks=n,this.type="docs",this.subtype="csf",this.torndown=!1,this.disableKeyListeners=!1,this.preparing=!1,this.id=r.id,this.renderId=Date.now()}isPreparing(){return this.preparing}async prepare(){this.preparing=!0;let{entryExports:e,csfFiles:t=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw Os;let{importPath:r,title:n}=this.entry,i=this.store.processCSFFileWithCache(e,r,n),o=Object.keys(i.stories)[0];this.story=this.store.storyFromCSFFile({storyId:o,csfFile:i}),this.csfFiles=[i,...t],this.preparing=!1}isEqual(e){return!!(this.id===e.id&&this.story&&this.story===e.story)}docsContext(e){if(!this.csfFiles)throw new Error("Cannot render docs before preparing");let t=new Up(this.channel,this.store,e,this.csfFiles);return this.csfFiles.forEach(r=>t.attachCSFFile(r)),t}async renderToElement(e,t){if(!this.story||!this.csfFiles)throw new Error("Cannot render docs before preparing");let r=this.docsContext(t),{docs:n}=this.story.parameters||{};if(!n)throw new Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");let i=await n.renderer(),{render:o}=i,a=async()=>{try{await o(r,n,e),this.channel.emit(Xl,this.id)}catch(s){this.callbacks.showException(s)}};return this.rerender=async()=>a(),this.teardownRender=async({viewModeChanged:s})=>{!s||!e||i.unmount(e)},a()}async teardown({viewModeChanged:e}={}){this.teardownRender?.({viewModeChanged:e}),this.torndown=!0}},cm=class{constructor(e,t,r,n){this.channel=e,this.store=t,this.entry=r,this.callbacks=n,this.type="docs",this.subtype="mdx",this.torndown=!1,this.disableKeyListeners=!1,this.preparing=!1,this.id=r.id,this.renderId=Date.now()}isPreparing(){return this.preparing}async prepare(){this.preparing=!0;let{entryExports:e,csfFiles:t=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw Os;this.csfFiles=t,this.exports=e,this.preparing=!1}isEqual(e){return!!(this.id===e.id&&this.exports&&this.exports===e.exports)}docsContext(e){if(!this.csfFiles)throw new Error("Cannot render docs before preparing");return new Up(this.channel,this.store,e,this.csfFiles)}async renderToElement(e,t){if(!this.exports||!this.csfFiles||!this.store.projectAnnotations)throw new Error("Cannot render docs before preparing");let r=this.docsContext(t),{docs:n}=this.store.projectAnnotations.parameters??{};if(!n)throw new Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");let i={...n,page:this.exports.default},o=await n.renderer(),{render:a}=o,s=async()=>{try{await a(r,i,e),this.channel.emit(Xl,this.id)}catch(p){this.callbacks.showException(p)}};return this.rerender=async()=>s(),this.teardownRender=async({viewModeChanged:p}={})=>{!p||!e||(o.unmount(e),this.torndown=!0)},s()}async teardown({viewModeChanged:e}={}){this.teardownRender?.({viewModeChanged:e}),this.torndown=!0}},h5=globalThis;function m5(e){let t=e.composedPath&&e.composedPath()[0]||e.target;return/input|textarea/i.test(t.tagName)||t.getAttribute("contenteditable")!==null}var JA="attached-mdx",y5="unattached-mdx";function g5({tags:e}){return e?.includes(y5)||e?.includes(JA)}function hu(e){return e.type==="story"}function b5(e){return e.type==="docs"}function E5(e){return b5(e)&&e.subtype==="csf"}var HA=class extends UA{constructor(e,t,r,n){super(e,t,void 0,!1),this.importFn=e,this.getProjectAnnotations=t,this.selectionStore=r,this.view=n,this.initialize()}setupListeners(){super.setupListeners(),h5.onkeydown=this.onKeydown.bind(this),this.channel.on(ec,this.onSetCurrentStory.bind(this)),this.channel.on(uy,this.onUpdateQueryParams.bind(this)),this.channel.on(Ym,this.onPreloadStories.bind(this))}async setInitialGlobals(){if(!this.storyStoreValue)throw new ar({methodName:"setInitialGlobals"});let{globals:e}=this.selectionStore.selectionSpecifier||{};e&&this.storyStoreValue.userGlobals.updateFromPersisted(e),this.emitGlobals()}async initializeWithStoryIndex(e){return await super.initializeWithStoryIndex(e),this.selectSpecifiedStory()}async selectSpecifiedStory(){if(!this.storyStoreValue)throw new ar({methodName:"selectSpecifiedStory"});if(this.selectionStore.selection){await this.renderSelection();return}if(!this.selectionStore.selectionSpecifier){this.renderMissingStory();return}let{storySpecifier:e,args:t}=this.selectionStore.selectionSpecifier,r=this.storyStoreValue.storyIndex.entryFromSpecifier(e);if(!r){e==="*"?this.renderStoryLoadingException(e,new Yy):this.renderStoryLoadingException(e,new Ky({storySpecifier:e.toString()}));return}let{id:n,type:i}=r;this.selectionStore.setSelection({storyId:n,viewMode:i}),this.channel.emit(iy,this.selectionStore.selection),this.channel.emit(_u,this.selectionStore.selection),await this.renderSelection({persistedArgs:t})}async onGetProjectAnnotationsChanged({getProjectAnnotations:e}){await super.onGetProjectAnnotationsChanged({getProjectAnnotations:e}),this.selectionStore.selection&&this.renderSelection()}async onStoriesChanged({importFn:e,storyIndex:t}){await super.onStoriesChanged({importFn:e,storyIndex:t}),this.selectionStore.selection?await this.renderSelection():await this.selectSpecifiedStory()}onKeydown(e){if(!this.storyRenders.find(t=>t.disableKeyListeners)&&!m5(e)){let{altKey:t,ctrlKey:r,metaKey:n,shiftKey:i,key:o,code:a,keyCode:s}=e;this.channel.emit(Xm,{event:{altKey:t,ctrlKey:r,metaKey:n,shiftKey:i,key:o,code:a,keyCode:s}})}}async onSetCurrentStory(e){this.selectionStore.setSelection({viewMode:"story",...e}),await this.storeInitializationPromise,this.channel.emit(_u,this.selectionStore.selection),this.renderSelection()}onUpdateQueryParams(e){this.selectionStore.setQueryParams(e)}async onUpdateGlobals({globals:e}){let t=this.currentRender instanceof Pl&&this.currentRender.story||void 0;super.onUpdateGlobals({globals:e,currentStory:t}),(this.currentRender instanceof cm||this.currentRender instanceof lm)&&await this.currentRender.rerender?.()}async onUpdateArgs({storyId:e,updatedArgs:t}){super.onUpdateArgs({storyId:e,updatedArgs:t})}async onPreloadStories({ids:e}){await this.storeInitializationPromise,this.storyStoreValue&&await Promise.allSettled(e.map(t=>this.storyStoreValue?.loadEntry(t)))}async renderSelection({persistedArgs:e}={}){let{renderToCanvas:t}=this;if(!this.storyStoreValue||!t)throw new ar({methodName:"renderSelection"});let{selection:r}=this.selectionStore;if(!r)throw new Error("Cannot call renderSelection as no selection was made");let{storyId:n}=r,i;try{i=await this.storyStoreValue.storyIdToEntry(n)}catch(f){this.currentRender&&await this.teardownRender(this.currentRender),this.renderStoryLoadingException(n,f);return}let o=this.currentSelection?.storyId!==n,a=this.currentRender?.type!==i.type;i.type==="story"?this.view.showPreparingStory({immediate:a}):this.view.showPreparingDocs({immediate:a}),this.currentRender?.isPreparing()&&await this.teardownRender(this.currentRender);let s;i.type==="story"?s=new Pl(this.channel,this.storyStoreValue,t,this.mainStoryCallbacks(n),n,"story"):g5(i)?s=new cm(this.channel,this.storyStoreValue,i,this.mainStoryCallbacks(n)):s=new lm(this.channel,this.storyStoreValue,i,this.mainStoryCallbacks(n));let p=this.currentSelection;this.currentSelection=r;let l=this.currentRender;this.currentRender=s;try{await s.prepare()}catch(f){l&&await this.teardownRender(l),f!==Os&&this.renderStoryLoadingException(n,f);return}let d=!o&&l&&!s.isEqual(l);if(e&&hu(s)&&(Yr(!!s.story),this.storyStoreValue.args.updateFromPersisted(s.story,e)),l&&!l.torndown&&!o&&!d&&!a){this.currentRender=l,this.channel.emit(ay,n),this.view.showMain();return}if(l&&await this.teardownRender(l,{viewModeChanged:a}),p&&(o||a)&&this.channel.emit(ey,n),hu(s)){Yr(!!s.story);let{parameters:f,initialArgs:h,argTypes:m,unmappedArgs:b,initialGlobals:E,userGlobals:w,storyGlobals:A,globals:S}=this.storyStoreValue.getStoryContext(s.story);this.channel.emit(ny,{id:n,parameters:f,initialArgs:h,argTypes:m,args:b}),this.channel.emit(fo,{userGlobals:w,storyGlobals:A,globals:S,initialGlobals:E})}else{let{parameters:f}=this.storyStoreValue.projectAnnotations,{initialGlobals:h,globals:m}=this.storyStoreValue.userGlobals;if(this.channel.emit(fo,{globals:m,initialGlobals:h,storyGlobals:{},userGlobals:m}),E5(s)||s.entry.tags?.includes(JA)){if(!s.csfFiles)throw new Wy({storyId:n});({parameters:f}=this.storyStoreValue.preparedMetaFromCSFFile({csfFile:s.csfFiles[0]}))}this.channel.emit(Gm,{id:n,parameters:f})}hu(s)?(Yr(!!s.story),this.storyRenders.push(s),this.currentRender.renderToElement(this.view.prepareForStory(s.story))):this.currentRender.renderToElement(this.view.prepareForDocs(),this.renderStoryToElement.bind(this))}async teardownRender(e,{viewModeChanged:t=!1}={}){this.storyRenders=this.storyRenders.filter(r=>r!==e),await e?.teardown?.({viewModeChanged:t})}mainStoryCallbacks(e){return{showStoryDuringRender:()=>this.view.showStoryDuringRender(),showMain:()=>this.view.showMain(),showError:t=>this.renderError(e,t),showException:t=>this.renderException(e,t)}}renderPreviewEntryError(e,t){super.renderPreviewEntryError(e,t),this.view.showErrorDisplay(t)}renderMissingStory(){this.view.showNoPreview(),this.channel.emit(Tu)}renderStoryLoadingException(e,t){Et.error(t),this.view.showErrorDisplay(t),this.channel.emit(Tu,e)}renderException(e,t){let{name:r="Error",message:n=String(t),stack:i}=t,o=this.currentRender?.renderId;this.channel.emit(oy,{name:r,message:n,stack:i}),this.channel.emit(Un,{newPhase:"errored",renderId:o,storyId:e}),this.view.showErrorDisplay(t),Et.error(`Error rendering story '${e}':`),Et.error(t)}renderError(e,{title:t,description:r}){let n=this.currentRender?.renderId;this.channel.emit(ty,{title:t,description:r}),this.channel.emit(Un,{newPhase:"errored",renderId:n,storyId:e}),this.view.showErrorDisplay({message:t,stack:r}),Et.error(`Error rendering story ${t}: ${r}`)}},Ol=It(Wl(),1),v5=It(Wl(),1),pm=/^[a-zA-Z0-9 _-]*$/,GA=/^-?[0-9]+(\.[0-9]+)?$/,A5=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,zA=/^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,Fl=(e="",t)=>e===null||e===""||!pm.test(e)?!1:t==null||t instanceof Date||typeof t=="number"||typeof t=="boolean"?!0:typeof t=="string"?pm.test(t)||GA.test(t)||A5.test(t)||zA.test(t):Array.isArray(t)?t.every(r=>Fl(e,r)):Nr(t)?Object.entries(t).every(([r,n])=>Fl(r,n)):!1,w5={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)}`;let t=e.slice(1).match(zA);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 GA.test(e)?Number(e):e}},dm=e=>{let t=e.split(";").map(r=>r.replace("=","~").replace(":","="));return Object.entries((0,v5.parse)(t.join(";"),w5)).reduce((r,[n,i])=>Fl(n,i)?Object.assign(r,{[n]:i}):(Rt.warn(We`
|
|
913
|
+
Omitted potentially unsafe URL args.
|
|
914
|
+
|
|
915
|
+
More info: https://storybook.js.org/docs/writing-stories/args#setting-args-through-the-url?ref=error
|
|
916
|
+
`),r),{})},{history:WA,document:An}=we;function C5(e){let t=(e||"").match(/^\/story\/(.+)/);if(!t)throw new Error(`Invalid path '${e}', must start with '/story/'`);return t[1]}var YA=({selection:e,extraParams:t})=>{let r=An?.location.search.slice(1),{path:n,selectedKind:i,selectedStory:o,...a}=(0,Ol.parse)(r);return`?${(0,Ol.stringify)({...a,...t,...e&&{id:e.storyId,viewMode:e.viewMode}})}`},_5=e=>{if(!e)return;let t=YA({selection:e}),{hash:r=""}=An.location;An.title=e.storyId,WA.replaceState({},"",`${An.location.pathname}${t}${r}`)},T5=e=>e!=null&&typeof e=="object"&&Array.isArray(e)===!1,lo=e=>{if(e!==void 0){if(typeof e=="string")return e;if(Array.isArray(e))return lo(e[0]);if(T5(e))return lo(Object.values(e).filter(Boolean))}},S5=()=>{if(typeof An<"u"){let e=An.location.search.slice(1),t=(0,Ol.parse)(e),r=typeof t.args=="string"?dm(t.args):void 0,n=typeof t.globals=="string"?dm(t.globals):void 0,i=lo(t.viewMode);if(typeof i!="string"||!i)i="story";else if(!i.match(/docs|story/))return null;let o=lo(t.path),a=o?C5(o):lo(t.id);if(a)return{storySpecifier:a,args:r,globals:n,viewMode:i}}return null},KA=class{constructor(){this.selectionSpecifier=S5()}setSelection(e){this.selection=e,_5(this.selection)}setQueryParams(e){let t=YA({extraParams:e}),{hash:r=""}=An.location;WA.replaceState({},"",`${An.location.pathname}${t}${r}`)}},x5=It(mS(),1),D5=It(Wl(),1),{document:Gt}=we,fm=100,XA=(e=>(e.MAIN="MAIN",e.NOPREVIEW="NOPREVIEW",e.PREPARING_STORY="PREPARING_STORY",e.PREPARING_DOCS="PREPARING_DOCS",e.ERROR="ERROR",e))(XA||{}),mu={PREPARING_STORY:"sb-show-preparing-story",PREPARING_DOCS:"sb-show-preparing-docs",MAIN:"sb-show-main",NOPREVIEW:"sb-show-nopreview",ERROR:"sb-show-errordisplay"},yu={centered:"sb-main-centered",fullscreen:"sb-main-fullscreen",padded:"sb-main-padded"},hm=new x5.default({escapeXML:!0}),QA=class{constructor(){if(this.testing=!1,typeof Gt<"u"){let{__SPECIAL_TEST_PARAMETER__:e}=(0,D5.parse)(Gt.location.search.slice(1));switch(e){case"preparing-story":{this.showPreparingStory(),this.testing=!0;break}case"preparing-docs":{this.showPreparingDocs(),this.testing=!0;break}}}}prepareForStory(e){return this.showStory(),this.applyLayout(e.parameters.layout),Gt.documentElement.scrollTop=0,Gt.documentElement.scrollLeft=0,this.storyRoot()}storyRoot(){return Gt.getElementById("storybook-root")}prepareForDocs(){return this.showMain(),this.showDocs(),this.applyLayout("fullscreen"),Gt.documentElement.scrollTop=0,Gt.documentElement.scrollLeft=0,this.docsRoot()}docsRoot(){return Gt.getElementById("storybook-docs")}applyLayout(e="padded"){if(e==="none"){Gt.body.classList.remove(this.currentLayoutClass),this.currentLayoutClass=null;return}this.checkIfLayoutExists(e);let t=yu[e];Gt.body.classList.remove(this.currentLayoutClass),Gt.body.classList.add(t),this.currentLayoutClass=t}checkIfLayoutExists(e){yu[e]||Et.warn(We`
|
|
917
|
+
The desired layout: ${e} is not a valid option.
|
|
918
|
+
The possible options are: ${Object.keys(yu).join(", ")}, none.
|
|
919
|
+
`)}showMode(e){clearTimeout(this.preparingTimeout),Object.keys(XA).forEach(t=>{t===e?Gt.body.classList.add(mu[t]):Gt.body.classList.remove(mu[t])})}showErrorDisplay({message:e="",stack:t=""}){let r=e,n=t,i=e.split(`
|
|
920
|
+
`);i.length>1&&([r]=i,n=i.slice(1).join(`
|
|
921
|
+
`).replace(/^\n/,"")),Gt.getElementById("error-message").innerHTML=hm.toHtml(r),Gt.getElementById("error-stack").innerHTML=hm.toHtml(n),this.showMode("ERROR")}showNoPreview(){this.testing||(this.showMode("NOPREVIEW"),this.storyRoot()?.setAttribute("hidden","true"),this.docsRoot()?.setAttribute("hidden","true"))}showPreparingStory({immediate:e=!1}={}){clearTimeout(this.preparingTimeout),e?this.showMode("PREPARING_STORY"):this.preparingTimeout=setTimeout(()=>this.showMode("PREPARING_STORY"),fm)}showPreparingDocs({immediate:e=!1}={}){clearTimeout(this.preparingTimeout),e?this.showMode("PREPARING_DOCS"):this.preparingTimeout=setTimeout(()=>this.showMode("PREPARING_DOCS"),fm)}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(){Gt.body.classList.add(mu.MAIN)}},R5=class extends HA{constructor(t,r){super(t,r,new KA,new QA),this.importFn=t,this.getProjectAnnotations=r,we.__STORYBOOK_PREVIEW__=this}},{document:$n}=we,P5=["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"],O5="script",mm="scripts-root";function Nl(){let e=$n.createEvent("Event");e.initEvent("DOMContentLoaded",!0,!0),$n.dispatchEvent(e)}function F5(e,t,r){let n=$n.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):$n.head.appendChild(n),e.parentNode.removeChild(e),e.src||t()}function ZA(e,t,r=0){e[r](()=>{r++,r===e.length?t():ZA(e,t,r)})}function N5(e){let t=$n.getElementById(mm);t?t.innerHTML="":(t=$n.createElement("div"),t.id=mm,$n.body.appendChild(t));let r=Array.from(e.querySelectorAll(O5));if(r.length){let n=[];r.forEach(i=>{let o=i.getAttribute("type");(!o||P5.includes(o))&&n.push(a=>F5(i,a,t))}),n.length&&ZA(n,Nl,void 0)}else Nl()}var gu;(function(e){e.start="/**",e.nostart="/***",e.delim="*",e.end="*/"})(gu=gu||(gu={}));var I5=It(yS(),1),Zn=(0,I5.stringifyRules)(),B5=Zn.JsdocTypeObject;Zn.JsdocTypeAny=()=>"any";Zn.JsdocTypeObject=(e,t)=>`(${B5(e,t)})`;Zn.JsdocTypeOptional=(e,t)=>t(e.element);Zn.JsdocTypeNullable=(e,t)=>t(e.element);Zn.JsdocTypeNotNullable=(e,t)=>t(e.element);Zn.JsdocTypeUnion=(e,t)=>e.elements.map(t).join("|");var k5="storybook/docs",M5=`${k5}/snippet-rendered`;async function q5(e,t){let r=t.parameters?.docs?.source?.transform,{id:n,unmappedArgs:i}=t,o=r&&e?r?.(e,t):e,a=o?await o:void 0;yr.getChannel().emit(M5,{id:n,source:a,args:i})}var No={depth:10,clearOnStoryChange:!0,limit:50},j5=(e={})=>{Object.assign(No,e)},ew=(e,t)=>{let r=Object.getPrototypeOf(e);return!r||t(r)?r:ew(r,t)},L5=e=>!!(typeof e=="object"&&e&&ew(e,t=>/^Synthetic(?:Base)?Event$/.test(t.constructor.name))&&typeof e.persist=="function"),V5=e=>{if(L5(e)){let t=Object.create(e.constructor.prototype,Object.getOwnPropertyDescriptors(e));t.persist();let 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};function Wo(e,t={}){let r={...No,...t},n=function(...i){if(t.implicit){let f=("__STORYBOOK_PREVIEW__"in we?we.__STORYBOOK_PREVIEW__:void 0)?.storyRenders.find(h=>h.phase==="playing"||h.phase==="rendering");if(f){let h=!globalThis?.FEATURES?.disallowImplicitActionsInRenderV8,m=new Jy({phase:f.phase,name:e,deprecated:h});if(h)console.warn(m);else throw m}}let o=yr.getChannel(),a=Date.now().toString(36)+Math.random().toString(36).substring(2),s=5,p=i.map(V5),l=i.length>1?p:p[0],d={id:a,count:0,data:{name:e,args:l},options:{...r,maxDepth:s+(r.depth||3)}};o.emit(cg,d)};return n.isAction=!0,n.implicit=t.implicit,n}var $5=(...e)=>{let t=No,r=e;r.length===1&&Array.isArray(r[0])&&([r]=r),r.length!==1&&typeof r[r.length-1]!="string"&&(t={...No,...r.pop()});let n=r[0];(r.length!==1||typeof n=="string")&&(n={},r.forEach(o=>{n[o]=o}));let i={};return Object.keys(n).forEach(o=>{i[o]=Wo(n[o],t)}),i},U5={"@storybook/global":py,"storybook/test":Ag,"storybook/actions":lg,"storybook/preview-api":Ru,"storybook/internal/channels":fy,"storybook/internal/client-logger":hy,"storybook/internal/core-events":Yl,"storybook/internal/types":tg,"storybook/internal/preview-errors":Ly,"storybook/internal/preview-api":Ru};async function J5(){let e=new URL(window.location.href);if(e.searchParams.get("navigator")!=="true"||globalThis.__STORYBOOK_PREVIEW_NAVIGATOR__)return;globalThis.__STORYBOOK_PREVIEW_NAVIGATOR__=!0;let t=await(await fetch("/index.json")).json(),r=e.searchParams.get("id");if(!r){let 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}H5(t,r)}var H5=async(e,t)=>{let r={entries:{}};for(let s of Object.values(e.entries)){let p=s.title.split("/"),l=r;for(let d of p)l.entries||(l.entries={}),l.entries[d]?t===s.id&&(l.entries[d].isActive=!0):l.entries[d]={title:d,isActive:t===s.id,entries:{}},l=l.entries[d];l.entries||(l.entries={}),l.entries[s.name]={id:s.id,name:s.name,href:`?id=${s.id}&viewMode=${s.type}&navigator=true`,isActive:t===s.id}}let n=s=>{if("entries"in s&&"title"in s){let l=s;return`
|
|
922
|
+
<li class="sb-navigator-branch">
|
|
923
|
+
<details${l.isActive?" open":""}>
|
|
924
|
+
<summary class="sb-navigator-title">
|
|
925
|
+
${l.title}
|
|
926
|
+
</summary>
|
|
927
|
+
<ul class="sb-navigator-entries" aria-label="${l.title}">
|
|
928
|
+
${Object.values(l.entries).map(n).join("")}
|
|
929
|
+
</ul>
|
|
930
|
+
</details>
|
|
931
|
+
</li>
|
|
932
|
+
`}let p=s;return`
|
|
933
|
+
<li class="sb-navigator-story-item">
|
|
934
|
+
<a href="${p.href}"
|
|
935
|
+
class="sb-navigator-story-link${p.isActive?" active":""}"
|
|
936
|
+
aria-current="${p.isActive?"location":"false"}">${p.name}</a>
|
|
937
|
+
</li>
|
|
938
|
+
`},i=Object.values(r.entries).map(n).join(""),o=document.createElement("nav");o.id="sb-navigator-container",o.setAttribute("role","navigation"),o.setAttribute("aria-label","Story navigation"),o.innerHTML=`
|
|
939
|
+
<ul class="sb-navigator-list">${i}</ul>
|
|
940
|
+
`,document.body.insertBefore(o,document.body.firstChild);let 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: hsl(212 100 46);
|
|
1008
|
+
}
|
|
1009
|
+
`,document.head.appendChild(a),o.querySelector(".sb-navigator-story-link.active")?.closest("details")?.scrollIntoView({block:"center"})},G5=It(gS(),1),bu;function z5(){return bu||(bu=new G5.default(we.navigator?.userAgent).getBrowserInfo()),bu}function W5(e){return e.browserInfo=z5(),e}function Y5(e){let t=e.error||e;t.fromStorybook&&we.sendTelemetryError(t)}function K5({reason:e}){e.fromStorybook&&we.sendTelemetryError(e)}function tw(){JS.forEach(e=>{we[dy[e]]=U5[e]}),we.sendTelemetryError=e=>{we.__STORYBOOK_ADDONS_CHANNEL__.emit(ly,W5(e))},we.addEventListener("error",Y5),we.addEventListener("unhandledrejection",K5),J5()}tw();const{createBrowserChannel:X5}=__STORYBOOK_MODULE_CHANNELS__,{addons:Q5}=__STORYBOOK_MODULE_PREVIEW_API__,Jp=X5({page:"preview"});Q5.setChannel(Jp);window.__STORYBOOK_ADDONS_CHANNEL__=Jp;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=Jp);var Z5=Object.create,rw=Object.defineProperty,e9=Object.getOwnPropertyDescriptor,nw=Object.getOwnPropertyNames,t9=Object.getPrototypeOf,r9=Object.prototype.hasOwnProperty,n9=(e,t)=>function(){return t||(0,e[nw(e)[0]])((t={exports:{}}).exports,t),t.exports},i9=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of nw(t))!r9.call(e,i)&&i!==r&&rw(e,i,{get:()=>t[i],enumerable:!(n=e9(t,i))||n.enumerable});return e},o9=(e,t,r)=>(r=e!=null?Z5(t9(e)):{},i9(rw(r,"default",{value:e,enumerable:!0}),e));function Eu(e){if(!e||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype||Object.getPrototypeOf(t)===null?Object.prototype.toString.call(e)==="[object Object]":!1}function a9(e,t){let r={},n=Object.keys(e);for(let i=0;i<n.length;i++){let o=n[i],a=e[o];r[o]=t(a,o,e)}return r}var s9=n9({"../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(u){return u.text!==void 0&&u.text!==""?`'${u.type}' with value '${u.text}'`:`'${u.type}'`}class i extends Error{constructor(g){super(`No parslet found for token: ${n(g)}`),this.token=g,Object.setPrototypeOf(this,i.prototype)}getToken(){return this.token}}class o extends Error{constructor(g){super(`The parsing ended early. The next token was: ${n(g)}`),this.token=g,Object.setPrototypeOf(this,o.prototype)}getToken(){return this.token}}class a extends Error{constructor(g,x){let q=`Unexpected type: '${g.type}'.`;x!==void 0&&(q+=` Message: ${x}`),super(q),Object.setPrototypeOf(this,a.prototype)}}function s(u){return g=>g.startsWith(u)?{type:u,text:u}:null}function p(u){let g=0,x,q=u[0],ee=!1;if(q!=="'"&&q!=='"')return null;for(;g<u.length;){if(g++,x=u[g],!ee&&x===q){g++;break}ee=!ee&&x==="\\"}if(x!==q)throw new Error("Unterminated String");return u.slice(0,g)}let l=new RegExp("[$_\\p{ID_Start}]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}","u"),d=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 f(u){let g=u[0];if(!l.test(g))return null;let x=1;do{if(g=u[x],!d.test(g))break;x++}while(x<u.length);return u.slice(0,x)}let h=/^(NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity))/;function m(u){var g,x;return(x=(g=h.exec(u))===null||g===void 0?void 0:g[0])!==null&&x!==void 0?x:null}let b=u=>{let g=f(u);return g==null?null:{type:"Identifier",text:g}};function E(u){return g=>{if(!g.startsWith(u))return null;let x=g[u.length];return x!==void 0&&d.test(x)?null:{type:u,text:u}}}let w=u=>{let g=p(u);return g==null?null:{type:"StringValue",text:g}},A=u=>u.length>0?null:{type:"EOF",text:""},S=u=>{let g=m(u);return g===null?null:{type:"Number",text:g}},k=[A,s("=>"),s("("),s(")"),s("{"),s("}"),s("["),s("]"),s("|"),s("&"),s("<"),s(">"),s(","),s(";"),s("*"),s("?"),s("!"),s("="),s(":"),s("..."),s("."),s("#"),s("~"),s("/"),s("@"),E("undefined"),E("null"),E("function"),E("this"),E("new"),E("module"),E("event"),E("extends"),E("external"),E("infer"),E("typeof"),E("keyof"),E("readonly"),E("import"),E("is"),E("in"),E("asserts"),S,b,w],O=/^\s*\n\s*/;class R{static create(g){let x=this.read(g);g=x.text;let q=this.read(g);return g=q.text,new R(g,void 0,x.token,q.token)}constructor(g,x,q,ee){this.text="",this.text=g,this.previous=x,this.current=q,this.next=ee}static read(g,x=!1){x=x||O.test(g),g=g.trim();for(let q of k){let ee=q(g);if(ee!==null){let ae=Object.assign(Object.assign({},ee),{startOfLine:x});return g=g.slice(ae.text.length),{text:g,token:ae}}}throw new Error("Unexpected Token "+g)}advance(){let g=R.read(this.text);return new R(g.text,this.current,this.next,g.token)}}function y(u){if(u===void 0)throw new Error("Unexpected undefined");if(u.type==="JsdocTypeKeyValue"||u.type==="JsdocTypeParameterList"||u.type==="JsdocTypeProperty"||u.type==="JsdocTypeReadonlyProperty"||u.type==="JsdocTypeObjectField"||u.type==="JsdocTypeJsdocObjectField"||u.type==="JsdocTypeIndexSignature"||u.type==="JsdocTypeMappedType"||u.type==="JsdocTypeTypeParameter")throw new a(u);return u}function T(u){return u.type==="JsdocTypeKeyValue"?D(u):y(u)}function _(u){return u.type==="JsdocTypeName"?u:D(u)}function D(u){if(u.type!=="JsdocTypeKeyValue")throw new a(u);return u}function J(u){var g;if(u.type==="JsdocTypeVariadic"){if(((g=u.element)===null||g===void 0?void 0:g.type)==="JsdocTypeName")return u;throw new a(u)}if(u.type!=="JsdocTypeNumber"&&u.type!=="JsdocTypeName")throw new a(u);return u}function M(u){if(u.type==="JsdocTypeTuple"||u.type==="JsdocTypeGeneric"&&u.meta.brackets==="square")return u;throw new a(u)}function G(u){return u.type==="JsdocTypeIndexSignature"||u.type==="JsdocTypeMappedType"}var L;(function(u){u[u.ALL=0]="ALL",u[u.PARAMETER_LIST=1]="PARAMETER_LIST",u[u.OBJECT=2]="OBJECT",u[u.KEY_VALUE=3]="KEY_VALUE",u[u.INDEX_BRACKETS=4]="INDEX_BRACKETS",u[u.UNION=5]="UNION",u[u.INTERSECTION=6]="INTERSECTION",u[u.PREFIX=7]="PREFIX",u[u.INFIX=8]="INFIX",u[u.TUPLE=9]="TUPLE",u[u.SYMBOL=10]="SYMBOL",u[u.OPTIONAL=11]="OPTIONAL",u[u.NULLABLE=12]="NULLABLE",u[u.KEY_OF_TYPE_OF=13]="KEY_OF_TYPE_OF",u[u.FUNCTION=14]="FUNCTION",u[u.ARROW=15]="ARROW",u[u.ARRAY_BRACKETS=16]="ARRAY_BRACKETS",u[u.GENERIC=17]="GENERIC",u[u.NAME_PATH=18]="NAME_PATH",u[u.PARENTHESIS=19]="PARENTHESIS",u[u.SPECIAL_TYPES=20]="SPECIAL_TYPES"})(L||(L={}));class I{constructor(g,x,q){this.grammar=g,typeof x=="string"?this._lexer=R.create(x):this._lexer=x,this.baseParser=q}get lexer(){return this._lexer}parse(){let g=this.parseType(L.ALL);if(this.lexer.current.type!=="EOF")throw new o(this.lexer.current);return g}parseType(g){return y(this.parseIntermediateType(g))}parseIntermediateType(g){let x=this.tryParslets(null,g);if(x===null)throw new i(this.lexer.current);return this.parseInfixIntermediateType(x,g)}parseInfixIntermediateType(g,x){let q=this.tryParslets(g,x);for(;q!==null;)g=q,q=this.tryParslets(g,x);return g}tryParslets(g,x){for(let q of this.grammar){let ee=q(this,x,g);if(ee!==null)return ee}return null}consume(g){return Array.isArray(g)||(g=[g]),g.includes(this.lexer.current.type)?(this._lexer=this.lexer.advance(),!0):!1}acceptLexerState(g){this._lexer=g.lexer}}function $(u){return u==="}"||u==="EOF"||u==="|"||u===","||u===")"||u===">"}let Y=(u,g,x)=>{let q=u.lexer.current.type,ee=u.lexer.next.type;return x==null&&q==="?"&&!$(ee)||x!=null&&q==="?"?(u.consume("?"),x==null?{type:"JsdocTypeNullable",element:u.parseType(L.NULLABLE),meta:{position:"prefix"}}:{type:"JsdocTypeNullable",element:y(x),meta:{position:"suffix"}}):null};function X(u){let g=(x,q,ee)=>{let ae=x.lexer.current.type,pe=x.lexer.next.type;if(ee===null){if("parsePrefix"in u&&u.accept(ae,pe))return u.parsePrefix(x)}else if("parseInfix"in u&&u.precedence>q&&u.accept(ae,pe))return u.parseInfix(x,ee);return null};return Object.defineProperty(g,"name",{value:u.name}),g}let oe=X({name:"optionalParslet",accept:u=>u==="=",precedence:L.OPTIONAL,parsePrefix:u=>(u.consume("="),{type:"JsdocTypeOptional",element:u.parseType(L.OPTIONAL),meta:{position:"prefix"}}),parseInfix:(u,g)=>(u.consume("="),{type:"JsdocTypeOptional",element:y(g),meta:{position:"suffix"}})}),ve=X({name:"numberParslet",accept:u=>u==="Number",parsePrefix:u=>{let g=parseFloat(u.lexer.current.text);return u.consume("Number"),{type:"JsdocTypeNumber",value:g}}}),De=X({name:"parenthesisParslet",accept:u=>u==="(",parsePrefix:u=>{if(u.consume("("),u.consume(")"))return{type:"JsdocTypeParameterList",elements:[]};let g=u.parseIntermediateType(L.ALL);if(!u.consume(")"))throw new Error("Unterminated parenthesis");return g.type==="JsdocTypeParameterList"?g:g.type==="JsdocTypeKeyValue"?{type:"JsdocTypeParameterList",elements:[g]}:{type:"JsdocTypeParenthesis",element:y(g)}}}),z=X({name:"specialTypesParslet",accept:(u,g)=>u==="?"&&$(g)||u==="null"||u==="undefined"||u==="*",parsePrefix:u=>{if(u.consume("null"))return{type:"JsdocTypeNull"};if(u.consume("undefined"))return{type:"JsdocTypeUndefined"};if(u.consume("*"))return{type:"JsdocTypeAny"};if(u.consume("?"))return{type:"JsdocTypeUnknown"};throw new Error("Unacceptable token: "+u.lexer.current.text)}}),K=X({name:"notNullableParslet",accept:u=>u==="!",precedence:L.NULLABLE,parsePrefix:u=>(u.consume("!"),{type:"JsdocTypeNotNullable",element:u.parseType(L.NULLABLE),meta:{position:"prefix"}}),parseInfix:(u,g)=>(u.consume("!"),{type:"JsdocTypeNotNullable",element:y(g),meta:{position:"suffix"}})});function be({allowTrailingComma:u}){return X({name:"parameterListParslet",accept:g=>g===",",precedence:L.PARAMETER_LIST,parseInfix:(g,x)=>{let q=[T(x)];g.consume(",");do try{let ee=g.parseIntermediateType(L.PARAMETER_LIST);q.push(T(ee))}catch(ee){if(ee instanceof i)break;throw ee}while(g.consume(","));if(q.length>0&&q.slice(0,-1).some(ee=>ee.type==="JsdocTypeVariadic"))throw new Error("Only the last parameter may be a rest parameter");return{type:"JsdocTypeParameterList",elements:q}}})}let me=X({name:"genericParslet",accept:(u,g)=>u==="<"||u==="."&&g==="<",precedence:L.GENERIC,parseInfix:(u,g)=>{let x=u.consume(".");u.consume("<");let q=[],ee=!1;if(u.consume("infer")){ee=!0;let ae=u.parseIntermediateType(L.SYMBOL);if(ae.type!=="JsdocTypeName")throw new a(ae,"A typescript asserts always has to have a name on the left side.");q.push(ae)}else do q.push(u.parseType(L.PARAMETER_LIST));while(u.consume(","));if(!u.consume(">"))throw new Error("Unterminated generic parameter list");return Object.assign(Object.assign({type:"JsdocTypeGeneric",left:y(g),elements:q},ee?{infer:!0}:{}),{meta:{brackets:"angle",dot:x}})}}),fe=X({name:"unionParslet",accept:u=>u==="|",precedence:L.UNION,parseInfix:(u,g)=>{u.consume("|");let x=[];do x.push(u.parseType(L.UNION));while(u.consume("|"));return{type:"JsdocTypeUnion",elements:[y(g),...x]}}}),se=[Y,oe,ve,De,z,K,be({allowTrailingComma:!0}),me,fe,oe];function Te({allowSquareBracketsOnAnyType:u,allowJsdocNamePaths:g,pathGrammar:x}){return function(q,ee,ae){if(ae==null||ee>=L.NAME_PATH)return null;let pe=q.lexer.current.type,ge=q.lexer.next.type;if(!(pe==="."&&ge!=="<"||pe==="["&&(u||ae.type==="JsdocTypeName")||g&&(pe==="~"||pe==="#")))return null;let ke,ze=!1;q.consume(".")?ke="property":q.consume("[")?(ke="property-brackets",ze=!0):q.consume("~")?ke="inner":(q.consume("#"),ke="instance");let _t=x!==null?new I(x,q.lexer,q):q,pt=_t.parseIntermediateType(L.NAME_PATH);q.acceptLexerState(_t);let rr;switch(pt.type){case"JsdocTypeName":rr={type:"JsdocTypeProperty",value:pt.value,meta:{quote:void 0}};break;case"JsdocTypeNumber":rr={type:"JsdocTypeProperty",value:pt.value.toString(10),meta:{quote:void 0}};break;case"JsdocTypeStringValue":rr={type:"JsdocTypeProperty",value:pt.value,meta:{quote:pt.meta.quote}};break;case"JsdocTypeSpecialNamePath":if(pt.specialType==="event")rr=pt;else throw new a(pt,"Type 'JsdocTypeSpecialNamePath' is only allowed with specialType 'event'");break;default:throw new a(pt,"Expecting 'JsdocTypeName', 'JsdocTypeNumber', 'JsdocStringValue' or 'JsdocTypeSpecialNamePath'")}if(ze&&!q.consume("]")){let Pn=q.lexer.current;throw new Error(`Unterminated square brackets. Next token is '${Pn.type}' with text '${Pn.text}'`)}return{type:"JsdocTypeNamePath",left:y(ae),right:rr,pathType:ke}}}function Oe({allowedAdditionalTokens:u}){return X({name:"nameParslet",accept:g=>g==="Identifier"||g==="this"||g==="new"||u.includes(g),parsePrefix:g=>{let{type:x,text:q}=g.lexer.current;return g.consume(x),{type:"JsdocTypeName",value:q}}})}let Le=X({name:"stringValueParslet",accept:u=>u==="StringValue",parsePrefix:u=>{let g=u.lexer.current.text;return u.consume("StringValue"),{type:"JsdocTypeStringValue",value:g.slice(1,-1),meta:{quote:g[0]==="'"?"single":"double"}}}});function Z({pathGrammar:u,allowedTypes:g}){return X({name:"specialNamePathParslet",accept:x=>g.includes(x),parsePrefix:x=>{let q=x.lexer.current.type;if(x.consume(q),!x.consume(":"))return{type:"JsdocTypeName",value:q};let ee,ae=x.lexer.current;if(x.consume("StringValue"))ee={type:"JsdocTypeSpecialNamePath",value:ae.text.slice(1,-1),specialType:q,meta:{quote:ae.text[0]==="'"?"single":"double"}};else{let ke="",ze=["Identifier","@","/"];for(;ze.some(_t=>x.consume(_t));)ke+=ae.text,ae=x.lexer.current;ee={type:"JsdocTypeSpecialNamePath",value:ke,specialType:q,meta:{quote:void 0}}}let pe=new I(u,x.lexer,x),ge=pe.parseInfixIntermediateType(ee,L.ALL);return x.acceptLexerState(pe),y(ge)}})}let de=[Oe({allowedAdditionalTokens:["external","module"]}),Le,ve,Te({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:null})],Ae=[...de,Z({allowedTypes:["event"],pathGrammar:de})];function xe(u){let g;if(u.type==="JsdocTypeParameterList")g=u.elements;else if(u.type==="JsdocTypeParenthesis")g=[u.element];else throw new a(u);return g.map(x=>T(x))}function Se(u){let g=xe(u);if(g.some(x=>x.type==="JsdocTypeKeyValue"))throw new Error("No parameter should be named");return g}function Re({allowNamedParameters:u,allowNoReturnType:g,allowWithoutParenthesis:x,allowNewAsFunctionKeyword:q}){return X({name:"functionParslet",accept:(ee,ae)=>ee==="function"||q&&ee==="new"&&ae==="(",parsePrefix:ee=>{let ae=ee.consume("new");ee.consume("function");let pe=ee.lexer.current.type==="(";if(!pe){if(!x)throw new Error("function is missing parameter list");return{type:"JsdocTypeName",value:"function"}}let ge={type:"JsdocTypeFunction",parameters:[],arrow:!1,constructor:ae,parenthesis:pe},ke=ee.parseIntermediateType(L.FUNCTION);if(u===void 0)ge.parameters=Se(ke);else{if(ae&&ke.type==="JsdocTypeFunction"&&ke.arrow)return ge=ke,ge.constructor=!0,ge;ge.parameters=xe(ke);for(let ze of ge.parameters)if(ze.type==="JsdocTypeKeyValue"&&!u.includes(ze.key))throw new Error(`only allowed named parameters are ${u.join(", ")} but got ${ze.type}`)}if(ee.consume(":"))ge.returnType=ee.parseType(L.PREFIX);else if(!g)throw new Error("function is missing return type");return ge}})}function Pe({allowPostfix:u,allowEnclosingBrackets:g}){return X({name:"variadicParslet",accept:x=>x==="...",precedence:L.PREFIX,parsePrefix:x=>{x.consume("...");let q=g&&x.consume("[");try{let ee=x.parseType(L.PREFIX);if(q&&!x.consume("]"))throw new Error("Unterminated variadic type. Missing ']'");return{type:"JsdocTypeVariadic",element:y(ee),meta:{position:"prefix",squareBrackets:q}}}catch(ee){if(ee instanceof i){if(q)throw new Error("Empty square brackets for variadic are not allowed.");return{type:"JsdocTypeVariadic",meta:{position:void 0,squareBrackets:!1}}}else throw ee}},parseInfix:u?(x,q)=>(x.consume("..."),{type:"JsdocTypeVariadic",element:y(q),meta:{position:"suffix",squareBrackets:!1}}):void 0})}let Me=X({name:"symbolParslet",accept:u=>u==="(",precedence:L.SYMBOL,parseInfix:(u,g)=>{if(g.type!=="JsdocTypeName")throw new Error("Symbol expects a name on the left side. (Reacting on '(')");u.consume("(");let x={type:"JsdocTypeSymbol",value:g.value};if(!u.consume(")")){let q=u.parseIntermediateType(L.SYMBOL);if(x.element=J(q),!u.consume(")"))throw new Error("Symbol does not end after value")}return x}}),st=X({name:"arrayBracketsParslet",precedence:L.ARRAY_BRACKETS,accept:(u,g)=>u==="["&&g==="]",parseInfix:(u,g)=>(u.consume("["),u.consume("]"),{type:"JsdocTypeGeneric",left:{type:"JsdocTypeName",value:"Array"},elements:[y(g)],meta:{brackets:"square",dot:!1}})});function Ot({objectFieldGrammar:u,allowKeyTypes:g}){return X({name:"objectParslet",accept:x=>x==="{",parsePrefix:x=>{x.consume("{");let q={type:"JsdocTypeObject",meta:{separator:"comma"},elements:[]};if(!x.consume("}")){let ee,ae=new I(u,x.lexer,x);for(;;){ae.acceptLexerState(x);let pe=ae.parseIntermediateType(L.OBJECT);x.acceptLexerState(ae),pe===void 0&&g&&(pe=x.parseIntermediateType(L.OBJECT));let ge=!1;if(pe.type==="JsdocTypeNullable"&&(ge=!0,pe=pe.element),pe.type==="JsdocTypeNumber"||pe.type==="JsdocTypeName"||pe.type==="JsdocTypeStringValue"){let ke;pe.type==="JsdocTypeStringValue"&&(ke=pe.meta.quote),q.elements.push({type:"JsdocTypeObjectField",key:pe.value.toString(),right:void 0,optional:ge,readonly:!1,meta:{quote:ke}})}else if(pe.type==="JsdocTypeObjectField"||pe.type==="JsdocTypeJsdocObjectField")q.elements.push(pe);else throw new a(pe);if(x.lexer.current.startOfLine)ee="linebreak",x.consume(",")||x.consume(";");else if(x.consume(","))ee="comma";else if(x.consume(";"))ee="semicolon";else break;if(x.lexer.current.type==="}")break}if(q.meta.separator=ee??"comma",ee==="linebreak"&&(q.meta.propertyIndent=" "),!x.consume("}"))throw new Error("Unterminated record type. Missing '}'")}return q}})}function Ue({allowSquaredProperties:u,allowKeyTypes:g,allowReadonly:x,allowOptional:q}){return X({name:"objectFieldParslet",precedence:L.KEY_VALUE,accept:ee=>ee===":",parseInfix:(ee,ae)=>{var pe;let ge=!1,ke=!1;q&&ae.type==="JsdocTypeNullable"&&(ge=!0,ae=ae.element),x&&ae.type==="JsdocTypeReadonlyProperty"&&(ke=!0,ae=ae.element);let ze=(pe=ee.baseParser)!==null&&pe!==void 0?pe:ee;if(ze.acceptLexerState(ee),ae.type==="JsdocTypeNumber"||ae.type==="JsdocTypeName"||ae.type==="JsdocTypeStringValue"||G(ae)){if(G(ae)&&!u)throw new a(ae);ze.consume(":");let _t;ae.type==="JsdocTypeStringValue"&&(_t=ae.meta.quote);let pt=ze.parseType(L.KEY_VALUE);return ee.acceptLexerState(ze),{type:"JsdocTypeObjectField",key:G(ae)?ae:ae.value.toString(),right:pt,optional:ge,readonly:ke,meta:{quote:_t}}}else{if(!g)throw new a(ae);ze.consume(":");let _t=ze.parseType(L.KEY_VALUE);return ee.acceptLexerState(ze),{type:"JsdocTypeJsdocObjectField",left:y(ae),right:_t}}}})}function mt({allowOptional:u,allowVariadic:g}){return X({name:"keyValueParslet",precedence:L.KEY_VALUE,accept:x=>x===":",parseInfix:(x,q)=>{let ee=!1,ae=!1;if(u&&q.type==="JsdocTypeNullable"&&(ee=!0,q=q.element),g&&q.type==="JsdocTypeVariadic"&&q.element!==void 0&&(ae=!0,q=q.element),q.type!=="JsdocTypeName")throw new a(q);x.consume(":");let pe=x.parseType(L.KEY_VALUE);return{type:"JsdocTypeKeyValue",key:q.value,right:pe,optional:ee,variadic:ae}}})}let Ye=[...se,Re({allowWithoutParenthesis:!0,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),Le,Z({allowedTypes:["module","external","event"],pathGrammar:Ae}),Pe({allowEnclosingBrackets:!0,allowPostfix:!0}),Oe({allowedAdditionalTokens:["keyof"]}),Me,st,Te({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:Ae})],Zt=[...Ye,Ot({objectFieldGrammar:[Oe({allowedAdditionalTokens:["typeof","module","in"]}),Ue({allowSquaredProperties:!1,allowKeyTypes:!0,allowOptional:!1,allowReadonly:!1}),...Ye],allowKeyTypes:!0}),mt({allowOptional:!0,allowVariadic:!0})],Ft=X({name:"typeOfParslet",accept:u=>u==="typeof",parsePrefix:u=>(u.consume("typeof"),{type:"JsdocTypeTypeof",element:u.parseType(L.KEY_OF_TYPE_OF)})}),ye=[Oe({allowedAdditionalTokens:["typeof","module","keyof","event","external","in"]}),Y,oe,Le,ve,Ue({allowSquaredProperties:!1,allowKeyTypes:!1,allowOptional:!1,allowReadonly:!1})],ct=[...se,Ot({allowKeyTypes:!1,objectFieldGrammar:ye}),Oe({allowedAdditionalTokens:["event","external","in"]}),Ft,Re({allowWithoutParenthesis:!1,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),Pe({allowEnclosingBrackets:!1,allowPostfix:!1}),Oe({allowedAdditionalTokens:["keyof"]}),Z({allowedTypes:["module"],pathGrammar:Ae}),Te({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:Ae}),mt({allowOptional:!1,allowVariadic:!1}),Me],Ie=X({name:"assertsParslet",accept:u=>u==="asserts",parsePrefix:u=>{u.consume("asserts");let g=u.parseIntermediateType(L.SYMBOL);if(g.type!=="JsdocTypeName")throw new a(g,"A typescript asserts always has to have a name on the left side.");return u.consume("is")?{type:"JsdocTypeAsserts",left:g,right:y(u.parseIntermediateType(L.INFIX))}:{type:"JsdocTypeAssertsPlain",element:g}}});function vt({allowQuestionMark:u}){return X({name:"tupleParslet",accept:g=>g==="[",parsePrefix:g=>{g.consume("[");let x={type:"JsdocTypeTuple",elements:[]};if(g.consume("]"))return x;let q=g.parseIntermediateType(L.ALL);if(q.type==="JsdocTypeParameterList"?q.elements[0].type==="JsdocTypeKeyValue"?x.elements=q.elements.map(D):x.elements=q.elements.map(y):q.type==="JsdocTypeKeyValue"?x.elements=[D(q)]:x.elements=[y(q)],!g.consume("]"))throw new Error("Unterminated '['");if(x.elements.some(ee=>ee.type==="JsdocTypeUnknown"))throw new Error("Question mark in tuple not allowed");return x}})}let et=X({name:"keyOfParslet",accept:u=>u==="keyof",parsePrefix:u=>(u.consume("keyof"),{type:"JsdocTypeKeyof",element:y(u.parseType(L.KEY_OF_TYPE_OF))})}),Er=X({name:"importParslet",accept:u=>u==="import",parsePrefix:u=>{if(u.consume("import"),!u.consume("("))throw new Error("Missing parenthesis after import keyword");let g=u.parseType(L.PREFIX);if(g.type!=="JsdocTypeStringValue")throw new Error("Only string values are allowed as paths for imports");if(!u.consume(")"))throw new Error("Missing closing parenthesis after import keyword");return{type:"JsdocTypeImport",element:g}}}),xr=X({name:"readonlyPropertyParslet",accept:u=>u==="readonly",parsePrefix:u=>(u.consume("readonly"),{type:"JsdocTypeReadonlyProperty",element:u.parseIntermediateType(L.KEY_VALUE)})}),yt=X({name:"arrowFunctionParslet",precedence:L.ARROW,accept:u=>u==="=>",parseInfix:(u,g)=>(u.consume("=>"),{type:"JsdocTypeFunction",parameters:xe(g).map(_),arrow:!0,constructor:!1,parenthesis:!0,returnType:u.parseType(L.OBJECT)})}),Be=X({name:"genericArrowFunctionParslet",accept:u=>u==="<",parsePrefix:u=>{let g=[];u.consume("<");do{let q,ee=u.parseIntermediateType(L.SYMBOL);if(ee.type==="JsdocTypeOptional"&&(ee=ee.element,q=u.parseType(L.SYMBOL)),ee.type!=="JsdocTypeName")throw new a(ee);let ae;u.consume("extends")&&(ae=u.parseType(L.SYMBOL),ae.type==="JsdocTypeOptional"&&(ae=ae.element,q=u.parseType(L.SYMBOL)));let pe={type:"JsdocTypeTypeParameter",name:ee};if(ae!==void 0&&(pe.constraint=ae),q!==void 0&&(pe.defaultValue=q),g.push(pe),u.consume(">"))break}while(u.consume(","));let x=u.parseIntermediateType(L.SYMBOL);return x.typeParameters=g,x}}),er=X({name:"intersectionParslet",accept:u=>u==="&",precedence:L.INTERSECTION,parseInfix:(u,g)=>{u.consume("&");let x=[];do x.push(u.parseType(L.INTERSECTION));while(u.consume("&"));return{type:"JsdocTypeIntersection",elements:[y(g),...x]}}}),ot=X({name:"predicateParslet",precedence:L.INFIX,accept:u=>u==="is",parseInfix:(u,g)=>{if(g.type!=="JsdocTypeName")throw new a(g,"A typescript predicate always has to have a name on the left side.");return u.consume("is"),{type:"JsdocTypePredicate",left:g,right:y(u.parseIntermediateType(L.INFIX))}}}),$t=X({name:"objectSquareBracketPropertyParslet",accept:u=>u==="[",parsePrefix:u=>{if(u.baseParser===void 0)throw new Error("Only allowed inside object grammar");u.consume("[");let g=u.lexer.current.text;u.consume("Identifier");let x;if(u.consume(":")){let q=u.baseParser;q.acceptLexerState(u),x={type:"JsdocTypeIndexSignature",key:g,right:q.parseType(L.INDEX_BRACKETS)},u.acceptLexerState(q)}else if(u.consume("in")){let q=u.baseParser;q.acceptLexerState(u),x={type:"JsdocTypeMappedType",key:g,right:q.parseType(L.ARRAY_BRACKETS)},u.acceptLexerState(q)}else throw new Error("Missing ':' or 'in' inside square bracketed property.");if(!u.consume("]"))throw new Error("Unterminated square brackets");return x}}),kr=X({name:"readonlyArrayParslet",accept:u=>u==="readonly",parsePrefix:u=>(u.consume("readonly"),{type:"JsdocTypeReadonlyArray",element:M(u.parseIntermediateType(L.ALL))})}),rt=X({name:"conditionalParslet",precedence:L.INFIX,accept:u=>u==="extends",parseInfix:(u,g)=>{u.consume("extends");let x=u.parseType(L.KEY_OF_TYPE_OF).element,q=u.parseType(L.INFIX);return u.consume(":"),{type:"JsdocTypeConditional",checksType:y(g),extendsType:x,trueType:q,falseType:u.parseType(L.INFIX)}}}),At=[xr,Oe({allowedAdditionalTokens:["typeof","module","keyof","event","external","in"]}),Y,oe,Le,ve,Ue({allowSquaredProperties:!0,allowKeyTypes:!1,allowOptional:!0,allowReadonly:!0}),$t],tr=[...se,Ot({allowKeyTypes:!1,objectFieldGrammar:At}),kr,Ft,et,Er,Le,Re({allowWithoutParenthesis:!0,allowNoReturnType:!1,allowNamedParameters:["this","new","args"],allowNewAsFunctionKeyword:!0}),vt({allowQuestionMark:!1}),Pe({allowEnclosingBrackets:!1,allowPostfix:!1}),Ie,rt,Oe({allowedAdditionalTokens:["event","external","in"]}),Z({allowedTypes:["module"],pathGrammar:Ae}),st,yt,Be,Te({allowSquareBracketsOnAnyType:!0,allowJsdocNamePaths:!1,pathGrammar:Ae}),er,ot,mt({allowVariadic:!0,allowOptional:!0})];function gt(u,g){switch(g){case"closure":return new I(ct,u).parse();case"jsdoc":return new I(Zt,u).parse();case"typescript":return new I(tr,u).parse()}}function nt(u,g=["typescript","closure","jsdoc"]){let x;for(let q of g)try{return gt(u,q)}catch(ee){x=ee}throw x}function Nt(u,g){let x=u[g.type];if(x===void 0)throw new Error(`In this set of transform rules exists no rule for type ${g.type}.`);return x(g,q=>Nt(u,q))}function Ne(u){throw new Error("This transform is not available. Are you trying the correct parsing mode?")}function C(u){let g={params:[]};for(let x of u.parameters)x.type==="JsdocTypeKeyValue"?x.key==="this"?g.this=x.right:x.key==="new"?g.new=x.right:g.params.push(x):g.params.push(x);return g}function B(u,g,x){return u==="prefix"?x+g:g+x}function F(u,g){switch(g){case"double":return`"${u}"`;case"single":return`'${u}'`;case void 0:return u}}function P(){return{JsdocTypeParenthesis:(u,g)=>`(${u.element!==void 0?g(u.element):""})`,JsdocTypeKeyof:(u,g)=>`keyof ${g(u.element)}`,JsdocTypeFunction:(u,g)=>{var x;if(u.arrow){if(u.returnType===void 0)throw new Error("Arrow function needs a return type.");let q=`${u.typeParameters!==void 0?`<${(x=u.typeParameters.map(g).join(", "))!==null&&x!==void 0?x:""}>`:""}(${u.parameters.map(g).join(", ")}) => ${g(u.returnType)}`;return u.constructor&&(q="new "+q),q}else{let q=u.constructor?"new":"function";return u.parenthesis&&(q+=`(${u.parameters.map(g).join(", ")})`,u.returnType!==void 0&&(q+=`: ${g(u.returnType)}`)),q}},JsdocTypeName:u=>u.value,JsdocTypeTuple:(u,g)=>`[${u.elements.map(g).join(", ")}]`,JsdocTypeVariadic:(u,g)=>u.meta.position===void 0?"...":B(u.meta.position,g(u.element),"..."),JsdocTypeNamePath:(u,g)=>{let x=g(u.left),q=g(u.right);switch(u.pathType){case"inner":return`${x}~${q}`;case"instance":return`${x}#${q}`;case"property":return`${x}.${q}`;case"property-brackets":return`${x}[${q}]`}},JsdocTypeStringValue:u=>F(u.value,u.meta.quote),JsdocTypeAny:()=>"*",JsdocTypeGeneric:(u,g)=>{if(u.meta.brackets==="square"){let x=u.elements[0],q=g(x);return x.type==="JsdocTypeUnion"||x.type==="JsdocTypeIntersection"?`(${q})[]`:`${q}[]`}else return`${g(u.left)}${u.meta.dot?".":""}<${u.infer===!0?"infer ":""}${u.elements.map(g).join(", ")}>`},JsdocTypeImport:(u,g)=>`import(${g(u.element)})`,JsdocTypeObjectField:(u,g)=>{let x="";return u.readonly&&(x+="readonly "),typeof u.key=="string"?x+=F(u.key,u.meta.quote):x+=g(u.key),u.optional&&(x+="?"),u.right===void 0?x:x+`: ${g(u.right)}`},JsdocTypeJsdocObjectField:(u,g)=>`${g(u.left)}: ${g(u.right)}`,JsdocTypeKeyValue:(u,g)=>{let x=u.key;return u.optional&&(x+="?"),u.variadic&&(x="..."+x),u.right===void 0?x:x+`: ${g(u.right)}`},JsdocTypeSpecialNamePath:u=>`${u.specialType}:${F(u.value,u.meta.quote)}`,JsdocTypeNotNullable:(u,g)=>B(u.meta.position,g(u.element),"!"),JsdocTypeNull:()=>"null",JsdocTypeNullable:(u,g)=>B(u.meta.position,g(u.element),"?"),JsdocTypeNumber:u=>u.value.toString(),JsdocTypeObject:(u,g)=>{var x,q;return`{${(u.meta.separator==="linebreak"&&u.elements.length>1?`
|
|
1010
|
+
`+((x=u.meta.propertyIndent)!==null&&x!==void 0?x:""):"")+u.elements.map(g).join(u.meta.separator==="comma"?", ":u.meta.separator==="linebreak"?`
|
|
1011
|
+
`+((q=u.meta.propertyIndent)!==null&&q!==void 0?q:""):"; ")+(u.meta.separator==="linebreak"&&u.elements.length>1?`
|
|
1012
|
+
`:"")}}`},JsdocTypeOptional:(u,g)=>B(u.meta.position,g(u.element),"="),JsdocTypeSymbol:(u,g)=>`${u.value}(${u.element!==void 0?g(u.element):""})`,JsdocTypeTypeof:(u,g)=>`typeof ${g(u.element)}`,JsdocTypeUndefined:()=>"undefined",JsdocTypeUnion:(u,g)=>u.elements.map(g).join(" | "),JsdocTypeUnknown:()=>"?",JsdocTypeIntersection:(u,g)=>u.elements.map(g).join(" & "),JsdocTypeProperty:u=>F(u.value,u.meta.quote),JsdocTypePredicate:(u,g)=>`${g(u.left)} is ${g(u.right)}`,JsdocTypeIndexSignature:(u,g)=>`[${u.key}: ${g(u.right)}]`,JsdocTypeMappedType:(u,g)=>`[${u.key} in ${g(u.right)}]`,JsdocTypeAsserts:(u,g)=>`asserts ${g(u.left)} is ${g(u.right)}`,JsdocTypeReadonlyArray:(u,g)=>`readonly ${g(u.element)}`,JsdocTypeAssertsPlain:(u,g)=>`asserts ${g(u.element)}`,JsdocTypeConditional:(u,g)=>`${g(u.checksType)} extends ${g(u.extendsType)} ? ${g(u.trueType)} : ${g(u.falseType)}`,JsdocTypeTypeParameter:(u,g)=>`${g(u.name)}${u.constraint!==void 0?` extends ${g(u.constraint)}`:""}${u.defaultValue!==void 0?` = ${g(u.defaultValue)}`:""}`}}let V=P();function ie(u){return Nt(V,u)}let ue=["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 ce(u){let g={type:"NameExpression",name:u};return ue.includes(u)&&(g.reservedWord=!0),g}let _e={JsdocTypeOptional:(u,g)=>{let x=g(u.element);return x.optional=!0,x},JsdocTypeNullable:(u,g)=>{let x=g(u.element);return x.nullable=!0,x},JsdocTypeNotNullable:(u,g)=>{let x=g(u.element);return x.nullable=!1,x},JsdocTypeVariadic:(u,g)=>{if(u.element===void 0)throw new Error("dots without value are not allowed in catharsis mode");let x=g(u.element);return x.repeatable=!0,x},JsdocTypeAny:()=>({type:"AllLiteral"}),JsdocTypeNull:()=>({type:"NullLiteral"}),JsdocTypeStringValue:u=>ce(F(u.value,u.meta.quote)),JsdocTypeUndefined:()=>({type:"UndefinedLiteral"}),JsdocTypeUnknown:()=>({type:"UnknownLiteral"}),JsdocTypeFunction:(u,g)=>{let x=C(u),q={type:"FunctionType",params:x.params.map(g)};return x.this!==void 0&&(q.this=g(x.this)),x.new!==void 0&&(q.new=g(x.new)),u.returnType!==void 0&&(q.result=g(u.returnType)),q},JsdocTypeGeneric:(u,g)=>({type:"TypeApplication",applications:u.elements.map(x=>g(x)),expression:g(u.left)}),JsdocTypeSpecialNamePath:u=>ce(u.specialType+":"+F(u.value,u.meta.quote)),JsdocTypeName:u=>u.value!=="function"?ce(u.value):{type:"FunctionType",params:[]},JsdocTypeNumber:u=>ce(u.value.toString()),JsdocTypeObject:(u,g)=>{let x={type:"RecordType",fields:[]};for(let q of u.elements)q.type!=="JsdocTypeObjectField"&&q.type!=="JsdocTypeJsdocObjectField"?x.fields.push({type:"FieldType",key:g(q),value:void 0}):x.fields.push(g(q));return x},JsdocTypeObjectField:(u,g)=>{if(typeof u.key!="string")throw new Error("Index signatures and mapped types are not supported");return{type:"FieldType",key:ce(F(u.key,u.meta.quote)),value:u.right===void 0?void 0:g(u.right)}},JsdocTypeJsdocObjectField:(u,g)=>({type:"FieldType",key:g(u.left),value:g(u.right)}),JsdocTypeUnion:(u,g)=>({type:"TypeUnion",elements:u.elements.map(x=>g(x))}),JsdocTypeKeyValue:(u,g)=>({type:"FieldType",key:ce(u.key),value:u.right===void 0?void 0:g(u.right)}),JsdocTypeNamePath:(u,g)=>{let x=g(u.left),q;u.right.type==="JsdocTypeSpecialNamePath"?q=g(u.right).name:q=F(u.right.value,u.right.meta.quote);let ee=u.pathType==="inner"?"~":u.pathType==="instance"?"#":".";return ce(`${x.name}${ee}${q}`)},JsdocTypeSymbol:u=>{let g="",x=u.element,q=!1;return x?.type==="JsdocTypeVariadic"&&(x.meta.position==="prefix"?g="...":q=!0,x=x.element),x?.type==="JsdocTypeName"?g+=x.value:x?.type==="JsdocTypeNumber"&&(g+=x.value.toString()),q&&(g+="..."),ce(`${u.value}(${g})`)},JsdocTypeParenthesis:(u,g)=>g(y(u.element)),JsdocTypeMappedType:Ne,JsdocTypeIndexSignature:Ne,JsdocTypeImport:Ne,JsdocTypeKeyof:Ne,JsdocTypeTuple:Ne,JsdocTypeTypeof:Ne,JsdocTypeIntersection:Ne,JsdocTypeProperty:Ne,JsdocTypePredicate:Ne,JsdocTypeAsserts:Ne,JsdocTypeReadonlyArray:Ne,JsdocTypeAssertsPlain:Ne,JsdocTypeConditional:Ne,JsdocTypeTypeParameter:Ne};function Ve(u){return Nt(_e,u)}function he(u){switch(u){case void 0:return"none";case"single":return"single";case"double":return"double"}}function Pt(u){switch(u){case"inner":return"INNER_MEMBER";case"instance":return"INSTANCE_MEMBER";case"property":return"MEMBER";case"property-brackets":return"MEMBER"}}function kt(u,g){return g.length===2?{type:u,left:g[0],right:g[1]}:{type:u,left:g[0],right:kt(u,g.slice(1))}}let Mr={JsdocTypeOptional:(u,g)=>({type:"OPTIONAL",value:g(u.element),meta:{syntax:u.meta.position==="prefix"?"PREFIX_EQUAL_SIGN":"SUFFIX_EQUALS_SIGN"}}),JsdocTypeNullable:(u,g)=>({type:"NULLABLE",value:g(u.element),meta:{syntax:u.meta.position==="prefix"?"PREFIX_QUESTION_MARK":"SUFFIX_QUESTION_MARK"}}),JsdocTypeNotNullable:(u,g)=>({type:"NOT_NULLABLE",value:g(u.element),meta:{syntax:u.meta.position==="prefix"?"PREFIX_BANG":"SUFFIX_BANG"}}),JsdocTypeVariadic:(u,g)=>{let x={type:"VARIADIC",meta:{syntax:u.meta.position==="prefix"?"PREFIX_DOTS":u.meta.position==="suffix"?"SUFFIX_DOTS":"ONLY_DOTS"}};return u.element!==void 0&&(x.value=g(u.element)),x},JsdocTypeName:u=>({type:"NAME",name:u.value}),JsdocTypeTypeof:(u,g)=>({type:"TYPE_QUERY",name:g(u.element)}),JsdocTypeTuple:(u,g)=>({type:"TUPLE",entries:u.elements.map(g)}),JsdocTypeKeyof:(u,g)=>({type:"KEY_QUERY",value:g(u.element)}),JsdocTypeImport:u=>({type:"IMPORT",path:{type:"STRING_VALUE",quoteStyle:he(u.element.meta.quote),string:u.element.value}}),JsdocTypeUndefined:()=>({type:"NAME",name:"undefined"}),JsdocTypeAny:()=>({type:"ANY"}),JsdocTypeFunction:(u,g)=>{let x=C(u),q={type:u.arrow?"ARROW":"FUNCTION",params:x.params.map(ee=>{if(ee.type==="JsdocTypeKeyValue"){if(ee.right===void 0)throw new Error("Function parameter without ':' is not expected to be 'KEY_VALUE'");return{type:"NAMED_PARAMETER",name:ee.key,typeName:g(ee.right)}}else return g(ee)}),new:null,returns:null};return x.this!==void 0?q.this=g(x.this):u.arrow||(q.this=null),x.new!==void 0&&(q.new=g(x.new)),u.returnType!==void 0&&(q.returns=g(u.returnType)),q},JsdocTypeGeneric:(u,g)=>{let x={type:"GENERIC",subject:g(u.left),objects:u.elements.map(g),meta:{syntax:u.meta.brackets==="square"?"SQUARE_BRACKET":u.meta.dot?"ANGLE_BRACKET_WITH_DOT":"ANGLE_BRACKET"}};return u.meta.brackets==="square"&&u.elements[0].type==="JsdocTypeFunction"&&!u.elements[0].parenthesis&&(x.objects[0]={type:"NAME",name:"function"}),x},JsdocTypeObjectField:(u,g)=>{if(typeof u.key!="string")throw new Error("Index signatures and mapped types are not supported");if(u.right===void 0)return{type:"RECORD_ENTRY",key:u.key,quoteStyle:he(u.meta.quote),value:null,readonly:!1};let x=g(u.right);return u.optional&&(x={type:"OPTIONAL",value:x,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:u.key.toString(),quoteStyle:he(u.meta.quote),value:x,readonly:!1}},JsdocTypeJsdocObjectField:()=>{throw new Error("Keys may not be typed in jsdoctypeparser.")},JsdocTypeKeyValue:(u,g)=>{if(u.right===void 0)return{type:"RECORD_ENTRY",key:u.key,quoteStyle:"none",value:null,readonly:!1};let x=g(u.right);return u.optional&&(x={type:"OPTIONAL",value:x,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:u.key,quoteStyle:"none",value:x,readonly:!1}},JsdocTypeObject:(u,g)=>{let x=[];for(let q of u.elements)(q.type==="JsdocTypeObjectField"||q.type==="JsdocTypeJsdocObjectField")&&x.push(g(q));return{type:"RECORD",entries:x}},JsdocTypeSpecialNamePath:u=>{if(u.specialType!=="module")throw new Error(`jsdoctypeparser does not support type ${u.specialType} at this point.`);return{type:"MODULE",value:{type:"FILE_PATH",quoteStyle:he(u.meta.quote),path:u.value}}},JsdocTypeNamePath:(u,g)=>{let x=!1,q,ee;u.right.type==="JsdocTypeSpecialNamePath"&&u.right.specialType==="event"?(x=!0,q=u.right.value,ee=he(u.right.meta.quote)):(q=u.right.value,ee=he(u.right.meta.quote));let ae={type:Pt(u.pathType),owner:g(u.left),name:q,quoteStyle:ee,hasEventPrefix:x};if(ae.owner.type==="MODULE"){let pe=ae.owner;return ae.owner=ae.owner.value,pe.value=ae,pe}else return ae},JsdocTypeUnion:(u,g)=>kt("UNION",u.elements.map(g)),JsdocTypeParenthesis:(u,g)=>({type:"PARENTHESIS",value:g(y(u.element))}),JsdocTypeNull:()=>({type:"NAME",name:"null"}),JsdocTypeUnknown:()=>({type:"UNKNOWN"}),JsdocTypeStringValue:u=>({type:"STRING_VALUE",quoteStyle:he(u.meta.quote),string:u.value}),JsdocTypeIntersection:(u,g)=>kt("INTERSECTION",u.elements.map(g)),JsdocTypeNumber:u=>({type:"NUMBER_VALUE",number:u.value.toString()}),JsdocTypeSymbol:Ne,JsdocTypeProperty:Ne,JsdocTypePredicate:Ne,JsdocTypeMappedType:Ne,JsdocTypeIndexSignature:Ne,JsdocTypeAsserts:Ne,JsdocTypeReadonlyArray:Ne,JsdocTypeAssertsPlain:Ne,JsdocTypeConditional:Ne,JsdocTypeTypeParameter:Ne};function rn(u){return Nt(Mr,u)}function Jt(){return{JsdocTypeIntersection:(u,g)=>({type:"JsdocTypeIntersection",elements:u.elements.map(g)}),JsdocTypeGeneric:(u,g)=>({type:"JsdocTypeGeneric",left:g(u.left),elements:u.elements.map(g),meta:{dot:u.meta.dot,brackets:u.meta.brackets}}),JsdocTypeNullable:u=>u,JsdocTypeUnion:(u,g)=>({type:"JsdocTypeUnion",elements:u.elements.map(g)}),JsdocTypeUnknown:u=>u,JsdocTypeUndefined:u=>u,JsdocTypeTypeof:(u,g)=>({type:"JsdocTypeTypeof",element:g(u.element)}),JsdocTypeSymbol:(u,g)=>{let x={type:"JsdocTypeSymbol",value:u.value};return u.element!==void 0&&(x.element=g(u.element)),x},JsdocTypeOptional:(u,g)=>({type:"JsdocTypeOptional",element:g(u.element),meta:{position:u.meta.position}}),JsdocTypeObject:(u,g)=>({type:"JsdocTypeObject",meta:{separator:"comma"},elements:u.elements.map(g)}),JsdocTypeNumber:u=>u,JsdocTypeNull:u=>u,JsdocTypeNotNullable:(u,g)=>({type:"JsdocTypeNotNullable",element:g(u.element),meta:{position:u.meta.position}}),JsdocTypeSpecialNamePath:u=>u,JsdocTypeObjectField:(u,g)=>({type:"JsdocTypeObjectField",key:u.key,right:u.right===void 0?void 0:g(u.right),optional:u.optional,readonly:u.readonly,meta:u.meta}),JsdocTypeJsdocObjectField:(u,g)=>({type:"JsdocTypeJsdocObjectField",left:g(u.left),right:g(u.right)}),JsdocTypeKeyValue:(u,g)=>({type:"JsdocTypeKeyValue",key:u.key,right:u.right===void 0?void 0:g(u.right),optional:u.optional,variadic:u.variadic}),JsdocTypeImport:(u,g)=>({type:"JsdocTypeImport",element:g(u.element)}),JsdocTypeAny:u=>u,JsdocTypeStringValue:u=>u,JsdocTypeNamePath:u=>u,JsdocTypeVariadic:(u,g)=>{let x={type:"JsdocTypeVariadic",meta:{position:u.meta.position,squareBrackets:u.meta.squareBrackets}};return u.element!==void 0&&(x.element=g(u.element)),x},JsdocTypeTuple:(u,g)=>({type:"JsdocTypeTuple",elements:u.elements.map(g)}),JsdocTypeName:u=>u,JsdocTypeFunction:(u,g)=>{let x={type:"JsdocTypeFunction",arrow:u.arrow,parameters:u.parameters.map(g),constructor:u.constructor,parenthesis:u.parenthesis};return u.returnType!==void 0&&(x.returnType=g(u.returnType)),x},JsdocTypeKeyof:(u,g)=>({type:"JsdocTypeKeyof",element:g(u.element)}),JsdocTypeParenthesis:(u,g)=>({type:"JsdocTypeParenthesis",element:g(u.element)}),JsdocTypeProperty:u=>u,JsdocTypePredicate:(u,g)=>({type:"JsdocTypePredicate",left:g(u.left),right:g(u.right)}),JsdocTypeIndexSignature:(u,g)=>({type:"JsdocTypeIndexSignature",key:u.key,right:g(u.right)}),JsdocTypeMappedType:(u,g)=>({type:"JsdocTypeMappedType",key:u.key,right:g(u.right)}),JsdocTypeAsserts:(u,g)=>({type:"JsdocTypeAsserts",left:g(u.left),right:g(u.right)}),JsdocTypeReadonlyArray:(u,g)=>({type:"JsdocTypeReadonlyArray",element:g(u.element)}),JsdocTypeAssertsPlain:(u,g)=>({type:"JsdocTypeAssertsPlain",element:g(u.element)}),JsdocTypeConditional:(u,g)=>({type:"JsdocTypeConditional",checksType:g(u.checksType),extendsType:g(u.extendsType),trueType:g(u.trueType),falseType:g(u.falseType)}),JsdocTypeTypeParameter:(u,g)=>({type:"JsdocTypeTypeParameter",name:g(u.name),constraint:u.constraint!==void 0?g(u.constraint):void 0,defaultValue:u.defaultValue!==void 0?g(u.defaultValue):void 0})}}let nn={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 qr(u,g,x,q,ee){q?.(u,g,x);let ae=nn[u.type];for(let pe of ae){let ge=u[pe];if(ge!==void 0)if(Array.isArray(ge))for(let ke of ge)qr(ke,u,pe,q,ee);else qr(ge,u,pe,q,ee)}ee?.(u,g,x)}function Vi(u,g,x){qr(u,void 0,void 0,g,x)}r.catharsisTransform=Ve,r.identityTransformRules=Jt,r.jtpTransform=rn,r.parse=gt,r.stringify=ie,r.stringifyRules=P,r.transform=Nt,r.traverse=Vi,r.tryParse=nt,r.visitorKeys=nn}))}});const{UnknownArgTypesError:u9}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var l9=e=>e.name==="literal",c9=e=>e.value.replace(/['|"]/g,""),p9=e=>{switch(e.type){case"function":return{name:"function"};case"object":let t={};return e.signature.properties.forEach(r=>{t[r.key]=co(r.value)}),{name:"object",value:t};default:throw new u9({type:e,language:"Flow"})}},co=e=>{let{name:t,raw:r}=e,n={};switch(typeof r<"u"&&(n.raw=r),e.name){case"literal":return{...n,name:"other",value:e.value};case"string":case"number":case"symbol":case"boolean":return{...n,name:t};case"Array":return{...n,name:"array",value:e.elements.map(co)};case"signature":return{...n,...p9(e)};case"union":return e.elements?.every(l9)?{...n,name:"enum",value:e.elements?.map(c9)}:{...n,name:t,value:e.elements?.map(co)};case"intersection":return{...n,name:t,value:e.elements?.map(co)};default:return{...n,name:"other",value:t}}},iw=/^['"]|['"]$/g,d9=e=>e.replace(iw,""),f9=e=>iw.test(e),ow=e=>{let t=d9(e);return f9(e)||Number.isNaN(Number(t))?t:Number(t)},h9=/^\(.*\) => /,to=e=>{let{name:t,raw:r,computed:n,value:i}=e,o={};switch(typeof r<"u"&&(o.raw=r),t){case"enum":{let s=n?i:i.map(p=>ow(p.value));return{...o,name:t,value:s}}case"string":case"number":case"symbol":return{...o,name:t};case"func":return{...o,name:"function"};case"bool":case"boolean":return{...o,name:"boolean"};case"arrayOf":case"array":return{...o,name:"array",value:i&&to(i)};case"object":return{...o,name:t};case"objectOf":return{...o,name:t,value:to(i)};case"shape":case"exact":let a=a9(i,s=>to(s));return{...o,name:"object",value:a};case"union":return{...o,name:"union",value:i.map(s=>to(s))};case"instanceOf":case"element":case"elementType":default:{if(t?.indexOf("|")>0)try{let l=t.split("|").map(d=>JSON.parse(d));return{...o,name:"enum",value:l}}catch{}let s=i?`${t}(${i})`:t,p=h9.test(t)?"function":"other";return{...o,name:p,value:s}}}};const{UnknownArgTypesError:m9}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var y9=e=>{switch(e.type){case"function":return{name:"function"};case"object":let t={};return e.signature.properties.forEach(r=>{t[r.key]=po(r.value)}),{name:"object",value:t};default:throw new m9({type:e,language:"Typescript"})}},po=e=>{let{name:t,raw:r}=e,n={};switch(typeof r<"u"&&(n.raw=r),e.name){case"string":case"number":case"symbol":case"boolean":return{...n,name:t};case"Array":return{...n,name:"array",value:e.elements.map(po)};case"signature":return{...n,...y9(e)};case"union":let i;return e.elements?.every(o=>o.name==="literal")?i={...n,name:"enum",value:e.elements?.map(o=>ow(o.value))}:i={...n,name:t,value:e.elements?.map(po)},i;case"intersection":return{...n,name:t,value:e.elements?.map(po)};default:return{...n,name:"other",value:t}}},Hp=e=>{let{type:t,tsType:r,flowType:n}=e;try{if(t!=null)return to(t);if(r!=null)return po(r);if(n!=null)return co(n)}catch(i){console.error(i)}return null},Il=(e=>(e.JAVASCRIPT="JavaScript",e.FLOW="Flow",e.TYPESCRIPT="TypeScript",e.UNKNOWN="Unknown",e))(Il||{}),g9=["null","undefined"];function Gp(e){return g9.some(t=>t===e)}var b9=e=>{if(!e)return"";if(typeof e=="string")return e;throw new Error(`Description: expected string, got: ${JSON.stringify(e)}`)};function zp(e){return!!e.__docgenInfo}function E9(e){return e!=null&&Object.keys(e).length>0}function v9(e,t){return zp(e)?e.__docgenInfo[t]:null}function A9(e){return zp(e)?b9(e.__docgenInfo.description):""}var wn;(function(e){e.start="/**",e.nostart="/***",e.delim="*",e.end="*/"})(wn=wn||(wn={}));function w9(e){return/^\s+$/.test(e)}function C9(e){let t=e.match(/\r+$/);return t==null?["",e]:[e.slice(-t[0].length),e.slice(0,-t[0].length)]}function hi(e){let t=e.match(/^\s+/);return t==null?["",e]:[e.slice(0,t[0].length),e.slice(t[0].length)]}function _9(e){return e.split(/\n/)}function T9(e={}){return Object.assign({tag:"",name:"",type:"",optional:!1,description:"",problems:[],source:[]},e)}function S9(e={}){return Object.assign({start:"",delimiter:"",postDelimiter:"",tag:"",postTag:"",name:"",postName:"",type:"",postType:"",description:"",end:"",lineEnd:""},e)}var x9=/^@\S+/;function D9({fence:e="```"}={}){let t=R9(e),r=(n,i)=>t(n)?!i:i;return function(n){let i=[[]],o=!1;for(let a of n)x9.test(a.tokens.description)&&!o?i.push([a]):i[i.length-1].push(a),o=r(a.tokens.description,o);return i}}function R9(e){return typeof e=="string"?t=>t.split(e).length%2===0:e}function P9({startLine:e=0,markers:t=wn}={}){let r=null,n=e;return function(i){let o=i,a=S9();if([a.lineEnd,o]=C9(o),[a.start,o]=hi(o),r===null&&o.startsWith(t.start)&&!o.startsWith(t.nostart)&&(r=[],a.delimiter=o.slice(0,t.start.length),o=o.slice(t.start.length),[a.postDelimiter,o]=hi(o)),r===null)return n++,null;let s=o.trimRight().endsWith(t.end);if(a.delimiter===""&&o.startsWith(t.delim)&&!o.startsWith(t.end)&&(a.delimiter=t.delim,o=o.slice(t.delim.length),[a.postDelimiter,o]=hi(o)),s){let p=o.trimRight();a.end=o.slice(p.length-t.end.length),o=p.slice(0,-t.end.length)}if(a.description=o,r.push({number:n,source:i,tokens:a}),n++,s){let p=r.slice();return r=null,p}return null}}function O9({tokenizers:e}){return function(t){var r;let n=T9({source:t});for(let i of e)if(n=i(n),!((r=n.problems[n.problems.length-1])===null||r===void 0)&&r.critical)break;return n}}function F9(){return e=>{let{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)}}function N9(e="compact"){let t=B9(e);return r=>{let n=0,i=[];for(let[s,{tokens:p}]of r.source.entries()){let l="";if(s===0&&p.description[0]!=="{")return r;for(let d of p.description)if(d==="{"&&n++,d==="}"&&n--,l+=d,n===0)break;if(i.push([p,l]),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;let o=[],a=i[0][0].postDelimiter.length;for(let[s,[p,l]]of i.entries())p.type=l,s>0&&(p.type=p.postDelimiter.slice(a)+l,p.postDelimiter=p.postDelimiter.slice(0,a)),[p.postType,p.description]=hi(p.description.slice(l.length)),o.push(p.type);return o[0]=o[0].slice(1),o[o.length-1]=o[o.length-1].slice(0,-1),r.type=t(o),r}}var I9=e=>e.trim();function B9(e){return e==="compact"?t=>t.map(I9).join(""):e==="preserve"?t=>t.join(`
|
|
1013
|
+
`):e}var k9=e=>e&&e.startsWith('"')&&e.endsWith('"');function M9(){let e=(t,{tokens:r},n)=>r.type===""?t:n;return t=>{let{tokens:r}=t.source[t.source.reduce(e,0)],n=r.description.trimLeft(),i=n.split('"');if(i.length>1&&i[0]===""&&i.length%2===1)return t.name=i[1],r.name=`"${i[1]}"`,[r.postName,r.description]=hi(n.slice(r.name.length)),t;let o=0,a="",s=!1,p;for(let d of n){if(o===0&&w9(d))break;d==="["&&o++,d==="]"&&o--,a+=d}if(o!==0)return t.problems.push({code:"spec:name:unpaired-brackets",message:"unpaired brackets",line:t.source[0].number,critical:!0}),t;let l=a;if(a[0]==="["&&a[a.length-1]==="]"){s=!0,a=a.slice(1,-1);let d=a.split("=");if(a=d[0].trim(),d[1]!==void 0&&(p=d.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(p==="")return t.problems.push({code:"spec:name:empty-default",message:"empty default value",line:t.source[0].number,critical:!0}),t;if(!k9(p)&&/=(?!>)/.test(p))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=s,t.name=a,r.name=l,p!==void 0&&(t.default=p),[r.postName,r.description]=hi(n.slice(r.name.length)),t}}function q9(e="compact",t=wn){let r=aw(e);return n=>(n.description=r(n.source,t),n)}function aw(e){return e==="compact"?j9:e==="preserve"?$9:e}function j9(e,t=wn){return e.map(({tokens:{description:r}})=>r.trim()).filter(r=>r!=="").join(" ")}var L9=(e,{tokens:t},r)=>t.type===""?e:r,V9=({tokens:e})=>(e.delimiter===""?e.start:e.postDelimiter.slice(1))+e.description;function $9(e,t=wn){if(e.length===0)return"";e[0].tokens.description===""&&e[0].tokens.delimiter===t.start&&(e=e.slice(1));let 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(L9,0)),e.map(V9).join(`
|
|
1014
|
+
`)}function U9({startLine:e=0,fence:t="```",spacing:r="compact",markers:n=wn,tokenizers:i=[F9(),N9(r),M9(),q9(r)]}={}){if(e<0||e%1>0)throw new Error("Invalid startLine");let o=P9({startLine:e,markers:n}),a=D9({fence:t}),s=O9({tokenizers:i}),p=aw(r);return function(l){let d=[];for(let f of _9(l)){let h=o(f);if(h===null)continue;let m=a(h),b=m.slice(1).map(s);d.push({description:p(m[0],n),tags:b,source:h,problems:b.reduce((E,w)=>E.concat(w.problems),[])})}return d}}function J9(e,t={}){return U9(t)(e)}var Wp=o9(s9());function H9(e){return e!=null&&e.includes("@")}function G9(e){let t=`/**
|
|
1015
|
+
`+(e??"").split(`
|
|
1016
|
+
`).map(n=>` * ${n}`).join(`
|
|
1017
|
+
`)+`
|
|
1018
|
+
*/`,r=J9(t,{spacing:"preserve"});if(!r||r.length===0)throw new Error("Cannot parse JSDoc tags.");return r[0]}var z9={tags:["param","arg","argument","returns","ignore","deprecated"]},W9=(e,t=z9)=>{if(!H9(e))return{includesJsDoc:!1,ignore:!1};let r=G9(e),n=Y9(r,t.tags);return n.ignore?{includesJsDoc:!0,ignore:!0}:{includesJsDoc:!0,ignore:!1,description:r.description.trim(),extractedTags:n}};function Y9(e,t){let r={params:null,deprecated:null,returns:null,ignore:!1};for(let 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":{let i=X9(n);i!=null&&(r.params==null&&(r.params=[]),r.params.push(i));break}case"deprecated":{let i=Q9(n);i!=null&&(r.deprecated=i);break}case"returns":{let i=Z9(n);i!=null&&(r.returns=i);break}}return r}function K9(e){return e.replace(/[\.-]$/,"")}function X9(e){if(!e.name||e.name==="-")return null;let t=lw(e.type);return{name:e.name,type:t,description:uw(e.description),getPrettyName:()=>K9(e.name),getTypeName:()=>t?cw(t):null}}function Q9(e){return e.name?sw(e.name,e.description):null}function sw(e,t){let r=e===""?t:`${e} ${t}`;return uw(r)}function uw(e){let t=e.replace(/^- /g,"").trim();return t===""?null:t}function Z9(e){let t=lw(e.type);return t?{type:t,description:sw(e.name,e.description),getTypeName:()=>cw(t)}:null}var Rn=(0,Wp.stringifyRules)(),e2=Rn.JsdocTypeObject;Rn.JsdocTypeAny=()=>"any";Rn.JsdocTypeObject=(e,t)=>`(${e2(e,t)})`;Rn.JsdocTypeOptional=(e,t)=>t(e.element);Rn.JsdocTypeNullable=(e,t)=>t(e.element);Rn.JsdocTypeNotNullable=(e,t)=>t(e.element);Rn.JsdocTypeUnion=(e,t)=>e.elements.map(t).join("|");function lw(e){try{return(0,Wp.parse)(e,"typescript")}catch{return null}}function cw(e){return(0,Wp.transform)(Rn,e)}function Yp(e){return e.length>90}function qi(e){return e.length>50}function je(e,t){return e===t?{summary:e}:{summary:e,detail:t}}function t2(e,t){if(e!=null){let{value:r}=e;if(!Gp(r))return qi(r)?je(t?.name,r):je(r)}return null}function pw({name:e,value:t,elements:r,raw:n}){return t??(r!=null?r.map(pw).join(" | "):n??e)}function r2({name:e,raw:t,elements:r}){return r!=null?je(r.map(pw).join(" | ")):t!=null?je(t.replace(/^\|\s*/,"")):je(e)}function n2({type:e,raw:t}){return t!=null?je(t):je(e)}function i2({type:e,raw:t}){return t!=null?Yp(t)?je(e,t):je(t):je(e)}function o2(e){let{type:t}=e;return t==="object"?i2(e):n2(e)}function a2({name:e,raw:t}){return t!=null?Yp(t)?je(e,t):je(t):je(e)}function s2(e){if(e==null)return null;switch(e.name){case"union":return r2(e);case"signature":return o2(e);default:return a2(e)}}var u2=(e,t)=>{let{flowType:r,description:n,required:i,defaultValue:o}=t;return{name:e,type:s2(r),required:i,description:n,defaultValue:t2(o??null,r??null)}};function l2({defaultValue:e}){if(e!=null){let{value:t}=e;if(!Gp(t))return je(t)}return null}function c2({tsType:e,required:t}){if(e==null)return null;let r=e.name;return t||(r=r.replace(" | undefined","")),je(["Array","Record","signature"].includes(e.name)?e.raw:r)}var p2=(e,t)=>{let{description:r,required:n}=t;return{name:e,type:c2(t),required:n,description:r,defaultValue:l2(t)}};function d2(e){return e!=null?je(e.name):null}function f2(e){let{computed:t,func:r}=e;return typeof t>"u"&&typeof r>"u"}function h2(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}function m2(e,t){if(e!=null){let{value:r}=e;if(!Gp(r))return f2(e)&&h2(t)?je(JSON.stringify(r)):je(r)}return null}function dw(e,t,r){let{description:n,required:i,defaultValue:o}=r;return{name:e,type:d2(t),required:i,description:n,defaultValue:m2(o,t)}}function Fs(e,t){if(t?.includesJsDoc){let{description:r,extractedTags:n}=t;r!=null&&(e.description=t.description);let i={...n,params:n?.params?.map(o=>({name:o.getPrettyName(),description:o.description}))};Object.values(i).filter(Boolean).length>0&&(e.jsDocTags=i)}return e}var y2=(e,t,r)=>{let n=dw(e,t.type,t);return n.sbType=Hp(t),Fs(n,r)},g2=(e,t,r)=>{let n=p2(e,t);return n.sbType=Hp(t),Fs(n,r)},b2=(e,t,r)=>{let n=u2(e,t);return n.sbType=Hp(t),Fs(n,r)},E2=(e,t,r)=>{let n=dw(e,{name:"unknown"},t);return Fs(n,r)},fw=e=>{switch(e){case"JavaScript":return y2;case"TypeScript":return g2;case"Flow":return b2;default:return E2}},hw=e=>e.type!=null?"JavaScript":e.flowType!=null?"Flow":e.tsType!=null?"TypeScript":"Unknown",v2=e=>{let t=hw(e[0]),r=fw(t);return e.map(n=>{let i=n;return n.type?.elements&&(i={...n,type:{...n.type,value:n.type.elements}}),mw(i.name,i,t,r)})},A2=e=>{let t=Object.keys(e),r=hw(e[t[0]]),n=fw(r);return t.map(i=>{let o=e[i];return o!=null?mw(i,o,r,n):null}).filter(Boolean)},w2=(e,t)=>{let r=v9(e,t);return E9(r)?Array.isArray(r)?v2(r):A2(r):[]};function mw(e,t,r,n){let i=W9(t.description);return i.includesJsDoc&&i.ignore?null:{propDef:n(e,t,i),jsDocTags:i.extractedTags,docgenInfo:t,typeSystem:r}}function C2(e){return e!=null?A9(e):""}var yw=(...e)=>{let t={},r=e.filter(Boolean),n=r.reduce((i,o)=>(Object.entries(o).forEach(([a,s])=>{let p=i[a];Array.isArray(s)||typeof p>"u"?i[a]=s:Eu(s)&&Eu(p)?t[a]=!0:typeof s<"u"&&(i[a]=s)}),i),{});return Object.keys(t).forEach(i=>{let o=r.filter(Boolean).map(a=>a[i]).filter(a=>typeof a<"u");o.every(a=>Eu(a))?n[i]=yw(...o):n[i]=o[o.length-1]}),n},_2=e=>{let{component:t,argTypes:r,parameters:{docs:n={}}}=e,{extractArgTypes:i}=n;if(!i||!t)return r;let o=i(t);return o?yw(o,r):r};const T2={"./src/components/Button/Button.stories.ts":()=>Yi(()=>import("./Button.stories-uPwy2cWr.js"),__vite__mapDeps([0,1,2,3]),import.meta.url),"./src/components/Input/Input.stories.ts":()=>Yi(()=>import("./Input.stories-Ck4AyV-4.js"),__vite__mapDeps([4,5,2,1,3,6,7]),import.meta.url),"./src/components/Modal/Modal.stories.ts":()=>Yi(()=>import("./Modal.stories-3HMpRqSx.js"),__vite__mapDeps([8,2,1,3,5,6,9,10,7,11]),import.meta.url),"./src/components/Toggle/Toggle.stories.ts":()=>Yi(()=>import("./Toggle.stories-d01loxLD.js"),__vite__mapDeps([12,9,2,10,7]),import.meta.url)};async function S2(e){return await T2[e]()}function x2(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var vu={exports:{}},qe={};var ym;function D2(){if(ym)return qe;ym=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),l=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.activity"),h=Symbol.iterator;function m(z){return z===null||typeof z!="object"?null:(z=h&&z[h]||z["@@iterator"],typeof z=="function"?z:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,w={};function A(z,K,be){this.props=z,this.context=K,this.refs=w,this.updater=be||b}A.prototype.isReactComponent={},A.prototype.setState=function(z,K){if(typeof z!="object"&&typeof z!="function"&&z!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,z,K,"setState")},A.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function S(){}S.prototype=A.prototype;function k(z,K,be){this.props=z,this.context=K,this.refs=w,this.updater=be||b}var O=k.prototype=new S;O.constructor=k,E(O,A.prototype),O.isPureReactComponent=!0;var R=Array.isArray;function y(){}var T={H:null,A:null,T:null,S:null},_=Object.prototype.hasOwnProperty;function D(z,K,be){var me=be.ref;return{$$typeof:e,type:z,key:K,ref:me!==void 0?me:null,props:be}}function J(z,K){return D(z.type,K,z.props)}function M(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function G(z){var K={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(be){return K[be]})}var L=/\/+/g;function I(z,K){return typeof z=="object"&&z!==null&&z.key!=null?G(""+z.key):K.toString(36)}function $(z){switch(z.status){case"fulfilled":return z.value;case"rejected":throw z.reason;default:switch(typeof z.status=="string"?z.then(y,y):(z.status="pending",z.then(function(K){z.status==="pending"&&(z.status="fulfilled",z.value=K)},function(K){z.status==="pending"&&(z.status="rejected",z.reason=K)})),z.status){case"fulfilled":return z.value;case"rejected":throw z.reason}}throw z}function Y(z,K,be,me,fe){var se=typeof z;(se==="undefined"||se==="boolean")&&(z=null);var Te=!1;if(z===null)Te=!0;else switch(se){case"bigint":case"string":case"number":Te=!0;break;case"object":switch(z.$$typeof){case e:case t:Te=!0;break;case d:return Te=z._init,Y(Te(z._payload),K,be,me,fe)}}if(Te)return fe=fe(z),Te=me===""?"."+I(z,0):me,R(fe)?(be="",Te!=null&&(be=Te.replace(L,"$&/")+"/"),Y(fe,K,be,"",function(Z){return Z})):fe!=null&&(M(fe)&&(fe=J(fe,be+(fe.key==null||z&&z.key===fe.key?"":(""+fe.key).replace(L,"$&/")+"/")+Te)),K.push(fe)),1;Te=0;var Oe=me===""?".":me+":";if(R(z))for(var Le=0;Le<z.length;Le++)me=z[Le],se=Oe+I(me,Le),Te+=Y(me,K,be,se,fe);else if(Le=m(z),typeof Le=="function")for(z=Le.call(z),Le=0;!(me=z.next()).done;)me=me.value,se=Oe+I(me,Le++),Te+=Y(me,K,be,se,fe);else if(se==="object"){if(typeof z.then=="function")return Y($(z),K,be,me,fe);throw K=String(z),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.")}return Te}function X(z,K,be){if(z==null)return z;var me=[],fe=0;return Y(z,me,"","",function(se){return K.call(be,se,fe++)}),me}function oe(z){if(z._status===-1){var K=z._result;K=K(),K.then(function(be){(z._status===0||z._status===-1)&&(z._status=1,z._result=be)},function(be){(z._status===0||z._status===-1)&&(z._status=2,z._result=be)}),z._status===-1&&(z._status=0,z._result=K)}if(z._status===1)return z._result.default;throw z._result}var ve=typeof reportError=="function"?reportError:function(z){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var K=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof z=="object"&&z!==null&&typeof z.message=="string"?String(z.message):String(z),error:z});if(!window.dispatchEvent(K))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",z);return}console.error(z)},De={map:X,forEach:function(z,K,be){X(z,function(){K.apply(this,arguments)},be)},count:function(z){var K=0;return X(z,function(){K++}),K},toArray:function(z){return X(z,function(K){return K})||[]},only:function(z){if(!M(z))throw Error("React.Children.only expected to receive a single React element child.");return z}};return qe.Activity=f,qe.Children=De,qe.Component=A,qe.Fragment=r,qe.Profiler=i,qe.PureComponent=k,qe.StrictMode=n,qe.Suspense=p,qe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,qe.__COMPILER_RUNTIME={__proto__:null,c:function(z){return T.H.useMemoCache(z)}},qe.cache=function(z){return function(){return z.apply(null,arguments)}},qe.cacheSignal=function(){return null},qe.cloneElement=function(z,K,be){if(z==null)throw Error("The argument must be a React element, but you passed "+z+".");var me=E({},z.props),fe=z.key;if(K!=null)for(se in K.key!==void 0&&(fe=""+K.key),K)!_.call(K,se)||se==="key"||se==="__self"||se==="__source"||se==="ref"&&K.ref===void 0||(me[se]=K[se]);var se=arguments.length-2;if(se===1)me.children=be;else if(1<se){for(var Te=Array(se),Oe=0;Oe<se;Oe++)Te[Oe]=arguments[Oe+2];me.children=Te}return D(z.type,fe,me)},qe.createContext=function(z){return z={$$typeof:a,_currentValue:z,_currentValue2:z,_threadCount:0,Provider:null,Consumer:null},z.Provider=z,z.Consumer={$$typeof:o,_context:z},z},qe.createElement=function(z,K,be){var me,fe={},se=null;if(K!=null)for(me in K.key!==void 0&&(se=""+K.key),K)_.call(K,me)&&me!=="key"&&me!=="__self"&&me!=="__source"&&(fe[me]=K[me]);var Te=arguments.length-2;if(Te===1)fe.children=be;else if(1<Te){for(var Oe=Array(Te),Le=0;Le<Te;Le++)Oe[Le]=arguments[Le+2];fe.children=Oe}if(z&&z.defaultProps)for(me in Te=z.defaultProps,Te)fe[me]===void 0&&(fe[me]=Te[me]);return D(z,se,fe)},qe.createRef=function(){return{current:null}},qe.forwardRef=function(z){return{$$typeof:s,render:z}},qe.isValidElement=M,qe.lazy=function(z){return{$$typeof:d,_payload:{_status:-1,_result:z},_init:oe}},qe.memo=function(z,K){return{$$typeof:l,type:z,compare:K===void 0?null:K}},qe.startTransition=function(z){var K=T.T,be={};T.T=be;try{var me=z(),fe=T.S;fe!==null&&fe(be,me),typeof me=="object"&&me!==null&&typeof me.then=="function"&&me.then(y,ve)}catch(se){ve(se)}finally{K!==null&&be.types!==null&&(K.types=be.types),T.T=K}},qe.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},qe.use=function(z){return T.H.use(z)},qe.useActionState=function(z,K,be){return T.H.useActionState(z,K,be)},qe.useCallback=function(z,K){return T.H.useCallback(z,K)},qe.useContext=function(z){return T.H.useContext(z)},qe.useDebugValue=function(){},qe.useDeferredValue=function(z,K){return T.H.useDeferredValue(z,K)},qe.useEffect=function(z,K){return T.H.useEffect(z,K)},qe.useEffectEvent=function(z){return T.H.useEffectEvent(z)},qe.useId=function(){return T.H.useId()},qe.useImperativeHandle=function(z,K,be){return T.H.useImperativeHandle(z,K,be)},qe.useInsertionEffect=function(z,K){return T.H.useInsertionEffect(z,K)},qe.useLayoutEffect=function(z,K){return T.H.useLayoutEffect(z,K)},qe.useMemo=function(z,K){return T.H.useMemo(z,K)},qe.useOptimistic=function(z,K){return T.H.useOptimistic(z,K)},qe.useReducer=function(z,K,be){return T.H.useReducer(z,K,be)},qe.useRef=function(z){return T.H.useRef(z)},qe.useState=function(z){return T.H.useState(z)},qe.useSyncExternalStore=function(z,K,be){return T.H.useSyncExternalStore(z,K,be)},qe.useTransition=function(){return T.H.useTransition()},qe.version="19.2.1",qe}var gm;function R2(){return gm||(gm=1,vu.exports=D2()),vu.exports}var mr=R2();const yn=x2(mr),{defaultDecorateStory:P2}=__STORYBOOK_MODULE_PREVIEW_API__;var gw=(e,t)=>P2(r=>yn.createElement(e,r),t),O2=Object.create,Kp=Object.defineProperty,F2=Object.getOwnPropertyDescriptor,bw=Object.getOwnPropertyNames,N2=Object.getPrototypeOf,I2=Object.prototype.hasOwnProperty,ht=(e,t)=>function(){return t||(0,e[bw(e)[0]])((t={exports:{}}).exports,t),t.exports},Ew=(e,t)=>{for(var r in t)Kp(e,r,{get:t[r],enumerable:!0})},B2=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of bw(t))!I2.call(e,i)&&i!==r&&Kp(e,i,{get:()=>t[i],enumerable:!(n=F2(t,i))||n.enumerable});return e},ji=(e,t,r)=>(r=e!=null?O2(N2(e)):{},B2(t||!e||!e.__esModule?Kp(r,"default",{value:e,enumerable:!0}):r,e)),k2={};Ew(k2,{applyDecorators:()=>gw,beforeAll:()=>xw,decorators:()=>Tw,mount:()=>_w,parameters:()=>Sw,render:()=>Aw,renderToCanvas:()=>Cw});const{global:M2}=__STORYBOOK_MODULE_GLOBAL__,{configure:q2}=__STORYBOOK_MODULE_TEST__;function bm(e){globalThis.IS_REACT_ACT_ENVIRONMENT=e}function j2(){return globalThis.IS_REACT_ACT_ENVIRONMENT}var vw=async({disableAct:e=!1}={})=>t=>t(),Aw=(e,t)=>{let{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`);return yn.createElement(n,{...e})};const{global:L2}=__STORYBOOK_MODULE_GLOBAL__;var{FRAMEWORK_OPTIONS:V2}=L2,$2=class extends mr.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidMount(){let{hasError:e}=this.state,{showMain:t}=this.props;e||t()}componentDidCatch(e){let{showException:t}=this.props;t(e)}render(){let{hasError:e}=this.state,{children:t}=this.props;return e?null:t}},Em=V2?.strictMode?mr.StrictMode:mr.Fragment,Bl=[],Au=!1,ww=async()=>{if(Au||Bl.length===0)return;Au=!0;let e=Bl.shift();e&&await e(),Au=!1,ww()};async function Cw({storyContext:e,unboundStoryFn:t,showMain:r,showException:n,forceRemount:i},o){let{renderElement:a,unmountElement:s}=await Yi(async()=>{const{renderElement:h,unmountElement:m}=await import("./react-18-CW3OMC0n.js");return{renderElement:h,unmountElement:m}},__vite__mapDeps([13,7]),import.meta.url),p=t,l=e.parameters.__isPortableStory?yn.createElement(p,{...e}):yn.createElement($2,{key:e.id,showMain:r,showException:n},yn.createElement(p,{...e})),d=Em?yn.createElement(Em,null,l):l;i&&s(o);let f=await vw({disableAct:e.viewMode==="docs"});return await new Promise(async(h,m)=>{Bl.push(async()=>{try{await f(async()=>{await a(d,o,e?.parameters?.react?.rootOptions)}),h()}catch(b){m(b)}}),ww()}),async()=>{await f(()=>{s(o)})}}var _w=e=>async t=>(t!=null&&(e.originalStoryFn=()=>t),await e.renderToCanvas(),e.canvas),Tw=[(e,t)=>{if(!t.parameters?.react?.rsc)return e();let[r,n]=mr.version.split(".").map(i=>parseInt(i,10));if(!Number.isInteger(r)||!Number.isInteger(n))throw new Error("Unable to parse React version");if(r<18||r===18&&n<3)throw new Error("React Server Components require React >= 18.3");return mr.createElement(mr.Suspense,null,e())},(e,t)=>{if(t.tags?.includes("test-fn")&&!M2.FEATURES?.experimentalTestSyntax)throw new Error("To use the experimental test function, you must enable the experimentalTestSyntax feature flag. See https://storybook.js.org/docs/10/api/main-config/main-config-features#experimentalTestSyntax");return e()}],Sw={renderer:"react"},xw=async()=>{try{let e=await vw();q2({unstable_advanceTimersWrapper:t=>e(t),asyncWrapper:async t=>{let r=j2();bm(!1);try{let n=await t();return await new Promise(i=>{setTimeout(()=>{i()},0),U2()&&jest.advanceTimersByTime(0)}),n}finally{bm(r)}},eventWrapper:t=>{let r;return e(()=>(r=t(),r)),r}})}catch{}};function U2(){return typeof jest<"u"&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,"clock"):!1}const J2=Object.freeze(Object.defineProperty({__proto__:null,applyDecorators:gw,beforeAll:xw,decorators:Tw,mount:_w,parameters:Sw,render:Aw,renderToCanvas:Cw},Symbol.toStringTag,{value:"Module"}));var H2=ht({"../../node_modules/@base2/pretty-print-object/dist/index.js"(e){var t=e&&e.__assign||function(){return t=Object.assign||function(p){for(var l,d=1,f=arguments.length;d<f;d++){l=arguments[d];for(var h in l)Object.prototype.hasOwnProperty.call(l,h)&&(p[h]=l[h])}return p},t.apply(this,arguments)},r=e&&e.__spreadArrays||function(){for(var p=0,l=0,d=arguments.length;l<d;l++)p+=arguments[l].length;for(var f=Array(p),h=0,l=0;l<d;l++)for(var m=arguments[l],b=0,E=m.length;b<E;b++,h++)f[h]=m[b];return f};Object.defineProperty(e,"__esModule",{value:!0});var n=[];function i(p){var l=typeof p;return p!==null&&(l==="object"||l==="function")}function o(p){return Object.prototype.toString.call(p)==="[object RegExp]"}function a(p){return Object.getOwnPropertySymbols(p).filter(function(l){return Object.prototype.propertyIsEnumerable.call(p,l)})}function s(p,l,d){d===void 0&&(d="");var f={indent:" ",singleQuotes:!0},h=t(t({},f),l),m;h.inlineCharacterLimit===void 0?m={newLine:`
|
|
1019
|
+
`,newLineOrSpace:`
|
|
1020
|
+
`,pad:d,indent:d+h.indent}:m={newLine:"@@__PRETTY_PRINT_NEW_LINE__@@",newLineOrSpace:"@@__PRETTY_PRINT_NEW_LINE_OR_SPACE__@@",pad:"@@__PRETTY_PRINT_PAD__@@",indent:"@@__PRETTY_PRINT_INDENT__@@"};var b=function(A){if(h.inlineCharacterLimit===void 0)return A;var S=A.replace(new RegExp(m.newLine,"g"),"").replace(new RegExp(m.newLineOrSpace,"g")," ").replace(new RegExp(m.pad+"|"+m.indent,"g"),"");return S.length<=h.inlineCharacterLimit?S:A.replace(new RegExp(m.newLine+"|"+m.newLineOrSpace,"g"),`
|
|
1021
|
+
`).replace(new RegExp(m.pad,"g"),d).replace(new RegExp(m.indent,"g"),d+h.indent)};if(n.indexOf(p)!==-1)return'"[Circular]"';if(p==null||typeof p=="number"||typeof p=="boolean"||typeof p=="function"||typeof p=="symbol"||o(p))return String(p);if(p instanceof Date)return"new Date('"+p.toISOString()+"')";if(Array.isArray(p)){if(p.length===0)return"[]";n.push(p);var E="["+m.newLine+p.map(function(A,S){var k=p.length-1===S?m.newLine:","+m.newLineOrSpace,O=s(A,h,d+h.indent);return h.transform&&(O=h.transform(p,S,O)),m.indent+O+k}).join("")+m.pad+"]";return n.pop(),b(E)}if(i(p)){var w=r(Object.keys(p),a(p));if(h.filter&&(w=w.filter(function(S){return h.filter&&h.filter(p,S)})),w.length===0)return"{}";n.push(p);var E="{"+m.newLine+w.map(function(S,k){var O=w.length-1===k?m.newLine:","+m.newLineOrSpace,R=typeof S=="symbol",y=!R&&/^[a-z$_][a-z$_0-9]*$/i.test(S.toString()),T=R||y?S:s(S,h),_=s(p[S],h,d+h.indent);return h.transform&&(_=h.transform(p,S,_)),m.indent+String(T)+": "+_+O}).join("")+m.pad+"}";return n.pop(),b(E)}return p=String(p).replace(/[\r\n]/g,function(A){return A===`
|
|
1022
|
+
`?"\\n":"\\r"}),h.singleQuotes?(p=p.replace(/\\?'/g,"\\'"),"'"+p+"'"):(p=p.replace(/"/g,'\\"'),'"'+p+'"')}e.prettyPrint=s}}),G2=ht({"../../node_modules/react-element-to-jsx-string/node_modules/react-is/cjs/react-is.production.min.js"(e){var t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),p=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),E;E=Symbol.for("react.module.reference");function w(A){if(typeof A=="object"&&A!==null){var S=A.$$typeof;switch(S){case t:switch(A=A.type,A){case n:case o:case i:case d:case f:return A;default:switch(A=A&&A.$$typeof,A){case p:case s:case l:case m:case h:case a:return A;default:return S}}case r:return S}}}e.ContextConsumer=s,e.ContextProvider=a,e.Element=t,e.ForwardRef=l,e.Fragment=n,e.Lazy=m,e.Memo=h,e.Portal=r,e.Profiler=o,e.StrictMode=i,e.Suspense=d,e.SuspenseList=f,e.isAsyncMode=function(){return!1},e.isConcurrentMode=function(){return!1},e.isContextConsumer=function(A){return w(A)===s},e.isContextProvider=function(A){return w(A)===a},e.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===t},e.isForwardRef=function(A){return w(A)===l},e.isFragment=function(A){return w(A)===n},e.isLazy=function(A){return w(A)===m},e.isMemo=function(A){return w(A)===h},e.isPortal=function(A){return w(A)===r},e.isProfiler=function(A){return w(A)===o},e.isStrictMode=function(A){return w(A)===i},e.isSuspense=function(A){return w(A)===d},e.isSuspenseList=function(A){return w(A)===f},e.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===n||A===o||A===i||A===d||A===f||A===b||typeof A=="object"&&A!==null&&(A.$$typeof===m||A.$$typeof===h||A.$$typeof===a||A.$$typeof===s||A.$$typeof===l||A.$$typeof===E||A.getModuleId!==void 0)},e.typeOf=w}}),z2=ht({"../../node_modules/react-element-to-jsx-string/node_modules/react-is/index.js"(e,t){t.exports=G2()}}),W2=e=>e.$$typeof===Symbol.for("react.memo");function vm(e){return Object.prototype.toString.call(e)==="[object Object]"}function Y2(e){var t,r;return vm(e)===!1?!1:(t=e.constructor,t===void 0?!0:(r=t.prototype,!(vm(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)))}var K2=ji(H2()),Pr=ji(z2()),Wr=(function(e,t){return e===0?"":new Array(e*t).fill(" ").join("")});function kl(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function X2(e){if(Array.isArray(e))return kl(e)}function Q2(e,t,r){return(t=i4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Z2(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function e4(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1023
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Am(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function t4(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Am(Object(r),!0).forEach(function(n){Q2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Am(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function r4(e){return X2(e)||Z2(e)||o4(e)||e4()}function n4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function i4(e){var t=n4(e,"string");return typeof t=="symbol"?t:t+""}function Io(e){"@babel/helpers - typeof";return Io=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},Io(e)}function o4(e,t){if(e){if(typeof e=="string")return kl(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?kl(e,t):void 0}}function Ml(e,t){if(e===null||Io(e)!=="object"||e instanceof Date||e instanceof RegExp)return e;if(mr.isValidElement(e)){var r=t4({},e);return delete r._owner,r}return t.add(e),Array.isArray(e)?e.map(function(n){return Ml(n,t)}):Object.keys(e).sort().reduce(function(n,i){return i==="current"||t.has(e[i])?n[i]="[Circular]":n[i]=Ml(e[i],t),n},{})}function a4(e){return Ml(e,new WeakSet)}var Dw=function(e){return{type:"string",value:e}},s4=function(e){return{type:"number",value:e}},u4=function(e,t,r,n){return{type:"ReactElement",displayName:e,props:t,defaultProps:r,childrens:n}},l4=function(e,t){return{type:"ReactFragment",key:e,childrens:t}},c4=!!mr.Fragment,Rw=function(e){return!e.name||e.name==="_default"?"No Display Name":e.name},ql=function(e){switch(!0){case!!e.displayName:return e.displayName;case e.$$typeof===Pr.Memo:return ql(e.type);case e.$$typeof===Pr.ForwardRef:return ql(e.render);default:return Rw(e)}},p4=function(e){switch(!0){case typeof e.type=="string":return e.type;case typeof e.type=="function":return e.type.displayName?e.type.displayName:Rw(e.type);case(0,Pr.isForwardRef)(e):case(0,Pr.isMemo)(e):return ql(e.type);case(0,Pr.isContextConsumer)(e):return"".concat(e.type._context.displayName||"Context",".Consumer");case(0,Pr.isContextProvider)(e):return"".concat(e.type._context.displayName||"Context",".Provider");case(0,Pr.isLazy)(e):return"Lazy";case(0,Pr.isProfiler)(e):return"Profiler";case(0,Pr.isStrictMode)(e):return"StrictMode";case(0,Pr.isSuspense)(e):return"Suspense";default:return"UnknownElementType"}},wm=function(e,t){return t!=="children"},d4=function(e){return e!==!0&&e!==!1&&e!==null&&e!==""},Cm=function(e,t){var r={};return Object.keys(e).filter(function(n){return t(e[n],n)}).forEach(function(n){return r[n]=e[n]}),r},Ns=function(e,t){var r=t.displayName,n=r===void 0?p4:r;if(typeof e=="string")return Dw(e);if(typeof e=="number")return s4(e);if(!yn.isValidElement(e))throw new Error("react-element-to-jsx-string: Expected a React.Element, got `".concat(Io(e),"`"));var i=n(e),o=Cm(e.props,wm);e.ref!==null&&(o.ref=e.ref);var a=e.key;typeof a=="string"&&a.search(/^\./)&&(o.key=a);var s=Cm(e.type.defaultProps||{},wm),p=yn.Children.toArray(e.props.children).filter(d4).map(function(l){return Ns(l,t)});return c4&&e.type===mr.Fragment?l4(a,p):u4(i,o,s,p)};function f4(){}var h4=function(e){return e.toString().split(`
|
|
1024
|
+
`).map(function(t){return t.trim()}).join("")},_m=h4,Pw=(function(e,t){var r=t.functionValue,n=r===void 0?_m:r,i=t.showFunctions;return n(!i&&n===_m?f4:e)}),m4=(function(e,t,r,n){var i=a4(e),o=(0,K2.prettyPrint)(i,{transform:function(a,s,p){var l=a[s];return l&&mr.isValidElement(l)?Is(Ns(l,n),!0,r,n):typeof l=="function"?Pw(l,n):p}});return t?o.replace(/\s+/g," ").replace(/{ /g,"{").replace(/ }/g,"}").replace(/\[ /g,"[").replace(/ ]/g,"]"):o.replace(/\t/g,Wr(1,n.tabStop)).replace(/\n([^$])/g,`
|
|
1025
|
+
`.concat(Wr(r+1,n.tabStop),"$1"))}),y4=function(e){return e.replace(/"/g,""")},g4=function(e,t,r,n){if(typeof e=="number")return"{".concat(String(e),"}");if(typeof e=="string")return'"'.concat(y4(e),'"');if(Io(e)==="symbol"){var i=e.valueOf().toString().replace(/Symbol\((.*)\)/,"$1");return i?"{Symbol('".concat(i,"')}"):"{Symbol()}"}return typeof e=="function"?"{".concat(Pw(e,n),"}"):mr.isValidElement(e)?"{".concat(Is(Ns(e,n),!0,r,n),"}"):e instanceof Date?isNaN(e.valueOf())?"{new Date(NaN)}":'{new Date("'.concat(e.toISOString(),'")}'):Y2(e)||Array.isArray(e)?"{".concat(m4(e,t,r,n),"}"):"{".concat(String(e),"}")},b4=(function(e,t,r,n,i,o,a,s){if(!t&&!n)throw new Error('The prop "'.concat(e,'" has no value and no default: could not be formatted'));var p=t?r:i,l=s.useBooleanShorthandSyntax,d=s.tabStop,f=g4(p,o,a,s),h=" ",m=`
|
|
1026
|
+
`.concat(Wr(a+1,d)),b=f.includes(`
|
|
1027
|
+
`);return l&&f==="{false}"&&!n?(h="",m=""):l&&f==="{true}"?(h+="".concat(e),m+="".concat(e)):(h+="".concat(e,"=").concat(f),m+="".concat(e,"=").concat(f)),{attributeFormattedInline:h,attributeFormattedMultiline:m,isMultilineAttribute:b}}),E4=(function(e,t){var r=e.slice(0,e.length>0?e.length-1:0),n=e[e.length-1];return n&&(t.type==="string"||t.type==="number")&&(n.type==="string"||n.type==="number")?r.push(Dw(String(n.value)+String(t.value))):(n&&r.push(n),r.push(t)),r}),v4=function(e){return["key","ref"].includes(e)},A4=(function(e){return function(t){var r=t.includes("key"),n=t.includes("ref"),i=t.filter(function(a){return!v4(a)}),o=r4(e?i.sort():i);return n&&o.unshift("ref"),r&&o.unshift("key"),o}});function w4(e,t){return Array.isArray(t)?function(r){return t.indexOf(r)===-1}:function(r){return t(e[r],r)}}var C4=function(e,t,r,n,i){var o=i.tabStop;return e.type==="string"?t.split(`
|
|
1028
|
+
`).map(function(a,s){return s===0?a:"".concat(Wr(n,o)).concat(a)}).join(`
|
|
1029
|
+
`):t},_4=function(e,t,r){return function(n){return C4(n,Is(n,e,t,r),e,t,r)}},T4=function(e,t){return function(r){var n=Object.keys(e).includes(r);return!n||n&&e[r]!==t[r]}},Ow=function(e,t,r,n,i){return i?Wr(r,n).length+t.length>i:e.length>1},S4=function(e,t,r,n,i,o,a){return(Ow(e,t,i,o,a)||r)&&!n},Fw=(function(e,t,r,n){var i=e.type,o=e.displayName,a=o===void 0?"":o,s=e.childrens,p=e.props,l=p===void 0?{}:p,d=e.defaultProps,f=d===void 0?{}:d;if(i!=="ReactElement")throw new Error('The "formatReactElementNode" function could only format node of type "ReactElement". Given: '.concat(i));var h=n.filterProps,m=n.maxInlineAttributesLineLength,b=n.showDefaultProps,E=n.sortProps,w=n.tabStop,A="<".concat(a),S=A,k=A,O=!1,R=[],y=w4(l,h);Object.keys(l).filter(y).filter(T4(f,l)).forEach(function(D){return R.push(D)}),Object.keys(f).filter(y).filter(function(){return b}).filter(function(D){return!R.includes(D)}).forEach(function(D){return R.push(D)});var T=A4(E)(R);if(T.forEach(function(D){var J=b4(D,Object.keys(l).includes(D),l[D],Object.keys(f).includes(D),f[D],t,r,n),M=J.attributeFormattedInline,G=J.attributeFormattedMultiline,L=J.isMultilineAttribute;L&&(O=!0),S+=M,k+=G}),k+=`
|
|
1030
|
+
`.concat(Wr(r,w)),S4(T,S,O,t,r,w,m)?A=k:A=S,s&&s.length>0){var _=r+1;A+=">",t||(A+=`
|
|
1031
|
+
`,A+=Wr(_,w)),A+=s.reduce(E4,[]).map(_4(t,_,n)).join(t?"":`
|
|
1032
|
+
`.concat(Wr(_,w))),t||(A+=`
|
|
1033
|
+
`,A+=Wr(_-1,w)),A+="</".concat(a,">")}else Ow(T,S,r,w,m)||(A+=" "),A+="/>";return A}),x4="",Tm="React.Fragment",D4=function(e,t,r){var n={};return t&&(n={key:t}),{type:"ReactElement",displayName:e,props:n,defaultProps:{},childrens:r}},R4=function(e){var t=e.key;return!!t},P4=function(e){var t=e.childrens;return t.length===0},O4=(function(e,t,r,n){var i=e.type,o=e.key,a=e.childrens;if(i!=="ReactFragment")throw new Error('The "formatReactFragmentNode" function could only format node of type "ReactFragment". Given: '.concat(i));var s=n.useFragmentShortSyntax,p;return s?P4(e)||R4(e)?p=Tm:p=x4:p=Tm,Fw(D4(p,o,a),t,r,n)}),F4=["<",">","{","}"],N4=function(e){return F4.some(function(t){return e.includes(t)})},I4=function(e){return N4(e)?"{`".concat(e,"`}"):e},B4=function(e){var t=e;return t.endsWith(" ")&&(t=t.replace(/^(.*?)(\s+)$/,"$1{'$2'}")),t.startsWith(" ")&&(t=t.replace(/^(\s+)(.*)$/,"{'$1'}$2")),t},Is=(function(e,t,r,n){if(e.type==="number")return String(e.value);if(e.type==="string")return e.value?"".concat(B4(I4(String(e.value)))):"";if(e.type==="ReactElement")return Fw(e,t,r,n);if(e.type==="ReactFragment")return O4(e,t,r,n);throw new TypeError('Unknow format type "'.concat(e.type,'"'))}),k4=(function(e,t){return Is(e,!1,0,t)}),M4=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.filterProps,n=r===void 0?[]:r,i=t.showDefaultProps,o=i===void 0?!0:i,a=t.showFunctions,s=a===void 0?!1:a,p=t.functionValue,l=t.tabStop,d=l===void 0?2:l,f=t.useBooleanShorthandSyntax,h=f===void 0?!0:f,m=t.useFragmentShortSyntax,b=m===void 0?!0:m,E=t.sortProps,w=E===void 0?!0:E,A=t.maxInlineAttributesLineLength,S=t.displayName;if(!e)throw new Error("react-element-to-jsx-string: Expected a ReactElement");var k={filterProps:n,showDefaultProps:o,showFunctions:s,functionValue:p,tabStop:d,useBooleanShorthandSyntax:h,useFragmentShortSyntax:b,sortProps:w,maxInlineAttributesLineLength:A,displayName:S};return k4(Ns(e,k),k)},q4=ht({"../../node_modules/estraverse/estraverse.js"(e){(function t(r){var n,i,o,a,s,p;function l(R){var y={},T,_;for(T in R)R.hasOwnProperty(T)&&(_=R[T],typeof _=="object"&&_!==null?y[T]=l(_):y[T]=_);return y}function d(R,y){var T,_,D,J;for(_=R.length,D=0;_;)T=_>>>1,J=D+T,y(R[J])?_=T:(D=J+1,_-=T+1);return D}n={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",PrivateIdentifier:"PrivateIdentifier",Program:"Program",Property:"Property",PropertyDefinition:"PropertyDefinition",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},o={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},a={},s={},p={},i={Break:a,Skip:s,Remove:p};function f(R,y){this.parent=R,this.key=y}f.prototype.replace=function(R){this.parent[this.key]=R},f.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)};function h(R,y,T,_){this.node=R,this.path=y,this.wrap=T,this.ref=_}function m(){}m.prototype.path=function(){var R,y,T,_,D,J;function M(G,L){if(Array.isArray(L))for(T=0,_=L.length;T<_;++T)G.push(L[T]);else G.push(L)}if(!this.__current.path)return null;for(D=[],R=2,y=this.__leavelist.length;R<y;++R)J=this.__leavelist[R],M(D,J.path);return M(D,this.__current.path),D},m.prototype.type=function(){var R=this.current();return R.type||this.__current.wrap},m.prototype.parents=function(){var R,y,T;for(T=[],R=1,y=this.__leavelist.length;R<y;++R)T.push(this.__leavelist[R].node);return T},m.prototype.current=function(){return this.__current.node},m.prototype.__execute=function(R,y){var T,_;return _=void 0,T=this.__current,this.__current=y,this.__state=null,R&&(_=R.call(this,y.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=T,_},m.prototype.notify=function(R){this.__state=R},m.prototype.skip=function(){this.notify(s)},m.prototype.break=function(){this.notify(a)},m.prototype.remove=function(){this.notify(p)},m.prototype.__initialize=function(R,y){this.visitor=y,this.root=R,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback=null,y.fallback==="iteration"?this.__fallback=Object.keys:typeof y.fallback=="function"&&(this.__fallback=y.fallback),this.__keys=o,y.keys&&(this.__keys=Object.assign(Object.create(this.__keys),y.keys))};function b(R){return R==null?!1:typeof R=="object"&&typeof R.type=="string"}function E(R,y){return(R===n.ObjectExpression||R===n.ObjectPattern)&&y==="properties"}function w(R,y){for(var T=R.length-1;T>=0;--T)if(R[T].node===y)return!0;return!1}m.prototype.traverse=function(R,y){var T,_,D,J,M,G,L,I,$,Y,X,oe;for(this.__initialize(R,y),oe={},T=this.__worklist,_=this.__leavelist,T.push(new h(R,null,null,null)),_.push(new h(null,null,null,null));T.length;){if(D=T.pop(),D===oe){if(D=_.pop(),G=this.__execute(y.leave,D),this.__state===a||G===a)return;continue}if(D.node){if(G=this.__execute(y.enter,D),this.__state===a||G===a)return;if(T.push(oe),_.push(D),this.__state===s||G===s)continue;if(J=D.node,M=J.type||D.wrap,Y=this.__keys[M],!Y)if(this.__fallback)Y=this.__fallback(J);else throw new Error("Unknown node type "+M+".");for(I=Y.length;(I-=1)>=0;)if(L=Y[I],X=J[L],!!X){if(Array.isArray(X)){for($=X.length;($-=1)>=0;)if(X[$]&&!w(_,X[$])){if(E(M,Y[I]))D=new h(X[$],[L,$],"Property",null);else if(b(X[$]))D=new h(X[$],[L,$],null,null);else continue;T.push(D)}}else if(b(X)){if(w(_,X))continue;T.push(new h(X,L,null,null))}}}}},m.prototype.replace=function(R,y){var T,_,D,J,M,G,L,I,$,Y,X,oe,ve;function De(z){var K,be,me,fe;if(z.ref.remove()){for(be=z.ref.key,fe=z.ref.parent,K=T.length;K--;)if(me=T[K],me.ref&&me.ref.parent===fe){if(me.ref.key<be)break;--me.ref.key}}}for(this.__initialize(R,y),X={},T=this.__worklist,_=this.__leavelist,oe={root:R},G=new h(R,null,null,new f(oe,"root")),T.push(G),_.push(G);T.length;){if(G=T.pop(),G===X){if(G=_.pop(),M=this.__execute(y.leave,G),M!==void 0&&M!==a&&M!==s&&M!==p&&G.ref.replace(M),(this.__state===p||M===p)&&De(G),this.__state===a||M===a)return oe.root;continue}if(M=this.__execute(y.enter,G),M!==void 0&&M!==a&&M!==s&&M!==p&&(G.ref.replace(M),G.node=M),(this.__state===p||M===p)&&(De(G),G.node=null),this.__state===a||M===a)return oe.root;if(D=G.node,!!D&&(T.push(X),_.push(G),!(this.__state===s||M===s))){if(J=D.type||G.wrap,$=this.__keys[J],!$)if(this.__fallback)$=this.__fallback(D);else throw new Error("Unknown node type "+J+".");for(L=$.length;(L-=1)>=0;)if(ve=$[L],Y=D[ve],!!Y)if(Array.isArray(Y)){for(I=Y.length;(I-=1)>=0;)if(Y[I]){if(E(J,$[L]))G=new h(Y[I],[ve,I],"Property",new f(Y,I));else if(b(Y[I]))G=new h(Y[I],[ve,I],null,new f(Y,I));else continue;T.push(G)}}else b(Y)&&T.push(new h(Y,ve,null,new f(D,ve)))}}return oe.root};function A(R,y){var T=new m;return T.traverse(R,y)}function S(R,y){var T=new m;return T.replace(R,y)}function k(R,y){var T;return T=d(y,function(_){return _.range[0]>R.range[0]}),R.extendedRange=[R.range[0],R.range[1]],T!==y.length&&(R.extendedRange[1]=y[T].range[0]),T-=1,T>=0&&(R.extendedRange[0]=y[T].range[1]),R}function O(R,y,T){var _=[],D,J,M,G;if(!R.range)throw new Error("attachComments needs range information");if(!T.length){if(y.length){for(M=0,J=y.length;M<J;M+=1)D=l(y[M]),D.extendedRange=[0,R.range[0]],_.push(D);R.leadingComments=_}return R}for(M=0,J=y.length;M<J;M+=1)_.push(k(l(y[M]),T));return G=0,A(R,{enter:function(L){for(var I;G<_.length&&(I=_[G],!(I.extendedRange[1]>L.range[0]));)I.extendedRange[1]===L.range[0]?(L.leadingComments||(L.leadingComments=[]),L.leadingComments.push(I),_.splice(G,1)):G+=1;if(G===_.length)return i.Break;if(_[G].extendedRange[0]>L.range[1])return i.Skip}}),G=0,A(R,{leave:function(L){for(var I;G<_.length&&(I=_[G],!(L.range[1]<I.extendedRange[0]));)L.range[1]===I.extendedRange[0]?(L.trailingComments||(L.trailingComments=[]),L.trailingComments.push(I),_.splice(G,1)):G+=1;if(G===_.length)return i.Break;if(_[G].extendedRange[0]>L.range[1])return i.Skip}}),R}return r.Syntax=n,r.traverse=A,r.replace=S,r.attachComments=O,r.VisitorKeys=o,r.VisitorOption=i,r.Controller=m,r.cloneEnvironment=function(){return t({})},r})(e)}}),j4=ht({"../../node_modules/esutils/lib/ast.js"(e,t){(function(){function r(p){if(p==null)return!1;switch(p.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1}function n(p){if(p==null)return!1;switch(p.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1}function i(p){if(p==null)return!1;switch(p.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function o(p){return i(p)||p!=null&&p.type==="FunctionDeclaration"}function a(p){switch(p.type){case"IfStatement":return p.alternate!=null?p.alternate:p.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return p.body}return null}function s(p){var l;if(p.type!=="IfStatement"||p.alternate==null)return!1;l=p.consequent;do{if(l.type==="IfStatement"&&l.alternate==null)return!0;l=a(l)}while(l);return!1}t.exports={isExpression:r,isStatement:i,isIterationStatement:n,isSourceElement:o,isProblematicIfStatement:s,trailingStatement:a}})()}}),Nw=ht({"../../node_modules/esutils/lib/code.js"(e,t){(function(){var r,n,i,o,a,s;n={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},r={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};function p(S){return 48<=S&&S<=57}function l(S){return 48<=S&&S<=57||97<=S&&S<=102||65<=S&&S<=70}function d(S){return S>=48&&S<=55}i=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function f(S){return S===32||S===9||S===11||S===12||S===160||S>=5760&&i.indexOf(S)>=0}function h(S){return S===10||S===13||S===8232||S===8233}function m(S){if(S<=65535)return String.fromCharCode(S);var k=String.fromCharCode(Math.floor((S-65536)/1024)+55296),O=String.fromCharCode((S-65536)%1024+56320);return k+O}for(o=new Array(128),s=0;s<128;++s)o[s]=s>=97&&s<=122||s>=65&&s<=90||s===36||s===95;for(a=new Array(128),s=0;s<128;++s)a[s]=s>=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||s===36||s===95;function b(S){return S<128?o[S]:n.NonAsciiIdentifierStart.test(m(S))}function E(S){return S<128?a[S]:n.NonAsciiIdentifierPart.test(m(S))}function w(S){return S<128?o[S]:r.NonAsciiIdentifierStart.test(m(S))}function A(S){return S<128?a[S]:r.NonAsciiIdentifierPart.test(m(S))}t.exports={isDecimalDigit:p,isHexDigit:l,isOctalDigit:d,isWhiteSpace:f,isLineTerminator:h,isIdentifierStartES5:b,isIdentifierPartES5:E,isIdentifierStartES6:w,isIdentifierPartES6:A}})()}}),L4=ht({"../../node_modules/esutils/lib/keyword.js"(e,t){(function(){var r=Nw();function n(b){switch(b){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}function i(b,E){return!E&&b==="yield"?!1:o(b,E)}function o(b,E){if(E&&n(b))return!0;switch(b.length){case 2:return b==="if"||b==="in"||b==="do";case 3:return b==="var"||b==="for"||b==="new"||b==="try";case 4:return b==="this"||b==="else"||b==="case"||b==="void"||b==="with"||b==="enum";case 5:return b==="while"||b==="break"||b==="catch"||b==="throw"||b==="const"||b==="yield"||b==="class"||b==="super";case 6:return b==="return"||b==="typeof"||b==="delete"||b==="switch"||b==="export"||b==="import";case 7:return b==="default"||b==="finally"||b==="extends";case 8:return b==="function"||b==="continue"||b==="debugger";case 10:return b==="instanceof";default:return!1}}function a(b,E){return b==="null"||b==="true"||b==="false"||i(b,E)}function s(b,E){return b==="null"||b==="true"||b==="false"||o(b,E)}function p(b){return b==="eval"||b==="arguments"}function l(b){var E,w,A;if(b.length===0||(A=b.charCodeAt(0),!r.isIdentifierStartES5(A)))return!1;for(E=1,w=b.length;E<w;++E)if(A=b.charCodeAt(E),!r.isIdentifierPartES5(A))return!1;return!0}function d(b,E){return(b-55296)*1024+(E-56320)+65536}function f(b){var E,w,A,S,k;if(b.length===0)return!1;for(k=r.isIdentifierStartES6,E=0,w=b.length;E<w;++E){if(A=b.charCodeAt(E),55296<=A&&A<=56319){if(++E,E>=w||(S=b.charCodeAt(E),!(56320<=S&&S<=57343)))return!1;A=d(A,S)}if(!k(A))return!1;k=r.isIdentifierPartES6}return!0}function h(b,E){return l(b)&&!a(b,E)}function m(b,E){return f(b)&&!s(b,E)}t.exports={isKeywordES5:i,isKeywordES6:o,isReservedWordES5:a,isReservedWordES6:s,isRestrictedWord:p,isIdentifierNameES5:l,isIdentifierNameES6:f,isIdentifierES5:h,isIdentifierES6:m}})()}}),V4=ht({"../../node_modules/esutils/lib/utils.js"(e){(function(){e.ast=j4(),e.code=Nw(),e.keyword=L4()})()}}),$4=ht({"../../node_modules/escodegen/node_modules/source-map/lib/base64.js"(e){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");e.encode=function(r){if(0<=r&&r<t.length)return t[r];throw new TypeError("Must be between 0 and 63: "+r)},e.decode=function(r){var n=65,i=90,o=97,a=122,s=48,p=57,l=43,d=47,f=26,h=52;return n<=r&&r<=i?r-n:o<=r&&r<=a?r-o+f:s<=r&&r<=p?r-s+h:r==l?62:r==d?63:-1}}}),Iw=ht({"../../node_modules/escodegen/node_modules/source-map/lib/base64-vlq.js"(e){var t=$4(),r=5,n=1<<r,i=n-1,o=n;function a(p){return p<0?(-p<<1)+1:(p<<1)+0}function s(p){var l=(p&1)===1,d=p>>1;return l?-d:d}e.encode=function(p){var l="",d,f=a(p);do d=f&i,f>>>=r,f>0&&(d|=o),l+=t.encode(d);while(f>0);return l},e.decode=function(p,l,d){var f=p.length,h=0,m=0,b,E;do{if(l>=f)throw new Error("Expected more digits in base 64 VLQ value.");if(E=t.decode(p.charCodeAt(l++)),E===-1)throw new Error("Invalid base64 digit: "+p.charAt(l-1));b=!!(E&o),E&=i,h=h+(E<<m),m+=r}while(b);d.value=s(h),d.rest=l}}}),Yo=ht({"../../node_modules/escodegen/node_modules/source-map/lib/util.js"(e){function t(O,R,y){if(R in O)return O[R];if(arguments.length===3)return y;throw new Error('"'+R+'" is a required argument.')}e.getArg=t;var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,n=/^data:.+\,.+$/;function i(O){var R=O.match(r);return R?{scheme:R[1],auth:R[2],host:R[3],port:R[4],path:R[5]}:null}e.urlParse=i;function o(O){var R="";return O.scheme&&(R+=O.scheme+":"),R+="//",O.auth&&(R+=O.auth+"@"),O.host&&(R+=O.host),O.port&&(R+=":"+O.port),O.path&&(R+=O.path),R}e.urlGenerate=o;function a(O){var R=O,y=i(O);if(y){if(!y.path)return O;R=y.path}for(var T=e.isAbsolute(R),_=R.split(/\/+/),D,J=0,M=_.length-1;M>=0;M--)D=_[M],D==="."?_.splice(M,1):D===".."?J++:J>0&&(D===""?(_.splice(M+1,J),J=0):(_.splice(M,2),J--));return R=_.join("/"),R===""&&(R=T?"/":"."),y?(y.path=R,o(y)):R}e.normalize=a;function s(O,R){O===""&&(O="."),R===""&&(R=".");var y=i(R),T=i(O);if(T&&(O=T.path||"/"),y&&!y.scheme)return T&&(y.scheme=T.scheme),o(y);if(y||R.match(n))return R;if(T&&!T.host&&!T.path)return T.host=R,o(T);var _=R.charAt(0)==="/"?R:a(O.replace(/\/+$/,"")+"/"+R);return T?(T.path=_,o(T)):_}e.join=s,e.isAbsolute=function(O){return O.charAt(0)==="/"||r.test(O)};function p(O,R){O===""&&(O="."),O=O.replace(/\/$/,"");for(var y=0;R.indexOf(O+"/")!==0;){var T=O.lastIndexOf("/");if(T<0||(O=O.slice(0,T),O.match(/^([^\/]+:\/)?\/*$/)))return R;++y}return Array(y+1).join("../")+R.substr(O.length+1)}e.relative=p;var l=(function(){var O=Object.create(null);return!("__proto__"in O)})();function d(O){return O}function f(O){return m(O)?"$"+O:O}e.toSetString=l?d:f;function h(O){return m(O)?O.slice(1):O}e.fromSetString=l?d:h;function m(O){if(!O)return!1;var R=O.length;if(R<9||O.charCodeAt(R-1)!==95||O.charCodeAt(R-2)!==95||O.charCodeAt(R-3)!==111||O.charCodeAt(R-4)!==116||O.charCodeAt(R-5)!==111||O.charCodeAt(R-6)!==114||O.charCodeAt(R-7)!==112||O.charCodeAt(R-8)!==95||O.charCodeAt(R-9)!==95)return!1;for(var y=R-10;y>=0;y--)if(O.charCodeAt(y)!==36)return!1;return!0}function b(O,R,y){var T=w(O.source,R.source);return T!==0||(T=O.originalLine-R.originalLine,T!==0)||(T=O.originalColumn-R.originalColumn,T!==0||y)||(T=O.generatedColumn-R.generatedColumn,T!==0)||(T=O.generatedLine-R.generatedLine,T!==0)?T:w(O.name,R.name)}e.compareByOriginalPositions=b;function E(O,R,y){var T=O.generatedLine-R.generatedLine;return T!==0||(T=O.generatedColumn-R.generatedColumn,T!==0||y)||(T=w(O.source,R.source),T!==0)||(T=O.originalLine-R.originalLine,T!==0)||(T=O.originalColumn-R.originalColumn,T!==0)?T:w(O.name,R.name)}e.compareByGeneratedPositionsDeflated=E;function w(O,R){return O===R?0:O===null?1:R===null?-1:O>R?1:-1}function A(O,R){var y=O.generatedLine-R.generatedLine;return y!==0||(y=O.generatedColumn-R.generatedColumn,y!==0)||(y=w(O.source,R.source),y!==0)||(y=O.originalLine-R.originalLine,y!==0)||(y=O.originalColumn-R.originalColumn,y!==0)?y:w(O.name,R.name)}e.compareByGeneratedPositionsInflated=A;function S(O){return JSON.parse(O.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=S;function k(O,R,y){if(R=R||"",O&&(O[O.length-1]!=="/"&&R[0]!=="/"&&(O+="/"),R=O+R),y){var T=i(y);if(!T)throw new Error("sourceMapURL could not be parsed");if(T.path){var _=T.path.lastIndexOf("/");_>=0&&(T.path=T.path.substring(0,_+1))}R=s(o(T),R)}return a(R)}e.computeSourceURL=k}}),Bw=ht({"../../node_modules/escodegen/node_modules/source-map/lib/array-set.js"(e){var t=Yo(),r=Object.prototype.hasOwnProperty,n=typeof Map<"u";function i(){this._array=[],this._set=n?new Map:Object.create(null)}i.fromArray=function(o,a){for(var s=new i,p=0,l=o.length;p<l;p++)s.add(o[p],a);return s},i.prototype.size=function(){return n?this._set.size:Object.getOwnPropertyNames(this._set).length},i.prototype.add=function(o,a){var s=n?o:t.toSetString(o),p=n?this.has(o):r.call(this._set,s),l=this._array.length;(!p||a)&&this._array.push(o),p||(n?this._set.set(o,l):this._set[s]=l)},i.prototype.has=function(o){if(n)return this._set.has(o);var a=t.toSetString(o);return r.call(this._set,a)},i.prototype.indexOf=function(o){if(n){var a=this._set.get(o);if(a>=0)return a}else{var s=t.toSetString(o);if(r.call(this._set,s))return this._set[s]}throw new Error('"'+o+'" is not in the set.')},i.prototype.at=function(o){if(o>=0&&o<this._array.length)return this._array[o];throw new Error("No element indexed by "+o)},i.prototype.toArray=function(){return this._array.slice()},e.ArraySet=i}}),U4=ht({"../../node_modules/escodegen/node_modules/source-map/lib/mapping-list.js"(e){var t=Yo();function r(i,o){var a=i.generatedLine,s=o.generatedLine,p=i.generatedColumn,l=o.generatedColumn;return s>a||s==a&&l>=p||t.compareByGeneratedPositionsInflated(i,o)<=0}function n(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}n.prototype.unsortedForEach=function(i,o){this._array.forEach(i,o)},n.prototype.add=function(i){r(this._last,i)?(this._last=i,this._array.push(i)):(this._sorted=!1,this._array.push(i))},n.prototype.toArray=function(){return this._sorted||(this._array.sort(t.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},e.MappingList=n}}),kw=ht({"../../node_modules/escodegen/node_modules/source-map/lib/source-map-generator.js"(e){var t=Iw(),r=Yo(),n=Bw().ArraySet,i=U4().MappingList;function o(a){a||(a={}),this._file=r.getArg(a,"file",null),this._sourceRoot=r.getArg(a,"sourceRoot",null),this._skipValidation=r.getArg(a,"skipValidation",!1),this._sources=new n,this._names=new n,this._mappings=new i,this._sourcesContents=null}o.prototype._version=3,o.fromSourceMap=function(a){var s=a.sourceRoot,p=new o({file:a.file,sourceRoot:s});return a.eachMapping(function(l){var d={generated:{line:l.generatedLine,column:l.generatedColumn}};l.source!=null&&(d.source=l.source,s!=null&&(d.source=r.relative(s,d.source)),d.original={line:l.originalLine,column:l.originalColumn},l.name!=null&&(d.name=l.name)),p.addMapping(d)}),a.sources.forEach(function(l){var d=l;s!==null&&(d=r.relative(s,l)),p._sources.has(d)||p._sources.add(d);var f=a.sourceContentFor(l);f!=null&&p.setSourceContent(l,f)}),p},o.prototype.addMapping=function(a){var s=r.getArg(a,"generated"),p=r.getArg(a,"original",null),l=r.getArg(a,"source",null),d=r.getArg(a,"name",null);this._skipValidation||this._validateMapping(s,p,l,d),l!=null&&(l=String(l),this._sources.has(l)||this._sources.add(l)),d!=null&&(d=String(d),this._names.has(d)||this._names.add(d)),this._mappings.add({generatedLine:s.line,generatedColumn:s.column,originalLine:p!=null&&p.line,originalColumn:p!=null&&p.column,source:l,name:d})},o.prototype.setSourceContent=function(a,s){var p=a;this._sourceRoot!=null&&(p=r.relative(this._sourceRoot,p)),s!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[r.toSetString(p)]=s):this._sourcesContents&&(delete this._sourcesContents[r.toSetString(p)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},o.prototype.applySourceMap=function(a,s,p){var l=s;if(s==null){if(a.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);l=a.file}var d=this._sourceRoot;d!=null&&(l=r.relative(d,l));var f=new n,h=new n;this._mappings.unsortedForEach(function(m){if(m.source===l&&m.originalLine!=null){var b=a.originalPositionFor({line:m.originalLine,column:m.originalColumn});b.source!=null&&(m.source=b.source,p!=null&&(m.source=r.join(p,m.source)),d!=null&&(m.source=r.relative(d,m.source)),m.originalLine=b.line,m.originalColumn=b.column,b.name!=null&&(m.name=b.name))}var E=m.source;E!=null&&!f.has(E)&&f.add(E);var w=m.name;w!=null&&!h.has(w)&&h.add(w)},this),this._sources=f,this._names=h,a.sources.forEach(function(m){var b=a.sourceContentFor(m);b!=null&&(p!=null&&(m=r.join(p,m)),d!=null&&(m=r.relative(d,m)),this.setSourceContent(m,b))},this)},o.prototype._validateMapping=function(a,s,p,l){if(s&&typeof s.line!="number"&&typeof s.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(a&&"line"in a&&"column"in a&&a.line>0&&a.column>=0&&!s&&!p&&!l)){if(a&&"line"in a&&"column"in a&&s&&"line"in s&&"column"in s&&a.line>0&&a.column>=0&&s.line>0&&s.column>=0&&p)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:a,source:p,original:s,name:l}))}},o.prototype._serializeMappings=function(){for(var a=0,s=1,p=0,l=0,d=0,f=0,h="",m,b,E,w,A=this._mappings.toArray(),S=0,k=A.length;S<k;S++){if(b=A[S],m="",b.generatedLine!==s)for(a=0;b.generatedLine!==s;)m+=";",s++;else if(S>0){if(!r.compareByGeneratedPositionsInflated(b,A[S-1]))continue;m+=","}m+=t.encode(b.generatedColumn-a),a=b.generatedColumn,b.source!=null&&(w=this._sources.indexOf(b.source),m+=t.encode(w-f),f=w,m+=t.encode(b.originalLine-1-l),l=b.originalLine-1,m+=t.encode(b.originalColumn-p),p=b.originalColumn,b.name!=null&&(E=this._names.indexOf(b.name),m+=t.encode(E-d),d=E)),h+=m}return h},o.prototype._generateSourcesContent=function(a,s){return a.map(function(p){if(!this._sourcesContents)return null;s!=null&&(p=r.relative(s,p));var l=r.toSetString(p);return Object.prototype.hasOwnProperty.call(this._sourcesContents,l)?this._sourcesContents[l]:null},this)},o.prototype.toJSON=function(){var a={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(a.file=this._file),this._sourceRoot!=null&&(a.sourceRoot=this._sourceRoot),this._sourcesContents&&(a.sourcesContent=this._generateSourcesContent(a.sources,a.sourceRoot)),a},o.prototype.toString=function(){return JSON.stringify(this.toJSON())},e.SourceMapGenerator=o}}),J4=ht({"../../node_modules/escodegen/node_modules/source-map/lib/binary-search.js"(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(r,n,i,o,a,s){var p=Math.floor((n-r)/2)+r,l=a(i,o[p],!0);return l===0?p:l>0?n-p>1?t(p,n,i,o,a,s):s==e.LEAST_UPPER_BOUND?n<o.length?n:-1:p:p-r>1?t(r,p,i,o,a,s):s==e.LEAST_UPPER_BOUND?p:r<0?-1:r}e.search=function(r,n,i,o){if(n.length===0)return-1;var a=t(-1,n.length,r,n,i,o||e.GREATEST_LOWER_BOUND);if(a<0)return-1;for(;a-1>=0&&i(n[a],n[a-1],!0)===0;)--a;return a}}}),H4=ht({"../../node_modules/escodegen/node_modules/source-map/lib/quick-sort.js"(e){function t(i,o,a){var s=i[o];i[o]=i[a],i[a]=s}function r(i,o){return Math.round(i+Math.random()*(o-i))}function n(i,o,a,s){if(a<s){var p=r(a,s),l=a-1;t(i,p,s);for(var d=i[s],f=a;f<s;f++)o(i[f],d)<=0&&(l+=1,t(i,l,f));t(i,l+1,f);var h=l+1;n(i,o,a,h-1),n(i,o,h+1,s)}}e.quickSort=function(i,o){n(i,o,0,i.length-1)}}}),G4=ht({"../../node_modules/escodegen/node_modules/source-map/lib/source-map-consumer.js"(e){var t=Yo(),r=J4(),n=Bw().ArraySet,i=Iw(),o=H4().quickSort;function a(d,f){var h=d;return typeof d=="string"&&(h=t.parseSourceMapInput(d)),h.sections!=null?new l(h,f):new s(h,f)}a.fromSourceMap=function(d,f){return s.fromSourceMap(d,f)},a.prototype._version=3,a.prototype.__generatedMappings=null,Object.defineProperty(a.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),a.prototype.__originalMappings=null,Object.defineProperty(a.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),a.prototype._charIsMappingSeparator=function(d,f){var h=d.charAt(f);return h===";"||h===","},a.prototype._parseMappings=function(d,f){throw new Error("Subclasses must implement _parseMappings")},a.GENERATED_ORDER=1,a.ORIGINAL_ORDER=2,a.GREATEST_LOWER_BOUND=1,a.LEAST_UPPER_BOUND=2,a.prototype.eachMapping=function(d,f,h){var m=f||null,b=h||a.GENERATED_ORDER,E;switch(b){case a.GENERATED_ORDER:E=this._generatedMappings;break;case a.ORIGINAL_ORDER:E=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var w=this.sourceRoot;E.map(function(A){var S=A.source===null?null:this._sources.at(A.source);return S=t.computeSourceURL(w,S,this._sourceMapURL),{source:S,generatedLine:A.generatedLine,generatedColumn:A.generatedColumn,originalLine:A.originalLine,originalColumn:A.originalColumn,name:A.name===null?null:this._names.at(A.name)}},this).forEach(d,m)},a.prototype.allGeneratedPositionsFor=function(d){var f=t.getArg(d,"line"),h={source:t.getArg(d,"source"),originalLine:f,originalColumn:t.getArg(d,"column",0)};if(h.source=this._findSourceIndex(h.source),h.source<0)return[];var m=[],b=this._findMapping(h,this._originalMappings,"originalLine","originalColumn",t.compareByOriginalPositions,r.LEAST_UPPER_BOUND);if(b>=0){var E=this._originalMappings[b];if(d.column===void 0)for(var w=E.originalLine;E&&E.originalLine===w;)m.push({line:t.getArg(E,"generatedLine",null),column:t.getArg(E,"generatedColumn",null),lastColumn:t.getArg(E,"lastGeneratedColumn",null)}),E=this._originalMappings[++b];else for(var A=E.originalColumn;E&&E.originalLine===f&&E.originalColumn==A;)m.push({line:t.getArg(E,"generatedLine",null),column:t.getArg(E,"generatedColumn",null),lastColumn:t.getArg(E,"lastGeneratedColumn",null)}),E=this._originalMappings[++b]}return m},e.SourceMapConsumer=a;function s(d,f){var h=d;typeof d=="string"&&(h=t.parseSourceMapInput(d));var m=t.getArg(h,"version"),b=t.getArg(h,"sources"),E=t.getArg(h,"names",[]),w=t.getArg(h,"sourceRoot",null),A=t.getArg(h,"sourcesContent",null),S=t.getArg(h,"mappings"),k=t.getArg(h,"file",null);if(m!=this._version)throw new Error("Unsupported version: "+m);w&&(w=t.normalize(w)),b=b.map(String).map(t.normalize).map(function(O){return w&&t.isAbsolute(w)&&t.isAbsolute(O)?t.relative(w,O):O}),this._names=n.fromArray(E.map(String),!0),this._sources=n.fromArray(b,!0),this._absoluteSources=this._sources.toArray().map(function(O){return t.computeSourceURL(w,O,f)}),this.sourceRoot=w,this.sourcesContent=A,this._mappings=S,this._sourceMapURL=f,this.file=k}s.prototype=Object.create(a.prototype),s.prototype.consumer=a,s.prototype._findSourceIndex=function(d){var f=d;if(this.sourceRoot!=null&&(f=t.relative(this.sourceRoot,f)),this._sources.has(f))return this._sources.indexOf(f);var h;for(h=0;h<this._absoluteSources.length;++h)if(this._absoluteSources[h]==d)return h;return-1},s.fromSourceMap=function(d,f){var h=Object.create(s.prototype),m=h._names=n.fromArray(d._names.toArray(),!0),b=h._sources=n.fromArray(d._sources.toArray(),!0);h.sourceRoot=d._sourceRoot,h.sourcesContent=d._generateSourcesContent(h._sources.toArray(),h.sourceRoot),h.file=d._file,h._sourceMapURL=f,h._absoluteSources=h._sources.toArray().map(function(y){return t.computeSourceURL(h.sourceRoot,y,f)});for(var E=d._mappings.toArray().slice(),w=h.__generatedMappings=[],A=h.__originalMappings=[],S=0,k=E.length;S<k;S++){var O=E[S],R=new p;R.generatedLine=O.generatedLine,R.generatedColumn=O.generatedColumn,O.source&&(R.source=b.indexOf(O.source),R.originalLine=O.originalLine,R.originalColumn=O.originalColumn,O.name&&(R.name=m.indexOf(O.name)),A.push(R)),w.push(R)}return o(h.__originalMappings,t.compareByOriginalPositions),h},s.prototype._version=3,Object.defineProperty(s.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function p(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}s.prototype._parseMappings=function(d,f){for(var h=1,m=0,b=0,E=0,w=0,A=0,S=d.length,k=0,O={},R={},y=[],T=[],_,D,J,M,G;k<S;)if(d.charAt(k)===";")h++,k++,m=0;else if(d.charAt(k)===",")k++;else{for(_=new p,_.generatedLine=h,M=k;M<S&&!this._charIsMappingSeparator(d,M);M++);if(D=d.slice(k,M),J=O[D],J)k+=D.length;else{for(J=[];k<M;)i.decode(d,k,R),G=R.value,k=R.rest,J.push(G);if(J.length===2)throw new Error("Found a source, but no line and column");if(J.length===3)throw new Error("Found a source and line, but no column");O[D]=J}_.generatedColumn=m+J[0],m=_.generatedColumn,J.length>1&&(_.source=w+J[1],w+=J[1],_.originalLine=b+J[2],b=_.originalLine,_.originalLine+=1,_.originalColumn=E+J[3],E=_.originalColumn,J.length>4&&(_.name=A+J[4],A+=J[4])),T.push(_),typeof _.originalLine=="number"&&y.push(_)}o(T,t.compareByGeneratedPositionsDeflated),this.__generatedMappings=T,o(y,t.compareByOriginalPositions),this.__originalMappings=y},s.prototype._findMapping=function(d,f,h,m,b,E){if(d[h]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+d[h]);if(d[m]<0)throw new TypeError("Column must be greater than or equal to 0, got "+d[m]);return r.search(d,f,b,E)},s.prototype.computeColumnSpans=function(){for(var d=0;d<this._generatedMappings.length;++d){var f=this._generatedMappings[d];if(d+1<this._generatedMappings.length){var h=this._generatedMappings[d+1];if(f.generatedLine===h.generatedLine){f.lastGeneratedColumn=h.generatedColumn-1;continue}}f.lastGeneratedColumn=1/0}},s.prototype.originalPositionFor=function(d){var f={generatedLine:t.getArg(d,"line"),generatedColumn:t.getArg(d,"column")},h=this._findMapping(f,this._generatedMappings,"generatedLine","generatedColumn",t.compareByGeneratedPositionsDeflated,t.getArg(d,"bias",a.GREATEST_LOWER_BOUND));if(h>=0){var m=this._generatedMappings[h];if(m.generatedLine===f.generatedLine){var b=t.getArg(m,"source",null);b!==null&&(b=this._sources.at(b),b=t.computeSourceURL(this.sourceRoot,b,this._sourceMapURL));var E=t.getArg(m,"name",null);return E!==null&&(E=this._names.at(E)),{source:b,line:t.getArg(m,"originalLine",null),column:t.getArg(m,"originalColumn",null),name:E}}}return{source:null,line:null,column:null,name:null}},s.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(d){return d==null}):!1},s.prototype.sourceContentFor=function(d,f){if(!this.sourcesContent)return null;var h=this._findSourceIndex(d);if(h>=0)return this.sourcesContent[h];var m=d;this.sourceRoot!=null&&(m=t.relative(this.sourceRoot,m));var b;if(this.sourceRoot!=null&&(b=t.urlParse(this.sourceRoot))){var E=m.replace(/^file:\/\//,"");if(b.scheme=="file"&&this._sources.has(E))return this.sourcesContent[this._sources.indexOf(E)];if((!b.path||b.path=="/")&&this._sources.has("/"+m))return this.sourcesContent[this._sources.indexOf("/"+m)]}if(f)return null;throw new Error('"'+m+'" is not in the SourceMap.')},s.prototype.generatedPositionFor=function(d){var f=t.getArg(d,"source");if(f=this._findSourceIndex(f),f<0)return{line:null,column:null,lastColumn:null};var h={source:f,originalLine:t.getArg(d,"line"),originalColumn:t.getArg(d,"column")},m=this._findMapping(h,this._originalMappings,"originalLine","originalColumn",t.compareByOriginalPositions,t.getArg(d,"bias",a.GREATEST_LOWER_BOUND));if(m>=0){var b=this._originalMappings[m];if(b.source===h.source)return{line:t.getArg(b,"generatedLine",null),column:t.getArg(b,"generatedColumn",null),lastColumn:t.getArg(b,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},e.BasicSourceMapConsumer=s;function l(d,f){var h=d;typeof d=="string"&&(h=t.parseSourceMapInput(d));var m=t.getArg(h,"version"),b=t.getArg(h,"sections");if(m!=this._version)throw new Error("Unsupported version: "+m);this._sources=new n,this._names=new n;var E={line:-1,column:0};this._sections=b.map(function(w){if(w.url)throw new Error("Support for url field in sections not implemented.");var A=t.getArg(w,"offset"),S=t.getArg(A,"line"),k=t.getArg(A,"column");if(S<E.line||S===E.line&&k<E.column)throw new Error("Section offsets must be ordered and non-overlapping.");return E=A,{generatedOffset:{generatedLine:S+1,generatedColumn:k+1},consumer:new a(t.getArg(w,"map"),f)}})}l.prototype=Object.create(a.prototype),l.prototype.constructor=a,l.prototype._version=3,Object.defineProperty(l.prototype,"sources",{get:function(){for(var d=[],f=0;f<this._sections.length;f++)for(var h=0;h<this._sections[f].consumer.sources.length;h++)d.push(this._sections[f].consumer.sources[h]);return d}}),l.prototype.originalPositionFor=function(d){var f={generatedLine:t.getArg(d,"line"),generatedColumn:t.getArg(d,"column")},h=r.search(f,this._sections,function(b,E){var w=b.generatedLine-E.generatedOffset.generatedLine;return w||b.generatedColumn-E.generatedOffset.generatedColumn}),m=this._sections[h];return m?m.consumer.originalPositionFor({line:f.generatedLine-(m.generatedOffset.generatedLine-1),column:f.generatedColumn-(m.generatedOffset.generatedLine===f.generatedLine?m.generatedOffset.generatedColumn-1:0),bias:d.bias}):{source:null,line:null,column:null,name:null}},l.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(d){return d.consumer.hasContentsOfAllSources()})},l.prototype.sourceContentFor=function(d,f){for(var h=0;h<this._sections.length;h++){var m=this._sections[h],b=m.consumer.sourceContentFor(d,!0);if(b)return b}if(f)return null;throw new Error('"'+d+'" is not in the SourceMap.')},l.prototype.generatedPositionFor=function(d){for(var f=0;f<this._sections.length;f++){var h=this._sections[f];if(h.consumer._findSourceIndex(t.getArg(d,"source"))!==-1){var m=h.consumer.generatedPositionFor(d);if(m){var b={line:m.line+(h.generatedOffset.generatedLine-1),column:m.column+(h.generatedOffset.generatedLine===m.line?h.generatedOffset.generatedColumn-1:0)};return b}}}return{line:null,column:null}},l.prototype._parseMappings=function(d,f){this.__generatedMappings=[],this.__originalMappings=[];for(var h=0;h<this._sections.length;h++)for(var m=this._sections[h],b=m.consumer._generatedMappings,E=0;E<b.length;E++){var w=b[E],A=m.consumer._sources.at(w.source);A=t.computeSourceURL(m.consumer.sourceRoot,A,this._sourceMapURL),this._sources.add(A),A=this._sources.indexOf(A);var S=null;w.name&&(S=m.consumer._names.at(w.name),this._names.add(S),S=this._names.indexOf(S));var k={source:A,generatedLine:w.generatedLine+(m.generatedOffset.generatedLine-1),generatedColumn:w.generatedColumn+(m.generatedOffset.generatedLine===w.generatedLine?m.generatedOffset.generatedColumn-1:0),originalLine:w.originalLine,originalColumn:w.originalColumn,name:S};this.__generatedMappings.push(k),typeof k.originalLine=="number"&&this.__originalMappings.push(k)}o(this.__generatedMappings,t.compareByGeneratedPositionsDeflated),o(this.__originalMappings,t.compareByOriginalPositions)},e.IndexedSourceMapConsumer=l}}),z4=ht({"../../node_modules/escodegen/node_modules/source-map/lib/source-node.js"(e){var t=kw().SourceMapGenerator,r=Yo(),n=/(\r?\n)/,i=10,o="$$$isSourceNode$$$";function a(s,p,l,d,f){this.children=[],this.sourceContents={},this.line=s??null,this.column=p??null,this.source=l??null,this.name=f??null,this[o]=!0,d!=null&&this.add(d)}a.fromStringWithSourceMap=function(s,p,l){var d=new a,f=s.split(n),h=0,m=function(){var S=O(),k=O()||"";return S+k;function O(){return h<f.length?f[h++]:void 0}},b=1,E=0,w=null;return p.eachMapping(function(S){if(w!==null)if(b<S.generatedLine)A(w,m()),b++,E=0;else{var k=f[h]||"",O=k.substr(0,S.generatedColumn-E);f[h]=k.substr(S.generatedColumn-E),E=S.generatedColumn,A(w,O),w=S;return}for(;b<S.generatedLine;)d.add(m()),b++;if(E<S.generatedColumn){var k=f[h]||"";d.add(k.substr(0,S.generatedColumn)),f[h]=k.substr(S.generatedColumn),E=S.generatedColumn}w=S},this),h<f.length&&(w&&A(w,m()),d.add(f.splice(h).join(""))),p.sources.forEach(function(S){var k=p.sourceContentFor(S);k!=null&&(l!=null&&(S=r.join(l,S)),d.setSourceContent(S,k))}),d;function A(S,k){if(S===null||S.source===void 0)d.add(k);else{var O=l?r.join(l,S.source):S.source;d.add(new a(S.originalLine,S.originalColumn,O,k,S.name))}}},a.prototype.add=function(s){if(Array.isArray(s))s.forEach(function(p){this.add(p)},this);else if(s[o]||typeof s=="string")s&&this.children.push(s);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+s);return this},a.prototype.prepend=function(s){if(Array.isArray(s))for(var p=s.length-1;p>=0;p--)this.prepend(s[p]);else if(s[o]||typeof s=="string")this.children.unshift(s);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+s);return this},a.prototype.walk=function(s){for(var p,l=0,d=this.children.length;l<d;l++)p=this.children[l],p[o]?p.walk(s):p!==""&&s(p,{source:this.source,line:this.line,column:this.column,name:this.name})},a.prototype.join=function(s){var p,l,d=this.children.length;if(d>0){for(p=[],l=0;l<d-1;l++)p.push(this.children[l]),p.push(s);p.push(this.children[l]),this.children=p}return this},a.prototype.replaceRight=function(s,p){var l=this.children[this.children.length-1];return l[o]?l.replaceRight(s,p):typeof l=="string"?this.children[this.children.length-1]=l.replace(s,p):this.children.push("".replace(s,p)),this},a.prototype.setSourceContent=function(s,p){this.sourceContents[r.toSetString(s)]=p},a.prototype.walkSourceContents=function(s){for(var p=0,l=this.children.length;p<l;p++)this.children[p][o]&&this.children[p].walkSourceContents(s);for(var d=Object.keys(this.sourceContents),p=0,l=d.length;p<l;p++)s(r.fromSetString(d[p]),this.sourceContents[d[p]])},a.prototype.toString=function(){var s="";return this.walk(function(p){s+=p}),s},a.prototype.toStringWithSourceMap=function(s){var p={code:"",line:1,column:0},l=new t(s),d=!1,f=null,h=null,m=null,b=null;return this.walk(function(E,w){p.code+=E,w.source!==null&&w.line!==null&&w.column!==null?((f!==w.source||h!==w.line||m!==w.column||b!==w.name)&&l.addMapping({source:w.source,original:{line:w.line,column:w.column},generated:{line:p.line,column:p.column},name:w.name}),f=w.source,h=w.line,m=w.column,b=w.name,d=!0):d&&(l.addMapping({generated:{line:p.line,column:p.column}}),f=null,d=!1);for(var A=0,S=E.length;A<S;A++)E.charCodeAt(A)===i?(p.line++,p.column=0,A+1===S?(f=null,d=!1):d&&l.addMapping({source:w.source,original:{line:w.line,column:w.column},generated:{line:p.line,column:p.column},name:w.name})):p.column++}),this.walkSourceContents(function(E,w){l.setSourceContent(E,w)}),{code:p.code,map:l}},e.SourceNode=a}}),W4=ht({"../../node_modules/escodegen/node_modules/source-map/source-map.js"(e){e.SourceMapGenerator=kw().SourceMapGenerator,e.SourceMapConsumer=G4().SourceMapConsumer,e.SourceNode=z4().SourceNode}}),Y4=ht({"../../node_modules/escodegen/package.json"(e,t){t.exports={name:"escodegen",description:"ECMAScript code generator",homepage:"http://github.com/estools/escodegen",main:"escodegen.js",bin:{esgenerate:"./bin/esgenerate.js",escodegen:"./bin/escodegen.js"},files:["LICENSE.BSD","README.md","bin","escodegen.js","package.json"],version:"2.1.0",engines:{node:">=6.0"},maintainers:[{name:"Yusuke Suzuki",email:"utatane.tea@gmail.com",web:"http://github.com/Constellation"}],repository:{type:"git",url:"http://github.com/estools/escodegen.git"},dependencies:{estraverse:"^5.2.0",esutils:"^2.0.2",esprima:"^4.0.1"},optionalDependencies:{"source-map":"~0.6.1"},devDependencies:{acorn:"^8.0.4",bluebird:"^3.4.7","bower-registry-client":"^1.0.0",chai:"^4.2.0","chai-exclude":"^2.0.2","commonjs-everywhere":"^0.9.7",gulp:"^4.0.2","gulp-eslint":"^6.0.0","gulp-mocha":"^7.0.2",minimist:"^1.2.5",optionator:"^0.9.1",semver:"^7.3.4"},license:"BSD-2-Clause",scripts:{test:"gulp travis","unit-test":"gulp test",lint:"gulp lint",release:"node tools/release.js","build-min":"./node_modules/.bin/cjsify -ma path: tools/entry-point.js > escodegen.browser.min.js",build:"./node_modules/.bin/cjsify -a path: tools/entry-point.js > escodegen.browser.js"}}}}),K4=ht({"../../node_modules/escodegen/escodegen.js"(e){(function(){var t,r,n,i,o,a,s,p,l,d,f,h,m,b,E,w,A,S,k,O,R,y,T,_,D,J;o=q4(),a=V4(),t=o.Syntax;function M(C){return rt.Expression.hasOwnProperty(C.type)}function G(C){return rt.Statement.hasOwnProperty(C.type)}r={Sequence:0,Yield:1,Assignment:1,Conditional:2,ArrowFunction:2,Coalesce:3,LogicalOR:4,LogicalAND:5,BitwiseOR:6,BitwiseXOR:7,BitwiseAND:8,Equality:9,Relational:10,BitwiseSHIFT:11,Additive:12,Multiplicative:13,Exponentiation:14,Await:15,Unary:15,Postfix:16,OptionalChaining:17,Call:18,New:19,TaggedTemplate:20,Member:21,Primary:22},n={"??":r.Coalesce,"||":r.LogicalOR,"&&":r.LogicalAND,"|":r.BitwiseOR,"^":r.BitwiseXOR,"&":r.BitwiseAND,"==":r.Equality,"!=":r.Equality,"===":r.Equality,"!==":r.Equality,is:r.Equality,isnt:r.Equality,"<":r.Relational,">":r.Relational,"<=":r.Relational,">=":r.Relational,in:r.Relational,instanceof:r.Relational,"<<":r.BitwiseSHIFT,">>":r.BitwiseSHIFT,">>>":r.BitwiseSHIFT,"+":r.Additive,"-":r.Additive,"*":r.Multiplicative,"%":r.Multiplicative,"/":r.Multiplicative,"**":r.Exponentiation};var L=1,I=2,$=4,Y=8,X=16,oe=32,ve=64,De=I|$,z=L|I,K=L|I|$,be=L,me=$,fe=L|$,se=L,Te=L|oe,Oe=0,Le=L|X,Z=L|Y;function de(){return{indent:null,base:null,parse:null,comment:!1,format:{indent:{style:" ",base:0,adjustMultilineComment:!1},newline:`
|
|
1034
|
+
`,space:" ",json:!1,renumber:!1,hexadecimal:!1,quotes:"single",escapeless:!1,compact:!1,parentheses:!0,semicolons:!0,safeConcatenation:!1,preserveBlankLines:!1},moz:{comprehensionExpressionStartsWithAssignment:!1,starlessGenerator:!1},sourceMap:null,sourceMapRoot:null,sourceMapWithCode:!1,directive:!1,raw:!0,verbatim:null,sourceCode:null}}function Ae(C,B){var F="";for(B|=0;B>0;B>>>=1,C+=C)B&1&&(F+=C);return F}function xe(C){return/[\r\n]/g.test(C)}function Se(C){var B=C.length;return B&&a.code.isLineTerminator(C.charCodeAt(B-1))}function Re(C,B){var F;for(F in B)B.hasOwnProperty(F)&&(C[F]=B[F]);return C}function Pe(C,B){var F,P;function V(ie){return typeof ie=="object"&&ie instanceof Object&&!(ie instanceof RegExp)}for(F in B)B.hasOwnProperty(F)&&(P=B[F],V(P)?V(C[F])?Pe(C[F],P):C[F]=Pe({},P):C[F]=P);return C}function Me(C){var B,F,P,V,ie;if(C!==C)throw new Error("Numeric literal whose value is NaN");if(C<0||C===0&&1/C<0)throw new Error("Numeric literal whose value is negative");if(C===1/0)return l?"null":d?"1e400":"1e+400";if(B=""+C,!d||B.length<3)return B;for(F=B.indexOf("."),!l&&B.charCodeAt(0)===48&&F===1&&(F=0,B=B.slice(1)),P=B,B=B.replace("e+","e"),V=0,(ie=P.indexOf("e"))>0&&(V=+P.slice(ie+1),P=P.slice(0,ie)),F>=0&&(V-=P.length-F-1,P=+(P.slice(0,F)+P.slice(F+1))+""),ie=0;P.charCodeAt(P.length+ie-1)===48;)--ie;return ie!==0&&(V-=ie,P=P.slice(0,ie)),V!==0&&(P+="e"+V),(P.length<B.length||f&&C>1e12&&Math.floor(C)===C&&(P="0x"+C.toString(16)).length<B.length)&&+P===C&&(B=P),B}function st(C,B){return(C&-2)===8232?(B?"u":"\\u")+(C===8232?"2028":"2029"):C===10||C===13?(B?"":"\\")+(C===10?"n":"r"):String.fromCharCode(C)}function Ot(C){var B,F,P,V,ie,ue,ce,_e;if(F=C.toString(),C.source){if(B=F.match(/\/([^/]*)$/),!B)return F;for(P=B[1],F="",ce=!1,_e=!1,V=0,ie=C.source.length;V<ie;++V)ue=C.source.charCodeAt(V),_e?(F+=st(ue,_e),_e=!1):(ce?ue===93&&(ce=!1):ue===47?F+="\\":ue===91&&(ce=!0),F+=st(ue,_e),_e=ue===92);return"/"+F+"/"+P}return F}function Ue(C,B){var F;return C===8?"\\b":C===12?"\\f":C===9?"\\t":(F=C.toString(16).toUpperCase(),l||C>255?"\\u"+"0000".slice(F.length)+F:C===0&&!a.code.isDecimalDigit(B)?"\\0":C===11?"\\x0B":"\\x"+"00".slice(F.length)+F)}function mt(C){if(C===92)return"\\\\";if(C===10)return"\\n";if(C===13)return"\\r";if(C===8232)return"\\u2028";if(C===8233)return"\\u2029";throw new Error("Incorrectly classified character")}function Ye(C){var B,F,P,V;for(V=h==="double"?'"':"'",B=0,F=C.length;B<F;++B)if(P=C.charCodeAt(B),P===39){V='"';break}else if(P===34){V="'";break}else P===92&&++B;return V+C+V}function Zt(C){var B="",F,P,V,ie=0,ue=0,ce,_e;for(F=0,P=C.length;F<P;++F){if(V=C.charCodeAt(F),V===39)++ie;else if(V===34)++ue;else if(V===47&&l)B+="\\";else if(a.code.isLineTerminator(V)||V===92){B+=mt(V);continue}else if(!a.code.isIdentifierPartES5(V)&&(l&&V<32||!l&&!m&&(V<32||V>126))){B+=Ue(V,C.charCodeAt(F+1));continue}B+=String.fromCharCode(V)}if(ce=!(h==="double"||h==="auto"&&ue<ie),_e=ce?"'":'"',!(ce?ie:ue))return _e+B+_e;for(C=B,B=_e,F=0,P=C.length;F<P;++F)V=C.charCodeAt(F),(V===39&&ce||V===34&&!ce)&&(B+="\\"),B+=String.fromCharCode(V);return B+_e}function Ft(C){var B,F,P,V="";for(B=0,F=C.length;B<F;++B)P=C[B],V+=Array.isArray(P)?Ft(P):P;return V}function ye(C,B){if(!y)return Array.isArray(C)?Ft(C):C;if(B==null){if(C instanceof i)return C;B={}}return B.loc==null?new i(null,null,y,C,B.name||null):new i(B.loc.start.line,B.loc.start.column,y===!0?B.loc.source||null:y,C,B.name||null)}function ct(){return E||" "}function Ie(C,B){var F,P,V,ie;return F=ye(C).toString(),F.length===0?[B]:(P=ye(B).toString(),P.length===0?[C]:(V=F.charCodeAt(F.length-1),ie=P.charCodeAt(0),(V===43||V===45)&&V===ie||a.code.isIdentifierPartES5(V)&&a.code.isIdentifierPartES5(ie)||V===47&&ie===105?[C,ct(),B]:a.code.isWhiteSpace(V)||a.code.isLineTerminator(V)||a.code.isWhiteSpace(ie)||a.code.isLineTerminator(ie)?[C,B]:[C,E,B]))}function vt(C){return[s,C]}function et(C){var B;B=s,s+=p,C(s),s=B}function Er(C){var B;for(B=C.length-1;B>=0&&!a.code.isLineTerminator(C.charCodeAt(B));--B);return C.length-1-B}function xr(C,B){var F,P,V,ie,ue,ce,_e,Ve;for(F=C.split(/\r\n|[\r\n]/),ce=Number.MAX_VALUE,P=1,V=F.length;P<V;++P){for(ie=F[P],ue=0;ue<ie.length&&a.code.isWhiteSpace(ie.charCodeAt(ue));)++ue;ce>ue&&(ce=ue)}for(typeof B<"u"?(_e=s,F[1][ce]==="*"&&(B+=" "),s=B):(ce&1&&--ce,_e=s),P=1,V=F.length;P<V;++P)Ve=ye(vt(F[P].slice(ce))),F[P]=y?Ve.join(""):Ve;return s=_e,F.join(`
|
|
1035
|
+
`)}function yt(C,B){if(C.type==="Line"){if(Se(C.value))return"//"+C.value;var F="//"+C.value;return _||(F+=`
|
|
1036
|
+
`),F}return O.format.indent.adjustMultilineComment&&/[\n\r]/.test(C.value)?xr("/*"+C.value+"*/",B):"/*"+C.value+"*/"}function Be(C,B){var F,P,V,ie,ue,ce,_e,Ve,he,Pt,kt,Mr,rn,Jt;if(C.leadingComments&&C.leadingComments.length>0){if(ie=B,_){for(V=C.leadingComments[0],B=[],Ve=V.extendedRange,he=V.range,kt=T.substring(Ve[0],he[0]),Jt=(kt.match(/\n/g)||[]).length,Jt>0?(B.push(Ae(`
|
|
1037
|
+
`,Jt)),B.push(vt(yt(V)))):(B.push(kt),B.push(yt(V))),Pt=he,F=1,P=C.leadingComments.length;F<P;F++)V=C.leadingComments[F],he=V.range,Mr=T.substring(Pt[1],he[0]),Jt=(Mr.match(/\n/g)||[]).length,B.push(Ae(`
|
|
1038
|
+
`,Jt)),B.push(vt(yt(V))),Pt=he;rn=T.substring(he[1],Ve[1]),Jt=(rn.match(/\n/g)||[]).length,B.push(Ae(`
|
|
1039
|
+
`,Jt))}else for(V=C.leadingComments[0],B=[],S&&C.type===t.Program&&C.body.length===0&&B.push(`
|
|
1040
|
+
`),B.push(yt(V)),Se(ye(B).toString())||B.push(`
|
|
1041
|
+
`),F=1,P=C.leadingComments.length;F<P;++F)V=C.leadingComments[F],_e=[yt(V)],Se(ye(_e).toString())||_e.push(`
|
|
1042
|
+
`),B.push(vt(_e));B.push(vt(ie))}if(C.trailingComments)if(_)V=C.trailingComments[0],Ve=V.extendedRange,he=V.range,kt=T.substring(Ve[0],he[0]),Jt=(kt.match(/\n/g)||[]).length,Jt>0?(B.push(Ae(`
|
|
1043
|
+
`,Jt)),B.push(vt(yt(V)))):(B.push(kt),B.push(yt(V)));else for(ue=!Se(ye(B).toString()),ce=Ae(" ",Er(ye([s,B,p]).toString())),F=0,P=C.trailingComments.length;F<P;++F)V=C.trailingComments[F],ue?(F===0?B=[B,p]:B=[B,ce],B.push(yt(V,ce))):B=[B,vt(yt(V))],F!==P-1&&!Se(ye(B).toString())&&(B=[B,`
|
|
1044
|
+
`]);return B}function er(C,B,F){var P,V=0;for(P=C;P<B;P++)T[P]===`
|
|
1045
|
+
`&&V++;for(P=1;P<V;P++)F.push(b)}function ot(C,B,F){return B<F?["(",C,")"]:C}function $t(C){var B,F,P;for(P=C.split(/\r\n|\n/),B=1,F=P.length;B<F;B++)P[B]=b+s+P[B];return P}function kr(C,B){var F,P,V;return F=C[O.verbatim],typeof F=="string"?P=ot($t(F),r.Sequence,B):(P=$t(F.content),V=F.precedence!=null?F.precedence:r.Sequence,P=ot(P,V,B)),ye(P,C)}function rt(){}rt.prototype.maybeBlock=function(C,B){var F,P,V=this;return P=!O.comment||!C.leadingComments,C.type===t.BlockStatement&&P?[E,this.generateStatement(C,B)]:C.type===t.EmptyStatement&&P?";":(et(function(){F=[b,vt(V.generateStatement(C,B))]}),F)},rt.prototype.maybeBlockSuffix=function(C,B){var F=Se(ye(B).toString());return C.type===t.BlockStatement&&(!O.comment||!C.leadingComments)&&!F?[B,E]:F?[B,s]:[B,b,s]};function At(C){return ye(C.name,C)}function tr(C,B){return C.async?"async"+(B?ct():E):""}function gt(C){var B=C.generator&&!O.moz.starlessGenerator;return B?"*"+E:""}function nt(C){var B=C.value,F="";return B.async&&(F+=tr(B,!C.computed)),B.generator&&(F+=gt(B)?"*":""),F}rt.prototype.generatePattern=function(C,B,F){return C.type===t.Identifier?At(C):this.generateExpression(C,B,F)},rt.prototype.generateFunctionParams=function(C){var B,F,P,V;if(V=!1,C.type===t.ArrowFunctionExpression&&!C.rest&&(!C.defaults||C.defaults.length===0)&&C.params.length===1&&C.params[0].type===t.Identifier)P=[tr(C,!0),At(C.params[0])];else{for(P=C.type===t.ArrowFunctionExpression?[tr(C,!1)]:[],P.push("("),C.defaults&&(V=!0),B=0,F=C.params.length;B<F;++B)V&&C.defaults[B]?P.push(this.generateAssignment(C.params[B],C.defaults[B],"=",r.Assignment,K)):P.push(this.generatePattern(C.params[B],r.Assignment,K)),B+1<F&&P.push(","+E);C.rest&&(C.params.length&&P.push(","+E),P.push("..."),P.push(At(C.rest))),P.push(")")}return P},rt.prototype.generateFunctionBody=function(C){var B,F;return B=this.generateFunctionParams(C),C.type===t.ArrowFunctionExpression&&(B.push(E),B.push("=>")),C.expression?(B.push(E),F=this.generateExpression(C.body,r.Assignment,K),F.toString().charAt(0)==="{"&&(F=["(",F,")"]),B.push(F)):B.push(this.maybeBlock(C.body,Z)),B},rt.prototype.generateIterationForStatement=function(C,B,F){var P=["for"+(B.await?ct()+"await":"")+E+"("],V=this;return et(function(){B.left.type===t.VariableDeclaration?et(function(){P.push(B.left.kind+ct()),P.push(V.generateStatement(B.left.declarations[0],Oe))}):P.push(V.generateExpression(B.left,r.Call,K)),P=Ie(P,C),P=[Ie(P,V.generateExpression(B.right,r.Assignment,K)),")"]}),P.push(this.maybeBlock(B.body,F)),P},rt.prototype.generatePropertyKey=function(C,B){var F=[];return B&&F.push("["),F.push(this.generateExpression(C,r.Assignment,K)),B&&F.push("]"),F},rt.prototype.generateAssignment=function(C,B,F,P,V){return r.Assignment<P&&(V|=L),ot([this.generateExpression(C,r.Call,V),E+F+E,this.generateExpression(B,r.Assignment,V)],r.Assignment,P)},rt.prototype.semicolon=function(C){return!A&&C&oe?"":";"},rt.Statement={BlockStatement:function(C,B){var F,P,V=["{",b],ie=this;return et(function(){C.body.length===0&&_&&(F=C.range,F[1]-F[0]>2&&(P=T.substring(F[0]+1,F[1]-1),P[0]===`
|
|
1046
|
+
`&&(V=["{"]),V.push(P)));var ue,ce,_e,Ve;for(Ve=se,B&Y&&(Ve|=X),ue=0,ce=C.body.length;ue<ce;++ue)_&&(ue===0&&(C.body[0].leadingComments&&(F=C.body[0].leadingComments[0].extendedRange,P=T.substring(F[0],F[1]),P[0]===`
|
|
1047
|
+
`&&(V=["{"])),C.body[0].leadingComments||er(C.range[0],C.body[0].range[0],V)),ue>0&&!C.body[ue-1].trailingComments&&!C.body[ue].leadingComments&&er(C.body[ue-1].range[1],C.body[ue].range[0],V)),ue===ce-1&&(Ve|=oe),C.body[ue].leadingComments&&_?_e=ie.generateStatement(C.body[ue],Ve):_e=vt(ie.generateStatement(C.body[ue],Ve)),V.push(_e),Se(ye(_e).toString())||_&&ue<ce-1&&C.body[ue+1].leadingComments||V.push(b),_&&ue===ce-1&&(C.body[ue].trailingComments||er(C.body[ue].range[1],C.range[1],V))}),V.push(vt("}")),V},BreakStatement:function(C,B){return C.label?"break "+C.label.name+this.semicolon(B):"break"+this.semicolon(B)},ContinueStatement:function(C,B){return C.label?"continue "+C.label.name+this.semicolon(B):"continue"+this.semicolon(B)},ClassBody:function(C,B){var F=["{",b],P=this;return et(function(V){var ie,ue;for(ie=0,ue=C.body.length;ie<ue;++ie)F.push(V),F.push(P.generateExpression(C.body[ie],r.Sequence,K)),ie+1<ue&&F.push(b)}),Se(ye(F).toString())||F.push(b),F.push(s),F.push("}"),F},ClassDeclaration:function(C,B){var F,P;return F=["class"],C.id&&(F=Ie(F,this.generateExpression(C.id,r.Sequence,K))),C.superClass&&(P=Ie("extends",this.generateExpression(C.superClass,r.Unary,K)),F=Ie(F,P)),F.push(E),F.push(this.generateStatement(C.body,Te)),F},DirectiveStatement:function(C,B){return O.raw&&C.raw?C.raw+this.semicolon(B):Ye(C.directive)+this.semicolon(B)},DoWhileStatement:function(C,B){var F=Ie("do",this.maybeBlock(C.body,se));return F=this.maybeBlockSuffix(C.body,F),Ie(F,["while"+E+"(",this.generateExpression(C.test,r.Sequence,K),")"+this.semicolon(B)])},CatchClause:function(C,B){var F,P=this;return et(function(){var V;C.param?(F=["catch"+E+"(",P.generateExpression(C.param,r.Sequence,K),")"],C.guard&&(V=P.generateExpression(C.guard,r.Sequence,K),F.splice(2,0," if ",V))):F=["catch"]}),F.push(this.maybeBlock(C.body,se)),F},DebuggerStatement:function(C,B){return"debugger"+this.semicolon(B)},EmptyStatement:function(C,B){return";"},ExportDefaultDeclaration:function(C,B){var F=["export"],P;return P=B&oe?Te:se,F=Ie(F,"default"),G(C.declaration)?F=Ie(F,this.generateStatement(C.declaration,P)):F=Ie(F,this.generateExpression(C.declaration,r.Assignment,K)+this.semicolon(B)),F},ExportNamedDeclaration:function(C,B){var F=["export"],P,V=this;return P=B&oe?Te:se,C.declaration?Ie(F,this.generateStatement(C.declaration,P)):(C.specifiers&&(C.specifiers.length===0?F=Ie(F,"{"+E+"}"):C.specifiers[0].type===t.ExportBatchSpecifier?F=Ie(F,this.generateExpression(C.specifiers[0],r.Sequence,K)):(F=Ie(F,"{"),et(function(ie){var ue,ce;for(F.push(b),ue=0,ce=C.specifiers.length;ue<ce;++ue)F.push(ie),F.push(V.generateExpression(C.specifiers[ue],r.Sequence,K)),ue+1<ce&&F.push(","+b)}),Se(ye(F).toString())||F.push(b),F.push(s+"}")),C.source?F=Ie(F,["from"+E,this.generateExpression(C.source,r.Sequence,K),this.semicolon(B)]):F.push(this.semicolon(B))),F)},ExportAllDeclaration:function(C,B){return["export"+E,"*"+E,"from"+E,this.generateExpression(C.source,r.Sequence,K),this.semicolon(B)]},ExpressionStatement:function(C,B){var F,P;function V(ce){var _e;return ce.slice(0,5)!=="class"?!1:(_e=ce.charCodeAt(5),_e===123||a.code.isWhiteSpace(_e)||a.code.isLineTerminator(_e))}function ie(ce){var _e;return ce.slice(0,8)!=="function"?!1:(_e=ce.charCodeAt(8),_e===40||a.code.isWhiteSpace(_e)||_e===42||a.code.isLineTerminator(_e))}function ue(ce){var _e,Ve,he;if(ce.slice(0,5)!=="async"||!a.code.isWhiteSpace(ce.charCodeAt(5)))return!1;for(Ve=6,he=ce.length;Ve<he&&a.code.isWhiteSpace(ce.charCodeAt(Ve));++Ve);return Ve===he||ce.slice(Ve,Ve+8)!=="function"?!1:(_e=ce.charCodeAt(Ve+8),_e===40||a.code.isWhiteSpace(_e)||_e===42||a.code.isLineTerminator(_e))}return F=[this.generateExpression(C.expression,r.Sequence,K)],P=ye(F).toString(),P.charCodeAt(0)===123||V(P)||ie(P)||ue(P)||k&&B&X&&C.expression.type===t.Literal&&typeof C.expression.value=="string"?F=["(",F,")"+this.semicolon(B)]:F.push(this.semicolon(B)),F},ImportDeclaration:function(C,B){var F,P,V=this;return C.specifiers.length===0?["import",E,this.generateExpression(C.source,r.Sequence,K),this.semicolon(B)]:(F=["import"],P=0,C.specifiers[P].type===t.ImportDefaultSpecifier&&(F=Ie(F,[this.generateExpression(C.specifiers[P],r.Sequence,K)]),++P),C.specifiers[P]&&(P!==0&&F.push(","),C.specifiers[P].type===t.ImportNamespaceSpecifier?F=Ie(F,[E,this.generateExpression(C.specifiers[P],r.Sequence,K)]):(F.push(E+"{"),C.specifiers.length-P===1?(F.push(E),F.push(this.generateExpression(C.specifiers[P],r.Sequence,K)),F.push(E+"}"+E)):(et(function(ie){var ue,ce;for(F.push(b),ue=P,ce=C.specifiers.length;ue<ce;++ue)F.push(ie),F.push(V.generateExpression(C.specifiers[ue],r.Sequence,K)),ue+1<ce&&F.push(","+b)}),Se(ye(F).toString())||F.push(b),F.push(s+"}"+E)))),F=Ie(F,["from"+E,this.generateExpression(C.source,r.Sequence,K),this.semicolon(B)]),F)},VariableDeclarator:function(C,B){var F=B&L?K:De;return C.init?[this.generateExpression(C.id,r.Assignment,F),E,"=",E,this.generateExpression(C.init,r.Assignment,F)]:this.generatePattern(C.id,r.Assignment,F)},VariableDeclaration:function(C,B){var F,P,V,ie,ue,ce=this;F=[C.kind],ue=B&L?se:Oe;function _e(){for(ie=C.declarations[0],O.comment&&ie.leadingComments?(F.push(`
|
|
1048
|
+
`),F.push(vt(ce.generateStatement(ie,ue)))):(F.push(ct()),F.push(ce.generateStatement(ie,ue))),P=1,V=C.declarations.length;P<V;++P)ie=C.declarations[P],O.comment&&ie.leadingComments?(F.push(","+b),F.push(vt(ce.generateStatement(ie,ue)))):(F.push(","+E),F.push(ce.generateStatement(ie,ue)))}return C.declarations.length>1?et(_e):_e(),F.push(this.semicolon(B)),F},ThrowStatement:function(C,B){return[Ie("throw",this.generateExpression(C.argument,r.Sequence,K)),this.semicolon(B)]},TryStatement:function(C,B){var F,P,V,ie;if(F=["try",this.maybeBlock(C.block,se)],F=this.maybeBlockSuffix(C.block,F),C.handlers)for(P=0,V=C.handlers.length;P<V;++P)F=Ie(F,this.generateStatement(C.handlers[P],se)),(C.finalizer||P+1!==V)&&(F=this.maybeBlockSuffix(C.handlers[P].body,F));else{for(ie=C.guardedHandlers||[],P=0,V=ie.length;P<V;++P)F=Ie(F,this.generateStatement(ie[P],se)),(C.finalizer||P+1!==V)&&(F=this.maybeBlockSuffix(ie[P].body,F));if(C.handler)if(Array.isArray(C.handler))for(P=0,V=C.handler.length;P<V;++P)F=Ie(F,this.generateStatement(C.handler[P],se)),(C.finalizer||P+1!==V)&&(F=this.maybeBlockSuffix(C.handler[P].body,F));else F=Ie(F,this.generateStatement(C.handler,se)),C.finalizer&&(F=this.maybeBlockSuffix(C.handler.body,F))}return C.finalizer&&(F=Ie(F,["finally",this.maybeBlock(C.finalizer,se)])),F},SwitchStatement:function(C,B){var F,P,V,ie,ue,ce=this;if(et(function(){F=["switch"+E+"(",ce.generateExpression(C.discriminant,r.Sequence,K),")"+E+"{"+b]}),C.cases)for(ue=se,V=0,ie=C.cases.length;V<ie;++V)V===ie-1&&(ue|=oe),P=vt(this.generateStatement(C.cases[V],ue)),F.push(P),Se(ye(P).toString())||F.push(b);return F.push(vt("}")),F},SwitchCase:function(C,B){var F,P,V,ie,ue,ce=this;return et(function(){for(C.test?F=[Ie("case",ce.generateExpression(C.test,r.Sequence,K)),":"]:F=["default:"],V=0,ie=C.consequent.length,ie&&C.consequent[0].type===t.BlockStatement&&(P=ce.maybeBlock(C.consequent[0],se),F.push(P),V=1),V!==ie&&!Se(ye(F).toString())&&F.push(b),ue=se;V<ie;++V)V===ie-1&&B&oe&&(ue|=oe),P=vt(ce.generateStatement(C.consequent[V],ue)),F.push(P),V+1!==ie&&!Se(ye(P).toString())&&F.push(b)}),F},IfStatement:function(C,B){var F,P,V,ie=this;return et(function(){F=["if"+E+"(",ie.generateExpression(C.test,r.Sequence,K),")"]}),V=B&oe,P=se,V&&(P|=oe),C.alternate?(F.push(this.maybeBlock(C.consequent,se)),F=this.maybeBlockSuffix(C.consequent,F),C.alternate.type===t.IfStatement?F=Ie(F,["else ",this.generateStatement(C.alternate,P)]):F=Ie(F,Ie("else",this.maybeBlock(C.alternate,P)))):F.push(this.maybeBlock(C.consequent,P)),F},ForStatement:function(C,B){var F,P=this;return et(function(){F=["for"+E+"("],C.init?C.init.type===t.VariableDeclaration?F.push(P.generateStatement(C.init,Oe)):(F.push(P.generateExpression(C.init,r.Sequence,De)),F.push(";")):F.push(";"),C.test&&(F.push(E),F.push(P.generateExpression(C.test,r.Sequence,K))),F.push(";"),C.update&&(F.push(E),F.push(P.generateExpression(C.update,r.Sequence,K))),F.push(")")}),F.push(this.maybeBlock(C.body,B&oe?Te:se)),F},ForInStatement:function(C,B){return this.generateIterationForStatement("in",C,B&oe?Te:se)},ForOfStatement:function(C,B){return this.generateIterationForStatement("of",C,B&oe?Te:se)},LabeledStatement:function(C,B){return[C.label.name+":",this.maybeBlock(C.body,B&oe?Te:se)]},Program:function(C,B){var F,P,V,ie,ue;for(ie=C.body.length,F=[S&&ie>0?`
|
|
1049
|
+
`:""],ue=Le,V=0;V<ie;++V)!S&&V===ie-1&&(ue|=oe),_&&(V===0&&(C.body[0].leadingComments||er(C.range[0],C.body[V].range[0],F)),V>0&&!C.body[V-1].trailingComments&&!C.body[V].leadingComments&&er(C.body[V-1].range[1],C.body[V].range[0],F)),P=vt(this.generateStatement(C.body[V],ue)),F.push(P),V+1<ie&&!Se(ye(P).toString())&&(_&&C.body[V+1].leadingComments||F.push(b)),_&&V===ie-1&&(C.body[V].trailingComments||er(C.body[V].range[1],C.range[1],F));return F},FunctionDeclaration:function(C,B){return[tr(C,!0),"function",gt(C)||ct(),C.id?At(C.id):"",this.generateFunctionBody(C)]},ReturnStatement:function(C,B){return C.argument?[Ie("return",this.generateExpression(C.argument,r.Sequence,K)),this.semicolon(B)]:["return"+this.semicolon(B)]},WhileStatement:function(C,B){var F,P=this;return et(function(){F=["while"+E+"(",P.generateExpression(C.test,r.Sequence,K),")"]}),F.push(this.maybeBlock(C.body,B&oe?Te:se)),F},WithStatement:function(C,B){var F,P=this;return et(function(){F=["with"+E+"(",P.generateExpression(C.object,r.Sequence,K),")"]}),F.push(this.maybeBlock(C.body,B&oe?Te:se)),F}},Re(rt.prototype,rt.Statement),rt.Expression={SequenceExpression:function(C,B,F){var P,V,ie;for(r.Sequence<B&&(F|=L),P=[],V=0,ie=C.expressions.length;V<ie;++V)P.push(this.generateExpression(C.expressions[V],r.Assignment,F)),V+1<ie&&P.push(","+E);return ot(P,r.Sequence,B)},AssignmentExpression:function(C,B,F){return this.generateAssignment(C.left,C.right,C.operator,B,F)},ArrowFunctionExpression:function(C,B,F){return ot(this.generateFunctionBody(C),r.ArrowFunction,B)},ConditionalExpression:function(C,B,F){return r.Conditional<B&&(F|=L),ot([this.generateExpression(C.test,r.Coalesce,F),E+"?"+E,this.generateExpression(C.consequent,r.Assignment,F),E+":"+E,this.generateExpression(C.alternate,r.Assignment,F)],r.Conditional,B)},LogicalExpression:function(C,B,F){return C.operator==="??"&&(F|=ve),this.BinaryExpression(C,B,F)},BinaryExpression:function(C,B,F){var P,V,ie,ue,ce,_e;return ue=n[C.operator],V=C.operator==="**"?r.Postfix:ue,ie=C.operator==="**"?ue:ue+1,ue<B&&(F|=L),ce=this.generateExpression(C.left,V,F),_e=ce.toString(),_e.charCodeAt(_e.length-1)===47&&a.code.isIdentifierPartES5(C.operator.charCodeAt(0))?P=[ce,ct(),C.operator]:P=Ie(ce,C.operator),ce=this.generateExpression(C.right,ie,F),C.operator==="/"&&ce.toString().charAt(0)==="/"||C.operator.slice(-1)==="<"&&ce.toString().slice(0,3)==="!--"?(P.push(ct()),P.push(ce)):P=Ie(P,ce),C.operator==="in"&&!(F&L)?["(",P,")"]:(C.operator==="||"||C.operator==="&&")&&F&ve?["(",P,")"]:ot(P,ue,B)},CallExpression:function(C,B,F){var P,V,ie;for(P=[this.generateExpression(C.callee,r.Call,z)],C.optional&&P.push("?."),P.push("("),V=0,ie=C.arguments.length;V<ie;++V)P.push(this.generateExpression(C.arguments[V],r.Assignment,K)),V+1<ie&&P.push(","+E);return P.push(")"),F&I?ot(P,r.Call,B):["(",P,")"]},ChainExpression:function(C,B,F){r.OptionalChaining<B&&(F|=I);var P=this.generateExpression(C.expression,r.OptionalChaining,F);return ot(P,r.OptionalChaining,B)},NewExpression:function(C,B,F){var P,V,ie,ue,ce;if(V=C.arguments.length,ce=F&$&&!w&&V===0?fe:be,P=Ie("new",this.generateExpression(C.callee,r.New,ce)),!(F&$)||w||V>0){for(P.push("("),ie=0,ue=V;ie<ue;++ie)P.push(this.generateExpression(C.arguments[ie],r.Assignment,K)),ie+1<ue&&P.push(","+E);P.push(")")}return ot(P,r.New,B)},MemberExpression:function(C,B,F){var P,V;return P=[this.generateExpression(C.object,r.Call,F&I?z:be)],C.computed?(C.optional&&P.push("?."),P.push("["),P.push(this.generateExpression(C.property,r.Sequence,F&I?K:fe)),P.push("]")):(!C.optional&&C.object.type===t.Literal&&typeof C.object.value=="number"&&(V=ye(P).toString(),V.indexOf(".")<0&&!/[eExX]/.test(V)&&a.code.isDecimalDigit(V.charCodeAt(V.length-1))&&!(V.length>=2&&V.charCodeAt(0)===48)&&P.push(" ")),P.push(C.optional?"?.":"."),P.push(At(C.property))),ot(P,r.Member,B)},MetaProperty:function(C,B,F){var P;return P=[],P.push(typeof C.meta=="string"?C.meta:At(C.meta)),P.push("."),P.push(typeof C.property=="string"?C.property:At(C.property)),ot(P,r.Member,B)},UnaryExpression:function(C,B,F){var P,V,ie,ue,ce;return V=this.generateExpression(C.argument,r.Unary,K),E===""?P=Ie(C.operator,V):(P=[C.operator],C.operator.length>2?P=Ie(P,V):(ue=ye(P).toString(),ce=ue.charCodeAt(ue.length-1),ie=V.toString().charCodeAt(0),((ce===43||ce===45)&&ce===ie||a.code.isIdentifierPartES5(ce)&&a.code.isIdentifierPartES5(ie))&&P.push(ct()),P.push(V))),ot(P,r.Unary,B)},YieldExpression:function(C,B,F){var P;return C.delegate?P="yield*":P="yield",C.argument&&(P=Ie(P,this.generateExpression(C.argument,r.Yield,K))),ot(P,r.Yield,B)},AwaitExpression:function(C,B,F){var P=Ie(C.all?"await*":"await",this.generateExpression(C.argument,r.Await,K));return ot(P,r.Await,B)},UpdateExpression:function(C,B,F){return C.prefix?ot([C.operator,this.generateExpression(C.argument,r.Unary,K)],r.Unary,B):ot([this.generateExpression(C.argument,r.Postfix,K),C.operator],r.Postfix,B)},FunctionExpression:function(C,B,F){var P=[tr(C,!0),"function"];return C.id?(P.push(gt(C)||ct()),P.push(At(C.id))):P.push(gt(C)||E),P.push(this.generateFunctionBody(C)),P},ArrayPattern:function(C,B,F){return this.ArrayExpression(C,B,F,!0)},ArrayExpression:function(C,B,F,P){var V,ie,ue=this;return C.elements.length?(ie=P?!1:C.elements.length>1,V=["[",ie?b:""],et(function(ce){var _e,Ve;for(_e=0,Ve=C.elements.length;_e<Ve;++_e)C.elements[_e]?(V.push(ie?ce:""),V.push(ue.generateExpression(C.elements[_e],r.Assignment,K))):(ie&&V.push(ce),_e+1===Ve&&V.push(",")),_e+1<Ve&&V.push(","+(ie?b:E))}),ie&&!Se(ye(V).toString())&&V.push(b),V.push(ie?s:""),V.push("]"),V):"[]"},RestElement:function(C,B,F){return"..."+this.generatePattern(C.argument)},ClassExpression:function(C,B,F){var P,V;return P=["class"],C.id&&(P=Ie(P,this.generateExpression(C.id,r.Sequence,K))),C.superClass&&(V=Ie("extends",this.generateExpression(C.superClass,r.Unary,K)),P=Ie(P,V)),P.push(E),P.push(this.generateStatement(C.body,Te)),P},MethodDefinition:function(C,B,F){var P,V;return C.static?P=["static"+E]:P=[],C.kind==="get"||C.kind==="set"?V=[Ie(C.kind,this.generatePropertyKey(C.key,C.computed)),this.generateFunctionBody(C.value)]:V=[nt(C),this.generatePropertyKey(C.key,C.computed),this.generateFunctionBody(C.value)],Ie(P,V)},Property:function(C,B,F){return C.kind==="get"||C.kind==="set"?[C.kind,ct(),this.generatePropertyKey(C.key,C.computed),this.generateFunctionBody(C.value)]:C.shorthand?C.value.type==="AssignmentPattern"?this.AssignmentPattern(C.value,r.Sequence,K):this.generatePropertyKey(C.key,C.computed):C.method?[nt(C),this.generatePropertyKey(C.key,C.computed),this.generateFunctionBody(C.value)]:[this.generatePropertyKey(C.key,C.computed),":"+E,this.generateExpression(C.value,r.Assignment,K)]},ObjectExpression:function(C,B,F){var P,V,ie,ue=this;return C.properties.length?(P=C.properties.length>1,et(function(){ie=ue.generateExpression(C.properties[0],r.Sequence,K)}),!P&&!xe(ye(ie).toString())?["{",E,ie,E,"}"]:(et(function(ce){var _e,Ve;if(V=["{",b,ce,ie],P)for(V.push(","+b),_e=1,Ve=C.properties.length;_e<Ve;++_e)V.push(ce),V.push(ue.generateExpression(C.properties[_e],r.Sequence,K)),_e+1<Ve&&V.push(","+b)}),Se(ye(V).toString())||V.push(b),V.push(s),V.push("}"),V)):"{}"},AssignmentPattern:function(C,B,F){return this.generateAssignment(C.left,C.right,"=",B,F)},ObjectPattern:function(C,B,F){var P,V,ie,ue,ce,_e=this;if(!C.properties.length)return"{}";if(ue=!1,C.properties.length===1)ce=C.properties[0],ce.type===t.Property&&ce.value.type!==t.Identifier&&(ue=!0);else for(V=0,ie=C.properties.length;V<ie;++V)if(ce=C.properties[V],ce.type===t.Property&&!ce.shorthand){ue=!0;break}return P=["{",ue?b:""],et(function(Ve){var he,Pt;for(he=0,Pt=C.properties.length;he<Pt;++he)P.push(ue?Ve:""),P.push(_e.generateExpression(C.properties[he],r.Sequence,K)),he+1<Pt&&P.push(","+(ue?b:E))}),ue&&!Se(ye(P).toString())&&P.push(b),P.push(ue?s:""),P.push("}"),P},ThisExpression:function(C,B,F){return"this"},Super:function(C,B,F){return"super"},Identifier:function(C,B,F){return At(C)},ImportDefaultSpecifier:function(C,B,F){return At(C.id||C.local)},ImportNamespaceSpecifier:function(C,B,F){var P=["*"],V=C.id||C.local;return V&&P.push(E+"as"+ct()+At(V)),P},ImportSpecifier:function(C,B,F){var P=C.imported,V=[P.name],ie=C.local;return ie&&ie.name!==P.name&&V.push(ct()+"as"+ct()+At(ie)),V},ExportSpecifier:function(C,B,F){var P=C.local,V=[P.name],ie=C.exported;return ie&&ie.name!==P.name&&V.push(ct()+"as"+ct()+At(ie)),V},Literal:function(C,B,F){var P;if(C.hasOwnProperty("raw")&&R&&O.raw)try{if(P=R(C.raw).body[0].expression,P.type===t.Literal&&P.value===C.value)return C.raw}catch{}return C.regex?"/"+C.regex.pattern+"/"+C.regex.flags:typeof C.value=="bigint"?C.value.toString()+"n":C.bigint?C.bigint+"n":C.value===null?"null":typeof C.value=="string"?Zt(C.value):typeof C.value=="number"?Me(C.value):typeof C.value=="boolean"?C.value?"true":"false":Ot(C.value)},GeneratorExpression:function(C,B,F){return this.ComprehensionExpression(C,B,F)},ComprehensionExpression:function(C,B,F){var P,V,ie,ue,ce=this;return P=C.type===t.GeneratorExpression?["("]:["["],O.moz.comprehensionExpressionStartsWithAssignment&&(ue=this.generateExpression(C.body,r.Assignment,K),P.push(ue)),C.blocks&&et(function(){for(V=0,ie=C.blocks.length;V<ie;++V)ue=ce.generateExpression(C.blocks[V],r.Sequence,K),V>0||O.moz.comprehensionExpressionStartsWithAssignment?P=Ie(P,ue):P.push(ue)}),C.filter&&(P=Ie(P,"if"+E),ue=this.generateExpression(C.filter,r.Sequence,K),P=Ie(P,["(",ue,")"])),O.moz.comprehensionExpressionStartsWithAssignment||(ue=this.generateExpression(C.body,r.Assignment,K),P=Ie(P,ue)),P.push(C.type===t.GeneratorExpression?")":"]"),P},ComprehensionBlock:function(C,B,F){var P;return C.left.type===t.VariableDeclaration?P=[C.left.kind,ct(),this.generateStatement(C.left.declarations[0],Oe)]:P=this.generateExpression(C.left,r.Call,K),P=Ie(P,C.of?"of":"in"),P=Ie(P,this.generateExpression(C.right,r.Sequence,K)),["for"+E+"(",P,")"]},SpreadElement:function(C,B,F){return["...",this.generateExpression(C.argument,r.Assignment,K)]},TaggedTemplateExpression:function(C,B,F){var P=z;F&I||(P=be);var V=[this.generateExpression(C.tag,r.Call,P),this.generateExpression(C.quasi,r.Primary,me)];return ot(V,r.TaggedTemplate,B)},TemplateElement:function(C,B,F){return C.value.raw},TemplateLiteral:function(C,B,F){var P,V,ie;for(P=["`"],V=0,ie=C.quasis.length;V<ie;++V)P.push(this.generateExpression(C.quasis[V],r.Primary,K)),V+1<ie&&(P.push("${"+E),P.push(this.generateExpression(C.expressions[V],r.Sequence,K)),P.push(E+"}"));return P.push("`"),P},ModuleSpecifier:function(C,B,F){return this.Literal(C,B,F)},ImportExpression:function(C,B,F){return ot(["import(",this.generateExpression(C.source,r.Assignment,K),")"],r.Call,B)}},Re(rt.prototype,rt.Expression),rt.prototype.generateExpression=function(C,B,F){var P,V;return V=C.type||t.Property,O.verbatim&&C.hasOwnProperty(O.verbatim)?kr(C,B):(P=this[V](C,B,F),O.comment&&(P=Be(C,P)),ye(P,C))},rt.prototype.generateStatement=function(C,B){var F,P;return F=this[C.type](C,B),O.comment&&(F=Be(C,F)),P=ye(F).toString(),C.type===t.Program&&!S&&b===""&&P.charAt(P.length-1)===`
|
|
1050
|
+
`&&(F=y?ye(F).replaceRight(/\s+$/,""):P.replace(/\s+$/,"")),ye(F,C)};function Nt(C){var B;if(B=new rt,G(C))return B.generateStatement(C,se);if(M(C))return B.generateExpression(C,r.Sequence,K);throw new Error("Unknown node type: "+C.type)}function Ne(C,B){var F=de(),P,V;return B!=null?(typeof B.indent=="string"&&(F.format.indent.style=B.indent),typeof B.base=="number"&&(F.format.indent.base=B.base),B=Pe(F,B),p=B.format.indent.style,typeof B.base=="string"?s=B.base:s=Ae(p,B.format.indent.base)):(B=F,p=B.format.indent.style,s=Ae(p,B.format.indent.base)),l=B.format.json,d=B.format.renumber,f=l?!1:B.format.hexadecimal,h=l?"double":B.format.quotes,m=B.format.escapeless,b=B.format.newline,E=B.format.space,B.format.compact&&(b=E=p=s=""),w=B.format.parentheses,A=B.format.semicolons,S=B.format.safeConcatenation,k=B.directive,R=l?null:B.parse,y=B.sourceMap,T=B.sourceCode,_=B.format.preserveBlankLines&&T!==null,O=B,y&&(e.browser?i=global.sourceMap.SourceNode:i=W4().SourceNode),P=Nt(C),y?(V=P.toStringWithSourceMap({file:B.file,sourceRoot:B.sourceMapRoot}),B.sourceContent&&V.map.setSourceContent(B.sourceMap,B.sourceContent),B.sourceMapWithCode?V:V.map.toString()):(V={code:P.toString(),map:null},B.sourceMapWithCode?V:V.code)}D={indent:{style:"",base:0},renumber:!0,hexadecimal:!0,quotes:"auto",escapeless:!0,compact:!0,parentheses:!1,semicolons:!1},J=de().format,e.version=Y4().version,e.generate=Ne,e.attachComments=o.attachComments,e.Precedence=Pe({},r),e.browser=!1,e.FORMAT_MINIFY=D,e.FORMAT_DEFAULTS=J})()}}),jl=ht({"../../node_modules/acorn/dist/acorn.js"(e,t){(function(r,n){typeof e=="object"&&typeof t<"u"?n(e):typeof define=="function"&&define.amd?define(["exports"],n):(r=r||self,n(r.acorn={}))})(e,(function(r){var n={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},i="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",o={5:i,"5module":i+" export import",6:i+" const class extends export import super"},a=/^in(stanceof)?$/,s="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",p="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",l=new RegExp("["+s+"]"),d=new RegExp("["+s+p+"]");s=p=null;var f=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,107,20,28,22,13,52,76,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8952,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938],h=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239];function m(c,v){for(var N=65536,j=0;j<v.length;j+=2){if(N+=v[j],N>c)return!1;if(N+=v[j+1],N>=c)return!0}}function b(c,v){return c<65?c===36:c<91?!0:c<97?c===95:c<123?!0:c<=65535?c>=170&&l.test(String.fromCharCode(c)):v===!1?!1:m(c,f)}function E(c,v){return c<48?c===36:c<58?!0:c<65?!1:c<91?!0:c<97?c===95:c<123?!0:c<=65535?c>=170&&d.test(String.fromCharCode(c)):v===!1?!1:m(c,f)||m(c,h)}var w=function(c,v){v===void 0&&(v={}),this.label=c,this.keyword=v.keyword,this.beforeExpr=!!v.beforeExpr,this.startsExpr=!!v.startsExpr,this.isLoop=!!v.isLoop,this.isAssign=!!v.isAssign,this.prefix=!!v.prefix,this.postfix=!!v.postfix,this.binop=v.binop||null,this.updateContext=null};function A(c,v){return new w(c,{beforeExpr:!0,binop:v})}var S={beforeExpr:!0},k={startsExpr:!0},O={};function R(c,v){return v===void 0&&(v={}),v.keyword=c,O[c]=new w(c,v)}var y={num:new w("num",k),regexp:new w("regexp",k),string:new w("string",k),name:new w("name",k),eof:new w("eof"),bracketL:new w("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new w("]"),braceL:new w("{",{beforeExpr:!0,startsExpr:!0}),braceR:new w("}"),parenL:new w("(",{beforeExpr:!0,startsExpr:!0}),parenR:new w(")"),comma:new w(",",S),semi:new w(";",S),colon:new w(":",S),dot:new w("."),question:new w("?",S),questionDot:new w("?."),arrow:new w("=>",S),template:new w("template"),invalidTemplate:new w("invalidTemplate"),ellipsis:new w("...",S),backQuote:new w("`",k),dollarBraceL:new w("${",{beforeExpr:!0,startsExpr:!0}),eq:new w("=",{beforeExpr:!0,isAssign:!0}),assign:new w("_=",{beforeExpr:!0,isAssign:!0}),incDec:new w("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new w("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:A("||",1),logicalAND:A("&&",2),bitwiseOR:A("|",3),bitwiseXOR:A("^",4),bitwiseAND:A("&",5),equality:A("==/!=/===/!==",6),relational:A("</>/<=/>=",7),bitShift:A("<</>>/>>>",8),plusMin:new w("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:A("%",10),star:A("*",10),slash:A("/",10),starstar:new w("**",{beforeExpr:!0}),coalesce:A("??",1),_break:R("break"),_case:R("case",S),_catch:R("catch"),_continue:R("continue"),_debugger:R("debugger"),_default:R("default",S),_do:R("do",{isLoop:!0,beforeExpr:!0}),_else:R("else",S),_finally:R("finally"),_for:R("for",{isLoop:!0}),_function:R("function",k),_if:R("if"),_return:R("return",S),_switch:R("switch"),_throw:R("throw",S),_try:R("try"),_var:R("var"),_const:R("const"),_while:R("while",{isLoop:!0}),_with:R("with"),_new:R("new",{beforeExpr:!0,startsExpr:!0}),_this:R("this",k),_super:R("super",k),_class:R("class",k),_extends:R("extends",S),_export:R("export"),_import:R("import",k),_null:R("null",k),_true:R("true",k),_false:R("false",k),_in:R("in",{beforeExpr:!0,binop:7}),_instanceof:R("instanceof",{beforeExpr:!0,binop:7}),_typeof:R("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:R("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:R("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},T=/\r\n?|\n|\u2028|\u2029/,_=new RegExp(T.source,"g");function D(c,v){return c===10||c===13||!v&&(c===8232||c===8233)}var J=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,M=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,G=Object.prototype,L=G.hasOwnProperty,I=G.toString;function $(c,v){return L.call(c,v)}var Y=Array.isArray||(function(c){return I.call(c)==="[object Array]"});function X(c){return new RegExp("^(?:"+c.replace(/ /g,"|")+")$")}var oe=function(c,v){this.line=c,this.column=v};oe.prototype.offset=function(c){return new oe(this.line,this.column+c)};var ve=function(c,v,N){this.start=v,this.end=N,c.sourceFile!==null&&(this.source=c.sourceFile)};function De(c,v){for(var N=1,j=0;;){_.lastIndex=j;var W=_.exec(c);if(W&&W.index<v)++N,j=W.index+W[0].length;else return new oe(N,v-j)}}var z={ecmaVersion:10,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:!1,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1};function K(c){var v={};for(var N in z)v[N]=c&&$(c,N)?c[N]:z[N];if(v.ecmaVersion>=2015&&(v.ecmaVersion-=2009),v.allowReserved==null&&(v.allowReserved=v.ecmaVersion<5),Y(v.onToken)){var j=v.onToken;v.onToken=function(W){return j.push(W)}}return Y(v.onComment)&&(v.onComment=be(v,v.onComment)),v}function be(c,v){return function(N,j,W,ne,le,Ce){var Fe={type:N?"Block":"Line",value:j,start:W,end:ne};c.locations&&(Fe.loc=new ve(this,le,Ce)),c.ranges&&(Fe.range=[W,ne]),v.push(Fe)}}var me=1,fe=2,se=me|fe,Te=4,Oe=8,Le=16,Z=32,de=64,Ae=128;function xe(c,v){return fe|(c?Te:0)|(v?Oe:0)}var Se=0,Re=1,Pe=2,Me=3,st=4,Ot=5,Ue=function(c,v,N){this.options=c=K(c),this.sourceFile=c.sourceFile,this.keywords=X(o[c.ecmaVersion>=6?6:c.sourceType==="module"?"5module":5]);var j="";if(c.allowReserved!==!0){for(var W=c.ecmaVersion;!(j=n[W]);W--);c.sourceType==="module"&&(j+=" await")}this.reservedWords=X(j);var ne=(j?j+" ":"")+n.strict;this.reservedWordsStrict=X(ne),this.reservedWordsStrictBind=X(ne+" "+n.strictBind),this.input=String(v),this.containsEsc=!1,N?(this.pos=N,this.lineStart=this.input.lastIndexOf(`
|
|
1051
|
+
`,N-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(T).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=y.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=c.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports={},this.pos===0&&c.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(me),this.regexpState=null},mt={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0}};Ue.prototype.parse=function(){var c=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(c)},mt.inFunction.get=function(){return(this.currentVarScope().flags&fe)>0},mt.inGenerator.get=function(){return(this.currentVarScope().flags&Oe)>0},mt.inAsync.get=function(){return(this.currentVarScope().flags&Te)>0},mt.allowSuper.get=function(){return(this.currentThisScope().flags&de)>0},mt.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Ae)>0},mt.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Ue.prototype.inNonArrowFunction=function(){return(this.currentThisScope().flags&fe)>0},Ue.extend=function(){for(var c=[],v=arguments.length;v--;)c[v]=arguments[v];for(var N=this,j=0;j<c.length;j++)N=c[j](N);return N},Ue.parse=function(c,v){return new this(v,c).parse()},Ue.parseExpressionAt=function(c,v,N){var j=new this(N,c,v);return j.nextToken(),j.parseExpression()},Ue.tokenizer=function(c,v){return new this(v,c)},Object.defineProperties(Ue.prototype,mt);var Ye=Ue.prototype,Zt=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;Ye.strictDirective=function(c){for(;;){M.lastIndex=c,c+=M.exec(this.input)[0].length;var v=Zt.exec(this.input.slice(c));if(!v)return!1;if((v[1]||v[2])==="use strict"){M.lastIndex=c+v[0].length;var N=M.exec(this.input),j=N.index+N[0].length,W=this.input.charAt(j);return W===";"||W==="}"||T.test(N[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(W)||W==="!"&&this.input.charAt(j+1)==="=")}c+=v[0].length,M.lastIndex=c,c+=M.exec(this.input)[0].length,this.input[c]===";"&&c++}},Ye.eat=function(c){return this.type===c?(this.next(),!0):!1},Ye.isContextual=function(c){return this.type===y.name&&this.value===c&&!this.containsEsc},Ye.eatContextual=function(c){return this.isContextual(c)?(this.next(),!0):!1},Ye.expectContextual=function(c){this.eatContextual(c)||this.unexpected()},Ye.canInsertSemicolon=function(){return this.type===y.eof||this.type===y.braceR||T.test(this.input.slice(this.lastTokEnd,this.start))},Ye.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},Ye.semicolon=function(){!this.eat(y.semi)&&!this.insertSemicolon()&&this.unexpected()},Ye.afterTrailingComma=function(c,v){if(this.type===c)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),v||this.next(),!0},Ye.expect=function(c){this.eat(c)||this.unexpected()},Ye.unexpected=function(c){this.raise(c??this.start,"Unexpected token")};function Ft(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}Ye.checkPatternErrors=function(c,v){if(c){c.trailingComma>-1&&this.raiseRecoverable(c.trailingComma,"Comma is not permitted after the rest element");var N=v?c.parenthesizedAssign:c.parenthesizedBind;N>-1&&this.raiseRecoverable(N,"Parenthesized pattern")}},Ye.checkExpressionErrors=function(c,v){if(!c)return!1;var N=c.shorthandAssign,j=c.doubleProto;if(!v)return N>=0||j>=0;N>=0&&this.raise(N,"Shorthand property assignments are valid only in destructuring patterns"),j>=0&&this.raiseRecoverable(j,"Redefinition of __proto__ property")},Ye.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},Ye.isSimpleAssignTarget=function(c){return c.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(c.expression):c.type==="Identifier"||c.type==="MemberExpression"};var ye=Ue.prototype;ye.parseTopLevel=function(c){var v={};for(c.body||(c.body=[]);this.type!==y.eof;){var N=this.parseStatement(null,!0,v);c.body.push(N)}if(this.inModule)for(var j=0,W=Object.keys(this.undefinedExports);j<W.length;j+=1){var ne=W[j];this.raiseRecoverable(this.undefinedExports[ne].start,"Export '"+ne+"' is not defined")}return this.adaptDirectivePrologue(c.body),this.next(),c.sourceType=this.options.sourceType,this.finishNode(c,"Program")};var ct={kind:"loop"},Ie={kind:"switch"};ye.isLet=function(c){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;M.lastIndex=this.pos;var v=M.exec(this.input),N=this.pos+v[0].length,j=this.input.charCodeAt(N);if(j===91)return!0;if(c)return!1;if(j===123)return!0;if(b(j,!0)){for(var W=N+1;E(this.input.charCodeAt(W),!0);)++W;var ne=this.input.slice(N,W);if(!a.test(ne))return!0}return!1},ye.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;M.lastIndex=this.pos;var c=M.exec(this.input),v=this.pos+c[0].length;return!T.test(this.input.slice(this.pos,v))&&this.input.slice(v,v+8)==="function"&&(v+8===this.input.length||!E(this.input.charAt(v+8)))},ye.parseStatement=function(c,v,N){var j=this.type,W=this.startNode(),ne;switch(this.isLet(c)&&(j=y._var,ne="let"),j){case y._break:case y._continue:return this.parseBreakContinueStatement(W,j.keyword);case y._debugger:return this.parseDebuggerStatement(W);case y._do:return this.parseDoStatement(W);case y._for:return this.parseForStatement(W);case y._function:return c&&(this.strict||c!=="if"&&c!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(W,!1,!c);case y._class:return c&&this.unexpected(),this.parseClass(W,!0);case y._if:return this.parseIfStatement(W);case y._return:return this.parseReturnStatement(W);case y._switch:return this.parseSwitchStatement(W);case y._throw:return this.parseThrowStatement(W);case y._try:return this.parseTryStatement(W);case y._const:case y._var:return ne=ne||this.value,c&&ne!=="var"&&this.unexpected(),this.parseVarStatement(W,ne);case y._while:return this.parseWhileStatement(W);case y._with:return this.parseWithStatement(W);case y.braceL:return this.parseBlock(!0,W);case y.semi:return this.parseEmptyStatement(W);case y._export:case y._import:if(this.options.ecmaVersion>10&&j===y._import){M.lastIndex=this.pos;var le=M.exec(this.input),Ce=this.pos+le[0].length,Fe=this.input.charCodeAt(Ce);if(Fe===40||Fe===46)return this.parseExpressionStatement(W,this.parseExpression())}return this.options.allowImportExportEverywhere||(v||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),j===y._import?this.parseImport(W):this.parseExport(W,N);default:if(this.isAsyncFunction())return c&&this.unexpected(),this.next(),this.parseFunctionStatement(W,!0,!c);var Ke=this.value,dt=this.parseExpression();return j===y.name&&dt.type==="Identifier"&&this.eat(y.colon)?this.parseLabeledStatement(W,Ke,dt,c):this.parseExpressionStatement(W,dt)}},ye.parseBreakContinueStatement=function(c,v){var N=v==="break";this.next(),this.eat(y.semi)||this.insertSemicolon()?c.label=null:this.type!==y.name?this.unexpected():(c.label=this.parseIdent(),this.semicolon());for(var j=0;j<this.labels.length;++j){var W=this.labels[j];if((c.label==null||W.name===c.label.name)&&(W.kind!=null&&(N||W.kind==="loop")||c.label&&N))break}return j===this.labels.length&&this.raise(c.start,"Unsyntactic "+v),this.finishNode(c,N?"BreakStatement":"ContinueStatement")},ye.parseDebuggerStatement=function(c){return this.next(),this.semicolon(),this.finishNode(c,"DebuggerStatement")},ye.parseDoStatement=function(c){return this.next(),this.labels.push(ct),c.body=this.parseStatement("do"),this.labels.pop(),this.expect(y._while),c.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(y.semi):this.semicolon(),this.finishNode(c,"DoWhileStatement")},ye.parseForStatement=function(c){this.next();var v=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(ct),this.enterScope(0),this.expect(y.parenL),this.type===y.semi)return v>-1&&this.unexpected(v),this.parseFor(c,null);var N=this.isLet();if(this.type===y._var||this.type===y._const||N){var j=this.startNode(),W=N?"let":this.value;return this.next(),this.parseVar(j,!0,W),this.finishNode(j,"VariableDeclaration"),(this.type===y._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&j.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===y._in?v>-1&&this.unexpected(v):c.await=v>-1),this.parseForIn(c,j)):(v>-1&&this.unexpected(v),this.parseFor(c,j))}var ne=new Ft,le=this.parseExpression(!0,ne);return this.type===y._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===y._in?v>-1&&this.unexpected(v):c.await=v>-1),this.toAssignable(le,!1,ne),this.checkLVal(le),this.parseForIn(c,le)):(this.checkExpressionErrors(ne,!0),v>-1&&this.unexpected(v),this.parseFor(c,le))},ye.parseFunctionStatement=function(c,v,N){return this.next(),this.parseFunction(c,et|(N?0:Er),!1,v)},ye.parseIfStatement=function(c){return this.next(),c.test=this.parseParenExpression(),c.consequent=this.parseStatement("if"),c.alternate=this.eat(y._else)?this.parseStatement("if"):null,this.finishNode(c,"IfStatement")},ye.parseReturnStatement=function(c){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(y.semi)||this.insertSemicolon()?c.argument=null:(c.argument=this.parseExpression(),this.semicolon()),this.finishNode(c,"ReturnStatement")},ye.parseSwitchStatement=function(c){this.next(),c.discriminant=this.parseParenExpression(),c.cases=[],this.expect(y.braceL),this.labels.push(Ie),this.enterScope(0);for(var v,N=!1;this.type!==y.braceR;)if(this.type===y._case||this.type===y._default){var j=this.type===y._case;v&&this.finishNode(v,"SwitchCase"),c.cases.push(v=this.startNode()),v.consequent=[],this.next(),j?v.test=this.parseExpression():(N&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),N=!0,v.test=null),this.expect(y.colon)}else v||this.unexpected(),v.consequent.push(this.parseStatement(null));return this.exitScope(),v&&this.finishNode(v,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(c,"SwitchStatement")},ye.parseThrowStatement=function(c){return this.next(),T.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),c.argument=this.parseExpression(),this.semicolon(),this.finishNode(c,"ThrowStatement")};var vt=[];ye.parseTryStatement=function(c){if(this.next(),c.block=this.parseBlock(),c.handler=null,this.type===y._catch){var v=this.startNode();if(this.next(),this.eat(y.parenL)){v.param=this.parseBindingAtom();var N=v.param.type==="Identifier";this.enterScope(N?Z:0),this.checkLVal(v.param,N?st:Pe),this.expect(y.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),v.param=null,this.enterScope(0);v.body=this.parseBlock(!1),this.exitScope(),c.handler=this.finishNode(v,"CatchClause")}return c.finalizer=this.eat(y._finally)?this.parseBlock():null,!c.handler&&!c.finalizer&&this.raise(c.start,"Missing catch or finally clause"),this.finishNode(c,"TryStatement")},ye.parseVarStatement=function(c,v){return this.next(),this.parseVar(c,!1,v),this.semicolon(),this.finishNode(c,"VariableDeclaration")},ye.parseWhileStatement=function(c){return this.next(),c.test=this.parseParenExpression(),this.labels.push(ct),c.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(c,"WhileStatement")},ye.parseWithStatement=function(c){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),c.object=this.parseParenExpression(),c.body=this.parseStatement("with"),this.finishNode(c,"WithStatement")},ye.parseEmptyStatement=function(c){return this.next(),this.finishNode(c,"EmptyStatement")},ye.parseLabeledStatement=function(c,v,N,j){for(var W=0,ne=this.labels;W<ne.length;W+=1){var le=ne[W];le.name===v&&this.raise(N.start,"Label '"+v+"' is already declared")}for(var Ce=this.type.isLoop?"loop":this.type===y._switch?"switch":null,Fe=this.labels.length-1;Fe>=0;Fe--){var Ke=this.labels[Fe];if(Ke.statementStart===c.start)Ke.statementStart=this.start,Ke.kind=Ce;else break}return this.labels.push({name:v,kind:Ce,statementStart:this.start}),c.body=this.parseStatement(j?j.indexOf("label")===-1?j+"label":j:"label"),this.labels.pop(),c.label=N,this.finishNode(c,"LabeledStatement")},ye.parseExpressionStatement=function(c,v){return c.expression=v,this.semicolon(),this.finishNode(c,"ExpressionStatement")},ye.parseBlock=function(c,v,N){for(c===void 0&&(c=!0),v===void 0&&(v=this.startNode()),v.body=[],this.expect(y.braceL),c&&this.enterScope(0);this.type!==y.braceR;){var j=this.parseStatement(null);v.body.push(j)}return N&&(this.strict=!1),this.next(),c&&this.exitScope(),this.finishNode(v,"BlockStatement")},ye.parseFor=function(c,v){return c.init=v,this.expect(y.semi),c.test=this.type===y.semi?null:this.parseExpression(),this.expect(y.semi),c.update=this.type===y.parenR?null:this.parseExpression(),this.expect(y.parenR),c.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(c,"ForStatement")},ye.parseForIn=function(c,v){var N=this.type===y._in;return this.next(),v.type==="VariableDeclaration"&&v.declarations[0].init!=null&&(!N||this.options.ecmaVersion<8||this.strict||v.kind!=="var"||v.declarations[0].id.type!=="Identifier")?this.raise(v.start,(N?"for-in":"for-of")+" loop variable declaration may not have an initializer"):v.type==="AssignmentPattern"&&this.raise(v.start,"Invalid left-hand side in for-loop"),c.left=v,c.right=N?this.parseExpression():this.parseMaybeAssign(),this.expect(y.parenR),c.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(c,N?"ForInStatement":"ForOfStatement")},ye.parseVar=function(c,v,N){for(c.declarations=[],c.kind=N;;){var j=this.startNode();if(this.parseVarId(j,N),this.eat(y.eq)?j.init=this.parseMaybeAssign(v):N==="const"&&!(this.type===y._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():j.id.type!=="Identifier"&&!(v&&(this.type===y._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):j.init=null,c.declarations.push(this.finishNode(j,"VariableDeclarator")),!this.eat(y.comma))break}return c},ye.parseVarId=function(c,v){c.id=this.parseBindingAtom(),this.checkLVal(c.id,v==="var"?Re:Pe,!1)};var et=1,Er=2,xr=4;ye.parseFunction=function(c,v,N,j){this.initFunction(c),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!j)&&(this.type===y.star&&v&Er&&this.unexpected(),c.generator=this.eat(y.star)),this.options.ecmaVersion>=8&&(c.async=!!j),v&et&&(c.id=v&xr&&this.type!==y.name?null:this.parseIdent(),c.id&&!(v&Er)&&this.checkLVal(c.id,this.strict||c.generator||c.async?this.treatFunctionsAsVar?Re:Pe:Me));var W=this.yieldPos,ne=this.awaitPos,le=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(xe(c.async,c.generator)),v&et||(c.id=this.type===y.name?this.parseIdent():null),this.parseFunctionParams(c),this.parseFunctionBody(c,N,!1),this.yieldPos=W,this.awaitPos=ne,this.awaitIdentPos=le,this.finishNode(c,v&et?"FunctionDeclaration":"FunctionExpression")},ye.parseFunctionParams=function(c){this.expect(y.parenL),c.params=this.parseBindingList(y.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},ye.parseClass=function(c,v){this.next();var N=this.strict;this.strict=!0,this.parseClassId(c,v),this.parseClassSuper(c);var j=this.startNode(),W=!1;for(j.body=[],this.expect(y.braceL);this.type!==y.braceR;){var ne=this.parseClassElement(c.superClass!==null);ne&&(j.body.push(ne),ne.type==="MethodDefinition"&&ne.kind==="constructor"&&(W&&this.raise(ne.start,"Duplicate constructor in the same class"),W=!0))}return this.strict=N,this.next(),c.body=this.finishNode(j,"ClassBody"),this.finishNode(c,v?"ClassDeclaration":"ClassExpression")},ye.parseClassElement=function(c){var v=this;if(this.eat(y.semi))return null;var N=this.startNode(),j=function(Fe,Ke){Ke===void 0&&(Ke=!1);var dt=v.start,Ht=v.startLoc;return v.eatContextual(Fe)?v.type!==y.parenL&&(!Ke||!v.canInsertSemicolon())?!0:(N.key&&v.unexpected(),N.computed=!1,N.key=v.startNodeAt(dt,Ht),N.key.name=Fe,v.finishNode(N.key,"Identifier"),!1):!1};N.kind="method",N.static=j("static");var W=this.eat(y.star),ne=!1;W||(this.options.ecmaVersion>=8&&j("async",!0)?(ne=!0,W=this.options.ecmaVersion>=9&&this.eat(y.star)):j("get")?N.kind="get":j("set")&&(N.kind="set")),N.key||this.parsePropertyName(N);var le=N.key,Ce=!1;return!N.computed&&!N.static&&(le.type==="Identifier"&&le.name==="constructor"||le.type==="Literal"&&le.value==="constructor")?(N.kind!=="method"&&this.raise(le.start,"Constructor can't have get/set modifier"),W&&this.raise(le.start,"Constructor can't be a generator"),ne&&this.raise(le.start,"Constructor can't be an async method"),N.kind="constructor",Ce=c):N.static&&le.type==="Identifier"&&le.name==="prototype"&&this.raise(le.start,"Classes may not have a static property named prototype"),this.parseClassMethod(N,W,ne,Ce),N.kind==="get"&&N.value.params.length!==0&&this.raiseRecoverable(N.value.start,"getter should have no params"),N.kind==="set"&&N.value.params.length!==1&&this.raiseRecoverable(N.value.start,"setter should have exactly one param"),N.kind==="set"&&N.value.params[0].type==="RestElement"&&this.raiseRecoverable(N.value.params[0].start,"Setter cannot use rest params"),N},ye.parseClassMethod=function(c,v,N,j){return c.value=this.parseMethod(v,N,j),this.finishNode(c,"MethodDefinition")},ye.parseClassId=function(c,v){this.type===y.name?(c.id=this.parseIdent(),v&&this.checkLVal(c.id,Pe,!1)):(v===!0&&this.unexpected(),c.id=null)},ye.parseClassSuper=function(c){c.superClass=this.eat(y._extends)?this.parseExprSubscripts():null},ye.parseExport=function(c,v){if(this.next(),this.eat(y.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(c.exported=this.parseIdent(!0),this.checkExport(v,c.exported.name,this.lastTokStart)):c.exported=null),this.expectContextual("from"),this.type!==y.string&&this.unexpected(),c.source=this.parseExprAtom(),this.semicolon(),this.finishNode(c,"ExportAllDeclaration");if(this.eat(y._default)){this.checkExport(v,"default",this.lastTokStart);var N;if(this.type===y._function||(N=this.isAsyncFunction())){var j=this.startNode();this.next(),N&&this.next(),c.declaration=this.parseFunction(j,et|xr,!1,N)}else if(this.type===y._class){var W=this.startNode();c.declaration=this.parseClass(W,"nullableID")}else c.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(c,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())c.declaration=this.parseStatement(null),c.declaration.type==="VariableDeclaration"?this.checkVariableExport(v,c.declaration.declarations):this.checkExport(v,c.declaration.id.name,c.declaration.id.start),c.specifiers=[],c.source=null;else{if(c.declaration=null,c.specifiers=this.parseExportSpecifiers(v),this.eatContextual("from"))this.type!==y.string&&this.unexpected(),c.source=this.parseExprAtom();else{for(var ne=0,le=c.specifiers;ne<le.length;ne+=1){var Ce=le[ne];this.checkUnreserved(Ce.local),this.checkLocalExport(Ce.local)}c.source=null}this.semicolon()}return this.finishNode(c,"ExportNamedDeclaration")},ye.checkExport=function(c,v,N){c&&($(c,v)&&this.raiseRecoverable(N,"Duplicate export '"+v+"'"),c[v]=!0)},ye.checkPatternExport=function(c,v){var N=v.type;if(N==="Identifier")this.checkExport(c,v.name,v.start);else if(N==="ObjectPattern")for(var j=0,W=v.properties;j<W.length;j+=1){var ne=W[j];this.checkPatternExport(c,ne)}else if(N==="ArrayPattern")for(var le=0,Ce=v.elements;le<Ce.length;le+=1){var Fe=Ce[le];Fe&&this.checkPatternExport(c,Fe)}else N==="Property"?this.checkPatternExport(c,v.value):N==="AssignmentPattern"?this.checkPatternExport(c,v.left):N==="RestElement"?this.checkPatternExport(c,v.argument):N==="ParenthesizedExpression"&&this.checkPatternExport(c,v.expression)},ye.checkVariableExport=function(c,v){if(c)for(var N=0,j=v;N<j.length;N+=1){var W=j[N];this.checkPatternExport(c,W.id)}},ye.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},ye.parseExportSpecifiers=function(c){var v=[],N=!0;for(this.expect(y.braceL);!this.eat(y.braceR);){if(N)N=!1;else if(this.expect(y.comma),this.afterTrailingComma(y.braceR))break;var j=this.startNode();j.local=this.parseIdent(!0),j.exported=this.eatContextual("as")?this.parseIdent(!0):j.local,this.checkExport(c,j.exported.name,j.exported.start),v.push(this.finishNode(j,"ExportSpecifier"))}return v},ye.parseImport=function(c){return this.next(),this.type===y.string?(c.specifiers=vt,c.source=this.parseExprAtom()):(c.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),c.source=this.type===y.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(c,"ImportDeclaration")},ye.parseImportSpecifiers=function(){var c=[],v=!0;if(this.type===y.name){var N=this.startNode();if(N.local=this.parseIdent(),this.checkLVal(N.local,Pe),c.push(this.finishNode(N,"ImportDefaultSpecifier")),!this.eat(y.comma))return c}if(this.type===y.star){var j=this.startNode();return this.next(),this.expectContextual("as"),j.local=this.parseIdent(),this.checkLVal(j.local,Pe),c.push(this.finishNode(j,"ImportNamespaceSpecifier")),c}for(this.expect(y.braceL);!this.eat(y.braceR);){if(v)v=!1;else if(this.expect(y.comma),this.afterTrailingComma(y.braceR))break;var W=this.startNode();W.imported=this.parseIdent(!0),this.eatContextual("as")?W.local=this.parseIdent():(this.checkUnreserved(W.imported),W.local=W.imported),this.checkLVal(W.local,Pe),c.push(this.finishNode(W,"ImportSpecifier"))}return c},ye.adaptDirectivePrologue=function(c){for(var v=0;v<c.length&&this.isDirectiveCandidate(c[v]);++v)c[v].directive=c[v].expression.raw.slice(1,-1)},ye.isDirectiveCandidate=function(c){return c.type==="ExpressionStatement"&&c.expression.type==="Literal"&&typeof c.expression.value=="string"&&(this.input[c.start]==='"'||this.input[c.start]==="'")};var yt=Ue.prototype;yt.toAssignable=function(c,v,N){if(this.options.ecmaVersion>=6&&c)switch(c.type){case"Identifier":this.inAsync&&c.name==="await"&&this.raise(c.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":c.type="ObjectPattern",N&&this.checkPatternErrors(N,!0);for(var j=0,W=c.properties;j<W.length;j+=1){var ne=W[j];this.toAssignable(ne,v),ne.type==="RestElement"&&(ne.argument.type==="ArrayPattern"||ne.argument.type==="ObjectPattern")&&this.raise(ne.argument.start,"Unexpected token")}break;case"Property":c.kind!=="init"&&this.raise(c.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(c.value,v);break;case"ArrayExpression":c.type="ArrayPattern",N&&this.checkPatternErrors(N,!0),this.toAssignableList(c.elements,v);break;case"SpreadElement":c.type="RestElement",this.toAssignable(c.argument,v),c.argument.type==="AssignmentPattern"&&this.raise(c.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":c.operator!=="="&&this.raise(c.left.end,"Only '=' operator can be used for specifying default value."),c.type="AssignmentPattern",delete c.operator,this.toAssignable(c.left,v);case"AssignmentPattern":break;case"ParenthesizedExpression":this.toAssignable(c.expression,v,N);break;case"ChainExpression":this.raiseRecoverable(c.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!v)break;default:this.raise(c.start,"Assigning to rvalue")}else N&&this.checkPatternErrors(N,!0);return c},yt.toAssignableList=function(c,v){for(var N=c.length,j=0;j<N;j++){var W=c[j];W&&this.toAssignable(W,v)}if(N){var ne=c[N-1];this.options.ecmaVersion===6&&v&&ne&&ne.type==="RestElement"&&ne.argument.type!=="Identifier"&&this.unexpected(ne.argument.start)}return c},yt.parseSpread=function(c){var v=this.startNode();return this.next(),v.argument=this.parseMaybeAssign(!1,c),this.finishNode(v,"SpreadElement")},yt.parseRestBinding=function(){var c=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==y.name&&this.unexpected(),c.argument=this.parseBindingAtom(),this.finishNode(c,"RestElement")},yt.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case y.bracketL:var c=this.startNode();return this.next(),c.elements=this.parseBindingList(y.bracketR,!0,!0),this.finishNode(c,"ArrayPattern");case y.braceL:return this.parseObj(!0)}return this.parseIdent()},yt.parseBindingList=function(c,v,N){for(var j=[],W=!0;!this.eat(c);)if(W?W=!1:this.expect(y.comma),v&&this.type===y.comma)j.push(null);else{if(N&&this.afterTrailingComma(c))break;if(this.type===y.ellipsis){var ne=this.parseRestBinding();this.parseBindingListItem(ne),j.push(ne),this.type===y.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(c);break}else{var le=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(le),j.push(le)}}return j},yt.parseBindingListItem=function(c){return c},yt.parseMaybeDefault=function(c,v,N){if(N=N||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(y.eq))return N;var j=this.startNodeAt(c,v);return j.left=N,j.right=this.parseMaybeAssign(),this.finishNode(j,"AssignmentPattern")},yt.checkLVal=function(c,v,N){switch(v===void 0&&(v=Se),c.type){case"Identifier":v===Pe&&c.name==="let"&&this.raiseRecoverable(c.start,"let is disallowed as a lexically bound name"),this.strict&&this.reservedWordsStrictBind.test(c.name)&&this.raiseRecoverable(c.start,(v?"Binding ":"Assigning to ")+c.name+" in strict mode"),N&&($(N,c.name)&&this.raiseRecoverable(c.start,"Argument name clash"),N[c.name]=!0),v!==Se&&v!==Ot&&this.declareName(c.name,v,c.start);break;case"ChainExpression":this.raiseRecoverable(c.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":v&&this.raiseRecoverable(c.start,"Binding member expression");break;case"ObjectPattern":for(var j=0,W=c.properties;j<W.length;j+=1){var ne=W[j];this.checkLVal(ne,v,N)}break;case"Property":this.checkLVal(c.value,v,N);break;case"ArrayPattern":for(var le=0,Ce=c.elements;le<Ce.length;le+=1){var Fe=Ce[le];Fe&&this.checkLVal(Fe,v,N)}break;case"AssignmentPattern":this.checkLVal(c.left,v,N);break;case"RestElement":this.checkLVal(c.argument,v,N);break;case"ParenthesizedExpression":this.checkLVal(c.expression,v,N);break;default:this.raise(c.start,(v?"Binding":"Assigning to")+" rvalue")}};var Be=Ue.prototype;Be.checkPropClash=function(c,v,N){if(!(this.options.ecmaVersion>=9&&c.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(c.computed||c.method||c.shorthand))){var j=c.key,W;switch(j.type){case"Identifier":W=j.name;break;case"Literal":W=String(j.value);break;default:return}var ne=c.kind;if(this.options.ecmaVersion>=6){W==="__proto__"&&ne==="init"&&(v.proto&&(N?N.doubleProto<0&&(N.doubleProto=j.start):this.raiseRecoverable(j.start,"Redefinition of __proto__ property")),v.proto=!0);return}W="$"+W;var le=v[W];if(le){var Ce;ne==="init"?Ce=this.strict&&le.init||le.get||le.set:Ce=le.init||le[ne],Ce&&this.raiseRecoverable(j.start,"Redefinition of property")}else le=v[W]={init:!1,get:!1,set:!1};le[ne]=!0}},Be.parseExpression=function(c,v){var N=this.start,j=this.startLoc,W=this.parseMaybeAssign(c,v);if(this.type===y.comma){var ne=this.startNodeAt(N,j);for(ne.expressions=[W];this.eat(y.comma);)ne.expressions.push(this.parseMaybeAssign(c,v));return this.finishNode(ne,"SequenceExpression")}return W},Be.parseMaybeAssign=function(c,v,N){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(c);this.exprAllowed=!1}var j=!1,W=-1,ne=-1;v?(W=v.parenthesizedAssign,ne=v.trailingComma,v.parenthesizedAssign=v.trailingComma=-1):(v=new Ft,j=!0);var le=this.start,Ce=this.startLoc;(this.type===y.parenL||this.type===y.name)&&(this.potentialArrowAt=this.start);var Fe=this.parseMaybeConditional(c,v);if(N&&(Fe=N.call(this,Fe,le,Ce)),this.type.isAssign){var Ke=this.startNodeAt(le,Ce);return Ke.operator=this.value,Ke.left=this.type===y.eq?this.toAssignable(Fe,!1,v):Fe,j||(v.parenthesizedAssign=v.trailingComma=v.doubleProto=-1),v.shorthandAssign>=Ke.left.start&&(v.shorthandAssign=-1),this.checkLVal(Fe),this.next(),Ke.right=this.parseMaybeAssign(c),this.finishNode(Ke,"AssignmentExpression")}else j&&this.checkExpressionErrors(v,!0);return W>-1&&(v.parenthesizedAssign=W),ne>-1&&(v.trailingComma=ne),Fe},Be.parseMaybeConditional=function(c,v){var N=this.start,j=this.startLoc,W=this.parseExprOps(c,v);if(this.checkExpressionErrors(v))return W;if(this.eat(y.question)){var ne=this.startNodeAt(N,j);return ne.test=W,ne.consequent=this.parseMaybeAssign(),this.expect(y.colon),ne.alternate=this.parseMaybeAssign(c),this.finishNode(ne,"ConditionalExpression")}return W},Be.parseExprOps=function(c,v){var N=this.start,j=this.startLoc,W=this.parseMaybeUnary(v,!1);return this.checkExpressionErrors(v)||W.start===N&&W.type==="ArrowFunctionExpression"?W:this.parseExprOp(W,N,j,-1,c)},Be.parseExprOp=function(c,v,N,j,W){var ne=this.type.binop;if(ne!=null&&(!W||this.type!==y._in)&&ne>j){var le=this.type===y.logicalOR||this.type===y.logicalAND,Ce=this.type===y.coalesce;Ce&&(ne=y.logicalAND.binop);var Fe=this.value;this.next();var Ke=this.start,dt=this.startLoc,Ht=this.parseExprOp(this.parseMaybeUnary(null,!1),Ke,dt,ne,W),On=this.buildBinary(v,N,c,Ht,Fe,le||Ce);return(le&&this.type===y.coalesce||Ce&&(this.type===y.logicalOR||this.type===y.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(On,v,N,j,W)}return c},Be.buildBinary=function(c,v,N,j,W,ne){var le=this.startNodeAt(c,v);return le.left=N,le.operator=W,le.right=j,this.finishNode(le,ne?"LogicalExpression":"BinaryExpression")},Be.parseMaybeUnary=function(c,v){var N=this.start,j=this.startLoc,W;if(this.isContextual("await")&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction))W=this.parseAwait(),v=!0;else if(this.type.prefix){var ne=this.startNode(),le=this.type===y.incDec;ne.operator=this.value,ne.prefix=!0,this.next(),ne.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(c,!0),le?this.checkLVal(ne.argument):this.strict&&ne.operator==="delete"&&ne.argument.type==="Identifier"?this.raiseRecoverable(ne.start,"Deleting local variable in strict mode"):v=!0,W=this.finishNode(ne,le?"UpdateExpression":"UnaryExpression")}else{if(W=this.parseExprSubscripts(c),this.checkExpressionErrors(c))return W;for(;this.type.postfix&&!this.canInsertSemicolon();){var Ce=this.startNodeAt(N,j);Ce.operator=this.value,Ce.prefix=!1,Ce.argument=W,this.checkLVal(W),this.next(),W=this.finishNode(Ce,"UpdateExpression")}}return!v&&this.eat(y.starstar)?this.buildBinary(N,j,W,this.parseMaybeUnary(null,!1),"**",!1):W},Be.parseExprSubscripts=function(c){var v=this.start,N=this.startLoc,j=this.parseExprAtom(c);if(j.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return j;var W=this.parseSubscripts(j,v,N);return c&&W.type==="MemberExpression"&&(c.parenthesizedAssign>=W.start&&(c.parenthesizedAssign=-1),c.parenthesizedBind>=W.start&&(c.parenthesizedBind=-1)),W},Be.parseSubscripts=function(c,v,N,j){for(var W=this.options.ecmaVersion>=8&&c.type==="Identifier"&&c.name==="async"&&this.lastTokEnd===c.end&&!this.canInsertSemicolon()&&c.end-c.start===5&&this.potentialArrowAt===c.start,ne=!1;;){var le=this.parseSubscript(c,v,N,j,W,ne);if(le.optional&&(ne=!0),le===c||le.type==="ArrowFunctionExpression"){if(ne){var Ce=this.startNodeAt(v,N);Ce.expression=le,le=this.finishNode(Ce,"ChainExpression")}return le}c=le}},Be.parseSubscript=function(c,v,N,j,W,ne){var le=this.options.ecmaVersion>=11,Ce=le&&this.eat(y.questionDot);j&&Ce&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var Fe=this.eat(y.bracketL);if(Fe||Ce&&this.type!==y.parenL&&this.type!==y.backQuote||this.eat(y.dot)){var Ke=this.startNodeAt(v,N);Ke.object=c,Ke.property=Fe?this.parseExpression():this.parseIdent(this.options.allowReserved!=="never"),Ke.computed=!!Fe,Fe&&this.expect(y.bracketR),le&&(Ke.optional=Ce),c=this.finishNode(Ke,"MemberExpression")}else if(!j&&this.eat(y.parenL)){var dt=new Ft,Ht=this.yieldPos,On=this.awaitPos,ti=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var Qo=this.parseExprList(y.parenR,this.options.ecmaVersion>=8,!1,dt);if(W&&!Ce&&!this.canInsertSemicolon()&&this.eat(y.arrow))return this.checkPatternErrors(dt,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=Ht,this.awaitPos=On,this.awaitIdentPos=ti,this.parseArrowExpression(this.startNodeAt(v,N),Qo,!0);this.checkExpressionErrors(dt,!0),this.yieldPos=Ht||this.yieldPos,this.awaitPos=On||this.awaitPos,this.awaitIdentPos=ti||this.awaitIdentPos;var ri=this.startNodeAt(v,N);ri.callee=c,ri.arguments=Qo,le&&(ri.optional=Ce),c=this.finishNode(ri,"CallExpression")}else if(this.type===y.backQuote){(Ce||ne)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var ni=this.startNodeAt(v,N);ni.tag=c,ni.quasi=this.parseTemplate({isTagged:!0}),c=this.finishNode(ni,"TaggedTemplateExpression")}return c},Be.parseExprAtom=function(c){this.type===y.slash&&this.readRegexp();var v,N=this.potentialArrowAt===this.start;switch(this.type){case y._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),v=this.startNode(),this.next(),this.type===y.parenL&&!this.allowDirectSuper&&this.raise(v.start,"super() call outside constructor of a subclass"),this.type!==y.dot&&this.type!==y.bracketL&&this.type!==y.parenL&&this.unexpected(),this.finishNode(v,"Super");case y._this:return v=this.startNode(),this.next(),this.finishNode(v,"ThisExpression");case y.name:var j=this.start,W=this.startLoc,ne=this.containsEsc,le=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!ne&&le.name==="async"&&!this.canInsertSemicolon()&&this.eat(y._function))return this.parseFunction(this.startNodeAt(j,W),0,!1,!0);if(N&&!this.canInsertSemicolon()){if(this.eat(y.arrow))return this.parseArrowExpression(this.startNodeAt(j,W),[le],!1);if(this.options.ecmaVersion>=8&&le.name==="async"&&this.type===y.name&&!ne)return le=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(y.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(j,W),[le],!0)}return le;case y.regexp:var Ce=this.value;return v=this.parseLiteral(Ce.value),v.regex={pattern:Ce.pattern,flags:Ce.flags},v;case y.num:case y.string:return this.parseLiteral(this.value);case y._null:case y._true:case y._false:return v=this.startNode(),v.value=this.type===y._null?null:this.type===y._true,v.raw=this.type.keyword,this.next(),this.finishNode(v,"Literal");case y.parenL:var Fe=this.start,Ke=this.parseParenAndDistinguishExpression(N);return c&&(c.parenthesizedAssign<0&&!this.isSimpleAssignTarget(Ke)&&(c.parenthesizedAssign=Fe),c.parenthesizedBind<0&&(c.parenthesizedBind=Fe)),Ke;case y.bracketL:return v=this.startNode(),this.next(),v.elements=this.parseExprList(y.bracketR,!0,!0,c),this.finishNode(v,"ArrayExpression");case y.braceL:return this.parseObj(!1,c);case y._function:return v=this.startNode(),this.next(),this.parseFunction(v,0);case y._class:return this.parseClass(this.startNode(),!1);case y._new:return this.parseNew();case y.backQuote:return this.parseTemplate();case y._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},Be.parseExprImport=function(){var c=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var v=this.parseIdent(!0);switch(this.type){case y.parenL:return this.parseDynamicImport(c);case y.dot:return c.meta=v,this.parseImportMeta(c);default:this.unexpected()}},Be.parseDynamicImport=function(c){if(this.next(),c.source=this.parseMaybeAssign(),!this.eat(y.parenR)){var v=this.start;this.eat(y.comma)&&this.eat(y.parenR)?this.raiseRecoverable(v,"Trailing comma is not allowed in import()"):this.unexpected(v)}return this.finishNode(c,"ImportExpression")},Be.parseImportMeta=function(c){this.next();var v=this.containsEsc;return c.property=this.parseIdent(!0),c.property.name!=="meta"&&this.raiseRecoverable(c.property.start,"The only valid meta property for import is 'import.meta'"),v&&this.raiseRecoverable(c.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&this.raiseRecoverable(c.start,"Cannot use 'import.meta' outside a module"),this.finishNode(c,"MetaProperty")},Be.parseLiteral=function(c){var v=this.startNode();return v.value=c,v.raw=this.input.slice(this.start,this.end),v.raw.charCodeAt(v.raw.length-1)===110&&(v.bigint=v.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(v,"Literal")},Be.parseParenExpression=function(){this.expect(y.parenL);var c=this.parseExpression();return this.expect(y.parenR),c},Be.parseParenAndDistinguishExpression=function(c){var v=this.start,N=this.startLoc,j,W=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var ne=this.start,le=this.startLoc,Ce=[],Fe=!0,Ke=!1,dt=new Ft,Ht=this.yieldPos,On=this.awaitPos,ti;for(this.yieldPos=0,this.awaitPos=0;this.type!==y.parenR;)if(Fe?Fe=!1:this.expect(y.comma),W&&this.afterTrailingComma(y.parenR,!0)){Ke=!0;break}else if(this.type===y.ellipsis){ti=this.start,Ce.push(this.parseParenItem(this.parseRestBinding())),this.type===y.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}else Ce.push(this.parseMaybeAssign(!1,dt,this.parseParenItem));var Qo=this.start,ri=this.startLoc;if(this.expect(y.parenR),c&&!this.canInsertSemicolon()&&this.eat(y.arrow))return this.checkPatternErrors(dt,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=Ht,this.awaitPos=On,this.parseParenArrowList(v,N,Ce);(!Ce.length||Ke)&&this.unexpected(this.lastTokStart),ti&&this.unexpected(ti),this.checkExpressionErrors(dt,!0),this.yieldPos=Ht||this.yieldPos,this.awaitPos=On||this.awaitPos,Ce.length>1?(j=this.startNodeAt(ne,le),j.expressions=Ce,this.finishNodeAt(j,"SequenceExpression",Qo,ri)):j=Ce[0]}else j=this.parseParenExpression();if(this.options.preserveParens){var ni=this.startNodeAt(v,N);return ni.expression=j,this.finishNode(ni,"ParenthesizedExpression")}else return j},Be.parseParenItem=function(c){return c},Be.parseParenArrowList=function(c,v,N){return this.parseArrowExpression(this.startNodeAt(c,v),N)};var er=[];Be.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var c=this.startNode(),v=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(y.dot)){c.meta=v;var N=this.containsEsc;return c.property=this.parseIdent(!0),c.property.name!=="target"&&this.raiseRecoverable(c.property.start,"The only valid meta property for new is 'new.target'"),N&&this.raiseRecoverable(c.start,"'new.target' must not contain escaped characters"),this.inNonArrowFunction()||this.raiseRecoverable(c.start,"'new.target' can only be used in functions"),this.finishNode(c,"MetaProperty")}var j=this.start,W=this.startLoc,ne=this.type===y._import;return c.callee=this.parseSubscripts(this.parseExprAtom(),j,W,!0),ne&&c.callee.type==="ImportExpression"&&this.raise(j,"Cannot use new with import()"),this.eat(y.parenL)?c.arguments=this.parseExprList(y.parenR,this.options.ecmaVersion>=8,!1):c.arguments=er,this.finishNode(c,"NewExpression")},Be.parseTemplateElement=function(c){var v=c.isTagged,N=this.startNode();return this.type===y.invalidTemplate?(v||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),N.value={raw:this.value,cooked:null}):N.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
1052
|
+
`),cooked:this.value},this.next(),N.tail=this.type===y.backQuote,this.finishNode(N,"TemplateElement")},Be.parseTemplate=function(c){c===void 0&&(c={});var v=c.isTagged;v===void 0&&(v=!1);var N=this.startNode();this.next(),N.expressions=[];var j=this.parseTemplateElement({isTagged:v});for(N.quasis=[j];!j.tail;)this.type===y.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(y.dollarBraceL),N.expressions.push(this.parseExpression()),this.expect(y.braceR),N.quasis.push(j=this.parseTemplateElement({isTagged:v}));return this.next(),this.finishNode(N,"TemplateLiteral")},Be.isAsyncProp=function(c){return!c.computed&&c.key.type==="Identifier"&&c.key.name==="async"&&(this.type===y.name||this.type===y.num||this.type===y.string||this.type===y.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===y.star)&&!T.test(this.input.slice(this.lastTokEnd,this.start))},Be.parseObj=function(c,v){var N=this.startNode(),j=!0,W={};for(N.properties=[],this.next();!this.eat(y.braceR);){if(j)j=!1;else if(this.expect(y.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(y.braceR))break;var ne=this.parseProperty(c,v);c||this.checkPropClash(ne,W,v),N.properties.push(ne)}return this.finishNode(N,c?"ObjectPattern":"ObjectExpression")},Be.parseProperty=function(c,v){var N=this.startNode(),j,W,ne,le;if(this.options.ecmaVersion>=9&&this.eat(y.ellipsis))return c?(N.argument=this.parseIdent(!1),this.type===y.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(N,"RestElement")):(this.type===y.parenL&&v&&(v.parenthesizedAssign<0&&(v.parenthesizedAssign=this.start),v.parenthesizedBind<0&&(v.parenthesizedBind=this.start)),N.argument=this.parseMaybeAssign(!1,v),this.type===y.comma&&v&&v.trailingComma<0&&(v.trailingComma=this.start),this.finishNode(N,"SpreadElement"));this.options.ecmaVersion>=6&&(N.method=!1,N.shorthand=!1,(c||v)&&(ne=this.start,le=this.startLoc),c||(j=this.eat(y.star)));var Ce=this.containsEsc;return this.parsePropertyName(N),!c&&!Ce&&this.options.ecmaVersion>=8&&!j&&this.isAsyncProp(N)?(W=!0,j=this.options.ecmaVersion>=9&&this.eat(y.star),this.parsePropertyName(N,v)):W=!1,this.parsePropertyValue(N,c,j,W,ne,le,v,Ce),this.finishNode(N,"Property")},Be.parsePropertyValue=function(c,v,N,j,W,ne,le,Ce){if((N||j)&&this.type===y.colon&&this.unexpected(),this.eat(y.colon))c.value=v?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,le),c.kind="init";else if(this.options.ecmaVersion>=6&&this.type===y.parenL)v&&this.unexpected(),c.kind="init",c.method=!0,c.value=this.parseMethod(N,j);else if(!v&&!Ce&&this.options.ecmaVersion>=5&&!c.computed&&c.key.type==="Identifier"&&(c.key.name==="get"||c.key.name==="set")&&this.type!==y.comma&&this.type!==y.braceR&&this.type!==y.eq){(N||j)&&this.unexpected(),c.kind=c.key.name,this.parsePropertyName(c),c.value=this.parseMethod(!1);var Fe=c.kind==="get"?0:1;if(c.value.params.length!==Fe){var Ke=c.value.start;c.kind==="get"?this.raiseRecoverable(Ke,"getter should have no params"):this.raiseRecoverable(Ke,"setter should have exactly one param")}else c.kind==="set"&&c.value.params[0].type==="RestElement"&&this.raiseRecoverable(c.value.params[0].start,"Setter cannot use rest params")}else this.options.ecmaVersion>=6&&!c.computed&&c.key.type==="Identifier"?((N||j)&&this.unexpected(),this.checkUnreserved(c.key),c.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=W),c.kind="init",v?c.value=this.parseMaybeDefault(W,ne,c.key):this.type===y.eq&&le?(le.shorthandAssign<0&&(le.shorthandAssign=this.start),c.value=this.parseMaybeDefault(W,ne,c.key)):c.value=c.key,c.shorthand=!0):this.unexpected()},Be.parsePropertyName=function(c){if(this.options.ecmaVersion>=6){if(this.eat(y.bracketL))return c.computed=!0,c.key=this.parseMaybeAssign(),this.expect(y.bracketR),c.key;c.computed=!1}return c.key=this.type===y.num||this.type===y.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},Be.initFunction=function(c){c.id=null,this.options.ecmaVersion>=6&&(c.generator=c.expression=!1),this.options.ecmaVersion>=8&&(c.async=!1)},Be.parseMethod=function(c,v,N){var j=this.startNode(),W=this.yieldPos,ne=this.awaitPos,le=this.awaitIdentPos;return this.initFunction(j),this.options.ecmaVersion>=6&&(j.generator=c),this.options.ecmaVersion>=8&&(j.async=!!v),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(xe(v,j.generator)|de|(N?Ae:0)),this.expect(y.parenL),j.params=this.parseBindingList(y.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(j,!1,!0),this.yieldPos=W,this.awaitPos=ne,this.awaitIdentPos=le,this.finishNode(j,"FunctionExpression")},Be.parseArrowExpression=function(c,v,N){var j=this.yieldPos,W=this.awaitPos,ne=this.awaitIdentPos;return this.enterScope(xe(N,!1)|Le),this.initFunction(c),this.options.ecmaVersion>=8&&(c.async=!!N),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,c.params=this.toAssignableList(v,!0),this.parseFunctionBody(c,!0,!1),this.yieldPos=j,this.awaitPos=W,this.awaitIdentPos=ne,this.finishNode(c,"ArrowFunctionExpression")},Be.parseFunctionBody=function(c,v,N){var j=v&&this.type!==y.braceL,W=this.strict,ne=!1;if(j)c.body=this.parseMaybeAssign(),c.expression=!0,this.checkParams(c,!1);else{var le=this.options.ecmaVersion>=7&&!this.isSimpleParamList(c.params);(!W||le)&&(ne=this.strictDirective(this.end),ne&&le&&this.raiseRecoverable(c.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var Ce=this.labels;this.labels=[],ne&&(this.strict=!0),this.checkParams(c,!W&&!ne&&!v&&!N&&this.isSimpleParamList(c.params)),this.strict&&c.id&&this.checkLVal(c.id,Ot),c.body=this.parseBlock(!1,void 0,ne&&!W),c.expression=!1,this.adaptDirectivePrologue(c.body.body),this.labels=Ce}this.exitScope()},Be.isSimpleParamList=function(c){for(var v=0,N=c;v<N.length;v+=1){var j=N[v];if(j.type!=="Identifier")return!1}return!0},Be.checkParams=function(c,v){for(var N={},j=0,W=c.params;j<W.length;j+=1){var ne=W[j];this.checkLVal(ne,Re,v?null:N)}},Be.parseExprList=function(c,v,N,j){for(var W=[],ne=!0;!this.eat(c);){if(ne)ne=!1;else if(this.expect(y.comma),v&&this.afterTrailingComma(c))break;var le=void 0;N&&this.type===y.comma?le=null:this.type===y.ellipsis?(le=this.parseSpread(j),j&&this.type===y.comma&&j.trailingComma<0&&(j.trailingComma=this.start)):le=this.parseMaybeAssign(!1,j),W.push(le)}return W},Be.checkUnreserved=function(c){var v=c.start,N=c.end,j=c.name;if(this.inGenerator&&j==="yield"&&this.raiseRecoverable(v,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&j==="await"&&this.raiseRecoverable(v,"Cannot use 'await' as identifier inside an async function"),this.keywords.test(j)&&this.raise(v,"Unexpected keyword '"+j+"'"),!(this.options.ecmaVersion<6&&this.input.slice(v,N).indexOf("\\")!==-1)){var W=this.strict?this.reservedWordsStrict:this.reservedWords;W.test(j)&&(!this.inAsync&&j==="await"&&this.raiseRecoverable(v,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(v,"The keyword '"+j+"' is reserved"))}},Be.parseIdent=function(c,v){var N=this.startNode();return this.type===y.name?N.name=this.value:this.type.keyword?(N.name=this.type.keyword,(N.name==="class"||N.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop()):this.unexpected(),this.next(!!c),this.finishNode(N,"Identifier"),c||(this.checkUnreserved(N),N.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=N.start)),N},Be.parseYield=function(c){this.yieldPos||(this.yieldPos=this.start);var v=this.startNode();return this.next(),this.type===y.semi||this.canInsertSemicolon()||this.type!==y.star&&!this.type.startsExpr?(v.delegate=!1,v.argument=null):(v.delegate=this.eat(y.star),v.argument=this.parseMaybeAssign(c)),this.finishNode(v,"YieldExpression")},Be.parseAwait=function(){this.awaitPos||(this.awaitPos=this.start);var c=this.startNode();return this.next(),c.argument=this.parseMaybeUnary(null,!1),this.finishNode(c,"AwaitExpression")};var ot=Ue.prototype;ot.raise=function(c,v){var N=De(this.input,c);v+=" ("+N.line+":"+N.column+")";var j=new SyntaxError(v);throw j.pos=c,j.loc=N,j.raisedAt=this.pos,j},ot.raiseRecoverable=ot.raise,ot.curPosition=function(){if(this.options.locations)return new oe(this.curLine,this.pos-this.lineStart)};var $t=Ue.prototype,kr=function(c){this.flags=c,this.var=[],this.lexical=[],this.functions=[]};$t.enterScope=function(c){this.scopeStack.push(new kr(c))},$t.exitScope=function(){this.scopeStack.pop()},$t.treatFunctionsAsVarInScope=function(c){return c.flags&fe||!this.inModule&&c.flags&me},$t.declareName=function(c,v,N){var j=!1;if(v===Pe){var W=this.currentScope();j=W.lexical.indexOf(c)>-1||W.functions.indexOf(c)>-1||W.var.indexOf(c)>-1,W.lexical.push(c),this.inModule&&W.flags&me&&delete this.undefinedExports[c]}else if(v===st){var ne=this.currentScope();ne.lexical.push(c)}else if(v===Me){var le=this.currentScope();this.treatFunctionsAsVar?j=le.lexical.indexOf(c)>-1:j=le.lexical.indexOf(c)>-1||le.var.indexOf(c)>-1,le.functions.push(c)}else for(var Ce=this.scopeStack.length-1;Ce>=0;--Ce){var Fe=this.scopeStack[Ce];if(Fe.lexical.indexOf(c)>-1&&!(Fe.flags&Z&&Fe.lexical[0]===c)||!this.treatFunctionsAsVarInScope(Fe)&&Fe.functions.indexOf(c)>-1){j=!0;break}if(Fe.var.push(c),this.inModule&&Fe.flags&me&&delete this.undefinedExports[c],Fe.flags&se)break}j&&this.raiseRecoverable(N,"Identifier '"+c+"' has already been declared")},$t.checkLocalExport=function(c){this.scopeStack[0].lexical.indexOf(c.name)===-1&&this.scopeStack[0].var.indexOf(c.name)===-1&&(this.undefinedExports[c.name]=c)},$t.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},$t.currentVarScope=function(){for(var c=this.scopeStack.length-1;;c--){var v=this.scopeStack[c];if(v.flags&se)return v}},$t.currentThisScope=function(){for(var c=this.scopeStack.length-1;;c--){var v=this.scopeStack[c];if(v.flags&se&&!(v.flags&Le))return v}};var rt=function(c,v,N){this.type="",this.start=v,this.end=0,c.options.locations&&(this.loc=new ve(c,N)),c.options.directSourceFile&&(this.sourceFile=c.options.directSourceFile),c.options.ranges&&(this.range=[v,0])},At=Ue.prototype;At.startNode=function(){return new rt(this,this.start,this.startLoc)},At.startNodeAt=function(c,v){return new rt(this,c,v)};function tr(c,v,N,j){return c.type=v,c.end=N,this.options.locations&&(c.loc.end=j),this.options.ranges&&(c.range[1]=N),c}At.finishNode=function(c,v){return tr.call(this,c,v,this.lastTokEnd,this.lastTokEndLoc)},At.finishNodeAt=function(c,v,N,j){return tr.call(this,c,v,N,j)};var gt=function(c,v,N,j,W){this.token=c,this.isExpr=!!v,this.preserveSpace=!!N,this.override=j,this.generator=!!W},nt={b_stat:new gt("{",!1),b_expr:new gt("{",!0),b_tmpl:new gt("${",!1),p_stat:new gt("(",!1),p_expr:new gt("(",!0),q_tmpl:new gt("`",!0,!0,function(c){return c.tryReadTemplateToken()}),f_stat:new gt("function",!1),f_expr:new gt("function",!0),f_expr_gen:new gt("function",!0,!1,null,!0),f_gen:new gt("function",!1,!1,null,!0)},Nt=Ue.prototype;Nt.initialContext=function(){return[nt.b_stat]},Nt.braceIsBlock=function(c){var v=this.curContext();return v===nt.f_expr||v===nt.f_stat?!0:c===y.colon&&(v===nt.b_stat||v===nt.b_expr)?!v.isExpr:c===y._return||c===y.name&&this.exprAllowed?T.test(this.input.slice(this.lastTokEnd,this.start)):c===y._else||c===y.semi||c===y.eof||c===y.parenR||c===y.arrow?!0:c===y.braceL?v===nt.b_stat:c===y._var||c===y._const||c===y.name?!1:!this.exprAllowed},Nt.inGeneratorContext=function(){for(var c=this.context.length-1;c>=1;c--){var v=this.context[c];if(v.token==="function")return v.generator}return!1},Nt.updateContext=function(c){var v,N=this.type;N.keyword&&c===y.dot?this.exprAllowed=!1:(v=N.updateContext)?v.call(this,c):this.exprAllowed=N.beforeExpr},y.parenR.updateContext=y.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var c=this.context.pop();c===nt.b_stat&&this.curContext().token==="function"&&(c=this.context.pop()),this.exprAllowed=!c.isExpr},y.braceL.updateContext=function(c){this.context.push(this.braceIsBlock(c)?nt.b_stat:nt.b_expr),this.exprAllowed=!0},y.dollarBraceL.updateContext=function(){this.context.push(nt.b_tmpl),this.exprAllowed=!0},y.parenL.updateContext=function(c){var v=c===y._if||c===y._for||c===y._with||c===y._while;this.context.push(v?nt.p_stat:nt.p_expr),this.exprAllowed=!0},y.incDec.updateContext=function(){},y._function.updateContext=y._class.updateContext=function(c){c.beforeExpr&&c!==y.semi&&c!==y._else&&!(c===y._return&&T.test(this.input.slice(this.lastTokEnd,this.start)))&&!((c===y.colon||c===y.braceL)&&this.curContext()===nt.b_stat)?this.context.push(nt.f_expr):this.context.push(nt.f_stat),this.exprAllowed=!1},y.backQuote.updateContext=function(){this.curContext()===nt.q_tmpl?this.context.pop():this.context.push(nt.q_tmpl),this.exprAllowed=!1},y.star.updateContext=function(c){if(c===y._function){var v=this.context.length-1;this.context[v]===nt.f_expr?this.context[v]=nt.f_expr_gen:this.context[v]=nt.f_gen}this.exprAllowed=!0},y.name.updateContext=function(c){var v=!1;this.options.ecmaVersion>=6&&c!==y.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(v=!0),this.exprAllowed=v};var Ne="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",C=Ne+" Extended_Pictographic",B=C,F={9:Ne,10:C,11:B},P="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",V="Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",ie=V+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",ue=ie+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",ce={9:V,10:ie,11:ue},_e={};function Ve(c){var v=_e[c]={binary:X(F[c]+" "+P),nonBinary:{General_Category:X(P),Script:X(ce[c])}};v.nonBinary.Script_Extensions=v.nonBinary.Script,v.nonBinary.gc=v.nonBinary.General_Category,v.nonBinary.sc=v.nonBinary.Script,v.nonBinary.scx=v.nonBinary.Script_Extensions}Ve(9),Ve(10),Ve(11);var he=Ue.prototype,Pt=function(c){this.parser=c,this.validFlags="gim"+(c.options.ecmaVersion>=6?"uy":"")+(c.options.ecmaVersion>=9?"s":""),this.unicodeProperties=_e[c.options.ecmaVersion>=11?11:c.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};Pt.prototype.reset=function(c,v,N){var j=N.indexOf("u")!==-1;this.start=c|0,this.source=v+"",this.flags=N,this.switchU=j&&this.parser.options.ecmaVersion>=6,this.switchN=j&&this.parser.options.ecmaVersion>=9},Pt.prototype.raise=function(c){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+c)},Pt.prototype.at=function(c,v){v===void 0&&(v=!1);var N=this.source,j=N.length;if(c>=j)return-1;var W=N.charCodeAt(c);if(!(v||this.switchU)||W<=55295||W>=57344||c+1>=j)return W;var ne=N.charCodeAt(c+1);return ne>=56320&&ne<=57343?(W<<10)+ne-56613888:W},Pt.prototype.nextIndex=function(c,v){v===void 0&&(v=!1);var N=this.source,j=N.length;if(c>=j)return j;var W=N.charCodeAt(c),ne;return!(v||this.switchU)||W<=55295||W>=57344||c+1>=j||(ne=N.charCodeAt(c+1))<56320||ne>57343?c+1:c+2},Pt.prototype.current=function(c){return c===void 0&&(c=!1),this.at(this.pos,c)},Pt.prototype.lookahead=function(c){return c===void 0&&(c=!1),this.at(this.nextIndex(this.pos,c),c)},Pt.prototype.advance=function(c){c===void 0&&(c=!1),this.pos=this.nextIndex(this.pos,c)},Pt.prototype.eat=function(c,v){return v===void 0&&(v=!1),this.current(v)===c?(this.advance(v),!0):!1};function kt(c){return c<=65535?String.fromCharCode(c):(c-=65536,String.fromCharCode((c>>10)+55296,(c&1023)+56320))}he.validateRegExpFlags=function(c){for(var v=c.validFlags,N=c.flags,j=0;j<N.length;j++){var W=N.charAt(j);v.indexOf(W)===-1&&this.raise(c.start,"Invalid regular expression flag"),N.indexOf(W,j+1)>-1&&this.raise(c.start,"Duplicate regular expression flag")}},he.validateRegExpPattern=function(c){this.regexp_pattern(c),!c.switchN&&this.options.ecmaVersion>=9&&c.groupNames.length>0&&(c.switchN=!0,this.regexp_pattern(c))},he.regexp_pattern=function(c){c.pos=0,c.lastIntValue=0,c.lastStringValue="",c.lastAssertionIsQuantifiable=!1,c.numCapturingParens=0,c.maxBackReference=0,c.groupNames.length=0,c.backReferenceNames.length=0,this.regexp_disjunction(c),c.pos!==c.source.length&&(c.eat(41)&&c.raise("Unmatched ')'"),(c.eat(93)||c.eat(125))&&c.raise("Lone quantifier brackets")),c.maxBackReference>c.numCapturingParens&&c.raise("Invalid escape");for(var v=0,N=c.backReferenceNames;v<N.length;v+=1){var j=N[v];c.groupNames.indexOf(j)===-1&&c.raise("Invalid named capture referenced")}},he.regexp_disjunction=function(c){for(this.regexp_alternative(c);c.eat(124);)this.regexp_alternative(c);this.regexp_eatQuantifier(c,!0)&&c.raise("Nothing to repeat"),c.eat(123)&&c.raise("Lone quantifier brackets")},he.regexp_alternative=function(c){for(;c.pos<c.source.length&&this.regexp_eatTerm(c););},he.regexp_eatTerm=function(c){return this.regexp_eatAssertion(c)?(c.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(c)&&c.switchU&&c.raise("Invalid quantifier"),!0):(c.switchU?this.regexp_eatAtom(c):this.regexp_eatExtendedAtom(c))?(this.regexp_eatQuantifier(c),!0):!1},he.regexp_eatAssertion=function(c){var v=c.pos;if(c.lastAssertionIsQuantifiable=!1,c.eat(94)||c.eat(36))return!0;if(c.eat(92)){if(c.eat(66)||c.eat(98))return!0;c.pos=v}if(c.eat(40)&&c.eat(63)){var N=!1;if(this.options.ecmaVersion>=9&&(N=c.eat(60)),c.eat(61)||c.eat(33))return this.regexp_disjunction(c),c.eat(41)||c.raise("Unterminated group"),c.lastAssertionIsQuantifiable=!N,!0}return c.pos=v,!1},he.regexp_eatQuantifier=function(c,v){return v===void 0&&(v=!1),this.regexp_eatQuantifierPrefix(c,v)?(c.eat(63),!0):!1},he.regexp_eatQuantifierPrefix=function(c,v){return c.eat(42)||c.eat(43)||c.eat(63)||this.regexp_eatBracedQuantifier(c,v)},he.regexp_eatBracedQuantifier=function(c,v){var N=c.pos;if(c.eat(123)){var j=0,W=-1;if(this.regexp_eatDecimalDigits(c)&&(j=c.lastIntValue,c.eat(44)&&this.regexp_eatDecimalDigits(c)&&(W=c.lastIntValue),c.eat(125)))return W!==-1&&W<j&&!v&&c.raise("numbers out of order in {} quantifier"),!0;c.switchU&&!v&&c.raise("Incomplete quantifier"),c.pos=N}return!1},he.regexp_eatAtom=function(c){return this.regexp_eatPatternCharacters(c)||c.eat(46)||this.regexp_eatReverseSolidusAtomEscape(c)||this.regexp_eatCharacterClass(c)||this.regexp_eatUncapturingGroup(c)||this.regexp_eatCapturingGroup(c)},he.regexp_eatReverseSolidusAtomEscape=function(c){var v=c.pos;if(c.eat(92)){if(this.regexp_eatAtomEscape(c))return!0;c.pos=v}return!1},he.regexp_eatUncapturingGroup=function(c){var v=c.pos;if(c.eat(40)){if(c.eat(63)&&c.eat(58)){if(this.regexp_disjunction(c),c.eat(41))return!0;c.raise("Unterminated group")}c.pos=v}return!1},he.regexp_eatCapturingGroup=function(c){if(c.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(c):c.current()===63&&c.raise("Invalid group"),this.regexp_disjunction(c),c.eat(41))return c.numCapturingParens+=1,!0;c.raise("Unterminated group")}return!1},he.regexp_eatExtendedAtom=function(c){return c.eat(46)||this.regexp_eatReverseSolidusAtomEscape(c)||this.regexp_eatCharacterClass(c)||this.regexp_eatUncapturingGroup(c)||this.regexp_eatCapturingGroup(c)||this.regexp_eatInvalidBracedQuantifier(c)||this.regexp_eatExtendedPatternCharacter(c)},he.regexp_eatInvalidBracedQuantifier=function(c){return this.regexp_eatBracedQuantifier(c,!0)&&c.raise("Nothing to repeat"),!1},he.regexp_eatSyntaxCharacter=function(c){var v=c.current();return Mr(v)?(c.lastIntValue=v,c.advance(),!0):!1};function Mr(c){return c===36||c>=40&&c<=43||c===46||c===63||c>=91&&c<=94||c>=123&&c<=125}he.regexp_eatPatternCharacters=function(c){for(var v=c.pos,N=0;(N=c.current())!==-1&&!Mr(N);)c.advance();return c.pos!==v},he.regexp_eatExtendedPatternCharacter=function(c){var v=c.current();return v!==-1&&v!==36&&!(v>=40&&v<=43)&&v!==46&&v!==63&&v!==91&&v!==94&&v!==124?(c.advance(),!0):!1},he.regexp_groupSpecifier=function(c){if(c.eat(63)){if(this.regexp_eatGroupName(c)){c.groupNames.indexOf(c.lastStringValue)!==-1&&c.raise("Duplicate capture group name"),c.groupNames.push(c.lastStringValue);return}c.raise("Invalid group")}},he.regexp_eatGroupName=function(c){if(c.lastStringValue="",c.eat(60)){if(this.regexp_eatRegExpIdentifierName(c)&&c.eat(62))return!0;c.raise("Invalid capture group name")}return!1},he.regexp_eatRegExpIdentifierName=function(c){if(c.lastStringValue="",this.regexp_eatRegExpIdentifierStart(c)){for(c.lastStringValue+=kt(c.lastIntValue);this.regexp_eatRegExpIdentifierPart(c);)c.lastStringValue+=kt(c.lastIntValue);return!0}return!1},he.regexp_eatRegExpIdentifierStart=function(c){var v=c.pos,N=this.options.ecmaVersion>=11,j=c.current(N);return c.advance(N),j===92&&this.regexp_eatRegExpUnicodeEscapeSequence(c,N)&&(j=c.lastIntValue),rn(j)?(c.lastIntValue=j,!0):(c.pos=v,!1)};function rn(c){return b(c,!0)||c===36||c===95}he.regexp_eatRegExpIdentifierPart=function(c){var v=c.pos,N=this.options.ecmaVersion>=11,j=c.current(N);return c.advance(N),j===92&&this.regexp_eatRegExpUnicodeEscapeSequence(c,N)&&(j=c.lastIntValue),Jt(j)?(c.lastIntValue=j,!0):(c.pos=v,!1)};function Jt(c){return E(c,!0)||c===36||c===95||c===8204||c===8205}he.regexp_eatAtomEscape=function(c){return this.regexp_eatBackReference(c)||this.regexp_eatCharacterClassEscape(c)||this.regexp_eatCharacterEscape(c)||c.switchN&&this.regexp_eatKGroupName(c)?!0:(c.switchU&&(c.current()===99&&c.raise("Invalid unicode escape"),c.raise("Invalid escape")),!1)},he.regexp_eatBackReference=function(c){var v=c.pos;if(this.regexp_eatDecimalEscape(c)){var N=c.lastIntValue;if(c.switchU)return N>c.maxBackReference&&(c.maxBackReference=N),!0;if(N<=c.numCapturingParens)return!0;c.pos=v}return!1},he.regexp_eatKGroupName=function(c){if(c.eat(107)){if(this.regexp_eatGroupName(c))return c.backReferenceNames.push(c.lastStringValue),!0;c.raise("Invalid named reference")}return!1},he.regexp_eatCharacterEscape=function(c){return this.regexp_eatControlEscape(c)||this.regexp_eatCControlLetter(c)||this.regexp_eatZero(c)||this.regexp_eatHexEscapeSequence(c)||this.regexp_eatRegExpUnicodeEscapeSequence(c,!1)||!c.switchU&&this.regexp_eatLegacyOctalEscapeSequence(c)||this.regexp_eatIdentityEscape(c)},he.regexp_eatCControlLetter=function(c){var v=c.pos;if(c.eat(99)){if(this.regexp_eatControlLetter(c))return!0;c.pos=v}return!1},he.regexp_eatZero=function(c){return c.current()===48&&!x(c.lookahead())?(c.lastIntValue=0,c.advance(),!0):!1},he.regexp_eatControlEscape=function(c){var v=c.current();return v===116?(c.lastIntValue=9,c.advance(),!0):v===110?(c.lastIntValue=10,c.advance(),!0):v===118?(c.lastIntValue=11,c.advance(),!0):v===102?(c.lastIntValue=12,c.advance(),!0):v===114?(c.lastIntValue=13,c.advance(),!0):!1},he.regexp_eatControlLetter=function(c){var v=c.current();return nn(v)?(c.lastIntValue=v%32,c.advance(),!0):!1};function nn(c){return c>=65&&c<=90||c>=97&&c<=122}he.regexp_eatRegExpUnicodeEscapeSequence=function(c,v){v===void 0&&(v=!1);var N=c.pos,j=v||c.switchU;if(c.eat(117)){if(this.regexp_eatFixedHexDigits(c,4)){var W=c.lastIntValue;if(j&&W>=55296&&W<=56319){var ne=c.pos;if(c.eat(92)&&c.eat(117)&&this.regexp_eatFixedHexDigits(c,4)){var le=c.lastIntValue;if(le>=56320&&le<=57343)return c.lastIntValue=(W-55296)*1024+(le-56320)+65536,!0}c.pos=ne,c.lastIntValue=W}return!0}if(j&&c.eat(123)&&this.regexp_eatHexDigits(c)&&c.eat(125)&&qr(c.lastIntValue))return!0;j&&c.raise("Invalid unicode escape"),c.pos=N}return!1};function qr(c){return c>=0&&c<=1114111}he.regexp_eatIdentityEscape=function(c){if(c.switchU)return this.regexp_eatSyntaxCharacter(c)?!0:c.eat(47)?(c.lastIntValue=47,!0):!1;var v=c.current();return v!==99&&(!c.switchN||v!==107)?(c.lastIntValue=v,c.advance(),!0):!1},he.regexp_eatDecimalEscape=function(c){c.lastIntValue=0;var v=c.current();if(v>=49&&v<=57){do c.lastIntValue=10*c.lastIntValue+(v-48),c.advance();while((v=c.current())>=48&&v<=57);return!0}return!1},he.regexp_eatCharacterClassEscape=function(c){var v=c.current();if(Vi(v))return c.lastIntValue=-1,c.advance(),!0;if(c.switchU&&this.options.ecmaVersion>=9&&(v===80||v===112)){if(c.lastIntValue=-1,c.advance(),c.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(c)&&c.eat(125))return!0;c.raise("Invalid property name")}return!1};function Vi(c){return c===100||c===68||c===115||c===83||c===119||c===87}he.regexp_eatUnicodePropertyValueExpression=function(c){var v=c.pos;if(this.regexp_eatUnicodePropertyName(c)&&c.eat(61)){var N=c.lastStringValue;if(this.regexp_eatUnicodePropertyValue(c)){var j=c.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(c,N,j),!0}}if(c.pos=v,this.regexp_eatLoneUnicodePropertyNameOrValue(c)){var W=c.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(c,W),!0}return!1},he.regexp_validateUnicodePropertyNameAndValue=function(c,v,N){$(c.unicodeProperties.nonBinary,v)||c.raise("Invalid property name"),c.unicodeProperties.nonBinary[v].test(N)||c.raise("Invalid property value")},he.regexp_validateUnicodePropertyNameOrValue=function(c,v){c.unicodeProperties.binary.test(v)||c.raise("Invalid property name")},he.regexp_eatUnicodePropertyName=function(c){var v=0;for(c.lastStringValue="";u(v=c.current());)c.lastStringValue+=kt(v),c.advance();return c.lastStringValue!==""};function u(c){return nn(c)||c===95}he.regexp_eatUnicodePropertyValue=function(c){var v=0;for(c.lastStringValue="";g(v=c.current());)c.lastStringValue+=kt(v),c.advance();return c.lastStringValue!==""};function g(c){return u(c)||x(c)}he.regexp_eatLoneUnicodePropertyNameOrValue=function(c){return this.regexp_eatUnicodePropertyValue(c)},he.regexp_eatCharacterClass=function(c){if(c.eat(91)){if(c.eat(94),this.regexp_classRanges(c),c.eat(93))return!0;c.raise("Unterminated character class")}return!1},he.regexp_classRanges=function(c){for(;this.regexp_eatClassAtom(c);){var v=c.lastIntValue;if(c.eat(45)&&this.regexp_eatClassAtom(c)){var N=c.lastIntValue;c.switchU&&(v===-1||N===-1)&&c.raise("Invalid character class"),v!==-1&&N!==-1&&v>N&&c.raise("Range out of order in character class")}}},he.regexp_eatClassAtom=function(c){var v=c.pos;if(c.eat(92)){if(this.regexp_eatClassEscape(c))return!0;if(c.switchU){var N=c.current();(N===99||ae(N))&&c.raise("Invalid class escape"),c.raise("Invalid escape")}c.pos=v}var j=c.current();return j!==93?(c.lastIntValue=j,c.advance(),!0):!1},he.regexp_eatClassEscape=function(c){var v=c.pos;if(c.eat(98))return c.lastIntValue=8,!0;if(c.switchU&&c.eat(45))return c.lastIntValue=45,!0;if(!c.switchU&&c.eat(99)){if(this.regexp_eatClassControlLetter(c))return!0;c.pos=v}return this.regexp_eatCharacterClassEscape(c)||this.regexp_eatCharacterEscape(c)},he.regexp_eatClassControlLetter=function(c){var v=c.current();return x(v)||v===95?(c.lastIntValue=v%32,c.advance(),!0):!1},he.regexp_eatHexEscapeSequence=function(c){var v=c.pos;if(c.eat(120)){if(this.regexp_eatFixedHexDigits(c,2))return!0;c.switchU&&c.raise("Invalid escape"),c.pos=v}return!1},he.regexp_eatDecimalDigits=function(c){var v=c.pos,N=0;for(c.lastIntValue=0;x(N=c.current());)c.lastIntValue=10*c.lastIntValue+(N-48),c.advance();return c.pos!==v};function x(c){return c>=48&&c<=57}he.regexp_eatHexDigits=function(c){var v=c.pos,N=0;for(c.lastIntValue=0;q(N=c.current());)c.lastIntValue=16*c.lastIntValue+ee(N),c.advance();return c.pos!==v};function q(c){return c>=48&&c<=57||c>=65&&c<=70||c>=97&&c<=102}function ee(c){return c>=65&&c<=70?10+(c-65):c>=97&&c<=102?10+(c-97):c-48}he.regexp_eatLegacyOctalEscapeSequence=function(c){if(this.regexp_eatOctalDigit(c)){var v=c.lastIntValue;if(this.regexp_eatOctalDigit(c)){var N=c.lastIntValue;v<=3&&this.regexp_eatOctalDigit(c)?c.lastIntValue=v*64+N*8+c.lastIntValue:c.lastIntValue=v*8+N}else c.lastIntValue=v;return!0}return!1},he.regexp_eatOctalDigit=function(c){var v=c.current();return ae(v)?(c.lastIntValue=v-48,c.advance(),!0):(c.lastIntValue=0,!1)};function ae(c){return c>=48&&c<=55}he.regexp_eatFixedHexDigits=function(c,v){var N=c.pos;c.lastIntValue=0;for(var j=0;j<v;++j){var W=c.current();if(!q(W))return c.pos=N,!1;c.lastIntValue=16*c.lastIntValue+ee(W),c.advance()}return!0};var pe=function(c){this.type=c.type,this.value=c.value,this.start=c.start,this.end=c.end,c.options.locations&&(this.loc=new ve(c,c.startLoc,c.endLoc)),c.options.ranges&&(this.range=[c.start,c.end])},ge=Ue.prototype;ge.next=function(c){!c&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new pe(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},ge.getToken=function(){return this.next(),new pe(this)},typeof Symbol<"u"&&(ge[Symbol.iterator]=function(){var c=this;return{next:function(){var v=c.getToken();return{done:v.type===y.eof,value:v}}}}),ge.curContext=function(){return this.context[this.context.length-1]},ge.nextToken=function(){var c=this.curContext();if((!c||!c.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(y.eof);if(c.override)return c.override(this);this.readToken(this.fullCharCodeAtPos())},ge.readToken=function(c){return b(c,this.options.ecmaVersion>=6)||c===92?this.readWord():this.getTokenFromCode(c)},ge.fullCharCodeAtPos=function(){var c=this.input.charCodeAt(this.pos);if(c<=55295||c>=57344)return c;var v=this.input.charCodeAt(this.pos+1);return(c<<10)+v-56613888},ge.skipBlockComment=function(){var c=this.options.onComment&&this.curPosition(),v=this.pos,N=this.input.indexOf("*/",this.pos+=2);if(N===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=N+2,this.options.locations){_.lastIndex=v;for(var j;(j=_.exec(this.input))&&j.index<this.pos;)++this.curLine,this.lineStart=j.index+j[0].length}this.options.onComment&&this.options.onComment(!0,this.input.slice(v+2,N),v,this.pos,c,this.curPosition())},ge.skipLineComment=function(c){for(var v=this.pos,N=this.options.onComment&&this.curPosition(),j=this.input.charCodeAt(this.pos+=c);this.pos<this.input.length&&!D(j);)j=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(v+c,this.pos),v,this.pos,N,this.curPosition())},ge.skipSpace=function(){e:for(;this.pos<this.input.length;){var c=this.input.charCodeAt(this.pos);switch(c){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(c>8&&c<14||c>=5760&&J.test(String.fromCharCode(c)))++this.pos;else break e}}},ge.finishToken=function(c,v){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var N=this.type;this.type=c,this.value=v,this.updateContext(N)},ge.readToken_dot=function(){var c=this.input.charCodeAt(this.pos+1);if(c>=48&&c<=57)return this.readNumber(!0);var v=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&c===46&&v===46?(this.pos+=3,this.finishToken(y.ellipsis)):(++this.pos,this.finishToken(y.dot))},ge.readToken_slash=function(){var c=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):c===61?this.finishOp(y.assign,2):this.finishOp(y.slash,1)},ge.readToken_mult_modulo_exp=function(c){var v=this.input.charCodeAt(this.pos+1),N=1,j=c===42?y.star:y.modulo;return this.options.ecmaVersion>=7&&c===42&&v===42&&(++N,j=y.starstar,v=this.input.charCodeAt(this.pos+2)),v===61?this.finishOp(y.assign,N+1):this.finishOp(j,N)},ge.readToken_pipe_amp=function(c){var v=this.input.charCodeAt(this.pos+1);if(v===c){if(this.options.ecmaVersion>=12){var N=this.input.charCodeAt(this.pos+2);if(N===61)return this.finishOp(y.assign,3)}return this.finishOp(c===124?y.logicalOR:y.logicalAND,2)}return v===61?this.finishOp(y.assign,2):this.finishOp(c===124?y.bitwiseOR:y.bitwiseAND,1)},ge.readToken_caret=function(){var c=this.input.charCodeAt(this.pos+1);return c===61?this.finishOp(y.assign,2):this.finishOp(y.bitwiseXOR,1)},ge.readToken_plus_min=function(c){var v=this.input.charCodeAt(this.pos+1);return v===c?v===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||T.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(y.incDec,2):v===61?this.finishOp(y.assign,2):this.finishOp(y.plusMin,1)},ge.readToken_lt_gt=function(c){var v=this.input.charCodeAt(this.pos+1),N=1;return v===c?(N=c===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+N)===61?this.finishOp(y.assign,N+1):this.finishOp(y.bitShift,N)):v===33&&c===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(v===61&&(N=2),this.finishOp(y.relational,N))},ge.readToken_eq_excl=function(c){var v=this.input.charCodeAt(this.pos+1);return v===61?this.finishOp(y.equality,this.input.charCodeAt(this.pos+2)===61?3:2):c===61&&v===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(y.arrow)):this.finishOp(c===61?y.eq:y.prefix,1)},ge.readToken_question=function(){var c=this.options.ecmaVersion;if(c>=11){var v=this.input.charCodeAt(this.pos+1);if(v===46){var N=this.input.charCodeAt(this.pos+2);if(N<48||N>57)return this.finishOp(y.questionDot,2)}if(v===63){if(c>=12){var j=this.input.charCodeAt(this.pos+2);if(j===61)return this.finishOp(y.assign,3)}return this.finishOp(y.coalesce,2)}}return this.finishOp(y.question,1)},ge.getTokenFromCode=function(c){switch(c){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(y.parenL);case 41:return++this.pos,this.finishToken(y.parenR);case 59:return++this.pos,this.finishToken(y.semi);case 44:return++this.pos,this.finishToken(y.comma);case 91:return++this.pos,this.finishToken(y.bracketL);case 93:return++this.pos,this.finishToken(y.bracketR);case 123:return++this.pos,this.finishToken(y.braceL);case 125:return++this.pos,this.finishToken(y.braceR);case 58:return++this.pos,this.finishToken(y.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(y.backQuote);case 48:var v=this.input.charCodeAt(this.pos+1);if(v===120||v===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(v===111||v===79)return this.readRadixNumber(8);if(v===98||v===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(c);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(c);case 124:case 38:return this.readToken_pipe_amp(c);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(c);case 60:case 62:return this.readToken_lt_gt(c);case 61:case 33:return this.readToken_eq_excl(c);case 63:return this.readToken_question();case 126:return this.finishOp(y.prefix,1)}this.raise(this.pos,"Unexpected character '"+_t(c)+"'")},ge.finishOp=function(c,v){var N=this.input.slice(this.pos,this.pos+v);return this.pos+=v,this.finishToken(c,N)},ge.readRegexp=function(){for(var c,v,N=this.pos;;){this.pos>=this.input.length&&this.raise(N,"Unterminated regular expression");var j=this.input.charAt(this.pos);if(T.test(j)&&this.raise(N,"Unterminated regular expression"),c)c=!1;else{if(j==="[")v=!0;else if(j==="]"&&v)v=!1;else if(j==="/"&&!v)break;c=j==="\\"}++this.pos}var W=this.input.slice(N,this.pos);++this.pos;var ne=this.pos,le=this.readWord1();this.containsEsc&&this.unexpected(ne);var Ce=this.regexpState||(this.regexpState=new Pt(this));Ce.reset(N,W,le),this.validateRegExpFlags(Ce),this.validateRegExpPattern(Ce);var Fe=null;try{Fe=new RegExp(W,le)}catch{}return this.finishToken(y.regexp,{pattern:W,flags:le,value:Fe})},ge.readInt=function(c,v,N){for(var j=this.options.ecmaVersion>=12&&v===void 0,W=N&&this.input.charCodeAt(this.pos)===48,ne=this.pos,le=0,Ce=0,Fe=0,Ke=v??1/0;Fe<Ke;++Fe,++this.pos){var dt=this.input.charCodeAt(this.pos),Ht=void 0;if(j&&dt===95){W&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),Ce===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),Fe===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),Ce=dt;continue}if(dt>=97?Ht=dt-97+10:dt>=65?Ht=dt-65+10:dt>=48&&dt<=57?Ht=dt-48:Ht=1/0,Ht>=c)break;Ce=dt,le=le*c+Ht}return j&&Ce===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===ne||v!=null&&this.pos-ne!==v?null:le};function ke(c,v){return v?parseInt(c,8):parseFloat(c.replace(/_/g,""))}function ze(c){return typeof BigInt!="function"?null:BigInt(c.replace(/_/g,""))}ge.readRadixNumber=function(c){var v=this.pos;this.pos+=2;var N=this.readInt(c);return N==null&&this.raise(this.start+2,"Expected number in radix "+c),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(N=ze(this.input.slice(v,this.pos)),++this.pos):b(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(y.num,N)},ge.readNumber=function(c){var v=this.pos;!c&&this.readInt(10,void 0,!0)===null&&this.raise(v,"Invalid number");var N=this.pos-v>=2&&this.input.charCodeAt(v)===48;N&&this.strict&&this.raise(v,"Invalid number");var j=this.input.charCodeAt(this.pos);if(!N&&!c&&this.options.ecmaVersion>=11&&j===110){var W=ze(this.input.slice(v,this.pos));return++this.pos,b(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(y.num,W)}N&&/[89]/.test(this.input.slice(v,this.pos))&&(N=!1),j===46&&!N&&(++this.pos,this.readInt(10),j=this.input.charCodeAt(this.pos)),(j===69||j===101)&&!N&&(j=this.input.charCodeAt(++this.pos),(j===43||j===45)&&++this.pos,this.readInt(10)===null&&this.raise(v,"Invalid number")),b(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var ne=ke(this.input.slice(v,this.pos),N);return this.finishToken(y.num,ne)},ge.readCodePoint=function(){var c=this.input.charCodeAt(this.pos),v;if(c===123){this.options.ecmaVersion<6&&this.unexpected();var N=++this.pos;v=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,v>1114111&&this.invalidStringToken(N,"Code point out of bounds")}else v=this.readHexChar(4);return v};function _t(c){return c<=65535?String.fromCharCode(c):(c-=65536,String.fromCharCode((c>>10)+55296,(c&1023)+56320))}ge.readString=function(c){for(var v="",N=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var j=this.input.charCodeAt(this.pos);if(j===c)break;j===92?(v+=this.input.slice(N,this.pos),v+=this.readEscapedChar(!1),N=this.pos):(D(j,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return v+=this.input.slice(N,this.pos++),this.finishToken(y.string,v)};var pt={};ge.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(c){if(c===pt)this.readInvalidTemplateToken();else throw c}this.inTemplateElement=!1},ge.invalidStringToken=function(c,v){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw pt;this.raise(c,v)},ge.readTmplToken=function(){for(var c="",v=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var N=this.input.charCodeAt(this.pos);if(N===96||N===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===y.template||this.type===y.invalidTemplate)?N===36?(this.pos+=2,this.finishToken(y.dollarBraceL)):(++this.pos,this.finishToken(y.backQuote)):(c+=this.input.slice(v,this.pos),this.finishToken(y.template,c));if(N===92)c+=this.input.slice(v,this.pos),c+=this.readEscapedChar(!0),v=this.pos;else if(D(N)){switch(c+=this.input.slice(v,this.pos),++this.pos,N){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:c+=`
|
|
1053
|
+
`;break;default:c+=String.fromCharCode(N);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),v=this.pos}else++this.pos}},ge.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(y.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},ge.readEscapedChar=function(c){var v=this.input.charCodeAt(++this.pos);switch(++this.pos,v){case 110:return`
|
|
1054
|
+
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return _t(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(c){var N=this.pos-1;return this.invalidStringToken(N,"Invalid escape sequence in template string"),null}default:if(v>=48&&v<=55){var j=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],W=parseInt(j,8);return W>255&&(j=j.slice(0,-1),W=parseInt(j,8)),this.pos+=j.length-1,v=this.input.charCodeAt(this.pos),(j!=="0"||v===56||v===57)&&(this.strict||c)&&this.invalidStringToken(this.pos-1-j.length,c?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(W)}return D(v)?"":String.fromCharCode(v)}},ge.readHexChar=function(c){var v=this.pos,N=this.readInt(16,c);return N===null&&this.invalidStringToken(v,"Bad character escape sequence"),N},ge.readWord1=function(){this.containsEsc=!1;for(var c="",v=!0,N=this.pos,j=this.options.ecmaVersion>=6;this.pos<this.input.length;){var W=this.fullCharCodeAtPos();if(E(W,j))this.pos+=W<=65535?1:2;else if(W===92){this.containsEsc=!0,c+=this.input.slice(N,this.pos);var ne=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var le=this.readCodePoint();(v?b:E)(le,j)||this.invalidStringToken(ne,"Invalid Unicode escape"),c+=_t(le),N=this.pos}else break;v=!1}return c+this.input.slice(N,this.pos)},ge.readWord=function(){var c=this.readWord1(),v=y.name;return this.keywords.test(c)&&(v=O[c]),this.finishToken(v,c)};var rr="7.4.1";Ue.acorn={Parser:Ue,version:rr,defaultOptions:z,Position:oe,SourceLocation:ve,getLineInfo:De,Node:rt,TokenType:w,tokTypes:y,keywordTypes:O,TokContext:gt,tokContexts:nt,isIdentifierChar:E,isIdentifierStart:b,Token:pe,isNewLine:D,lineBreak:T,lineBreakG:_,nonASCIIwhitespace:J};function Pn(c,v){return Ue.parse(c,v)}function Qw(c,v,N){return Ue.parseExpressionAt(c,v,N)}function Zw(c,v){return Ue.tokenizer(c,v)}r.Node=rt,r.Parser=Ue,r.Position=oe,r.SourceLocation=ve,r.TokContext=gt,r.Token=pe,r.TokenType=w,r.defaultOptions=z,r.getLineInfo=De,r.isIdentifierChar=E,r.isIdentifierStart=b,r.isNewLine=D,r.keywordTypes=O,r.lineBreak=T,r.lineBreakG=_,r.nonASCIIwhitespace=J,r.parse=Pn,r.parseExpressionAt=Qw,r.tokContexts=nt,r.tokTypes=y,r.tokenizer=Zw,r.version=rr,Object.defineProperty(r,"__esModule",{value:!0})}))}}),X4=ht({"../../node_modules/acorn-jsx/xhtml.js"(e,t){t.exports={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}}}),Q4=ht({"../../node_modules/acorn-jsx/index.js"(e,t){var r=X4(),n=/^[\da-fA-F]+$/,i=/^\d+$/,o=new WeakMap;function a(l){l=l.Parser.acorn||l;let d=o.get(l);if(!d){let f=l.tokTypes,h=l.TokContext,m=l.TokenType,b=new h("<tag",!1),E=new h("</tag",!1),w=new h("<tag>...</tag>",!0,!0),A={tc_oTag:b,tc_cTag:E,tc_expr:w},S={jsxName:new m("jsxName"),jsxText:new m("jsxText",{beforeExpr:!0}),jsxTagStart:new m("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new m("jsxTagEnd")};S.jsxTagStart.updateContext=function(){this.context.push(w),this.context.push(b),this.exprAllowed=!1},S.jsxTagEnd.updateContext=function(k){let O=this.context.pop();O===b&&k===f.slash||O===E?(this.context.pop(),this.exprAllowed=this.curContext()===w):this.exprAllowed=!0},d={tokContexts:A,tokTypes:S},o.set(l,d)}return d}function s(l){if(!l)return l;if(l.type==="JSXIdentifier")return l.name;if(l.type==="JSXNamespacedName")return l.namespace.name+":"+l.name.name;if(l.type==="JSXMemberExpression")return s(l.object)+"."+s(l.property)}t.exports=function(l){return l=l||{},function(d){return p({allowNamespaces:l.allowNamespaces!==!1,allowNamespacedObjects:!!l.allowNamespacedObjects},d)}},Object.defineProperty(t.exports,"tokTypes",{get:function(){return a(jl()).tokTypes},configurable:!0,enumerable:!0});function p(l,d){let f=d.acorn||jl(),h=a(f),m=f.tokTypes,b=h.tokTypes,E=f.tokContexts,w=h.tokContexts.tc_oTag,A=h.tokContexts.tc_cTag,S=h.tokContexts.tc_expr,k=f.isNewLine,O=f.isIdentifierStart,R=f.isIdentifierChar;return class extends d{static get acornJsx(){return h}jsx_readToken(){let y="",T=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let _=this.input.charCodeAt(this.pos);switch(_){case 60:case 123:return this.pos===this.start?_===60&&this.exprAllowed?(++this.pos,this.finishToken(b.jsxTagStart)):this.getTokenFromCode(_):(y+=this.input.slice(T,this.pos),this.finishToken(b.jsxText,y));case 38:y+=this.input.slice(T,this.pos),y+=this.jsx_readEntity(),T=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(_===62?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:k(_)?(y+=this.input.slice(T,this.pos),y+=this.jsx_readNewLine(!0),T=this.pos):++this.pos}}}jsx_readNewLine(y){let T=this.input.charCodeAt(this.pos),_;return++this.pos,T===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,_=y?`
|
|
1055
|
+
`:`\r
|
|
1056
|
+
`):_=String.fromCharCode(T),this.options.locations&&(++this.curLine,this.lineStart=this.pos),_}jsx_readString(y){let T="",_=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let D=this.input.charCodeAt(this.pos);if(D===y)break;D===38?(T+=this.input.slice(_,this.pos),T+=this.jsx_readEntity(),_=this.pos):k(D)?(T+=this.input.slice(_,this.pos),T+=this.jsx_readNewLine(!1),_=this.pos):++this.pos}return T+=this.input.slice(_,this.pos++),this.finishToken(m.string,T)}jsx_readEntity(){let y="",T=0,_,D=this.input[this.pos];D!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let J=++this.pos;for(;this.pos<this.input.length&&T++<10;){if(D=this.input[this.pos++],D===";"){y[0]==="#"?y[1]==="x"?(y=y.substr(2),n.test(y)&&(_=String.fromCharCode(parseInt(y,16)))):(y=y.substr(1),i.test(y)&&(_=String.fromCharCode(parseInt(y,10)))):_=r[y];break}y+=D}return _||(this.pos=J,"&")}jsx_readWord(){let y,T=this.pos;do y=this.input.charCodeAt(++this.pos);while(R(y)||y===45);return this.finishToken(b.jsxName,this.input.slice(T,this.pos))}jsx_parseIdentifier(){let y=this.startNode();return this.type===b.jsxName?y.name=this.value:this.type.keyword?y.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(y,"JSXIdentifier")}jsx_parseNamespacedName(){let y=this.start,T=this.startLoc,_=this.jsx_parseIdentifier();if(!l.allowNamespaces||!this.eat(m.colon))return _;var D=this.startNodeAt(y,T);return D.namespace=_,D.name=this.jsx_parseIdentifier(),this.finishNode(D,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===b.jsxTagEnd)return"";let y=this.start,T=this.startLoc,_=this.jsx_parseNamespacedName();for(this.type===m.dot&&_.type==="JSXNamespacedName"&&!l.allowNamespacedObjects&&this.unexpected();this.eat(m.dot);){let D=this.startNodeAt(y,T);D.object=_,D.property=this.jsx_parseIdentifier(),_=this.finishNode(D,"JSXMemberExpression")}return _}jsx_parseAttributeValue(){switch(this.type){case m.braceL:let y=this.jsx_parseExpressionContainer();return y.expression.type==="JSXEmptyExpression"&&this.raise(y.start,"JSX attributes must only be assigned a non-empty expression"),y;case b.jsxTagStart:case m.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let y=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(y,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let y=this.startNode();return this.next(),y.expression=this.type===m.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(m.braceR),this.finishNode(y,"JSXExpressionContainer")}jsx_parseAttribute(){let y=this.startNode();return this.eat(m.braceL)?(this.expect(m.ellipsis),y.argument=this.parseMaybeAssign(),this.expect(m.braceR),this.finishNode(y,"JSXSpreadAttribute")):(y.name=this.jsx_parseNamespacedName(),y.value=this.eat(m.eq)?this.jsx_parseAttributeValue():null,this.finishNode(y,"JSXAttribute"))}jsx_parseOpeningElementAt(y,T){let _=this.startNodeAt(y,T);_.attributes=[];let D=this.jsx_parseElementName();for(D&&(_.name=D);this.type!==m.slash&&this.type!==b.jsxTagEnd;)_.attributes.push(this.jsx_parseAttribute());return _.selfClosing=this.eat(m.slash),this.expect(b.jsxTagEnd),this.finishNode(_,D?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(y,T){let _=this.startNodeAt(y,T),D=this.jsx_parseElementName();return D&&(_.name=D),this.expect(b.jsxTagEnd),this.finishNode(_,D?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(y,T){let _=this.startNodeAt(y,T),D=[],J=this.jsx_parseOpeningElementAt(y,T),M=null;if(!J.selfClosing){e:for(;;)switch(this.type){case b.jsxTagStart:if(y=this.start,T=this.startLoc,this.next(),this.eat(m.slash)){M=this.jsx_parseClosingElementAt(y,T);break e}D.push(this.jsx_parseElementAt(y,T));break;case b.jsxText:D.push(this.parseExprAtom());break;case m.braceL:D.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}s(M.name)!==s(J.name)&&this.raise(M.start,"Expected corresponding JSX closing tag for <"+s(J.name)+">")}let G=J.name?"Element":"Fragment";return _["opening"+G]=J,_["closing"+G]=M,_.children=D,this.type===m.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(_,"JSX"+G)}jsx_parseText(){let y=this.parseLiteral(this.value);return y.type="JSXText",y}jsx_parseElement(){let y=this.start,T=this.startLoc;return this.next(),this.jsx_parseElementAt(y,T)}parseExprAtom(y){return this.type===b.jsxText?this.jsx_parseText():this.type===b.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(y)}readToken(y){let T=this.curContext();if(T===S)return this.jsx_readToken();if(T===w||T===A){if(O(y))return this.jsx_readWord();if(y==62)return++this.pos,this.finishToken(b.jsxTagEnd);if((y===34||y===39)&&T==w)return this.jsx_readString(y)}return y===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(b.jsxTagStart)):super.readToken(y)}updateContext(y){if(this.type==m.braceL){var T=this.curContext();T==w?this.context.push(E.b_expr):T==S?this.context.push(E.b_tmpl):super.updateContext(y),this.exprAllowed=!0}else if(this.type===m.slash&&y===b.jsxTagStart)this.context.length-=2,this.context.push(A),this.exprAllowed=!1;else return super.updateContext(y)}}}}}),Z4=ht({"../../node_modules/html-tags/html-tags.json"(e,t){t.exports=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","search","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"]}}),eV=ht({"../../node_modules/html-tags/index.js"(e,t){t.exports=Z4()}}),tV={};Ew(tV,{argTypesEnhancers:()=>Xw,parameters:()=>Kw});var Ll="custom",Ko="object",Xp="array",rV="class",Ri="func",Li="element",nV=ji(K4(),1);function iV(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 i=n.reduce(function(s,p){var l=p.match(/\n([\t ]+|(?!\s).)/g);return l?s.concat(l.map(function(d){var f,h;return(h=(f=d.match(/[\t ]/g))===null||f===void 0?void 0:f.length)!==null&&h!==void 0?h:0})):s},[]);if(i.length){var o=new RegExp(`
|
|
1057
|
+
[ ]{`+Math.min.apply(Math,i)+"}","g");n=n.map(function(s){return s.replace(o,`
|
|
1058
|
+
`)})}n[0]=n[0].replace(/^\r?\n/,"");var a=n[0];return t.forEach(function(s,p){var l=a.match(/(?:^|\n)( *)$/),d=l?l[1]:"",f=s;typeof s=="string"&&s.includes(`
|
|
1059
|
+
`)&&(f=String(s).split(`
|
|
1060
|
+
`).map(function(h,m){return m===0?h:""+d+h}).join(`
|
|
1061
|
+
`)),a+=f+n[p+1]}),a}var Mw={format:{indent:{style:" "},semicolons:!1}},oV={...Mw,format:{newline:""}},aV={...Mw};function Cn(e,t=!1){return(0,nV.generate)(e,t?oV:aV)}function Vl(e,t=!1){return t?sV(e):Cn(e)}function sV(e){let t=Cn(e,!0);return t.endsWith(" }")||(t=`${t.slice(0,-1)} }`),t}function Sm(e,t=!1){return t?lV(e):uV(e)}function uV(e){let t=Cn(e);return t.endsWith(" }]")&&(t=iV(t)),t}function lV(e){let t=Cn(e,!0);return t.startsWith("[ ")&&(t=t.replace("[ ","[")),t}var cV=ji(jl(),1),pV=ji(Q4(),1);function qw(e,t,r,n,i){r||(r=Ee),(function o(a,s,p){var l=p||a.type,d=t[l];r[l](a,s,o),d&&d(a,s)})(e,n,i)}function dV(e,t,r,n,i){var o=[];r||(r=Ee),(function a(s,p,l){var d=l||s.type,f=t[d],h=s!==o[o.length-1];h&&o.push(s),r[d](s,p,a),f&&f(s,p||o,o),h&&o.pop()})(e,n,i)}function Qp(e,t,r){r(e,t)}function ei(e,t,r){}var Ee={};Ee.Program=Ee.BlockStatement=function(e,t,r){for(var n=0,i=e.body;n<i.length;n+=1){var o=i[n];r(o,t,"Statement")}};Ee.Statement=Qp;Ee.EmptyStatement=ei;Ee.ExpressionStatement=Ee.ParenthesizedExpression=Ee.ChainExpression=function(e,t,r){return r(e.expression,t,"Expression")};Ee.IfStatement=function(e,t,r){r(e.test,t,"Expression"),r(e.consequent,t,"Statement"),e.alternate&&r(e.alternate,t,"Statement")};Ee.LabeledStatement=function(e,t,r){return r(e.body,t,"Statement")};Ee.BreakStatement=Ee.ContinueStatement=ei;Ee.WithStatement=function(e,t,r){r(e.object,t,"Expression"),r(e.body,t,"Statement")};Ee.SwitchStatement=function(e,t,r){r(e.discriminant,t,"Expression");for(var n=0,i=e.cases;n<i.length;n+=1){var o=i[n];o.test&&r(o.test,t,"Expression");for(var a=0,s=o.consequent;a<s.length;a+=1){var p=s[a];r(p,t,"Statement")}}};Ee.SwitchCase=function(e,t,r){e.test&&r(e.test,t,"Expression");for(var n=0,i=e.consequent;n<i.length;n+=1){var o=i[n];r(o,t,"Statement")}};Ee.ReturnStatement=Ee.YieldExpression=Ee.AwaitExpression=function(e,t,r){e.argument&&r(e.argument,t,"Expression")};Ee.ThrowStatement=Ee.SpreadElement=function(e,t,r){return r(e.argument,t,"Expression")};Ee.TryStatement=function(e,t,r){r(e.block,t,"Statement"),e.handler&&r(e.handler,t),e.finalizer&&r(e.finalizer,t,"Statement")};Ee.CatchClause=function(e,t,r){e.param&&r(e.param,t,"Pattern"),r(e.body,t,"Statement")};Ee.WhileStatement=Ee.DoWhileStatement=function(e,t,r){r(e.test,t,"Expression"),r(e.body,t,"Statement")};Ee.ForStatement=function(e,t,r){e.init&&r(e.init,t,"ForInit"),e.test&&r(e.test,t,"Expression"),e.update&&r(e.update,t,"Expression"),r(e.body,t,"Statement")};Ee.ForInStatement=Ee.ForOfStatement=function(e,t,r){r(e.left,t,"ForInit"),r(e.right,t,"Expression"),r(e.body,t,"Statement")};Ee.ForInit=function(e,t,r){e.type==="VariableDeclaration"?r(e,t):r(e,t,"Expression")};Ee.DebuggerStatement=ei;Ee.FunctionDeclaration=function(e,t,r){return r(e,t,"Function")};Ee.VariableDeclaration=function(e,t,r){for(var n=0,i=e.declarations;n<i.length;n+=1){var o=i[n];r(o,t)}};Ee.VariableDeclarator=function(e,t,r){r(e.id,t,"Pattern"),e.init&&r(e.init,t,"Expression")};Ee.Function=function(e,t,r){e.id&&r(e.id,t,"Pattern");for(var n=0,i=e.params;n<i.length;n+=1){var o=i[n];r(o,t,"Pattern")}r(e.body,t,e.expression?"Expression":"Statement")};Ee.Pattern=function(e,t,r){e.type==="Identifier"?r(e,t,"VariablePattern"):e.type==="MemberExpression"?r(e,t,"MemberPattern"):r(e,t)};Ee.VariablePattern=ei;Ee.MemberPattern=Qp;Ee.RestElement=function(e,t,r){return r(e.argument,t,"Pattern")};Ee.ArrayPattern=function(e,t,r){for(var n=0,i=e.elements;n<i.length;n+=1){var o=i[n];o&&r(o,t,"Pattern")}};Ee.ObjectPattern=function(e,t,r){for(var n=0,i=e.properties;n<i.length;n+=1){var o=i[n];o.type==="Property"?(o.computed&&r(o.key,t,"Expression"),r(o.value,t,"Pattern")):o.type==="RestElement"&&r(o.argument,t,"Pattern")}};Ee.Expression=Qp;Ee.ThisExpression=Ee.Super=Ee.MetaProperty=ei;Ee.ArrayExpression=function(e,t,r){for(var n=0,i=e.elements;n<i.length;n+=1){var o=i[n];o&&r(o,t,"Expression")}};Ee.ObjectExpression=function(e,t,r){for(var n=0,i=e.properties;n<i.length;n+=1){var o=i[n];r(o,t)}};Ee.FunctionExpression=Ee.ArrowFunctionExpression=Ee.FunctionDeclaration;Ee.SequenceExpression=function(e,t,r){for(var n=0,i=e.expressions;n<i.length;n+=1){var o=i[n];r(o,t,"Expression")}};Ee.TemplateLiteral=function(e,t,r){for(var n=0,i=e.quasis;n<i.length;n+=1){var o=i[n];r(o,t)}for(var a=0,s=e.expressions;a<s.length;a+=1){var p=s[a];r(p,t,"Expression")}};Ee.TemplateElement=ei;Ee.UnaryExpression=Ee.UpdateExpression=function(e,t,r){r(e.argument,t,"Expression")};Ee.BinaryExpression=Ee.LogicalExpression=function(e,t,r){r(e.left,t,"Expression"),r(e.right,t,"Expression")};Ee.AssignmentExpression=Ee.AssignmentPattern=function(e,t,r){r(e.left,t,"Pattern"),r(e.right,t,"Expression")};Ee.ConditionalExpression=function(e,t,r){r(e.test,t,"Expression"),r(e.consequent,t,"Expression"),r(e.alternate,t,"Expression")};Ee.NewExpression=Ee.CallExpression=function(e,t,r){if(r(e.callee,t,"Expression"),e.arguments)for(var n=0,i=e.arguments;n<i.length;n+=1){var o=i[n];r(o,t,"Expression")}};Ee.MemberExpression=function(e,t,r){r(e.object,t,"Expression"),e.computed&&r(e.property,t,"Expression")};Ee.ExportNamedDeclaration=Ee.ExportDefaultDeclaration=function(e,t,r){e.declaration&&r(e.declaration,t,e.type==="ExportNamedDeclaration"||e.declaration.id?"Statement":"Expression"),e.source&&r(e.source,t,"Expression")};Ee.ExportAllDeclaration=function(e,t,r){e.exported&&r(e.exported,t),r(e.source,t,"Expression")};Ee.ImportDeclaration=function(e,t,r){for(var n=0,i=e.specifiers;n<i.length;n+=1){var o=i[n];r(o,t)}r(e.source,t,"Expression")};Ee.ImportExpression=function(e,t,r){r(e.source,t,"Expression")};Ee.ImportSpecifier=Ee.ImportDefaultSpecifier=Ee.ImportNamespaceSpecifier=Ee.Identifier=Ee.Literal=ei;Ee.TaggedTemplateExpression=function(e,t,r){r(e.tag,t,"Expression"),r(e.quasi,t,"Expression")};Ee.ClassDeclaration=Ee.ClassExpression=function(e,t,r){return r(e,t,"Class")};Ee.Class=function(e,t,r){e.id&&r(e.id,t,"Pattern"),e.superClass&&r(e.superClass,t,"Expression"),r(e.body,t)};Ee.ClassBody=function(e,t,r){for(var n=0,i=e.body;n<i.length;n+=1){var o=i[n];r(o,t)}};Ee.MethodDefinition=Ee.Property=function(e,t,r){e.computed&&r(e.key,t,"Expression"),r(e.value,t,"Expression")};var Zp={...Ee,JSXElement:()=>{}},fV=cV.Parser.extend((0,pV.default)());function Xo(e){return e!=null?e.name:null}function xm(e){return e.filter(t=>t.type==="ObjectExpression"||t.type==="ArrayExpression")}function jw(e){let t=[];return dV(e,{ObjectExpression(r,n){t.push(xm(n).length)},ArrayExpression(r,n){t.push(xm(n).length)}},Zp),Math.max(...t)}function hV(e){return{inferredType:{type:"Identifier",identifier:Xo(e)},ast:e}}function mV(e){return{inferredType:{type:"Literal"},ast:e}}function yV(e){let t;qw(e.body,{JSXElement(i){t=i}},Zp);let r={type:t!=null?"Element":"Function",params:e.params,hasParams:e.params.length!==0},n=Xo(e.id);return n!=null&&(r.identifier=n),{inferredType:r,ast:e}}function gV(e){let t;return qw(e.body,{JSXElement(r){t=r}},Zp),{inferredType:{type:t!=null?"Element":"Class",identifier:Xo(e.id)},ast:e}}function bV(e){let t={type:"Element"},r=Xo(e.openingElement.name);return r!=null&&(t.identifier=r),{inferredType:t,ast:e}}function EV(e){let t=e.callee.type==="MemberExpression"?e.callee.property:e.callee;return Xo(t)==="shape"?Lw(e.arguments[0]):null}function Lw(e){return{inferredType:{type:"Object",depth:jw(e)},ast:e}}function vV(e){return{inferredType:{type:"Array",depth:jw(e)},ast:e}}function AV(e){switch(e.type){case"Identifier":return hV(e);case"Literal":return mV(e);case"FunctionExpression":case"ArrowFunctionExpression":return yV(e);case"ClassExpression":return gV(e);case"JSXElement":return bV(e);case"CallExpression":return EV(e);case"ObjectExpression":return Lw(e);case"ArrayExpression":return vV(e);default:return null}}function wV(e){let t=fV.parse(`(${e})`,{ecmaVersion:2020}),r={inferredType:{type:"Unknown"},ast:t};if(t.body[0]!=null){let n=t.body[0];switch(n.type){case"ExpressionStatement":{let i=AV(n.expression);i!=null&&(r=i);break}}}return r}function Sn(e){try{return{...wV(e)}}catch{}return{inferredType:{type:"Unknown"}}}var CV=ji(eV(),1);function ed(e){return CV.default.includes(e.toLowerCase())}function Vw({inferredType:e,ast:t}){let{depth:r}=e;if(r<=2){let n=Sm(t,!0);if(!qi(n))return je(n)}return je(Xp,Sm(t))}function $w({inferredType:e,ast:t}){let{depth:r}=e;if(r===1){let n=Vl(t,!0);if(!qi(n))return je(n)}return je(Ko,Vl(t))}function td(e,t){return t?`${e}( ... )`:`${e}()`}function Bs(e){return`<${e} />`}function Uw(e){let{type:t,identifier:r}=e;switch(t){case"Function":return td(r,e.hasParams);case"Element":return Bs(r);default:return r}}function _V({inferredType:e,ast:t}){let{identifier:r}=e;if(r!=null)return je(Uw(e),Cn(t));let n=Cn(t,!0);return qi(n)?je(Ri,Cn(t)):je(n)}function TV(e,t){let{inferredType:r}=t,{identifier:n}=r;if(n!=null&&!ed(n)){let i=Uw(r);return je(i,e)}return qi(e)?je(Li,e):je(e)}function Jw(e){try{let t=Sn(e);switch(t.inferredType.type){case"Object":return $w(t);case"Function":return _V(t);case"Element":return TV(e,t);case"Array":return Vw(t);default:return null}}catch(t){console.error(t)}return null}function SV(e){if(!e||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype||Object.getPrototypeOf(t)===null?Object.prototype.toString.call(e)==="[object Object]":!1}function Dm(e){return typeof e=="function"}function xV(e){return typeof e=="string"}var Rm=M4;function Hw(e){return e.$$typeof!=null}function Gw(e,t){let{name:r}=e;return r!==""&&r!=="anonymous"&&r!==t?r:null}var DV=e=>je(JSON.stringify(e));function RV(e){let{type:t}=e,{displayName:r}=t,n=Rm(e,{});if(r!=null){let i=Bs(r);return je(i,n)}if(xV(t)&&ed(t)){let i=Rm(e,{tabStop:0}).replace(/\r?\n|\r/g,"");if(!qi(i))return je(i)}return je(Li,n)}var PV=e=>{if(Hw(e)&&e.type!=null)return RV(e);if(SV(e)){let t=Sn(JSON.stringify(e));return $w(t)}if(Array.isArray(e)){let t=Sn(JSON.stringify(e));return Vw(t)}return je(Ko)},OV=(e,t)=>{let r=!1,n;if(Dm(e.render))r=!0;else if(e.prototype!=null&&Dm(e.prototype.render))r=!0;else{let o;try{n=Sn(e.toString());let{hasParams:a,params:s}=n.inferredType;a?s.length===1&&s[0].type==="ObjectPattern"&&(o=e({})):o=e(),o!=null&&Hw(o)&&(r=!0)}catch{}}let i=Gw(e,t.name);if(i!=null){if(r)return je(Bs(i));n!=null&&(n=Sn(e.toString()));let{hasParams:o}=n.inferredType;return je(td(i,o))}return je(r?Li:Ri)},FV=e=>je(e.toString()),zw={string:DV,object:PV,function:OV,default:FV};function NV(e={}){return{...zw,...e}}function IV(e,t,r=zw){try{switch(typeof e){case"string":return r.string(e,t);case"object":return r.object(e,t);case"function":return r.function(e,t);default:return r.default(e,t)}}catch(n){console.error(n)}return null}function BV(e,t){let r=e!=null,n=t!=null;if(!r&&!n)return"";let i=[];if(r){let o=e.map(a=>{let s=a.getPrettyName(),p=a.getTypeName();return p!=null?`${s}: ${p}`:s});i.push(`(${o.join(", ")})`)}else i.push("()");return n&&i.push(`=> ${t.getTypeName()}`),i.join(" ")}function kV(e,t){let r=e!=null,n=t!=null;if(!r&&!n)return"";let i=[];return r?i.push("( ... )"):i.push("()"),n&&i.push(`=> ${t.getTypeName()}`),i.join(" ")}function MV(e){return e.replace(/,/g,`,\r
|
|
1062
|
+
`)}var qV=150;function Wt({name:e,short:t,compact:r,full:n,inferredType:i}){return{name:e,short:t,compact:r,full:n??t,inferredType:i}}function Ww(e){return e.replace(/PropTypes./g,"").replace(/.isRequired/g,"")}function Pm(e){return e.split(/\r?\n/)}function es(e,t=!1){return Ww(Vl(e,t))}function Om(e,t=!1){return Ww(Cn(e,t))}function jV(e){switch(e){case"Object":return Ko;case"Array":return Xp;case"Class":return rV;case"Function":return Ri;case"Element":return Li;default:return Ll}}function Yw(e,t){let{inferredType:r,ast:n}=Sn(e),{type:i}=r,o,a,s;switch(i){case"Identifier":case"Literal":o=e,a=e;break;case"Object":{let{depth:p}=r;o=Ko,a=p===1?es(n,!0):null,s=es(n);break}case"Element":{let{identifier:p}=r;o=p!=null&&!ed(p)?p:Li,a=Pm(e).length===1?e:null,s=e;break}case"Array":{let{depth:p}=r;o=Xp,a=p<=2?Om(n,!0):null,s=Om(n);break}default:o=jV(i),a=Pm(e).length===1?e:null,s=e;break}return Wt({name:t,short:o,compact:a,full:s,inferredType:i})}function LV({raw:e}){return e!=null?Yw(e,"custom"):Wt({name:"custom",short:Ll,compact:Ll})}function VV(e){let{jsDocTags:t}=e;return t!=null&&(t.params!=null||t.returns!=null)?Wt({name:"func",short:kV(t.params,t.returns),compact:null,full:BV(t.params,t.returns)}):Wt({name:"func",short:Ri,compact:Ri})}function $V(e,t){let r=Object.keys(e.value).map(a=>`${a}: ${Pi(e.value[a],t).full}`).join(", "),{inferredType:n,ast:i}=Sn(`{ ${r} }`),{depth:o}=n;return Wt({name:"shape",short:Ko,compact:o===1&&i?es(i,!0):null,full:i?es(i):null})}function wu(e){return`objectOf(${e})`}function UV(e,t){let{short:r,compact:n,full:i}=Pi(e.value,t);return Wt({name:"objectOf",short:wu(r),compact:n!=null?wu(n):null,full:i&&wu(i)})}function JV(e,t){if(Array.isArray(e.value)){let r=e.value.reduce((n,i)=>{let{short:o,compact:a,full:s}=Pi(i,t);return n.short.push(o),n.compact.push(a),n.full.push(s),n},{short:[],compact:[],full:[]});return Wt({name:"union",short:r.short.join(" | "),compact:r.compact.every(n=>n!=null)?r.compact.join(" | "):null,full:r.full.join(" | ")})}return Wt({name:"union",short:e.value,compact:null})}function HV({value:e,computed:t}){return t?Yw(e,"enumvalue"):Wt({name:"enumvalue",short:e,compact:e})}function GV(e){if(Array.isArray(e.value)){let t=e.value.reduce((r,n)=>{let{short:i,compact:o,full:a}=HV(n);return r.short.push(i),r.compact.push(o),r.full.push(a),r},{short:[],compact:[],full:[]});return Wt({name:"enum",short:t.short.join(" | "),compact:t.compact.every(r=>r!=null)?t.compact.join(" | "):null,full:t.full.join(" | ")})}return Wt({name:"enum",short:e.value,compact:e.value})}function $l(e){return`${e}[]`}function Fm(e){return`[${e}]`}function Nm(e,t,r){return Wt({name:"arrayOf",short:$l(e),compact:t!=null?Fm(t):null,full:r&&Fm(r)})}function zV(e,t){let{name:r,short:n,compact:i,full:o,inferredType:a}=Pi(e.value,t);if(r==="custom"){if(a==="Object")return Nm(n,i,o)}else if(r==="shape")return Nm(n,i,o);return Wt({name:"arrayOf",short:$l(n),compact:$l(n)})}function Pi(e,t){try{switch(e.name){case"custom":return LV(e);case"func":return VV(t);case"shape":return $V(e,t);case"instanceOf":return Wt({name:"instanceOf",short:e.value,compact:e.value});case"objectOf":return UV(e,t);case"union":return JV(e,t);case"enum":return GV(e);case"arrayOf":return zV(e,t);default:return Wt({name:e.name,short:e.name,compact:e.name})}}catch(r){console.error(r)}return Wt({name:"unknown",short:"unknown",compact:"unknown"})}function WV(e){let{type:t}=e.docgenInfo;if(t==null)return null;try{switch(t.name){case"custom":case"shape":case"instanceOf":case"objectOf":case"union":case"enum":case"arrayOf":{let{short:r,compact:n,full:i}=Pi(t,e);return n!=null&&!Yp(n)?je(n):i?je(r,i):je(r)}case"func":{let{short:r,full:n}=Pi(t,e),i=r,o;return n&&n.length<qV?i=n:n&&(o=MV(n)),je(i,o)}default:return null}}catch(r){console.error(r)}return null}var YV=(e,{name:t,type:r})=>{let n=r?.summary==="element"||r?.summary==="elementType",i=Gw(e,t);if(i!=null){if(n)return je(Bs(i));let{hasParams:o}=Sn(e.toString()).inferredType;return je(td(i,o))}return je(n?Li:Ri)},KV=NV({function:YV});function XV(e,t){let{propTypes:r}=t;return r!=null?Object.keys(r).map(n=>e.find(i=>i.name===n)).filter(Boolean):e}function QV(e,t){let{propDef:r}=e,n=WV(e);n!=null&&(r.type=n);let{defaultValue:i}=e.docgenInfo;if(i!=null&&i.value!=null){let o=Jw(i.value);o!=null&&(r.defaultValue=o)}else if(t!=null){let o=IV(t,r,KV);o!=null&&(r.defaultValue=o)}return r}function ZV(e,t){let r=t.defaultProps!=null?t.defaultProps:{},n=e.map(i=>QV(i,r[i.propDef.name]));return XV(n,t)}function e$(e,t){let{propDef:r}=e,{defaultValue:n}=e.docgenInfo;if(n!=null&&n.value!=null){let i=Jw(n.value);i!=null&&(r.defaultValue=i)}return r}function t$(e){return e.map(t=>e$(t))}function r$(e,t){let r=e;!zp(e)&&!e.propTypes&&W2(e)&&(r=e.type);let n=w2(r,t);if(n.length===0)return[];switch(n[0].typeSystem){case Il.JAVASCRIPT:return ZV(n,e);case Il.TYPESCRIPT:return t$(n);default:return n.map(i=>i.propDef)}}var n$=e=>({rows:r$(e,"props")}),i$=e=>{if(e){let{rows:t}=n$(e);if(t)return t.reduce((r,n)=>{let{name:i,description:o,type:a,sbType:s,defaultValue:p,jsDocTags:l,required:d}=n;return r[i]={name:i,description:o,type:{required:d,...s},table:{type:a??void 0,jsDocTags:l,defaultValue:p??void 0}},r},{})}return null},Kw={docs:{extractArgTypes:i$,extractComponentDescription:C2}},Xw=[_2];const o$=Object.freeze(Object.defineProperty({__proto__:null,argTypesEnhancers:Xw,parameters:Kw},Symbol.toStringTag,{value:"Module"})),a$={parameters:{controls:{matchers:{color:/(background|color)$/i,date:/Date$/i}}}},s$=Object.freeze(Object.defineProperty({__proto__:null,default:a$},Symbol.toStringTag,{value:"Module"}));tw();const{composeConfigs:u$,PreviewWeb:l$}=__STORYBOOK_MODULE_PREVIEW_API__,c$=(e=[])=>{const t=[e[0]??J2,e[1]??o$,e[2]??s$];return u$(t)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new l$(S2,c$);window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;export{R2 as a,mr as r};
|