@oliasoft-open-source/charts-library 5.7.1 → 5.7.2-beta-1

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.
Files changed (45) hide show
  1. package/dist/assets/Color-6BZIO3FS-D_-B3AP0.js +1 -0
  2. package/dist/assets/DocsRenderer-LL677BLK-B5JDzNnk.js +41 -0
  3. package/dist/assets/WithTooltip-65CFNBJE-8EEBhQo3.js +9 -0
  4. package/dist/assets/bar-chart.stories-CyxR49e_.js +138 -0
  5. package/dist/assets/chunk-242VQQM5-DegdISsM.js +1 -0
  6. package/dist/assets/chunk-CYSK6WYR-BpIZnq_i.js +1 -0
  7. package/dist/assets/chunk-YKABRMAI-DMt5fhxa.js +18 -0
  8. package/dist/assets/components-BI9LhTRX.js +92 -0
  9. package/dist/assets/formatter-EIJCOSYU-CsgSjfB2.js +1 -0
  10. package/dist/assets/get-draggableData-Bkm-vwbc.js +2 -0
  11. package/dist/assets/iframe-tFAZUsBl.js +1228 -0
  12. package/dist/assets/jsx-runtime-B8tE-sQF.js +1 -0
  13. package/dist/assets/{legend-Cr-ixvvn.js → legend-CRQJe1eg.js} +15 -15
  14. package/dist/assets/{legend-context-bgD9JX7p.js → legend-context-3AYFKhyL.js} +2 -2
  15. package/dist/assets/line-chart-DKhU9zGy.js +1 -0
  16. package/dist/assets/line-chart.stories-PuUcD0iZ.js +1207 -0
  17. package/dist/assets/{line-chart.test-case.stories-DFLUWQxt.js → line-chart.test-case.stories-DbsDVuff.js} +1 -1
  18. package/dist/assets/pie-chart.stories-g4__kC97.js +45 -0
  19. package/dist/assets/react-18-DdL6lJLC.js +1 -0
  20. package/dist/assets/{react-RY0obRf3.js → react-BAWznt4_.js} +1 -1
  21. package/dist/assets/react-dom-BYNB9LbF.js +8 -0
  22. package/dist/assets/scatter-chart.stories-CgscIZkm.js +41 -0
  23. package/dist/assets/syntaxhighlighter-ED5Y7EFY-DP_lnjjd.js +6 -0
  24. package/dist/assets/{theming-DgjcY9r7.js → theming-Nni-mLA6.js} +1 -1
  25. package/dist/iframe.html +2 -5
  26. package/dist/project.json +1 -1
  27. package/dist/vite-inject-mocker-entry.js +1 -1
  28. package/package.json +1 -1
  29. package/dist/assets/Color-6BZIO3FS-s0pybgGT.js +0 -1
  30. package/dist/assets/DocsRenderer-LL677BLK-IiQab3mR.js +0 -2
  31. package/dist/assets/WithTooltip-65CFNBJE-CLKwlfWd.js +0 -9
  32. package/dist/assets/bar-chart.stories-Sq6kGcCe.js +0 -138
  33. package/dist/assets/components-BJbtgP_z.js +0 -250
  34. package/dist/assets/formatter-EIJCOSYU-C_ABwEuZ.js +0 -1
  35. package/dist/assets/get-draggableData-CHqgKQpf.js +0 -2
  36. package/dist/assets/iframe-BDie4XE6.js +0 -1133
  37. package/dist/assets/line-chart-Cc_EvRxN.js +0 -1
  38. package/dist/assets/line-chart.stories-DVnjeEYv.js +0 -1207
  39. package/dist/assets/pie-chart.stories-BZ8-Flt7.js +0 -45
  40. package/dist/assets/react-18-BP1-1NuC.js +0 -1
  41. package/dist/assets/scatter-chart.stories--7xp7w4K.js +0 -41
  42. package/dist/assets/syntaxhighlighter-ED5Y7EFY-Y-Tk5YPV.js +0 -6
  43. /package/dist/assets/{bar-chart-const-BdWUR8Vo.js → bar-chart-const-Dmo8UTJN.js} +0 -0
  44. /package/dist/assets/{get-custom-legend-plugin-example-BMz6NyH9.js → get-custom-legend-plugin-example-Decjgf1l.js} +0 -0
  45. /package/dist/assets/{preload-helper-MHdlos90.js → preload-helper-Bhb7V-Yo.js} +0 -0
@@ -1,1133 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./bar-chart.stories-Sq6kGcCe.js","./legend-Cr-ixvvn.js","./legend-context-bgD9JX7p.js","./get-draggableData-CHqgKQpf.js","./bar-chart-const-BdWUR8Vo.js","./get-custom-legend-plugin-example-BMz6NyH9.js","./line-chart.stories-DVnjeEYv.js","./line-chart-Cc_EvRxN.js","./line-chart.test-case.stories-DFLUWQxt.js","./pie-chart.stories-BZ8-Flt7.js","./scatter-chart.stories--7xp7w4K.js","./DocsRenderer-LL677BLK-IiQab3mR.js","./preload-helper-MHdlos90.js","./components-BJbtgP_z.js","./theming-DgjcY9r7.js","./react-18-BP1-1NuC.js","./Color-6BZIO3FS-s0pybgGT.js"])))=>i.map(i=>d[i]);
2
- import{A as e,B as t,C as n,D as r,E as i,F as a,G as o,H as s,I as c,K as l,L as u,M as d,N as f,O as p,P as m,R as h,S as g,T as _,U as v,V as y,W as b,_ as x,a as S,b as C,c as w,d as T,f as E,g as D,h as O,i as k,j as A,l as j,m as M,n as ee,o as N,p as te,q as ne,r as re,s as P,t as ie,u as ae,v as oe,w as F,x as se,z as ce}from"./components-BJbtgP_z.js";import{t as le}from"./preload-helper-MHdlos90.js";import{i as ue,l as de,n as fe,p as pe,r as me,s as I,t as he}from"./theming-DgjcY9r7.js";var ge=Object.create,_e=Object.defineProperty,ve=Object.getOwnPropertyDescriptor,ye=Object.getOwnPropertyNames,be=Object.getPrototypeOf,xe=Object.prototype.hasOwnProperty,L=(e,t)=>()=>(e&&(t=e(e=0)),t),Se=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ce=(e,t)=>{let n={};for(var r in e)_e(n,r,{get:e[r],enumerable:!0});return t||_e(n,Symbol.toStringTag,{value:`Module`}),n},we=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=ye(t),a=0,o=i.length,s;a<o;a++)s=i[a],!xe.call(e,s)&&s!==n&&_e(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=ve(t,s))||r.enumerable});return e},R=(e,t,n)=>(n=e==null?{}:ge(be(e)),we(t||!e||!e.__esModule?_e(n,`default`,{value:e,enumerable:!0}):n,e)),Te=e=>xe.call(e,`module.exports`)?e[`module.exports`]:we(_e({},`__esModule`,{value:!0}),e),Ee=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var De=Object.create,z=Object.defineProperty,Oe=Object.getOwnPropertyDescriptor,ke=Object.getOwnPropertyNames,Ae=Object.getPrototypeOf,je=Object.prototype.hasOwnProperty,Me=(e=>typeof Ee<`u`?Ee:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof Ee<`u`?Ee:e)[t]}):e)(function(e){if(typeof Ee<`u`)return Ee.apply(this,arguments);throw Error(`Dynamic require of "`+e+`" is not supported`)}),B=(e,t)=>function(){return t||(0,e[ke(e)[0]])((t={exports:{}}).exports,t),t.exports},Ne=(e,t)=>{for(var n in t)z(e,n,{get:t[n],enumerable:!0})},V=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of ke(t))!je.call(e,i)&&i!==n&&z(e,i,{get:()=>t[i],enumerable:!(r=Oe(t,i))||r.enumerable});return e},H=(e,t,n)=>(n=e==null?{}:De(Ae(e)),V(t||!e||!e.__esModule?z(n,`default`,{value:e,enumerable:!0}):n,e)),Pe=B({"../../node_modules/@ngard/tiny-isequal/index.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.isEqual=(function(){var e=Object.prototype.toString,t=Object.getPrototypeOf,n=Object.getOwnPropertySymbols?function(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}:Object.keys;return function(r,i){return(function r(i,a,o){var s,c,l,u=e.call(i),d=e.call(a);if(i===a)return!0;if(i==null||a==null)return!1;if(o.indexOf(i)>-1&&o.indexOf(a)>-1)return!0;if(o.push(i,a),u!=d||(s=n(i),c=n(a),s.length!=c.length||s.some(function(e){return!r(i[e],a[e],o)})))return!1;switch(u.slice(8,-1)){case`Symbol`:return i.valueOf()==a.valueOf();case`Date`:case`Number`:return+i==+a||+i!=+i&&+a!=+a;case`RegExp`:case`Function`:case`String`:case`Boolean`:return``+i==``+a;case`Set`:case`Map`:s=i.entries(),c=a.entries();do if(!r((l=s.next()).value,c.next().value,o))return!1;while(!l.done);return!0;case`ArrayBuffer`:i=new Uint8Array(i),a=new Uint8Array(a);case`DataView`:i=new Uint8Array(i.buffer),a=new Uint8Array(a.buffer);case`Float32Array`:case`Float64Array`:case`Int8Array`:case`Int16Array`:case`Int32Array`:case`Uint8Array`:case`Uint16Array`:case`Uint32Array`:case`Uint8ClampedArray`:case`Arguments`:case`Array`:if(i.length!=a.length)return!1;for(l=0;l<i.length;l++)if((l in i||l in a)&&(l in i!=l in a||!r(i[l],a[l],o)))return!1;return!0;case`Object`:return r(t(i),t(a),o);default:return!1}})(r,i,[])}})()}}),Fe=B({"../../node_modules/min-indent/index.js"(e,t){t.exports=e=>{let t=e.match(/^[ \t]*(?=\S)/gm);return t?t.reduce((e,t)=>Math.min(e,t.length),1/0):0}}}),Ie=B({"../../node_modules/strip-indent/index.js"(e,t){var n=Fe();t.exports=e=>{let t=n(e);if(t===0)return e;let r=RegExp(`^[ \\t]{${t}}`,`gm`);return e.replace(r,``)}}}),Le=B({"../../node_modules/indent-string/index.js"(e,t){t.exports=(e,t=1,n)=>{if(n={indent:` `,includeEmptyLines:!1,...n},typeof e!=`string`)throw TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof t!=`number`)throw TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(typeof n.indent!=`string`)throw TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n.indent}\``);if(t===0)return e;let r=n.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(r,n.indent.repeat(t))}}}),Re=B({"../../node_modules/redent/index.js"(e,t){var n=Ie(),r=Le();t.exports=(e,t=0,i)=>r(n(e),t,i)}}),ze=B({"../../node_modules/aria-query/lib/util/iteratorProxy.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;function t(){var e=this,t=0,n={"@@iterator":function(){return n},next:function(){if(t<e.length){var n=e[t];return t+=1,{done:!1,value:n}}else return{done:!0}}};return n}e.default=t}}),Be=B({"../../node_modules/aria-query/lib/util/iterationDecorator.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=i;var t=n(ze());function n(e){return e&&e.__esModule?e:{default:e}}function r(e){"@babel/helpers - typeof";return r=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},r(e)}function i(e,n){return typeof Symbol==`function`&&r(Symbol.iterator)===`symbol`&&Object.defineProperty(e,Symbol.iterator,{value:t.default.bind(n)}),e}}}),U=B({"../../node_modules/aria-query/lib/ariaPropsMap.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var t=n(Be());function n(e){return e&&e.__esModule?e:{default:e}}function r(e,t){return c(e)||s(e,t)||a(e,t)||i()}function i(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
3
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a(e,t){if(e){if(typeof e==`string`)return o(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}function o(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function c(e){if(Array.isArray(e))return e}var l=[[`aria-activedescendant`,{type:`id`}],[`aria-atomic`,{type:`boolean`}],[`aria-autocomplete`,{type:`token`,values:[`inline`,`list`,`both`,`none`]}],[`aria-braillelabel`,{type:`string`}],[`aria-brailleroledescription`,{type:`string`}],[`aria-busy`,{type:`boolean`}],[`aria-checked`,{type:`tristate`}],[`aria-colcount`,{type:`integer`}],[`aria-colindex`,{type:`integer`}],[`aria-colspan`,{type:`integer`}],[`aria-controls`,{type:`idlist`}],[`aria-current`,{type:`token`,values:[`page`,`step`,`location`,`date`,`time`,!0,!1]}],[`aria-describedby`,{type:`idlist`}],[`aria-description`,{type:`string`}],[`aria-details`,{type:`id`}],[`aria-disabled`,{type:`boolean`}],[`aria-dropeffect`,{type:`tokenlist`,values:[`copy`,`execute`,`link`,`move`,`none`,`popup`]}],[`aria-errormessage`,{type:`id`}],[`aria-expanded`,{type:`boolean`,allowundefined:!0}],[`aria-flowto`,{type:`idlist`}],[`aria-grabbed`,{type:`boolean`,allowundefined:!0}],[`aria-haspopup`,{type:`token`,values:[!1,!0,`menu`,`listbox`,`tree`,`grid`,`dialog`]}],[`aria-hidden`,{type:`boolean`,allowundefined:!0}],[`aria-invalid`,{type:`token`,values:[`grammar`,!1,`spelling`,!0]}],[`aria-keyshortcuts`,{type:`string`}],[`aria-label`,{type:`string`}],[`aria-labelledby`,{type:`idlist`}],[`aria-level`,{type:`integer`}],[`aria-live`,{type:`token`,values:[`assertive`,`off`,`polite`]}],[`aria-modal`,{type:`boolean`}],[`aria-multiline`,{type:`boolean`}],[`aria-multiselectable`,{type:`boolean`}],[`aria-orientation`,{type:`token`,values:[`vertical`,`undefined`,`horizontal`]}],[`aria-owns`,{type:`idlist`}],[`aria-placeholder`,{type:`string`}],[`aria-posinset`,{type:`integer`}],[`aria-pressed`,{type:`tristate`}],[`aria-readonly`,{type:`boolean`}],[`aria-relevant`,{type:`tokenlist`,values:[`additions`,`all`,`removals`,`text`]}],[`aria-required`,{type:`boolean`}],[`aria-roledescription`,{type:`string`}],[`aria-rowcount`,{type:`integer`}],[`aria-rowindex`,{type:`integer`}],[`aria-rowspan`,{type:`integer`}],[`aria-selected`,{type:`boolean`,allowundefined:!0}],[`aria-setsize`,{type:`integer`}],[`aria-sort`,{type:`token`,values:[`ascending`,`descending`,`none`,`other`]}],[`aria-valuemax`,{type:`number`}],[`aria-valuemin`,{type:`number`}],[`aria-valuenow`,{type:`number`}],[`aria-valuetext`,{type:`string`}]],u={entries:function(){return l},forEach:function(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=0,i=l;n<i.length;n++){var a=r(i[n],2),o=a[0],s=a[1];e.call(t,s,o,l)}},get:function(e){var t=l.filter(function(t){return t[0]===e})[0];return t&&t[1]},has:function(e){return!!u.get(e)},keys:function(){return l.map(function(e){return r(e,1)[0]})},values:function(){return l.map(function(e){return r(e,2)[1]})}};e.default=(0,t.default)(u,u.entries())}}),Ve=B({"../../node_modules/aria-query/lib/domMap.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var t=n(Be());function n(e){return e&&e.__esModule?e:{default:e}}function r(e,t){return c(e)||s(e,t)||a(e,t)||i()}function i(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
4
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a(e,t){if(e){if(typeof e==`string`)return o(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}function o(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function c(e){if(Array.isArray(e))return e}var l=[[`a`,{reserved:!1}],[`abbr`,{reserved:!1}],[`acronym`,{reserved:!1}],[`address`,{reserved:!1}],[`applet`,{reserved:!1}],[`area`,{reserved:!1}],[`article`,{reserved:!1}],[`aside`,{reserved:!1}],[`audio`,{reserved:!1}],[`b`,{reserved:!1}],[`base`,{reserved:!0}],[`bdi`,{reserved:!1}],[`bdo`,{reserved:!1}],[`big`,{reserved:!1}],[`blink`,{reserved:!1}],[`blockquote`,{reserved:!1}],[`body`,{reserved:!1}],[`br`,{reserved:!1}],[`button`,{reserved:!1}],[`canvas`,{reserved:!1}],[`caption`,{reserved:!1}],[`center`,{reserved:!1}],[`cite`,{reserved:!1}],[`code`,{reserved:!1}],[`col`,{reserved:!0}],[`colgroup`,{reserved:!0}],[`content`,{reserved:!1}],[`data`,{reserved:!1}],[`datalist`,{reserved:!1}],[`dd`,{reserved:!1}],[`del`,{reserved:!1}],[`details`,{reserved:!1}],[`dfn`,{reserved:!1}],[`dialog`,{reserved:!1}],[`dir`,{reserved:!1}],[`div`,{reserved:!1}],[`dl`,{reserved:!1}],[`dt`,{reserved:!1}],[`em`,{reserved:!1}],[`embed`,{reserved:!1}],[`fieldset`,{reserved:!1}],[`figcaption`,{reserved:!1}],[`figure`,{reserved:!1}],[`font`,{reserved:!1}],[`footer`,{reserved:!1}],[`form`,{reserved:!1}],[`frame`,{reserved:!1}],[`frameset`,{reserved:!1}],[`h1`,{reserved:!1}],[`h2`,{reserved:!1}],[`h3`,{reserved:!1}],[`h4`,{reserved:!1}],[`h5`,{reserved:!1}],[`h6`,{reserved:!1}],[`head`,{reserved:!0}],[`header`,{reserved:!1}],[`hgroup`,{reserved:!1}],[`hr`,{reserved:!1}],[`html`,{reserved:!0}],[`i`,{reserved:!1}],[`iframe`,{reserved:!1}],[`img`,{reserved:!1}],[`input`,{reserved:!1}],[`ins`,{reserved:!1}],[`kbd`,{reserved:!1}],[`keygen`,{reserved:!1}],[`label`,{reserved:!1}],[`legend`,{reserved:!1}],[`li`,{reserved:!1}],[`link`,{reserved:!0}],[`main`,{reserved:!1}],[`map`,{reserved:!1}],[`mark`,{reserved:!1}],[`marquee`,{reserved:!1}],[`menu`,{reserved:!1}],[`menuitem`,{reserved:!1}],[`meta`,{reserved:!0}],[`meter`,{reserved:!1}],[`nav`,{reserved:!1}],[`noembed`,{reserved:!0}],[`noscript`,{reserved:!0}],[`object`,{reserved:!1}],[`ol`,{reserved:!1}],[`optgroup`,{reserved:!1}],[`option`,{reserved:!1}],[`output`,{reserved:!1}],[`p`,{reserved:!1}],[`param`,{reserved:!0}],[`picture`,{reserved:!0}],[`pre`,{reserved:!1}],[`progress`,{reserved:!1}],[`q`,{reserved:!1}],[`rp`,{reserved:!1}],[`rt`,{reserved:!1}],[`rtc`,{reserved:!1}],[`ruby`,{reserved:!1}],[`s`,{reserved:!1}],[`samp`,{reserved:!1}],[`script`,{reserved:!0}],[`section`,{reserved:!1}],[`select`,{reserved:!1}],[`small`,{reserved:!1}],[`source`,{reserved:!0}],[`spacer`,{reserved:!1}],[`span`,{reserved:!1}],[`strike`,{reserved:!1}],[`strong`,{reserved:!1}],[`style`,{reserved:!0}],[`sub`,{reserved:!1}],[`summary`,{reserved:!1}],[`sup`,{reserved:!1}],[`table`,{reserved:!1}],[`tbody`,{reserved:!1}],[`td`,{reserved:!1}],[`textarea`,{reserved:!1}],[`tfoot`,{reserved:!1}],[`th`,{reserved:!1}],[`thead`,{reserved:!1}],[`time`,{reserved:!1}],[`title`,{reserved:!0}],[`tr`,{reserved:!1}],[`track`,{reserved:!0}],[`tt`,{reserved:!1}],[`u`,{reserved:!1}],[`ul`,{reserved:!1}],[`var`,{reserved:!1}],[`video`,{reserved:!1}],[`wbr`,{reserved:!1}],[`xmp`,{reserved:!1}]],u={entries:function(){return l},forEach:function(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=0,i=l;n<i.length;n++){var a=r(i[n],2),o=a[0],s=a[1];e.call(t,s,o,l)}},get:function(e){var t=l.filter(function(t){return t[0]===e})[0];return t&&t[1]},has:function(e){return!!u.get(e)},keys:function(){return l.map(function(e){return r(e,1)[0]})},values:function(){return l.map(function(e){return r(e,2)[1]})}};e.default=(0,t.default)(u,u.entries())}}),He=B({"../../node_modules/aria-query/lib/etc/roles/abstract/commandRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`widget`]]}}}),Ue=B({"../../node_modules/aria-query/lib/etc/roles/abstract/compositeRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`widget`]]}}}),We=B({"../../node_modules/aria-query/lib/etc/roles/abstract/inputRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null},relatedConcepts:[{concept:{name:`input`},module:`XForms`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`widget`]]}}}),W=B({"../../node_modules/aria-query/lib/etc/roles/abstract/landmarkRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),Ge=B({"../../node_modules/aria-query/lib/etc/roles/abstract/rangeRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`]]}}}),Ke=B({"../../node_modules/aria-query/lib/etc/roles/abstract/roletypeRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{"aria-atomic":null,"aria-busy":null,"aria-controls":null,"aria-current":null,"aria-describedby":null,"aria-details":null,"aria-dropeffect":null,"aria-flowto":null,"aria-grabbed":null,"aria-hidden":null,"aria-keyshortcuts":null,"aria-label":null,"aria-labelledby":null,"aria-live":null,"aria-owns":null,"aria-relevant":null,"aria-roledescription":null},relatedConcepts:[{concept:{name:`role`},module:`XHTML`},{concept:{name:`type`},module:`Dublin Core`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]}}}),qe=B({"../../node_modules/aria-query/lib/etc/roles/abstract/sectionRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`frontmatter`},module:`DTB`},{concept:{name:`level`},module:`DTB`},{concept:{name:`level`},module:`SMIL`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`]]}}}),Je=B({"../../node_modules/aria-query/lib/etc/roles/abstract/sectionheadRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`]]}}}),Ye=B({"../../node_modules/aria-query/lib/etc/roles/abstract/selectRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-orientation":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`widget`,`composite`],[`roletype`,`structure`,`section`,`group`]]}}}),Xe=B({"../../node_modules/aria-query/lib/etc/roles/abstract/structureRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`]]}}}),Ze=B({"../../node_modules/aria-query/lib/etc/roles/abstract/widgetRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`]]}}}),Qe=B({"../../node_modules/aria-query/lib/etc/roles/abstract/windowRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-modal":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`]]}}}),$e=B({"../../node_modules/aria-query/lib/etc/roles/ariaAbstractRoles.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var t=p(He()),n=p(Ue()),r=p(We()),i=p(W()),a=p(Ge()),o=p(Ke()),s=p(qe()),c=p(Je()),l=p(Ye()),u=p(Xe()),d=p(Ze()),f=p(Qe());function p(e){return e&&e.__esModule?e:{default:e}}e.default=[[`command`,t.default],[`composite`,n.default],[`input`,r.default],[`landmark`,i.default],[`range`,a.default],[`roletype`,o.default],[`section`,s.default],[`sectionhead`,c.default],[`select`,l.default],[`structure`,u.default],[`widget`,d.default],[`window`,f.default]]}}),et=B({"../../node_modules/aria-query/lib/etc/roles/literal/alertRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-atomic":`true`,"aria-live":`assertive`},relatedConcepts:[{concept:{name:`alert`},module:`XForms`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),tt=B({"../../node_modules/aria-query/lib/etc/roles/literal/alertdialogRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`alert`},module:`XForms`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`alert`],[`roletype`,`window`,`dialog`]]}}}),nt=B({"../../node_modules/aria-query/lib/etc/roles/literal/applicationRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`Device Independence Delivery Unit`}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`]]}}}),rt=B({"../../node_modules/aria-query/lib/etc/roles/literal/articleRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:`article`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`document`]]}}}),it=B({"../../node_modules/aria-query/lib/etc/roles/literal/bannerRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:[`scoped to the body element`],name:`header`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),at=B({"../../node_modules/aria-query/lib/etc/roles/literal/blockquoteRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`blockquote`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),ot=B({"../../node_modules/aria-query/lib/etc/roles/literal/buttonRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-pressed":null},relatedConcepts:[{concept:{attributes:[{name:`type`,value:`button`}],name:`input`},module:`HTML`},{concept:{attributes:[{name:`type`,value:`image`}],name:`input`},module:`HTML`},{concept:{attributes:[{name:`type`,value:`reset`}],name:`input`},module:`HTML`},{concept:{attributes:[{name:`type`,value:`submit`}],name:`input`},module:`HTML`},{concept:{name:`button`},module:`HTML`},{concept:{name:`trigger`},module:`XForms`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`widget`,`command`]]}}}),st=B({"../../node_modules/aria-query/lib/etc/roles/literal/captionRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`prohibited`],prohibitedProps:[`aria-label`,`aria-labelledby`],props:{},relatedConcepts:[{concept:{name:`caption`},module:`HTML`}],requireContextRole:[`figure`,`grid`,`table`],requiredContextRole:[`figure`,`grid`,`table`],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),ct=B({"../../node_modules/aria-query/lib/etc/roles/literal/cellRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-colindex":null,"aria-colspan":null,"aria-rowindex":null,"aria-rowspan":null},relatedConcepts:[{concept:{constraints:[`ancestor table element has table role`],name:`td`},module:`HTML`}],requireContextRole:[`row`],requiredContextRole:[`row`],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),lt=B({"../../node_modules/aria-query/lib/etc/roles/literal/checkboxRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-checked":null,"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{name:`type`,value:`checkbox`}],name:`input`},module:`HTML`},{concept:{name:`option`},module:`ARIA`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[[`roletype`,`widget`,`input`]]}}}),ut=B({"../../node_modules/aria-query/lib/etc/roles/literal/codeRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`prohibited`],prohibitedProps:[`aria-label`,`aria-labelledby`],props:{},relatedConcepts:[{concept:{name:`code`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),dt=B({"../../node_modules/aria-query/lib/etc/roles/literal/columnheaderRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{name:`th`},module:`HTML`},{concept:{attributes:[{name:`scope`,value:`col`}],name:`th`},module:`HTML`},{concept:{attributes:[{name:`scope`,value:`colgroup`}],name:`th`},module:`HTML`}],requireContextRole:[`row`],requiredContextRole:[`row`],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`cell`],[`roletype`,`structure`,`section`,`cell`,`gridcell`],[`roletype`,`widget`,`gridcell`],[`roletype`,`structure`,`sectionhead`]]}}}),ft=B({"../../node_modules/aria-query/lib/etc/roles/literal/comboboxRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-expanded":`false`,"aria-haspopup":`listbox`},relatedConcepts:[{concept:{attributes:[{constraints:[`set`],name:`list`},{name:`type`,value:`email`}],name:`input`},module:`HTML`},{concept:{attributes:[{constraints:[`set`],name:`list`},{name:`type`,value:`search`}],name:`input`},module:`HTML`},{concept:{attributes:[{constraints:[`set`],name:`list`},{name:`type`,value:`tel`}],name:`input`},module:`HTML`},{concept:{attributes:[{constraints:[`set`],name:`list`},{name:`type`,value:`text`}],name:`input`},module:`HTML`},{concept:{attributes:[{constraints:[`set`],name:`list`},{name:`type`,value:`url`}],name:`input`},module:`HTML`},{concept:{attributes:[{constraints:[`set`],name:`list`},{name:`type`,value:`url`}],name:`input`},module:`HTML`},{concept:{attributes:[{constraints:[`undefined`],name:`multiple`},{constraints:[`undefined`],name:`size`}],constraints:[`the multiple attribute is not set and the size attribute does not have a value greater than 1`],name:`select`},module:`HTML`},{concept:{name:`select`},module:`XForms`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-expanded":`false`},superClass:[[`roletype`,`widget`,`input`]]}}}),pt=B({"../../node_modules/aria-query/lib/etc/roles/literal/complementaryRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:[`scoped to the body element`,`scoped to the main element`],name:`aside`},module:`HTML`},{concept:{attributes:[{constraints:[`set`],name:`aria-label`}],constraints:[`scoped to a sectioning content element`,`scoped to a sectioning root element other than body`],name:`aside`},module:`HTML`},{concept:{attributes:[{constraints:[`set`],name:`aria-labelledby`}],constraints:[`scoped to a sectioning content element`,`scoped to a sectioning root element other than body`],name:`aside`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),mt=B({"../../node_modules/aria-query/lib/etc/roles/literal/contentinfoRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:[`scoped to the body element`],name:`footer`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),ht=B({"../../node_modules/aria-query/lib/etc/roles/literal/definitionRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`dd`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),gt=B({"../../node_modules/aria-query/lib/etc/roles/literal/deletionRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`prohibited`],prohibitedProps:[`aria-label`,`aria-labelledby`],props:{},relatedConcepts:[{concept:{name:`del`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),_t=B({"../../node_modules/aria-query/lib/etc/roles/literal/dialogRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`dialog`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`window`]]}}}),vt=B({"../../node_modules/aria-query/lib/etc/roles/literal/directoryRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{module:`DAISY Guide`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`list`]]}}}),yt=B({"../../node_modules/aria-query/lib/etc/roles/literal/documentRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`Device Independence Delivery Unit`}},{concept:{name:`html`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`]]}}}),bt=B({"../../node_modules/aria-query/lib/etc/roles/literal/emphasisRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`prohibited`],prohibitedProps:[`aria-label`,`aria-labelledby`],props:{},relatedConcepts:[{concept:{name:`em`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),xt=B({"../../node_modules/aria-query/lib/etc/roles/literal/feedRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[`article`]],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`list`]]}}}),St=B({"../../node_modules/aria-query/lib/etc/roles/literal/figureRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`figure`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),Ct=B({"../../node_modules/aria-query/lib/etc/roles/literal/formRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:[`set`],name:`aria-label`}],name:`form`},module:`HTML`},{concept:{attributes:[{constraints:[`set`],name:`aria-labelledby`}],name:`form`},module:`HTML`},{concept:{attributes:[{constraints:[`set`],name:`name`}],name:`form`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),wt=B({"../../node_modules/aria-query/lib/etc/roles/literal/genericRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`prohibited`],prohibitedProps:[`aria-label`,`aria-labelledby`],props:{},relatedConcepts:[{concept:{name:`a`},module:`HTML`},{concept:{name:`area`},module:`HTML`},{concept:{name:`aside`},module:`HTML`},{concept:{name:`b`},module:`HTML`},{concept:{name:`bdo`},module:`HTML`},{concept:{name:`body`},module:`HTML`},{concept:{name:`data`},module:`HTML`},{concept:{name:`div`},module:`HTML`},{concept:{constraints:[`scoped to the main element`,`scoped to a sectioning content element`,`scoped to a sectioning root element other than body`],name:`footer`},module:`HTML`},{concept:{constraints:[`scoped to the main element`,`scoped to a sectioning content element`,`scoped to a sectioning root element other than body`],name:`header`},module:`HTML`},{concept:{name:`hgroup`},module:`HTML`},{concept:{name:`i`},module:`HTML`},{concept:{name:`pre`},module:`HTML`},{concept:{name:`q`},module:`HTML`},{concept:{name:`samp`},module:`HTML`},{concept:{name:`section`},module:`HTML`},{concept:{name:`small`},module:`HTML`},{concept:{name:`span`},module:`HTML`},{concept:{name:`u`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`]]}}}),Tt=B({"../../node_modules/aria-query/lib/etc/roles/literal/gridRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-multiselectable":null,"aria-readonly":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[`row`],[`row`,`rowgroup`]],requiredProps:{},superClass:[[`roletype`,`widget`,`composite`],[`roletype`,`structure`,`section`,`table`]]}}}),Et=B({"../../node_modules/aria-query/lib/etc/roles/literal/gridcellRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-selected":null},relatedConcepts:[{concept:{constraints:[`ancestor table element has grid role`,`ancestor table element has treegrid role`],name:`td`},module:`HTML`}],requireContextRole:[`row`],requiredContextRole:[`row`],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`cell`],[`roletype`,`widget`]]}}}),Dt=B({"../../node_modules/aria-query/lib/etc/roles/literal/groupRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[{concept:{name:`details`},module:`HTML`},{concept:{name:`fieldset`},module:`HTML`},{concept:{name:`optgroup`},module:`HTML`},{concept:{name:`address`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),Ot=B({"../../node_modules/aria-query/lib/etc/roles/literal/headingRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-level":`2`},relatedConcepts:[{concept:{name:`h1`},module:`HTML`},{concept:{name:`h2`},module:`HTML`},{concept:{name:`h3`},module:`HTML`},{concept:{name:`h4`},module:`HTML`},{concept:{name:`h5`},module:`HTML`},{concept:{name:`h6`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-level":`2`},superClass:[[`roletype`,`structure`,`sectionhead`]]}}}),kt=B({"../../node_modules/aria-query/lib/etc/roles/literal/imgRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:[`set`],name:`alt`}],name:`img`},module:`HTML`},{concept:{attributes:[{constraints:[`undefined`],name:`alt`}],name:`img`},module:`HTML`},{concept:{name:`imggroup`},module:`DTB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),At=B({"../../node_modules/aria-query/lib/etc/roles/literal/insertionRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`prohibited`],prohibitedProps:[`aria-label`,`aria-labelledby`],props:{},relatedConcepts:[{concept:{name:`ins`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),jt=B({"../../node_modules/aria-query/lib/etc/roles/literal/linkRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[{concept:{attributes:[{constraints:[`set`],name:`href`}],name:`a`},module:`HTML`},{concept:{attributes:[{constraints:[`set`],name:`href`}],name:`area`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`widget`,`command`]]}}}),Mt=B({"../../node_modules/aria-query/lib/etc/roles/literal/listRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`menu`},module:`HTML`},{concept:{name:`ol`},module:`HTML`},{concept:{name:`ul`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[`listitem`]],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),Nt=B({"../../node_modules/aria-query/lib/etc/roles/literal/listboxRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-multiselectable":null,"aria-readonly":null,"aria-required":null,"aria-orientation":`vertical`},relatedConcepts:[{concept:{attributes:[{constraints:[`>1`],name:`size`}],constraints:[`the size attribute value is greater than 1`],name:`select`},module:`HTML`},{concept:{attributes:[{name:`multiple`}],name:`select`},module:`HTML`},{concept:{name:`datalist`},module:`HTML`},{concept:{name:`list`},module:`ARIA`},{concept:{name:`select`},module:`XForms`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[`option`,`group`],[`option`]],requiredProps:{},superClass:[[`roletype`,`widget`,`composite`,`select`],[`roletype`,`structure`,`section`,`group`,`select`]]}}}),Pt=B({"../../node_modules/aria-query/lib/etc/roles/literal/listitemRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-level":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{constraints:[`direct descendant of ol`,`direct descendant of ul`,`direct descendant of menu`],name:`li`},module:`HTML`},{concept:{name:`item`},module:`XForms`}],requireContextRole:[`directory`,`list`],requiredContextRole:[`directory`,`list`],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),Ft=B({"../../node_modules/aria-query/lib/etc/roles/literal/logRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-live":`polite`},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),It=B({"../../node_modules/aria-query/lib/etc/roles/literal/mainRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`main`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),Lt=B({"../../node_modules/aria-query/lib/etc/roles/literal/markRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`prohibited`],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null},relatedConcepts:[{concept:{name:`mark`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),Rt=B({"../../node_modules/aria-query/lib/etc/roles/literal/marqueeRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),zt=B({"../../node_modules/aria-query/lib/etc/roles/literal/mathRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`math`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),Bt=B({"../../node_modules/aria-query/lib/etc/roles/literal/menuRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-orientation":`vertical`},relatedConcepts:[{concept:{name:`MENU`},module:`JAPI`},{concept:{name:`list`},module:`ARIA`},{concept:{name:`select`},module:`XForms`},{concept:{name:`sidebar`},module:`DTB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[`menuitem`,`group`],[`menuitemradio`,`group`],[`menuitemcheckbox`,`group`],[`menuitem`],[`menuitemcheckbox`],[`menuitemradio`]],requiredProps:{},superClass:[[`roletype`,`widget`,`composite`,`select`],[`roletype`,`structure`,`section`,`group`,`select`]]}}}),Vt=B({"../../node_modules/aria-query/lib/etc/roles/literal/menubarRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-orientation":`horizontal`},relatedConcepts:[{concept:{name:`toolbar`},module:`ARIA`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[`menuitem`,`group`],[`menuitemradio`,`group`],[`menuitemcheckbox`,`group`],[`menuitem`],[`menuitemcheckbox`],[`menuitemradio`]],requiredProps:{},superClass:[[`roletype`,`widget`,`composite`,`select`,`menu`],[`roletype`,`structure`,`section`,`group`,`select`,`menu`]]}}}),Ht=B({"../../node_modules/aria-query/lib/etc/roles/literal/menuitemRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:`MENU_ITEM`},module:`JAPI`},{concept:{name:`listitem`},module:`ARIA`},{concept:{name:`option`},module:`ARIA`}],requireContextRole:[`group`,`menu`,`menubar`],requiredContextRole:[`group`,`menu`,`menubar`],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`widget`,`command`]]}}}),Ut=B({"../../node_modules/aria-query/lib/etc/roles/literal/menuitemcheckboxRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`menuitem`},module:`ARIA`}],requireContextRole:[`group`,`menu`,`menubar`],requiredContextRole:[`group`,`menu`,`menubar`],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[[`roletype`,`widget`,`input`,`checkbox`],[`roletype`,`widget`,`command`,`menuitem`]]}}}),Wt=B({"../../node_modules/aria-query/lib/etc/roles/literal/menuitemradioRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`menuitem`},module:`ARIA`}],requireContextRole:[`group`,`menu`,`menubar`],requiredContextRole:[`group`,`menu`,`menubar`],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[[`roletype`,`widget`,`input`,`checkbox`,`menuitemcheckbox`],[`roletype`,`widget`,`command`,`menuitem`,`menuitemcheckbox`],[`roletype`,`widget`,`input`,`radio`]]}}}),Gt=B({"../../node_modules/aria-query/lib/etc/roles/literal/meterRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:[`author`],prohibitedProps:[],props:{"aria-valuetext":null,"aria-valuemax":`100`,"aria-valuemin":`0`},relatedConcepts:[{concept:{name:`meter`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[[`roletype`,`structure`,`range`]]}}}),Kt=B({"../../node_modules/aria-query/lib/etc/roles/literal/navigationRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`nav`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),qt=B({"../../node_modules/aria-query/lib/etc/roles/literal/noneRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]}}}),Jt=B({"../../node_modules/aria-query/lib/etc/roles/literal/noteRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),Yt=B({"../../node_modules/aria-query/lib/etc/roles/literal/optionRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":`false`},relatedConcepts:[{concept:{name:`item`},module:`XForms`},{concept:{name:`listitem`},module:`ARIA`},{concept:{name:`option`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-selected":`false`},superClass:[[`roletype`,`widget`,`input`]]}}}),Xt=B({"../../node_modules/aria-query/lib/etc/roles/literal/paragraphRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`prohibited`],prohibitedProps:[`aria-label`,`aria-labelledby`],props:{},relatedConcepts:[{concept:{name:`p`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),Zt=B({"../../node_modules/aria-query/lib/etc/roles/literal/presentationRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`prohibited`],prohibitedProps:[`aria-label`,`aria-labelledby`],props:{},relatedConcepts:[{concept:{attributes:[{name:`alt`,value:``}],name:`img`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`]]}}}),Qt=B({"../../node_modules/aria-query/lib/etc/roles/literal/progressbarRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:[`author`],prohibitedProps:[],props:{"aria-valuetext":null},relatedConcepts:[{concept:{name:`progress`},module:`HTML`},{concept:{name:`status`},module:`ARIA`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`range`],[`roletype`,`widget`]]}}}),$t=B({"../../node_modules/aria-query/lib/etc/roles/literal/radioRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{attributes:[{name:`type`,value:`radio`}],name:`input`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[[`roletype`,`widget`,`input`]]}}}),en=B({"../../node_modules/aria-query/lib/etc/roles/literal/radiogroupRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{name:`list`},module:`ARIA`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[`radio`]],requiredProps:{},superClass:[[`roletype`,`widget`,`composite`,`select`],[`roletype`,`structure`,`section`,`group`,`select`]]}}}),tn=B({"../../node_modules/aria-query/lib/etc/roles/literal/regionRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:[`set`],name:`aria-label`}],name:`section`},module:`HTML`},{concept:{attributes:[{constraints:[`set`],name:`aria-labelledby`}],name:`section`},module:`HTML`},{concept:{name:`Device Independence Glossart perceivable unit`}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),nn=B({"../../node_modules/aria-query/lib/etc/roles/literal/rowRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-colindex":null,"aria-expanded":null,"aria-level":null,"aria-posinset":null,"aria-rowindex":null,"aria-selected":null,"aria-setsize":null},relatedConcepts:[{concept:{name:`tr`},module:`HTML`}],requireContextRole:[`grid`,`rowgroup`,`table`,`treegrid`],requiredContextRole:[`grid`,`rowgroup`,`table`,`treegrid`],requiredOwnedElements:[[`cell`],[`columnheader`],[`gridcell`],[`rowheader`]],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`group`],[`roletype`,`widget`]]}}}),rn=B({"../../node_modules/aria-query/lib/etc/roles/literal/rowgroupRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`tbody`},module:`HTML`},{concept:{name:`tfoot`},module:`HTML`},{concept:{name:`thead`},module:`HTML`}],requireContextRole:[`grid`,`table`,`treegrid`],requiredContextRole:[`grid`,`table`,`treegrid`],requiredOwnedElements:[[`row`]],requiredProps:{},superClass:[[`roletype`,`structure`]]}}}),an=B({"../../node_modules/aria-query/lib/etc/roles/literal/rowheaderRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{attributes:[{name:`scope`,value:`row`}],name:`th`},module:`HTML`},{concept:{attributes:[{name:`scope`,value:`rowgroup`}],name:`th`},module:`HTML`}],requireContextRole:[`row`,`rowgroup`],requiredContextRole:[`row`,`rowgroup`],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`cell`],[`roletype`,`structure`,`section`,`cell`,`gridcell`],[`roletype`,`widget`,`gridcell`],[`roletype`,`structure`,`sectionhead`]]}}}),on=B({"../../node_modules/aria-query/lib/etc/roles/literal/scrollbarRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-valuetext":null,"aria-orientation":`vertical`,"aria-valuemax":`100`,"aria-valuemin":`0`},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-valuenow":null},superClass:[[`roletype`,`structure`,`range`],[`roletype`,`widget`]]}}}),sn=B({"../../node_modules/aria-query/lib/etc/roles/literal/searchRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),cn=B({"../../node_modules/aria-query/lib/etc/roles/literal/searchboxRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:[`undefined`],name:`list`},{name:`type`,value:`search`}],constraints:[`the list attribute is not set`],name:`input`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`widget`,`input`,`textbox`]]}}}),ln=B({"../../node_modules/aria-query/lib/etc/roles/literal/separatorRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-orientation":`horizontal`,"aria-valuemax":`100`,"aria-valuemin":`0`,"aria-valuenow":null,"aria-valuetext":null},relatedConcepts:[{concept:{name:`hr`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`]]}}}),un=B({"../../node_modules/aria-query/lib/etc/roles/literal/sliderRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:[`author`],prohibitedProps:[],props:{"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-valuetext":null,"aria-orientation":`horizontal`,"aria-valuemax":`100`,"aria-valuemin":`0`},relatedConcepts:[{concept:{attributes:[{name:`type`,value:`range`}],name:`input`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[[`roletype`,`widget`,`input`],[`roletype`,`structure`,`range`]]}}}),dn=B({"../../node_modules/aria-query/lib/etc/roles/literal/spinbuttonRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-valuetext":null,"aria-valuenow":`0`},relatedConcepts:[{concept:{attributes:[{name:`type`,value:`number`}],name:`input`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`widget`,`composite`],[`roletype`,`widget`,`input`],[`roletype`,`structure`,`range`]]}}}),fn=B({"../../node_modules/aria-query/lib/etc/roles/literal/statusRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-atomic":`true`,"aria-live":`polite`},relatedConcepts:[{concept:{name:`output`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),pn=B({"../../node_modules/aria-query/lib/etc/roles/literal/strongRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`prohibited`],prohibitedProps:[`aria-label`,`aria-labelledby`],props:{},relatedConcepts:[{concept:{name:`strong`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),mn=B({"../../node_modules/aria-query/lib/etc/roles/literal/subscriptRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`prohibited`],prohibitedProps:[`aria-label`,`aria-labelledby`],props:{},relatedConcepts:[{concept:{name:`sub`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),hn=B({"../../node_modules/aria-query/lib/etc/roles/literal/superscriptRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`prohibited`],prohibitedProps:[`aria-label`,`aria-labelledby`],props:{},relatedConcepts:[{concept:{name:`sup`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),gn=B({"../../node_modules/aria-query/lib/etc/roles/literal/switchRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`button`},module:`ARIA`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[[`roletype`,`widget`,`input`,`checkbox`]]}}}),_n=B({"../../node_modules/aria-query/lib/etc/roles/literal/tabRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":`false`},relatedConcepts:[],requireContextRole:[`tablist`],requiredContextRole:[`tablist`],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`sectionhead`],[`roletype`,`widget`]]}}}),vn=B({"../../node_modules/aria-query/lib/etc/roles/literal/tableRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-colcount":null,"aria-rowcount":null},relatedConcepts:[{concept:{name:`table`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[`row`],[`row`,`rowgroup`]],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),yn=B({"../../node_modules/aria-query/lib/etc/roles/literal/tablistRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-level":null,"aria-multiselectable":null,"aria-orientation":`horizontal`},relatedConcepts:[{module:`DAISY`,concept:{name:`guide`}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[`tab`]],requiredProps:{},superClass:[[`roletype`,`widget`,`composite`]]}}}),bn=B({"../../node_modules/aria-query/lib/etc/roles/literal/tabpanelRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),xn=B({"../../node_modules/aria-query/lib/etc/roles/literal/termRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`dfn`},module:`HTML`},{concept:{name:`dt`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),Sn=B({"../../node_modules/aria-query/lib/etc/roles/literal/textboxRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-multiline":null,"aria-placeholder":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{constraints:[`undefined`],name:`type`},{constraints:[`undefined`],name:`list`}],constraints:[`the list attribute is not set`],name:`input`},module:`HTML`},{concept:{attributes:[{constraints:[`undefined`],name:`list`},{name:`type`,value:`email`}],constraints:[`the list attribute is not set`],name:`input`},module:`HTML`},{concept:{attributes:[{constraints:[`undefined`],name:`list`},{name:`type`,value:`tel`}],constraints:[`the list attribute is not set`],name:`input`},module:`HTML`},{concept:{attributes:[{constraints:[`undefined`],name:`list`},{name:`type`,value:`text`}],constraints:[`the list attribute is not set`],name:`input`},module:`HTML`},{concept:{attributes:[{constraints:[`undefined`],name:`list`},{name:`type`,value:`url`}],constraints:[`the list attribute is not set`],name:`input`},module:`HTML`},{concept:{name:`input`},module:`XForms`},{concept:{name:`textarea`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`widget`,`input`]]}}}),Cn=B({"../../node_modules/aria-query/lib/etc/roles/literal/timeRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`time`},module:`HTML`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),wn=B({"../../node_modules/aria-query/lib/etc/roles/literal/timerRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`status`]]}}}),Tn=B({"../../node_modules/aria-query/lib/etc/roles/literal/toolbarRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-orientation":`horizontal`},relatedConcepts:[{concept:{name:`menubar`},module:`ARIA`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`group`]]}}}),En=B({"../../node_modules/aria-query/lib/etc/roles/literal/tooltipRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),Dn=B({"../../node_modules/aria-query/lib/etc/roles/literal/treeRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-multiselectable":null,"aria-required":null,"aria-orientation":`vertical`},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[`treeitem`,`group`],[`treeitem`]],requiredProps:{},superClass:[[`roletype`,`widget`,`composite`,`select`],[`roletype`,`structure`,`section`,`group`,`select`]]}}}),On=B({"../../node_modules/aria-query/lib/etc/roles/literal/treegridRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[`row`],[`row`,`rowgroup`]],requiredProps:{},superClass:[[`roletype`,`widget`,`composite`,`grid`],[`roletype`,`structure`,`section`,`table`,`grid`],[`roletype`,`widget`,`composite`,`select`,`tree`],[`roletype`,`structure`,`section`,`group`,`select`,`tree`]]}}}),kn=B({"../../node_modules/aria-query/lib/etc/roles/literal/treeitemRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[],requireContextRole:[`group`,`tree`],requiredContextRole:[`group`,`tree`],requiredOwnedElements:[],requiredProps:{"aria-selected":null},superClass:[[`roletype`,`structure`,`section`,`listitem`],[`roletype`,`widget`,`input`,`option`]]}}}),An=B({"../../node_modules/aria-query/lib/etc/roles/ariaLiteralRoles.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var t=U(et()),n=U(tt()),r=U(nt()),i=U(rt()),a=U(it()),o=U(at()),s=U(ot()),c=U(st()),l=U(ct()),u=U(lt()),d=U(ut()),f=U(dt()),p=U(ft()),m=U(pt()),h=U(mt()),g=U(ht()),_=U(gt()),v=U(_t()),y=U(vt()),b=U(yt()),x=U(bt()),S=U(xt()),C=U(St()),w=U(Ct()),T=U(wt()),E=U(Tt()),D=U(Et()),O=U(Dt()),k=U(Ot()),A=U(kt()),j=U(At()),M=U(jt()),ee=U(Mt()),N=U(Nt()),te=U(Pt()),ne=U(Ft()),re=U(It()),P=U(Lt()),ie=U(Rt()),ae=U(zt()),oe=U(Bt()),F=U(Vt()),se=U(Ht()),ce=U(Ut()),le=U(Wt()),ue=U(Gt()),de=U(Kt()),fe=U(qt()),pe=U(Jt()),me=U(Yt()),I=U(Xt()),he=U(Zt()),ge=U(Qt()),_e=U($t()),ve=U(en()),ye=U(tn()),be=U(nn()),xe=U(rn()),L=U(an()),Se=U(on()),Ce=U(sn()),we=U(cn()),R=U(ln()),Te=U(un()),Ee=U(dn()),De=U(fn()),z=U(pn()),Oe=U(mn()),ke=U(hn()),Ae=U(gn()),je=U(_n()),Me=U(vn()),B=U(yn()),Ne=U(bn()),V=U(xn()),H=U(Sn()),Pe=U(Cn()),Fe=U(wn()),Ie=U(Tn()),Le=U(En()),Re=U(Dn()),ze=U(On()),Be=U(kn());function U(e){return e&&e.__esModule?e:{default:e}}e.default=[[`alert`,t.default],[`alertdialog`,n.default],[`application`,r.default],[`article`,i.default],[`banner`,a.default],[`blockquote`,o.default],[`button`,s.default],[`caption`,c.default],[`cell`,l.default],[`checkbox`,u.default],[`code`,d.default],[`columnheader`,f.default],[`combobox`,p.default],[`complementary`,m.default],[`contentinfo`,h.default],[`definition`,g.default],[`deletion`,_.default],[`dialog`,v.default],[`directory`,y.default],[`document`,b.default],[`emphasis`,x.default],[`feed`,S.default],[`figure`,C.default],[`form`,w.default],[`generic`,T.default],[`grid`,E.default],[`gridcell`,D.default],[`group`,O.default],[`heading`,k.default],[`img`,A.default],[`insertion`,j.default],[`link`,M.default],[`list`,ee.default],[`listbox`,N.default],[`listitem`,te.default],[`log`,ne.default],[`main`,re.default],[`mark`,P.default],[`marquee`,ie.default],[`math`,ae.default],[`menu`,oe.default],[`menubar`,F.default],[`menuitem`,se.default],[`menuitemcheckbox`,ce.default],[`menuitemradio`,le.default],[`meter`,ue.default],[`navigation`,de.default],[`none`,fe.default],[`note`,pe.default],[`option`,me.default],[`paragraph`,I.default],[`presentation`,he.default],[`progressbar`,ge.default],[`radio`,_e.default],[`radiogroup`,ve.default],[`region`,ye.default],[`row`,be.default],[`rowgroup`,xe.default],[`rowheader`,L.default],[`scrollbar`,Se.default],[`search`,Ce.default],[`searchbox`,we.default],[`separator`,R.default],[`slider`,Te.default],[`spinbutton`,Ee.default],[`status`,De.default],[`strong`,z.default],[`subscript`,Oe.default],[`superscript`,ke.default],[`switch`,Ae.default],[`tab`,je.default],[`table`,Me.default],[`tablist`,B.default],[`tabpanel`,Ne.default],[`term`,V.default],[`textbox`,H.default],[`time`,Pe.default],[`timer`,Fe.default],[`toolbar`,Ie.default],[`tooltip`,Le.default],[`tree`,Re.default],[`treegrid`,ze.default],[`treeitem`,Be.default]]}}),jn=B({"../../node_modules/aria-query/lib/etc/roles/dpub/docAbstractRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`abstract [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),Mn=B({"../../node_modules/aria-query/lib/etc/roles/dpub/docAcknowledgmentsRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`acknowledgments [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),Nn=B({"../../node_modules/aria-query/lib/etc/roles/dpub/docAfterwordRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`afterword [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),Pn=B({"../../node_modules/aria-query/lib/etc/roles/dpub/docAppendixRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`appendix [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),Fn=B({"../../node_modules/aria-query/lib/etc/roles/dpub/docBacklinkRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`referrer [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`widget`,`command`,`link`]]}}}),In=B({"../../node_modules/aria-query/lib/etc/roles/dpub/docBiblioentryRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`EPUB biblioentry [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[`doc-bibliography`],requiredContextRole:[`doc-bibliography`],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`listitem`]]}}}),Ln=B({"../../node_modules/aria-query/lib/etc/roles/dpub/docBibliographyRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`bibliography [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[`doc-biblioentry`]],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),Rn=B({"../../node_modules/aria-query/lib/etc/roles/dpub/docBibliorefRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`biblioref [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`widget`,`command`,`link`]]}}}),zn=B({"../../node_modules/aria-query/lib/etc/roles/dpub/docChapterRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`chapter [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),Bn=B({"../../node_modules/aria-query/lib/etc/roles/dpub/docColophonRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`colophon [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),Vn=B({"../../node_modules/aria-query/lib/etc/roles/dpub/docConclusionRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`conclusion [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),Hn=B({"../../node_modules/aria-query/lib/etc/roles/dpub/docCoverRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`cover [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`img`]]}}}),Un=B({"../../node_modules/aria-query/lib/etc/roles/dpub/docCreditRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`credit [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),Wn=B({"../../node_modules/aria-query/lib/etc/roles/dpub/docCreditsRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`credits [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),Gn=B({"../../node_modules/aria-query/lib/etc/roles/dpub/docDedicationRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`dedication [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),Kn=B({"../../node_modules/aria-query/lib/etc/roles/dpub/docEndnoteRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`rearnote [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[`doc-endnotes`],requiredContextRole:[`doc-endnotes`],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`listitem`]]}}}),qn=B({"../../node_modules/aria-query/lib/etc/roles/dpub/docEndnotesRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`rearnotes [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[`doc-endnote`]],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),Jn=B({"../../node_modules/aria-query/lib/etc/roles/dpub/docEpigraphRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`epigraph [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),Yn=B({"../../node_modules/aria-query/lib/etc/roles/dpub/docEpilogueRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`epilogue [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),Xn=B({"../../node_modules/aria-query/lib/etc/roles/dpub/docErrataRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`errata [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),Zn=B({"../../node_modules/aria-query/lib/etc/roles/dpub/docExampleRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),Qn=B({"../../node_modules/aria-query/lib/etc/roles/dpub/docFootnoteRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`footnote [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),$n=B({"../../node_modules/aria-query/lib/etc/roles/dpub/docForewordRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`foreword [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),er=B({"../../node_modules/aria-query/lib/etc/roles/dpub/docGlossaryRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`glossary [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[[`definition`],[`term`]],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),tr=B({"../../node_modules/aria-query/lib/etc/roles/dpub/docGlossrefRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`glossref [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`widget`,`command`,`link`]]}}}),nr=B({"../../node_modules/aria-query/lib/etc/roles/dpub/docIndexRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`index [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`,`navigation`]]}}}),rr=B({"../../node_modules/aria-query/lib/etc/roles/dpub/docIntroductionRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`introduction [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),ir=B({"../../node_modules/aria-query/lib/etc/roles/dpub/docNoterefRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`noteref [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`widget`,`command`,`link`]]}}}),ar=B({"../../node_modules/aria-query/lib/etc/roles/dpub/docNoticeRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`notice [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`note`]]}}}),or=B({"../../node_modules/aria-query/lib/etc/roles/dpub/docPagebreakRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:[`author`],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`pagebreak [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`separator`]]}}}),sr=B({"../../node_modules/aria-query/lib/etc/roles/dpub/docPagefooterRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`prohibited`],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null,"aria-disabled":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),cr=B({"../../node_modules/aria-query/lib/etc/roles/dpub/docPageheaderRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`prohibited`],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null,"aria-disabled":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),lr=B({"../../node_modules/aria-query/lib/etc/roles/dpub/docPagelistRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`page-list [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`,`navigation`]]}}}),ur=B({"../../node_modules/aria-query/lib/etc/roles/dpub/docPartRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`part [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),dr=B({"../../node_modules/aria-query/lib/etc/roles/dpub/docPrefaceRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`preface [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),fr=B({"../../node_modules/aria-query/lib/etc/roles/dpub/docPrologueRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`prologue [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`]]}}}),pr=B({"../../node_modules/aria-query/lib/etc/roles/dpub/docPullquoteRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:`pullquote [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`none`]]}}}),mr=B({"../../node_modules/aria-query/lib/etc/roles/dpub/docQnaRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`qna [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`]]}}}),hr=B({"../../node_modules/aria-query/lib/etc/roles/dpub/docSubtitleRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`subtitle [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`sectionhead`]]}}}),gr=B({"../../node_modules/aria-query/lib/etc/roles/dpub/docTipRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`help [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`note`]]}}}),_r=B({"../../node_modules/aria-query/lib/etc/roles/dpub/docTocRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:`toc [EPUB-SSV]`},module:`EPUB`}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`landmark`,`navigation`]]}}}),vr=B({"../../node_modules/aria-query/lib/etc/roles/ariaDpubRoles.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var t=F(jn()),n=F(Mn()),r=F(Nn()),i=F(Pn()),a=F(Fn()),o=F(In()),s=F(Ln()),c=F(Rn()),l=F(zn()),u=F(Bn()),d=F(Vn()),f=F(Hn()),p=F(Un()),m=F(Wn()),h=F(Gn()),g=F(Kn()),_=F(qn()),v=F(Jn()),y=F(Yn()),b=F(Xn()),x=F(Zn()),S=F(Qn()),C=F($n()),w=F(er()),T=F(tr()),E=F(nr()),D=F(rr()),O=F(ir()),k=F(ar()),A=F(or()),j=F(sr()),M=F(cr()),ee=F(lr()),N=F(ur()),te=F(dr()),ne=F(fr()),re=F(pr()),P=F(mr()),ie=F(hr()),ae=F(gr()),oe=F(_r());function F(e){return e&&e.__esModule?e:{default:e}}e.default=[[`doc-abstract`,t.default],[`doc-acknowledgments`,n.default],[`doc-afterword`,r.default],[`doc-appendix`,i.default],[`doc-backlink`,a.default],[`doc-biblioentry`,o.default],[`doc-bibliography`,s.default],[`doc-biblioref`,c.default],[`doc-chapter`,l.default],[`doc-colophon`,u.default],[`doc-conclusion`,d.default],[`doc-cover`,f.default],[`doc-credit`,p.default],[`doc-credits`,m.default],[`doc-dedication`,h.default],[`doc-endnote`,g.default],[`doc-endnotes`,_.default],[`doc-epigraph`,v.default],[`doc-epilogue`,y.default],[`doc-errata`,b.default],[`doc-example`,x.default],[`doc-footnote`,S.default],[`doc-foreword`,C.default],[`doc-glossary`,w.default],[`doc-glossref`,T.default],[`doc-index`,E.default],[`doc-introduction`,D.default],[`doc-noteref`,O.default],[`doc-notice`,k.default],[`doc-pagebreak`,A.default],[`doc-pagefooter`,j.default],[`doc-pageheader`,M.default],[`doc-pagelist`,ee.default],[`doc-part`,N.default],[`doc-preface`,te.default],[`doc-prologue`,ne.default],[`doc-pullquote`,re.default],[`doc-qna`,P.default],[`doc-subtitle`,ie.default],[`doc-tip`,ae.default],[`doc-toc`,oe.default]]}}),yr=B({"../../node_modules/aria-query/lib/etc/roles/graphics/graphicsDocumentRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:`GRAPHICS`,concept:{name:`graphics-object`}},{module:`ARIA`,concept:{name:`img`}},{module:`ARIA`,concept:{name:`article`}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`document`]]}}}),br=B({"../../node_modules/aria-query/lib/etc/roles/graphics/graphicsObjectRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[`author`,`contents`],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:`GRAPHICS`,concept:{name:`graphics-document`}},{module:`ARIA`,concept:{name:`group`}},{module:`ARIA`,concept:{name:`img`}},{module:`GRAPHICS`,concept:{name:`graphics-symbol`}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`group`]]}}}),xr=B({"../../node_modules/aria-query/lib/etc/roles/graphics/graphicsSymbolRole.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:[`author`],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[[`roletype`,`structure`,`section`,`img`]]}}}),Sr=B({"../../node_modules/aria-query/lib/etc/roles/ariaGraphicsRoles.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var t=i(yr()),n=i(br()),r=i(xr());function i(e){return e&&e.__esModule?e:{default:e}}e.default=[[`graphics-document`,t.default],[`graphics-object`,n.default],[`graphics-symbol`,r.default]]}}),Cr=B({"../../node_modules/aria-query/lib/rolesMap.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var t=o($e()),n=o(An()),r=o(vr()),i=o(Sr()),a=o(Be());function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=u(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
5
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function c(e,t){return p(e)||f(e,t)||u(e,t)||l()}function l(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
6
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function u(e,t){if(e){if(typeof e==`string`)return d(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}function d(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function f(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function p(e){if(Array.isArray(e))return e}var m=[].concat(t.default,n.default,r.default,i.default);m.forEach(function(e){var t=c(e,2)[1],n=s(t.superClass),r;try{for(n.s();!(r=n.n()).done;){var i=r.value,a=s(i),o;try{var l=function(){var e=o.value,n=m.filter(function(t){return c(t,1)[0]===e})[0];if(n)for(var r=n[1],i=0,a=Object.keys(r.props);i<a.length;i++){var s=a[i];Object.prototype.hasOwnProperty.call(t.props,s)||(t.props[s]=r.props[s])}};for(a.s();!(o=a.n()).done;)l()}catch(e){a.e(e)}finally{a.f()}}}catch(e){n.e(e)}finally{n.f()}});var h={entries:function(){return m},forEach:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=s(m),r;try{for(n.s();!(r=n.n()).done;){var i=c(r.value,2),a=i[0],o=i[1];e.call(t,o,a,m)}}catch(e){n.e(e)}finally{n.f()}},get:function(e){var t=m.filter(function(t){return t[0]===e})[0];return t&&t[1]},has:function(e){return!!h.get(e)},keys:function(){return m.map(function(e){return c(e,1)[0]})},values:function(){return m.map(function(e){return c(e,2)[1]})}};e.default=(0,a.default)(h,h.entries())}}),wr=B({"../../node_modules/aria-query/lib/elementRoleMap.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var t=r(Be()),n=r(Cr());function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){return l(e)||c(e,t)||o(e,t)||a()}function a(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
7
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(e,t){if(e){if(typeof e==`string`)return s(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function l(e){if(Array.isArray(e))return e}var u=[],d=n.default.keys();for(_=0;_<d.length;_++)if(f=d[_],p=n.default.get(f),p)for(m=[].concat(p.baseConcepts,p.relatedConcepts),h=function(){var e=m[g];if(e.module===`HTML`){var t=e.concept;if(t){for(var n=u.filter(function(e){return y(e[0],t)})[0],r=n?n[1]:[],i=!0,a=0;a<r.length;a++)if(r[a]===f){i=!1;break}i&&r.push(f),n||u.push([t,r])}}},g=0;g<m.length;g++)h();var f,p,m,h,g,_,v={entries:function(){return u},forEach:function(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=0,r=u;n<r.length;n++){var a=i(r[n],2),o=a[0],s=a[1];e.call(t,s,o,u)}},get:function(e){var t=u.filter(function(t){return e.name===t[0].name&&x(e.attributes,t[0].attributes)})[0];return t&&t[1]},has:function(e){return!!v.get(e)},keys:function(){return u.map(function(e){return i(e,1)[0]})},values:function(){return u.map(function(e){return i(e,2)[1]})}};function y(e,t){return e.name===t.name&&b(e.constraints,t.constraints)&&x(e.attributes,t.attributes)}function b(e,t){if(e===void 0&&t!==void 0||e!==void 0&&t===void 0)return!1;if(e!==void 0&&t!==void 0){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1}return!0}function x(e,t){if(e===void 0&&t!==void 0||e!==void 0&&t===void 0)return!1;if(e!==void 0&&t!==void 0){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){if(e[n].name!==t[n].name||e[n].value!==t[n].value||e[n].constraints===void 0&&t[n].constraints!==void 0||e[n].constraints!==void 0&&t[n].constraints===void 0)return!1;if(e[n].constraints!==void 0&&t[n].constraints!==void 0){if(e[n].constraints.length!==t[n].constraints.length)return!1;for(var r=0;r<e[n].constraints.length;r++)if(e[n].constraints[r]!==t[n].constraints[r])return!1}}}return!0}e.default=(0,t.default)(v,v.entries())}}),Tr=B({"../../node_modules/aria-query/lib/roleElementMap.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var t=r(Be()),n=r(Cr());function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){return l(e)||c(e,t)||o(e,t)||a()}function a(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
8
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(e,t){if(e){if(typeof e==`string`)return s(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function l(e){if(Array.isArray(e))return e}var u=[],d=n.default.keys();for(y=0;y<d.length;y++)if(f=d[y],p=n.default.get(f),m=[],p){for(h=[].concat(p.baseConcepts,p.relatedConcepts),v=0;v<h.length;v++)g=h[v],g.module===`HTML`&&(_=g.concept,_!=null&&m.push(_));m.length>0&&u.push([f,m])}var f,p,m,h,g,_,v,y,b={entries:function(){return u},forEach:function(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=0,r=u;n<r.length;n++){var a=i(r[n],2),o=a[0],s=a[1];e.call(t,s,o,u)}},get:function(e){var t=u.filter(function(t){return t[0]===e})[0];return t&&t[1]},has:function(e){return!!b.get(e)},keys:function(){return u.map(function(e){return i(e,1)[0]})},values:function(){return u.map(function(e){return i(e,2)[1]})}};e.default=(0,t.default)(b,b.entries())}}),Er=B({"../../node_modules/aria-query/lib/index.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.roles=e.roleElements=e.elementRoles=e.dom=e.aria=void 0;var t=o(U()),n=o(Ve()),r=o(Cr()),i=o(wr()),a=o(Tr());function o(e){return e&&e.__esModule?e:{default:e}}e.aria=t.default,e.dom=n.default,e.roles=r.default,e.elementRoles=i.default,e.roleElements=a.default}}),Dr=B({"../../node_modules/color-name/index.js"(e,t){t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}}),Or=B({"../../node_modules/color-convert/conversions.js"(e,t){var n=Dr(),r={};for(let e of Object.keys(n))r[n[e]]=e;var i={rgb:{channels:3,labels:`rgb`},hsl:{channels:3,labels:`hsl`},hsv:{channels:3,labels:`hsv`},hwb:{channels:3,labels:`hwb`},cmyk:{channels:4,labels:`cmyk`},xyz:{channels:3,labels:`xyz`},lab:{channels:3,labels:`lab`},lch:{channels:3,labels:`lch`},hex:{channels:1,labels:[`hex`]},keyword:{channels:1,labels:[`keyword`]},ansi16:{channels:1,labels:[`ansi16`]},ansi256:{channels:1,labels:[`ansi256`]},hcg:{channels:3,labels:[`h`,`c`,`g`]},apple:{channels:3,labels:[`r16`,`g16`,`b16`]},gray:{channels:1,labels:[`gray`]}};t.exports=i;for(let e of Object.keys(i)){if(!(`channels`in i[e]))throw Error(`missing channels property: `+e);if(!(`labels`in i[e]))throw Error(`missing channel labels property: `+e);if(i[e].labels.length!==i[e].channels)throw Error(`channel and label counts mismatch: `+e);let{channels:t,labels:n}=i[e];delete i[e].channels,delete i[e].labels,Object.defineProperty(i[e],`channels`,{value:t}),Object.defineProperty(i[e],`labels`,{value:n})}i.rgb.hsl=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=a-i,s,c;a===i?s=0:t===a?s=(n-r)/o:n===a?s=2+(r-t)/o:r===a&&(s=4+(t-n)/o),s=Math.min(s*60,360),s<0&&(s+=360);let l=(i+a)/2;return c=a===i?0:l<=.5?o/(a+i):o/(2-a-i),[s,c*100,l*100]},i.rgb.hsv=function(e){let t,n,r,i,a,o=e[0]/255,s=e[1]/255,c=e[2]/255,l=Math.max(o,s,c),u=l-Math.min(o,s,c),d=function(e){return(l-e)/6/u+1/2};return u===0?(i=0,a=0):(a=u/l,t=d(o),n=d(s),r=d(c),o===l?i=r-n:s===l?i=1/3+t-r:c===l&&(i=2/3+n-t),i<0?i+=1:i>1&&--i),[i*360,a*100,l*100]},i.rgb.hwb=function(e){let t=e[0],n=e[1],r=e[2],a=i.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[a,o*100,r*100]},i.rgb.cmyk=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(1-t,1-n,1-r),a=(1-t-i)/(1-i)||0,o=(1-n-i)/(1-i)||0,s=(1-r-i)/(1-i)||0;return[a*100,o*100,s*100,i*100]};function a(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}i.rgb.keyword=function(e){let t=r[e];if(t)return t;let i=1/0,o;for(let t of Object.keys(n)){let r=n[t],s=a(e,r);s<i&&(i=s,o=t)}return o},i.keyword.rgb=function(e){return n[e]},i.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;let i=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,o=t*.0193+n*.1192+r*.9505;return[i*100,a*100,o*100]},i.rgb.lab=function(e){let t=i.rgb.xyz(e),n=t[0],r=t[1],a=t[2];return n/=95.047,r/=100,a/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,a=a>.008856?a**(1/3):7.787*a+16/116,[116*r-16,500*(n-r),200*(r-a)]},i.hsl.rgb=function(e){let t=e[0]/360,n=e[1]/100,r=e[2]/100,i,a,o;if(n===0)return o=r*255,[o,o,o];i=r<.5?r*(1+n):r+n-r*n;let s=2*r-i,c=[0,0,0];for(let e=0;e<3;e++)a=t+1/3*-(e-1),a<0&&a++,a>1&&a--,o=6*a<1?s+(i-s)*6*a:2*a<1?i:3*a<2?s+(i-s)*(2/3-a)*6:s,c[e]=o*255;return c},i.hsl.hsv=function(e){let t=e[0],n=e[1]/100,r=e[2]/100,i=n,a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,i*=a<=1?a:2-a;let o=(r+n)/2;return[t,(r===0?2*i/(a+i):2*n/(r+n))*100,o*100]},i.hsv.rgb=function(e){let t=e[0]/60,n=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,a=t-Math.floor(t),o=255*r*(1-n),s=255*r*(1-n*a),c=255*r*(1-n*(1-a));switch(r*=255,i){case 0:return[r,c,o];case 1:return[s,r,o];case 2:return[o,r,c];case 3:return[o,s,r];case 4:return[c,o,r];case 5:return[r,o,s]}},i.hsv.hsl=function(e){let t=e[0],n=e[1]/100,r=e[2]/100,i=Math.max(r,.01),a,o;o=(2-n)*r;let s=(2-n)*i;return a=n*i,a/=s<=1?s:2-s,a||=0,o/=2,[t,a*100,o*100]},i.hwb.rgb=function(e){let t=e[0]/360,n=e[1]/100,r=e[2]/100,i=n+r,a;i>1&&(n/=i,r/=i);let o=Math.floor(6*t),s=1-r;a=6*t-o,o&1&&(a=1-a);let c=n+a*(s-n),l,u,d;switch(o){default:case 6:case 0:l=s,u=c,d=n;break;case 1:l=c,u=s,d=n;break;case 2:l=n,u=s,d=c;break;case 3:l=n,u=c,d=s;break;case 4:l=c,u=n,d=s;break;case 5:l=s,u=n,d=c;break}return[l*255,u*255,d*255]},i.cmyk.rgb=function(e){let t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100,a=1-Math.min(1,t*(1-i)+i),o=1-Math.min(1,n*(1-i)+i),s=1-Math.min(1,r*(1-i)+i);return[a*255,o*255,s*255]},i.xyz.rgb=function(e){let t=e[0]/100,n=e[1]/100,r=e[2]/100,i,a,o;return i=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,o=t*.0557+n*-.204+r*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),o=Math.min(Math.max(0,o),1),[i*255,a*255,o*255]},i.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];return t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,[116*n-16,500*(t-n),200*(n-r)]},i.lab.xyz=function(e){let t=e[0],n=e[1],r=e[2],i,a,o;a=(t+16)/116,i=n/500+a,o=a-r/200;let s=a**3,c=i**3,l=o**3;return a=s>.008856?s:(a-16/116)/7.787,i=c>.008856?c:(i-16/116)/7.787,o=l>.008856?l:(o-16/116)/7.787,i*=95.047,a*=100,o*=108.883,[i,a,o]},i.lab.lch=function(e){let t=e[0],n=e[1],r=e[2],i;return i=Math.atan2(r,n)*360/2/Math.PI,i<0&&(i+=360),[t,Math.sqrt(n*n+r*r),i]},i.lch.lab=function(e){let t=e[0],n=e[1],r=e[2]/360*2*Math.PI;return[t,n*Math.cos(r),n*Math.sin(r)]},i.rgb.ansi16=function(e,t=null){let[n,r,a]=e,o=t===null?i.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),o===0)return 30;let s=30+(Math.round(a/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return o===2&&(s+=60),s},i.hsv.ansi16=function(e){return i.rgb.ansi16(i.hsv.rgb(e),e[2])},i.rgb.ansi256=function(e){let t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},i.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let n=(~~(e>50)+1)*.5;return[(t&1)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},i.ansi256.rgb=function(e){if(e>=232){let t=(e-232)*10+8;return[t,t,t]}e-=16;let t;return[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},i.rgb.hex=function(e){let t=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return`000000`.substring(t.length)+t},i.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split(``).map(e=>e+e).join(``));let r=parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},i.rgb.hcg=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),o=i-a,s,c;return s=o<1?a/(1-o):0,c=o<=0?0:i===t?(n-r)/o%6:i===n?2+(r-t)/o:4+(t-n)/o,c/=6,c%=1,[c*360,o*100,s*100]},i.hsl.hcg=function(e){let t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n),i=0;return r<1&&(i=(n-.5*r)/(1-r)),[e[0],r*100,i*100]},i.hsv.hcg=function(e){let t=e[1]/100,n=e[2]/100,r=t*n,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],r*100,i*100]},i.hcg.rgb=function(e){let t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];let i=[0,0,0],a=t%1*6,o=a%1,s=1-o,c=0;switch(Math.floor(a)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return c=(1-n)*r,[(n*i[0]+c)*255,(n*i[1]+c)*255,(n*i[2]+c)*255]},i.hcg.hsv=function(e){let t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],r*100,n*100]},i.hcg.hsl=function(e){let t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],r*100,n*100]},i.hcg.hwb=function(e){let t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],(n-t)*100,(1-n)*100]},i.hwb.hcg=function(e){let t=e[1]/100,n=1-e[2]/100,r=n-t,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],r*100,i*100]},i.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},i.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},i.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},i.gray.hsl=function(e){return[0,0,e[0]]},i.gray.hsv=i.gray.hsl,i.gray.hwb=function(e){return[0,100,e[0]]},i.gray.cmyk=function(e){return[0,0,0,e[0]]},i.gray.lab=function(e){return[e[0],0,0]},i.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return`000000`.substring(n.length)+n},i.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}}),kr=B({"../../node_modules/color-convert/route.js"(e,t){var n=Or();function r(){let e={},t=Object.keys(n);for(let n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}function i(e){let t=r(),i=[e];for(t[e].distance=0;i.length;){let e=i.pop(),r=Object.keys(n[e]);for(let n=r.length,a=0;a<n;a++){let n=r[a],o=t[n];o.distance===-1&&(o.distance=t[e].distance+1,o.parent=e,i.unshift(n))}}return t}function a(e,t){return function(n){return t(e(n))}}function o(e,t){let r=[t[e].parent,e],i=n[t[e].parent][e],o=t[e].parent;for(;t[o].parent;)r.unshift(t[o].parent),i=a(n[t[o].parent][o],i),o=t[o].parent;return i.conversion=r,i}t.exports=function(e){let t=i(e),n={},r=Object.keys(t);for(let e=r.length,i=0;i<e;i++){let e=r[i];t[e].parent!==null&&(n[e]=o(e,t))}return n}}}),Ar=B({"../../node_modules/color-convert/index.js"(e,t){var n=Or(),r=kr(),i={},a=Object.keys(n);function o(e){let t=function(...t){let n=t[0];return n==null?n:(n.length>1&&(t=n),e(t))};return`conversion`in e&&(t.conversion=e.conversion),t}function s(e){let t=function(...t){let n=t[0];if(n==null)return n;n.length>1&&(t=n);let r=e(t);if(typeof r==`object`)for(let e=r.length,t=0;t<e;t++)r[t]=Math.round(r[t]);return r};return`conversion`in e&&(t.conversion=e.conversion),t}a.forEach(e=>{i[e]={},Object.defineProperty(i[e],`channels`,{value:n[e].channels}),Object.defineProperty(i[e],`labels`,{value:n[e].labels});let t=r(e);Object.keys(t).forEach(n=>{let r=t[n];i[e][n]=s(r),i[e][n].raw=o(r)})}),t.exports=i}}),jr=B({"../../node_modules/ansi-styles/index.js"(e,t){var n=(e,t)=>(...n)=>`\x1B[${e(...n)+t}m`,r=(e,t)=>(...n)=>{let r=e(...n);return`\x1B[${38+t};5;${r}m`},i=(e,t)=>(...n)=>{let r=e(...n);return`\x1B[${38+t};2;${r[0]};${r[1]};${r[2]}m`},a=e=>e,o=(e,t,n)=>[e,t,n],s=(e,t,n)=>{Object.defineProperty(e,t,{get:()=>{let r=n();return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0}),r},enumerable:!0,configurable:!0})},c,l=(e,t,n,r)=>{c===void 0&&(c=Ar());let i=r?10:0,a={};for(let[r,o]of Object.entries(c)){let s=r===`ansi16`?`ansi`:r;r===t?a[s]=e(n,i):typeof o==`object`&&(a[s]=e(o[t],i))}return a};function u(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],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]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(let[n,r]of Object.entries(t)){for(let[n,i]of Object.entries(r))t[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=t[n],e.set(i[0],i[1]);Object.defineProperty(t,n,{value:r,enumerable:!1})}return Object.defineProperty(t,`codes`,{value:e,enumerable:!1}),t.color.close=`\x1B[39m`,t.bgColor.close=`\x1B[49m`,s(t.color,`ansi`,()=>l(n,`ansi16`,a,!1)),s(t.color,`ansi256`,()=>l(r,`ansi256`,a,!1)),s(t.color,`ansi16m`,()=>l(i,`rgb`,o,!1)),s(t.bgColor,`ansi`,()=>l(n,`ansi16`,a,!0)),s(t.bgColor,`ansi256`,()=>l(r,`ansi256`,a,!0)),s(t.bgColor,`ansi16m`,()=>l(i,`rgb`,o,!0)),t}Object.defineProperty(t,`exports`,{enumerable:!0,get:u})}}),Mr=B({"../../node_modules/supports-color/browser.js"(e,t){t.exports={stdout:!1,stderr:!1}}}),Nr=B({"../../node_modules/@testing-library/jest-dom/node_modules/chalk/source/util.js"(e,t){t.exports={stringReplaceAll:(e,t,n)=>{let r=e.indexOf(t);if(r===-1)return e;let i=t.length,a=0,o=``;do o+=e.substr(a,r-a)+t+n,a=r+i,r=e.indexOf(t,a);while(r!==-1);return o+=e.substr(a),o},stringEncaseCRLFWithFirstIndex:(e,t,n,r)=>{let i=0,a=``;do{let o=e[r-1]===`\r`;a+=e.substr(i,(o?r-1:r)-i)+t+(o?`\r
9
- `:`
10
- `)+n,i=r+1,r=e.indexOf(`
11
- `,i)}while(r!==-1);return a+=e.substr(i),a}}}}),Pr=B({"../../node_modules/@testing-library/jest-dom/node_modules/chalk/source/templates.js"(e,t){var n=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,r=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,i=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,a=/\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.)|([^\\])/gi,o=new Map([[`n`,`
12
- `],[`r`,`\r`],[`t`,` `],[`b`,`\b`],[`f`,`\f`],[`v`,`\v`],[`0`,`\0`],[`\\`,`\\`],[`e`,`\x1B`],[`a`,`\x07`]]);function s(e){let t=e[0]===`u`,n=e[1]===`{`;return t&&!n&&e.length===5||e[0]===`x`&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):t&&n?String.fromCodePoint(parseInt(e.slice(2,-1),16)):o.get(e)||e}function c(e,t){let n=[],r=t.trim().split(/\s*,\s*/g),o;for(let t of r){let r=Number(t);if(!Number.isNaN(r))n.push(r);else if(o=t.match(i))n.push(o[2].replace(a,(e,t,n)=>t?s(t):n));else throw Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`)}return n}function l(e){r.lastIndex=0;let t=[],n;for(;(n=r.exec(e))!==null;){let e=n[1];if(n[2]){let r=c(e,n[2]);t.push([e].concat(r))}else t.push([e])}return t}function u(e,t){let n={};for(let e of t)for(let t of e.styles)n[t[0]]=e.inverse?null:t.slice(1);let r=e;for(let[e,t]of Object.entries(n))if(Array.isArray(t)){if(!(e in r))throw Error(`Unknown Chalk style: ${e}`);r=t.length>0?r[e](...t):r[e]}return r}t.exports=(e,t)=>{let r=[],i=[],a=[];if(t.replace(n,(t,n,o,c,d,f)=>{if(n)a.push(s(n));else if(c){let t=a.join(``);a=[],i.push(r.length===0?t:u(e,r)(t)),r.push({inverse:o,styles:l(c)})}else if(d){if(r.length===0)throw Error(`Found extraneous } in Chalk template literal`);i.push(u(e,r)(a.join(``))),a=[],r.pop()}else a.push(f)}),i.push(a.join(``)),r.length>0){let e=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?``:`s`} (\`}\`)`;throw Error(e)}return i.join(``)}}}),Fr=B({"../../node_modules/@testing-library/jest-dom/node_modules/chalk/source/index.js"(e,t){var n=jr(),{stdout:r,stderr:i}=Mr(),{stringReplaceAll:a,stringEncaseCRLFWithFirstIndex:o}=Nr(),s=[`ansi`,`ansi`,`ansi256`,`ansi16m`],c=Object.create(null),l=(e,t={})=>{if(t.level>3||t.level<0)throw Error("The `level` option should be an integer from 0 to 3");let n=r?r.level:0;e.level=t.level===void 0?n:t.level},u=class{constructor(e){return d(e)}},d=e=>{let t={};return l(t,e),t.template=(...e)=>y(t.template,...e),Object.setPrototypeOf(t,f.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=u,t.template};function f(e){return d(e)}for(let[e,t]of Object.entries(n))c[e]={get(){let n=g(this,h(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:n}),n}};c.visible={get(){let e=g(this,this._styler,!0);return Object.defineProperty(this,`visible`,{value:e}),e}};var p=[`rgb`,`hex`,`keyword`,`hsl`,`hsv`,`hwb`,`ansi`,`ansi256`];for(let e of p)c[e]={get(){let{level:t}=this;return function(...r){let i=h(n.color[s[t]][e](...r),n.color.close,this._styler);return g(this,i,this._isEmpty)}}};for(let e of p){let t=`bg`+e[0].toUpperCase()+e.slice(1);c[t]={get(){let{level:t}=this;return function(...r){let i=h(n.bgColor[s[t]][e](...r),n.bgColor.close,this._styler);return g(this,i,this._isEmpty)}}}}var m=Object.defineProperties(()=>{},{...c,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),h=(e,t,n)=>{let r,i;return n===void 0?(r=e,i=t):(r=n.openAll+e,i=t+n.closeAll),{open:e,close:t,openAll:r,closeAll:i,parent:n}},g=(e,t,n)=>{let r=(...e)=>_(r,e.length===1?``+e[0]:e.join(` `));return r.__proto__=m,r._generator=e,r._styler=t,r._isEmpty=n,r},_=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?``:t;let n=e._styler;if(n===void 0)return t;let{openAll:r,closeAll:i}=n;if(t.indexOf(`\x1B`)!==-1)for(;n!==void 0;)t=a(t,n.close,n.open),n=n.parent;let s=t.indexOf(`
13
- `);return s!==-1&&(t=o(t,i,r,s)),r+t+i},v,y=(e,...t)=>{let[n]=t;if(!Array.isArray(n))return t.join(` `);let r=t.slice(1),i=[n.raw[0]];for(let e=1;e<n.length;e++)i.push(String(r[e-1]).replace(/[{}\\]/g,`\\$&`),String(n.raw[e]));return v===void 0&&(v=Pr()),v(e,i.join(``))};Object.defineProperties(f.prototype,c);var b=f();b.supportsColor=r,b.stderr=f({level:i?i.level:0}),b.stderr.supportsColor=i,b.Level={None:0,Basic:1,Ansi256:2,TrueColor:3,0:`None`,1:`Basic`,2:`Ansi256`,3:`TrueColor`},t.exports=b}}),Ir=B({"../../node_modules/lodash/_listCacheClear.js"(e,t){function n(){this.__data__=[],this.size=0}t.exports=n}}),Lr=B({"../../node_modules/lodash/eq.js"(e,t){function n(e,t){return e===t||e!==e&&t!==t}t.exports=n}}),Rr=B({"../../node_modules/lodash/_assocIndexOf.js"(e,t){var n=Lr();function r(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}t.exports=r}}),zr=B({"../../node_modules/lodash/_listCacheDelete.js"(e,t){var n=Rr(),r=Array.prototype.splice;function i(e){var t=this.__data__,i=n(t,e);return i<0?!1:(i==t.length-1?t.pop():r.call(t,i,1),--this.size,!0)}t.exports=i}}),Br=B({"../../node_modules/lodash/_listCacheGet.js"(e,t){var n=Rr();function r(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}t.exports=r}}),Vr=B({"../../node_modules/lodash/_listCacheHas.js"(e,t){var n=Rr();function r(e){return n(this.__data__,e)>-1}t.exports=r}}),Hr=B({"../../node_modules/lodash/_listCacheSet.js"(e,t){var n=Rr();function r(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}t.exports=r}}),Ur=B({"../../node_modules/lodash/_ListCache.js"(e,t){var n=Ir(),r=zr(),i=Br(),a=Vr(),o=Hr();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s}}),Wr=B({"../../node_modules/lodash/_stackClear.js"(e,t){var n=Ur();function r(){this.__data__=new n,this.size=0}t.exports=r}}),Gr=B({"../../node_modules/lodash/_stackDelete.js"(e,t){function n(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}t.exports=n}}),Kr=B({"../../node_modules/lodash/_stackGet.js"(e,t){function n(e){return this.__data__.get(e)}t.exports=n}}),qr=B({"../../node_modules/lodash/_stackHas.js"(e,t){function n(e){return this.__data__.has(e)}t.exports=n}}),Jr=B({"../../node_modules/lodash/_freeGlobal.js"(e,t){t.exports=typeof global==`object`&&global&&global.Object===Object&&global}}),Yr=B({"../../node_modules/lodash/_root.js"(e,t){var n=Jr(),r=typeof self==`object`&&self&&self.Object===Object&&self;t.exports=n||r||Function(`return this`)()}}),Xr=B({"../../node_modules/lodash/_Symbol.js"(e,t){t.exports=Yr().Symbol}}),Zr=B({"../../node_modules/lodash/_getRawTag.js"(e,t){var n=Xr(),r=Object.prototype,i=r.hasOwnProperty,a=r.toString,o=n?n.toStringTag:void 0;function s(e){var t=i.call(e,o),n=e[o];try{e[o]=void 0;var r=!0}catch{}var s=a.call(e);return r&&(t?e[o]=n:delete e[o]),s}t.exports=s}}),Qr=B({"../../node_modules/lodash/_objectToString.js"(e,t){var n=Object.prototype.toString;function r(e){return n.call(e)}t.exports=r}}),$r=B({"../../node_modules/lodash/_baseGetTag.js"(e,t){var n=Xr(),r=Zr(),i=Qr(),a=`[object Null]`,o=`[object Undefined]`,s=n?n.toStringTag:void 0;function c(e){return e==null?e===void 0?o:a:s&&s in Object(e)?r(e):i(e)}t.exports=c}}),ei=B({"../../node_modules/lodash/isObject.js"(e,t){function n(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}t.exports=n}}),ti=B({"../../node_modules/lodash/isFunction.js"(e,t){var n=$r(),r=ei(),i=`[object AsyncFunction]`,a=`[object Function]`,o=`[object GeneratorFunction]`,s=`[object Proxy]`;function c(e){if(!r(e))return!1;var t=n(e);return t==a||t==o||t==i||t==s}t.exports=c}}),ni=B({"../../node_modules/lodash/_coreJsData.js"(e,t){t.exports=Yr()[`__core-js_shared__`]}}),ri=B({"../../node_modules/lodash/_isMasked.js"(e,t){var n=ni(),r=(function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``})();function i(e){return!!r&&r in e}t.exports=i}}),ii=B({"../../node_modules/lodash/_toSource.js"(e,t){var n=Function.prototype.toString;function r(e){if(e!=null){try{return n.call(e)}catch{}try{return e+``}catch{}}return``}t.exports=r}}),ai=B({"../../node_modules/lodash/_baseIsNative.js"(e,t){var n=ti(),r=ri(),i=ei(),a=ii(),o=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,f=RegExp(`^`+u.call(d).replace(o,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function p(e){return!i(e)||r(e)?!1:(n(e)?f:s).test(a(e))}t.exports=p}}),oi=B({"../../node_modules/lodash/_getValue.js"(e,t){function n(e,t){return e?.[t]}t.exports=n}}),si=B({"../../node_modules/lodash/_getNative.js"(e,t){var n=ai(),r=oi();function i(e,t){var i=r(e,t);return n(i)?i:void 0}t.exports=i}}),ci=B({"../../node_modules/lodash/_Map.js"(e,t){t.exports=si()(Yr(),`Map`)}}),li=B({"../../node_modules/lodash/_nativeCreate.js"(e,t){t.exports=si()(Object,`create`)}}),ui=B({"../../node_modules/lodash/_hashClear.js"(e,t){var n=li();function r(){this.__data__=n?n(null):{},this.size=0}t.exports=r}}),di=B({"../../node_modules/lodash/_hashDelete.js"(e,t){function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}t.exports=n}}),fi=B({"../../node_modules/lodash/_hashGet.js"(e,t){var n=li(),r=`__lodash_hash_undefined__`,i=Object.prototype.hasOwnProperty;function a(e){var t=this.__data__;if(n){var a=t[e];return a===r?void 0:a}return i.call(t,e)?t[e]:void 0}t.exports=a}}),pi=B({"../../node_modules/lodash/_hashHas.js"(e,t){var n=li(),r=Object.prototype.hasOwnProperty;function i(e){var t=this.__data__;return n?t[e]!==void 0:r.call(t,e)}t.exports=i}}),mi=B({"../../node_modules/lodash/_hashSet.js"(e,t){var n=li(),r=`__lodash_hash_undefined__`;function i(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=n&&t===void 0?r:t,this}t.exports=i}}),hi=B({"../../node_modules/lodash/_Hash.js"(e,t){var n=ui(),r=di(),i=fi(),a=pi(),o=mi();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s}}),gi=B({"../../node_modules/lodash/_mapCacheClear.js"(e,t){var n=hi(),r=Ur(),i=ci();function a(){this.size=0,this.__data__={hash:new n,map:new(i||r),string:new n}}t.exports=a}}),_i=B({"../../node_modules/lodash/_isKeyable.js"(e,t){function n(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}t.exports=n}}),vi=B({"../../node_modules/lodash/_getMapData.js"(e,t){var n=_i();function r(e,t){var r=e.__data__;return n(t)?r[typeof t==`string`?`string`:`hash`]:r.map}t.exports=r}}),yi=B({"../../node_modules/lodash/_mapCacheDelete.js"(e,t){var n=vi();function r(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}t.exports=r}}),bi=B({"../../node_modules/lodash/_mapCacheGet.js"(e,t){var n=vi();function r(e){return n(this,e).get(e)}t.exports=r}}),xi=B({"../../node_modules/lodash/_mapCacheHas.js"(e,t){var n=vi();function r(e){return n(this,e).has(e)}t.exports=r}}),Si=B({"../../node_modules/lodash/_mapCacheSet.js"(e,t){var n=vi();function r(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}t.exports=r}}),Ci=B({"../../node_modules/lodash/_MapCache.js"(e,t){var n=gi(),r=yi(),i=bi(),a=xi(),o=Si();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s}}),wi=B({"../../node_modules/lodash/_stackSet.js"(e,t){var n=Ur(),r=ci(),i=Ci(),a=200;function o(e,t){var o=this.__data__;if(o instanceof n){var s=o.__data__;if(!r||s.length<a-1)return s.push([e,t]),this.size=++o.size,this;o=this.__data__=new i(s)}return o.set(e,t),this.size=o.size,this}t.exports=o}}),Ti=B({"../../node_modules/lodash/_Stack.js"(e,t){var n=Ur(),r=Wr(),i=Gr(),a=Kr(),o=qr(),s=wi();function c(e){this.size=(this.__data__=new n(e)).size}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=o,c.prototype.set=s,t.exports=c}}),Ei=B({"../../node_modules/lodash/_setCacheAdd.js"(e,t){var n=`__lodash_hash_undefined__`;function r(e){return this.__data__.set(e,n),this}t.exports=r}}),Di=B({"../../node_modules/lodash/_setCacheHas.js"(e,t){function n(e){return this.__data__.has(e)}t.exports=n}}),Oi=B({"../../node_modules/lodash/_SetCache.js"(e,t){var n=Ci(),r=Ei(),i=Di();function a(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}a.prototype.add=a.prototype.push=r,a.prototype.has=i,t.exports=a}}),ki=B({"../../node_modules/lodash/_arraySome.js"(e,t){function n(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}t.exports=n}}),Ai=B({"../../node_modules/lodash/_cacheHas.js"(e,t){function n(e,t){return e.has(t)}t.exports=n}}),ji=B({"../../node_modules/lodash/_equalArrays.js"(e,t){var n=Oi(),r=ki(),i=Ai(),a=1,o=2;function s(e,t,s,c,l,u){var d=s&a,f=e.length,p=t.length;if(f!=p&&!(d&&p>f))return!1;var m=u.get(e),h=u.get(t);if(m&&h)return m==t&&h==e;var g=-1,_=!0,v=s&o?new n:void 0;for(u.set(e,t),u.set(t,e);++g<f;){var y=e[g],b=t[g];if(c)var x=d?c(b,y,g,t,e,u):c(y,b,g,e,t,u);if(x!==void 0){if(x)continue;_=!1;break}if(v){if(!r(t,function(e,t){if(!i(v,t)&&(y===e||l(y,e,s,c,u)))return v.push(t)})){_=!1;break}}else if(!(y===b||l(y,b,s,c,u))){_=!1;break}}return u.delete(e),u.delete(t),_}t.exports=s}}),Mi=B({"../../node_modules/lodash/_Uint8Array.js"(e,t){t.exports=Yr().Uint8Array}}),Ni=B({"../../node_modules/lodash/_mapToArray.js"(e,t){function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}t.exports=n}}),Pi=B({"../../node_modules/lodash/_setToArray.js"(e,t){function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}t.exports=n}}),Fi=B({"../../node_modules/lodash/_equalByTag.js"(e,t){var n=Xr(),r=Mi(),i=Lr(),a=ji(),o=Ni(),s=Pi(),c=1,l=2,u=`[object Boolean]`,d=`[object Date]`,f=`[object Error]`,p=`[object Map]`,m=`[object Number]`,h=`[object RegExp]`,g=`[object Set]`,_=`[object String]`,v=`[object Symbol]`,y=`[object ArrayBuffer]`,b=`[object DataView]`,x=n?n.prototype:void 0,S=x?x.valueOf:void 0;function C(e,t,n,x,C,w,T){switch(n){case b:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case y:return!(e.byteLength!=t.byteLength||!w(new r(e),new r(t)));case u:case d:case m:return i(+e,+t);case f:return e.name==t.name&&e.message==t.message;case h:case _:return e==t+``;case p:var E=o;case g:var D=x&c;if(E||=s,e.size!=t.size&&!D)return!1;var O=T.get(e);if(O)return O==t;x|=l,T.set(e,t);var k=a(E(e),E(t),x,C,w,T);return T.delete(e),k;case v:if(S)return S.call(e)==S.call(t)}return!1}t.exports=C}}),Ii=B({"../../node_modules/lodash/_arrayPush.js"(e,t){function n(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}t.exports=n}}),Li=B({"../../node_modules/lodash/isArray.js"(e,t){t.exports=Array.isArray}}),Ri=B({"../../node_modules/lodash/_baseGetAllKeys.js"(e,t){var n=Ii(),r=Li();function i(e,t,i){var a=t(e);return r(e)?a:n(a,i(e))}t.exports=i}}),zi=B({"../../node_modules/lodash/_arrayFilter.js"(e,t){function n(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}t.exports=n}}),Bi=B({"../../node_modules/lodash/stubArray.js"(e,t){function n(){return[]}t.exports=n}}),Vi=B({"../../node_modules/lodash/_getSymbols.js"(e,t){var n=zi(),r=Bi(),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols;t.exports=a?function(e){return e==null?[]:(e=Object(e),n(a(e),function(t){return i.call(e,t)}))}:r}}),Hi=B({"../../node_modules/lodash/_baseTimes.js"(e,t){function n(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}t.exports=n}}),Ui=B({"../../node_modules/lodash/isObjectLike.js"(e,t){function n(e){return typeof e==`object`&&!!e}t.exports=n}}),Wi=B({"../../node_modules/lodash/_baseIsArguments.js"(e,t){var n=$r(),r=Ui(),i=`[object Arguments]`;function a(e){return r(e)&&n(e)==i}t.exports=a}}),Gi=B({"../../node_modules/lodash/isArguments.js"(e,t){var n=Wi(),r=Ui(),i=Object.prototype,a=i.hasOwnProperty,o=i.propertyIsEnumerable;t.exports=n((function(){return arguments})())?n:function(e){return r(e)&&a.call(e,`callee`)&&!o.call(e,`callee`)}}}),Ki=B({"../../node_modules/lodash/stubFalse.js"(e,t){function n(){return!1}t.exports=n}}),qi=B({"../../node_modules/lodash/isBuffer.js"(e,t){var n=Yr(),r=Ki(),i=typeof e==`object`&&e&&!e.nodeType&&e,a=i&&typeof t==`object`&&t&&!t.nodeType&&t,o=a&&a.exports===i?n.Buffer:void 0;t.exports=(o?o.isBuffer:void 0)||r}}),Ji=B({"../../node_modules/lodash/_isIndex.js"(e,t){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function i(e,t){var i=typeof e;return t??=n,!!t&&(i==`number`||i!=`symbol`&&r.test(e))&&e>-1&&e%1==0&&e<t}t.exports=i}}),Yi=B({"../../node_modules/lodash/isLength.js"(e,t){var n=9007199254740991;function r(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=n}t.exports=r}}),Xi=B({"../../node_modules/lodash/_baseIsTypedArray.js"(e,t){var n=$r(),r=Yi(),i=Ui(),a=`[object Arguments]`,o=`[object Array]`,s=`[object Boolean]`,c=`[object Date]`,l=`[object Error]`,u=`[object Function]`,d=`[object Map]`,f=`[object Number]`,p=`[object Object]`,m=`[object RegExp]`,h=`[object Set]`,g=`[object String]`,_=`[object WeakMap]`,v=`[object ArrayBuffer]`,y=`[object DataView]`,b=`[object Float32Array]`,x=`[object Float64Array]`,S=`[object Int8Array]`,C=`[object Int16Array]`,w=`[object Int32Array]`,T=`[object Uint8Array]`,E=`[object Uint8ClampedArray]`,D=`[object Uint16Array]`,O=`[object Uint32Array]`,k={};k[b]=k[x]=k[S]=k[C]=k[w]=k[T]=k[E]=k[D]=k[O]=!0,k[a]=k[o]=k[v]=k[s]=k[y]=k[c]=k[l]=k[u]=k[d]=k[f]=k[p]=k[m]=k[h]=k[g]=k[_]=!1;function A(e){return i(e)&&r(e.length)&&!!k[n(e)]}t.exports=A}}),Zi=B({"../../node_modules/lodash/_baseUnary.js"(e,t){function n(e){return function(t){return e(t)}}t.exports=n}}),Qi=B({"../../node_modules/lodash/_nodeUtil.js"(e,t){var n=Jr(),r=typeof e==`object`&&e&&!e.nodeType&&e,i=r&&typeof t==`object`&&t&&!t.nodeType&&t,a=i&&i.exports===r&&n.process;t.exports=(function(){try{return i&&i.require&&i.require(`util`).types||a&&a.binding&&a.binding(`util`)}catch{}})()}}),$i=B({"../../node_modules/lodash/isTypedArray.js"(e,t){var n=Xi(),r=Zi(),i=Qi(),a=i&&i.isTypedArray;t.exports=a?r(a):n}}),ea=B({"../../node_modules/lodash/_arrayLikeKeys.js"(e,t){var n=Hi(),r=Gi(),i=Li(),a=qi(),o=Ji(),s=$i(),c=Object.prototype.hasOwnProperty;function l(e,t){var l=i(e),u=!l&&r(e),d=!l&&!u&&a(e),f=!l&&!u&&!d&&s(e),p=l||u||d||f,m=p?n(e.length,String):[],h=m.length;for(var g in e)(t||c.call(e,g))&&!(p&&(g==`length`||d&&(g==`offset`||g==`parent`)||f&&(g==`buffer`||g==`byteLength`||g==`byteOffset`)||o(g,h)))&&m.push(g);return m}t.exports=l}}),ta=B({"../../node_modules/lodash/_isPrototype.js"(e,t){var n=Object.prototype;function r(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||n)}t.exports=r}}),na=B({"../../node_modules/lodash/_overArg.js"(e,t){function n(e,t){return function(n){return e(t(n))}}t.exports=n}}),ra=B({"../../node_modules/lodash/_nativeKeys.js"(e,t){t.exports=na()(Object.keys,Object)}}),ia=B({"../../node_modules/lodash/_baseKeys.js"(e,t){var n=ta(),r=ra(),i=Object.prototype.hasOwnProperty;function a(e){if(!n(e))return r(e);var t=[];for(var a in Object(e))i.call(e,a)&&a!=`constructor`&&t.push(a);return t}t.exports=a}}),aa=B({"../../node_modules/lodash/isArrayLike.js"(e,t){var n=ti(),r=Yi();function i(e){return e!=null&&r(e.length)&&!n(e)}t.exports=i}}),oa=B({"../../node_modules/lodash/keys.js"(e,t){var n=ea(),r=ia(),i=aa();function a(e){return i(e)?n(e):r(e)}t.exports=a}}),sa=B({"../../node_modules/lodash/_getAllKeys.js"(e,t){var n=Ri(),r=Vi(),i=oa();function a(e){return n(e,i,r)}t.exports=a}}),ca=B({"../../node_modules/lodash/_equalObjects.js"(e,t){var n=sa(),r=1,i=Object.prototype.hasOwnProperty;function a(e,t,a,o,s,c){var l=a&r,u=n(e),d=u.length;if(d!=n(t).length&&!l)return!1;for(var f=d;f--;){var p=u[f];if(!(l?p in t:i.call(t,p)))return!1}var m=c.get(e),h=c.get(t);if(m&&h)return m==t&&h==e;var g=!0;c.set(e,t),c.set(t,e);for(var _=l;++f<d;){p=u[f];var v=e[p],y=t[p];if(o)var b=l?o(y,v,p,t,e,c):o(v,y,p,e,t,c);if(!(b===void 0?v===y||s(v,y,a,o,c):b)){g=!1;break}_||=p==`constructor`}if(g&&!_){var x=e.constructor,S=t.constructor;x!=S&&`constructor`in e&&`constructor`in t&&!(typeof x==`function`&&x instanceof x&&typeof S==`function`&&S instanceof S)&&(g=!1)}return c.delete(e),c.delete(t),g}t.exports=a}}),la=B({"../../node_modules/lodash/_DataView.js"(e,t){t.exports=si()(Yr(),`DataView`)}}),ua=B({"../../node_modules/lodash/_Promise.js"(e,t){t.exports=si()(Yr(),`Promise`)}}),da=B({"../../node_modules/lodash/_Set.js"(e,t){t.exports=si()(Yr(),`Set`)}}),fa=B({"../../node_modules/lodash/_WeakMap.js"(e,t){t.exports=si()(Yr(),`WeakMap`)}}),pa=B({"../../node_modules/lodash/_getTag.js"(e,t){var n=la(),r=ci(),i=ua(),a=da(),o=fa(),s=$r(),c=ii(),l=`[object Map]`,u=`[object Object]`,d=`[object Promise]`,f=`[object Set]`,p=`[object WeakMap]`,m=`[object DataView]`,h=c(n),g=c(r),_=c(i),v=c(a),y=c(o),b=s;(n&&b(new n(new ArrayBuffer(1)))!=m||r&&b(new r)!=l||i&&b(i.resolve())!=d||a&&b(new a)!=f||o&&b(new o)!=p)&&(b=function(e){var t=s(e),n=t==u?e.constructor:void 0,r=n?c(n):``;if(r)switch(r){case h:return m;case g:return l;case _:return d;case v:return f;case y:return p}return t}),t.exports=b}}),ma=B({"../../node_modules/lodash/_baseIsEqualDeep.js"(e,t){var n=Ti(),r=ji(),i=Fi(),a=ca(),o=pa(),s=Li(),c=qi(),l=$i(),u=1,d=`[object Arguments]`,f=`[object Array]`,p=`[object Object]`,m=Object.prototype.hasOwnProperty;function h(e,t,h,g,_,v){var y=s(e),b=s(t),x=y?f:o(e),S=b?f:o(t);x=x==d?p:x,S=S==d?p:S;var C=x==p,w=S==p,T=x==S;if(T&&c(e)){if(!c(t))return!1;y=!0,C=!1}if(T&&!C)return v||=new n,y||l(e)?r(e,t,h,g,_,v):i(e,t,x,h,g,_,v);if(!(h&u)){var E=C&&m.call(e,`__wrapped__`),D=w&&m.call(t,`__wrapped__`);if(E||D){var O=E?e.value():e,k=D?t.value():t;return v||=new n,_(O,k,h,g,v)}}return T?(v||=new n,a(e,t,h,g,_,v)):!1}t.exports=h}}),ha=B({"../../node_modules/lodash/_baseIsEqual.js"(e,t){var n=ma(),r=Ui();function i(e,t,a,o,s){return e===t?!0:e==null||t==null||!r(e)&&!r(t)?e!==e&&t!==t:n(e,t,a,o,i,s)}t.exports=i}}),ga=B({"../../node_modules/lodash/isEqualWith.js"(e,t){var n=ha();function r(e,t,r){r=typeof r==`function`?r:void 0;var i=r?r(e,t):void 0;return i===void 0?n(e,t,void 0,r):!!i}t.exports=r}}),_a=B({"../../node_modules/css.escape/css.escape.js"(e,t){(function(n,r){typeof e==`object`?t.exports=r(n):typeof define==`function`&&define.amd?define([],r.bind(n,n)):r(n)})(typeof global<`u`?global:e,function(e){if(e.CSS&&e.CSS.escape)return e.CSS.escape;var t=function(e){if(arguments.length==0)throw TypeError("`CSS.escape` requires an argument.");for(var t=String(e),n=t.length,r=-1,i,a=``,o=t.charCodeAt(0);++r<n;){if(i=t.charCodeAt(r),i==0){a+=`�`;continue}if(i>=1&&i<=31||i==127||r==0&&i>=48&&i<=57||r==1&&i>=48&&i<=57&&o==45){a+=`\\`+i.toString(16)+` `;continue}if(r==0&&n==1&&i==45){a+=`\\`+t.charAt(r);continue}if(i>=128||i==45||i==95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122){a+=t.charAt(r);continue}a+=`\\`+t.charAt(r)}return a};return e.CSS||={},e.CSS.escape=t,t})}}),va=B({"../../node_modules/@testing-library/dom/node_modules/ansi-styles/index.js"(e,t){var n=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,r=(e=0)=>(t,n,r)=>`\x1B[${38+e};2;${t};${n};${r}m`;function i(){let e=new Map,t={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]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(let[n,r]of Object.entries(t)){for(let[n,i]of Object.entries(r))t[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=t[n],e.set(i[0],i[1]);Object.defineProperty(t,n,{value:r,enumerable:!1})}return Object.defineProperty(t,`codes`,{value:e,enumerable:!1}),t.color.close=`\x1B[39m`,t.bgColor.close=`\x1B[49m`,t.color.ansi256=n(),t.color.ansi16m=r(),t.bgColor.ansi256=n(10),t.bgColor.ansi16m=r(10),Object.defineProperties(t,{rgbToAnsi256:{value:(e,t,n)=>e===t&&t===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5),enumerable:!1},hexToRgb:{value:e=>{let t=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(e.toString(16));if(!t)return[0,0,0];let{colorString:n}=t.groups;n.length===3&&(n=n.split(``).map(e=>e+e).join(``));let r=Number.parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:e=>t.rgbToAnsi256(...t.hexToRgb(e)),enumerable:!1}}),t}Object.defineProperty(t,`exports`,{enumerable:!0,get:i})}}),ya=B({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/collections.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.printIteratorEntries=n,e.printIteratorValues=r,e.printListItems=i,e.printObjectProperties=a;var t=(e,t)=>{let n=Object.keys(e).sort(t);return Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(t=>{Object.getOwnPropertyDescriptor(e,t).enumerable&&n.push(t)}),n};function n(e,t,n,r,i,a,o=`: `){let s=``,c=e.next();if(!c.done){s+=t.spacingOuter;let l=n+t.indent;for(;!c.done;){let n=a(c.value[0],t,l,r,i),u=a(c.value[1],t,l,r,i);s+=l+n+o+u,c=e.next(),c.done?t.min||(s+=`,`):s+=`,`+t.spacingInner}s+=t.spacingOuter+n}return s}function r(e,t,n,r,i,a){let o=``,s=e.next();if(!s.done){o+=t.spacingOuter;let c=n+t.indent;for(;!s.done;)o+=c+a(s.value,t,c,r,i),s=e.next(),s.done?t.min||(o+=`,`):o+=`,`+t.spacingInner;o+=t.spacingOuter+n}return o}function i(e,t,n,r,i,a){let o=``;if(e.length){o+=t.spacingOuter;let s=n+t.indent;for(let n=0;n<e.length;n++)o+=s,n in e&&(o+=a(e[n],t,s,r,i)),n<e.length-1?o+=`,`+t.spacingInner:t.min||(o+=`,`);o+=t.spacingOuter+n}return o}function a(e,n,r,i,a,o){let s=``,c=t(e,n.compareKeys);if(c.length){s+=n.spacingOuter;let t=r+n.indent;for(let r=0;r<c.length;r++){let l=c[r],u=o(l,n,t,i,a),d=o(e[l],n,t,i,a);s+=t+u+`: `+d,r<c.length-1?s+=`,`+n.spacingInner:n.min||(s+=`,`)}s+=n.spacingOuter+r}return s}}}),ba=B({"../../node_modules/@testing-library/dom/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=ya(),n=(function(){return typeof globalThis<`u`?globalThis:typeof n<`u`?n:typeof self<`u`?self:typeof window<`u`?window:Function(`return this`)()})(),r=n[`jest-symbol-do-not-touch`]||n.Symbol,i=typeof r==`function`&&r.for?r.for(`jest.asymmetricMatcher`):1267621,a=` `,o=(e,n,r,i,o,s)=>{let c=e.toString();return c===`ArrayContaining`||c===`ArrayNotContaining`?++i>n.maxDepth?`[`+c+`]`:c+a+`[`+(0,t.printListItems)(e.sample,n,r,i,o,s)+`]`:c===`ObjectContaining`||c===`ObjectNotContaining`?++i>n.maxDepth?`[`+c+`]`:c+a+`{`+(0,t.printObjectProperties)(e.sample,n,r,i,o,s)+`}`:c===`StringMatching`||c===`StringNotMatching`||c===`StringContaining`||c===`StringNotContaining`?c+a+s(e.sample,n,r,i,o):e.toAsymmetricMatcher()};e.serialize=o;var s=e=>e&&e.$$typeof===i;e.test=s,e.default={serialize:o,test:s}}}),xa=B({"../../node_modules/@testing-library/dom/node_modules/ansi-regex/index.js"(e,t){t.exports=({onlyFirst:e=!1}={})=>{let t=[`[\\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(t,e?void 0:`g`)}}}),Sa=B({"../../node_modules/@testing-library/dom/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=r(xa()),n=r(va());function r(e){return e&&e.__esModule?e:{default:e}}var i=e=>e.replace((0,t.default)(),e=>{switch(e){case n.default.red.close:case n.default.green.close:case n.default.cyan.close:case n.default.gray.close:case n.default.white.close:case n.default.yellow.close:case n.default.bgRed.close:case n.default.bgGreen.close:case n.default.bgYellow.close:case n.default.inverse.close:case n.default.dim.close:case n.default.bold.close:case n.default.reset.open:case n.default.reset.close:return`</>`;case n.default.red.open:return`<red>`;case n.default.green.open:return`<green>`;case n.default.cyan.open:return`<cyan>`;case n.default.gray.open:return`<gray>`;case n.default.white.open:return`<white>`;case n.default.yellow.open:return`<yellow>`;case n.default.bgRed.open:return`<bgRed>`;case n.default.bgGreen.open:return`<bgGreen>`;case n.default.bgYellow.open:return`<bgYellow>`;case n.default.inverse.open:return`<inverse>`;case n.default.dim.open:return`<dim>`;case n.default.bold.open:return`<bold>`;default:return``}}),a=e=>typeof e==`string`&&!!e.match((0,t.default)());e.test=a;var o=(e,t,n,r,a,o)=>o(i(e),t,n,r,a);e.serialize=o,e.default={serialize:o,test:a}}}),Ca=B({"../../node_modules/@testing-library/dom/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=ya(),n=` `,r=[`DOMStringMap`,`NamedNodeMap`],i=/^(HTML\w*Collection|NodeList)$/,a=e=>r.indexOf(e)!==-1||i.test(e),o=e=>e&&e.constructor&&!!e.constructor.name&&a(e.constructor.name);e.test=o;var s=e=>e.constructor.name===`NamedNodeMap`,c=(e,i,a,o,c,l)=>{let u=e.constructor.name;return++o>i.maxDepth?`[`+u+`]`:(i.min?``:u+n)+(r.indexOf(u)===-1?`[`+(0,t.printListItems)(Array.from(e),i,a,o,c,l)+`]`:`{`+(0,t.printObjectProperties)(s(e)?Array.from(e).reduce((e,t)=>(e[t.name]=t.value,e),{}):{...e},i,a,o,c,l)+`}`)};e.serialize=c,e.default={serialize:c,test:o}}}),wa=B({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/lib/escapeHTML.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=t;function t(e){return e.replace(/</g,`&lt;`).replace(/>/g,`&gt;`)}}}),Ta=B({"../../node_modules/@testing-library/dom/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=n(wa());function n(e){return e&&e.__esModule?e:{default:e}}e.printProps=(e,t,n,r,i,a,o)=>{let s=r+n.indent,c=n.colors;return e.map(e=>{let l=t[e],u=o(l,n,s,i,a);return typeof l!=`string`&&(u.indexOf(`
14
- `)!==-1&&(u=n.spacingOuter+s+u+n.spacingOuter+r),u=`{`+u+`}`),n.spacingInner+r+c.prop.open+e+c.prop.close+`=`+c.value.open+u+c.value.close}).join(``)},e.printChildren=(e,t,n,i,a,o)=>e.map(e=>t.spacingOuter+n+(typeof e==`string`?r(e,t):o(e,t,n,i,a))).join(``);var r=(e,n)=>{let r=n.colors.content;return r.open+(0,t.default)(e)+r.close};e.printText=r,e.printComment=(e,n)=>{let r=n.colors.comment;return r.open+`<!--`+(0,t.default)(e)+`-->`+r.close},e.printElement=(e,t,n,r,i)=>{let a=r.colors.tag;return a.open+`<`+e+(t&&a.close+t+r.spacingOuter+i+a.open)+(n?`>`+a.close+n+r.spacingOuter+i+a.open+`</`+e:(t&&!r.min?``:` `)+`/`)+`>`+a.close},e.printElementAsLeaf=(e,t)=>{let n=t.colors.tag;return n.open+`<`+e+n.close+` …`+n.open+` />`+n.close}}}),Ea=B({"../../node_modules/@testing-library/dom/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=Ta(),n=1,r=3,i=8,a=11,o=/^((HTML|SVG)\w*)?Element$/,s=e=>{try{return typeof e.hasAttribute==`function`&&e.hasAttribute(`is`)}catch{return!1}},c=e=>{let t=e.constructor.name,{nodeType:c,tagName:l}=e,u=typeof l==`string`&&l.includes(`-`)||s(e);return c===n&&(o.test(t)||u)||c===r&&t===`Text`||c===i&&t===`Comment`||c===a&&t===`DocumentFragment`},l=e=>{var t;return(e==null||(t=e.constructor)==null?void 0:t.name)&&c(e)};e.test=l;function u(e){return e.nodeType===r}function d(e){return e.nodeType===i}function f(e){return e.nodeType===a}var p=(e,n,r,i,a,o)=>{if(u(e))return(0,t.printText)(e.data,n);if(d(e))return(0,t.printComment)(e.data,n);let s=f(e)?`DocumentFragment`:e.tagName.toLowerCase();return++i>n.maxDepth?(0,t.printElementAsLeaf)(s,n):(0,t.printElement)(s,(0,t.printProps)(f(e)?[]:Array.from(e.attributes).map(e=>e.name).sort(),f(e)?{}:Array.from(e.attributes).reduce((e,t)=>(e[t.name]=t.value,e),{}),n,r+n.indent,i,a,o),(0,t.printChildren)(Array.prototype.slice.call(e.childNodes||e.children),n,r+n.indent,i,a,o),n,r)};e.serialize=p,e.default={serialize:p,test:l}}}),Da=B({"../../node_modules/@testing-library/dom/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=ya(),n=`@@__IMMUTABLE_ITERABLE__@@`,r=`@@__IMMUTABLE_LIST__@@`,i=`@@__IMMUTABLE_KEYED__@@`,a=`@@__IMMUTABLE_MAP__@@`,o=`@@__IMMUTABLE_ORDERED__@@`,s=`@@__IMMUTABLE_RECORD__@@`,c=`@@__IMMUTABLE_SEQ__@@`,l=`@@__IMMUTABLE_SET__@@`,u=`@@__IMMUTABLE_STACK__@@`,d=e=>`Immutable.`+e,f=e=>`[`+e+`]`,p=` `,m=`…`,h=(e,n,r,i,a,o,s)=>++i>n.maxDepth?f(d(s)):d(s)+p+`{`+(0,t.printIteratorEntries)(e.entries(),n,r,i,a,o)+`}`;function g(e){let t=0;return{next(){if(t<e._keys.length){let n=e._keys[t++];return{done:!1,value:[n,e.get(n)]}}return{done:!0,value:void 0}}}}var _=(e,n,r,i,a,o)=>{let s=d(e._name||`Record`);return++i>n.maxDepth?f(s):s+p+`{`+(0,t.printIteratorEntries)(g(e),n,r,i,a,o)+`}`},v=(e,n,r,a,o,s)=>{let c=d(`Seq`);return++a>n.maxDepth?f(c):e[i]?c+p+`{`+(e._iter||e._object?(0,t.printIteratorEntries)(e.entries(),n,r,a,o,s):m)+`}`:c+p+`[`+(e._iter||e._array||e._collection||e._iterable?(0,t.printIteratorValues)(e.values(),n,r,a,o,s):m)+`]`},y=(e,n,r,i,a,o,s)=>++i>n.maxDepth?f(d(s)):d(s)+p+`[`+(0,t.printIteratorValues)(e.values(),n,r,i,a,o)+`]`,b=(e,t,n,i,s,d)=>e[a]?h(e,t,n,i,s,d,e[o]?`OrderedMap`:`Map`):e[r]?y(e,t,n,i,s,d,`List`):e[l]?y(e,t,n,i,s,d,e[o]?`OrderedSet`:`Set`):e[u]?y(e,t,n,i,s,d,`Stack`):e[c]?v(e,t,n,i,s,d):_(e,t,n,i,s,d);e.serialize=b;var x=e=>e&&(e[n]===!0||e[s]===!0);e.test=x,e.default={serialize:b,test:x}}}),Oa=B({"../../node_modules/@testing-library/dom/node_modules/react-is/cjs/react-is.production.min.js"(e){var t=60103,n=60106,r=60107,i=60108,a=60114,o=60109,s=60110,c=60112,l=60113,u=60120,d=60115,f=60116,p=60121,m=60122,h=60117,g=60129,_=60131;typeof Symbol==`function`&&Symbol.for&&(v=Symbol.for,t=v(`react.element`),n=v(`react.portal`),r=v(`react.fragment`),i=v(`react.strict_mode`),a=v(`react.profiler`),o=v(`react.provider`),s=v(`react.context`),c=v(`react.forward_ref`),l=v(`react.suspense`),u=v(`react.suspense_list`),d=v(`react.memo`),f=v(`react.lazy`),p=v(`react.block`),m=v(`react.server.block`),h=v(`react.fundamental`),g=v(`react.debug_trace_mode`),_=v(`react.legacy_hidden`));var v;function y(e){if(typeof e==`object`&&e){var p=e.$$typeof;switch(p){case t:switch(e=e.type,e){case r:case a:case i:case l:case u:return e;default:switch(e&&=e.$$typeof,e){case s:case c:case f:case d:case o:return e;default:return p}}case n:return p}}}var b=o,x=t,S=c,C=r,w=f,T=d,E=n,D=a,O=i,k=l;e.ContextConsumer=s,e.ContextProvider=b,e.Element=x,e.ForwardRef=S,e.Fragment=C,e.Lazy=w,e.Memo=T,e.Portal=E,e.Profiler=D,e.StrictMode=O,e.Suspense=k,e.isAsyncMode=function(){return!1},e.isConcurrentMode=function(){return!1},e.isContextConsumer=function(e){return y(e)===s},e.isContextProvider=function(e){return y(e)===o},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===t},e.isForwardRef=function(e){return y(e)===c},e.isFragment=function(e){return y(e)===r},e.isLazy=function(e){return y(e)===f},e.isMemo=function(e){return y(e)===d},e.isPortal=function(e){return y(e)===n},e.isProfiler=function(e){return y(e)===a},e.isStrictMode=function(e){return y(e)===i},e.isSuspense=function(e){return y(e)===l},e.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===r||e===a||e===g||e===i||e===l||e===u||e===_||typeof e==`object`&&!!e&&(e.$$typeof===f||e.$$typeof===d||e.$$typeof===o||e.$$typeof===s||e.$$typeof===c||e.$$typeof===h||e.$$typeof===p||e[0]===m)},e.typeOf=y}}),ka=B({"../../node_modules/@testing-library/dom/node_modules/react-is/index.js"(e,t){t.exports=Oa()}}),Aa=B({"../../node_modules/@testing-library/dom/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(ka()),n=Ta();function r(e){if(typeof WeakMap!=`function`)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function i(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!=`object`&&typeof e!=`function`)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!==`default`&&Object.prototype.hasOwnProperty.call(e,o)){var s=a?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(i,o,s):i[o]=e[o]}return i.default=e,n&&n.set(e,i),i}var a=(e,t=[])=>(Array.isArray(e)?e.forEach(e=>{a(e,t)}):e!=null&&e!==!1&&t.push(e),t),o=e=>{let n=e.type;if(typeof n==`string`)return n;if(typeof n==`function`)return n.displayName||n.name||`Unknown`;if(t.isFragment(e))return`React.Fragment`;if(t.isSuspense(e))return`React.Suspense`;if(typeof n==`object`&&n){if(t.isContextProvider(e))return`Context.Provider`;if(t.isContextConsumer(e))return`Context.Consumer`;if(t.isForwardRef(e)){if(n.displayName)return n.displayName;let e=n.render.displayName||n.render.name||``;return e===``?`ForwardRef`:`ForwardRef(`+e+`)`}if(t.isMemo(e)){let e=n.displayName||n.type.displayName||n.type.name||``;return e===``?`Memo`:`Memo(`+e+`)`}}return`UNDEFINED`},s=e=>{let{props:t}=e;return Object.keys(t).filter(e=>e!==`children`&&t[e]!==void 0).sort()},c=(e,t,r,i,c,l)=>++i>t.maxDepth?(0,n.printElementAsLeaf)(o(e),t):(0,n.printElement)(o(e),(0,n.printProps)(s(e),e.props,t,r+t.indent,i,c,l),(0,n.printChildren)(a(e.props.children),t,r+t.indent,i,c,l),t,r);e.serialize=c;var l=e=>e!=null&&t.isElement(e);e.test=l,e.default={serialize:c,test:l}}}),ja=B({"../../node_modules/@testing-library/dom/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=Ta(),n=(function(){return typeof globalThis<`u`?globalThis:typeof n<`u`?n:typeof self<`u`?self:typeof window<`u`?window:Function(`return this`)()})(),r=n[`jest-symbol-do-not-touch`]||n.Symbol,i=typeof r==`function`&&r.for?r.for(`react.test.json`):245830487,a=e=>{let{props:t}=e;return t?Object.keys(t).filter(e=>t[e]!==void 0).sort():[]},o=(e,n,r,i,o,s)=>++i>n.maxDepth?(0,t.printElementAsLeaf)(e.type,n):(0,t.printElement)(e.type,e.props?(0,t.printProps)(a(e),e.props,n,r+n.indent,i,o,s):``,e.children?(0,t.printChildren)(e.children,n,r+n.indent,i,o,s):``,n,r);e.serialize=o;var s=e=>e&&e.$$typeof===i;e.test=s,e.default={serialize:o,test:s}}}),Ma=B({"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/index.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.default=e.DEFAULT_OPTIONS=void 0,e.format=se,e.plugins=void 0;var t=u(va()),n=ya(),r=u(ba()),i=u(Sa()),a=u(Ca()),o=u(Ea()),s=u(Da()),c=u(Aa()),l=u(ja());function u(e){return e&&e.__esModule?e:{default:e}}var d=Object.prototype.toString,f=Date.prototype.toISOString,p=Error.prototype.toString,m=RegExp.prototype.toString,h=e=>typeof e.constructor==`function`&&e.constructor.name||`Object`,g=e=>typeof window<`u`&&e===window,_=/^Symbol\((.*)\)(.*)$/,v=/\n/gi,y=class extends Error{constructor(e,t){super(e),this.stack=t,this.name=this.constructor.name}};function b(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 x(e){return Object.is(e,-0)?`-0`:String(e)}function S(e){return`${e}n`}function C(e,t){return t?`[Function `+(e.name||`anonymous`)+`]`:`[Function]`}function w(e){return String(e).replace(_,`Symbol($1)`)}function T(e){return`[`+p.call(e)+`]`}function E(e,t,n,r){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 x(e);if(i===`bigint`)return S(e);if(i===`string`)return r?`"`+e.replace(/"|\\/g,`\\$&`)+`"`:`"`+e+`"`;if(i===`function`)return C(e,t);if(i===`symbol`)return w(e);let a=d.call(e);return a===`[object WeakMap]`?`WeakMap {}`:a===`[object WeakSet]`?`WeakSet {}`:a===`[object Function]`||a===`[object GeneratorFunction]`?C(e,t):a===`[object Symbol]`?w(e):a===`[object Date]`?isNaN(+e)?`Date { NaN }`:f.call(e):a===`[object Error]`?T(e):a===`[object RegExp]`?n?m.call(e).replace(/[\\^$*+?.()|[\]{}]/g,`\\$&`):m.call(e):e instanceof Error?T(e):null}function D(e,t,r,i,a,o){if(a.indexOf(e)!==-1)return`[Circular]`;a=a.slice(),a.push(e);let s=++i>t.maxDepth,c=t.min;if(t.callToJSON&&!s&&e.toJSON&&typeof e.toJSON==`function`&&!o)return j(e.toJSON(),t,r,i,a,!0);let l=d.call(e);return l===`[object Arguments]`?s?`[Arguments]`:(c?``:`Arguments `)+`[`+(0,n.printListItems)(e,t,r,i,a,j)+`]`:b(l)?s?`[`+e.constructor.name+`]`:(c||!t.printBasicPrototype&&e.constructor.name===`Array`?``:e.constructor.name+` `)+`[`+(0,n.printListItems)(e,t,r,i,a,j)+`]`:l===`[object Map]`?s?`[Map]`:`Map {`+(0,n.printIteratorEntries)(e.entries(),t,r,i,a,j,` => `)+`}`:l===`[object Set]`?s?`[Set]`:`Set {`+(0,n.printIteratorValues)(e.values(),t,r,i,a,j)+`}`:s||g(e)?`[`+h(e)+`]`:(c||!t.printBasicPrototype&&h(e)===`Object`?``:h(e)+` `)+`{`+(0,n.printObjectProperties)(e,t,r,i,a,j)+`}`}function O(e){return e.serialize!=null}function k(e,t,n,r,i,a){let o;try{o=O(e)?e.serialize(t,n,r,i,a,j):e.print(t,e=>j(e,n,r,i,a),e=>{let t=r+n.indent;return t+e.replace(v,`
15
- `+t)},{edgeSpacing:n.spacingOuter,min:n.min,spacing:n.spacingInner},n.colors)}catch(e){throw new y(e.message,e.stack)}if(typeof o!=`string`)throw Error(`pretty-format: Plugin must return type "string" but instead returned "${typeof o}".`);return o}function A(e,t){for(let n=0;n<e.length;n++)try{if(e[n].test(t))return e[n]}catch(e){throw new y(e.message,e.stack)}return null}function j(e,t,n,r,i,a){let o=A(t.plugins,e);if(o!==null)return k(o,e,t,n,r,i);let s=E(e,t.printFunctionName,t.escapeRegex,t.escapeString);return s===null?D(e,t,n,r,i,a):s}var M={comment:`gray`,content:`reset`,prop:`yellow`,tag:`cyan`,value:`green`},ee=Object.keys(M),N={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:1/0,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:M};e.DEFAULT_OPTIONS=N;function te(e){if(Object.keys(e).forEach(e=>{if(!N.hasOwnProperty(e))throw Error(`pretty-format: Unknown option "${e}".`)}),e.min&&e.indent!==void 0&&e.indent!==0)throw Error(`pretty-format: Options "min" and "indent" cannot be used together.`);if(e.theme!==void 0){if(e.theme===null)throw Error(`pretty-format: Option "theme" must not be null.`);if(typeof e.theme!=`object`)throw Error(`pretty-format: Option "theme" must be of type "object" but instead received "${typeof e.theme}".`)}}var ne=e=>ee.reduce((n,r)=>{let i=e.theme&&e.theme[r]!==void 0?e.theme[r]:M[r],a=i&&t.default[i];if(a&&typeof a.close==`string`&&typeof a.open==`string`)n[r]=a;else throw Error(`pretty-format: Option "theme" has a key "${r}" whose value "${i}" is undefined in ansi-styles.`);return n},Object.create(null)),re=()=>ee.reduce((e,t)=>(e[t]={close:``,open:``},e),Object.create(null)),P=e=>e&&e.printFunctionName!==void 0?e.printFunctionName:N.printFunctionName,ie=e=>e&&e.escapeRegex!==void 0?e.escapeRegex:N.escapeRegex,ae=e=>e&&e.escapeString!==void 0?e.escapeString:N.escapeString,oe=e=>({callToJSON:e&&e.callToJSON!==void 0?e.callToJSON:N.callToJSON,colors:e&&e.highlight?ne(e):re(),compareKeys:e&&typeof e.compareKeys==`function`?e.compareKeys:N.compareKeys,escapeRegex:ie(e),escapeString:ae(e),indent:e&&e.min?``:F(e&&e.indent!==void 0?e.indent:N.indent),maxDepth:e&&e.maxDepth!==void 0?e.maxDepth:N.maxDepth,min:e&&e.min!==void 0?e.min:N.min,plugins:e&&e.plugins!==void 0?e.plugins:N.plugins,printBasicPrototype:e?.printBasicPrototype??!0,printFunctionName:P(e),spacingInner:e&&e.min?` `:`
16
- `,spacingOuter:e&&e.min?``:`
17
- `});function F(e){return Array(e+1).join(` `)}function se(e,t){if(t&&(te(t),t.plugins)){let n=A(t.plugins,e);if(n!==null)return k(n,e,oe(t),``,0,[])}let n=E(e,P(t),ie(t),ae(t));return n===null?D(e,oe(t),``,0,[]):n}e.plugins={AsymmetricMatcher:r.default,ConvertAnsi:i.default,DOMCollection:a.default,DOMElement:o.default,Immutable:s.default,ReactElement:c.default,ReactTestComponent:l.default},e.default=se}}),Na=B({"../../node_modules/lz-string/libs/lz-string.js"(e,t){var n=(function(){var e=String.fromCharCode,t=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=`,n=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$`,r={};function i(e,t){if(!r[e]){r[e]={};for(var n=0;n<e.length;n++)r[e][e.charAt(n)]=n}return r[e][t]}var a={compressToBase64:function(e){if(e==null)return``;var n=a._compress(e,6,function(e){return t.charAt(e)});switch(n.length%4){default:case 0:return n;case 1:return n+`===`;case 2:return n+`==`;case 3:return n+`=`}},decompressFromBase64:function(e){return e==null?``:e==``?null:a._decompress(e.length,32,function(n){return i(t,e.charAt(n))})},compressToUTF16:function(t){return t==null?``:a._compress(t,15,function(t){return e(t+32)})+` `},decompressFromUTF16:function(e){return e==null?``:e==``?null:a._decompress(e.length,16384,function(t){return e.charCodeAt(t)-32})},compressToUint8Array:function(e){for(var t=a.compress(e),n=new Uint8Array(t.length*2),r=0,i=t.length;r<i;r++){var o=t.charCodeAt(r);n[r*2]=o>>>8,n[r*2+1]=o%256}return n},decompressFromUint8Array:function(t){if(t==null)return a.decompress(t);for(var n=Array(t.length/2),r=0,i=n.length;r<i;r++)n[r]=t[r*2]*256+t[r*2+1];var o=[];return n.forEach(function(t){o.push(e(t))}),a.decompress(o.join(``))},compressToEncodedURIComponent:function(e){return e==null?``:a._compress(e,6,function(e){return n.charAt(e)})},decompressFromEncodedURIComponent:function(e){return e==null?``:e==``?null:(e=e.replace(/ /g,`+`),a._decompress(e.length,32,function(t){return i(n,e.charAt(t))}))},compress:function(t){return a._compress(t,16,function(t){return e(t)})},_compress:function(e,t,n){if(e==null)return``;var r,i,a={},o={},s=``,c=``,l=``,u=2,d=3,f=2,p=[],m=0,h=0,g;for(g=0;g<e.length;g+=1)if(s=e.charAt(g),Object.prototype.hasOwnProperty.call(a,s)||(a[s]=d++,o[s]=!0),c=l+s,Object.prototype.hasOwnProperty.call(a,c))l=c;else{if(Object.prototype.hasOwnProperty.call(o,l)){if(l.charCodeAt(0)<256){for(r=0;r<f;r++)m<<=1,h==t-1?(h=0,p.push(n(m)),m=0):h++;for(i=l.charCodeAt(0),r=0;r<8;r++)m=m<<1|i&1,h==t-1?(h=0,p.push(n(m)),m=0):h++,i>>=1}else{for(i=1,r=0;r<f;r++)m=m<<1|i,h==t-1?(h=0,p.push(n(m)),m=0):h++,i=0;for(i=l.charCodeAt(0),r=0;r<16;r++)m=m<<1|i&1,h==t-1?(h=0,p.push(n(m)),m=0):h++,i>>=1}u--,u==0&&(u=2**f,f++),delete o[l]}else for(i=a[l],r=0;r<f;r++)m=m<<1|i&1,h==t-1?(h=0,p.push(n(m)),m=0):h++,i>>=1;u--,u==0&&(u=2**f,f++),a[c]=d++,l=String(s)}if(l!==``){if(Object.prototype.hasOwnProperty.call(o,l)){if(l.charCodeAt(0)<256){for(r=0;r<f;r++)m<<=1,h==t-1?(h=0,p.push(n(m)),m=0):h++;for(i=l.charCodeAt(0),r=0;r<8;r++)m=m<<1|i&1,h==t-1?(h=0,p.push(n(m)),m=0):h++,i>>=1}else{for(i=1,r=0;r<f;r++)m=m<<1|i,h==t-1?(h=0,p.push(n(m)),m=0):h++,i=0;for(i=l.charCodeAt(0),r=0;r<16;r++)m=m<<1|i&1,h==t-1?(h=0,p.push(n(m)),m=0):h++,i>>=1}u--,u==0&&(u=2**f,f++),delete o[l]}else for(i=a[l],r=0;r<f;r++)m=m<<1|i&1,h==t-1?(h=0,p.push(n(m)),m=0):h++,i>>=1;u--,u==0&&(u=2**f,f++)}for(i=2,r=0;r<f;r++)m=m<<1|i&1,h==t-1?(h=0,p.push(n(m)),m=0):h++,i>>=1;for(;;)if(m<<=1,h==t-1){p.push(n(m));break}else h++;return p.join(``)},decompress:function(e){return e==null?``:e==``?null:a._decompress(e.length,32768,function(t){return e.charCodeAt(t)})},_decompress:function(t,n,r){var i=[],a=4,o=4,s=3,c=``,l=[],u,d,f,p,m,h,g,_={val:r(0),position:n,index:1};for(u=0;u<3;u+=1)i[u]=u;for(f=0,m=2**2,h=1;h!=m;)p=_.val&_.position,_.position>>=1,_.position==0&&(_.position=n,_.val=r(_.index++)),f|=(p>0?1:0)*h,h<<=1;switch(f){case 0:for(f=0,m=2**8,h=1;h!=m;)p=_.val&_.position,_.position>>=1,_.position==0&&(_.position=n,_.val=r(_.index++)),f|=(p>0?1:0)*h,h<<=1;g=e(f);break;case 1:for(f=0,m=2**16,h=1;h!=m;)p=_.val&_.position,_.position>>=1,_.position==0&&(_.position=n,_.val=r(_.index++)),f|=(p>0?1:0)*h,h<<=1;g=e(f);break;case 2:return``}for(i[3]=g,d=g,l.push(g);;){if(_.index>t)return``;for(f=0,m=2**s,h=1;h!=m;)p=_.val&_.position,_.position>>=1,_.position==0&&(_.position=n,_.val=r(_.index++)),f|=(p>0?1:0)*h,h<<=1;switch(g=f){case 0:for(f=0,m=2**8,h=1;h!=m;)p=_.val&_.position,_.position>>=1,_.position==0&&(_.position=n,_.val=r(_.index++)),f|=(p>0?1:0)*h,h<<=1;i[o++]=e(f),g=o-1,a--;break;case 1:for(f=0,m=2**16,h=1;h!=m;)p=_.val&_.position,_.position>>=1,_.position==0&&(_.position=n,_.val=r(_.index++)),f|=(p>0?1:0)*h,h<<=1;i[o++]=e(f),g=o-1,a--;break;case 2:return l.join(``)}if(a==0&&(a=2**s,s++),i[g])c=i[g];else if(g===o)c=d+d.charAt(0);else return null;l.push(c),i[o++]=d+c.charAt(0),a--,d=c,a==0&&(a=2**s,s++)}}};return a})();typeof define==`function`&&define.amd?define(function(){return n}):typeof t<`u`&&t!=null?t.exports=n:typeof angular<`u`&&angular!=null&&angular.module(`LZString`,[]).factory(`LZString`,function(){return n})}}),Pa=B({"../../node_modules/memoizerific/memoizerific.js"(e,t){(function(n){if(typeof e==`object`&&typeof t<`u`)t.exports=n();else if(typeof define==`function`&&define.amd)define([],n);else{var r=typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:this;r.memoizerific=n()}})(function(){return(function e(t,n,r){function i(o,s){if(!n[o]){if(!t[o]){var c=typeof Me==`function`&&Me;if(!s&&c)return c(o,!0);if(a)return a(o,!0);var l=Error(`Cannot find module '`+o+`'`);throw l.code=`MODULE_NOT_FOUND`,l}var u=n[o]={exports:{}};t[o][0].call(u.exports,function(e){var n=t[o][1][e];return i(n||e)},u,u.exports,e,t,n,r)}return n[o].exports}for(var a=typeof Me==`function`&&Me,o=0;o<r.length;o++)i(r[o]);return i})({1:[function(e,t,n){t.exports=function(t){return typeof Map!=`function`||t?new(e(`./similar`)):new Map}},{"./similar":2}],2:[function(e,t,n){function r(){return this.list=[],this.lastItem=void 0,this.size=0,this}r.prototype.get=function(e){var t;if(this.lastItem&&this.isEqual(this.lastItem.key,e))return this.lastItem.val;if(t=this.indexOf(e),t>=0)return this.lastItem=this.list[t],this.list[t].val},r.prototype.set=function(e,t){var n;return this.lastItem&&this.isEqual(this.lastItem.key,e)?(this.lastItem.val=t,this):(n=this.indexOf(e),n>=0?(this.lastItem=this.list[n],this.list[n].val=t,this):(this.lastItem={key:e,val:t},this.list.push(this.lastItem),this.size++,this))},r.prototype.delete=function(e){var t;if(this.lastItem&&this.isEqual(this.lastItem.key,e)&&(this.lastItem=void 0),t=this.indexOf(e),t>=0)return this.size--,this.list.splice(t,1)[0]},r.prototype.has=function(e){var t;return this.lastItem&&this.isEqual(this.lastItem.key,e)?!0:(t=this.indexOf(e),t>=0?(this.lastItem=this.list[t],!0):!1)},r.prototype.forEach=function(e,t){var n;for(n=0;n<this.size;n++)e.call(t||this,this.list[n].val,this.list[n].key,this)},r.prototype.indexOf=function(e){var t;for(t=0;t<this.size;t++)if(this.isEqual(this.list[t].key,e))return t;return-1},r.prototype.isEqual=function(e,t){return e===t||e!==e&&t!==t},t.exports=r},{}],3:[function(e,t,n){var r=e(`map-or-similar`);t.exports=function(e){var t=new r(!1),n=[];return function(o){var s=function(){var c=t,l,u,d=arguments.length-1,f=Array(d+1),p=!0,m;if((s.numArgs||s.numArgs===0)&&s.numArgs!==d+1)throw Error(`Memoizerific functions should always be called with the same number of arguments`);for(m=0;m<d;m++){if(f[m]={cacheItem:c,arg:arguments[m]},c.has(arguments[m])){c=c.get(arguments[m]);continue}p=!1,l=new r(!1),c.set(arguments[m],l),c=l}return p&&(c.has(arguments[d])?u=c.get(arguments[d]):p=!1),p||(u=o.apply(null,arguments),c.set(arguments[d],u)),e>0&&(f[d]={cacheItem:c,arg:arguments[d]},p?i(n,f):n.push(f),n.length>e&&a(n.shift())),s.wasMemoized=p,s.numArgs=d+1,u};return s.limit=e,s.wasMemoized=!1,s.cache=t,s.lru=n,s}};function i(e,t){var n=e.length,r=t.length,i,a,s;for(a=0;a<n;a++){for(i=!0,s=0;s<r;s++)if(!o(e[a][s].arg,t[s].arg)){i=!1;break}if(i)break}e.push(e.splice(a,1)[0])}function a(e){var t=e.length,n=e[t-1],r,i;for(n.cacheItem.delete(n.arg),i=t-2;i>=0&&(n=e[i],r=n.cacheItem.get(n.arg),!r||!r.size);i--)n.cacheItem.delete(n.arg)}function o(e,t){return e===t||e!==e&&t!==t}},{"map-or-similar":1}]},{},[3])(3)})}}),Fa=B({"../../node_modules/picoquery/lib/string-util.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.encodeString=r;var t=Array.from({length:256},(e,t)=>`%`+((t<16?`0`:``)+t.toString(16)).toUpperCase()),n=new Int8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0]);function r(e){let r=e.length;if(r===0)return``;let i=``,a=0,o=0;outer:for(;o<r;o++){let s=e.charCodeAt(o);for(;s<128;){if(n[s]!==1&&(a<o&&(i+=e.slice(a,o)),a=o+1,i+=t[s]),++o===r)break outer;s=e.charCodeAt(o)}if(a<o&&(i+=e.slice(a,o)),s<2048){a=o+1,i+=t[192|s>>6]+t[128|s&63];continue}if(s<55296||s>=57344){a=o+1,i+=t[224|s>>12]+t[128|s>>6&63]+t[128|s&63];continue}if(++o,o>=r)throw Error(`URI malformed`);let c=e.charCodeAt(o)&1023;a=o+1,s=65536+((s&1023)<<10|c),i+=t[240|s>>18]+t[128|s>>12&63]+t[128|s>>6&63]+t[128|s&63]}return a===0?e:a<r?i+e.slice(a):i}}}),Ia=B({"../../node_modules/picoquery/lib/shared.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.defaultOptions=e.defaultShouldSerializeObject=e.defaultValueSerializer=void 0;var t=Fa();e.defaultValueSerializer=e=>{switch(typeof e){case`string`:return(0,t.encodeString)(e);case`bigint`:case`boolean`:return``+e;case`number`:if(Number.isFinite(e))return e<1e21?``+e:(0,t.encodeString)(``+e);break}return e instanceof Date?(0,t.encodeString)(e.toISOString()):``},e.defaultShouldSerializeObject=e=>e instanceof Date;var n=e=>e;e.defaultOptions={nesting:!0,nestingSyntax:`dot`,arrayRepeat:!1,arrayRepeatSyntax:`repeat`,delimiter:38,valueDeserializer:n,valueSerializer:e.defaultValueSerializer,keyDeserializer:n,shouldSerializeObject:e.defaultShouldSerializeObject}}}),La=B({"../../node_modules/picoquery/lib/object-util.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.getDeepObject=i,e.stringifyObject=u;var t=Ia(),n=Fa();function r(e){return e===`__proto__`||e===`constructor`||e===`prototype`}function i(e,t,n,i,a){if(r(t))return e;let o=e[t];return typeof o==`object`&&o?o:!i&&(a||typeof n==`number`||typeof n==`string`&&n*0==0&&n.indexOf(`.`)===-1)?e[t]=[]:e[t]={}}var a=20,o=`[]`,s=`[`,c=`]`,l=`.`;function u(e,r,i=0,d,f){let{nestingSyntax:p=t.defaultOptions.nestingSyntax,arrayRepeat:m=t.defaultOptions.arrayRepeat,arrayRepeatSyntax:h=t.defaultOptions.arrayRepeatSyntax,nesting:g=t.defaultOptions.nesting,delimiter:_=t.defaultOptions.delimiter,valueSerializer:v=t.defaultOptions.valueSerializer,shouldSerializeObject:y=t.defaultOptions.shouldSerializeObject}=r,b=typeof _==`number`?String.fromCharCode(_):_,x=f===!0&&m,S=p===`dot`||p===`js`&&!f;if(i>a)return``;let C=``,w=!0,T=!1;for(let t in e){let a=e[t];if(a===void 0)continue;let f;d?(f=d,x?h===`bracket`&&(f+=o):S?(f+=l,f+=t):(f+=s,f+=t,f+=c)):f=t,w||(C+=b),typeof a==`object`&&a&&!y(a)?(T=a.pop!==void 0,(g||m&&T)&&(C+=u(a,r,i+1,f,T))):(C+=(0,n.encodeString)(f),C+=`=`,C+=v(a,t)),w&&=!1}return C}}}),Ra=B({"../../node_modules/picoquery/lib/decode-uri-component.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.decodeURIComponent=i;var t=12,n=0,r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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(e){let i=e.indexOf(`%`);if(i===-1)return e;let a=e.length,s=``,c=0,l=0,u=i,d=t;for(;i>-1&&i<a;){let f=o(e[i+1],4)|o(e[i+2],0),p=r[f];if(d=r[256+d+p],l=l<<6|f&r[364+p],d===t)s+=e.slice(c,u),s+=l<=65535?String.fromCharCode(l):String.fromCharCode(55232+(l>>10),56320+(l&1023)),l=0,c=i+3,i=u=e.indexOf(`%`,c);else{if(d===n)return null;if(i+=3,i<a&&e.charCodeAt(i)===37)continue;return null}}return s+e.slice(c)}var a={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 o(e,t){let n=a[e];return n===void 0?255:n<<t}}}),za=B({"../../node_modules/picoquery/lib/parse.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.numberValueDeserializer=e.numberKeyDeserializer=void 0,e.parse=s;var t=La(),n=Ia(),r=Ra();e.numberKeyDeserializer=e=>{let t=Number(e);return Number.isNaN(t)?e:t},e.numberValueDeserializer=e=>{let t=Number(e);return Number.isNaN(t)?e:t};var i=/\+/g,a=function(){};a.prototype=Object.create(null);function o(e,t,n,a,o){let s=e.substring(t,n);return a&&(s=s.replace(i,` `)),o&&(s=(0,r.decodeURIComponent)(s)||s),s}function s(e,s){let{valueDeserializer:c=n.defaultOptions.valueDeserializer,keyDeserializer:l=n.defaultOptions.keyDeserializer,arrayRepeatSyntax:u=n.defaultOptions.arrayRepeatSyntax,nesting:d=n.defaultOptions.nesting,arrayRepeat:f=n.defaultOptions.arrayRepeat,nestingSyntax:p=n.defaultOptions.nestingSyntax,delimiter:m=n.defaultOptions.delimiter}=s??{},h=typeof m==`string`?m.charCodeAt(0):m,g=p===`js`,_=new a;if(typeof e!=`string`)return _;let v=e.length,y=``,b=-1,x=-1,S=-1,C=_,w,T=``,E=``,D=!1,O=!1,k=!1,A=!1,j=!1,M=!1,ee=0,N=-1,te=-1,ne=-1;for(let n=0;n<v+1;n++){if(ee=n===v?h:e.charCodeAt(n),ee===h){if(M=x>b,M||(x=n),S!==x-1&&(E=o(e,S+1,N>-1?N:x,k,D),T=l(E),w!==void 0&&(C=(0,t.getDeepObject)(C,w,T,g&&j,void 0))),M||T!==``){M&&(y=e.slice(x+1,n),A&&(y=y.replace(i,` `)),O&&(y=(0,r.decodeURIComponent)(y)||y));let t=c(y,T);if(f){let e=C[T];e===void 0?N>-1?C[T]=[t]:C[T]=t:e.pop?e.push(t):C[T]=[e,t]}else C[T]=t}y=``,b=n,x=n,D=!1,O=!1,k=!1,A=!1,j=!1,N=-1,S=n,C=_,w=void 0,T=``}else ee===93?(f&&u===`bracket`&&ne===91&&(N=te),d&&(p===`index`||g)&&x<=b&&(S!==te&&(E=o(e,S+1,n,k,D),T=l(E),w!==void 0&&(C=(0,t.getDeepObject)(C,w,T,void 0,void 0)),w=T,k=!1,D=!1),S=n,j=!1)):ee===46?d&&(p===`dot`||g)&&x<=b&&(S!==te&&(E=o(e,S+1,n,k,D),T=l(E),w!==void 0&&(C=(0,t.getDeepObject)(C,w,T,g)),w=T,k=!1,D=!1),j=!0,S=n):ee===91?d&&(p===`index`||g)&&x<=b&&(S!==te&&(E=o(e,S+1,n,k,D),T=l(E),g&&w!==void 0&&(C=(0,t.getDeepObject)(C,w,T,g)),w=T,k=!1,D=!1,j=!1),S=n):ee===61?x<=b?x=n:O=!0:ee===43?x>b?A=!0:k=!0:ee===37&&(x>b?O=!0:D=!0);te=n,ne=ee}return _}}}),Ba=B({"../../node_modules/picoquery/lib/stringify.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.stringify=n;var t=La();function n(e,n){if(typeof e!=`object`||!e)return``;let r=n??{};return(0,t.stringifyObject)(e,r)}}}),Va=B({"../../node_modules/picoquery/lib/main.js"(e){var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),e.stringify=e.parse=void 0;var r=za();Object.defineProperty(e,`parse`,{enumerable:!0,get:function(){return r.parse}});var i=Ba();Object.defineProperty(e,`stringify`,{enumerable:!0,get:function(){return i.stringify}}),n(Ia(),e)}}),Ha=B({"../../node_modules/entities/lib/maps/entities.json"(e,t){t.exports={Aacute:`Á`,aacute:`á`,Abreve:`Ă`,abreve:`ă`,ac:`∾`,acd:`∿`,acE:`∾̳`,Acirc:`Â`,acirc:`â`,acute:`´`,Acy:`А`,acy:`а`,AElig:`Æ`,aelig:`æ`,af:`⁡`,Afr:`𝔄`,afr:`𝔞`,Agrave:`À`,agrave:`à`,alefsym:`ℵ`,aleph:`ℵ`,Alpha:`Α`,alpha:`α`,Amacr:`Ā`,amacr:`ā`,amalg:`⨿`,amp:`&`,AMP:`&`,andand:`⩕`,And:`⩓`,and:`∧`,andd:`⩜`,andslope:`⩘`,andv:`⩚`,ang:`∠`,ange:`⦤`,angle:`∠`,angmsdaa:`⦨`,angmsdab:`⦩`,angmsdac:`⦪`,angmsdad:`⦫`,angmsdae:`⦬`,angmsdaf:`⦭`,angmsdag:`⦮`,angmsdah:`⦯`,angmsd:`∡`,angrt:`∟`,angrtvb:`⊾`,angrtvbd:`⦝`,angsph:`∢`,angst:`Å`,angzarr:`⍼`,Aogon:`Ą`,aogon:`ą`,Aopf:`𝔸`,aopf:`𝕒`,apacir:`⩯`,ap:`≈`,apE:`⩰`,ape:`≊`,apid:`≋`,apos:`'`,ApplyFunction:`⁡`,approx:`≈`,approxeq:`≊`,Aring:`Å`,aring:`å`,Ascr:`𝒜`,ascr:`𝒶`,Assign:`≔`,ast:`*`,asymp:`≈`,asympeq:`≍`,Atilde:`Ã`,atilde:`ã`,Auml:`Ä`,auml:`ä`,awconint:`∳`,awint:`⨑`,backcong:`≌`,backepsilon:`϶`,backprime:`‵`,backsim:`∽`,backsimeq:`⋍`,Backslash:`∖`,Barv:`⫧`,barvee:`⊽`,barwed:`⌅`,Barwed:`⌆`,barwedge:`⌅`,bbrk:`⎵`,bbrktbrk:`⎶`,bcong:`≌`,Bcy:`Б`,bcy:`б`,bdquo:`„`,becaus:`∵`,because:`∵`,Because:`∵`,bemptyv:`⦰`,bepsi:`϶`,bernou:`ℬ`,Bernoullis:`ℬ`,Beta:`Β`,beta:`β`,beth:`ℶ`,between:`≬`,Bfr:`𝔅`,bfr:`𝔟`,bigcap:`⋂`,bigcirc:`◯`,bigcup:`⋃`,bigodot:`⨀`,bigoplus:`⨁`,bigotimes:`⨂`,bigsqcup:`⨆`,bigstar:`★`,bigtriangledown:`▽`,bigtriangleup:`△`,biguplus:`⨄`,bigvee:`⋁`,bigwedge:`⋀`,bkarow:`⤍`,blacklozenge:`⧫`,blacksquare:`▪`,blacktriangle:`▴`,blacktriangledown:`▾`,blacktriangleleft:`◂`,blacktriangleright:`▸`,blank:`␣`,blk12:`▒`,blk14:`░`,blk34:`▓`,block:`█`,bne:`=⃥`,bnequiv:`≡⃥`,bNot:`⫭`,bnot:`⌐`,Bopf:`𝔹`,bopf:`𝕓`,bot:`⊥`,bottom:`⊥`,bowtie:`⋈`,boxbox:`⧉`,boxdl:`┐`,boxdL:`╕`,boxDl:`╖`,boxDL:`╗`,boxdr:`┌`,boxdR:`╒`,boxDr:`╓`,boxDR:`╔`,boxh:`─`,boxH:`═`,boxhd:`┬`,boxHd:`╤`,boxhD:`╥`,boxHD:`╦`,boxhu:`┴`,boxHu:`╧`,boxhU:`╨`,boxHU:`╩`,boxminus:`⊟`,boxplus:`⊞`,boxtimes:`⊠`,boxul:`┘`,boxuL:`╛`,boxUl:`╜`,boxUL:`╝`,boxur:`└`,boxuR:`╘`,boxUr:`╙`,boxUR:`╚`,boxv:`│`,boxV:`║`,boxvh:`┼`,boxvH:`╪`,boxVh:`╫`,boxVH:`╬`,boxvl:`┤`,boxvL:`╡`,boxVl:`╢`,boxVL:`╣`,boxvr:`├`,boxvR:`╞`,boxVr:`╟`,boxVR:`╠`,bprime:`‵`,breve:`˘`,Breve:`˘`,brvbar:`¦`,bscr:`𝒷`,Bscr:`ℬ`,bsemi:`⁏`,bsim:`∽`,bsime:`⋍`,bsolb:`⧅`,bsol:`\\`,bsolhsub:`⟈`,bull:`•`,bullet:`•`,bump:`≎`,bumpE:`⪮`,bumpe:`≏`,Bumpeq:`≎`,bumpeq:`≏`,Cacute:`Ć`,cacute:`ć`,capand:`⩄`,capbrcup:`⩉`,capcap:`⩋`,cap:`∩`,Cap:`⋒`,capcup:`⩇`,capdot:`⩀`,CapitalDifferentialD:`ⅅ`,caps:`∩︀`,caret:`⁁`,caron:`ˇ`,Cayleys:`ℭ`,ccaps:`⩍`,Ccaron:`Č`,ccaron:`č`,Ccedil:`Ç`,ccedil:`ç`,Ccirc:`Ĉ`,ccirc:`ĉ`,Cconint:`∰`,ccups:`⩌`,ccupssm:`⩐`,Cdot:`Ċ`,cdot:`ċ`,cedil:`¸`,Cedilla:`¸`,cemptyv:`⦲`,cent:`¢`,centerdot:`·`,CenterDot:`·`,cfr:`𝔠`,Cfr:`ℭ`,CHcy:`Ч`,chcy:`ч`,check:`✓`,checkmark:`✓`,Chi:`Χ`,chi:`χ`,circ:`ˆ`,circeq:`≗`,circlearrowleft:`↺`,circlearrowright:`↻`,circledast:`⊛`,circledcirc:`⊚`,circleddash:`⊝`,CircleDot:`⊙`,circledR:`®`,circledS:`Ⓢ`,CircleMinus:`⊖`,CirclePlus:`⊕`,CircleTimes:`⊗`,cir:`○`,cirE:`⧃`,cire:`≗`,cirfnint:`⨐`,cirmid:`⫯`,cirscir:`⧂`,ClockwiseContourIntegral:`∲`,CloseCurlyDoubleQuote:`”`,CloseCurlyQuote:`’`,clubs:`♣`,clubsuit:`♣`,colon:`:`,Colon:`∷`,Colone:`⩴`,colone:`≔`,coloneq:`≔`,comma:`,`,commat:`@`,comp:`∁`,compfn:`∘`,complement:`∁`,complexes:`ℂ`,cong:`≅`,congdot:`⩭`,Congruent:`≡`,conint:`∮`,Conint:`∯`,ContourIntegral:`∮`,copf:`𝕔`,Copf:`ℂ`,coprod:`∐`,Coproduct:`∐`,copy:`©`,COPY:`©`,copysr:`℗`,CounterClockwiseContourIntegral:`∳`,crarr:`↵`,cross:`✗`,Cross:`⨯`,Cscr:`𝒞`,cscr:`𝒸`,csub:`⫏`,csube:`⫑`,csup:`⫐`,csupe:`⫒`,ctdot:`⋯`,cudarrl:`⤸`,cudarrr:`⤵`,cuepr:`⋞`,cuesc:`⋟`,cularr:`↶`,cularrp:`⤽`,cupbrcap:`⩈`,cupcap:`⩆`,CupCap:`≍`,cup:`∪`,Cup:`⋓`,cupcup:`⩊`,cupdot:`⊍`,cupor:`⩅`,cups:`∪︀`,curarr:`↷`,curarrm:`⤼`,curlyeqprec:`⋞`,curlyeqsucc:`⋟`,curlyvee:`⋎`,curlywedge:`⋏`,curren:`¤`,curvearrowleft:`↶`,curvearrowright:`↷`,cuvee:`⋎`,cuwed:`⋏`,cwconint:`∲`,cwint:`∱`,cylcty:`⌭`,dagger:`†`,Dagger:`‡`,daleth:`ℸ`,darr:`↓`,Darr:`↡`,dArr:`⇓`,dash:`‐`,Dashv:`⫤`,dashv:`⊣`,dbkarow:`⤏`,dblac:`˝`,Dcaron:`Ď`,dcaron:`ď`,Dcy:`Д`,dcy:`д`,ddagger:`‡`,ddarr:`⇊`,DD:`ⅅ`,dd:`ⅆ`,DDotrahd:`⤑`,ddotseq:`⩷`,deg:`°`,Del:`∇`,Delta:`Δ`,delta:`δ`,demptyv:`⦱`,dfisht:`⥿`,Dfr:`𝔇`,dfr:`𝔡`,dHar:`⥥`,dharl:`⇃`,dharr:`⇂`,DiacriticalAcute:`´`,DiacriticalDot:`˙`,DiacriticalDoubleAcute:`˝`,DiacriticalGrave:"`",DiacriticalTilde:`˜`,diam:`⋄`,diamond:`⋄`,Diamond:`⋄`,diamondsuit:`♦`,diams:`♦`,die:`¨`,DifferentialD:`ⅆ`,digamma:`ϝ`,disin:`⋲`,div:`÷`,divide:`÷`,divideontimes:`⋇`,divonx:`⋇`,DJcy:`Ђ`,djcy:`ђ`,dlcorn:`⌞`,dlcrop:`⌍`,dollar:`$`,Dopf:`𝔻`,dopf:`𝕕`,Dot:`¨`,dot:`˙`,DotDot:`⃜`,doteq:`≐`,doteqdot:`≑`,DotEqual:`≐`,dotminus:`∸`,dotplus:`∔`,dotsquare:`⊡`,doublebarwedge:`⌆`,DoubleContourIntegral:`∯`,DoubleDot:`¨`,DoubleDownArrow:`⇓`,DoubleLeftArrow:`⇐`,DoubleLeftRightArrow:`⇔`,DoubleLeftTee:`⫤`,DoubleLongLeftArrow:`⟸`,DoubleLongLeftRightArrow:`⟺`,DoubleLongRightArrow:`⟹`,DoubleRightArrow:`⇒`,DoubleRightTee:`⊨`,DoubleUpArrow:`⇑`,DoubleUpDownArrow:`⇕`,DoubleVerticalBar:`∥`,DownArrowBar:`⤓`,downarrow:`↓`,DownArrow:`↓`,Downarrow:`⇓`,DownArrowUpArrow:`⇵`,DownBreve:`̑`,downdownarrows:`⇊`,downharpoonleft:`⇃`,downharpoonright:`⇂`,DownLeftRightVector:`⥐`,DownLeftTeeVector:`⥞`,DownLeftVectorBar:`⥖`,DownLeftVector:`↽`,DownRightTeeVector:`⥟`,DownRightVectorBar:`⥗`,DownRightVector:`⇁`,DownTeeArrow:`↧`,DownTee:`⊤`,drbkarow:`⤐`,drcorn:`⌟`,drcrop:`⌌`,Dscr:`𝒟`,dscr:`𝒹`,DScy:`Ѕ`,dscy:`ѕ`,dsol:`⧶`,Dstrok:`Đ`,dstrok:`đ`,dtdot:`⋱`,dtri:`▿`,dtrif:`▾`,duarr:`⇵`,duhar:`⥯`,dwangle:`⦦`,DZcy:`Џ`,dzcy:`џ`,dzigrarr:`⟿`,Eacute:`É`,eacute:`é`,easter:`⩮`,Ecaron:`Ě`,ecaron:`ě`,Ecirc:`Ê`,ecirc:`ê`,ecir:`≖`,ecolon:`≕`,Ecy:`Э`,ecy:`э`,eDDot:`⩷`,Edot:`Ė`,edot:`ė`,eDot:`≑`,ee:`ⅇ`,efDot:`≒`,Efr:`𝔈`,efr:`𝔢`,eg:`⪚`,Egrave:`È`,egrave:`è`,egs:`⪖`,egsdot:`⪘`,el:`⪙`,Element:`∈`,elinters:`⏧`,ell:`ℓ`,els:`⪕`,elsdot:`⪗`,Emacr:`Ē`,emacr:`ē`,empty:`∅`,emptyset:`∅`,EmptySmallSquare:`◻`,emptyv:`∅`,EmptyVerySmallSquare:`▫`,emsp13:` `,emsp14:` `,emsp:` `,ENG:`Ŋ`,eng:`ŋ`,ensp:` `,Eogon:`Ę`,eogon:`ę`,Eopf:`𝔼`,eopf:`𝕖`,epar:`⋕`,eparsl:`⧣`,eplus:`⩱`,epsi:`ε`,Epsilon:`Ε`,epsilon:`ε`,epsiv:`ϵ`,eqcirc:`≖`,eqcolon:`≕`,eqsim:`≂`,eqslantgtr:`⪖`,eqslantless:`⪕`,Equal:`⩵`,equals:`=`,EqualTilde:`≂`,equest:`≟`,Equilibrium:`⇌`,equiv:`≡`,equivDD:`⩸`,eqvparsl:`⧥`,erarr:`⥱`,erDot:`≓`,escr:`ℯ`,Escr:`ℰ`,esdot:`≐`,Esim:`⩳`,esim:`≂`,Eta:`Η`,eta:`η`,ETH:`Ð`,eth:`ð`,Euml:`Ë`,euml:`ë`,euro:`€`,excl:`!`,exist:`∃`,Exists:`∃`,expectation:`ℰ`,exponentiale:`ⅇ`,ExponentialE:`ⅇ`,fallingdotseq:`≒`,Fcy:`Ф`,fcy:`ф`,female:`♀`,ffilig:`ffi`,fflig:`ff`,ffllig:`ffl`,Ffr:`𝔉`,ffr:`𝔣`,filig:`fi`,FilledSmallSquare:`◼`,FilledVerySmallSquare:`▪`,fjlig:`fj`,flat:`♭`,fllig:`fl`,fltns:`▱`,fnof:`ƒ`,Fopf:`𝔽`,fopf:`𝕗`,forall:`∀`,ForAll:`∀`,fork:`⋔`,forkv:`⫙`,Fouriertrf:`ℱ`,fpartint:`⨍`,frac12:`½`,frac13:`⅓`,frac14:`¼`,frac15:`⅕`,frac16:`⅙`,frac18:`⅛`,frac23:`⅔`,frac25:`⅖`,frac34:`¾`,frac35:`⅗`,frac38:`⅜`,frac45:`⅘`,frac56:`⅚`,frac58:`⅝`,frac78:`⅞`,frasl:`⁄`,frown:`⌢`,fscr:`𝒻`,Fscr:`ℱ`,gacute:`ǵ`,Gamma:`Γ`,gamma:`γ`,Gammad:`Ϝ`,gammad:`ϝ`,gap:`⪆`,Gbreve:`Ğ`,gbreve:`ğ`,Gcedil:`Ģ`,Gcirc:`Ĝ`,gcirc:`ĝ`,Gcy:`Г`,gcy:`г`,Gdot:`Ġ`,gdot:`ġ`,ge:`≥`,gE:`≧`,gEl:`⪌`,gel:`⋛`,geq:`≥`,geqq:`≧`,geqslant:`⩾`,gescc:`⪩`,ges:`⩾`,gesdot:`⪀`,gesdoto:`⪂`,gesdotol:`⪄`,gesl:`⋛︀`,gesles:`⪔`,Gfr:`𝔊`,gfr:`𝔤`,gg:`≫`,Gg:`⋙`,ggg:`⋙`,gimel:`ℷ`,GJcy:`Ѓ`,gjcy:`ѓ`,gla:`⪥`,gl:`≷`,glE:`⪒`,glj:`⪤`,gnap:`⪊`,gnapprox:`⪊`,gne:`⪈`,gnE:`≩`,gneq:`⪈`,gneqq:`≩`,gnsim:`⋧`,Gopf:`𝔾`,gopf:`𝕘`,grave:"`",GreaterEqual:`≥`,GreaterEqualLess:`⋛`,GreaterFullEqual:`≧`,GreaterGreater:`⪢`,GreaterLess:`≷`,GreaterSlantEqual:`⩾`,GreaterTilde:`≳`,Gscr:`𝒢`,gscr:`ℊ`,gsim:`≳`,gsime:`⪎`,gsiml:`⪐`,gtcc:`⪧`,gtcir:`⩺`,gt:`>`,GT:`>`,Gt:`≫`,gtdot:`⋗`,gtlPar:`⦕`,gtquest:`⩼`,gtrapprox:`⪆`,gtrarr:`⥸`,gtrdot:`⋗`,gtreqless:`⋛`,gtreqqless:`⪌`,gtrless:`≷`,gtrsim:`≳`,gvertneqq:`≩︀`,gvnE:`≩︀`,Hacek:`ˇ`,hairsp:` `,half:`½`,hamilt:`ℋ`,HARDcy:`Ъ`,hardcy:`ъ`,harrcir:`⥈`,harr:`↔`,hArr:`⇔`,harrw:`↭`,Hat:`^`,hbar:`ℏ`,Hcirc:`Ĥ`,hcirc:`ĥ`,hearts:`♥`,heartsuit:`♥`,hellip:`…`,hercon:`⊹`,hfr:`𝔥`,Hfr:`ℌ`,HilbertSpace:`ℋ`,hksearow:`⤥`,hkswarow:`⤦`,hoarr:`⇿`,homtht:`∻`,hookleftarrow:`↩`,hookrightarrow:`↪`,hopf:`𝕙`,Hopf:`ℍ`,horbar:`―`,HorizontalLine:`─`,hscr:`𝒽`,Hscr:`ℋ`,hslash:`ℏ`,Hstrok:`Ħ`,hstrok:`ħ`,HumpDownHump:`≎`,HumpEqual:`≏`,hybull:`⁃`,hyphen:`‐`,Iacute:`Í`,iacute:`í`,ic:`⁣`,Icirc:`Î`,icirc:`î`,Icy:`И`,icy:`и`,Idot:`İ`,IEcy:`Е`,iecy:`е`,iexcl:`¡`,iff:`⇔`,ifr:`𝔦`,Ifr:`ℑ`,Igrave:`Ì`,igrave:`ì`,ii:`ⅈ`,iiiint:`⨌`,iiint:`∭`,iinfin:`⧜`,iiota:`℩`,IJlig:`IJ`,ijlig:`ij`,Imacr:`Ī`,imacr:`ī`,image:`ℑ`,ImaginaryI:`ⅈ`,imagline:`ℐ`,imagpart:`ℑ`,imath:`ı`,Im:`ℑ`,imof:`⊷`,imped:`Ƶ`,Implies:`⇒`,incare:`℅`,in:`∈`,infin:`∞`,infintie:`⧝`,inodot:`ı`,intcal:`⊺`,int:`∫`,Int:`∬`,integers:`ℤ`,Integral:`∫`,intercal:`⊺`,Intersection:`⋂`,intlarhk:`⨗`,intprod:`⨼`,InvisibleComma:`⁣`,InvisibleTimes:`⁢`,IOcy:`Ё`,iocy:`ё`,Iogon:`Į`,iogon:`į`,Iopf:`𝕀`,iopf:`𝕚`,Iota:`Ι`,iota:`ι`,iprod:`⨼`,iquest:`¿`,iscr:`𝒾`,Iscr:`ℐ`,isin:`∈`,isindot:`⋵`,isinE:`⋹`,isins:`⋴`,isinsv:`⋳`,isinv:`∈`,it:`⁢`,Itilde:`Ĩ`,itilde:`ĩ`,Iukcy:`І`,iukcy:`і`,Iuml:`Ï`,iuml:`ï`,Jcirc:`Ĵ`,jcirc:`ĵ`,Jcy:`Й`,jcy:`й`,Jfr:`𝔍`,jfr:`𝔧`,jmath:`ȷ`,Jopf:`𝕁`,jopf:`𝕛`,Jscr:`𝒥`,jscr:`𝒿`,Jsercy:`Ј`,jsercy:`ј`,Jukcy:`Є`,jukcy:`є`,Kappa:`Κ`,kappa:`κ`,kappav:`ϰ`,Kcedil:`Ķ`,kcedil:`ķ`,Kcy:`К`,kcy:`к`,Kfr:`𝔎`,kfr:`𝔨`,kgreen:`ĸ`,KHcy:`Х`,khcy:`х`,KJcy:`Ќ`,kjcy:`ќ`,Kopf:`𝕂`,kopf:`𝕜`,Kscr:`𝒦`,kscr:`𝓀`,lAarr:`⇚`,Lacute:`Ĺ`,lacute:`ĺ`,laemptyv:`⦴`,lagran:`ℒ`,Lambda:`Λ`,lambda:`λ`,lang:`⟨`,Lang:`⟪`,langd:`⦑`,langle:`⟨`,lap:`⪅`,Laplacetrf:`ℒ`,laquo:`«`,larrb:`⇤`,larrbfs:`⤟`,larr:`←`,Larr:`↞`,lArr:`⇐`,larrfs:`⤝`,larrhk:`↩`,larrlp:`↫`,larrpl:`⤹`,larrsim:`⥳`,larrtl:`↢`,latail:`⤙`,lAtail:`⤛`,lat:`⪫`,late:`⪭`,lates:`⪭︀`,lbarr:`⤌`,lBarr:`⤎`,lbbrk:`❲`,lbrace:`{`,lbrack:`[`,lbrke:`⦋`,lbrksld:`⦏`,lbrkslu:`⦍`,Lcaron:`Ľ`,lcaron:`ľ`,Lcedil:`Ļ`,lcedil:`ļ`,lceil:`⌈`,lcub:`{`,Lcy:`Л`,lcy:`л`,ldca:`⤶`,ldquo:`“`,ldquor:`„`,ldrdhar:`⥧`,ldrushar:`⥋`,ldsh:`↲`,le:`≤`,lE:`≦`,LeftAngleBracket:`⟨`,LeftArrowBar:`⇤`,leftarrow:`←`,LeftArrow:`←`,Leftarrow:`⇐`,LeftArrowRightArrow:`⇆`,leftarrowtail:`↢`,LeftCeiling:`⌈`,LeftDoubleBracket:`⟦`,LeftDownTeeVector:`⥡`,LeftDownVectorBar:`⥙`,LeftDownVector:`⇃`,LeftFloor:`⌊`,leftharpoondown:`↽`,leftharpoonup:`↼`,leftleftarrows:`⇇`,leftrightarrow:`↔`,LeftRightArrow:`↔`,Leftrightarrow:`⇔`,leftrightarrows:`⇆`,leftrightharpoons:`⇋`,leftrightsquigarrow:`↭`,LeftRightVector:`⥎`,LeftTeeArrow:`↤`,LeftTee:`⊣`,LeftTeeVector:`⥚`,leftthreetimes:`⋋`,LeftTriangleBar:`⧏`,LeftTriangle:`⊲`,LeftTriangleEqual:`⊴`,LeftUpDownVector:`⥑`,LeftUpTeeVector:`⥠`,LeftUpVectorBar:`⥘`,LeftUpVector:`↿`,LeftVectorBar:`⥒`,LeftVector:`↼`,lEg:`⪋`,leg:`⋚`,leq:`≤`,leqq:`≦`,leqslant:`⩽`,lescc:`⪨`,les:`⩽`,lesdot:`⩿`,lesdoto:`⪁`,lesdotor:`⪃`,lesg:`⋚︀`,lesges:`⪓`,lessapprox:`⪅`,lessdot:`⋖`,lesseqgtr:`⋚`,lesseqqgtr:`⪋`,LessEqualGreater:`⋚`,LessFullEqual:`≦`,LessGreater:`≶`,lessgtr:`≶`,LessLess:`⪡`,lesssim:`≲`,LessSlantEqual:`⩽`,LessTilde:`≲`,lfisht:`⥼`,lfloor:`⌊`,Lfr:`𝔏`,lfr:`𝔩`,lg:`≶`,lgE:`⪑`,lHar:`⥢`,lhard:`↽`,lharu:`↼`,lharul:`⥪`,lhblk:`▄`,LJcy:`Љ`,ljcy:`љ`,llarr:`⇇`,ll:`≪`,Ll:`⋘`,llcorner:`⌞`,Lleftarrow:`⇚`,llhard:`⥫`,lltri:`◺`,Lmidot:`Ŀ`,lmidot:`ŀ`,lmoustache:`⎰`,lmoust:`⎰`,lnap:`⪉`,lnapprox:`⪉`,lne:`⪇`,lnE:`≨`,lneq:`⪇`,lneqq:`≨`,lnsim:`⋦`,loang:`⟬`,loarr:`⇽`,lobrk:`⟦`,longleftarrow:`⟵`,LongLeftArrow:`⟵`,Longleftarrow:`⟸`,longleftrightarrow:`⟷`,LongLeftRightArrow:`⟷`,Longleftrightarrow:`⟺`,longmapsto:`⟼`,longrightarrow:`⟶`,LongRightArrow:`⟶`,Longrightarrow:`⟹`,looparrowleft:`↫`,looparrowright:`↬`,lopar:`⦅`,Lopf:`𝕃`,lopf:`𝕝`,loplus:`⨭`,lotimes:`⨴`,lowast:`∗`,lowbar:`_`,LowerLeftArrow:`↙`,LowerRightArrow:`↘`,loz:`◊`,lozenge:`◊`,lozf:`⧫`,lpar:`(`,lparlt:`⦓`,lrarr:`⇆`,lrcorner:`⌟`,lrhar:`⇋`,lrhard:`⥭`,lrm:`‎`,lrtri:`⊿`,lsaquo:`‹`,lscr:`𝓁`,Lscr:`ℒ`,lsh:`↰`,Lsh:`↰`,lsim:`≲`,lsime:`⪍`,lsimg:`⪏`,lsqb:`[`,lsquo:`‘`,lsquor:`‚`,Lstrok:`Ł`,lstrok:`ł`,ltcc:`⪦`,ltcir:`⩹`,lt:`<`,LT:`<`,Lt:`≪`,ltdot:`⋖`,lthree:`⋋`,ltimes:`⋉`,ltlarr:`⥶`,ltquest:`⩻`,ltri:`◃`,ltrie:`⊴`,ltrif:`◂`,ltrPar:`⦖`,lurdshar:`⥊`,luruhar:`⥦`,lvertneqq:`≨︀`,lvnE:`≨︀`,macr:`¯`,male:`♂`,malt:`✠`,maltese:`✠`,Map:`⤅`,map:`↦`,mapsto:`↦`,mapstodown:`↧`,mapstoleft:`↤`,mapstoup:`↥`,marker:`▮`,mcomma:`⨩`,Mcy:`М`,mcy:`м`,mdash:`—`,mDDot:`∺`,measuredangle:`∡`,MediumSpace:` `,Mellintrf:`ℳ`,Mfr:`𝔐`,mfr:`𝔪`,mho:`℧`,micro:`µ`,midast:`*`,midcir:`⫰`,mid:`∣`,middot:`·`,minusb:`⊟`,minus:`−`,minusd:`∸`,minusdu:`⨪`,MinusPlus:`∓`,mlcp:`⫛`,mldr:`…`,mnplus:`∓`,models:`⊧`,Mopf:`𝕄`,mopf:`𝕞`,mp:`∓`,mscr:`𝓂`,Mscr:`ℳ`,mstpos:`∾`,Mu:`Μ`,mu:`μ`,multimap:`⊸`,mumap:`⊸`,nabla:`∇`,Nacute:`Ń`,nacute:`ń`,nang:`∠⃒`,nap:`≉`,napE:`⩰̸`,napid:`≋̸`,napos:`ʼn`,napprox:`≉`,natural:`♮`,naturals:`ℕ`,natur:`♮`,nbsp:`\xA0`,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:`
18
- `,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:`\xA0`,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:`‌`}}}),Ua=B({"../../node_modules/entities/lib/maps/legacy.json"(e,t){t.exports={Aacute:`Á`,aacute:`á`,Acirc:`Â`,acirc:`â`,acute:`´`,AElig:`Æ`,aelig:`æ`,Agrave:`À`,agrave:`à`,amp:`&`,AMP:`&`,Aring:`Å`,aring:`å`,Atilde:`Ã`,atilde:`ã`,Auml:`Ä`,auml:`ä`,brvbar:`¦`,Ccedil:`Ç`,ccedil:`ç`,cedil:`¸`,cent:`¢`,copy:`©`,COPY:`©`,curren:`¤`,deg:`°`,divide:`÷`,Eacute:`É`,eacute:`é`,Ecirc:`Ê`,ecirc:`ê`,Egrave:`È`,egrave:`è`,ETH:`Ð`,eth:`ð`,Euml:`Ë`,euml:`ë`,frac12:`½`,frac14:`¼`,frac34:`¾`,gt:`>`,GT:`>`,Iacute:`Í`,iacute:`í`,Icirc:`Î`,icirc:`î`,iexcl:`¡`,Igrave:`Ì`,igrave:`ì`,iquest:`¿`,Iuml:`Ï`,iuml:`ï`,laquo:`«`,lt:`<`,LT:`<`,macr:`¯`,micro:`µ`,middot:`·`,nbsp:`\xA0`,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:`ÿ`}}}),Wa=B({"../../node_modules/entities/lib/maps/xml.json"(e,t){t.exports={amp:`&`,apos:`'`,gt:`>`,lt:`<`,quot:`"`}}}),Ga=B({"../../node_modules/entities/lib/maps/decode.json"(e,t){t.exports={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}}}),Ka=B({"../../node_modules/entities/lib/decode_codepoint.js"(e){var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0});var n=t(Ga()),r=String.fromCodePoint||function(e){var t=``;return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function i(e){return e>=55296&&e<=57343||e>1114111?`�`:(e in n.default&&(e=n.default[e]),r(e))}e.default=i}}),qa=B({"../../node_modules/entities/lib/decode.js"(e){var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.decodeHTML=e.decodeHTMLStrict=e.decodeXML=void 0;var n=t(Ha()),r=t(Ua()),i=t(Wa()),a=t(Ka()),o=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;e.decodeXML=s(i.default),e.decodeHTMLStrict=s(n.default);function s(e){var t=l(e);return function(e){return String(e).replace(o,t)}}var c=function(e,t){return e<t?1:-1};e.decodeHTML=(function(){for(var e=Object.keys(r.default).sort(c),t=Object.keys(n.default).sort(c),i=0,a=0;i<t.length;i++)e[a]===t[i]?(t[i]+=`;?`,a++):t[i]+=`;`;var o=RegExp(`&(?:`+t.join(`|`)+`|#[xX][\\da-fA-F]+;?|#\\d+;?)`,`g`),s=l(n.default);function u(e){return e.substr(-1)!==`;`&&(e+=`;`),s(e)}return function(e){return String(e).replace(o,u)}})();function l(e){return function(t){if(t.charAt(1)===`#`){var n=t.charAt(2);return n===`X`||n===`x`?a.default(parseInt(t.substr(3),16)):a.default(parseInt(t.substr(2),10))}return e[t.slice(1,-1)]||t}}}}),Ja=B({"../../node_modules/entities/lib/encode.js"(e){var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=void 0;var n=a(t(Wa()).default),r=o(n);e.encodeXML=m(n);var i=a(t(Ha()).default);e.encodeHTML=u(i,o(i)),e.encodeNonAsciiHTML=m(i);function a(e){return Object.keys(e).sort().reduce(function(t,n){return t[e[n]]=`&`+n+`;`,t},{})}function o(e){for(var t=[],n=[],r=0,i=Object.keys(e);r<i.length;r++){var a=i[r];a.length===1?t.push(`\\`+a):n.push(a)}t.sort();for(var o=0;o<t.length-1;o++){for(var s=o;s<t.length-1&&t[s].charCodeAt(1)+1===t[s+1].charCodeAt(1);)s+=1;var c=1+s-o;c<3||t.splice(o,c,t[o]+`-`+t[s])}return n.unshift(`[`+t.join(``)+`]`),new RegExp(n.join(`|`),`g`)}var s=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,c=String.prototype.codePointAt==null?(function(e){return(e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536}):(function(e){return e.codePointAt(0)});function l(e){return`&#x`+(e.length>1?c(e):e.charCodeAt(0)).toString(16).toUpperCase()+`;`}function u(e,t){return function(n){return n.replace(t,function(t){return e[t]}).replace(s,l)}}var d=RegExp(r.source+`|`+s.source,`g`);function f(e){return e.replace(d,l)}e.escape=f;function p(e){return e.replace(r,l)}e.escapeUTF8=p;function m(e){return function(t){return t.replace(d,function(t){return e[t]||l(t)})}}}}),Ya=B({"../../node_modules/entities/lib/index.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var t=qa(),n=Ja();function r(e,n){return(!n||n<=0?t.decodeXML:t.decodeHTML)(e)}e.decode=r;function i(e,n){return(!n||n<=0?t.decodeXML:t.decodeHTMLStrict)(e)}e.decodeStrict=i;function a(e,t){return(!t||t<=0?n.encodeXML:n.encodeHTML)(e)}e.encode=a;var o=Ja();Object.defineProperty(e,`encodeXML`,{enumerable:!0,get:function(){return o.encodeXML}}),Object.defineProperty(e,`encodeHTML`,{enumerable:!0,get:function(){return o.encodeHTML}}),Object.defineProperty(e,`encodeNonAsciiHTML`,{enumerable:!0,get:function(){return o.encodeNonAsciiHTML}}),Object.defineProperty(e,`escape`,{enumerable:!0,get:function(){return o.escape}}),Object.defineProperty(e,`escapeUTF8`,{enumerable:!0,get:function(){return o.escapeUTF8}}),Object.defineProperty(e,`encodeHTML4`,{enumerable:!0,get:function(){return o.encodeHTML}}),Object.defineProperty(e,`encodeHTML5`,{enumerable:!0,get:function(){return o.encodeHTML}});var s=qa();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}})}}),Xa=B({"../../node_modules/ansi-to-html/lib/ansi_to_html.js"(e,t){function n(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}function a(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=o(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
19
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,s=!1,c;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,c=e},f:function(){try{!a&&n.return!=null&&n.return()}finally{if(s)throw c}}}}function o(e,t){if(e){if(typeof e==`string`)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}}function s(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var c=Ya(),l={fg:`#FFF`,bg:`#000`,newline:!1,escapeXML:!1,stream:!1,colors:u()};function u(){var e={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 v(0,5).forEach(function(t){v(0,5).forEach(function(n){v(0,5).forEach(function(r){return d(t,n,r,e)})})}),v(0,23).forEach(function(t){var n=t+232,r=f(t*10+8);e[n]=`#`+r+r+r}),e}function d(e,t,n,r){var i=16+e*36+t*6+n;r[i]=p([e>0?e*40+55:0,t>0?t*40+55:0,n>0?n*40+55:0])}function f(e){for(var t=e.toString(16);t.length<2;)t=`0`+t;return t}function p(e){var t=[],n=a(e),r;try{for(n.s();!(r=n.n()).done;){var i=r.value;t.push(f(i))}}catch(e){n.e(e)}finally{n.f()}return`#`+t.join(``)}function m(e,t,n,r){var i;return t===`text`?i=x(n,r):t===`display`?i=g(e,n,r):t===`xterm256Foreground`?i=w(e,r.colors[n]):t===`xterm256Background`?i=T(e,r.colors[n]):t===`rgb`&&(i=h(e,n)),i}function h(e,t){t=t.substring(2).slice(0,-1);var n=+t.substr(0,2),r=t.substring(5).split(`;`).map(function(e){return(`0`+Number(e).toString(16)).substr(-2)}).join(``);return C(e,(n===38?`color:#`:`background-color:#`)+r)}function g(e,t,n){t=parseInt(t,10);var r={"-1":function(){return`<br/>`},0:function(){return e.length&&_(e)},1:function(){return S(e,`b`)},3:function(){return S(e,`i`)},4:function(){return S(e,`u`)},8:function(){return C(e,`display:none`)},9:function(){return S(e,`strike`)},22:function(){return C(e,`font-weight:normal;text-decoration:none;font-style:normal`)},23:function(){return E(e,`i`)},24:function(){return E(e,`u`)},39:function(){return w(e,n.fg)},49:function(){return T(e,n.bg)},53:function(){return C(e,`text-decoration:overline`)}},i;return r[t]?i=r[t]():4<t&&t<7?i=S(e,`blink`):29<t&&t<38?i=w(e,n.colors[t-30]):39<t&&t<48?i=T(e,n.colors[t-40]):89<t&&t<98?i=w(e,n.colors[8+(t-90)]):99<t&&t<108&&(i=T(e,n.colors[8+(t-100)])),i}function _(e){var t=e.slice(0);return e.length=0,t.reverse().map(function(e){return`</`+e+`>`}).join(``)}function v(e,t){for(var n=[],r=e;r<=t;r++)n.push(r);return n}function y(e){return function(t){return(e===null||t.category!==e)&&e!==`all`}}function b(e){e=parseInt(e,10);var t=null;return e===0?t=`all`:e===1?t=`bold`:2<e&&e<5?t=`underline`:4<e&&e<7?t=`blink`:e===8?t=`hide`:e===9?t=`strike`:29<e&&e<38||e===39||89<e&&e<98?t=`foreground-color`:(39<e&&e<48||e===49||99<e&&e<108)&&(t=`background-color`),t}function x(e,t){return t.escapeXML?c.encodeXML(e):e}function S(e,t,n){return n||=``,e.push(t),`<${t}${n?` style="${n}"`:``}>`}function C(e,t){return S(e,`span`,t)}function w(e,t){return S(e,`span`,`color:`+t)}function T(e,t){return S(e,`span`,`background-color:`+t)}function E(e,t){var n;if(e.slice(-1)[0]===t&&(n=e.pop()),n)return`</`+t+`>`}function D(e,t,n){var r=!1,i=3;function o(){return``}function s(e,t){return n(`xterm256Foreground`,t),``}function c(e,t){return n(`xterm256Background`,t),``}function l(e){return t.newline?n(`display`,-1):n(`text`,e),``}function u(e,t){r=!0,t.trim().length===0&&(t=`0`),t=t.trimRight(`;`).split(`;`);var i=a(t),o;try{for(i.s();!(o=i.n()).done;){var s=o.value;n(`display`,s)}}catch(e){i.e(e)}finally{i.f()}return``}function d(e){return n(`text`,e),``}function f(e){return n(`rgb`,e),``}var p=[{pattern:/^\x08+/,sub:o},{pattern:/^\x1b\[[012]?K/,sub:o},{pattern:/^\x1b\[\(B/,sub:o},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:f},{pattern:/^\x1b\[38;5;(\d+)m/,sub:s},{pattern:/^\x1b\[48;5;(\d+)m/,sub:c},{pattern:/^\n/,sub:l},{pattern:/^\r+\n/,sub:l},{pattern:/^\r/,sub:l},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:u},{pattern:/^\x1b\[\d?J/,sub:o},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:o},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:o},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:d}];function m(t,n){n>i&&r||(r=!1,e=e.replace(t.pattern,t.sub))}var h=[],g=e.length;outer:for(;g>0;){for(var _=0,v=0,y=p.length;v<y;_=++v){var b=p[_];if(m(b,_),e.length!==g){g=e.length;continue outer}}if(e.length===g)break;h.push(0),g=e.length}return h}function O(e,t,n){return t!==`text`&&(e=e.filter(y(b(n))),e.push({token:t,data:n,category:b(n)})),e}t.exports=(function(){function e(t){n(this,e),t||={},t.colors&&=Object.assign({},l.colors,t.colors),this.options=Object.assign({},l,t),this.stack=[],this.stickyStack=[]}return i(e,[{key:`toHtml`,value:function(e){var t=this;e=typeof e==`string`?[e]:e;var n=this.stack,r=this.options,i=[];return this.stickyStack.forEach(function(e){var t=m(n,e.token,e.data,r);t&&i.push(t)}),D(e.join(``),r,function(e,a){var o=m(n,e,a,r);o&&i.push(o),r.stream&&(t.stickyStack=O(t.stickyStack,e,a))}),n.length&&i.push(_(n)),i.join(``)}}]),e})()}}),Za=B({"../../node_modules/jsdoc-type-pratt-parser/dist/index.js"(e,t){(function(n,r){typeof e==`object`&&typeof t<`u`?r(e):typeof define==`function`&&define.amd?define([`exports`],r):(n=typeof globalThis<`u`?globalThis:n||self,r(n.jtpp={}))})(e,(function(e){function t(e){return e.text!==void 0&&e.text!==``?`'${e.type}' with value '${e.text}'`:`'${e.type}'`}class n extends Error{constructor(e){super(`No parslet found for token: ${t(e)}`),this.token=e,Object.setPrototypeOf(this,n.prototype)}getToken(){return this.token}}class r extends Error{constructor(e){super(`The parsing ended early. The next token was: ${t(e)}`),this.token=e,Object.setPrototypeOf(this,r.prototype)}getToken(){return this.token}}class i extends Error{constructor(e,t){let n=`Unexpected type: '${e.type}'.`;t!==void 0&&(n+=` Message: ${t}`),super(n),Object.setPrototypeOf(this,i.prototype)}}function a(e){return t=>t.startsWith(e)?{type:e,text:e}:null}function o(e){let t=0,n,r=e[0],i=!1;if(r!==`'`&&r!==`"`)return null;for(;t<e.length;){if(t++,n=e[t],!i&&n===r){t++;break}i=!i&&n===`\\`}if(n!==r)throw Error(`Unterminated String`);return e.slice(0,t)}let s=RegExp(`[$_\\p{ID_Start}]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}`,`u`),c=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 l(e){let t=e[0];if(!s.test(t))return null;let n=1;do{if(t=e[n],!c.test(t))break;n++}while(n<e.length);return e.slice(0,n)}let u=/^(NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity))/;function d(e){return u.exec(e)?.[0]??null}let f=e=>{let t=l(e);return t==null?null:{type:`Identifier`,text:t}};function p(e){return t=>{if(!t.startsWith(e))return null;let n=t[e.length];return n!==void 0&&c.test(n)?null:{type:e,text:e}}}let m=[e=>e.length>0?null:{type:`EOF`,text:``},a(`=>`),a(`(`),a(`)`),a(`{`),a(`}`),a(`[`),a(`]`),a(`|`),a(`&`),a(`<`),a(`>`),a(`,`),a(`;`),a(`*`),a(`?`),a(`!`),a(`=`),a(`:`),a(`...`),a(`.`),a(`#`),a(`~`),a(`/`),a(`@`),p(`undefined`),p(`null`),p(`function`),p(`this`),p(`new`),p(`module`),p(`event`),p(`extends`),p(`external`),p(`infer`),p(`typeof`),p(`keyof`),p(`readonly`),p(`import`),p(`is`),p(`in`),p(`asserts`),e=>{let t=d(e);return t===null?null:{type:`Number`,text:t}},f,e=>{let t=o(e);return t==null?null:{type:`StringValue`,text:t}}],h=/^\s*\n\s*/;class g{static create(e){let t=this.read(e);e=t.text;let n=this.read(e);return e=n.text,new g(e,void 0,t.token,n.token)}constructor(e,t,n,r){this.text=``,this.text=e,this.previous=t,this.current=n,this.next=r}static read(e,t=!1){t||=h.test(e),e=e.trim();for(let n of m){let r=n(e);if(r!==null){let n=Object.assign(Object.assign({},r),{startOfLine:t});return e=e.slice(n.text.length),{text:e,token:n}}}throw Error(`Unexpected Token `+e)}advance(){let e=g.read(this.text);return new g(e.text,this.current,this.next,e.token)}}function _(e){if(e===void 0)throw Error(`Unexpected undefined`);if(e.type===`JsdocTypeKeyValue`||e.type===`JsdocTypeParameterList`||e.type===`JsdocTypeProperty`||e.type===`JsdocTypeReadonlyProperty`||e.type===`JsdocTypeObjectField`||e.type===`JsdocTypeJsdocObjectField`||e.type===`JsdocTypeIndexSignature`||e.type===`JsdocTypeMappedType`||e.type===`JsdocTypeTypeParameter`)throw new i(e);return e}function v(e){return e.type===`JsdocTypeKeyValue`?b(e):_(e)}function y(e){return e.type===`JsdocTypeName`?e:b(e)}function b(e){if(e.type!==`JsdocTypeKeyValue`)throw new i(e);return e}function x(e){if(e.type===`JsdocTypeVariadic`){if(e.element?.type===`JsdocTypeName`)return e;throw new i(e)}if(e.type!==`JsdocTypeNumber`&&e.type!==`JsdocTypeName`)throw new i(e);return e}function S(e){if(e.type===`JsdocTypeTuple`||e.type===`JsdocTypeGeneric`&&e.meta.brackets===`square`)return e;throw new i(e)}function C(e){return e.type===`JsdocTypeIndexSignature`||e.type===`JsdocTypeMappedType`}var w;(function(e){e[e.ALL=0]=`ALL`,e[e.PARAMETER_LIST=1]=`PARAMETER_LIST`,e[e.OBJECT=2]=`OBJECT`,e[e.KEY_VALUE=3]=`KEY_VALUE`,e[e.INDEX_BRACKETS=4]=`INDEX_BRACKETS`,e[e.UNION=5]=`UNION`,e[e.INTERSECTION=6]=`INTERSECTION`,e[e.PREFIX=7]=`PREFIX`,e[e.INFIX=8]=`INFIX`,e[e.TUPLE=9]=`TUPLE`,e[e.SYMBOL=10]=`SYMBOL`,e[e.OPTIONAL=11]=`OPTIONAL`,e[e.NULLABLE=12]=`NULLABLE`,e[e.KEY_OF_TYPE_OF=13]=`KEY_OF_TYPE_OF`,e[e.FUNCTION=14]=`FUNCTION`,e[e.ARROW=15]=`ARROW`,e[e.ARRAY_BRACKETS=16]=`ARRAY_BRACKETS`,e[e.GENERIC=17]=`GENERIC`,e[e.NAME_PATH=18]=`NAME_PATH`,e[e.PARENTHESIS=19]=`PARENTHESIS`,e[e.SPECIAL_TYPES=20]=`SPECIAL_TYPES`})(w||={});class T{constructor(e,t,n){this.grammar=e,typeof t==`string`?this._lexer=g.create(t):this._lexer=t,this.baseParser=n}get lexer(){return this._lexer}parse(){let e=this.parseType(w.ALL);if(this.lexer.current.type!==`EOF`)throw new r(this.lexer.current);return e}parseType(e){return _(this.parseIntermediateType(e))}parseIntermediateType(e){let t=this.tryParslets(null,e);if(t===null)throw new n(this.lexer.current);return this.parseInfixIntermediateType(t,e)}parseInfixIntermediateType(e,t){let n=this.tryParslets(e,t);for(;n!==null;)e=n,n=this.tryParslets(e,t);return e}tryParslets(e,t){for(let n of this.grammar){let r=n(this,t,e);if(r!==null)return r}return null}consume(e){return Array.isArray(e)||(e=[e]),e.includes(this.lexer.current.type)?(this._lexer=this.lexer.advance(),!0):!1}acceptLexerState(e){this._lexer=e.lexer}}function E(e){return e===`}`||e===`EOF`||e===`|`||e===`,`||e===`)`||e===`>`}let D=(e,t,n)=>{let r=e.lexer.current.type,i=e.lexer.next.type;return n==null&&r===`?`&&!E(i)||n!=null&&r===`?`?(e.consume(`?`),n==null?{type:`JsdocTypeNullable`,element:e.parseType(w.NULLABLE),meta:{position:`prefix`}}:{type:`JsdocTypeNullable`,element:_(n),meta:{position:`suffix`}}):null};function O(e){let t=(t,n,r)=>{let i=t.lexer.current.type,a=t.lexer.next.type;if(r===null){if(`parsePrefix`in e&&e.accept(i,a))return e.parsePrefix(t)}else if(`parseInfix`in e&&e.precedence>n&&e.accept(i,a))return e.parseInfix(t,r);return null};return Object.defineProperty(t,`name`,{value:e.name}),t}let k=O({name:`optionalParslet`,accept:e=>e===`=`,precedence:w.OPTIONAL,parsePrefix:e=>(e.consume(`=`),{type:`JsdocTypeOptional`,element:e.parseType(w.OPTIONAL),meta:{position:`prefix`}}),parseInfix:(e,t)=>(e.consume(`=`),{type:`JsdocTypeOptional`,element:_(t),meta:{position:`suffix`}})}),A=O({name:`numberParslet`,accept:e=>e===`Number`,parsePrefix:e=>{let t=parseFloat(e.lexer.current.text);return e.consume(`Number`),{type:`JsdocTypeNumber`,value:t}}}),j=O({name:`parenthesisParslet`,accept:e=>e===`(`,parsePrefix:e=>{if(e.consume(`(`),e.consume(`)`))return{type:`JsdocTypeParameterList`,elements:[]};let t=e.parseIntermediateType(w.ALL);if(!e.consume(`)`))throw Error(`Unterminated parenthesis`);return t.type===`JsdocTypeParameterList`?t:t.type===`JsdocTypeKeyValue`?{type:`JsdocTypeParameterList`,elements:[t]}:{type:`JsdocTypeParenthesis`,element:_(t)}}}),M=O({name:`specialTypesParslet`,accept:(e,t)=>e===`?`&&E(t)||e===`null`||e===`undefined`||e===`*`,parsePrefix:e=>{if(e.consume(`null`))return{type:`JsdocTypeNull`};if(e.consume(`undefined`))return{type:`JsdocTypeUndefined`};if(e.consume(`*`))return{type:`JsdocTypeAny`};if(e.consume(`?`))return{type:`JsdocTypeUnknown`};throw Error(`Unacceptable token: `+e.lexer.current.text)}}),ee=O({name:`notNullableParslet`,accept:e=>e===`!`,precedence:w.NULLABLE,parsePrefix:e=>(e.consume(`!`),{type:`JsdocTypeNotNullable`,element:e.parseType(w.NULLABLE),meta:{position:`prefix`}}),parseInfix:(e,t)=>(e.consume(`!`),{type:`JsdocTypeNotNullable`,element:_(t),meta:{position:`suffix`}})});function N({allowTrailingComma:e}){return O({name:`parameterListParslet`,accept:e=>e===`,`,precedence:w.PARAMETER_LIST,parseInfix:(e,t)=>{let r=[v(t)];e.consume(`,`);do try{let t=e.parseIntermediateType(w.PARAMETER_LIST);r.push(v(t))}catch(e){if(e instanceof n)break;throw e}while(e.consume(`,`));if(r.length>0&&r.slice(0,-1).some(e=>e.type===`JsdocTypeVariadic`))throw Error(`Only the last parameter may be a rest parameter`);return{type:`JsdocTypeParameterList`,elements:r}}})}let te=O({name:`genericParslet`,accept:(e,t)=>e===`<`||e===`.`&&t===`<`,precedence:w.GENERIC,parseInfix:(e,t)=>{let n=e.consume(`.`);e.consume(`<`);let r=[],a=!1;if(e.consume(`infer`)){a=!0;let t=e.parseIntermediateType(w.SYMBOL);if(t.type!==`JsdocTypeName`)throw new i(t,`A typescript asserts always has to have a name on the left side.`);r.push(t)}else do r.push(e.parseType(w.PARAMETER_LIST));while(e.consume(`,`));if(!e.consume(`>`))throw Error(`Unterminated generic parameter list`);return Object.assign(Object.assign({type:`JsdocTypeGeneric`,left:_(t),elements:r},a?{infer:!0}:{}),{meta:{brackets:`angle`,dot:n}})}}),ne=O({name:`unionParslet`,accept:e=>e===`|`,precedence:w.UNION,parseInfix:(e,t)=>{e.consume(`|`);let n=[];do n.push(e.parseType(w.UNION));while(e.consume(`|`));return{type:`JsdocTypeUnion`,elements:[_(t),...n]}}}),re=[D,k,A,j,M,ee,N({allowTrailingComma:!0}),te,ne,k];function P({allowSquareBracketsOnAnyType:e,allowJsdocNamePaths:t,pathGrammar:n}){return function(r,a,o){if(o==null||a>=w.NAME_PATH)return null;let s=r.lexer.current.type,c=r.lexer.next.type;if(!(s===`.`&&c!==`<`||s===`[`&&(e||o.type===`JsdocTypeName`)||t&&(s===`~`||s===`#`)))return null;let l,u=!1;r.consume(`.`)?l=`property`:r.consume(`[`)?(l=`property-brackets`,u=!0):r.consume(`~`)?l=`inner`:(r.consume(`#`),l=`instance`);let d=n===null?r:new T(n,r.lexer,r),f=d.parseIntermediateType(w.NAME_PATH);r.acceptLexerState(d);let p;switch(f.type){case`JsdocTypeName`:p={type:`JsdocTypeProperty`,value:f.value,meta:{quote:void 0}};break;case`JsdocTypeNumber`:p={type:`JsdocTypeProperty`,value:f.value.toString(10),meta:{quote:void 0}};break;case`JsdocTypeStringValue`:p={type:`JsdocTypeProperty`,value:f.value,meta:{quote:f.meta.quote}};break;case`JsdocTypeSpecialNamePath`:if(f.specialType===`event`)p=f;else throw new i(f,`Type 'JsdocTypeSpecialNamePath' is only allowed with specialType 'event'`);break;default:throw new i(f,`Expecting 'JsdocTypeName', 'JsdocTypeNumber', 'JsdocStringValue' or 'JsdocTypeSpecialNamePath'`)}if(u&&!r.consume(`]`)){let e=r.lexer.current;throw Error(`Unterminated square brackets. Next token is '${e.type}' with text '${e.text}'`)}return{type:`JsdocTypeNamePath`,left:_(o),right:p,pathType:l}}}function ie({allowedAdditionalTokens:e}){return O({name:`nameParslet`,accept:t=>t===`Identifier`||t===`this`||t===`new`||e.includes(t),parsePrefix:e=>{let{type:t,text:n}=e.lexer.current;return e.consume(t),{type:`JsdocTypeName`,value:n}}})}let ae=O({name:`stringValueParslet`,accept:e=>e===`StringValue`,parsePrefix:e=>{let t=e.lexer.current.text;return e.consume(`StringValue`),{type:`JsdocTypeStringValue`,value:t.slice(1,-1),meta:{quote:t[0]===`'`?`single`:`double`}}}});function oe({pathGrammar:e,allowedTypes:t}){return O({name:`specialNamePathParslet`,accept:e=>t.includes(e),parsePrefix:t=>{let n=t.lexer.current.type;if(t.consume(n),!t.consume(`:`))return{type:`JsdocTypeName`,value:n};let r,i=t.lexer.current;if(t.consume(`StringValue`))r={type:`JsdocTypeSpecialNamePath`,value:i.text.slice(1,-1),specialType:n,meta:{quote:i.text[0]===`'`?`single`:`double`}};else{let e=``,a=[`Identifier`,`@`,`/`];for(;a.some(e=>t.consume(e));)e+=i.text,i=t.lexer.current;r={type:`JsdocTypeSpecialNamePath`,value:e,specialType:n,meta:{quote:void 0}}}let a=new T(e,t.lexer,t),o=a.parseInfixIntermediateType(r,w.ALL);return t.acceptLexerState(a),_(o)}})}let F=[ie({allowedAdditionalTokens:[`external`,`module`]}),ae,A,P({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:null})],se=[...F,oe({allowedTypes:[`event`],pathGrammar:F})];function ce(e){let t;if(e.type===`JsdocTypeParameterList`)t=e.elements;else if(e.type===`JsdocTypeParenthesis`)t=[e.element];else throw new i(e);return t.map(e=>v(e))}function le(e){let t=ce(e);if(t.some(e=>e.type===`JsdocTypeKeyValue`))throw Error(`No parameter should be named`);return t}function ue({allowNamedParameters:e,allowNoReturnType:t,allowWithoutParenthesis:n,allowNewAsFunctionKeyword:r}){return O({name:`functionParslet`,accept:(e,t)=>e===`function`||r&&e===`new`&&t===`(`,parsePrefix:r=>{let i=r.consume(`new`);r.consume(`function`);let a=r.lexer.current.type===`(`;if(!a){if(!n)throw Error(`function is missing parameter list`);return{type:`JsdocTypeName`,value:`function`}}let o={type:`JsdocTypeFunction`,parameters:[],arrow:!1,constructor:i,parenthesis:a},s=r.parseIntermediateType(w.FUNCTION);if(e===void 0)o.parameters=le(s);else{if(i&&s.type===`JsdocTypeFunction`&&s.arrow)return o=s,o.constructor=!0,o;o.parameters=ce(s);for(let t of o.parameters)if(t.type===`JsdocTypeKeyValue`&&!e.includes(t.key))throw Error(`only allowed named parameters are ${e.join(`, `)} but got ${t.type}`)}if(r.consume(`:`))o.returnType=r.parseType(w.PREFIX);else if(!t)throw Error(`function is missing return type`);return o}})}function de({allowPostfix:e,allowEnclosingBrackets:t}){return O({name:`variadicParslet`,accept:e=>e===`...`,precedence:w.PREFIX,parsePrefix:e=>{e.consume(`...`);let r=t&&e.consume(`[`);try{let t=e.parseType(w.PREFIX);if(r&&!e.consume(`]`))throw Error(`Unterminated variadic type. Missing ']'`);return{type:`JsdocTypeVariadic`,element:_(t),meta:{position:`prefix`,squareBrackets:r}}}catch(e){if(e instanceof n){if(r)throw Error(`Empty square brackets for variadic are not allowed.`);return{type:`JsdocTypeVariadic`,meta:{position:void 0,squareBrackets:!1}}}else throw e}},parseInfix:e?(e,t)=>(e.consume(`...`),{type:`JsdocTypeVariadic`,element:_(t),meta:{position:`suffix`,squareBrackets:!1}}):void 0})}let fe=O({name:`symbolParslet`,accept:e=>e===`(`,precedence:w.SYMBOL,parseInfix:(e,t)=>{if(t.type!==`JsdocTypeName`)throw Error(`Symbol expects a name on the left side. (Reacting on '(')`);e.consume(`(`);let n={type:`JsdocTypeSymbol`,value:t.value};if(!e.consume(`)`)&&(n.element=x(e.parseIntermediateType(w.SYMBOL)),!e.consume(`)`)))throw Error(`Symbol does not end after value`);return n}}),pe=O({name:`arrayBracketsParslet`,precedence:w.ARRAY_BRACKETS,accept:(e,t)=>e===`[`&&t===`]`,parseInfix:(e,t)=>(e.consume(`[`),e.consume(`]`),{type:`JsdocTypeGeneric`,left:{type:`JsdocTypeName`,value:`Array`},elements:[_(t)],meta:{brackets:`square`,dot:!1}})});function me({objectFieldGrammar:e,allowKeyTypes:t}){return O({name:`objectParslet`,accept:e=>e===`{`,parsePrefix:n=>{n.consume(`{`);let r={type:`JsdocTypeObject`,meta:{separator:`comma`},elements:[]};if(!n.consume(`}`)){let a,o=new T(e,n.lexer,n);for(;;){o.acceptLexerState(n);let e=o.parseIntermediateType(w.OBJECT);n.acceptLexerState(o),e===void 0&&t&&(e=n.parseIntermediateType(w.OBJECT));let s=!1;if(e.type===`JsdocTypeNullable`&&(s=!0,e=e.element),e.type===`JsdocTypeNumber`||e.type===`JsdocTypeName`||e.type===`JsdocTypeStringValue`){let t;e.type===`JsdocTypeStringValue`&&(t=e.meta.quote),r.elements.push({type:`JsdocTypeObjectField`,key:e.value.toString(),right:void 0,optional:s,readonly:!1,meta:{quote:t}})}else if(e.type===`JsdocTypeObjectField`||e.type===`JsdocTypeJsdocObjectField`)r.elements.push(e);else throw new i(e);if(n.lexer.current.startOfLine)a=`linebreak`,n.consume(`,`)||n.consume(`;`);else if(n.consume(`,`))a=`comma`;else if(n.consume(`;`))a=`semicolon`;else break;if(n.lexer.current.type===`}`)break}if(r.meta.separator=a??`comma`,a===`linebreak`&&(r.meta.propertyIndent=` `),!n.consume(`}`))throw Error(`Unterminated record type. Missing '}'`)}return r}})}function I({allowSquaredProperties:e,allowKeyTypes:t,allowReadonly:n,allowOptional:r}){return O({name:`objectFieldParslet`,precedence:w.KEY_VALUE,accept:e=>e===`:`,parseInfix:(a,o)=>{let s=!1,c=!1;r&&o.type===`JsdocTypeNullable`&&(s=!0,o=o.element),n&&o.type===`JsdocTypeReadonlyProperty`&&(c=!0,o=o.element);let l=a.baseParser??a;if(l.acceptLexerState(a),o.type===`JsdocTypeNumber`||o.type===`JsdocTypeName`||o.type===`JsdocTypeStringValue`||C(o)){if(C(o)&&!e)throw new i(o);l.consume(`:`);let t;o.type===`JsdocTypeStringValue`&&(t=o.meta.quote);let n=l.parseType(w.KEY_VALUE);return a.acceptLexerState(l),{type:`JsdocTypeObjectField`,key:C(o)?o:o.value.toString(),right:n,optional:s,readonly:c,meta:{quote:t}}}else{if(!t)throw new i(o);l.consume(`:`);let e=l.parseType(w.KEY_VALUE);return a.acceptLexerState(l),{type:`JsdocTypeJsdocObjectField`,left:_(o),right:e}}}})}function he({allowOptional:e,allowVariadic:t}){return O({name:`keyValueParslet`,precedence:w.KEY_VALUE,accept:e=>e===`:`,parseInfix:(n,r)=>{let a=!1,o=!1;if(e&&r.type===`JsdocTypeNullable`&&(a=!0,r=r.element),t&&r.type===`JsdocTypeVariadic`&&r.element!==void 0&&(o=!0,r=r.element),r.type!==`JsdocTypeName`)throw new i(r);n.consume(`:`);let s=n.parseType(w.KEY_VALUE);return{type:`JsdocTypeKeyValue`,key:r.value,right:s,optional:a,variadic:o}}})}let ge=[...re,ue({allowWithoutParenthesis:!0,allowNamedParameters:[`this`,`new`],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),ae,oe({allowedTypes:[`module`,`external`,`event`],pathGrammar:se}),de({allowEnclosingBrackets:!0,allowPostfix:!0}),ie({allowedAdditionalTokens:[`keyof`]}),fe,pe,P({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:se})],_e=[...ge,me({objectFieldGrammar:[ie({allowedAdditionalTokens:[`typeof`,`module`,`in`]}),I({allowSquaredProperties:!1,allowKeyTypes:!0,allowOptional:!1,allowReadonly:!1}),...ge],allowKeyTypes:!0}),he({allowOptional:!0,allowVariadic:!0})],ve=O({name:`typeOfParslet`,accept:e=>e===`typeof`,parsePrefix:e=>(e.consume(`typeof`),{type:`JsdocTypeTypeof`,element:e.parseType(w.KEY_OF_TYPE_OF)})}),ye=[ie({allowedAdditionalTokens:[`typeof`,`module`,`keyof`,`event`,`external`,`in`]}),D,k,ae,A,I({allowSquaredProperties:!1,allowKeyTypes:!1,allowOptional:!1,allowReadonly:!1})],be=[...re,me({allowKeyTypes:!1,objectFieldGrammar:ye}),ie({allowedAdditionalTokens:[`event`,`external`,`in`]}),ve,ue({allowWithoutParenthesis:!1,allowNamedParameters:[`this`,`new`],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),de({allowEnclosingBrackets:!1,allowPostfix:!1}),ie({allowedAdditionalTokens:[`keyof`]}),oe({allowedTypes:[`module`],pathGrammar:se}),P({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:se}),he({allowOptional:!1,allowVariadic:!1}),fe],xe=O({name:`assertsParslet`,accept:e=>e===`asserts`,parsePrefix:e=>{e.consume(`asserts`);let t=e.parseIntermediateType(w.SYMBOL);if(t.type!==`JsdocTypeName`)throw new i(t,`A typescript asserts always has to have a name on the left side.`);return e.consume(`is`)?{type:`JsdocTypeAsserts`,left:t,right:_(e.parseIntermediateType(w.INFIX))}:{type:`JsdocTypeAssertsPlain`,element:t}}});function L({allowQuestionMark:e}){return O({name:`tupleParslet`,accept:e=>e===`[`,parsePrefix:e=>{e.consume(`[`);let t={type:`JsdocTypeTuple`,elements:[]};if(e.consume(`]`))return t;let n=e.parseIntermediateType(w.ALL);if(n.type===`JsdocTypeParameterList`?n.elements[0].type===`JsdocTypeKeyValue`?t.elements=n.elements.map(b):t.elements=n.elements.map(_):n.type===`JsdocTypeKeyValue`?t.elements=[b(n)]:t.elements=[_(n)],!e.consume(`]`))throw Error(`Unterminated '['`);if(t.elements.some(e=>e.type===`JsdocTypeUnknown`))throw Error(`Question mark in tuple not allowed`);return t}})}let Se=O({name:`keyOfParslet`,accept:e=>e===`keyof`,parsePrefix:e=>(e.consume(`keyof`),{type:`JsdocTypeKeyof`,element:_(e.parseType(w.KEY_OF_TYPE_OF))})}),Ce=O({name:`importParslet`,accept:e=>e===`import`,parsePrefix:e=>{if(e.consume(`import`),!e.consume(`(`))throw Error(`Missing parenthesis after import keyword`);let t=e.parseType(w.PREFIX);if(t.type!==`JsdocTypeStringValue`)throw Error(`Only string values are allowed as paths for imports`);if(!e.consume(`)`))throw Error(`Missing closing parenthesis after import keyword`);return{type:`JsdocTypeImport`,element:t}}}),we=O({name:`readonlyPropertyParslet`,accept:e=>e===`readonly`,parsePrefix:e=>(e.consume(`readonly`),{type:`JsdocTypeReadonlyProperty`,element:e.parseIntermediateType(w.KEY_VALUE)})}),R=O({name:`arrowFunctionParslet`,precedence:w.ARROW,accept:e=>e===`=>`,parseInfix:(e,t)=>(e.consume(`=>`),{type:`JsdocTypeFunction`,parameters:ce(t).map(y),arrow:!0,constructor:!1,parenthesis:!0,returnType:e.parseType(w.OBJECT)})}),Te=O({name:`genericArrowFunctionParslet`,accept:e=>e===`<`,parsePrefix:e=>{let t=[];e.consume(`<`);do{let n,r=e.parseIntermediateType(w.SYMBOL);if(r.type===`JsdocTypeOptional`&&(r=r.element,n=e.parseType(w.SYMBOL)),r.type!==`JsdocTypeName`)throw new i(r);let a;e.consume(`extends`)&&(a=e.parseType(w.SYMBOL),a.type===`JsdocTypeOptional`&&(a=a.element,n=e.parseType(w.SYMBOL)));let o={type:`JsdocTypeTypeParameter`,name:r};if(a!==void 0&&(o.constraint=a),n!==void 0&&(o.defaultValue=n),t.push(o),e.consume(`>`))break}while(e.consume(`,`));let n=e.parseIntermediateType(w.SYMBOL);return n.typeParameters=t,n}}),Ee=O({name:`intersectionParslet`,accept:e=>e===`&`,precedence:w.INTERSECTION,parseInfix:(e,t)=>{e.consume(`&`);let n=[];do n.push(e.parseType(w.INTERSECTION));while(e.consume(`&`));return{type:`JsdocTypeIntersection`,elements:[_(t),...n]}}}),De=O({name:`predicateParslet`,precedence:w.INFIX,accept:e=>e===`is`,parseInfix:(e,t)=>{if(t.type!==`JsdocTypeName`)throw new i(t,`A typescript predicate always has to have a name on the left side.`);return e.consume(`is`),{type:`JsdocTypePredicate`,left:t,right:_(e.parseIntermediateType(w.INFIX))}}}),z=O({name:`objectSquareBracketPropertyParslet`,accept:e=>e===`[`,parsePrefix:e=>{if(e.baseParser===void 0)throw Error(`Only allowed inside object grammar`);e.consume(`[`);let t=e.lexer.current.text;e.consume(`Identifier`);let n;if(e.consume(`:`)){let r=e.baseParser;r.acceptLexerState(e),n={type:`JsdocTypeIndexSignature`,key:t,right:r.parseType(w.INDEX_BRACKETS)},e.acceptLexerState(r)}else if(e.consume(`in`)){let r=e.baseParser;r.acceptLexerState(e),n={type:`JsdocTypeMappedType`,key:t,right:r.parseType(w.ARRAY_BRACKETS)},e.acceptLexerState(r)}else throw Error(`Missing ':' or 'in' inside square bracketed property.`);if(!e.consume(`]`))throw Error(`Unterminated square brackets`);return n}}),Oe=O({name:`readonlyArrayParslet`,accept:e=>e===`readonly`,parsePrefix:e=>(e.consume(`readonly`),{type:`JsdocTypeReadonlyArray`,element:S(e.parseIntermediateType(w.ALL))})}),ke=O({name:`conditionalParslet`,precedence:w.INFIX,accept:e=>e===`extends`,parseInfix:(e,t)=>{e.consume(`extends`);let n=e.parseType(w.KEY_OF_TYPE_OF).element,r=e.parseType(w.INFIX);return e.consume(`:`),{type:`JsdocTypeConditional`,checksType:_(t),extendsType:n,trueType:r,falseType:e.parseType(w.INFIX)}}}),Ae=[we,ie({allowedAdditionalTokens:[`typeof`,`module`,`keyof`,`event`,`external`,`in`]}),D,k,ae,A,I({allowSquaredProperties:!0,allowKeyTypes:!1,allowOptional:!0,allowReadonly:!0}),z],je=[...re,me({allowKeyTypes:!1,objectFieldGrammar:Ae}),Oe,ve,Se,Ce,ae,ue({allowWithoutParenthesis:!0,allowNoReturnType:!1,allowNamedParameters:[`this`,`new`,`args`],allowNewAsFunctionKeyword:!0}),L({allowQuestionMark:!1}),de({allowEnclosingBrackets:!1,allowPostfix:!1}),xe,ke,ie({allowedAdditionalTokens:[`event`,`external`,`in`]}),oe({allowedTypes:[`module`],pathGrammar:se}),pe,R,Te,P({allowSquareBracketsOnAnyType:!0,allowJsdocNamePaths:!1,pathGrammar:se}),Ee,De,he({allowVariadic:!0,allowOptional:!0})];function Me(e,t){switch(t){case`closure`:return new T(be,e).parse();case`jsdoc`:return new T(_e,e).parse();case`typescript`:return new T(je,e).parse()}}function B(e,t=[`typescript`,`closure`,`jsdoc`]){let n;for(let r of t)try{return Me(e,r)}catch(e){n=e}throw n}function Ne(e,t){let n=e[t.type];if(n===void 0)throw Error(`In this set of transform rules exists no rule for type ${t.type}.`);return n(t,t=>Ne(e,t))}function V(e){throw Error(`This transform is not available. Are you trying the correct parsing mode?`)}function H(e){let t={params:[]};for(let n of e.parameters)n.type===`JsdocTypeKeyValue`?n.key===`this`?t.this=n.right:n.key===`new`?t.new=n.right:t.params.push(n):t.params.push(n);return t}function Pe(e,t,n){return e===`prefix`?n+t:t+n}function Fe(e,t){switch(t){case`double`:return`"${e}"`;case`single`:return`'${e}'`;case void 0:return e}}function Ie(){return{JsdocTypeParenthesis:(e,t)=>`(${e.element===void 0?``:t(e.element)})`,JsdocTypeKeyof:(e,t)=>`keyof ${t(e.element)}`,JsdocTypeFunction:(e,t)=>{if(e.arrow){if(e.returnType===void 0)throw Error(`Arrow function needs a return type.`);let n=`${e.typeParameters===void 0?``:`<${e.typeParameters.map(t).join(`, `)??``}>`}(${e.parameters.map(t).join(`, `)}) => ${t(e.returnType)}`;return e.constructor&&(n=`new `+n),n}else{let n=e.constructor?`new`:`function`;return e.parenthesis&&(n+=`(${e.parameters.map(t).join(`, `)})`,e.returnType!==void 0&&(n+=`: ${t(e.returnType)}`)),n}},JsdocTypeName:e=>e.value,JsdocTypeTuple:(e,t)=>`[${e.elements.map(t).join(`, `)}]`,JsdocTypeVariadic:(e,t)=>e.meta.position===void 0?`...`:Pe(e.meta.position,t(e.element),`...`),JsdocTypeNamePath:(e,t)=>{let n=t(e.left),r=t(e.right);switch(e.pathType){case`inner`:return`${n}~${r}`;case`instance`:return`${n}#${r}`;case`property`:return`${n}.${r}`;case`property-brackets`:return`${n}[${r}]`}},JsdocTypeStringValue:e=>Fe(e.value,e.meta.quote),JsdocTypeAny:()=>`*`,JsdocTypeGeneric:(e,t)=>{if(e.meta.brackets===`square`){let n=e.elements[0],r=t(n);return n.type===`JsdocTypeUnion`||n.type===`JsdocTypeIntersection`?`(${r})[]`:`${r}[]`}else return`${t(e.left)}${e.meta.dot?`.`:``}<${e.infer===!0?`infer `:``}${e.elements.map(t).join(`, `)}>`},JsdocTypeImport:(e,t)=>`import(${t(e.element)})`,JsdocTypeObjectField:(e,t)=>{let n=``;return e.readonly&&(n+=`readonly `),typeof e.key==`string`?n+=Fe(e.key,e.meta.quote):n+=t(e.key),e.optional&&(n+=`?`),e.right===void 0?n:n+`: ${t(e.right)}`},JsdocTypeJsdocObjectField:(e,t)=>`${t(e.left)}: ${t(e.right)}`,JsdocTypeKeyValue:(e,t)=>{let n=e.key;return e.optional&&(n+=`?`),e.variadic&&(n=`...`+n),e.right===void 0?n:n+`: ${t(e.right)}`},JsdocTypeSpecialNamePath:e=>`${e.specialType}:${Fe(e.value,e.meta.quote)}`,JsdocTypeNotNullable:(e,t)=>Pe(e.meta.position,t(e.element),`!`),JsdocTypeNull:()=>`null`,JsdocTypeNullable:(e,t)=>Pe(e.meta.position,t(e.element),`?`),JsdocTypeNumber:e=>e.value.toString(),JsdocTypeObject:(e,t)=>`{${(e.meta.separator===`linebreak`&&e.elements.length>1?`
20
- `+(e.meta.propertyIndent??``):``)+e.elements.map(t).join(e.meta.separator===`comma`?`, `:e.meta.separator===`linebreak`?`
21
- `+(e.meta.propertyIndent??``):`; `)+(e.meta.separator===`linebreak`&&e.elements.length>1?`
22
- `:``)}}`,JsdocTypeOptional:(e,t)=>Pe(e.meta.position,t(e.element),`=`),JsdocTypeSymbol:(e,t)=>`${e.value}(${e.element===void 0?``:t(e.element)})`,JsdocTypeTypeof:(e,t)=>`typeof ${t(e.element)}`,JsdocTypeUndefined:()=>`undefined`,JsdocTypeUnion:(e,t)=>e.elements.map(t).join(` | `),JsdocTypeUnknown:()=>`?`,JsdocTypeIntersection:(e,t)=>e.elements.map(t).join(` & `),JsdocTypeProperty:e=>Fe(e.value,e.meta.quote),JsdocTypePredicate:(e,t)=>`${t(e.left)} is ${t(e.right)}`,JsdocTypeIndexSignature:(e,t)=>`[${e.key}: ${t(e.right)}]`,JsdocTypeMappedType:(e,t)=>`[${e.key} in ${t(e.right)}]`,JsdocTypeAsserts:(e,t)=>`asserts ${t(e.left)} is ${t(e.right)}`,JsdocTypeReadonlyArray:(e,t)=>`readonly ${t(e.element)}`,JsdocTypeAssertsPlain:(e,t)=>`asserts ${t(e.element)}`,JsdocTypeConditional:(e,t)=>`${t(e.checksType)} extends ${t(e.extendsType)} ? ${t(e.trueType)} : ${t(e.falseType)}`,JsdocTypeTypeParameter:(e,t)=>`${t(e.name)}${e.constraint===void 0?``:` extends ${t(e.constraint)}`}${e.defaultValue===void 0?``:` = ${t(e.defaultValue)}`}`}}let Le=Ie();function Re(e){return Ne(Le,e)}let ze=`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`.split(`.`);function Be(e){let t={type:`NameExpression`,name:e};return ze.includes(e)&&(t.reservedWord=!0),t}let U={JsdocTypeOptional:(e,t)=>{let n=t(e.element);return n.optional=!0,n},JsdocTypeNullable:(e,t)=>{let n=t(e.element);return n.nullable=!0,n},JsdocTypeNotNullable:(e,t)=>{let n=t(e.element);return n.nullable=!1,n},JsdocTypeVariadic:(e,t)=>{if(e.element===void 0)throw Error(`dots without value are not allowed in catharsis mode`);let n=t(e.element);return n.repeatable=!0,n},JsdocTypeAny:()=>({type:`AllLiteral`}),JsdocTypeNull:()=>({type:`NullLiteral`}),JsdocTypeStringValue:e=>Be(Fe(e.value,e.meta.quote)),JsdocTypeUndefined:()=>({type:`UndefinedLiteral`}),JsdocTypeUnknown:()=>({type:`UnknownLiteral`}),JsdocTypeFunction:(e,t)=>{let n=H(e),r={type:`FunctionType`,params:n.params.map(t)};return n.this!==void 0&&(r.this=t(n.this)),n.new!==void 0&&(r.new=t(n.new)),e.returnType!==void 0&&(r.result=t(e.returnType)),r},JsdocTypeGeneric:(e,t)=>({type:`TypeApplication`,applications:e.elements.map(e=>t(e)),expression:t(e.left)}),JsdocTypeSpecialNamePath:e=>Be(e.specialType+`:`+Fe(e.value,e.meta.quote)),JsdocTypeName:e=>e.value===`function`?{type:`FunctionType`,params:[]}:Be(e.value),JsdocTypeNumber:e=>Be(e.value.toString()),JsdocTypeObject:(e,t)=>{let n={type:`RecordType`,fields:[]};for(let r of e.elements)r.type!==`JsdocTypeObjectField`&&r.type!==`JsdocTypeJsdocObjectField`?n.fields.push({type:`FieldType`,key:t(r),value:void 0}):n.fields.push(t(r));return n},JsdocTypeObjectField:(e,t)=>{if(typeof e.key!=`string`)throw Error(`Index signatures and mapped types are not supported`);return{type:`FieldType`,key:Be(Fe(e.key,e.meta.quote)),value:e.right===void 0?void 0:t(e.right)}},JsdocTypeJsdocObjectField:(e,t)=>({type:`FieldType`,key:t(e.left),value:t(e.right)}),JsdocTypeUnion:(e,t)=>({type:`TypeUnion`,elements:e.elements.map(e=>t(e))}),JsdocTypeKeyValue:(e,t)=>({type:`FieldType`,key:Be(e.key),value:e.right===void 0?void 0:t(e.right)}),JsdocTypeNamePath:(e,t)=>{let n=t(e.left),r;r=e.right.type===`JsdocTypeSpecialNamePath`?t(e.right).name:Fe(e.right.value,e.right.meta.quote);let i=e.pathType===`inner`?`~`:e.pathType===`instance`?`#`:`.`;return Be(`${n.name}${i}${r}`)},JsdocTypeSymbol:e=>{let t=``,n=e.element,r=!1;return n?.type===`JsdocTypeVariadic`&&(n.meta.position===`prefix`?t=`...`:r=!0,n=n.element),n?.type===`JsdocTypeName`?t+=n.value:n?.type===`JsdocTypeNumber`&&(t+=n.value.toString()),r&&(t+=`...`),Be(`${e.value}(${t})`)},JsdocTypeParenthesis:(e,t)=>t(_(e.element)),JsdocTypeMappedType:V,JsdocTypeIndexSignature:V,JsdocTypeImport:V,JsdocTypeKeyof:V,JsdocTypeTuple:V,JsdocTypeTypeof:V,JsdocTypeIntersection:V,JsdocTypeProperty:V,JsdocTypePredicate:V,JsdocTypeAsserts:V,JsdocTypeReadonlyArray:V,JsdocTypeAssertsPlain:V,JsdocTypeConditional:V,JsdocTypeTypeParameter:V};function Ve(e){return Ne(U,e)}function He(e){switch(e){case void 0:return`none`;case`single`:return`single`;case`double`:return`double`}}function Ue(e){switch(e){case`inner`:return`INNER_MEMBER`;case`instance`:return`INSTANCE_MEMBER`;case`property`:return`MEMBER`;case`property-brackets`:return`MEMBER`}}function We(e,t){return t.length===2?{type:e,left:t[0],right:t[1]}:{type:e,left:t[0],right:We(e,t.slice(1))}}let W={JsdocTypeOptional:(e,t)=>({type:`OPTIONAL`,value:t(e.element),meta:{syntax:e.meta.position===`prefix`?`PREFIX_EQUAL_SIGN`:`SUFFIX_EQUALS_SIGN`}}),JsdocTypeNullable:(e,t)=>({type:`NULLABLE`,value:t(e.element),meta:{syntax:e.meta.position===`prefix`?`PREFIX_QUESTION_MARK`:`SUFFIX_QUESTION_MARK`}}),JsdocTypeNotNullable:(e,t)=>({type:`NOT_NULLABLE`,value:t(e.element),meta:{syntax:e.meta.position===`prefix`?`PREFIX_BANG`:`SUFFIX_BANG`}}),JsdocTypeVariadic:(e,t)=>{let n={type:`VARIADIC`,meta:{syntax:e.meta.position===`prefix`?`PREFIX_DOTS`:e.meta.position===`suffix`?`SUFFIX_DOTS`:`ONLY_DOTS`}};return e.element!==void 0&&(n.value=t(e.element)),n},JsdocTypeName:e=>({type:`NAME`,name:e.value}),JsdocTypeTypeof:(e,t)=>({type:`TYPE_QUERY`,name:t(e.element)}),JsdocTypeTuple:(e,t)=>({type:`TUPLE`,entries:e.elements.map(t)}),JsdocTypeKeyof:(e,t)=>({type:`KEY_QUERY`,value:t(e.element)}),JsdocTypeImport:e=>({type:`IMPORT`,path:{type:`STRING_VALUE`,quoteStyle:He(e.element.meta.quote),string:e.element.value}}),JsdocTypeUndefined:()=>({type:`NAME`,name:`undefined`}),JsdocTypeAny:()=>({type:`ANY`}),JsdocTypeFunction:(e,t)=>{let n=H(e),r={type:e.arrow?`ARROW`:`FUNCTION`,params:n.params.map(e=>{if(e.type===`JsdocTypeKeyValue`){if(e.right===void 0)throw Error(`Function parameter without ':' is not expected to be 'KEY_VALUE'`);return{type:`NAMED_PARAMETER`,name:e.key,typeName:t(e.right)}}else return t(e)}),new:null,returns:null};return n.this===void 0?e.arrow||(r.this=null):r.this=t(n.this),n.new!==void 0&&(r.new=t(n.new)),e.returnType!==void 0&&(r.returns=t(e.returnType)),r},JsdocTypeGeneric:(e,t)=>{let n={type:`GENERIC`,subject:t(e.left),objects:e.elements.map(t),meta:{syntax:e.meta.brackets===`square`?`SQUARE_BRACKET`:e.meta.dot?`ANGLE_BRACKET_WITH_DOT`:`ANGLE_BRACKET`}};return e.meta.brackets===`square`&&e.elements[0].type===`JsdocTypeFunction`&&!e.elements[0].parenthesis&&(n.objects[0]={type:`NAME`,name:`function`}),n},JsdocTypeObjectField:(e,t)=>{if(typeof e.key!=`string`)throw Error(`Index signatures and mapped types are not supported`);if(e.right===void 0)return{type:`RECORD_ENTRY`,key:e.key,quoteStyle:He(e.meta.quote),value:null,readonly:!1};let n=t(e.right);return e.optional&&(n={type:`OPTIONAL`,value:n,meta:{syntax:`SUFFIX_KEY_QUESTION_MARK`}}),{type:`RECORD_ENTRY`,key:e.key.toString(),quoteStyle:He(e.meta.quote),value:n,readonly:!1}},JsdocTypeJsdocObjectField:()=>{throw Error(`Keys may not be typed in jsdoctypeparser.`)},JsdocTypeKeyValue:(e,t)=>{if(e.right===void 0)return{type:`RECORD_ENTRY`,key:e.key,quoteStyle:`none`,value:null,readonly:!1};let n=t(e.right);return e.optional&&(n={type:`OPTIONAL`,value:n,meta:{syntax:`SUFFIX_KEY_QUESTION_MARK`}}),{type:`RECORD_ENTRY`,key:e.key,quoteStyle:`none`,value:n,readonly:!1}},JsdocTypeObject:(e,t)=>{let n=[];for(let r of e.elements)(r.type===`JsdocTypeObjectField`||r.type===`JsdocTypeJsdocObjectField`)&&n.push(t(r));return{type:`RECORD`,entries:n}},JsdocTypeSpecialNamePath:e=>{if(e.specialType!==`module`)throw Error(`jsdoctypeparser does not support type ${e.specialType} at this point.`);return{type:`MODULE`,value:{type:`FILE_PATH`,quoteStyle:He(e.meta.quote),path:e.value}}},JsdocTypeNamePath:(e,t)=>{let n=!1,r,i;e.right.type===`JsdocTypeSpecialNamePath`&&e.right.specialType===`event`?(n=!0,r=e.right.value,i=He(e.right.meta.quote)):(r=e.right.value,i=He(e.right.meta.quote));let a={type:Ue(e.pathType),owner:t(e.left),name:r,quoteStyle:i,hasEventPrefix:n};if(a.owner.type===`MODULE`){let e=a.owner;return a.owner=a.owner.value,e.value=a,e}else return a},JsdocTypeUnion:(e,t)=>We(`UNION`,e.elements.map(t)),JsdocTypeParenthesis:(e,t)=>({type:`PARENTHESIS`,value:t(_(e.element))}),JsdocTypeNull:()=>({type:`NAME`,name:`null`}),JsdocTypeUnknown:()=>({type:`UNKNOWN`}),JsdocTypeStringValue:e=>({type:`STRING_VALUE`,quoteStyle:He(e.meta.quote),string:e.value}),JsdocTypeIntersection:(e,t)=>We(`INTERSECTION`,e.elements.map(t)),JsdocTypeNumber:e=>({type:`NUMBER_VALUE`,number:e.value.toString()}),JsdocTypeSymbol:V,JsdocTypeProperty:V,JsdocTypePredicate:V,JsdocTypeMappedType:V,JsdocTypeIndexSignature:V,JsdocTypeAsserts:V,JsdocTypeReadonlyArray:V,JsdocTypeAssertsPlain:V,JsdocTypeConditional:V,JsdocTypeTypeParameter:V};function Ge(e){return Ne(W,e)}function Ke(){return{JsdocTypeIntersection:(e,t)=>({type:`JsdocTypeIntersection`,elements:e.elements.map(t)}),JsdocTypeGeneric:(e,t)=>({type:`JsdocTypeGeneric`,left:t(e.left),elements:e.elements.map(t),meta:{dot:e.meta.dot,brackets:e.meta.brackets}}),JsdocTypeNullable:e=>e,JsdocTypeUnion:(e,t)=>({type:`JsdocTypeUnion`,elements:e.elements.map(t)}),JsdocTypeUnknown:e=>e,JsdocTypeUndefined:e=>e,JsdocTypeTypeof:(e,t)=>({type:`JsdocTypeTypeof`,element:t(e.element)}),JsdocTypeSymbol:(e,t)=>{let n={type:`JsdocTypeSymbol`,value:e.value};return e.element!==void 0&&(n.element=t(e.element)),n},JsdocTypeOptional:(e,t)=>({type:`JsdocTypeOptional`,element:t(e.element),meta:{position:e.meta.position}}),JsdocTypeObject:(e,t)=>({type:`JsdocTypeObject`,meta:{separator:`comma`},elements:e.elements.map(t)}),JsdocTypeNumber:e=>e,JsdocTypeNull:e=>e,JsdocTypeNotNullable:(e,t)=>({type:`JsdocTypeNotNullable`,element:t(e.element),meta:{position:e.meta.position}}),JsdocTypeSpecialNamePath:e=>e,JsdocTypeObjectField:(e,t)=>({type:`JsdocTypeObjectField`,key:e.key,right:e.right===void 0?void 0:t(e.right),optional:e.optional,readonly:e.readonly,meta:e.meta}),JsdocTypeJsdocObjectField:(e,t)=>({type:`JsdocTypeJsdocObjectField`,left:t(e.left),right:t(e.right)}),JsdocTypeKeyValue:(e,t)=>({type:`JsdocTypeKeyValue`,key:e.key,right:e.right===void 0?void 0:t(e.right),optional:e.optional,variadic:e.variadic}),JsdocTypeImport:(e,t)=>({type:`JsdocTypeImport`,element:t(e.element)}),JsdocTypeAny:e=>e,JsdocTypeStringValue:e=>e,JsdocTypeNamePath:e=>e,JsdocTypeVariadic:(e,t)=>{let n={type:`JsdocTypeVariadic`,meta:{position:e.meta.position,squareBrackets:e.meta.squareBrackets}};return e.element!==void 0&&(n.element=t(e.element)),n},JsdocTypeTuple:(e,t)=>({type:`JsdocTypeTuple`,elements:e.elements.map(t)}),JsdocTypeName:e=>e,JsdocTypeFunction:(e,t)=>{let n={type:`JsdocTypeFunction`,arrow:e.arrow,parameters:e.parameters.map(t),constructor:e.constructor,parenthesis:e.parenthesis};return e.returnType!==void 0&&(n.returnType=t(e.returnType)),n},JsdocTypeKeyof:(e,t)=>({type:`JsdocTypeKeyof`,element:t(e.element)}),JsdocTypeParenthesis:(e,t)=>({type:`JsdocTypeParenthesis`,element:t(e.element)}),JsdocTypeProperty:e=>e,JsdocTypePredicate:(e,t)=>({type:`JsdocTypePredicate`,left:t(e.left),right:t(e.right)}),JsdocTypeIndexSignature:(e,t)=>({type:`JsdocTypeIndexSignature`,key:e.key,right:t(e.right)}),JsdocTypeMappedType:(e,t)=>({type:`JsdocTypeMappedType`,key:e.key,right:t(e.right)}),JsdocTypeAsserts:(e,t)=>({type:`JsdocTypeAsserts`,left:t(e.left),right:t(e.right)}),JsdocTypeReadonlyArray:(e,t)=>({type:`JsdocTypeReadonlyArray`,element:t(e.element)}),JsdocTypeAssertsPlain:(e,t)=>({type:`JsdocTypeAssertsPlain`,element:t(e.element)}),JsdocTypeConditional:(e,t)=>({type:`JsdocTypeConditional`,checksType:t(e.checksType),extendsType:t(e.extendsType),trueType:t(e.trueType),falseType:t(e.falseType)}),JsdocTypeTypeParameter:(e,t)=>({type:`JsdocTypeTypeParameter`,name:t(e.name),constraint:e.constraint===void 0?void 0:t(e.constraint),defaultValue:e.defaultValue===void 0?void 0:t(e.defaultValue)})}}let qe={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 Je(e,t,n,r,i){r?.(e,t,n);let a=qe[e.type];for(let t of a){let n=e[t];if(n!==void 0)if(Array.isArray(n))for(let a of n)Je(a,e,t,r,i);else Je(n,e,t,r,i)}i?.(e,t,n)}function Ye(e,t,n){Je(e,void 0,void 0,t,n)}e.catharsisTransform=Ve,e.identityTransformRules=Ke,e.jtpTransform=Ge,e.parse=Me,e.stringify=Re,e.stringifyRules=Ie,e.transform=Ne,e.traverse=Ye,e.tryParse=B,e.visitorKeys=qe}))}}),Qa=B({"../../node_modules/browser-dtector/browser-dtector.umd.min.js"(e,t){(function(n,r){typeof e==`object`&&typeof t<`u`?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).BrowserDetector=r()})(e,(function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,(i=r.key,a=void 0,typeof(a=(function(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)})(i,`string`))==`symbol`?a:String(a)),r)}var i,a}var t={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`},n={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`},r=function(e){var t=RegExp(`^-?\\d+(?:.\\d{0,${arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1}})?`),n=Number(e).toString().match(t);return n?n[0]:null},i=function(){return typeof window<`u`?window.navigator:null};return(function(){function a(e){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,a),this.userAgent=e||i()?.userAgent||null}var o,s,c;return o=a,s=[{key:`parseUserAgent`,value:function(e){var a,o={},s=e||this.userAgent||``,c=s.toLowerCase().replace(/\s\s+/g,` `),l=/(edge)\/([\w.]+)/.exec(c)||/(edg)[/]([\w.]+)/.exec(c)||/(opr)[/]([\w.]+)/.exec(c)||/(opt)[/]([\w.]+)/.exec(c)||/(fxios)[/]([\w.]+)/.exec(c)||/(edgios)[/]([\w.]+)/.exec(c)||/(jsdom)[/]([\w.]+)/.exec(c)||/(samsungbrowser)[/]([\w.]+)/.exec(c)||/(electron)[/]([\w.]+)/.exec(c)||/(chrome)[/]([\w.]+)/.exec(c)||/(crios)[/]([\w.]+)/.exec(c)||/(opios)[/]([\w.]+)/.exec(c)||/(version)(applewebkit)[/]([\w.]+).*(safari)[/]([\w.]+)/.exec(c)||/(webkit)[/]([\w.]+).*(version)[/]([\w.]+).*(safari)[/]([\w.]+)/.exec(c)||/(applewebkit)[/]([\w.]+).*(safari)[/]([\w.]+)/.exec(c)||/(webkit)[/]([\w.]+)/.exec(c)||/(opera)(?:.*version|)[/]([\w.]+)/.exec(c)||/(msie) ([\w.]+)/.exec(c)||/(fennec)[/]([\w.]+)/.exec(c)||c.indexOf(`trident`)>=0&&/(rv)(?::| )([\w.]+)/.exec(c)||c.indexOf(`compatible`)<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(c)||[],u=/(ipad)/.exec(c)||/(ipod)/.exec(c)||/(iphone)/.exec(c)||/(jsdom)/.exec(c)||/(windows phone)/.exec(c)||/(xbox)/.exec(c)||/(win)/.exec(c)||/(tablet)/.exec(c)||/(android)/.test(c)&&/(mobile)/.test(c)===!1&&[`androidTablet`]||/(android)/.exec(c)||/(mac)/.exec(c)||/(linux)/.exec(c)||/(cros)/.exec(c)||[],d=l[5]||l[3]||l[1]||null,f=u[0]||null,p=l[4]||l[2]||null,m=i();d===`chrome`&&typeof(m==null||(a=m.brave)==null?void 0:a.isBrave)==`function`&&(d=`brave`),d&&(o[d]=!0),f&&(o[f]=!0);var h=!!(o.tablet||o.android||o.androidTablet),g=!!(o.ipad||o.tablet||o.androidTablet),_=!!(o.android||o.androidTablet||o.tablet||o.ipad||o.ipod||o.iphone||o[`windows phone`]),v=!!(o.cros||o.mac||o.linux||o.win),y=!!(o.brave||o.chrome||o.crios||o.opr||o.safari||o.edg||o.electron),b=!!(o.msie||o.rv);return{name:t[d]??null,platform:n[f]??null,userAgent:s,version:p,shortVersion:p?r(parseFloat(p),2):null,isAndroid:h,isTablet:g,isMobile:_,isDesktop:v,isWebkit:y,isIE:b}}},{key:`getBrowserInfo`,value:function(){var e=this.parseUserAgent();return{name:e.name,platform:e.platform,userAgent:e.userAgent,version:e.version,shortVersion:e.shortVersion}}}],c=[{key:`VERSION`,get:function(){return`3.4.0`}}],s&&e(o.prototype,s),c&&e(o,c),Object.defineProperty(o,`prototype`,{writable:!1}),a})()}))}}),$a={};Ne($a,{ARGTYPES_INFO_REQUEST:()=>as,ARGTYPES_INFO_RESPONSE:()=>os,CHANNEL_CREATED:()=>ro,CHANNEL_WS_DISCONNECT:()=>no,CONFIG_ERROR:()=>io,CREATE_NEW_STORYFILE_REQUEST:()=>ao,CREATE_NEW_STORYFILE_RESPONSE:()=>oo,CURRENT_STORY_WAS_SET:()=>so,DOCS_PREPARED:()=>co,DOCS_RENDERED:()=>lo,FILE_COMPONENT_SEARCH_REQUEST:()=>uo,FILE_COMPONENT_SEARCH_RESPONSE:()=>fo,FORCE_REMOUNT:()=>mo,FORCE_RE_RENDER:()=>po,GHOST_STORIES_REQUEST:()=>ss,GHOST_STORIES_RESPONSE:()=>cs,GLOBALS_UPDATED:()=>ho,MANAGER_INERT_ATTRIBUTE_CHANGED:()=>ds,NAVIGATE_URL:()=>go,OPEN_IN_EDITOR_REQUEST:()=>ls,OPEN_IN_EDITOR_RESPONSE:()=>us,PLAY_FUNCTION_THREW_EXCEPTION:()=>_o,PRELOAD_ENTRIES:()=>yo,PREVIEW_BUILDER_PROGRESS:()=>xo,PREVIEW_INITIALIZED:()=>bo,PREVIEW_KEYDOWN:()=>So,REGISTER_SUBSCRIPTION:()=>Co,REQUEST_WHATS_NEW_DATA:()=>Qo,RESET_STORY_ARGS:()=>wo,RESULT_WHATS_NEW_DATA:()=>$o,SAVE_STORY_REQUEST:()=>rs,SAVE_STORY_RESPONSE:()=>is,SELECT_STORY:()=>To,SET_CONFIG:()=>Eo,SET_CURRENT_STORY:()=>Do,SET_FILTER:()=>Oo,SET_GLOBALS:()=>ko,SET_INDEX:()=>Ao,SET_STORIES:()=>jo,SET_WHATS_NEW_CACHE:()=>es,SHARED_STATE_CHANGED:()=>Mo,SHARED_STATE_SET:()=>No,SHARE_ISOLATE_MODE:()=>ps,SHARE_POPOVER_OPENED:()=>ms,SHARE_STORY_LINK:()=>fs,STORIES_COLLAPSE_ALL:()=>Po,STORIES_EXPAND_ALL:()=>Fo,STORY_ARGS_UPDATED:()=>Io,STORY_CHANGED:()=>Lo,STORY_ERRORED:()=>Ro,STORY_FINISHED:()=>Wo,STORY_HOT_UPDATED:()=>Jo,STORY_INDEX_INVALIDATED:()=>zo,STORY_MISSING:()=>Bo,STORY_PREPARED:()=>Vo,STORY_RENDERED:()=>Uo,STORY_RENDER_PHASE_CHANGED:()=>Ho,STORY_SPECIFIED:()=>Go,STORY_THREW_EXCEPTION:()=>Ko,STORY_UNCHANGED:()=>qo,TELEMETRY_ERROR:()=>ns,TOGGLE_WHATS_NEW_NOTIFICATIONS:()=>ts,UNHANDLED_ERRORS_WHILE_PLAYING:()=>vo,UPDATE_GLOBALS:()=>Yo,UPDATE_QUERY_PARAMS:()=>Xo,UPDATE_STORY_ARGS:()=>Zo,default:()=>to});var eo=(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.GHOST_STORIES_REQUEST=`ghostStoriesRequest`,e.GHOST_STORIES_RESPONSE=`ghostStoriesResponse`,e.OPEN_IN_EDITOR_REQUEST=`openInEditorRequest`,e.OPEN_IN_EDITOR_RESPONSE=`openInEditorResponse`,e.MANAGER_INERT_ATTRIBUTE_CHANGED=`managerInertAttributeChanged`,e.SHARE_STORY_LINK=`shareStoryLink`,e.SHARE_ISOLATE_MODE=`shareIsolateMode`,e.SHARE_POPOVER_OPENED=`sharePopoverOpened`,e))(eo||{}),to=eo,{CHANNEL_WS_DISCONNECT:no,CHANNEL_CREATED:ro,CONFIG_ERROR:io,CREATE_NEW_STORYFILE_REQUEST:ao,CREATE_NEW_STORYFILE_RESPONSE:oo,CURRENT_STORY_WAS_SET:so,DOCS_PREPARED:co,DOCS_RENDERED:lo,FILE_COMPONENT_SEARCH_REQUEST:uo,FILE_COMPONENT_SEARCH_RESPONSE:fo,FORCE_RE_RENDER:po,FORCE_REMOUNT:mo,GLOBALS_UPDATED:ho,NAVIGATE_URL:go,PLAY_FUNCTION_THREW_EXCEPTION:_o,UNHANDLED_ERRORS_WHILE_PLAYING:vo,PRELOAD_ENTRIES:yo,PREVIEW_INITIALIZED:bo,PREVIEW_BUILDER_PROGRESS:xo,PREVIEW_KEYDOWN:So,REGISTER_SUBSCRIPTION:Co,RESET_STORY_ARGS:wo,SELECT_STORY:To,SET_CONFIG:Eo,SET_CURRENT_STORY:Do,SET_FILTER:Oo,SET_GLOBALS:ko,SET_INDEX:Ao,SET_STORIES:jo,SHARED_STATE_CHANGED:Mo,SHARED_STATE_SET:No,STORIES_COLLAPSE_ALL:Po,STORIES_EXPAND_ALL:Fo,STORY_ARGS_UPDATED:Io,STORY_CHANGED:Lo,STORY_ERRORED:Ro,STORY_INDEX_INVALIDATED:zo,STORY_MISSING:Bo,STORY_PREPARED:Vo,STORY_RENDER_PHASE_CHANGED:Ho,STORY_RENDERED:Uo,STORY_FINISHED:Wo,STORY_SPECIFIED:Go,STORY_THREW_EXCEPTION:Ko,STORY_UNCHANGED:qo,STORY_HOT_UPDATED:Jo,UPDATE_GLOBALS:Yo,UPDATE_QUERY_PARAMS:Xo,UPDATE_STORY_ARGS:Zo,REQUEST_WHATS_NEW_DATA:Qo,RESULT_WHATS_NEW_DATA:$o,SET_WHATS_NEW_CACHE:es,TOGGLE_WHATS_NEW_NOTIFICATIONS:ts,TELEMETRY_ERROR:ns,SAVE_STORY_REQUEST:rs,SAVE_STORY_RESPONSE:is,ARGTYPES_INFO_REQUEST:as,ARGTYPES_INFO_RESPONSE:os,GHOST_STORIES_REQUEST:ss,GHOST_STORIES_RESPONSE:cs,OPEN_IN_EDITOR_REQUEST:ls,OPEN_IN_EDITOR_RESPONSE:us,MANAGER_INERT_ATTRIBUTE_CHANGED:ds,SHARE_STORY_LINK:fs,SHARE_ISOLATE_MODE:ps,SHARE_POPOVER_OPENED:ms}=eo,hs={};Ne(hs,{global:()=>G});var G=(()=>{let e;return e=typeof window<`u`?window:typeof globalThis<`u`?globalThis:typeof global<`u`?global:typeof self<`u`?self:{},e})(),gs={"@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__`},_s=Object.keys(gs),vs={};Ne(vs,{Channel:()=>Es,HEARTBEAT_INTERVAL:()=>kd,HEARTBEAT_MAX_LATENCY:()=>Ad,PostMessageTransport:()=>Dd,WebsocketTransport:()=>jd,createBrowserChannel:()=>Pd,default:()=>Nd});function K(e){var t=[...arguments].slice(1),n=Array.from(typeof e==`string`?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,``);var r=n.reduce(function(e,t){var n=t.match(/\n([\t ]+|(?!\s).)/g);return n?e.concat(n.map(function(e){return e.match(/[\t ]/g)?.length??0})):e},[]);if(r.length){var i=RegExp(`
23
- [ ]{`+Math.min.apply(Math,r)+`}`,`g`);n=n.map(function(e){return e.replace(i,`
24
- `)})}n[0]=n[0].replace(/^\r?\n/,``);var a=n[0];return t.forEach(function(e,t){var r=a.match(/(?:^|\n)( *)$/),i=r?r[1]:``,o=e;typeof e==`string`&&e.includes(`
25
- `)&&(o=String(e).split(`
26
- `).map(function(e,t){return t===0?e:``+i+e}).join(`
27
- `)),a+=o+n[t+1]}),a}var ys=new Map,bs=`UNIVERSAL_STORE:`,xs={PENDING:`PENDING`,RESOLVED:`RESOLVED`,REJECTED:`REJECTED`},Ss=class e{constructor(t,n){if(this.debugging=!1,this.listeners=new Map([[`*`,new Set]]),this.getState=()=>(this.debug(`getState`,{state:this.state}),this.state),this.subscribe=(e,t)=>{let n=typeof e==`function`,r=n?`*`:e,i=n?e:t;if(this.debug(`subscribe`,{eventType:r,listener:i}),!i)throw 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(r)||this.listeners.set(r,new Set),this.listeners.get(r).add(i),()=>{this.debug(`unsubscribe`,{eventType:r,listener:i}),this.listeners.has(r)&&(this.listeners.get(r).delete(i),this.listeners.get(r)?.size===0&&this.listeners.delete(r))}},this.send=t=>{if(this.debug(`send`,{event:t}),this.status!==e.Status.READY)throw TypeError(K`Cannot send event before store is ready. You can get the current status with store.status,
28
- or await store.readyPromise to wait for the store to be ready before sending events.
29
- ${JSON.stringify({event:t,id:this.id,actor:this.actor,environment:this.environment},null,2)}`);this.emitToListeners(t,{actor:this.actor}),this.emitToChannel(t,{actor:this.actor})},this.debugging=t.debug??!1,!e.isInternalConstructing)throw 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=`${bs}${this.id}`,this.debug(`constructor`,{options:t,environmentOverrides:n,channelEventName:this.channelEventName}),this.actor.type===e.ActorType.LEADER)this.syncing={state:xs.RESOLVED,promise:Promise.resolve()};else{let e,t,n=new Promise((n,r)=>{e=()=>{this.syncing.state===xs.PENDING&&(this.syncing.state=xs.RESOLVED,n())},t=e=>{this.syncing.state===xs.PENDING&&(this.syncing.state=xs.REJECTED,r(e))}});this.syncing={state:xs.PENDING,promise:n,resolve:e,reject:t}}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=n?.channel??e.preparation.channel,this.environment=n?.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,n,r=new Promise((e,r)=>{t=t=>{e(t)},n=(...e)=>{r(e)}});e.preparation={resolve:t,reject:n,promise:r}}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 xs.PENDING:case void 0:return e.Status.SYNCING;case xs.REJECTED:return e.Status.ERROR;case xs.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 TypeError(`id is required and must be a string, when creating a UniversalStore`);t.debug&&console.debug(K`[UniversalStore]
30
- create`,{options:t});let n=ys.get(t.id);if(n)return console.warn(K`UniversalStore with id "${t.id}" already exists in this environment, re-using existing.
31
- You should reuse the existing instance instead of trying to create a new one.`),n;e.isInternalConstructing=!0;let r=new e(t);return ys.set(t.id,r),r}static __prepare(t,n){e.preparation.channel=t,e.preparation.environment=n,e.preparation.resolve({channel:t,environment:n})}setState(t){let n=this.state,r=typeof t==`function`?t(n):t;if(this.debug(`setState`,{newState:r,previousState:n,updater:t}),this.status!==e.Status.READY)throw TypeError(K`Cannot set state before store is ready. You can get the current status with store.status,
32
- or await store.readyPromise to wait for the store to be ready before sending events.
33
- ${JSON.stringify({newState:r,id:this.id,actor:this.actor,environment:this.environment},null,2)}`);this.state=r;let i={type:e.InternalEventType.SET_STATE,payload:{state:r,previousState:n}};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:e},n)=>{t(e.state,e.previousState,n)})}emitToChannel(e,t){this.debug(`emitToChannel`,{event:e,eventInfo:t,channel:!!this.channel}),this.channel?.emit(this.channelEventName,{event:e,eventInfo:t})}prepareThis({channel:t,environment:n}){this.channel=t,this.environment=n,this.debug(`prepared`,{channel:!!t,environment:n}),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(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(e,t){let n=this.listeners.get(e.type),r=this.listeners.get(`*`);this.debug(`emitToListeners`,{event:e,eventInfo:t,eventTypeListeners:n,everythingListeners:r}),[...n??[],...r??[]].forEach(n=>n(e,t))}handleChannelEvents(t){let{event:n,eventInfo:r}=t;if([r.actor.id,r.forwardingActor?.id].includes(this.actor.id)){this.debug(`handleChannelEvents: Ignoring event from self`,{channelEvent:t});return}else if(this.syncing?.state===xs.PENDING&&n.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(n.type){case e.InternalEventType.EXISTING_STATE_REQUEST:i=!1;let t={type:e.InternalEventType.EXISTING_STATE_RESPONSE,payload:this.state};this.debug(`handleChannelEvents: responding to existing state request`,{responseEvent:t}),this.emitToChannel(t,{actor:this.actor}),this.emitToListeners(t,{actor:this.actor});break;case e.InternalEventType.LEADER_CREATED:i=!1,this.syncing.state=xs.REJECTED,this.debug(`handleChannelEvents: erroring due to second leader being created`,{event:n}),console.error(K`Detected multiple UniversalStore leaders created with the same id "${this.id}".
34
- Only one leader can exists at a time, your stores are now in an invalid state.
35
- Leaders detected:
36
- this: ${JSON.stringify(this.actor,null,2)}
37
- other: ${JSON.stringify(r.actor,null,2)}`);break}i&&(this.debug(`handleChannelEvents: forwarding event`,{channelEvent:t}),this.emitToChannel(n,{actor:r.actor,forwardingActor:this.actor}))}if(this.actor.type===e.ActorType.FOLLOWER)switch(n.type){case e.InternalEventType.EXISTING_STATE_RESPONSE:if(this.debug(`handleChannelEvents: Setting state from leader's existing state response`,{event:n}),this.syncing?.state!==xs.PENDING)break;this.syncing.resolve?.();let t={type:e.InternalEventType.SET_STATE,payload:{state:n.payload,previousState:this.state}};this.state=n.payload,this.emitToListeners(t,r);break}switch(n.type){case e.InternalEventType.SET_STATE:this.debug(`handleChannelEvents: Setting state`,{event:n}),this.state=n.payload.state;break}this.emitToListeners(n,{actor:r.actor})}debug(t,n){this.debugging&&console.debug(K`[UniversalStore::${this.id}::${this.environment??e.Environment.UNKNOWN}]
38
- ${t}`,JSON.stringify({data:n,actor:this.actor,state:this.state,status:this.status},null,2))}static __reset(){e.preparation.reject(Error(`reset`)),e.setupPreparationPromise(),e.isInternalConstructing=!1}};Ss.ActorType={LEADER:`LEADER`,FOLLOWER:`FOLLOWER`},Ss.Environment={SERVER:`SERVER`,MANAGER:`MANAGER`,PREVIEW:`PREVIEW`,UNKNOWN:`UNKNOWN`,MOCK:`MOCK`},Ss.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`},Ss.Status={UNPREPARED:`UNPREPARED`,SYNCING:`SYNCING`,READY:`READY`,ERROR:`ERROR`},Ss.isInternalConstructing=!1,Ss.setupPreparationPromise();var Cs=Ss,ws=e=>e.transports!==void 0,Ts=()=>Math.random().toString(16).slice(2),Es=class{constructor(e={}){this.sender=Ts(),this.events={},this.data={},this.transports=[],this.isAsync=e.async||!1,ws(e)?(this.transports=e.transports||[],this.transports.forEach(e=>{e.setHandler(e=>this.handleEvent(e))})):this.transports=e.transport?[e.transport]:[],this.transports.forEach(e=>{e.setHandler(e=>this.handleEvent(e))})}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 n={type:e,args:t,from:this.sender},r={};t.length>=1&&t[0]&&t[0].options&&(r=t[0].options);let i=()=>{this.transports.forEach(e=>{e.send(n,r)}),this.handleEvent(n)};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 n=this.onceListener(e,t);this.addListener(e,n)}removeAllListeners(e){e?this.events[e]&&delete this.events[e]:this.events={}}removeListener(e,t){let n=this.listeners(e);n&&(this.events[e]=n.filter(e=>e!==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(t=>{t.apply(e,e.args)}),this.data[e.type]=e.args}onceListener(e,t){let n=(...r)=>(this.removeListener(e,n),t(...r));return n}},Ds={};Ne(Ds,{deprecate:()=>Ps,logger:()=>js,once:()=>Ns,pretty:()=>Fs});var{LOGLEVEL:Os}=G,ks={trace:1,debug:2,info:3,warn:4,error:5,silent:10},As=ks[Os]||ks.info,js={trace:(e,...t)=>{As<=ks.trace&&console.trace(e,...t)},debug:(e,...t)=>{As<=ks.debug&&console.debug(e,...t)},info:(e,...t)=>{As<=ks.info&&console.info(e,...t)},warn:(e,...t)=>{As<=ks.warn&&console.warn(e,...t)},error:(e,...t)=>{As<=ks.error&&console.error(e,...t)},log:(e,...t)=>{As<ks.silent&&console.log(e,...t)}},Ms=new Set,Ns=e=>(t,...n)=>{if(!Ms.has(t))return Ms.add(t),js[e](t,...n)};Ns.clear=()=>Ms.clear(),Ns.trace=Ns(`trace`),Ns.debug=Ns(`debug`),Ns.info=Ns(`info`),Ns.warn=Ns(`warn`),Ns.error=Ns(`error`),Ns.log=Ns(`log`);var Ps=Ns(`warn`),Fs=e=>(...t)=>{let n=[];if(t.length){let e=/<span\s+style=(['"])([^'"]*)\1\s*>/gi,r=/<\/span>/gi,i;for(n.push(t[0].replace(e,`%c`).replace(r,`%c`));i=e.exec(t[0]);)n.push(i[2]),n.push(``);for(let e=1;e<t.length;e++)n.push(t[e])}js[e].apply(js,n)};Fs.trace=Fs(`trace`),Fs.debug=Fs(`debug`),Fs.info=Fs(`info`),Fs.warn=Fs(`warn`),Fs.error=Fs(`error`);var Is=Object.create,Ls=Object.defineProperty,Rs=Object.getOwnPropertyDescriptor,zs=Object.getOwnPropertyNames,Bs=Object.getPrototypeOf,Vs=Object.prototype.hasOwnProperty,Hs=(e,t)=>function(){return t||(0,e[zs(e)[0]])((t={exports:{}}).exports,t),t.exports},Us=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of zs(t))!Vs.call(e,i)&&i!==n&&Ls(e,i,{get:()=>t[i],enumerable:!(r=Rs(t,i))||r.enumerable});return e},Ws=(e,t,n)=>(n=e==null?{}:Is(Bs(e)),Us(t||!e||!e.__esModule?Ls(n,`default`,{value:e,enumerable:!0}):n,e)),Gs=[`bubbles`,`cancelBubble`,`cancelable`,`composed`,`currentTarget`,`defaultPrevented`,`eventPhase`,`isTrusted`,`returnValue`,`srcElement`,`target`,`timeStamp`,`type`],Ks=[`detail`];function qs(e){let t=Gs.filter(t=>e[t]!==void 0).reduce((t,n)=>(t[n]=e[n],t),{});if(e instanceof CustomEvent)for(let n of Ks.filter(t=>e[t]!==void 0))t[n]=e[n];return t}var Js=Hs({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),Ys=Hs({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),Xs=Hs({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),Zs=Hs({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),Qs=Hs({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),$s=Hs({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),ec=Hs({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),tc=Hs({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),nc=Hs({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),rc=Hs({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),ic=Hs({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),ac=Hs({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),oc=Hs({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),sc=Hs({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),cc=Hs({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(e,t){t.exports=Number.isNaN||function(e){return e!==e}}}),lc=Hs({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var n=cc();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}}}),uc=Hs({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),dc=Hs({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var n=uc();if(n)try{n([],`length`)}catch{n=null}t.exports=n}}),fc=Hs({"node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(e,t){var n=Object.defineProperty||!1;if(n)try{n({},`a`,{value:1})}catch{n=!1}t.exports=n}}),pc=Hs({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if(typeof Symbol!=`function`||typeof Object.getOwnPropertySymbols!=`function`)return!1;if(typeof Symbol.iterator==`symbol`)return!0;var e={},t=Symbol(`test`),n=Object(t);if(typeof t==`string`||Object.prototype.toString.call(t)!==`[object Symbol]`||Object.prototype.toString.call(n)!==`[object Symbol]`)return!1;var r=42;for(var i in e[t]=r,e)return!1;if(typeof Object.keys==`function`&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0}}}),mc=Hs({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var n=typeof Symbol<`u`&&Symbol,r=pc();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}}}),q=Hs({"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}}),hc=Hs({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){t.exports=Js().getPrototypeOf||null}}),gc=Hs({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(e,t){var n=`Function.prototype.bind called on incompatible `,r=Object.prototype.toString,i=Math.max,a=`[object Function]`,o=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},s=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},c=function(e,t){for(var n=``,r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};t.exports=function(e){var t=this;if(typeof t!=`function`||r.apply(t)!==a)throw TypeError(n+t);for(var l=s(arguments,1),u,d=function(){if(this instanceof u){var n=t.apply(this,o(l,arguments));return Object(n)===n?n:this}return t.apply(e,o(l,arguments))},f=i(0,t.length-l.length),p=[],m=0;m<f;m++)p[m]=`$`+m;if(u=Function(`binder`,`return function (`+c(p,`,`)+`){ return binder.apply(this,arguments); }`)(d),t.prototype){var h=function(){};h.prototype=t.prototype,u.prototype=new h,h.prototype=null}return u}}}),_c=Hs({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var n=gc();t.exports=Function.prototype.bind||n}}),vc=Hs({"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}}),yc=Hs({"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}}),bc=Hs({"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}}),xc=Hs({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var n=_c(),r=yc(),i=vc();t.exports=bc()||n.call(i,r)}}),Sc=Hs({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var n=_c(),r=ec(),i=vc(),a=xc();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}}}),Cc=Hs({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var n=Sc(),r=dc(),i;try{i=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var a=!!i&&r&&r(Object.prototype,`__proto__`),o=Object,s=o.getPrototypeOf;t.exports=a&&typeof a.get==`function`?n([a.get]):typeof s==`function`?(function(e){return s(e==null?e:o(e))}):!1}}),wc=Hs({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var n=q(),r=hc(),i=Cc();t.exports=n?function(e){return n(e)}:r?function(e){if(!e||typeof e!=`object`&&typeof e!=`function`)throw TypeError(`getProto: not an object`);return r(e)}:i?function(e){return i(e)}:null}}),Tc=Hs({"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e,t){var n=Function.prototype.call,r=Object.prototype.hasOwnProperty;t.exports=_c().call(n,r)}}),Ec=Hs({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var n,r=Js(),i=Ys(),a=Xs(),o=Zs(),s=Qs(),c=$s(),l=ec(),u=tc(),d=nc(),f=rc(),p=ic(),m=ac(),h=oc(),g=sc(),_=lc(),v=Function,y=function(e){try{return v(`"use strict"; return (`+e+`).constructor;`)()}catch{}},b=dc(),x=fc(),S=function(){throw new l},C=b?(function(){try{return arguments.callee,S}catch{try{return b(arguments,`callee`).get}catch{return S}}})():S,w=mc()(),T=wc(),E=hc(),D=q(),O=yc(),k=vc(),A={},j=typeof Uint8Array>`u`||!T?n:T(Uint8Array),M={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?n:ArrayBuffer,"%ArrayIteratorPrototype%":w&&T?T([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":A,"%AsyncGenerator%":A,"%AsyncGeneratorFunction%":A,"%AsyncIteratorPrototype%":A,"%Atomics%":typeof Atomics>`u`?n:Atomics,"%BigInt%":typeof BigInt>`u`?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>`u`?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>`u`?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>`u`?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>`u`?n:Float16Array,"%Float32Array%":typeof Float32Array>`u`?n:Float32Array,"%Float64Array%":typeof Float64Array>`u`?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>`u`?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":A,"%Int8Array%":typeof Int8Array>`u`?n:Int8Array,"%Int16Array%":typeof Int16Array>`u`?n:Int16Array,"%Int32Array%":typeof Int32Array>`u`?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&T?T(T([][Symbol.iterator]())):n,"%JSON%":typeof JSON==`object`?JSON:n,"%Map%":typeof Map>`u`?n:Map,"%MapIteratorPrototype%":typeof Map>`u`||!w||!T?n:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?n:Promise,"%Proxy%":typeof Proxy>`u`?n:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":typeof Reflect>`u`?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?n:Set,"%SetIteratorPrototype%":typeof Set>`u`||!w||!T?n:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&T?T(``[Symbol.iterator]()):n,"%Symbol%":w?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":C,"%TypedArray%":j,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>`u`?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>`u`?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>`u`?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>`u`?n:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>`u`?n:WeakMap,"%WeakRef%":typeof WeakRef>`u`?n:WeakRef,"%WeakSet%":typeof WeakSet>`u`?n:WeakSet,"%Function.prototype.call%":k,"%Function.prototype.apply%":O,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":E,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":h,"%Math.round%":g,"%Math.sign%":_,"%Reflect.getPrototypeOf%":D};if(T)try{null.error}catch(e){ee=T(T(e)),M[`%Error.prototype%`]=ee}var ee,N=function e(t){var n;if(t===`%AsyncFunction%`)n=y(`async function () {}`);else if(t===`%GeneratorFunction%`)n=y(`function* () {}`);else if(t===`%AsyncGeneratorFunction%`)n=y(`async function* () {}`);else if(t===`%AsyncGenerator%`){var r=e(`%AsyncGeneratorFunction%`);r&&(n=r.prototype)}else if(t===`%AsyncIteratorPrototype%`){var i=e(`%AsyncGenerator%`);i&&T&&(n=T(i.prototype))}return M[t]=n,n},te={__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`]},ne=_c(),re=Tc(),P=ne.call(k,Array.prototype.concat),ie=ne.call(O,Array.prototype.splice),ae=ne.call(k,String.prototype.replace),oe=ne.call(k,String.prototype.slice),F=ne.call(k,RegExp.prototype.exec),se=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ce=/\\(\\)?/g,le=function(e){var t=oe(e,0,1),n=oe(e,-1);if(t===`%`&&n!==`%`)throw new c("invalid intrinsic syntax, expected closing `%`");if(n===`%`&&t!==`%`)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return ae(e,se,function(e,t,n,i){r[r.length]=n?ae(i,ce,`$1`):t||e}),r},ue=function(e,t){var n=e,r;if(re(te,n)&&(r=te[n],n=`%`+r[0]+`%`),re(M,n)){var i=M[n];if(i===A&&(i=N(n)),typeof i>`u`&&!t)throw new l(`intrinsic `+e+` exists, but is not available. Please file an issue!`);return{alias:r,name:n,value:i}}throw new c(`intrinsic `+e+` does not exist!`)};t.exports=function(e,t){if(typeof e!=`string`||e.length===0)throw new l(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof t!=`boolean`)throw new l(`"allowMissing" argument must be a boolean`);if(F(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=le(e),r=n.length>0?n[0]:``,i=ue(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,u=i.alias;u&&(r=u[0],ie(n,P([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=oe(p,0,1),h=oe(p,-1);if((m===`"`||m===`'`||m==="`"||h===`"`||h===`'`||h==="`")&&m!==h)throw new c(`property names with quotes must have matching quotes`);if((p===`constructor`||!f)&&(s=!0),r+=`.`+p,a=`%`+r+`%`,re(M,a))o=M[a];else if(o!=null){if(!(p in o)){if(!t)throw new l(`base intrinsic for `+e+` exists, but the property is not available.`);return}if(b&&d+1>=n.length){var g=b(o,p);f=!!g,o=f&&`get`in g&&!(`originalValue`in g.get)?g.get:o[p]}else f=re(o,p),o=o[p];f&&!s&&(M[a]=o)}}return o}}}),Dc=Hs({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var n=Ec(),r=Sc(),i=r([n(`%String.prototype.indexOf%`)]);t.exports=function(e,t){var a=n(e,!!t);return typeof a==`function`&&i(e,`.prototype.`)>-1?r([a]):a}}}),Oc=Hs({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var n=pc();t.exports=function(){return n()&&!!Symbol.toStringTag}}}),kc=Hs({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var n=Dc(),r=Oc()(),i=Tc(),a=dc(),o;r?(s=n(`RegExp.prototype.exec`),c={},l=function(){throw c},u={toString:l,valueOf:l},typeof Symbol.toPrimitive==`symbol`&&(u[Symbol.toPrimitive]=l),o=function(e){if(!e||typeof e!=`object`)return!1;var t=a(e,`lastIndex`);if(!(t&&i(t,`value`)))return!1;try{s(e,u)}catch(e){return e===c}}):(d=n(`Object.prototype.toString`),f=`[object RegExp]`,o=function(e){return!e||typeof e!=`object`&&typeof e!=`function`?!1:d(e)===f});var s,c,l,u,d,f;t.exports=o}}),Ac=Hs({"node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js"(e,t){t.exports=r;var n=Object.prototype.toString;function r(e){if(!e)return!1;var t=n.call(e);return t===`[object Function]`||typeof e==`function`&&t!==`[object RegExp]`||typeof window<`u`&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)}}}),jc=Hs({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var n=Dc(),r=kc(),i=n(`RegExp.prototype.exec`),a=ec();t.exports=function(e){if(!r(e))throw new a("`regex` must be a RegExp");return function(t){return i(e,t)!==null}}}}),Mc=Hs({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var n=Dc(),r=n(`Object.prototype.toString`),i=mc()(),a=jc();i?(o=n(`Symbol.prototype.toString`),s=a(/^Symbol\(.*\)$/),c=function(e){return typeof e.valueOf()==`symbol`?s(o(e)):!1},t.exports=function(e){if(typeof e==`symbol`)return!0;if(!e||typeof e!=`object`||r(e)!==`[object Symbol]`)return!1;try{return c(e)}catch{return!1}}):t.exports=function(e){return!1};var o,s,c}}),Nc=Ws(kc()),Pc=Ws(Ac()),Fc=Ws(Mc());function Ic(e){return typeof e==`object`&&!!e&&Array.isArray(e)===!1}var Lc=typeof global==`object`&&global&&global.Object===Object&&global,Rc=typeof self==`object`&&self&&self.Object===Object&&self,zc=Lc||Rc||Function(`return this`)(),Bc=zc.Symbol,Vc=Object.prototype,Hc=Vc.hasOwnProperty,Uc=Vc.toString,Wc=Bc?Bc.toStringTag:void 0;function Gc(e){var t=Hc.call(e,Wc),n=e[Wc];try{e[Wc]=void 0;var r=!0}catch{}var i=Uc.call(e);return r&&(t?e[Wc]=n:delete e[Wc]),i}var Kc=Gc,qc=Object.prototype.toString;function Jc(e){return qc.call(e)}var Yc=Jc,Xc=`[object Null]`,Zc=`[object Undefined]`,Qc=Bc?Bc.toStringTag:void 0;function $c(e){return e==null?e===void 0?Zc:Xc:Qc&&Qc in Object(e)?Kc(e):Yc(e)}var el=$c;function tl(e){return typeof e==`object`&&!!e}var nl=tl,rl=`[object Symbol]`;function il(e){return typeof e==`symbol`||nl(e)&&el(e)==rl}var al=il;function ol(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var sl=ol,cl=Array.isArray,ll=1/0,ul=Bc?Bc.prototype:void 0,dl=ul?ul.toString:void 0;function fl(e){if(typeof e==`string`)return e;if(cl(e))return sl(e,fl)+``;if(al(e))return dl?dl.call(e):``;var t=e+``;return t==`0`&&1/e==-ll?`-0`:t}var pl=fl;function ml(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}var hl=ml,gl=`[object AsyncFunction]`,_l=`[object Function]`,vl=`[object GeneratorFunction]`,yl=`[object Proxy]`;function bl(e){if(!hl(e))return!1;var t=el(e);return t==_l||t==vl||t==gl||t==yl}var xl=bl,Sl=zc[`__core-js_shared__`],Cl=(function(){var e=/[^.]+$/.exec(Sl&&Sl.keys&&Sl.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``})();function wl(e){return!!Cl&&Cl in e}var Tl=wl,El=Function.prototype.toString;function Dl(e){if(e!=null){try{return El.call(e)}catch{}try{return e+``}catch{}}return``}var Ol=Dl,kl=/[\\^$.*+?()[\]{}|]/g,Al=/^\[object .+?Constructor\]$/,jl=Function.prototype,Ml=Object.prototype,Nl=jl.toString,Pl=Ml.hasOwnProperty,Fl=RegExp(`^`+Nl.call(Pl).replace(kl,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function Il(e){return!hl(e)||Tl(e)?!1:(xl(e)?Fl:Al).test(Ol(e))}var Ll=Il;function Rl(e,t){return e?.[t]}var zl=Rl;function Bl(e,t){var n=zl(e,t);return Ll(n)?n:void 0}var Vl=Bl;function Hl(e,t){return e===t||e!==e&&t!==t}var Ul=Hl,Wl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Gl=/^\w*$/;function Kl(e,t){if(cl(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||al(e)?!0:Gl.test(e)||!Wl.test(e)||t!=null&&e in Object(t)}var ql=Kl,Jl=Vl(Object,`create`);function Yl(){this.__data__=Jl?Jl(null):{},this.size=0}var Xl=Yl;function Zl(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Ql=Zl,$l=`__lodash_hash_undefined__`,eu=Object.prototype.hasOwnProperty;function tu(e){var t=this.__data__;if(Jl){var n=t[e];return n===$l?void 0:n}return eu.call(t,e)?t[e]:void 0}var nu=tu,ru=Object.prototype.hasOwnProperty;function iu(e){var t=this.__data__;return Jl?t[e]!==void 0:ru.call(t,e)}var au=iu,ou=`__lodash_hash_undefined__`;function su(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Jl&&t===void 0?ou:t,this}var cu=su;function lu(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}lu.prototype.clear=Xl,lu.prototype.delete=Ql,lu.prototype.get=nu,lu.prototype.has=au,lu.prototype.set=cu;var uu=lu;function du(){this.__data__=[],this.size=0}var fu=du;function pu(e,t){for(var n=e.length;n--;)if(Ul(e[n][0],t))return n;return-1}var mu=pu,hu=Array.prototype.splice;function gu(e){var t=this.__data__,n=mu(t,e);return n<0?!1:(n==t.length-1?t.pop():hu.call(t,n,1),--this.size,!0)}var _u=gu;function vu(e){var t=this.__data__,n=mu(t,e);return n<0?void 0:t[n][1]}var yu=vu;function bu(e){return mu(this.__data__,e)>-1}var xu=bu;function Su(e,t){var n=this.__data__,r=mu(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var Cu=Su;function wu(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}wu.prototype.clear=fu,wu.prototype.delete=_u,wu.prototype.get=yu,wu.prototype.has=xu,wu.prototype.set=Cu;var Tu=wu,Eu=Vl(zc,`Map`);function Du(){this.size=0,this.__data__={hash:new uu,map:new(Eu||Tu),string:new uu}}var Ou=Du;function ku(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}var Au=ku;function ju(e,t){var n=e.__data__;return Au(t)?n[typeof t==`string`?`string`:`hash`]:n.map}var Mu=ju;function Nu(e){var t=Mu(this,e).delete(e);return this.size-=t?1:0,t}var Pu=Nu;function Fu(e){return Mu(this,e).get(e)}var Iu=Fu;function Lu(e){return Mu(this,e).has(e)}var Ru=Lu;function zu(e,t){var n=Mu(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var Bu=zu;function Vu(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Vu.prototype.clear=Ou,Vu.prototype.delete=Pu,Vu.prototype.get=Iu,Vu.prototype.has=Ru,Vu.prototype.set=Bu;var Hu=Vu,Uu=`Expected a function`;function Wu(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(Uu);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Wu.Cache||Hu),n}Wu.Cache=Hu;var Gu=Wu,Ku=500;function qu(e){var t=Gu(e,function(e){return n.size===Ku&&n.clear(),e}),n=t.cache;return t}var Ju=qu,Yu=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Xu=/\\(\\)?/g,Zu=Ju(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(Yu,function(e,n,r,i){t.push(r?i.replace(Xu,`$1`):n||e)}),t});function Qu(e){return e==null?``:pl(e)}var $u=Qu;function ed(e,t){return cl(e)?e:ql(e,t)?[e]:Zu($u(e))}var td=ed,nd=1/0;function rd(e){if(typeof e==`string`||al(e))return e;var t=e+``;return t==`0`&&1/e==-nd?`-0`:t}var id=rd;function ad(e,t){t=td(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[id(t[n++])];return n&&n==r?e:void 0}var od=ad;function sd(e,t,n){var r=e==null?void 0:od(e,t);return r===void 0?n:r}var cd=sd,ld=Ic,ud=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,dd=e=>e.match(/^[\[\{\"\}].*[\]\}\"]$/);function fd(e){if(!ld(e))return e;let t=e,n=!1;return typeof Event<`u`&&e instanceof Event&&(t=qs(t),n=!0),t=Object.keys(t).reduce((e,r)=>{try{t[r]&&t[r].toJSON,e[r]=t[r]}catch{n=!0}return e},{}),n?t:e}var pd=function(e){let t,n,r,i;return function(a,o){try{if(a===``)return i=[],t=new Map([[o,`[]`]]),n=new Map,r=[],o;let s=n.get(this)||this;for(;r.length&&s!==r[0];)r.shift(),i.pop();if(typeof o==`boolean`)return o;if(o===void 0)return e.allowUndefined?`_undefined_`:void 0;if(o===null)return null;if(typeof o==`number`)return o===-1/0?`_-Infinity_`:o===1/0?`_Infinity_`:Number.isNaN(o)?`_NaN_`:o;if(typeof o==`bigint`)return`_bigint_${o.toString()}`;if(typeof o==`string`)return ud.test(o)?e.allowDate?`_date_${o}`:void 0:o;if((0,Nc.default)(o))return e.allowRegExp?`_regexp_${o.flags}|${o.source}`:void 0;if((0,Pc.default)(o))return;if((0,Fc.default)(o)){if(!e.allowSymbol)return;let t=Symbol.keyFor(o);return t===void 0?`_symbol_${o.toString().slice(7,-1)}`:`_gsymbol_${t}`}if(r.length>=e.maxDepth)return Array.isArray(o)?`[Array(${o.length})]`:`[Object]`;if(o===this)return`_duplicate_${JSON.stringify(i)}`;if(o instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...o.cause?{cause:o.cause}:{},...o,name:o.name,message:o.message,stack:o.stack,"_constructor-name_":o.constructor.name}};if(o?.constructor?.name&&o.constructor.name!==`Object`&&!Array.isArray(o)){let e=t.get(o);if(!e){let e={__isClassInstance__:!0,__className__:o.constructor.name,...Object.getOwnPropertyNames(o).reduce((e,t)=>{try{e[t]=o[t]}catch{}return e},{})};return i.push(a),r.unshift(e),t.set(o,JSON.stringify(i)),o!==e&&n.set(o,e),e}return`_duplicate_${e}`}let c=t.get(o);if(!c){let e=Array.isArray(o)?o:fd(o);return i.push(a),r.unshift(e),t.set(o,JSON.stringify(i)),o!==e&&n.set(o,e),e}return`_duplicate_${c}`}catch{return}}},md=function(e){let t=[],n;return function(r,i){if(r===``&&(n=i,t.forEach(({target:e,container:t,replacement:r})=>{let i=dd(r)?JSON.parse(r):r.split(`.`);i.length===0?t[e]=n:t[e]=cd(n,i)})),r===`_constructor-name_`)return i;if(ld(i)&&i.__isConvertedError__){let{message:e,...t}=i.errorProperties,n=Error(e);return Object.assign(n,t),n}if(typeof i==`string`&&i.startsWith(`_regexp_`)&&e.allowRegExp){let[,e,t]=i.match(/_regexp_([^|]*)\|(.*)/)||[];return new RegExp(t,e)}return typeof i==`string`&&i.startsWith(`_date_`)&&e.allowDate?new Date(i.replace(`_date_`,``)):typeof i==`string`&&i.startsWith(`_duplicate_`)?(t.push({target:r,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_`?-1/0:typeof i==`string`&&i===`_Infinity_`?1/0:typeof i==`string`&&i===`_NaN_`?NaN:typeof i==`string`&&i.startsWith(`_bigint_`)&&typeof BigInt==`function`?BigInt(i.replace(`_bigint_`,``)):i}},hd={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},gd=(e,t={})=>{let n={...hd,...t};return JSON.stringify(fd(e),pd(n),t.space)},_d=()=>{let e=new Map;return function t(n){ld(n)&&Object.entries(n).forEach(([r,i])=>{i===`_undefined_`?n[r]=void 0:e.get(i)||(e.set(i,!0),t(i))}),Array.isArray(n)&&n.forEach((r,i)=>{r===`_undefined_`?(e.set(r,!0),n[i]=void 0):e.get(r)||(e.set(r,!0),t(r))})}},vd=(e,t={})=>{let n={...hd,...t},r=JSON.parse(e,md(n));return _d()(r),r},yd=!0,bd=`Invariant failed`;function xd(e,t){if(!e){if(yd)throw Error(bd);var n=typeof t==`function`?t():t,r=n?`${bd}: ${n}`:bd;throw Error(r)}}var Sd=e=>{let[t,...n]=Array.from(document.querySelectorAll(`iframe[data-is-storybook]`)).filter(t=>{try{return t.contentWindow?.location.origin===e.source.location.origin&&t.contentWindow?.location.pathname===e.source.location.pathname}catch{}try{return t.contentWindow===e.source}catch{}let n=t.getAttribute(`src`),r;try{if(!n)return!1;({origin:r}=new URL(n,document.location.toString()))}catch{return!1}return r===e.origin}),r=t?.getAttribute(`src`);if(r&&n.length===0){let{protocol:e,host:t,pathname:n}=new URL(r,document.location.toString());return`${e}//${t}${n}`}return n.length>0&&js.error(`found multiple candidates for event source`),null},{document:Cd,location:wd}=G,Td=`storybook-channel`,Ed={maxDepth:25},Dd=class{constructor(e){if(this.config=e,this.connected=!1,this.buffer=[],typeof G?.addEventListener==`function`&&G.addEventListener(`message`,this.handleEvent.bind(this),!1),e.page!==`manager`&&e.page!==`preview`)throw 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:n,allowRegExp:r,allowSymbol:i,allowDate:a,allowError:o,allowUndefined:s,maxDepth:c,space:l}=t||{},u=Object.fromEntries(Object.entries({allowRegExp:r,allowSymbol:i,allowDate:a,allowError:o,allowUndefined:s,maxDepth:c,space:l}).filter(([e,t])=>typeof t<`u`)),d={...Ed,...G.CHANNEL_OPTIONS||{},...u},f=this.getFrames(n),p=gd({key:Td,event:e,refId:new URLSearchParams(wd?.search||``).get(`refId`)},d);return f.length?(this.buffer.length&&this.flush(),f.forEach(e=>{try{e.postMessage(p,`*`)}catch{js.error(`sending over postmessage fail`)}}),Promise.resolve(null)):new Promise((t,n)=>{this.buffer.push({event:e,resolve:t,reject:n})})}flush(){let{buffer:e}=this;this.buffer=[],e.forEach(e=>{this.send(e.event).then(e.resolve).catch(e.reject)})}getFrames(e){if(this.config.page===`manager`){let t=Array.from(Cd.querySelectorAll(`iframe[data-is-storybook][data-is-loaded]`)).flatMap(t=>{try{return t.contentWindow&&t.dataset.isStorybook!==void 0&&t.id===e?[t.contentWindow]:[]}catch{return[]}});return t?.length?t:this.getCurrentFrames()}return G&&G.parent&&G.parent!==G.self?[G.parent]:[]}getCurrentFrames(){return this.config.page===`manager`?Array.from(Cd.querySelectorAll(`[data-is-storybook="true"]`)).flatMap(e=>e.contentWindow?[e.contentWindow]:[]):G&&G.parent?[G.parent]:[]}getLocalFrame(){return this.config.page===`manager`?Array.from(Cd.querySelectorAll(`#storybook-preview-iframe`)).flatMap(e=>e.contentWindow?[e.contentWindow]:[]):G&&G.parent?[G.parent]:[]}handleEvent(e){try{let{data:t}=e,{key:n,event:r,refId:i}=typeof t==`string`&&dd(t)?vd(t,G.CHANNEL_OPTIONS||{}):t;if(n===Td){let n=this.config.page===`manager`?`<span style="color: #37D5D3; background: black"> manager </span>`:`<span style="color: #1EA7FD; background: black"> preview </span>`,a=Object.values($a).includes(r.type)?`<span style="color: #FF4785">${r.type}</span>`:`<span style="color: #FFAE00">${r.type}</span>`;if(i&&(r.refId=i),r.source=this.config.page===`preview`?e.origin:Sd(e),!r.source){Fs.error(`${n} received ${a} but was unable to determine the source of the event`);return}let o=`${n} received ${a} (${t.length})`;Fs.debug(wd.origin===r.source?`${o} <span style="color: gray">(on ${wd.origin} from ${r.source})</span>`:o,...r.args),xd(this.handler,`ChannelHandler should be set`),this.handler(r)}}catch(e){js.error(e)}}},{WebSocket:Od}=G,kd=15e3,Ad=5e3,jd=class{constructor({url:e,onError:t,page:n}){this.buffer=[],this.isReady=!1,this.isClosed=!1,this.pingTimeout=0,this.socket=new Od(e),this.socket.onopen=()=>{this.isReady=!0,this.heartbeat(),this.flush()},this.socket.onmessage=({data:e})=>{let t=typeof e==`string`&&dd(e)?vd(e):e;xd(this.handler,`WebsocketTransport handler should be set`),this.handler(t),t.type===`ping`&&(this.heartbeat(),this.send({type:`pong`}))},this.socket.onerror=e=>{t&&t(e)},this.socket.onclose=e=>{xd(this.handler,`WebsocketTransport handler should be set`),this.handler({type:no,args:[{reason:e.reason,code:e.code}],from:n||`preview`}),this.isClosed=!0,clearTimeout(this.pingTimeout)}}heartbeat(){clearTimeout(this.pingTimeout),this.pingTimeout=setTimeout(()=>{this.socket.close(3008,`timeout`)},kd+Ad)}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=gd(e,{maxDepth:15,...G.CHANNEL_OPTIONS});this.socket.send(t)}flush(){let{buffer:e}=this;this.buffer=[],e.forEach(e=>this.send(e))}},{CONFIG_TYPE:Md}=G,Nd=Es;function Pd({page:e,extraTransports:t=[]}){let n=[new Dd({page:e}),...t];if(Md===`DEVELOPMENT`){let t=window.location.protocol===`http:`?`ws`:`wss`,{hostname:r,port:i}=window.location,a=`${t}://${r}:${i}/storybook-server-channel`;n.push(new jd({url:a,onError:()=>{},page:e}))}let r=new Es({transports:n});return Cs.__prepare(r,e===`manager`?Cs.Environment.MANAGER:Cs.Environment.PREVIEW),r}var Fd={};Ne(Fd,{CalledExtractOnStoreError:()=>Hd,CalledPreviewMethodBeforeInitializationError:()=>Wd,Category:()=>zd,ElementA11yParameterError:()=>of,EmptyIndexError:()=>qd,ImplicitActionsDuringRendering:()=>Vd,MdxFileWithNoCsfReferencesError:()=>Kd,MissingRenderToCanvasError:()=>Ud,MissingStoryAfterHmrError:()=>Bd,MissingStoryFromCsfFileError:()=>Yd,MountMustBeDestructuredError:()=>Zd,NextJsSharpError:()=>tf,NextjsRouterMocksNotAvailable:()=>nf,NoRenderFunctionError:()=>Qd,NoStoryMatchError:()=>Jd,NoStoryMountedError:()=>$d,StatusTypeIdMismatchError:()=>ef,StoryIndexFetchError:()=>Gd,StoryStoreAccessedBeforeInitializationError:()=>Xd,UnknownArgTypesError:()=>rf,UnsupportedViewportDimensionError:()=>af});function Id({code:e,category:t}){return`SB_${t}_${String(e).padStart(4,`0`)}`}function Ld(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 Rd=class e extends Error{constructor(t){super(e.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 Id({code:this.code,category:this.category})}get name(){let e=this._name||this.constructor.name;return`${this.fullErrorCode} (${e})`}set name(e){this._name=e}static getFullMessage({documentation:e,code:t,category:n,message:r}){let i;return e===!0?i=`https://storybook.js.org/error/${Id({code:t,category:n})}?ref=error`:typeof e==`string`?i=Ld(e):Array.isArray(e)&&(i=`
39
- ${e.map(e=>` - ${Ld(e)}`).join(`
40
- `)}`),`${r}${i==null?``:`
41
-
42
- More info: ${i}
43
- `}`}},zd=(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))(zd||{}),Bd=class extends Rd{constructor(e){super({name:`MissingStoryAfterHmrError`,category:`PREVIEW_API`,code:1,message:K`
44
- Couldn't find story matching id '${e.storyId}' after HMR.
45
- - Did you just rename a story?
46
- - Did you remove it from your CSF file?
47
- - Are you sure a story with the id '${e.storyId}' exists?
48
- - Please check the values in the stories field of your main.js config and see if they would match your CSF File.
49
- - Also check the browser console and terminal for potential error messages.`}),this.data=e}},Vd=class extends Rd{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:K`
50
- We detected that you use an implicit action arg while ${e.phase} of your story.
51
- ${e.deprecated?`
52
- This is deprecated and won't work in Storybook 8 anymore.
53
- `:``}
54
- Please provide an explicit spy to your args like this:
55
- import { fn } from 'storybook/test';
56
- ...
57
- args: {
58
- ${e.name}: fn()
59
- }`}),this.data=e}},Hd=class extends Rd{constructor(){super({name:`CalledExtractOnStoreError`,category:`PREVIEW_API`,code:3,message:K`
60
- Cannot call \`storyStore.extract()\` without calling \`storyStore.cacheAllCsfFiles()\` first.
61
-
62
- You probably meant to call \`await preview.extract()\` which does the above for you.`})}},Ud=class extends Rd{constructor(){super({name:`MissingRenderToCanvasError`,category:`PREVIEW_API`,code:4,message:K`
63
- Expected your framework's preset to export a \`renderToCanvas\` field.
64
-
65
- Perhaps it needs to be upgraded for Storybook 7.0?`,documentation:`https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#mainjs-framework-field`})}},Wd=class extends Rd{constructor(e){super({name:`CalledPreviewMethodBeforeInitializationError`,category:`PREVIEW_API`,code:5,message:K`
66
- Called \`Preview.${e.methodName}()\` before initialization.
67
-
68
- The preview needs to load the story index before most methods can be called. If you want
69
- to call \`${e.methodName}\`, try \`await preview.initializationPromise;\` first.
70
-
71
- If you didn't call the above code, then likely it was called by an addon that needs to
72
- do the above.`}),this.data=e}},Gd=class extends Rd{constructor(e){super({name:`StoryIndexFetchError`,category:`PREVIEW_API`,code:6,message:K`
73
- Error fetching \`/index.json\`:
74
-
75
- ${e.text}
76
-
77
- If you are in development, this likely indicates a problem with your Storybook process,
78
- check the terminal for errors.
79
-
80
- If you are in a deployed Storybook, there may have been an issue deploying the full Storybook
81
- build.`}),this.data=e}},Kd=class extends Rd{constructor(e){super({name:`MdxFileWithNoCsfReferencesError`,category:`PREVIEW_API`,code:7,message:K`
82
- Tried to render docs entry ${e.storyId} but it is a MDX file that has no CSF
83
- references, or autodocs for a CSF file that some doesn't refer to itself.
84
-
85
- This likely is an internal error in Storybook's indexing, or you've attached the
86
- \`attached-mdx\` tag to an MDX file that is not attached.`}),this.data=e}},qd=class extends Rd{constructor(){super({name:`EmptyIndexError`,category:`PREVIEW_API`,code:8,message:K`
87
- Couldn't find any stories in your Storybook.
88
-
89
- - Please check your stories field of your main.js config: does it match correctly?
90
- - Also check the browser console and terminal for error messages.`})}},Jd=class extends Rd{constructor(e){super({name:`NoStoryMatchError`,category:`PREVIEW_API`,code:9,message:K`
91
- Couldn't find story matching '${e.storySpecifier}'.
92
-
93
- - Are you sure a story with that id exists?
94
- - Please check your stories field of your main.js config.
95
- - Also check the browser console and terminal for error messages.`}),this.data=e}},Yd=class extends Rd{constructor(e){super({name:`MissingStoryFromCsfFileError`,category:`PREVIEW_API`,code:10,message:K`
96
- Couldn't find story matching id '${e.storyId}' after importing a CSF file.
97
-
98
- The file was indexed as if the story was there, but then after importing the file in the browser
99
- we didn't find the story. Possible reasons:
100
- - You are using a custom story indexer that is misbehaving.
101
- - You have a custom file loader that is removing or renaming exports.
102
-
103
- Please check your browser console and terminal for errors that may explain the issue.`}),this.data=e}},Xd=class extends Rd{constructor(){super({name:`StoryStoreAccessedBeforeInitializationError`,category:`PREVIEW_API`,code:11,message:K`
104
- Cannot access the Story Store until the index is ready.
105
-
106
- It is not recommended to use methods directly on the Story Store anyway, in Storybook 9 we will
107
- remove access to the store entirely`})}},Zd=class extends Rd{constructor(e){super({name:`MountMustBeDestructuredError`,category:`PREVIEW_API`,code:12,message:K`
108
- Incorrect use of mount in the play function.
109
-
110
- To use mount in the play function, you must satisfy the following two requirements:
111
-
112
- 1. You *must* destructure the mount property from the \`context\` (the argument passed to your play function).
113
- This makes sure that Storybook does not start rendering the story before the play function begins.
114
-
115
- 2. Your Storybook framework or builder must be configured to transpile to ES2017 or newer.
116
- This is because destructuring statements and async/await usages are otherwise transpiled away,
117
- which prevents Storybook from recognizing your usage of \`mount\`.
118
-
119
- Note that Angular is not supported. As async/await is transpiled to support the zone.js polyfill.
120
-
121
- More info: https://storybook.js.org/docs/writing-tests/interaction-testing?ref=error#run-code-before-the-component-gets-rendered
122
-
123
- Received the following play function:
124
- ${e.playFunction}`}),this.data=e}},Qd=class extends Rd{constructor(e){super({name:`NoRenderFunctionError`,category:`PREVIEW_API`,code:14,message:K`
125
- No render function available for storyId '${e.id}'
126
- `}),this.data=e}},$d=class extends Rd{constructor(){super({name:`NoStoryMountedError`,category:`PREVIEW_API`,code:15,message:K`
127
- No component is mounted in your story.
128
-
129
- This usually occurs when you destructure mount in the play function, but forget to call it.
130
-
131
- For example:
132
-
133
- async play({ mount, canvasElement }) {
134
- // 👈 mount should be called: await mount();
135
- const canvas = within(canvasElement);
136
- const button = await canvas.findByRole('button');
137
- await userEvent.click(button);
138
- };
139
-
140
- Make sure to either remove it or call mount in your play function.
141
- `})}},ef=class extends Rd{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}},tf=class extends Rd{constructor(){super({name:`NextJsSharpError`,category:`FRAMEWORK_NEXTJS`,code:1,documentation:`https://storybook.js.org/docs/get-started/frameworks/nextjs#error-you-are-importing-avif-images-but-you-dont-have-sharp-installed-you-have-to-install-sharp-in-order-to-use-image-optimization-features-in-nextjs`,message:K`
142
- You are importing avif images, but you don't have sharp installed.
143
-
144
- You have to install sharp in order to use image optimization features in Next.js.
145
- `})}},nf=class extends Rd{constructor(e){super({name:`NextjsRouterMocksNotAvailable`,category:`FRAMEWORK_NEXTJS`,code:2,message:K`
146
- Tried to access router mocks from "${e.importType}" but they were not created yet. You might be running code in an unsupported environment.
147
- `}),this.data=e}},rf=class extends Rd{constructor(e){super({name:`UnknownArgTypesError`,category:`DOCS-TOOLS`,code:1,documentation:`https://github.com/storybookjs/storybook/issues/26606`,message:K`
148
- There was a failure when generating detailed ArgTypes in ${e.language} for:
149
- ${JSON.stringify(e.type,null,2)}
150
-
151
- Storybook will fall back to use a generic type description instead.
152
-
153
- This type is either not supported or it is a bug in the docgen generation in Storybook.
154
- If you think this is a bug, please detail it as much as possible in the Github issue.
155
- `}),this.data=e}},af=class extends Rd{constructor(e){super({name:`UnsupportedViewportDimensionError`,category:`ADDON_VITEST`,code:1,message:K`
156
- Encountered an unsupported value "${e.value}" when setting the viewport ${e.dimension} dimension.
157
-
158
- The Storybook plugin only supports values in the following units:
159
- - px, vh, vw, em, rem and %.
160
-
161
- 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
162
- `}),this.data=e}},of=class extends Rd{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.`})}},sf={};Ne(sf,{Addon_TypesEnum:()=>cf,CoreWebpackCompiler:()=>df,Feature:()=>pf,SupportedBuilder:()=>ff,SupportedFramework:()=>lf,SupportedLanguage:()=>mf,SupportedRenderer:()=>uf});var cf=(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))(cf||{}),lf=(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))(lf||{}),uf=(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))(uf||{}),df=(e=>(e.Babel=`babel`,e.SWC=`swc`,e))(df||{}),ff=(e=>(e.WEBPACK5=`webpack5`,e.VITE=`vite`,e.RSBUILD=`rsbuild`,e))(ff||{}),pf=(e=>(e.DOCS=`docs`,e.TEST=`test`,e.ONBOARDING=`onboarding`,e.A11Y=`a11y`,e))(pf||{}),mf=(e=>(e.JAVASCRIPT=`javascript`,e.TYPESCRIPT=`typescript`,e))(mf||{}),hf={};Ne(hf,{ADDON_ID:()=>_f,CLEAR_ID:()=>bf,CYCLIC_KEY:()=>xf,EVENT_ID:()=>yf,PANEL_ID:()=>vf,PARAM_KEY:()=>gf,action:()=>vW,actions:()=>yW,config:()=>pW,configureActions:()=>mW});var gf=`actions`,_f=`storybook/actions`,vf=`${_f}/panel`,yf=`${_f}/action-event`,bf=`${_f}/action-clear`,xf=`$___storybook.isCyclic`,Sf={};Ne(Sf,{DocsContext:()=>hU,HooksContext:()=>Of,Preview:()=>mU,PreviewWeb:()=>QU,PreviewWithSelection:()=>wU,ReporterAPI:()=>LH,StoryStore:()=>QH,Tag:()=>lp,UrlStore:()=>HU,WebView:()=>ZU,addons:()=>Df,applyHooks:()=>Mf,combineArgs:()=>BV,combineParameters:()=>pH,composeConfigs:()=>jH,composeStepRunners:()=>EH,composeStories:()=>qH,composeStory:()=>GH,createPlaywrightTest:()=>JH,decorateStory:()=>uH,defaultDecorateStory:()=>fH,emitTransformCode:()=>fW,filterArgTypes:()=>xH,getCsfFactoryAnnotations:()=>RH,inferControls:()=>CH,makeDecorator:()=>$f,mockChannel:()=>Cf,normalizeArrays:()=>nH,normalizeProjectAnnotations:()=>wH,normalizeStory:()=>iH,pauseAnimations:()=>NH,prepareMeta:()=>hH,prepareStory:()=>mH,sanitizeStoryContextUpdate:()=>dH,setDefaultProjectAnnotations:()=>zH,setProjectAnnotations:()=>UH,simulateDOMContentLoaded:()=>rW,simulatePageLoad:()=>oW,sortStoriesV7:()=>sU,useArgs:()=>Zf,useCallback:()=>Bf,useChannel:()=>Jf,useEffect:()=>qf,useGlobals:()=>Qf,useMemo:()=>zf,useParameter:()=>Xf,useReducer:()=>Kf,useRef:()=>Hf,useState:()=>Gf,useStoryContext:()=>Yf,userOrAutoTitle:()=>rU,userOrAutoTitleFromSpecifier:()=>nU,waitForAnimations:()=>PH});function Cf(){return new Es({transport:{setHandler:()=>{},send:()=>{}}})}var wf=class{constructor(){this.getChannel=()=>{if(!this.channel){let e=Cf();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())})}},Tf=`__STORYBOOK_ADDONS_PREVIEW`;function Ef(){return G[Tf]||(G[Tf]=new wf),G[Tf]}var Df=Ef(),Of=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(),Df.getChannel().on(Uo,this.renderListener)}removeRenderListeners(){Df.getChannel().removeListener(Uo,this.renderListener)}};function kf(e){let t=(...t)=>{let{hooks:n}=typeof t[0]==`function`?t[1]:t[0],r=n.currentPhase,i=n.currentHooks,a=n.nextHookIndex,o=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 s=G.STORYBOOK_HOOKS_CONTEXT;G.STORYBOOK_HOOKS_CONTEXT=n;let c=e(...t);if(G.STORYBOOK_HOOKS_CONTEXT=s,n.currentPhase===`UPDATE`&&n.getNextHook()!=null)throw Error(`Rendered fewer hooks than expected. This may be caused by an accidental early return statement.`);return n.currentPhase=r,n.currentHooks=i,n.nextHookIndex=a,n.currentDecoratorName=o,c};return t.originalFn=e,t}var Af=0,jf=25,Mf=e=>(t,n)=>{let r=e(kf(t),n.map(e=>kf(e)));return e=>{let{hooks:i}=e;i.prevMountedDecorators??=new Set,i.mountedDecorators=new Set([t,...n]),i.currentContext=e,i.hasUpdates=!1;let a=r(e);for(Af=1;i.hasUpdates;)if(i.hasUpdates=!1,i.currentEffects=[],a=r(e),Af+=1,Af>jf)throw Error(`Too many re-renders. Storybook limits the number of renders to prevent an infinite loop.`);return i.addRenderListeners(),a}},Nf=(e,t)=>e.length===t.length&&e.every((e,n)=>e===t[n]),Pf=()=>Error(`Storybook preview hooks can only be called inside decorators and story functions.`);function Ff(){return G.STORYBOOK_HOOKS_CONTEXT||null}function If(){let e=Ff();if(e==null)throw Pf();return e}function Lf(e,t,n){let r=If();if(r.currentPhase===`MOUNT`){n!=null&&!Array.isArray(n)&&js.warn(`${e} received a final argument that is not an array (instead, received ${n}). When specified, the final argument must be an array.`);let i={name:e,deps:n};return r.currentHooks.push(i),t(i),i}if(r.currentPhase===`UPDATE`){let i=r.getNextHook();if(i==null)throw Error(`Rendered more hooks than during the previous render.`);return i.name!==e&&js.warn(`Storybook has detected a change in the order of Hooks${r.currentDecoratorName?` called by ${r.currentDecoratorName}`:``}. This will lead to bugs and errors if not fixed.`),n!=null&&i.deps==null&&js.warn(`${e} received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.`),n!=null&&i.deps!=null&&n.length!==i.deps.length&&js.warn(`The final argument passed to ${e} changed size between renders. The order and size of this array must remain constant.
163
- Previous: ${i.deps}
164
- Incoming: ${n}`),(n==null||i.deps==null||!Nf(n,i.deps))&&(t(i),i.deps=n),i}throw Pf()}function Rf(e,t,n){let{memoizedState:r}=Lf(e,e=>{e.memoizedState=t()},n);return r}function zf(e,t){return Rf(`useMemo`,e,t)}function Bf(e,t){return Rf(`useCallback`,()=>e,t)}function Vf(e,t){return Rf(e,()=>({current:t}),[])}function Hf(e){return Vf(`useRef`,e)}function Uf(){let e=Ff();if(e!=null&&e.currentPhase!==`NONE`)e.hasUpdates=!0;else try{Df.getChannel().emit(po)}catch{js.warn(`State updates of Storybook preview hooks work only in browser`)}}function Wf(e,t){let n=Vf(e,typeof t==`function`?t():t);return[n.current,e=>{n.current=typeof e==`function`?e(n.current):e,Uf()}]}function Gf(e){return Wf(`useState`,e)}function Kf(e,t,n){let[r,i]=Wf(`useReducer`,n==null?t:()=>n(t));return[r,t=>i(n=>e(n,t))]}function qf(e,t){let n=If(),r=Rf(`useEffect`,()=>({create:e}),t);n.currentEffects.includes(r)||n.currentEffects.push(r)}function Jf(e,t=[]){let n=Df.getChannel();return qf(()=>(Object.entries(e).forEach(([e,t])=>n.on(e,t)),()=>{Object.entries(e).forEach(([e,t])=>n.removeListener(e,t))}),[...Object.keys(e),...t]),Bf(n.emit.bind(n),[n])}function Yf(){let{currentContext:e}=If();if(e==null)throw Pf();return e}function Xf(e,t){let{parameters:n}=Yf();if(e)return n[e]??t}function Zf(){let e=Df.getChannel(),{id:t,args:n}=Yf();return[n,Bf(n=>e.emit(Zo,{storyId:t,updatedArgs:n}),[e,t]),Bf(n=>e.emit(wo,{storyId:t,argNames:n}),[e,t])]}function Qf(){let e=Df.getChannel(),{globals:t}=Yf();return[t,Bf(t=>e.emit(Yo,{globals:t}),[e])]}var $f=({name:e,parameterName:t,wrapper:n,skipIfNoParametersOrOptions:r=!1})=>{let i=e=>(i,a)=>{let o=a.parameters&&a.parameters[t];return o&&o.disable||r&&!e&&!o?i(a):n(i,a,{options:e,parameters:o})};return(...n)=>typeof n[0]==`function`?i()(...n):(...r)=>{if(r.length>1)return n.length>1?i(n)(...r):i(...n)(...r);throw Error(`Passing stories directly into ${e}() is not allowed,
165
- instead use addDecorator(${e}) and pass options with the '${t}' parameter`)}};function ep(e){return e.replace(/_/g,` `).replace(/-/g,` `).replace(/\./g,` `).replace(/([^\n])([A-Z])([a-z])/g,(e,t,n,r)=>`${t} ${n}${r}`).replace(/([a-z])([A-Z])/g,(e,t,n)=>`${t} ${n}`).replace(/([a-z])([0-9])/gi,(e,t,n)=>`${t} ${n}`).replace(/([0-9])([a-z])/gi,(e,t,n)=>`${t} ${n}`).replace(/(\s|^)(\w)/g,(e,t,n)=>`${t}${n.toUpperCase()}`).replace(/ +/g,` `).trim()}var tp=H(Pe(),1),np=e=>e.map(e=>typeof e<`u`).filter(Boolean).length,rp=(e,t)=>{let{exists:n,eq:r,neq:i,truthy:a}=e;if(np([n,r,i,a])>1)throw Error(`Invalid conditional test ${JSON.stringify({exists:n,eq:r,neq:i})}`);if(typeof r<`u`)return(0,tp.isEqual)(t,r);if(typeof i<`u`)return!(0,tp.isEqual)(t,i);if(typeof n<`u`){let e=typeof t<`u`;return n?e:!e}return typeof a>`u`||a?!!t:!t},ip=(e,t,n)=>{if(!e.if)return!0;let{arg:r,global:i}=e.if;if(np([r,i])!==1)throw Error(`Invalid conditional value ${JSON.stringify({arg:r,global:i})}`);let a=r?t[r]:n[i];return rp(e.if,a)};function ap(e){return e!=null&&op(e).includes(`mount`)}function op(e){let[,t,n]=e.toString().match(/[^(]*\(([^)]+)\)(?:.*{([^]+)})?/)||[];if(!t)return[];let[r]=cp(t);if(!r)return[];let[,i]=r.match(/^{([^]+)}$/)||[];if(i)return cp(sp(i)).map(e=>e.replace(/:.*|=.*/g,``).trim());if(!r.match(/^[a-z_$][0-9a-z_$]*$/i))return[];let a=r.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),[,o]=n?.trim()?.match(RegExp(`^(?:const|let|var)\\s*{([^}]+)}\\s*=\\s*${a};`))||[];return o?cp(sp(o)).map(e=>e.replace(/:.*|=.*/g,``).trim()):[]}function sp(e){return e=e.replace(/\/\/.*$/gm,``),e=e.replace(/\/\*[\s\S]*?\*\//g,``),e}function cp(e){let t=[],n=[],r=0;for(let i=0;i<e.length;i++)if(e[i]===`{`||e[i]===`[`)n.push(e[i]===`{`?`}`:`]`);else if(e[i]===n[n.length-1])n.pop();else if(!n.length&&e[i]===`,`){let n=e.substring(r,i).trim();n&&t.push(n),r=i+1}let i=e.substring(r).trim();return i&&t.push(i),t}var lp={AUTODOCS:`autodocs`,ATTACHED_MDX:`attached-mdx`,UNATTACHED_MDX:`unattached-mdx`,PLAY_FN:`play-fn`,TEST_FN:`test-fn`,DEV:`dev`,TEST:`test`,MANIFEST:`manifest`},up={};Ne(up,{argsEnhancers:()=>fp});var dp=(e,t)=>typeof t[e]>`u`&&!(e in t),fp=[e=>{let{initialArgs:t,argTypes:n,parameters:{actions:r}}=e;return r?.disable||!n?{}:Object.entries(n).filter(([e,t])=>!!t.action).reduce((e,[n,r])=>(dp(n,t)&&(e[n]=vW(typeof r.action==`string`?r.action:n)),e),{})},e=>{let{initialArgs:t,argTypes:n,id:r,parameters:{actions:i}}=e;if(!i||i.disable||!i.argTypesRegex||!n)return{};let a=new RegExp(i.argTypesRegex);return Object.entries(n).filter(([e])=>!!a.test(e)).reduce((e,[n,i])=>(dp(n,t)&&(e[n]=vW(n,{implicit:!0,id:r})),e),{})}],pp={};Ne(pp,{loaders:()=>NR});var mp={};Ne(mp,{buildQueries:()=>uL,clearAllMocks:()=>jD,configure:()=>dL,createEvent:()=>fL,expect:()=>AR,findAllByAltText:()=>mL,findAllByDisplayValue:()=>hL,findAllByLabelText:()=>gL,findAllByPlaceholderText:()=>_L,findAllByRole:()=>vL,findAllByTestId:()=>yL,findAllByText:()=>bL,findAllByTitle:()=>xL,findByAltText:()=>SL,findByDisplayValue:()=>CL,findByLabelText:()=>wL,findByPlaceholderText:()=>TL,findByRole:()=>EL,findByTestId:()=>DL,findByText:()=>OL,findByTitle:()=>kL,fireEvent:()=>pL,fn:()=>OD,getAllByAltText:()=>AL,getAllByDisplayValue:()=>jL,getAllByLabelText:()=>ML,getAllByPlaceholderText:()=>NL,getAllByRole:()=>PL,getAllByTestId:()=>FL,getAllByText:()=>IL,getAllByTitle:()=>LL,getByAltText:()=>RL,getByDisplayValue:()=>zL,getByLabelText:()=>BL,getByPlaceholderText:()=>VL,getByRole:()=>HL,getByTestId:()=>UL,getByText:()=>WL,getByTitle:()=>GL,getConfig:()=>KL,getDefaultNormalizer:()=>qL,getElementError:()=>JL,getNodeText:()=>YL,getQueriesForElement:()=>XL,getRoles:()=>ZL,getSuggestedQuery:()=>QL,isInaccessible:()=>$L,isMockFunction:()=>WT,logDOM:()=>eR,logRoles:()=>tR,mocked:()=>PD,mocks:()=>UT,onMockCall:()=>ED,prettyDOM:()=>nR,prettyFormat:()=>DR,queries:()=>rR,queryAllByAltText:()=>iR,queryAllByAttribute:()=>aR,queryAllByDisplayValue:()=>oR,queryAllByLabelText:()=>sR,queryAllByPlaceholderText:()=>cR,queryAllByRole:()=>lR,queryAllByTestId:()=>uR,queryAllByText:()=>dR,queryAllByTitle:()=>fR,queryByAltText:()=>pR,queryByAttribute:()=>mR,queryByDisplayValue:()=>hR,queryByLabelText:()=>gR,queryByPlaceholderText:()=>_R,queryByRole:()=>vR,queryByTestId:()=>yR,queryByText:()=>bR,queryByTitle:()=>xR,queryHelpers:()=>SR,resetAllMocks:()=>MD,restoreAllMocks:()=>ND,sb:()=>jR,screen:()=>CR,spyOn:()=>DD,uninstrumentedUserEvent:()=>OR,userEvent:()=>kR,waitFor:()=>wR,waitForElementToBeRemoved:()=>TR,within:()=>ER});var hp=Object.entries({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]});function gp(e){return String(e)}gp.open=``,gp.close=``,hp.reduce((e,[t])=>(e[t]=gp,e),{isColorSupported:!1});function _p(e=!1){let t=typeof process<`u`?process:void 0,n=t?.env||{},r=t?.argv||[];return!(`NO_COLOR`in n||r.includes(`--no-color`))&&(`FORCE_COLOR`in n||r.includes(`--color`)||t?.platform===`win32`||e&&n.TERM!==`dumb`||`CI`in n)||typeof window<`u`&&!!window.chrome}function vp(e=!1){let t=_p(e),n=(e,t,n,r)=>{let i=``,a=0;do i+=e.substring(a,r)+n,a=r+t.length,r=e.indexOf(t,a);while(~r);return i+e.substring(a)},r=(e,t,r=e)=>{let i=i=>{let a=String(i),o=a.indexOf(t,e.length);return~o?e+n(a,t,r,o)+t:e+a+t};return i.open=e,i.close=t,i},i={isColorSupported:t},a=e=>`\x1B[${e}m`;for(let[e,n]of hp)i[e]=t?r(a(n[0]),a(n[1]),n[2]):gp;return i}var yp=vp();function bp(e,t){return t.forEach(function(t){t&&typeof t!=`string`&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){if(n!==`default`&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}})}),Object.freeze(e)}function xp(e,t){let n=Object.keys(e),r=t===null?n:n.sort(t);if(Object.getOwnPropertySymbols)for(let t of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,t).enumerable&&r.push(t);return r}function Sp(e,t,n,r,i,a,o=`: `){let s=``,c=0,l=e.next();if(!l.done){s+=t.spacingOuter;let u=n+t.indent;for(;!l.done;){if(s+=u,c++===t.maxWidth){s+=`…`;break}let n=a(l.value[0],t,u,r,i),d=a(l.value[1],t,u,r,i);s+=n+o+d,l=e.next(),l.done?t.min||(s+=`,`):s+=`,${t.spacingInner}`}s+=t.spacingOuter+n}return s}function Cp(e,t,n,r,i,a){let o=``,s=0,c=e.next();if(!c.done){o+=t.spacingOuter;let l=n+t.indent;for(;!c.done;){if(o+=l,s++===t.maxWidth){o+=`…`;break}o+=a(c.value,t,l,r,i),c=e.next(),c.done?t.min||(o+=`,`):o+=`,${t.spacingInner}`}o+=t.spacingOuter+n}return o}function wp(e,t,n,r,i,a){let o=``;e=e instanceof ArrayBuffer?new DataView(e):e;let s=e=>e instanceof DataView,c=s(e)?e.byteLength:e.length;if(c>0){o+=t.spacingOuter;let l=n+t.indent;for(let n=0;n<c;n++){if(o+=l,n===t.maxWidth){o+=`…`;break}(s(e)||n in e)&&(o+=a(s(e)?e.getInt8(n):e[n],t,l,r,i)),n<c-1?o+=`,${t.spacingInner}`:t.min||(o+=`,`)}o+=t.spacingOuter+n}return o}function Tp(e,t,n,r,i,a){let o=``,s=xp(e,t.compareKeys);if(s.length>0){o+=t.spacingOuter;let c=n+t.indent;for(let n=0;n<s.length;n++){let l=s[n],u=a(l,t,c,r,i),d=a(e[l],t,c,r,i);o+=`${c+u}: ${d}`,n<s.length-1?o+=`,${t.spacingInner}`:t.min||(o+=`,`)}o+=t.spacingOuter+n}return o}var Ep=typeof Symbol==`function`&&Symbol.for?Symbol.for(`jest.asymmetricMatcher`):1267621,Dp=` `,Op={serialize:(e,t,n,r,i,a)=>{let o=e.toString();if(o===`ArrayContaining`||o===`ArrayNotContaining`)return++r>t.maxDepth?`[${o}]`:`${o+Dp}[${wp(e.sample,t,n,r,i,a)}]`;if(o===`ObjectContaining`||o===`ObjectNotContaining`)return++r>t.maxDepth?`[${o}]`:`${o+Dp}{${Tp(e.sample,t,n,r,i,a)}}`;if(o===`StringMatching`||o===`StringNotMatching`||o===`StringContaining`||o===`StringNotContaining`)return o+Dp+a(e.sample,t,n,r,i);if(typeof e.toAsymmetricMatcher!=`function`)throw TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},test:e=>e&&e.$$typeof===Ep},kp=` `,Ap=new Set([`DOMStringMap`,`NamedNodeMap`]),jp=/^(?:HTML\w*Collection|NodeList)$/;function Mp(e){return Ap.has(e)||jp.test(e)}var Np=e=>e&&e.constructor&&!!e.constructor.name&&Mp(e.constructor.name);function Pp(e){return e.constructor.name===`NamedNodeMap`}var Fp={serialize:(e,t,n,r,i,a)=>{let o=e.constructor.name;return++r>t.maxDepth?`[${o}]`:(t.min?``:o+kp)+(Ap.has(o)?`{${Tp(Pp(e)?[...e].reduce((e,t)=>(e[t.name]=t.value,e),{}):{...e},t,n,r,i,a)}}`:`[${wp([...e],t,n,r,i,a)}]`)},test:Np};function Ip(e){return e.replaceAll(`<`,`&lt;`).replaceAll(`>`,`&gt;`)}function Lp(e,t,n,r,i,a,o){let s=r+n.indent,c=n.colors;return e.map(e=>{let l=t[e],u=o(l,n,s,i,a);return typeof l!=`string`&&(u.includes(`
166
- `)&&(u=n.spacingOuter+s+u+n.spacingOuter+r),u=`{${u}}`),`${n.spacingInner+r+c.prop.open+e+c.prop.close}=${c.value.open}${u}${c.value.close}`}).join(``)}function Rp(e,t,n,r,i,a){return e.map(e=>t.spacingOuter+n+(typeof e==`string`?zp(e,t):a(e,t,n,r,i))).join(``)}function zp(e,t){let n=t.colors.content;return n.open+Ip(e)+n.close}function Bp(e,t){let n=t.colors.comment;return`${n.open}<!--${Ip(e)}-->${n.close}`}function Vp(e,t,n,r,i){let a=r.colors.tag;return`${a.open}<${e}${t&&a.close+t+r.spacingOuter+i+a.open}${n?`>${a.close}${n}${r.spacingOuter}${i}${a.open}</${e}`:`${t&&!r.min?``:` `}/`}>${a.close}`}function Hp(e,t){let n=t.colors.tag;return`${n.open}<${e}${n.close} \u2026${n.open} />${n.close}`}var Up=1,Wp=3,Gp=8,Kp=11,qp=/^(?:(?:HTML|SVG)\w*)?Element$/;function Jp(e){try{return typeof e.hasAttribute==`function`&&e.hasAttribute(`is`)}catch{return!1}}function Yp(e){let t=e.constructor.name,{nodeType:n,tagName:r}=e,i=typeof r==`string`&&r.includes(`-`)||Jp(e);return n===Up&&(qp.test(t)||i)||n===Wp&&t===`Text`||n===Gp&&t===`Comment`||n===Kp&&t===`DocumentFragment`}var Xp=e=>{var t;return(e==null||(t=e.constructor)==null?void 0:t.name)&&Yp(e)};function Zp(e){return e.nodeType===Wp}function Qp(e){return e.nodeType===Gp}function $p(e){return e.nodeType===Kp}var em={serialize:(e,t,n,r,i,a)=>{if(Zp(e))return zp(e.data,t);if(Qp(e))return Bp(e.data,t);let o=$p(e)?`DocumentFragment`:e.tagName.toLowerCase();return++r>t.maxDepth?Hp(o,t):Vp(o,Lp($p(e)?[]:Array.from(e.attributes,e=>e.name).sort(),$p(e)?{}:[...e.attributes].reduce((e,t)=>(e[t.name]=t.value,e),{}),t,n+t.indent,r,i,a),Rp(Array.prototype.slice.call(e.childNodes||e.children),t,n+t.indent,r,i,a),t,n)},test:Xp},tm=`@@__IMMUTABLE_ITERABLE__@@`,nm=`@@__IMMUTABLE_LIST__@@`,rm=`@@__IMMUTABLE_KEYED__@@`,im=`@@__IMMUTABLE_MAP__@@`,am=`@@__IMMUTABLE_ORDERED__@@`,om=`@@__IMMUTABLE_RECORD__@@`,sm=`@@__IMMUTABLE_SEQ__@@`,cm=`@@__IMMUTABLE_SET__@@`,lm=`@@__IMMUTABLE_STACK__@@`,um=e=>`Immutable.${e}`,dm=e=>`[${e}]`,fm=` `,pm=`…`;function mm(e,t,n,r,i,a,o){return++r>t.maxDepth?dm(um(o)):`${um(o)+fm}{${Sp(e.entries(),t,n,r,i,a)}}`}function hm(e){let t=0;return{next(){if(t<e._keys.length){let n=e._keys[t++];return{done:!1,value:[n,e.get(n)]}}return{done:!0,value:void 0}}}}function gm(e,t,n,r,i,a){let o=um(e._name||`Record`);return++r>t.maxDepth?dm(o):`${o+fm}{${Sp(hm(e),t,n,r,i,a)}}`}function _m(e,t,n,r,i,a){let o=um(`Seq`);return++r>t.maxDepth?dm(o):e[rm]?`${o+fm}{${e._iter||e._object?Sp(e.entries(),t,n,r,i,a):pm}}`:`${o+fm}[${e._iter||e._array||e._collection||e._iterable?Cp(e.values(),t,n,r,i,a):pm}]`}function vm(e,t,n,r,i,a,o){return++r>t.maxDepth?dm(um(o)):`${um(o)+fm}[${Cp(e.values(),t,n,r,i,a)}]`}var ym={serialize:(e,t,n,r,i,a)=>e[im]?mm(e,t,n,r,i,a,e[am]?`OrderedMap`:`Map`):e[nm]?vm(e,t,n,r,i,a,`List`):e[cm]?vm(e,t,n,r,i,a,e[am]?`OrderedSet`:`Set`):e[lm]?vm(e,t,n,r,i,a,`Stack`):e[sm]?_m(e,t,n,r,i,a):gm(e,t,n,r,i,a),test:e=>e&&(e[tm]===!0||e[om]===!0)};function bm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}var xm={exports:{}},Sm={},Cm;function wm(){if(Cm)return Sm;Cm=1;var e=Symbol.for(`react.transitional.element`),t=Symbol.for(`react.portal`),n=Symbol.for(`react.fragment`),r=Symbol.for(`react.strict_mode`),i=Symbol.for(`react.profiler`),a=Symbol.for(`react.consumer`),o=Symbol.for(`react.context`),s=Symbol.for(`react.forward_ref`),c=Symbol.for(`react.suspense`),l=Symbol.for(`react.suspense_list`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.view_transition`),p=Symbol.for(`react.client.reference`);function m(p){if(typeof p==`object`&&p){var m=p.$$typeof;switch(m){case e:switch(p=p.type,p){case n:case i:case r:case c:case l:case f:return p;default:switch(p&&=p.$$typeof,p){case o:case s:case d:case u:return p;case a:return p;default:return m}}case t:return m}}}return Sm.ContextConsumer=a,Sm.ContextProvider=o,Sm.Element=e,Sm.ForwardRef=s,Sm.Fragment=n,Sm.Lazy=d,Sm.Memo=u,Sm.Portal=t,Sm.Profiler=i,Sm.StrictMode=r,Sm.Suspense=c,Sm.SuspenseList=l,Sm.isContextConsumer=function(e){return m(e)===a},Sm.isContextProvider=function(e){return m(e)===o},Sm.isElement=function(t){return typeof t==`object`&&!!t&&t.$$typeof===e},Sm.isForwardRef=function(e){return m(e)===s},Sm.isFragment=function(e){return m(e)===n},Sm.isLazy=function(e){return m(e)===d},Sm.isMemo=function(e){return m(e)===u},Sm.isPortal=function(e){return m(e)===t},Sm.isProfiler=function(e){return m(e)===i},Sm.isStrictMode=function(e){return m(e)===r},Sm.isSuspense=function(e){return m(e)===c},Sm.isSuspenseList=function(e){return m(e)===l},Sm.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===n||e===i||e===r||e===c||e===l||typeof e==`object`&&!!e&&(e.$$typeof===d||e.$$typeof===u||e.$$typeof===o||e.$$typeof===a||e.$$typeof===s||e.$$typeof===p||e.getModuleId!==void 0)},Sm.typeOf=m,Sm}var Tm;function Em(){return Tm||(Tm=1,xm.exports=wm()),xm.exports}var Dm=Em(),Om=bp({__proto__:null,default:bm(Dm)},[Dm]),km={exports:{}},Am={},jm;function Mm(){if(jm)return Am;jm=1;var e=Symbol.for(`react.element`),t=Symbol.for(`react.portal`),n=Symbol.for(`react.fragment`),r=Symbol.for(`react.strict_mode`),i=Symbol.for(`react.profiler`),a=Symbol.for(`react.provider`),o=Symbol.for(`react.context`),s=Symbol.for(`react.server_context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.suspense_list`),d=Symbol.for(`react.memo`),f=Symbol.for(`react.lazy`),p=Symbol.for(`react.offscreen`),m=Symbol.for(`react.module.reference`);function h(p){if(typeof p==`object`&&p){var m=p.$$typeof;switch(m){case e:switch(p=p.type,p){case n:case i:case r:case l:case u:return p;default:switch(p&&=p.$$typeof,p){case s:case o:case c:case f:case d:case a:return p;default:return m}}case t:return m}}}return Am.ContextConsumer=o,Am.ContextProvider=a,Am.Element=e,Am.ForwardRef=c,Am.Fragment=n,Am.Lazy=f,Am.Memo=d,Am.Portal=t,Am.Profiler=i,Am.StrictMode=r,Am.Suspense=l,Am.SuspenseList=u,Am.isAsyncMode=function(){return!1},Am.isConcurrentMode=function(){return!1},Am.isContextConsumer=function(e){return h(e)===o},Am.isContextProvider=function(e){return h(e)===a},Am.isElement=function(t){return typeof t==`object`&&!!t&&t.$$typeof===e},Am.isForwardRef=function(e){return h(e)===c},Am.isFragment=function(e){return h(e)===n},Am.isLazy=function(e){return h(e)===f},Am.isMemo=function(e){return h(e)===d},Am.isPortal=function(e){return h(e)===t},Am.isProfiler=function(e){return h(e)===i},Am.isStrictMode=function(e){return h(e)===r},Am.isSuspense=function(e){return h(e)===l},Am.isSuspenseList=function(e){return h(e)===u},Am.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===n||e===i||e===r||e===l||e===u||e===p||typeof e==`object`&&!!e&&(e.$$typeof===f||e.$$typeof===d||e.$$typeof===a||e.$$typeof===o||e.$$typeof===c||e.$$typeof===m||e.getModuleId!==void 0)},Am.typeOf=h,Am}var Nm;function Pm(){return Nm||(Nm=1,km.exports=Mm()),km.exports}var Fm=Pm(),Im=bp({__proto__:null,default:bm(Fm)},[Fm]),Lm=Object.fromEntries([`isAsyncMode`,`isConcurrentMode`,`isContextConsumer`,`isContextProvider`,`isElement`,`isForwardRef`,`isFragment`,`isLazy`,`isMemo`,`isPortal`,`isProfiler`,`isStrictMode`,`isSuspense`,`isSuspenseList`,`isValidElementType`].map(e=>[e,t=>Im[e](t)||Om[e](t)]));function Rm(e,t=[]){if(Array.isArray(e))for(let n of e)Rm(n,t);else e!=null&&e!==!1&&e!==``&&t.push(e);return t}function zm(e){let t=e.type;if(typeof t==`string`)return t;if(typeof t==`function`)return t.displayName||t.name||`Unknown`;if(Lm.isFragment(e))return`React.Fragment`;if(Lm.isSuspense(e))return`React.Suspense`;if(typeof t==`object`&&t){if(Lm.isContextProvider(e))return`Context.Provider`;if(Lm.isContextConsumer(e))return`Context.Consumer`;if(Lm.isForwardRef(e)){if(t.displayName)return t.displayName;let e=t.render.displayName||t.render.name||``;return e===``?`ForwardRef`:`ForwardRef(${e})`}if(Lm.isMemo(e)){let e=t.displayName||t.type.displayName||t.type.name||``;return e===``?`Memo`:`Memo(${e})`}}return`UNDEFINED`}function Bm(e){let{props:t}=e;return Object.keys(t).filter(e=>e!==`children`&&t[e]!==void 0).sort()}var Vm={serialize:(e,t,n,r,i,a)=>++r>t.maxDepth?Hp(zm(e),t):Vp(zm(e),Lp(Bm(e),e.props,t,n+t.indent,r,i,a),Rp(Rm(e.props.children),t,n+t.indent,r,i,a),t,n),test:e=>e!=null&&Lm.isElement(e)},Hm=typeof Symbol==`function`&&Symbol.for?Symbol.for(`react.test.json`):245830487;function Um(e){let{props:t}=e;return t?Object.keys(t).filter(e=>t[e]!==void 0).sort():[]}var Wm={serialize:(e,t,n,r,i,a)=>++r>t.maxDepth?Hp(e.type,t):Vp(e.type,e.props?Lp(Um(e),e.props,t,n+t.indent,r,i,a):``,e.children?Rp(e.children,t,n+t.indent,r,i,a):``,t,n),test:e=>e&&e.$$typeof===Hm},Gm=Object.prototype.toString,Km=Date.prototype.toISOString,qm=Error.prototype.toString,Jm=RegExp.prototype.toString;function Ym(e){return typeof e.constructor==`function`&&e.constructor.name||`Object`}function Xm(e){return typeof window<`u`&&e===window}var Zm=/^Symbol\((.*)\)(.*)$/,Qm=/\n/g,$m=class extends Error{constructor(e,t){super(e),this.stack=t,this.name=this.constructor.name}};function eh(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 th(e){return Object.is(e,-0)?`-0`:String(e)}function nh(e){return`${e}n`}function rh(e,t){return t?`[Function ${e.name||`anonymous`}]`:`[Function]`}function ih(e){return String(e).replace(Zm,`Symbol($1)`)}function ah(e){return`[${qm.call(e)}]`}function oh(e,t,n,r){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 th(e);if(i===`bigint`)return nh(e);if(i===`string`)return r?`"${e.replaceAll(/"|\\/g,`\\$&`)}"`:`"${e}"`;if(i===`function`)return rh(e,t);if(i===`symbol`)return ih(e);let a=Gm.call(e);return a===`[object WeakMap]`?`WeakMap {}`:a===`[object WeakSet]`?`WeakSet {}`:a===`[object Function]`||a===`[object GeneratorFunction]`?rh(e,t):a===`[object Symbol]`?ih(e):a===`[object Date]`?Number.isNaN(+e)?`Date { NaN }`:Km.call(e):a===`[object Error]`?ah(e):a===`[object RegExp]`?n?Jm.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,`\\$&`):Jm.call(e):e instanceof Error?ah(e):null}function sh(e,t,n,r,i,a){if(i.includes(e))return`[Circular]`;i=[...i],i.push(e);let o=++r>t.maxDepth,s=t.min;if(t.callToJSON&&!o&&e.toJSON&&typeof e.toJSON==`function`&&!a)return fh(e.toJSON(),t,n,r,i,!0);let c=Gm.call(e);return c===`[object Arguments]`?o?`[Arguments]`:`${s?``:`Arguments `}[${wp(e,t,n,r,i,fh)}]`:eh(c)?o?`[${e.constructor.name}]`:`${s||!t.printBasicPrototype&&e.constructor.name===`Array`?``:`${e.constructor.name} `}[${wp(e,t,n,r,i,fh)}]`:c===`[object Map]`?o?`[Map]`:`Map {${Sp(e.entries(),t,n,r,i,fh,` => `)}}`:c===`[object Set]`?o?`[Set]`:`Set {${Cp(e.values(),t,n,r,i,fh)}}`:o||Xm(e)?`[${Ym(e)}]`:`${s||!t.printBasicPrototype&&Ym(e)===`Object`?``:`${Ym(e)} `}{${Tp(e,t,n,r,i,fh)}}`}var ch={test:e=>e&&e instanceof Error,serialize(e,t,n,r,i,a){if(i.includes(e))return`[Circular]`;i=[...i,e];let o=++r>t.maxDepth,{message:s,cause:c,...l}=e,u={message:s,...typeof c<`u`?{cause:c}:{},...e instanceof AggregateError?{errors:e.errors}:{},...l},d=e.name===`Error`?Ym(e):e.name;return o?`[${d}]`:`${d} {${Sp(Object.entries(u).values(),t,n,r,i,a)}}`}};function lh(e){return e.serialize!=null}function uh(e,t,n,r,i,a){let o;try{o=lh(e)?e.serialize(t,n,r,i,a,fh):e.print(t,e=>fh(e,n,r,i,a),e=>{let t=r+n.indent;return t+e.replaceAll(Qm,`
167
- ${t}`)},{edgeSpacing:n.spacingOuter,min:n.min,spacing:n.spacingInner},n.colors)}catch(e){throw new $m(e.message,e.stack)}if(typeof o!=`string`)throw TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof o}".`);return o}function dh(e,t){for(let n of e)try{if(n.test(t))return n}catch(e){throw new $m(e.message,e.stack)}return null}function fh(e,t,n,r,i,a){let o=dh(t.plugins,e);if(o!==null)return uh(o,e,t,n,r,i);let s=oh(e,t.printFunctionName,t.escapeRegex,t.escapeString);return s===null?sh(e,t,n,r,i,a):s}var ph={comment:`gray`,content:`reset`,prop:`yellow`,tag:`cyan`,value:`green`},mh=Object.keys(ph),hh={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:1/0,maxWidth:1/0,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:ph};function gh(e){for(let t of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(hh,t))throw Error(`pretty-format: Unknown option "${t}".`);if(e.min&&e.indent!==void 0&&e.indent!==0)throw Error(`pretty-format: Options "min" and "indent" cannot be used together.`)}function _h(){return mh.reduce((e,t)=>{let n=ph[t],r=n&&yp[n];if(r&&typeof r.close==`string`&&typeof r.open==`string`)e[t]=r;else throw Error(`pretty-format: Option "theme" has a key "${t}" whose value "${n}" is undefined in ansi-styles.`);return e},Object.create(null))}function vh(){return mh.reduce((e,t)=>(e[t]={close:``,open:``},e),Object.create(null))}function yh(e){return e?.printFunctionName??hh.printFunctionName}function bh(e){return e?.escapeRegex??hh.escapeRegex}function xh(e){return e?.escapeString??hh.escapeString}function Sh(e){return{callToJSON:e?.callToJSON??hh.callToJSON,colors:e?.highlight?_h():vh(),compareKeys:typeof e?.compareKeys==`function`||e?.compareKeys===null?e.compareKeys:hh.compareKeys,escapeRegex:bh(e),escapeString:xh(e),indent:e?.min?``:Ch(e?.indent??hh.indent),maxDepth:e?.maxDepth??hh.maxDepth,maxWidth:e?.maxWidth??hh.maxWidth,min:e?.min??hh.min,plugins:e?.plugins??hh.plugins,printBasicPrototype:e?.printBasicPrototype??!0,printFunctionName:yh(e),spacingInner:e?.min?` `:`
168
- `,spacingOuter:e?.min?``:`
169
- `}}function Ch(e){return Array.from({length:e+1}).join(` `)}function wh(e,t){if(t&&(gh(t),t.plugins)){let n=dh(t.plugins,e);if(n!==null)return uh(n,e,Sh(t),``,0,[])}let n=oh(e,yh(t),bh(t),xh(t));return n===null?sh(e,Sh(t),``,0,[]):n}var Th={AsymmetricMatcher:Op,DOMCollection:Fp,DOMElement:em,Immutable:ym,ReactElement:Vm,ReactTestComponent:Wm,Error:ch},Eh={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`]},Dh={special:`cyan`,number:`yellow`,bigint:`yellow`,boolean:`yellow`,undefined:`grey`,null:`bold`,string:`green`,symbol:`green`,date:`magenta`,regexp:`red`},Oh=`…`;function kh(e,t){let n=Eh[Dh[t]]||Eh[t]||``;return n?`\x1B[${n[0]}m${String(e)}\x1B[${n[1]}m`:String(e)}function Ah({showHidden:e=!1,depth:t=2,colors:n=!1,customInspect:r=!0,showProxy:i=!1,maxArrayLength:a=1/0,breakLength:o=1/0,seen:s=[],truncate:c=1/0,stylize:l=String}={},u){let d={showHidden:!!e,depth:Number(t),colors:!!n,customInspect:!!r,showProxy:!!i,maxArrayLength:Number(a),breakLength:Number(o),truncate:Number(c),seen:s,inspect:u,stylize:l};return d.colors&&(d.stylize=kh),d}function jh(e){return e>=`\ud800`&&e<=`\udbff`}function Mh(e,t,n=Oh){e=String(e);let r=n.length,i=e.length;if(r>t&&i>r)return n;if(i>t&&i>r){let i=t-r;return i>0&&jh(e[i-1])&&--i,`${e.slice(0,i)}${n}`}return e}function Nh(e,t,n,r=`, `){n||=t.inspect;let i=e.length;if(i===0)return``;let a=t.truncate,o=``,s=``,c=``;for(let l=0;l<i;l+=1){let i=l+1===e.length,u=l+2===e.length;c=`${Oh}(${e.length-l})`;let d=e[l];t.truncate=a-o.length-(i?0:r.length);let f=s||n(d,t)+(i?``:r),p=o.length+f.length,m=p+c.length;if(i&&p>a&&o.length+c.length<=a||!i&&!u&&m>a||(s=i?``:n(e[l+1],t)+(u?``:r),!i&&u&&m>a&&p+s.length>a))break;if(o+=f,!i&&!u&&p+s.length>=a){c=`${Oh}(${e.length-l-1})`;break}c=``}return`${o}${c}`}function Ph(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,`\\'`).replace(/\\"/g,`"`).replace(/(^"|"$)/g,`'`)}function Fh([e,t],n){return n.truncate-=2,typeof e==`string`?e=Ph(e):typeof e!=`number`&&(e=`[${n.inspect(e,n)}]`),n.truncate-=e.length,t=n.inspect(t,n),`${e}: ${t}`}function Ih(e,t){let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return`[]`;t.truncate-=4;let r=Nh(e,t);t.truncate-=r.length;let i=``;return n.length&&(i=Nh(n.map(t=>[t,e[t]]),t,Fh)),`[ ${r}${i?`, ${i}`:``} ]`}var Lh=e=>typeof Buffer==`function`&&e instanceof Buffer?`Buffer`:e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name;function Rh(e,t){let n=Lh(e);t.truncate-=n.length+4;let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return`${n}[]`;let i=``;for(let n=0;n<e.length;n++){let r=`${t.stylize(Mh(e[n],t.truncate),`number`)}${n===e.length-1?``:`, `}`;if(t.truncate-=r.length,e[n]!==e.length&&t.truncate<=3){i+=`${Oh}(${e.length-e[n]+1})`;break}i+=r}let a=``;return r.length&&(a=Nh(r.map(t=>[t,e[t]]),t,Fh)),`${n}[ ${i}${a?`, ${a}`:``} ]`}function zh(e,t){let n=e.toJSON();if(n===null)return`Invalid Date`;let r=n.split(`T`),i=r[0];return t.stylize(`${i}T${Mh(r[1],t.truncate-i.length-1)}`,`date`)}function Bh(e,t){let n=e[Symbol.toStringTag]||`Function`,r=e.name;return r?t.stylize(`[${n} ${Mh(r,t.truncate-11)}]`,`special`):t.stylize(`[${n}]`,`special`)}function Vh([e,t],n){return n.truncate-=4,e=n.inspect(e,n),n.truncate-=e.length,t=n.inspect(t,n),`${e} => ${t}`}function Hh(e){let t=[];return e.forEach((e,n)=>{t.push([n,e])}),t}function Uh(e,t){return e.size===0?`Map{}`:(t.truncate-=7,`Map{ ${Nh(Hh(e),t,Vh)} }`)}var Wh=Number.isNaN||(e=>e!==e);function Gh(e,t){return Wh(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(Mh(String(e),t.truncate),`number`)}function Kh(e,t){let n=Mh(e.toString(),t.truncate-1);return n!==Oh&&(n+=`n`),t.stylize(n,`bigint`)}function qh(e,t){let n=e.toString().split(`/`)[2],r=t.truncate-(2+n.length),i=e.source;return t.stylize(`/${Mh(i,r)}/${n}`,`regexp`)}function Jh(e){let t=[];return e.forEach(e=>{t.push(e)}),t}function Yh(e,t){return e.size===0?`Set{}`:(t.truncate-=7,`Set{ ${Nh(Jh(e),t)} }`)}var Xh=RegExp(`['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]`,`g`),Zh={"\b":`\\b`," ":`\\t`,"\n":`\\n`,"\f":`\\f`,"\r":`\\r`,"'":`\\'`,"\\":`\\\\`},Qh=16,$h=4;function eg(e){return Zh[e]||`\\u${`0000${e.charCodeAt(0).toString(Qh)}`.slice(-$h)}`}function tg(e,t){return Xh.test(e)&&(e=e.replace(Xh,eg)),t.stylize(`'${Mh(e,t.truncate-2)}'`,`string`)}function ng(e){return`description`in Symbol.prototype?e.description?`Symbol(${e.description})`:`Symbol()`:e.toString()}var rg=()=>`Promise{…}`;try{let{getPromiseDetails:e,kPending:t,kRejected:n}=process.binding(`util`);Array.isArray(e(Promise.resolve()))&&(rg=(r,i)=>{let[a,o]=e(r);return a===t?`Promise{<pending>}`:`Promise${a===n?`!`:``}{${i.inspect(o,i)}}`})}catch{}var ig=rg;function ag(e,t){let n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(n.length===0&&r.length===0)return`{}`;if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return`[Circular]`;t.seen.push(e);let i=Nh(n.map(t=>[t,e[t]]),t,Fh),a=Nh(r.map(t=>[t,e[t]]),t,Fh);t.seen.pop();let o=``;return i&&a&&(o=`, `),`{ ${i}${o}${a} }`}var og=typeof Symbol<`u`&&Symbol.toStringTag?Symbol.toStringTag:!1;function sg(e,t){let n=``;return og&&og in e&&(n=e[og]),n||=e.constructor.name,(!n||n===`_class`)&&(n=`<Anonymous Class>`),t.truncate-=n.length,`${n}${ag(e,t)}`}function cg(e,t){return e.length===0?`Arguments[]`:(t.truncate-=13,`Arguments[ ${Nh(e,t)} ]`)}var lg=[`stack`,`line`,`column`,`name`,`message`,`fileName`,`lineNumber`,`columnNumber`,`number`,`description`,`cause`];function ug(e,t){let n=Object.getOwnPropertyNames(e).filter(e=>lg.indexOf(e)===-1),r=e.name;t.truncate-=r.length;let i=``;if(typeof e.message==`string`?i=Mh(e.message,t.truncate):n.unshift(`message`),i=i?`: ${i}`:``,t.truncate-=i.length+5,t.seen=t.seen||[],t.seen.includes(e))return`[Circular]`;t.seen.push(e);let a=Nh(n.map(t=>[t,e[t]]),t,Fh);return`${r}${i}${a?` { ${a} }`:``}`}function dg([e,t],n){return n.truncate-=3,t?`${n.stylize(String(e),`yellow`)}=${n.stylize(`"${t}"`,`string`)}`:`${n.stylize(String(e),`yellow`)}`}function fg(e,t){return Nh(e,t,pg,`
170
- `)}function pg(e,t){switch(e.nodeType){case 1:return mg(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}function mg(e,t){let n=e.getAttributeNames(),r=e.tagName.toLowerCase(),i=t.stylize(`<${r}`,`special`),a=t.stylize(`>`,`special`),o=t.stylize(`</${r}>`,`special`);t.truncate-=r.length*2+5;let s=``;n.length>0&&(s+=` `,s+=Nh(n.map(t=>[t,e.getAttribute(t)]),t,dg,` `)),t.truncate-=s.length;let c=t.truncate,l=fg(e.children,t);return l&&l.length>c&&(l=`${Oh}(${e.children.length})`),`${i}${s}${a}${l}${o}`}var hg=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`chai/inspect`):`@@chai/inspect`,gg=Symbol.for(`nodejs.util.inspect.custom`),_g=new WeakMap,vg={},yg={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:Gh,Number:Gh,bigint:Kh,BigInt:Kh,string:tg,String:tg,function:Bh,Function:Bh,symbol:ng,Symbol:ng,Array:Ih,Date:zh,Map:Uh,Set:Yh,RegExp:qh,Promise:ig,WeakSet:(e,t)=>t.stylize(`WeakSet{…}`,`special`),WeakMap:(e,t)=>t.stylize(`WeakMap{…}`,`special`),Arguments:cg,Int8Array:Rh,Uint8Array:Rh,Uint8ClampedArray:Rh,Int16Array:Rh,Uint16Array:Rh,Int32Array:Rh,Uint32Array:Rh,Float32Array:Rh,Float64Array:Rh,Generator:()=>``,DataView:()=>``,ArrayBuffer:()=>``,Error:ug,HTMLCollection:fg,NodeList:fg},bg=(e,t,n)=>hg in e&&typeof e[hg]==`function`?e[hg](t):gg in e&&typeof e[gg]==`function`?e[gg](t.depth,t):`inspect`in e&&typeof e.inspect==`function`?e.inspect(t.depth,t):`constructor`in e&&_g.has(e.constructor)?_g.get(e.constructor)(e,t):vg[n]?vg[n](e,t):``,xg=Object.prototype.toString;function Sg(e,t={}){let n=Ah(t,Sg),{customInspect:r}=n,i=e===null?`null`:typeof e;if(i===`object`&&(i=xg.call(e).slice(8,-1)),i in yg)return yg[i](e,n);if(r&&e){let t=bg(e,n,i);if(t)return typeof t==`string`?t:Sg(t,n)}let a=e?Object.getPrototypeOf(e):!1;return a===Object.prototype||a===null?ag(e,n):e&&typeof HTMLElement==`function`&&e instanceof HTMLElement?mg(e,n):`constructor`in e?e.constructor===Object?ag(e,n):sg(e,n):e===Object(e)?ag(e,n):n.stylize(String(e),i)}var{AsymmetricMatcher:Cg,DOMCollection:wg,DOMElement:Tg,Immutable:Eg,ReactElement:Dg,ReactTestComponent:Og}=Th,kg=[Og,Dg,Tg,wg,Eg,Cg];function Ag(e,t=10,{maxLength:n,...r}={}){let i=n??1e4,a;try{a=wh(e,{maxDepth:t,escapeString:!1,plugins:kg,...r})}catch{a=wh(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:kg,...r})}return a.length>=i&&t>1?Ag(e,Math.floor(Math.min(t,2**53-1)/2),{maxLength:n,...r}):a}var jg=/%[sdjifoOc%]/g;function Mg(...e){if(typeof e[0]!=`string`){let t=[];for(let n=0;n<e.length;n++)t.push(Ng(e[n],{depth:0,colors:!1}));return t.join(` `)}let t=e.length,n=1,r=e[0],i=String(r).replace(jg,r=>{if(r===`%%`)return`%`;if(n>=t)return r;switch(r){case`%s`:{let t=e[n++];return typeof t==`bigint`?`${t.toString()}n`:typeof t==`number`&&t===0&&1/t<0?`-0`:typeof t==`object`&&t?typeof t.toString==`function`&&t.toString!==Object.prototype.toString?t.toString():Ng(t,{depth:0,colors:!1}):String(t)}case`%d`:{let t=e[n++];return typeof t==`bigint`?`${t.toString()}n`:Number(t).toString()}case`%i`:{let t=e[n++];return typeof t==`bigint`?`${t.toString()}n`:Number.parseInt(String(t)).toString()}case`%f`:return Number.parseFloat(String(e[n++])).toString();case`%o`:return Ng(e[n++],{showHidden:!0,showProxy:!0});case`%O`:return Ng(e[n++]);case`%c`:return n++,``;case`%j`:try{return JSON.stringify(e[n++])}catch(e){let t=e.message;if(t.includes(`circular structure`)||t.includes(`cyclic structures`)||t.includes(`cyclic object`))return`[Circular]`;throw e}default:return r}});for(let r=e[n];n<t;r=e[++n])typeof r!=`object`||!r?i+=` ${r}`:i+=` ${Ng(r)}`;return i}function Ng(e,t={}){return t.truncate===0&&(t.truncate=1/0),Sg(e,t)}function Pg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}function Fg(e,t,n){let r=typeof e;if(!n.includes(r))throw TypeError(`${t} value must be ${n.join(` or `)}, received "${r}"`)}function Ig(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Lg(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}function Rg(e){return Object.prototype.toString.apply(e).slice(8,-1)}function zg(e,t){let n=typeof t==`function`?t:e=>t.add(e);Object.getOwnPropertyNames(e).forEach(n),Object.getOwnPropertySymbols(e).forEach(n)}function Bg(e){let t=new Set;return Lg(e)?[]:(zg(e,t),Array.from(t))}var Vg={forceWritable:!1};function Hg(e,t=Vg){return Ug(e,new WeakMap,t)}function Ug(e,t,n=Vg){let r,i;if(t.has(e))return t.get(e);if(Array.isArray(e)){for(i=Array.from({length:r=e.length}),t.set(e,i);r--;)i[r]=Ug(e[r],t,n);return i}if(Object.prototype.toString.call(e)===`[object Object]`){i=Object.create(Object.getPrototypeOf(e)),t.set(e,i);let r=Bg(e);for(let a of r){let r=Object.getOwnPropertyDescriptor(e,a);if(!r)continue;let o=Ug(e[a],t,n);n.forceWritable?Object.defineProperty(i,a,{enumerable:r.enumerable,configurable:!0,writable:!0,value:o}):`get`in r?Object.defineProperty(i,a,{...r,get(){return o}}):Object.defineProperty(i,a,{...r,value:o})}return i}return e}function Wg(){}var Gg=-1,Kg=1,qg=0,Jg=class{0;1;constructor(e,t){this[0]=e,this[1]=t}};function Yg(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let n=0,r=Math.min(e.length,t.length),i=r,a=0;for(;n<i;)e.substring(a,i)===t.substring(a,i)?(n=i,a=n):r=i,i=Math.floor((r-n)/2+n);return i}function Xg(e,t){if(!e||!t||e.charAt(e.length-1)!==t.charAt(t.length-1))return 0;let n=0,r=Math.min(e.length,t.length),i=r,a=0;for(;n<i;)e.substring(e.length-i,e.length-a)===t.substring(t.length-i,t.length-a)?(n=i,a=n):r=i,i=Math.floor((r-n)/2+n);return i}function Zg(e,t){let n=e.length,r=t.length;if(n===0||r===0)return 0;n>r?e=e.substring(n-r):n<r&&(t=t.substring(0,n));let i=Math.min(n,r);if(e===t)return i;let a=0,o=1;for(;;){let n=e.substring(i-o),r=t.indexOf(n);if(r===-1)return a;o+=r,(r===0||e.substring(i-o)===t.substring(0,o))&&(a=o,o++)}}function Qg(e){let t=!1,n=[],r=0,i=null,a=0,o=0,s=0,c=0,l=0;for(;a<e.length;)e[a][0]===qg?(n[r++]=a,o=c,s=l,c=0,l=0,i=e[a][1]):(e[a][0]===Kg?c+=e[a][1].length:l+=e[a][1].length,i&&i.length<=Math.max(o,s)&&i.length<=Math.max(c,l)&&(e.splice(n[r-1],0,new Jg(Gg,i)),e[n[r-1]+1][0]=Kg,r--,r--,a=r>0?n[r-1]:-1,o=0,s=0,c=0,l=0,i=null,t=!0)),a++;for(t&&a_(e),i_(e),a=1;a<e.length;){if(e[a-1][0]===Gg&&e[a][0]===Kg){let t=e[a-1][1],n=e[a][1],r=Zg(t,n),i=Zg(n,t);r>=i?(r>=t.length/2||r>=n.length/2)&&(e.splice(a,0,new Jg(qg,n.substring(0,r))),e[a-1][1]=t.substring(0,t.length-r),e[a+1][1]=n.substring(r),a++):(i>=t.length/2||i>=n.length/2)&&(e.splice(a,0,new Jg(qg,t.substring(0,i))),e[a-1][0]=Kg,e[a-1][1]=n.substring(0,n.length-i),e[a+1][0]=Gg,e[a+1][1]=t.substring(i),a++),a++}a++}}var $g=/[^a-z0-9]/i,e_=/\s/,t_=/[\r\n]/,n_=/\n\r?\n$/,r_=/^\r?\n\r?\n/;function i_(e){let t=1;for(;t<e.length-1;){if(e[t-1][0]===qg&&e[t+1][0]===qg){let n=e[t-1][1],r=e[t][1],i=e[t+1][1],a=Xg(n,r);if(a){let e=r.substring(r.length-a);n=n.substring(0,n.length-a),r=e+r.substring(0,r.length-a),i=e+i}let o=n,s=r,c=i,l=o_(n,r)+o_(r,i);for(;r.charAt(0)===i.charAt(0);){n+=r.charAt(0),r=r.substring(1)+i.charAt(0),i=i.substring(1);let e=o_(n,r)+o_(r,i);e>=l&&(l=e,o=n,s=r,c=i)}e[t-1][1]!==o&&(o?e[t-1][1]=o:(e.splice(t-1,1),t--),e[t][1]=s,c?e[t+1][1]=c:(e.splice(t+1,1),t--))}t++}}function a_(e){e.push(new Jg(qg,``));let t=0,n=0,r=0,i=``,a=``,o;for(;t<e.length;)switch(e[t][0]){case Kg:r++,a+=e[t][1],t++;break;case Gg:n++,i+=e[t][1],t++;break;case qg:n+r>1?(n!==0&&r!==0&&(o=Yg(a,i),o!==0&&(t-n-r>0&&e[t-n-r-1][0]===qg?e[t-n-r-1][1]+=a.substring(0,o):(e.splice(0,0,new Jg(qg,a.substring(0,o))),t++),a=a.substring(o),i=i.substring(o)),o=Xg(a,i),o!==0&&(e[t][1]=a.substring(a.length-o)+e[t][1],a=a.substring(0,a.length-o),i=i.substring(0,i.length-o))),t-=n+r,e.splice(t,n+r),i.length&&(e.splice(t,0,new Jg(Gg,i)),t++),a.length&&(e.splice(t,0,new Jg(Kg,a)),t++),t++):t!==0&&e[t-1][0]===qg?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,r=0,n=0,i=``,a=``;break}e[e.length-1][1]===``&&e.pop();let s=!1;for(t=1;t<e.length-1;)e[t-1][0]===qg&&e[t+1][0]===qg&&(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&&a_(e)}function o_(e,t){if(!e||!t)return 6;let n=e.charAt(e.length-1),r=t.charAt(0),i=n.match($g),a=r.match($g),o=i&&n.match(e_),s=a&&r.match(e_),c=o&&n.match(t_),l=s&&r.match(t_),u=c&&e.match(n_),d=l&&t.match(r_);return u||d?5:c||l?4:i&&!o&&s?3:o||s?2:i||a?1:0}var s_=`Compared values have no visual difference.`,c_="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",l_={},u_;function d_(){if(u_)return l_;u_=1,Object.defineProperty(l_,`__esModule`,{value:!0}),l_.default=d;let e=`diff-sequences`,t=(e,t,n,r,i)=>{let a=0;for(;e<t&&n<r&&i(e,n);)e+=1,n+=1,a+=1;return a},n=(e,t,n,r,i)=>{let a=0;for(;e<=t&&n<=r&&i(t,r);)--t,--r,a+=1;return a},r=(e,n,r,i,a,o,s)=>{let c=0,l=-e,u=o[c],d=u;o[c]+=t(u+1,n,i+u-l+1,r,a);let f=e<s?e:s;for(c+=1,l+=2;c<=f;c+=1,l+=2){if(c!==e&&d<o[c])u=o[c];else if(u=d+1,n<=u)return c-1;d=o[c],o[c]=u+t(u+1,n,i+u-l+1,r,a)}return s},i=(e,t,r,i,a,o,s)=>{let c=0,l=e,u=o[c],d=u;o[c]-=n(t,u-1,r,i+u-l-1,a);let f=e<s?e:s;for(c+=1,l-=2;c<=f;c+=1,l-=2){if(c!==e&&o[c]<d)u=o[c];else if(u=d-1,u<t)return c-1;d=o[c],o[c]=u-n(t,u-1,r,i+u-l-1,a)}return s},a=(e,r,i,a,o,s,c,l,u,d,f)=>{let p=a-r,m=i-r,h=o-a-m,g=-h-(e-1),_=-h+(e-1),v=0,y=e<l?e:l;for(let l=0,m=-e;l<=y;l+=1,m+=2){let y=l===0||l!==e&&v<c[l],b=y?c[l]:v,x=y?b:b+1,S=p+x-m,C=t(x+1,i,S+1,o,s),w=x+C;if(v=c[l],c[l]=w,g<=m&&m<=_){let t=(e-1-(m+h))/2;if(t<=d&&u[t]-1<=w){let t=p+b-(y?m+1:m-1),c=n(r,b,a,t,s),l=b-c,u=t-c,d=l+1,h=u+1;f.nChangePreceding=e-1,e-1===d+h-r-a?(f.aEndPreceding=r,f.bEndPreceding=a):(f.aEndPreceding=d,f.bEndPreceding=h),f.nCommonPreceding=c,c!==0&&(f.aCommonPreceding=d,f.bCommonPreceding=h),f.nCommonFollowing=C,C!==0&&(f.aCommonFollowing=x+1,f.bCommonFollowing=S+1);let g=w+1,_=S+C+1;return f.nChangeFollowing=e-1,e-1===i+o-g-_?(f.aStartFollowing=i,f.bStartFollowing=o):(f.aStartFollowing=g,f.bStartFollowing=_),!0}}}return!1},o=(e,r,i,a,o,s,c,l,u,d,f)=>{let p=o-i,m=i-r,h=o-a-m,g=h-e,_=h+e,v=0,y=e<d?e:d;for(let d=0,m=e;d<=y;d+=1,m-=2){let y=d===0||d!==e&&u[d]<v,b=y?u[d]:v,x=y?b:b-1,S=p+x-m,C=n(r,x-1,a,S-1,s),w=x-C;if(v=u[d],u[d]=w,g<=m&&m<=_){let n=(e+(m-h))/2;if(n<=l&&w-1<=c[n]){let n=S-C;if(f.nChangePreceding=e,e===w+n-r-a?(f.aEndPreceding=r,f.bEndPreceding=a):(f.aEndPreceding=w,f.bEndPreceding=n),f.nCommonPreceding=C,C!==0&&(f.aCommonPreceding=w,f.bCommonPreceding=n),f.nChangeFollowing=e-1,e===1)f.nCommonFollowing=0,f.aStartFollowing=i,f.bStartFollowing=o;else{let n=p+b-(y?m-1:m+1),r=t(b,i,n,o,s);f.nCommonFollowing=r,r!==0&&(f.aCommonFollowing=b,f.bCommonFollowing=n);let a=b+r,c=n+r;e-1===i+o-a-c?(f.aStartFollowing=i,f.bStartFollowing=o):(f.aStartFollowing=a,f.bStartFollowing=c)}return!0}}}return!1},s=(t,n,s,c,l,u,d,f,p)=>{let m=c-n,h=l-s,g=s-n,_=l-c,v=_-g,y=g,b=g;if(d[0]=n-1,f[0]=s,v%2==0){let e=(t||v)/2,a=(g+_)/2;for(let t=1;t<=a;t+=1)if(y=r(t,s,l,m,u,d,y),t<e)b=i(t,n,c,h,u,f,b);else if(o(t,n,s,c,l,u,d,y,f,b,p))return}else{let e=((t||v)+1)/2,o=(g+_+1)/2,x=1;for(y=r(x,s,l,m,u,d,y),x+=1;x<=o;x+=1)if(b=i(x-1,n,c,h,u,f,b),x<e)y=r(x,s,l,m,u,d,y);else if(a(x,n,s,c,l,u,d,y,f,b,p))return}throw Error(`${e}: no overlap aStart=${n} aEnd=${s} bStart=${c} bEnd=${l}`)},c=(e,t,n,r,i,a,o,l,u,d)=>{if(i-r<n-t){if(a=!a,a&&o.length===1){let{foundSubsequence:e,isCommon:t}=o[0];o[1]={foundSubsequence:(t,n,r)=>{e(t,r,n)},isCommon:(e,n)=>t(n,e)}}let e=t,s=n;t=r,n=i,r=e,i=s}let{foundSubsequence:f,isCommon:p}=o[a?1:0];s(e,t,n,r,i,p,l,u,d);let{nChangePreceding:m,aEndPreceding:h,bEndPreceding:g,nCommonPreceding:_,aCommonPreceding:v,bCommonPreceding:y,nCommonFollowing:b,aCommonFollowing:x,bCommonFollowing:S,nChangeFollowing:C,aStartFollowing:w,bStartFollowing:T}=d;t<h&&r<g&&c(m,t,h,r,g,a,o,l,u,d),_!==0&&f(_,v,y),b!==0&&f(b,x,S),w<n&&T<i&&c(C,w,n,T,i,a,o,l,u,d)},l=(t,n)=>{if(typeof n!=`number`)throw TypeError(`${e}: ${t} typeof ${typeof n} is not a number`);if(!Number.isSafeInteger(n))throw RangeError(`${e}: ${t} value ${n} is not a safe integer`);if(n<0)throw RangeError(`${e}: ${t} value ${n} is a negative integer`)},u=(t,n)=>{let r=typeof n;if(r!==`function`)throw TypeError(`${e}: ${t} typeof ${r} is not a function`)};function d(e,r,i,a){l(`aLength`,e),l(`bLength`,r),u(`isCommon`,i),u(`foundSubsequence`,a);let o=t(0,e,0,r,i);if(o!==0&&a(o,0,0),e!==o||r!==o){let t=o,s=o,l=n(t,e-1,s,r-1,i),u=e-l,d=r-l,f=o+l;e!==f&&r!==f&&c(0,t,u,s,d,!1,[{foundSubsequence:a,isCommon:i}],[0],[0],{aCommonFollowing:0,aCommonPreceding:0,aEndPreceding:0,aStartFollowing:0,bCommonFollowing:0,bCommonPreceding:0,bEndPreceding:0,bStartFollowing:0,nChangeFollowing:0,nChangePreceding:0,nCommonFollowing:0,nCommonPreceding:0}),l!==0&&a(l,u,d)}}return l_}var f_=Pg(d_());function p_(e,t){return e.replace(/\s+$/,e=>t(e))}function m_(e,t,n,r,i,a){return e.length===0?r===` `?t&&a.length!==0?n(`${r} ${a}`):``:n(r):n(`${r} ${p_(e,i)}`)}function h_(e,t,{aColor:n,aIndicator:r,changeLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:a}){return m_(e,t,n,r,i,a)}function g_(e,t,{bColor:n,bIndicator:r,changeLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:a}){return m_(e,t,n,r,i,a)}function __(e,t,{commonColor:n,commonIndicator:r,commonLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:a}){return m_(e,t,n,r,i,a)}function v_(e,t,n,r,{patchColor:i}){return i(`@@ -${e+1},${t-e} +${n+1},${r-n} @@`)}function y_(e,t){let n=e.length,r=t.contextLines,i=r+r,a=n,o=!1,s=0,c=0;for(;c!==n;){let t=c;for(;c!==n&&e[c][0]===qg;)c+=1;if(t!==c)if(t===0)c>r&&(a-=c-r,o=!0);else if(c===n){let e=c-t;e>r&&(a-=e-r,o=!0)}else{let e=c-t;e>i&&(a-=e-i,s+=1)}for(;c!==n&&e[c][0]!==qg;)c+=1}let l=s!==0||o;s===0?o&&(a+=1):a+=s+1;let u=a-1,d=[],f=0;l&&d.push(``);let p=0,m=0,h=0,g=0,_=e=>{let n=d.length;d.push(__(e,n===0||n===u,t)),h+=1,g+=1},v=e=>{let n=d.length;d.push(h_(e,n===0||n===u,t)),h+=1},y=e=>{let n=d.length;d.push(g_(e,n===0||n===u,t)),g+=1};for(c=0;c!==n;){let a=c;for(;c!==n&&e[c][0]===qg;)c+=1;if(a!==c)if(a===0){c>r&&(a=c-r,p=a,m=a,h=p,g=m);for(let t=a;t!==c;t+=1)_(e[t][1])}else if(c===n){let t=c-a>r?a+r:c;for(let n=a;n!==t;n+=1)_(e[n][1])}else{let n=c-a;if(n>i){let o=a+r;for(let t=a;t!==o;t+=1)_(e[t][1]);d[f]=v_(p,h,m,g,t),f=d.length,d.push(``);let s=n-i;p=h+s,m=g+s,h=p,g=m;for(let t=c-r;t!==c;t+=1)_(e[t][1])}else for(let t=a;t!==c;t+=1)_(e[t][1])}for(;c!==n&&e[c][0]===Gg;)v(e[c][1]),c+=1;for(;c!==n&&e[c][0]===Kg;)y(e[c][1]),c+=1}return l&&(d[f]=v_(p,h,m,g,t)),d.join(`
171
- `)}function b_(e,t){return e.map((e,n,r)=>{let i=e[1],a=n===0||n===r.length-1;switch(e[0]){case Gg:return h_(i,a,t);case Kg:return g_(i,a,t);default:return __(i,a,t)}}).join(`
172
- `)}var x_=e=>e,S_=5,C_=0;function w_(){return{aAnnotation:`Expected`,aColor:yp.green,aIndicator:`-`,bAnnotation:`Received`,bColor:yp.red,bIndicator:`+`,changeColor:yp.inverse,changeLineTrailingSpaceColor:x_,commonColor:yp.dim,commonIndicator:` `,commonLineTrailingSpaceColor:x_,compareKeys:void 0,contextLines:S_,emptyFirstOrLastLinePlaceholder:``,expand:!1,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:yp.yellow,printBasicPrototype:!1,truncateThreshold:C_,truncateAnnotation:`... Diff result is truncated`,truncateAnnotationColor:x_}}function T_(e){return e&&typeof e==`function`?e:void 0}function E_(e){return typeof e==`number`&&Number.isSafeInteger(e)&&e>=0?e:S_}function D_(e={}){return{...w_(),...e,compareKeys:T_(e.compareKeys),contextLines:E_(e.contextLines)}}function O_(e){return e.length===1&&e[0].length===0}function k_(e){let t=0,n=0;return e.forEach(e=>{switch(e[0]){case Gg:t+=1;break;case Kg:n+=1;break}}),{a:t,b:n}}function A_({aAnnotation:e,aColor:t,aIndicator:n,bAnnotation:r,bColor:i,bIndicator:a,includeChangeCounts:o,omitAnnotationLines:s},c){if(s)return``;let l=``,u=``;if(o){let t=String(c.a),i=String(c.b),o=r.length-e.length,s=` `.repeat(Math.max(0,o)),d=` `.repeat(Math.max(0,-o)),f=i.length-t.length,p=` `.repeat(Math.max(0,f)),m=` `.repeat(Math.max(0,-f));l=`${s} ${n} ${p}${t}`,u=`${d} ${a} ${m}${i}`}let d=`${n} ${e}${l}`,f=`${a} ${r}${u}`;return`${t(d)}
173
- ${i(f)}
174
-
175
- `}function j_(e,t,n){return A_(n,k_(e))+(n.expand?b_(e,n):y_(e,n))+(t?n.truncateAnnotationColor(`
176
- ${n.truncateAnnotation}`):``)}function M_(e,t,n){let r=D_(n),[i,a]=P_(O_(e)?[]:e,O_(t)?[]:t,r);return j_(i,a,r)}function N_(e,t,n,r,i){if(O_(e)&&O_(n)&&(e=[],n=[]),O_(t)&&O_(r)&&(t=[],r=[]),e.length!==n.length||t.length!==r.length)return M_(e,t,i);let[a,o]=P_(n,r,i),s=0,c=0;return a.forEach(n=>{switch(n[0]){case Gg:n[1]=e[s],s+=1;break;case Kg:n[1]=t[c],c+=1;break;default:n[1]=t[c],s+=1,c+=1}}),j_(a,o,D_(i))}function P_(e,t,n){let r=n?.truncateThreshold??!1,i=Math.max(Math.floor(n?.truncateThreshold??0),0),a=r?Math.min(e.length,i):e.length,o=r?Math.min(t.length,i):t.length,s=a!==e.length||o!==t.length,c=(n,r)=>e[n]===t[r],l=[],u=0,d=0;for(f_(a,o,c,(n,r,i)=>{for(;u!==r;u+=1)l.push(new Jg(Gg,e[u]));for(;d!==i;d+=1)l.push(new Jg(Kg,t[d]));for(;n!==0;--n,u+=1,d+=1)l.push(new Jg(qg,t[d]))});u!==a;u+=1)l.push(new Jg(Gg,e[u]));for(;d!==o;d+=1)l.push(new Jg(Kg,t[d]));return[l,s]}function F_(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 Error(`value of unknown type: ${e}`)}function I_(e){return e.includes(`\r
177
- `)?`\r
178
- `:`
179
- `}function L_(e,t,n){let r=n?.truncateThreshold??!1,i=Math.max(Math.floor(n?.truncateThreshold??0),0),a=e.length,o=t.length;if(r){let n=e.includes(`
180
- `),r=t.includes(`
181
- `),s=I_(e),c=I_(t),l=n?`${e.split(s,i).join(s)}
182
- `:e,u=r?`${t.split(c,i).join(c)}
183
- `:t;a=l.length,o=u.length}let s=a!==e.length||o!==t.length,c=(n,r)=>e[n]===t[r],l=0,u=0,d=[];return f_(a,o,c,(n,r,i)=>{l!==r&&d.push(new Jg(Gg,e.slice(l,r))),u!==i&&d.push(new Jg(Kg,t.slice(u,i))),l=r+n,u=i+n,d.push(new Jg(qg,t.slice(i,u)))}),l!==a&&d.push(new Jg(Gg,e.slice(l))),u!==o&&d.push(new Jg(Kg,t.slice(u))),[d,s]}function R_(e,t,n){return t.reduce((t,r)=>t+(r[0]===qg?r[1]:r[0]===e&&r[1].length!==0?n(r[1]):``),``)}var z_=class{op;line;lines;changeColor;constructor(e,t){this.op=e,this.line=[],this.lines=[],this.changeColor=t}pushSubstring(e){this.pushDiff(new Jg(this.op,e))}pushLine(){this.lines.push(this.line.length===1?this.line[0][0]===this.op?this.line[0]:new Jg(this.op,this.line[0][1]):new Jg(this.op,R_(this.op,this.line,this.changeColor))),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(`
184
- `)){let e=t.split(`
185
- `),n=e.length-1;e.forEach((e,t)=>{t<n?(this.pushSubstring(e),this.pushLine()):e.length!==0&&this.pushSubstring(e)})}else this.pushDiff(e)}moveLinesTo(e){this.isLineEmpty()||this.pushLine(),e.push(...this.lines),this.lines.length=0}},B_=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],n=e[1];if(n.includes(`
186
- `)){let e=n.split(`
187
- `),r=e.length-1;e.forEach((e,n)=>{if(n===0){let n=new Jg(t,e);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(n)):(this.pushDiffChangeLines(n),this.flushChangeLines())}else n<r?this.pushDiffCommonLine(new Jg(t,e)):e.length!==0&&this.pushDiffChangeLines(new Jg(t,e))})}else this.pushDiffChangeLines(e)}getLines(){return this.flushChangeLines(),this.lines}};function V_(e,t){let n=new z_(Gg,t),r=new z_(Kg,t),i=new B_(n,r);return e.forEach(e=>{switch(e[0]){case Gg:n.align(e);break;case Kg:r.align(e);break;default:i.align(e)}}),i.getLines()}function H_(e,t){if(t){let t=e.length-1;return e.some((e,n)=>e[0]===qg&&(n!==t||e[1]!==`
188
- `))}return e.some(e=>e[0]===qg)}function U_(e,t,n){if(e!==t&&e.length!==0&&t.length!==0){let r=e.includes(`
189
- `)||t.includes(`
190
- `),[i,a]=W_(r?`${e}
191
- `:e,r?`${t}
192
- `:t,!0,n);if(H_(i,r)){let e=D_(n);return j_(V_(i,e.changeColor),a,e)}}return M_(e.split(`
193
- `),t.split(`
194
- `),n)}function W_(e,t,n,r){let[i,a]=L_(e,t,r);return n&&Qg(i),[i,a]}function G_(e,t){let{commonColor:n}=D_(t);return n(e)}var{AsymmetricMatcher:K_,DOMCollection:q_,DOMElement:J_,Immutable:Y_,ReactElement:X_,ReactTestComponent:Z_}=Th,Q_=[Z_,X_,J_,q_,Y_,K_,Th.Error],$_={maxDepth:20,plugins:Q_},ev={callToJSON:!1,maxDepth:8,plugins:Q_};function tv(e,t,n){if(Object.is(e,t))return``;let r=F_(e),i=r,a=!1;if(r===`object`&&typeof e.asymmetricMatch==`function`){if(e.$$typeof!==Symbol.for(`jest.asymmetricMatcher`)||typeof e.getExpectedType!=`function`)return;i=e.getExpectedType(),a=i===`string`}if(i!==F_(t)){let r=function(e){return e.length<=p?e:`${e.slice(0,p)}...`},{aAnnotation:i,aColor:a,aIndicator:o,bAnnotation:s,bColor:c,bIndicator:l}=D_(n),u=ov(ev,n),d=wh(e,u),f=wh(t,u),p=1e5;return d=r(d),f=r(f),`${`${a(`${o} ${i}:`)}
195
- ${d}`}
196
-
197
- ${`${c(`${l} ${s}:`)}
198
- ${f}`}`}if(!a)switch(r){case`string`:return M_(e.split(`
199
- `),t.split(`
200
- `),n);case`boolean`:case`number`:return nv(e,t,n);case`map`:return av(rv(e),rv(t),n);case`set`:return av(iv(e),iv(t),n);default:return av(e,t,n)}}function nv(e,t,n){let r=wh(e,$_),i=wh(t,$_);return r===i?``:M_(r.split(`
201
- `),i.split(`
202
- `),n)}function rv(e){return new Map(Array.from(e.entries()).sort())}function iv(e){return new Set(Array.from(e.values()).sort())}function av(e,t,n){let r,i=!1;try{r=sv(e,t,ov($_,n),n)}catch{i=!0}let a=G_(s_,n);return(r===void 0||r===a)&&(r=sv(e,t,ov(ev,n),n),r!==a&&!i&&(r=`${G_(c_,n)}
203
-
204
- ${r}`)),r}function ov(e,t){let{compareKeys:n,printBasicPrototype:r,maxDepth:i}=D_(t);return{...e,compareKeys:n,printBasicPrototype:r,maxDepth:i??e.maxDepth}}function sv(e,t,n,r){let i={...n,indent:0},a=wh(e,i),o=wh(t,i);if(a===o)return G_(s_,r);{let i=wh(e,n),s=wh(t,n);return N_(i.split(`
205
- `),s.split(`
206
- `),a.split(`
207
- `),o.split(`
208
- `),r)}}var cv=2e4;function lv(e){return Rg(e)===`Object`&&typeof e.asymmetricMatch==`function`}function uv(e,t){let n=Rg(e);return n===Rg(t)&&(n===`Object`||n===`Array`)}function dv(e,t,n){let{aAnnotation:r,bAnnotation:i}=D_(n);if(typeof t==`string`&&typeof e==`string`&&t.length>0&&e.length>0&&t.length<=cv&&e.length<=cv&&t!==e){if(t.includes(`
209
- `)||e.includes(`
210
- `))return U_(t,e,n);let[a]=W_(t,e,!0),o=a.some(e=>e[0]===qg),s=pv(r,i);return`${s(r)+_v(vv(a,Gg,o))}
211
- ${s(i)+gv(vv(a,Kg,o))}`}let a=Hg(t,{forceWritable:!0}),{replacedExpected:o,replacedActual:s}=fv(Hg(e,{forceWritable:!0}),a);return tv(o,s,n)}function fv(e,t,n=new WeakSet,r=new WeakSet){return e instanceof Error&&t instanceof Error&&typeof e.cause<`u`&&typeof t.cause>`u`?(delete e.cause,{replacedActual:e,replacedExpected:t}):uv(e,t)?n.has(e)||r.has(t)?{replacedActual:e,replacedExpected:t}:(n.add(e),r.add(t),Bg(t).forEach(i=>{let a=t[i],o=e[i];if(lv(a))a.asymmetricMatch(o)&&(e[i]=a);else if(lv(o))o.asymmetricMatch(a)&&(t[i]=o);else if(uv(o,a)){let s=fv(o,a,n,r);e[i]=s.replacedActual,t[i]=s.replacedExpected}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}function pv(...e){let t=e.reduce((e,t)=>t.length>e?t.length:e,0);return e=>`${e}: ${` `.repeat(t-e.length)}`}var mv=`·`;function hv(e){return e.replace(/\s+$/gm,e=>mv.repeat(e.length))}function gv(e){return yp.red(hv(Ag(e)))}function _v(e){return yp.green(hv(Ag(e)))}function vv(e,t,n){return e.reduce((e,r)=>e+(r[0]===qg?r[1]:r[0]===t?n?yp.inverse(r[1]):r[1]:``),``)}var yv=`@@__IMMUTABLE_RECORD__@@`,bv=`@@__IMMUTABLE_ITERABLE__@@`;function xv(e){return e&&(e[bv]||e[yv])}var Sv=Object.getPrototypeOf({});function Cv(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e==`string`?`<unserializable>: ${e}`:`<unserializable>`}function wv(e,t=new WeakMap){if(!e||typeof e==`string`)return e;if(e instanceof Error&&`toJSON`in e&&typeof e.toJSON==`function`){let n=e.toJSON();return n&&n!==e&&typeof n==`object`&&(typeof e.message==`string`&&Tv(()=>n.message??=e.message),typeof e.stack==`string`&&Tv(()=>n.stack??=e.stack),typeof e.name==`string`&&Tv(()=>n.name??=e.name),e.cause!=null&&Tv(()=>n.cause??=wv(e.cause,t))),wv(n,t)}if(typeof e==`function`)return`Function<${e.name||`anonymous`}>`;if(typeof e==`symbol`)return e.toString();if(typeof e!=`object`)return e;if(typeof Buffer<`u`&&e instanceof Buffer)return`<Buffer(${e.length}) ...>`;if(typeof Uint8Array<`u`&&e instanceof Uint8Array)return`<Uint8Array(${e.length}) ...>`;if(xv(e))return wv(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()} ${Mg(e.sample)}`;if(typeof e.toJSON==`function`)return wv(e.toJSON(),t);if(t.has(e))return t.get(e);if(Array.isArray(e)){let n=Array(e.length);return t.set(e,n),e.forEach((e,r)=>{try{n[r]=wv(e,t)}catch(e){n[r]=Cv(e)}}),n}else{let n=Object.create(null);t.set(e,n);let r=e;for(;r&&r!==Sv;)Object.getOwnPropertyNames(r).forEach(r=>{if(!(r in n))try{n[r]=wv(e[r],t)}catch(e){delete n[r],n[r]=Cv(e)}}),r=Object.getPrototypeOf(r);return n}}function Tv(e){try{return e()}catch{}}function Ev(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,``)}function Dv(e,t,n=new WeakSet){if(!e||typeof e!=`object`)return{message:String(e)};let r=e;(r.showDiff||r.showDiff===void 0&&r.expected!==void 0&&r.actual!==void 0)&&(r.diff=dv(r.actual,r.expected,{...t,...r.diffOptions})),`expected`in r&&typeof r.expected!=`string`&&(r.expected=Ag(r.expected,10)),`actual`in r&&typeof r.actual!=`string`&&(r.actual=Ag(r.actual,10));try{typeof r.message==`string`&&(r.message=Ev(r.message))}catch{}try{!n.has(r)&&typeof r.cause==`object`&&(n.add(r),r.cause=Dv(r.cause,t,n))}catch{}try{return wv(r)}catch(e){return wv(Error(`Failed to fully serialize error: ${e?.message}
212
- Inner error message: ${r?.message}`))}}var Ov={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`},kv=globalThis.__STORYBOOK_ADDONS_PREVIEW,Av=Error("This function ran after the play function completed. Did you forget to `await` it?"),jv=e=>Object.prototype.toString.call(e)===`[object Object]`,Mv=e=>Object.prototype.toString.call(e)===`[object Module]`,Nv=e=>{if(!jv(e)&&!Mv(e))return!1;if(e.constructor===void 0)return!0;let t=e.constructor.prototype;return!!jv(t)},Pv=e=>{try{return new e.constructor}catch{return{}}},Fv=()=>({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}),Iv=(e,t=!1)=>{let n=(t?e.shadowCalls:e.calls).filter(e=>e.retain);if(!n.length)return;let r=new Map(Array.from(e.callRefsByResult.entries()).filter(([,e])=>e.retain));return{cursor:n.length,calls:n,callRefsByResult:r}},Lv=class{constructor(){this.detached=!1,this.initialized=!1,this.state={},this.loadParentWindowState=()=>{try{this.state=G.window?.parent?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__||{}}catch{this.detached=!0}},this.updateParentWindowState=()=>{try{G.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state}catch{this.detached=!0}},this.loadParentWindowState();let e=({storyId:e,renderPhase:t,isPlaying:n=!0,isDebugging:r=!1})=>{let i=this.getState(e);this.setState(e,{...Fv(),...Iv(i,r),renderPhase:t||i.renderPhase,shadowCalls:r?i.shadowCalls:[],chainedCallIds:r?i.chainedCallIds:new Set,playUntil:r?i.playUntil:void 0,isPlaying:n,isDebugging:r}),this.sync(e)},t=e=>({storyId:t,playUntil:n})=>{this.getState(t).isDebugging||this.setState(t,({calls:e})=>({calls:[],shadowCalls:e.map(e=>({...e,status:`waiting`})),isDebugging:!0}));let r=this.getLog(t);this.setState(t,({shadowCalls:e})=>{if(n||!r.length)return{playUntil:n};let t=e.findIndex(e=>e.id===r[0].callId);return{playUntil:e.slice(0,t).filter(e=>e.interceptable&&!e.ancestors?.length).slice(-1)[0]?.id}}),e.emit(mo,{storyId:t,isDebugging:!0})},n=e=>({storyId:n})=>{let r=this.getLog(n).filter(e=>!e.ancestors?.length),i=r.reduceRight((e,t,n)=>e>=0||t.status===`waiting`?e:n,-1);t(e)({storyId:n,playUntil:r[i-1]?.callId})},r=e=>({storyId:n,callId:r})=>{let{calls:i,shadowCalls:a,resolvers:o}=this.getState(n),s=i.find(({id:e})=>e===r),c=a.find(({id:e})=>e===r);if(!s&&c&&Object.values(o).length>0){let e=this.getLog(n).find(e=>e.status===`waiting`)?.callId;c.id!==e&&this.setState(n,{playUntil:c.id}),Object.values(o).forEach(e=>e())}else t(e)({storyId:n,playUntil:r})},i=e=>({storyId:n})=>{let{resolvers:r}=this.getState(n);if(Object.values(r).length>0)Object.values(r).forEach(e=>e());else{let r=this.getLog(n).find(e=>e.status===`waiting`)?.callId;r?t(e)({storyId:n,playUntil:r}):a({storyId:n})}},a=({storyId:e})=>{this.setState(e,{playUntil:void 0,isDebugging:!1}),Object.values(this.getState(e).resolvers).forEach(e=>e())},o=({storyId:t,newPhase:n})=>{let{isDebugging:r}=this.getState(t);if(n===`preparing`&&r||n===`playing`)return e({storyId:t,renderPhase:n,isDebugging:r});n===`played`?this.setState(t,{renderPhase:n,isLocked:!1,isPlaying:!1,isDebugging:!1}):n===`errored`?this.setState(t,{renderPhase:n,isLocked:!1,isPlaying:!1}):n===`aborted`?this.setState(t,{renderPhase:n,isLocked:!0,isPlaying:!1}):this.setState(t,{renderPhase:n}),this.sync(t)};kv&&kv.ready().then(()=>{this.channel=kv.getChannel(),this.channel.on(mo,e),this.channel.on(Ho,o),this.channel.on(Do,()=>{this.initialized?this.cleanup():this.initialized=!0}),this.channel.on(Ov.START,t(this.channel)),this.channel.on(Ov.BACK,n(this.channel)),this.channel.on(Ov.GOTO,r(this.channel)),this.channel.on(Ov.NEXT,i(this.channel)),this.channel.on(Ov.END,a)})}getState(e){return this.state[e]||Fv()}setState(e,t){if(e){let n=this.getState(e),r=typeof t==`function`?t(n):t;this.state={...this.state,[e]:{...n,...r}},this.updateParentWindowState()}}cleanup(){this.state=Object.entries(this.state).reduce((e,[t,n])=>{let r=Iv(n);return r&&(e[t]=Object.assign(Fv(),r)),e},{});let e={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:[]};this.channel?.emit(Ov.SYNC,e),this.updateParentWindowState()}getLog(e){let{calls:t,shadowCalls:n}=this.getState(e),r=[...n];t.forEach((e,t)=>{r[t]=e});let i=new Set;return r.reduceRight((e,t)=>(t.args.forEach(e=>{e?.__callId__&&i.add(e.__callId__)}),t.path.forEach(e=>{e.__callId__&&i.add(e.__callId__)}),(t.interceptable||t.exception)&&!i.has(t.id)&&(e.unshift({callId:t.id,status:t.status,ancestors:t.ancestors}),i.add(t.id)),e),[])}instrument(e,t,n=0){if(!Nv(e))return e;let{mutate:r=!1,path:i=[]}=t,a=t.getKeys?t.getKeys(e,n):Object.keys(e);return n+=1,a.reduce((r,a)=>{let o=zv(e,a);if(typeof o?.get==`function`){if(o.configurable){let s=()=>o?.get?.bind(e)?.();Object.defineProperty(r,a,{get:()=>this.instrument(s(),{...t,path:i.concat(a)},n)})}return r}let s=e[a];return typeof s==`function`?`__originalFn__`in s&&typeof s.__originalFn__==`function`?(r[a]=s,r):(r[a]=(...n)=>this.track(a,s,e,n,t),r[a].__originalFn__=s,Object.defineProperty(r[a],`name`,{value:a,writable:!1}),Object.keys(s).length>0&&Object.assign(r[a],this.instrument({...s},{...t,path:i.concat(a)},n)),r):(r[a]=this.instrument(s,{...t,path:i.concat(a)},n),r)},r?e:Pv(e))}track(e,t,n,r,i){let a=r?.[0]?.__storyId__||G.__STORYBOOK_PREVIEW__?.selectionStore?.selection?.storyId,{cursor:o,ancestors:s}=this.getState(a);this.setState(a,{cursor:o+1});let c=`${s.slice(-1)[0]||a} [${o}] ${e}`,{path:l=[],intercept:u=!1,retain:d=!1}=i,f=typeof u==`function`?u(e,l):u,p={id:c,cursor:o,storyId:a,ancestors:s,path:l,method:e,args:r,interceptable:f,retain:d},m=(f&&!s.length?this.intercept:this.invoke).call(this,t,n,p,i);return this.instrument(m,{...i,mutate:!0,path:[{__callId__:p.id}]})}intercept(e,t,n,r){let{chainedCallIds:i,isDebugging:a,playUntil:o}=this.getState(n.storyId),s=i.has(n.id);return!a||s||o?(o===n.id&&this.setState(n.storyId,{playUntil:void 0}),this.invoke(e,t,n,r)):new Promise(e=>{this.setState(n.storyId,({resolvers:t})=>({isLocked:!1,resolvers:{...t,[n.id]:e}}))}).then(()=>(this.setState(n.storyId,e=>{let{[n.id]:t,...r}=e.resolvers;return{isLocked:!0,resolvers:r}}),this.invoke(e,t,n,r)))}invoke(e,t,n,r){let{callRefsByResult:i,renderPhase:a}=this.getState(n.storyId),o=(e,t,n)=>{if(n.includes(e))return`[Circular]`;if(n=[...n,e],t>25)return`...`;if(i.has(e))return i.get(e);if(e instanceof Array)return e.map(e=>o(e,++t,n));if(e instanceof Date)return{__date__:{value:e.toISOString()}};if(e instanceof Error){let{name:t,message:n,stack:r}=e;return{__error__:{name:t,message:n,stack:r}}}if(e instanceof RegExp){let{flags:t,source:n}=e;return{__regexp__:{flags:t,source:n}}}if(e instanceof G.window?.HTMLElement){let{prefix:t,localName:n,id:r,classList:i,innerText:a}=e;return{__element__:{prefix:t,localName:n,id:r,classNames:Array.from(i),innerText:a}}}return typeof e==`function`?{__function__:{name:`getMockName`in e?e.getMockName():e.name}}:typeof e==`symbol`?{__symbol__:{description:e.description}}:typeof e==`object`&&e?.constructor?.name&&e?.constructor?.name!==`Object`?{__class__:{name:e.constructor.name}}:Object.prototype.toString.call(e)===`[object Object]`?Object.fromEntries(Object.entries(e).map(([e,r])=>[e,o(r,++t,n)])):e},s={...n,args:n.args.map(e=>o(e,0,[]))};n.path.forEach(e=>{e?.__callId__&&this.setState(n.storyId,({chainedCallIds:t})=>({chainedCallIds:new Set(Array.from(t).concat(e.__callId__))}))});let c=e=>{if(e instanceof Error){let{name:t,message:r,stack:i,callId:a=n.id}=e,{showDiff:o=void 0,diff:c=void 0,actual:l=void 0,expected:u=void 0}=e.name===`AssertionError`?Dv(e):e,d={name:t,message:r,stack:i,callId:a,showDiff:o,diff:c,actual:l,expected:u};if(this.update({...s,status:`error`,exception:d}),this.setState(n.storyId,t=>({callRefsByResult:new Map([...Array.from(t.callRefsByResult.entries()),[e,{__callId__:n.id,retain:n.retain}]])})),n.ancestors?.length)throw Object.prototype.hasOwnProperty.call(e,`callId`)||Object.defineProperty(e,`callId`,{value:n.id}),e}throw e};try{if(a===`played`&&!n.retain)throw Av;let i=(r.getArgs?r.getArgs(n,this.getState(n.storyId)):n.args).map(e=>typeof e!=`function`||Bv(e)||Object.keys(e).length?e:(...t)=>{let{cursor:r,ancestors:i}=this.getState(n.storyId);this.setState(n.storyId,{cursor:0,ancestors:[...i,n.id]});let a=()=>this.setState(n.storyId,{cursor:r,ancestors:i}),o=!1;try{let n=e(...t);return n instanceof Promise?(o=!0,n.finally(a)):n}finally{o||a()}}),o=e.apply(t,i);return o&&[`object`,`function`,`symbol`].includes(typeof o)&&this.setState(n.storyId,e=>({callRefsByResult:new Map([...Array.from(e.callRefsByResult.entries()),[o,{__callId__:n.id,retain:n.retain}]])})),this.update({...s,status:o instanceof Promise?`active`:`done`}),o instanceof Promise?o.then(e=>(this.update({...s,status:`done`}),e),c):o}catch(e){return c(e)}}update(e){this.channel?.emit(Ov.CALL,e),this.setState(e.storyId,({calls:t})=>{let n=t.concat(e).reduce((e,t)=>Object.assign(e,{[t.id]:t}),{});return{calls:Object.values(n).sort((e,t)=>e.id.localeCompare(t.id,void 0,{numeric:!0}))}}),this.sync(e.storyId)}sync(e){let t=()=>{let{isLocked:t,isPlaying:n}=this.getState(e),r=this.getLog(e),i=r.filter(({ancestors:e})=>!e.length).find(e=>e.status===`waiting`)?.callId,a=r.some(e=>e.status===`active`);if(this.detached||t||a||r.length===0){let e={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:r};this.channel?.emit(Ov.SYNC,e);return}let o=r.some(e=>e.status===`done`||e.status===`error`),s={controlStates:{detached:this.detached,start:o,back:o,goto:!0,next:n,end:n},logItems:r,pausedAt:i};this.channel?.emit(Ov.SYNC,s)};this.setState(e,({syncTimeout:e})=>(clearTimeout(e),{syncTimeout:setTimeout(t,0)}))}};function Rv(e,t={}){try{let n=!1,r=!1;return G.window?.location?.search?.includes(`instrument=true`)?n=!0:G.window?.location?.search?.includes(`instrument=false`)&&(r=!0),G.window?.parent===G.window&&!n||r?e:(G.window&&!G.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__&&(G.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__=new Lv),(G.window?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(e,t))}catch(t){return Ns.warn(t),e}}function zv(e,t){let n=e;for(;n!=null;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=Object.getPrototypeOf(n)}}function Bv(e){if(typeof e!=`function`)return!1;let t=Object.getOwnPropertyDescriptor(e,`prototype`);return t?!t.writable:!1}var Vv=Object.defineProperty,J=(e,t)=>Vv(e,`name`,{value:t,configurable:!0}),Hv=(e,t)=>{for(var n in t)Vv(e,n,{get:t[n],enumerable:!0})},Uv={};Hv(Uv,{addChainableMethod:()=>Zb,addLengthGuard:()=>Rb,addMethod:()=>Ub,addProperty:()=>Ib,checkError:()=>Wv,compareByInspect:()=>$b,eql:()=>fb,expectTypes:()=>iy,flag:()=>Qv,getActual:()=>ay,getMessage:()=>ab,getName:()=>ax,getOperator:()=>ix,getOwnEnumerableProperties:()=>tx,getOwnEnumerablePropertySymbols:()=>ex,getPathInfo:()=>Nb,hasProperty:()=>Ab,inspect:()=>rb,isNaN:()=>nx,isNumeric:()=>sx,isProxyEnabled:()=>Fb,isRegExp:()=>ox,objDisplay:()=>ib,overwriteChainableMethod:()=>Qb,overwriteMethod:()=>Gb,overwriteProperty:()=>Wb,proxify:()=>Vb,test:()=>$v,transferFlags:()=>ob,type:()=>ey});var Wv={};Hv(Wv,{compatibleConstructor:()=>Jv,compatibleInstance:()=>qv,compatibleMessage:()=>Yv,getConstructorName:()=>Xv,getMessage:()=>Zv});function Gv(e){return e instanceof Error||Object.prototype.toString.call(e)===`[object Error]`}J(Gv,`isErrorInstance`);function Kv(e){return Object.prototype.toString.call(e)===`[object RegExp]`}J(Kv,`isRegExp`);function qv(e,t){return Gv(t)&&e===t}J(qv,`compatibleInstance`);function Jv(e,t){return Gv(t)?e.constructor===t.constructor||e instanceof t.constructor:(typeof t==`object`||typeof t==`function`)&&t.prototype?e.constructor===t||e instanceof t:!1}J(Jv,`compatibleConstructor`);function Yv(e,t){let n=typeof e==`string`?e:e.message;return Kv(t)?t.test(n):typeof t==`string`?n.indexOf(t)!==-1:!1}J(Yv,`compatibleMessage`);function Xv(e){let t=e;return Gv(e)?t=e.constructor.name:typeof e==`function`&&(t=e.name,t===``&&(t=new e().name||t)),t}J(Xv,`getConstructorName`);function Zv(e){let t=``;return e&&e.message?t=e.message:typeof e==`string`&&(t=e),t}J(Zv,`getMessage`);function Qv(e,t,n){let r=e.__flags||=Object.create(null);if(arguments.length===3)r[t]=n;else return r[t]}J(Qv,`flag`);function $v(e,t){let n=Qv(e,`negate`),r=t[0];return n?!r:r}J($v,`test`);function ey(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)}J(ey,`type`);var ty=`captureStackTrace`in Error,ny,ry=(ny=class extends Error{message;get name(){return`AssertionError`}get ok(){return!1}constructor(e=`Unspecified AssertionError`,t,n){super(e),this.message=e,ty&&Error.captureStackTrace(this,n||ny);for(let e in t)e in this||(this[e]=t[e])}toJSON(e){return{...this,name:this.name,message:this.message,ok:!1,stack:e===!1?void 0:this.stack}}},J(ny,`AssertionError`),ny);function iy(e,t){let n=Qv(e,`message`),r=Qv(e,`ssfi`);n=n?n+`: `:``,e=Qv(e,`object`),t=t.map(function(e){return e.toLowerCase()}),t.sort();let i=t.map(function(e,n){let r=~[`a`,`e`,`i`,`o`,`u`].indexOf(e.charAt(0))?`an`:`a`;return(t.length>1&&n===t.length-1?`or `:``)+r+` `+e}).join(`, `),a=ey(e).toLowerCase();if(!t.some(function(e){return a===e}))throw new ry(n+`object tested must be `+i+`, but `+a+` given`,void 0,r)}J(iy,`expectTypes`);function ay(e,t){return t.length>4?t[4]:e._obj}J(ay,`getActual`);var oy={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`]},sy={special:`cyan`,number:`yellow`,bigint:`yellow`,boolean:`yellow`,undefined:`grey`,null:`bold`,string:`green`,symbol:`green`,date:`magenta`,regexp:`red`},cy=`…`;function ly(e,t){let n=oy[sy[t]]||oy[t]||``;return n?`\x1B[${n[0]}m${String(e)}\x1B[${n[1]}m`:String(e)}J(ly,`colorise`);function uy({showHidden:e=!1,depth:t=2,colors:n=!1,customInspect:r=!0,showProxy:i=!1,maxArrayLength:a=1/0,breakLength:o=1/0,seen:s=[],truncate:c=1/0,stylize:l=String}={},u){let d={showHidden:!!e,depth:Number(t),colors:!!n,customInspect:!!r,showProxy:!!i,maxArrayLength:Number(a),breakLength:Number(o),truncate:Number(c),seen:s,inspect:u,stylize:l};return d.colors&&(d.stylize=ly),d}J(uy,`normaliseOptions`);function dy(e){return e>=`\ud800`&&e<=`\udbff`}J(dy,`isHighSurrogate`);function fy(e,t,n=cy){e=String(e);let r=n.length,i=e.length;if(r>t&&i>r)return n;if(i>t&&i>r){let i=t-r;return i>0&&dy(e[i-1])&&--i,`${e.slice(0,i)}${n}`}return e}J(fy,`truncate`);function py(e,t,n,r=`, `){n||=t.inspect;let i=e.length;if(i===0)return``;let a=t.truncate,o=``,s=``,c=``;for(let l=0;l<i;l+=1){let i=l+1===e.length,u=l+2===e.length;c=`${cy}(${e.length-l})`;let d=e[l];t.truncate=a-o.length-(i?0:r.length);let f=s||n(d,t)+(i?``:r),p=o.length+f.length,m=p+c.length;if(i&&p>a&&o.length+c.length<=a||!i&&!u&&m>a||(s=i?``:n(e[l+1],t)+(u?``:r),!i&&u&&m>a&&p+s.length>a))break;if(o+=f,!i&&!u&&p+s.length>=a){c=`${cy}(${e.length-l-1})`;break}c=``}return`${o}${c}`}J(py,`inspectList`);function my(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,`\\'`).replace(/\\"/g,`"`).replace(/(^"|"$)/g,`'`)}J(my,`quoteComplexKey`);function hy([e,t],n){return n.truncate-=2,typeof e==`string`?e=my(e):typeof e!=`number`&&(e=`[${n.inspect(e,n)}]`),n.truncate-=e.length,t=n.inspect(t,n),`${e}: ${t}`}J(hy,`inspectProperty`);function gy(e,t){let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return`[]`;t.truncate-=4;let r=py(e,t);t.truncate-=r.length;let i=``;return n.length&&(i=py(n.map(t=>[t,e[t]]),t,hy)),`[ ${r}${i?`, ${i}`:``} ]`}J(gy,`inspectArray`);var _y=J(e=>typeof Buffer==`function`&&e instanceof Buffer?`Buffer`:e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,`getArrayName`);function vy(e,t){let n=_y(e);t.truncate-=n.length+4;let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return`${n}[]`;let i=``;for(let n=0;n<e.length;n++){let r=`${t.stylize(fy(e[n],t.truncate),`number`)}${n===e.length-1?``:`, `}`;if(t.truncate-=r.length,e[n]!==e.length&&t.truncate<=3){i+=`${cy}(${e.length-e[n]+1})`;break}i+=r}let a=``;return r.length&&(a=py(r.map(t=>[t,e[t]]),t,hy)),`${n}[ ${i}${a?`, ${a}`:``} ]`}J(vy,`inspectTypedArray`);function yy(e,t){let n=e.toJSON();if(n===null)return`Invalid Date`;let r=n.split(`T`),i=r[0];return t.stylize(`${i}T${fy(r[1],t.truncate-i.length-1)}`,`date`)}J(yy,`inspectDate`);function by(e,t){let n=e[Symbol.toStringTag]||`Function`,r=e.name;return r?t.stylize(`[${n} ${fy(r,t.truncate-11)}]`,`special`):t.stylize(`[${n}]`,`special`)}J(by,`inspectFunction`);function xy([e,t],n){return n.truncate-=4,e=n.inspect(e,n),n.truncate-=e.length,t=n.inspect(t,n),`${e} => ${t}`}J(xy,`inspectMapEntry`);function Sy(e){let t=[];return e.forEach((e,n)=>{t.push([n,e])}),t}J(Sy,`mapToEntries`);function Cy(e,t){return e.size===0?`Map{}`:(t.truncate-=7,`Map{ ${py(Sy(e),t,xy)} }`)}J(Cy,`inspectMap`);var wy=Number.isNaN||(e=>e!==e);function Ty(e,t){return wy(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(fy(String(e),t.truncate),`number`)}J(Ty,`inspectNumber`);function Ey(e,t){let n=fy(e.toString(),t.truncate-1);return n!==cy&&(n+=`n`),t.stylize(n,`bigint`)}J(Ey,`inspectBigInt`);function Dy(e,t){let n=e.toString().split(`/`)[2],r=t.truncate-(2+n.length),i=e.source;return t.stylize(`/${fy(i,r)}/${n}`,`regexp`)}J(Dy,`inspectRegExp`);function Oy(e){let t=[];return e.forEach(e=>{t.push(e)}),t}J(Oy,`arrayFromSet`);function ky(e,t){return e.size===0?`Set{}`:(t.truncate-=7,`Set{ ${py(Oy(e),t)} }`)}J(ky,`inspectSet`);var Ay=RegExp(`['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]`,`g`),jy={"\b":`\\b`," ":`\\t`,"\n":`\\n`,"\f":`\\f`,"\r":`\\r`,"'":`\\'`,"\\":`\\\\`},My=16,Ny=4;function Py(e){return jy[e]||`\\u${`0000${e.charCodeAt(0).toString(My)}`.slice(-Ny)}`}J(Py,`escape`);function Fy(e,t){return Ay.test(e)&&(e=e.replace(Ay,Py)),t.stylize(`'${fy(e,t.truncate-2)}'`,`string`)}J(Fy,`inspectString`);function Iy(e){return`description`in Symbol.prototype?e.description?`Symbol(${e.description})`:`Symbol()`:e.toString()}J(Iy,`inspectSymbol`);var Ly=J(()=>`Promise{…}`,`getPromiseValue`);function Ry(e,t){let n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(n.length===0&&r.length===0)return`{}`;if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return`[Circular]`;t.seen.push(e);let i=py(n.map(t=>[t,e[t]]),t,hy),a=py(r.map(t=>[t,e[t]]),t,hy);t.seen.pop();let o=``;return i&&a&&(o=`, `),`{ ${i}${o}${a} }`}J(Ry,`inspectObject`);var zy=typeof Symbol<`u`&&Symbol.toStringTag?Symbol.toStringTag:!1;function By(e,t){let n=``;return zy&&zy in e&&(n=e[zy]),n||=e.constructor.name,(!n||n===`_class`)&&(n=`<Anonymous Class>`),t.truncate-=n.length,`${n}${Ry(e,t)}`}J(By,`inspectClass`);function Vy(e,t){return e.length===0?`Arguments[]`:(t.truncate-=13,`Arguments[ ${py(e,t)} ]`)}J(Vy,`inspectArguments`);var Hy=[`stack`,`line`,`column`,`name`,`message`,`fileName`,`lineNumber`,`columnNumber`,`number`,`description`,`cause`];function Uy(e,t){let n=Object.getOwnPropertyNames(e).filter(e=>Hy.indexOf(e)===-1),r=e.name;t.truncate-=r.length;let i=``;if(typeof e.message==`string`?i=fy(e.message,t.truncate):n.unshift(`message`),i=i?`: ${i}`:``,t.truncate-=i.length+5,t.seen=t.seen||[],t.seen.includes(e))return`[Circular]`;t.seen.push(e);let a=py(n.map(t=>[t,e[t]]),t,hy);return`${r}${i}${a?` { ${a} }`:``}`}J(Uy,`inspectObject`);function Wy([e,t],n){return n.truncate-=3,t?`${n.stylize(String(e),`yellow`)}=${n.stylize(`"${t}"`,`string`)}`:`${n.stylize(String(e),`yellow`)}`}J(Wy,`inspectAttribute`);function Gy(e,t){return py(e,t,Ky,`
213
- `)}J(Gy,`inspectNodeCollection`);function Ky(e,t){switch(e.nodeType){case 1:return qy(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}J(Ky,`inspectNode`);function qy(e,t){let n=e.getAttributeNames(),r=e.tagName.toLowerCase(),i=t.stylize(`<${r}`,`special`),a=t.stylize(`>`,`special`),o=t.stylize(`</${r}>`,`special`);t.truncate-=r.length*2+5;let s=``;n.length>0&&(s+=` `,s+=py(n.map(t=>[t,e.getAttribute(t)]),t,Wy,` `)),t.truncate-=s.length;let c=t.truncate,l=Gy(e.children,t);return l&&l.length>c&&(l=`${cy}(${e.children.length})`),`${i}${s}${a}${l}${o}`}J(qy,`inspectHTML`);var Jy=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`chai/inspect`):`@@chai/inspect`,Yy=Symbol.for(`nodejs.util.inspect.custom`),Xy=new WeakMap,Zy={},Qy={undefined:J((e,t)=>t.stylize(`undefined`,`undefined`),`undefined`),null:J((e,t)=>t.stylize(`null`,`null`),`null`),boolean:J((e,t)=>t.stylize(String(e),`boolean`),`boolean`),Boolean:J((e,t)=>t.stylize(String(e),`boolean`),`Boolean`),number:Ty,Number:Ty,bigint:Ey,BigInt:Ey,string:Fy,String:Fy,function:by,Function:by,symbol:Iy,Symbol:Iy,Array:gy,Date:yy,Map:Cy,Set:ky,RegExp:Dy,Promise:Ly,WeakSet:J((e,t)=>t.stylize(`WeakSet{…}`,`special`),`WeakSet`),WeakMap:J((e,t)=>t.stylize(`WeakMap{…}`,`special`),`WeakMap`),Arguments:Vy,Int8Array:vy,Uint8Array:vy,Uint8ClampedArray:vy,Int16Array:vy,Uint16Array:vy,Int32Array:vy,Uint32Array:vy,Float32Array:vy,Float64Array:vy,Generator:J(()=>``,`Generator`),DataView:J(()=>``,`DataView`),ArrayBuffer:J(()=>``,`ArrayBuffer`),Error:Uy,HTMLCollection:Gy,NodeList:Gy},$y=J((e,t,n)=>Jy in e&&typeof e[Jy]==`function`?e[Jy](t):Yy in e&&typeof e[Yy]==`function`?e[Yy](t.depth,t):`inspect`in e&&typeof e.inspect==`function`?e.inspect(t.depth,t):`constructor`in e&&Xy.has(e.constructor)?Xy.get(e.constructor)(e,t):Zy[n]?Zy[n](e,t):``,`inspectCustom`),eb=Object.prototype.toString;function tb(e,t={}){let n=uy(t,tb),{customInspect:r}=n,i=e===null?`null`:typeof e;if(i===`object`&&(i=eb.call(e).slice(8,-1)),i in Qy)return Qy[i](e,n);if(r&&e){let t=$y(e,n,i);if(t)return typeof t==`string`?t:tb(t,n)}let a=e?Object.getPrototypeOf(e):!1;return a===Object.prototype||a===null?Ry(e,n):e&&typeof HTMLElement==`function`&&e instanceof HTMLElement?qy(e,n):`constructor`in e?e.constructor===Object?Ry(e,n):By(e,n):e===Object(e)?Ry(e,n):n.stylize(String(e),i)}J(tb,`inspect`);var nb={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:[`then`,`catch`,`inspect`,`toJSON`],deepEqual:null};function rb(e,t,n,r){return tb(e,{colors:r,depth:typeof n>`u`?2:n,showHidden:t,truncate:nb.truncateThreshold?nb.truncateThreshold:1/0})}J(rb,`inspect`);function ib(e){let t=rb(e),n=Object.prototype.toString.call(e);if(nb.truncateThreshold&&t.length>=nb.truncateThreshold){if(n===`[object Function]`)return!e.name||e.name===``?`[Function]`:`[Function: `+e.name+`]`;if(n===`[object Array]`)return`[ Array(`+e.length+`) ]`;if(n===`[object Object]`){let t=Object.keys(e);return`{ Object (`+(t.length>2?t.splice(0,2).join(`, `)+`, ...`:t.join(`, `))+`) }`}else return t}else return t}J(ib,`objDisplay`);function ab(e,t){let n=Qv(e,`negate`),r=Qv(e,`object`),i=t[3],a=ay(e,t),o=n?t[2]:t[1],s=Qv(e,`message`);return typeof o==`function`&&(o=o()),o||=``,o=o.replace(/#\{this\}/g,function(){return ib(r)}).replace(/#\{act\}/g,function(){return ib(a)}).replace(/#\{exp\}/g,function(){return ib(i)}),s?s+`: `+o:o}J(ab,`getMessage`);function ob(e,t,n){let r=e.__flags||=Object.create(null);t.__flags||=Object.create(null),n=arguments.length===3?n:!0;for(let e in r)(n||e!==`object`&&e!==`ssfi`&&e!==`lockSsfi`&&e!=`message`)&&(t.__flags[e]=r[e])}J(ob,`transferFlags`);function sb(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)}J(sb,`type`);function cb(){this._key=`chai/deep-eql__`+Math.random()+Date.now()}J(cb,`FakeMap`),cb.prototype={get:J(function(e){return e[this._key]},`get`),set:J(function(e,t){Object.isExtensible(e)&&Object.defineProperty(e,this._key,{value:t,configurable:!0})},`set`)};var lb=typeof WeakMap==`function`?WeakMap:cb;function ub(e,t,n){if(!n||Ob(e)||Ob(t))return null;var r=n.get(e);if(r){var i=r.get(t);if(typeof i==`boolean`)return i}return null}J(ub,`memoizeCompare`);function db(e,t,n,r){if(!(!n||Ob(e)||Ob(t))){var i=n.get(e);i?i.set(t,r):(i=new lb,i.set(t,r),n.set(e,i))}}J(db,`memoizeSet`);var fb=pb;function pb(e,t,n){if(n&&n.comparator)return hb(e,t,n);var r=mb(e,t);return r===null?hb(e,t,n):r}J(pb,`deepEqual`);function mb(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t?!0:Ob(e)||Ob(t)?!1:null}J(mb,`simpleEqual`);function hb(e,t,n){n||={},n.memoize=n.memoize===!1?!1:n.memoize||new lb;var r=n&&n.comparator,i=ub(e,t,n.memoize);if(i!==null)return i;var a=ub(t,e,n.memoize);if(a!==null)return a;if(r){var o=r(e,t);if(o===!1||o===!0)return db(e,t,n.memoize,o),o;var s=mb(e,t);if(s!==null)return s}var c=sb(e);if(c!==sb(t))return db(e,t,n.memoize,!1),!1;db(e,t,n.memoize,!0);var l=gb(e,t,c,n);return db(e,t,n.memoize,l),l}J(hb,`extensiveDeepEqual`);function gb(e,t,n,r){switch(n){case`String`:case`Number`:case`Boolean`:case`Date`:return pb(e.valueOf(),t.valueOf());case`Promise`:case`Symbol`:case`function`:case`WeakMap`:case`WeakSet`:return e===t;case`Error`:return Eb(e,t,[`name`,`message`,`code`],r);case`Arguments`:case`Int8Array`:case`Uint8Array`:case`Uint8ClampedArray`:case`Int16Array`:case`Uint16Array`:case`Int32Array`:case`Uint32Array`:case`Float32Array`:case`Float64Array`:case`Array`:return yb(e,t,r);case`RegExp`:return _b(e,t);case`Generator`:return bb(e,t,r);case`DataView`:return yb(new Uint8Array(e.buffer),new Uint8Array(t.buffer),r);case`ArrayBuffer`:return yb(new Uint8Array(e),new Uint8Array(t),r);case`Set`:return vb(e,t,r);case`Map`:return vb(e,t,r);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 Db(e,t,r)}}J(gb,`extensiveDeepEqualByType`);function _b(e,t){return e.toString()===t.toString()}J(_b,`regexpEqual`);function vb(e,t,n){try{if(e.size!==t.size)return!1;if(e.size===0)return!0}catch{return!1}var r=[],i=[];return e.forEach(J(function(e,t){r.push([e,t])},`gatherEntries`)),t.forEach(J(function(e,t){i.push([e,t])},`gatherEntries`)),yb(r.sort(),i.sort(),n)}J(vb,`entriesEqual`);function yb(e,t,n){var r=e.length;if(r!==t.length)return!1;if(r===0)return!0;for(var i=-1;++i<r;)if(pb(e[i],t[i],n)===!1)return!1;return!0}J(yb,`iterableEqual`);function bb(e,t,n){return yb(Cb(e),Cb(t),n)}J(bb,`generatorEqual`);function xb(e){return typeof Symbol<`u`&&typeof e==`object`&&typeof Symbol.iterator<`u`&&typeof e[Symbol.iterator]==`function`}J(xb,`hasIteratorFunction`);function Sb(e){if(xb(e))try{return Cb(e[Symbol.iterator]())}catch{return[]}return[]}J(Sb,`getIteratorEntries`);function Cb(e){for(var t=e.next(),n=[t.value];t.done===!1;)t=e.next(),n.push(t.value);return n}J(Cb,`getGeneratorEntries`);function wb(e){var t=[];for(var n in e)t.push(n);return t}J(wb,`getEnumerableKeys`);function Tb(e){for(var t=[],n=Object.getOwnPropertySymbols(e),r=0;r<n.length;r+=1){var i=n[r];Object.getOwnPropertyDescriptor(e,i).enumerable&&t.push(i)}return t}J(Tb,`getEnumerableSymbols`);function Eb(e,t,n,r){var i=n.length;if(i===0)return!0;for(var a=0;a<i;a+=1)if(pb(e[n[a]],t[n[a]],r)===!1)return!1;return!0}J(Eb,`keysEqual`);function Db(e,t,n){var r=wb(e),i=wb(t),a=Tb(e),o=Tb(t);if(r=r.concat(a),i=i.concat(o),r.length&&r.length===i.length)return yb(kb(r).sort(),kb(i).sort())===!1?!1:Eb(e,t,r,n);var s=Sb(e),c=Sb(t);return s.length&&s.length===c.length?(s.sort(),c.sort(),yb(s,c,n)):r.length===0&&s.length===0&&i.length===0&&c.length===0}J(Db,`objectEqual`);function Ob(e){return typeof e!=`object`||!e}J(Ob,`isPrimitive`);function kb(e){return e.map(J(function(e){return typeof e==`symbol`?e.toString():e},`mapSymbol`))}J(kb,`mapSymbols`);function Ab(e,t){return typeof e>`u`||e===null?!1:t in Object(e)}J(Ab,`hasProperty`);function jb(e){return e.replace(/([^\\])\[/g,`$1.[`).match(/(\\\.|[^.]+?)+/g).map(e=>{if(e===`constructor`||e===`__proto__`||e===`prototype`)return{};let t=/^\[(\d+)\]$/.exec(e),n=null;return n=t?{i:parseFloat(t[1])}:{p:e.replace(/\\([.[\]])/g,`$1`)},n})}J(jb,`parsePath`);function Mb(e,t,n){let r=e,i=null;n=typeof n>`u`?t.length:n;for(let e=0;e<n;e++){let a=t[e];r&&(r=typeof a.p>`u`?r[a.i]:r[a.p],e===n-1&&(i=r))}return i}J(Mb,`internalGetPathValue`);function Nb(e,t){let n=jb(t),r=n[n.length-1],i={parent:n.length>1?Mb(e,n,n.length-1):e,name:r.p||r.i,value:Mb(e,n)};return i.exists=Ab(i.parent,i.name),i}J(Nb,`getPathInfo`);var Pb,Y=(Pb=class{__flags={};constructor(e,t,n,r){return Qv(this,`ssfi`,n||Pb),Qv(this,`lockSsfi`,r),Qv(this,`object`,e),Qv(this,`message`,t),Qv(this,`eql`,nb.deepEqual||fb),Vb(this)}static get includeStack(){return console.warn(`Assertion.includeStack is deprecated, use chai.config.includeStack instead.`),nb.includeStack}static set includeStack(e){console.warn(`Assertion.includeStack is deprecated, use chai.config.includeStack instead.`),nb.includeStack=e}static get showDiff(){return console.warn(`Assertion.showDiff is deprecated, use chai.config.showDiff instead.`),nb.showDiff}static set showDiff(e){console.warn(`Assertion.showDiff is deprecated, use chai.config.showDiff instead.`),nb.showDiff=e}static addProperty(e,t){Ib(this.prototype,e,t)}static addMethod(e,t){Ub(this.prototype,e,t)}static addChainableMethod(e,t,n){Zb(this.prototype,e,t,n)}static overwriteProperty(e,t){Wb(this.prototype,e,t)}static overwriteMethod(e,t){Gb(this.prototype,e,t)}static overwriteChainableMethod(e,t,n){Qb(this.prototype,e,t,n)}assert(e,t,n,r,i,a){let o=$v(this,arguments);if(a!==!1&&(a=!0),r===void 0&&i===void 0&&(a=!1),nb.showDiff!==!0&&(a=!1),!o){t=ab(this,arguments);let e={actual:ay(this,arguments),expected:r,showDiff:a},n=ix(this,arguments);throw n&&(e.operator=n),new ry(t,e,nb.includeStack?this.assert:Qv(this,`ssfi`))}}get _obj(){return Qv(this,`object`)}set _obj(e){Qv(this,`object`,e)}},J(Pb,`Assertion`),Pb);function Fb(){return nb.useProxy&&typeof Proxy<`u`&&typeof Reflect<`u`}J(Fb,`isProxyEnabled`);function Ib(e,t,n){n=n===void 0?function(){}:n,Object.defineProperty(e,t,{get:J(function e(){!Fb()&&!Qv(this,`lockSsfi`)&&Qv(this,`ssfi`,e);let t=n.call(this);if(t!==void 0)return t;let r=new Y;return ob(this,r),r},`propertyGetter`),configurable:!0})}J(Ib,`addProperty`);var Lb=Object.getOwnPropertyDescriptor(function(){},`length`);function Rb(e,t,n){return Lb.configurable&&Object.defineProperty(e,`length`,{get:J(function(){throw Error(n?`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}J(Rb,`addLengthGuard`);function zb(e){let t=Object.getOwnPropertyNames(e);function n(e){t.indexOf(e)===-1&&t.push(e)}J(n,`addProperty`);let r=Object.getPrototypeOf(e);for(;r!==null;)Object.getOwnPropertyNames(r).forEach(n),r=Object.getPrototypeOf(r);return t}J(zb,`getProperties`);var Bb=[`__flags`,`__methods`,`_obj`,`assert`];function Vb(e,t){return Fb()?new Proxy(e,{get:J(function e(n,r){if(typeof r==`string`&&nb.proxyExcludedKeys.indexOf(r)===-1&&!Reflect.has(n,r)){if(t)throw Error(`Invalid Chai property: `+t+`.`+r+`. See docs for proper usage of "`+t+`".`);let e=null,i=4;throw zb(n).forEach(function(t){if(!Object.prototype.hasOwnProperty(t)&&Bb.indexOf(t)===-1){let n=Hb(r,t,i);n<i&&(e=t,i=n)}}),Error(e===null?`Invalid Chai property: `+r:`Invalid Chai property: `+r+`. Did you mean "`+e+`"?`)}return Bb.indexOf(r)===-1&&!Qv(n,`lockSsfi`)&&Qv(n,`ssfi`,e),Reflect.get(n,r)},`proxyGetter`)}):e}J(Vb,`proxify`);function Hb(e,t,n){if(Math.abs(e.length-t.length)>=n)return n;let r=[];for(let n=0;n<=e.length;n++)r[n]=Array(t.length+1).fill(0),r[n][0]=n;for(let e=0;e<t.length;e++)r[0][e]=e;for(let i=1;i<=e.length;i++){let a=e.charCodeAt(i-1);for(let e=1;e<=t.length;e++){if(Math.abs(i-e)>=n){r[i][e]=n;continue}r[i][e]=Math.min(r[i-1][e]+1,r[i][e-1]+1,r[i-1][e-1]+(a===t.charCodeAt(e-1)?0:1))}}return r[e.length][t.length]}J(Hb,`stringDistanceCapped`);function Ub(e,t,n){let r=J(function(){Qv(this,`lockSsfi`)||Qv(this,`ssfi`,r);let e=n.apply(this,arguments);if(e!==void 0)return e;let t=new Y;return ob(this,t),t},`methodWrapper`);Rb(r,t,!1),e[t]=Vb(r,t)}J(Ub,`addMethod`);function Wb(e,t,n){let r=Object.getOwnPropertyDescriptor(e,t),i=J(function(){},`_super`);r&&typeof r.get==`function`&&(i=r.get),Object.defineProperty(e,t,{get:J(function e(){!Fb()&&!Qv(this,`lockSsfi`)&&Qv(this,`ssfi`,e);let t=Qv(this,`lockSsfi`);Qv(this,`lockSsfi`,!0);let r=n(i).call(this);if(Qv(this,`lockSsfi`,t),r!==void 0)return r;let a=new Y;return ob(this,a),a},`overwritingPropertyGetter`),configurable:!0})}J(Wb,`overwriteProperty`);function Gb(e,t,n){let r=e[t],i=J(function(){throw Error(t+` is not a function`)},`_super`);r&&typeof r==`function`&&(i=r);let a=J(function(){Qv(this,`lockSsfi`)||Qv(this,`ssfi`,a);let e=Qv(this,`lockSsfi`);Qv(this,`lockSsfi`,!0);let t=n(i).apply(this,arguments);if(Qv(this,`lockSsfi`,e),t!==void 0)return t;let r=new Y;return ob(this,r),r},`overwritingMethodWrapper`);Rb(a,t,!1),e[t]=Vb(a,t)}J(Gb,`overwriteMethod`);var Kb=typeof Object.setPrototypeOf==`function`,qb=J(function(){},`testFn`),Jb=Object.getOwnPropertyNames(qb).filter(function(e){let t=Object.getOwnPropertyDescriptor(qb,e);return typeof t==`object`?!t.configurable:!0}),Yb=Function.prototype.call,Xb=Function.prototype.apply;function Zb(e,t,n,r){typeof r!=`function`&&(r=J(function(){},`chainingBehavior`));let i={method:n,chainingBehavior:r};e.__methods||={},e.__methods[t]=i,Object.defineProperty(e,t,{get:J(function(){i.chainingBehavior.call(this);let n=J(function(){Qv(this,`lockSsfi`)||Qv(this,`ssfi`,n);let e=i.method.apply(this,arguments);if(e!==void 0)return e;let t=new Y;return ob(this,t),t},`chainableMethodWrapper`);if(Rb(n,t,!0),Kb){let e=Object.create(this);e.call=Yb,e.apply=Xb,Object.setPrototypeOf(n,e)}else Object.getOwnPropertyNames(e).forEach(function(t){if(Jb.indexOf(t)!==-1)return;let r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r)});return ob(this,n),Vb(n)},`chainableMethodGetter`),configurable:!0})}J(Zb,`addChainableMethod`);function Qb(e,t,n,r){let i=e.__methods[t],a=i.chainingBehavior;i.chainingBehavior=J(function(){let e=r(a).call(this);if(e!==void 0)return e;let t=new Y;return ob(this,t),t},`overwritingChainableMethodGetter`);let o=i.method;i.method=J(function(){let e=n(o).apply(this,arguments);if(e!==void 0)return e;let t=new Y;return ob(this,t),t},`overwritingChainableMethodWrapper`)}J(Qb,`overwriteChainableMethod`);function $b(e,t){return rb(e)<rb(t)?-1:1}J($b,`compareByInspect`);function ex(e){return typeof Object.getOwnPropertySymbols==`function`?Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}):[]}J(ex,`getOwnEnumerablePropertySymbols`);function tx(e){return Object.keys(e).concat(ex(e))}J(tx,`getOwnEnumerableProperties`);var nx=Number.isNaN;function rx(e){let t=ey(e);return[`Array`,`Object`,`Function`].indexOf(t)!==-1}J(rx,`isObjectType`);function ix(e,t){let n=Qv(e,`operator`),r=Qv(e,`negate`),i=t[3],a=r?t[2]:t[1];if(n)return n;if(typeof a==`function`&&(a=a()),a||=``,!a||/\shave\s/.test(a))return;let o=rx(i);return/\snot\s/.test(a)?o?`notDeepStrictEqual`:`notStrictEqual`:o?`deepStrictEqual`:`strictEqual`}J(ix,`getOperator`);function ax(e){return e.name}J(ax,`getName`);function ox(e){return Object.prototype.toString.call(e)===`[object RegExp]`}J(ox,`isRegExp`);function sx(e){return[`Number`,`BigInt`].includes(ey(e))}J(sx,`isNumeric`);var{flag:X}=Uv;[`to`,`be`,`been`,`is`,`and`,`has`,`have`,`with`,`that`,`which`,`at`,`of`,`same`,`but`,`does`,`still`,`also`].forEach(function(e){Y.addProperty(e)}),Y.addProperty(`not`,function(){X(this,`negate`,!0)}),Y.addProperty(`deep`,function(){X(this,`deep`,!0)}),Y.addProperty(`nested`,function(){X(this,`nested`,!0)}),Y.addProperty(`own`,function(){X(this,`own`,!0)}),Y.addProperty(`ordered`,function(){X(this,`ordered`,!0)}),Y.addProperty(`any`,function(){X(this,`any`,!0),X(this,`all`,!1)}),Y.addProperty(`all`,function(){X(this,`all`,!0),X(this,`any`,!1)});var cx={function:[`function`,`asyncfunction`,`generatorfunction`,`asyncgeneratorfunction`],asyncfunction:[`asyncfunction`,`asyncgeneratorfunction`],generatorfunction:[`generatorfunction`,`asyncgeneratorfunction`],asyncgeneratorfunction:[`asyncgeneratorfunction`]};function lx(e,t){t&&X(this,`message`,t),e=e.toLowerCase();let n=X(this,`object`),r=~[`a`,`e`,`i`,`o`,`u`].indexOf(e.charAt(0))?`an `:`a `,i=ey(n).toLowerCase();cx.function.includes(e)?this.assert(cx[e].includes(i),`expected #{this} to be `+r+e,`expected #{this} not to be `+r+e):this.assert(e===i,`expected #{this} to be `+r+e,`expected #{this} not to be `+r+e)}J(lx,`an`),Y.addChainableMethod(`an`,lx),Y.addChainableMethod(`a`,lx);function ux(e,t){return nx(e)&&nx(t)||e===t}J(ux,`SameValueZero`);function dx(){X(this,`contains`,!0)}J(dx,`includeChainingBehavior`);function fx(e,t){t&&X(this,`message`,t);let n=X(this,`object`),r=ey(n).toLowerCase(),i=X(this,`message`),a=X(this,`negate`),o=X(this,`ssfi`),s=X(this,`deep`),c=s?`deep `:``,l=s?X(this,`eql`):ux;i=i?i+`: `:``;let u=!1;switch(r){case`string`:u=n.indexOf(e)!==-1;break;case`weakset`:if(s)throw new ry(i+`unable to use .deep.include with WeakSet`,void 0,o);u=n.has(e);break;case`map`:n.forEach(function(t){u||=l(t,e)});break;case`set`:s?n.forEach(function(t){u||=l(t,e)}):u=n.has(e);break;case`array`:u=s?n.some(function(t){return l(t,e)}):n.indexOf(e)!==-1;break;default:{if(e!==Object(e))throw new ry(i+`the given combination of arguments (`+r+` and `+ey(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 `+ey(e).toLowerCase(),void 0,o);let t=Object.keys(e),s=null,c=0;if(t.forEach(function(r){let i=new Y(n);if(ob(this,i,!0),X(i,`lockSsfi`,!0),!a||t.length===1){i.property(r,e[r]);return}try{i.property(r,e[r])}catch(e){if(!Wv.compatibleConstructor(e,ry))throw e;s===null&&(s=e),c++}},this),a&&t.length>1&&c===t.length)throw s;return}}this.assert(u,`expected #{this} to `+c+`include `+rb(e),`expected #{this} to not `+c+`include `+rb(e))}J(fx,`include`),Y.addChainableMethod(`include`,fx,dx),Y.addChainableMethod(`contain`,fx,dx),Y.addChainableMethod(`contains`,fx,dx),Y.addChainableMethod(`includes`,fx,dx),Y.addProperty(`ok`,function(){this.assert(X(this,`object`),`expected #{this} to be truthy`,`expected #{this} to be falsy`)}),Y.addProperty(`true`,function(){this.assert(X(this,`object`)===!0,`expected #{this} to be true`,`expected #{this} to be false`,!X(this,`negate`))}),Y.addProperty(`numeric`,function(){let e=X(this,`object`);this.assert([`Number`,`BigInt`].includes(ey(e)),`expected #{this} to be numeric`,`expected #{this} to not be numeric`,!X(this,`negate`))}),Y.addProperty(`callable`,function(){let e=X(this,`object`),t=X(this,`ssfi`),n=X(this,`message`),r=n?`${n}: `:``,i=X(this,`negate`),a=i?`${r}expected ${rb(e)} not to be a callable function`:`${r}expected ${rb(e)} to be a callable function`,o=[`Function`,`AsyncFunction`,`GeneratorFunction`,`AsyncGeneratorFunction`].includes(ey(e));if(o&&i||!o&&!i)throw new ry(a,void 0,t)}),Y.addProperty(`false`,function(){this.assert(X(this,`object`)===!1,`expected #{this} to be false`,`expected #{this} to be true`,!!X(this,`negate`))}),Y.addProperty(`null`,function(){this.assert(X(this,`object`)===null,`expected #{this} to be null`,`expected #{this} not to be null`)}),Y.addProperty(`undefined`,function(){this.assert(X(this,`object`)===void 0,`expected #{this} to be undefined`,`expected #{this} not to be undefined`)}),Y.addProperty(`NaN`,function(){this.assert(nx(X(this,`object`)),`expected #{this} to be NaN`,`expected #{this} not to be NaN`)});function px(){let e=X(this,`object`);this.assert(e!=null,`expected #{this} to exist`,`expected #{this} to not exist`)}J(px,`assertExist`),Y.addProperty(`exist`,px),Y.addProperty(`exists`,px),Y.addProperty(`empty`,function(){let e=X(this,`object`),t=X(this,`ssfi`),n=X(this,`message`),r;switch(n=n?n+`: `:``,ey(e).toLowerCase()){case`array`:case`string`:r=e.length;break;case`map`:case`set`:r=e.size;break;case`weakmap`:case`weakset`:throw new ry(n+`.empty was passed a weak collection`,void 0,t);case`function`:throw new ry((n+`.empty was passed a function `+ax(e)).trim(),void 0,t);default:if(e!==Object(e))throw new ry(n+`.empty was passed non-string primitive `+rb(e),void 0,t);r=Object.keys(e).length}this.assert(r===0,`expected #{this} to be empty`,`expected #{this} not to be empty`)});function mx(){let e=ey(X(this,`object`));this.assert(e===`Arguments`,`expected #{this} to be arguments but got `+e,`expected #{this} to not be arguments`)}J(mx,`checkArguments`),Y.addProperty(`arguments`,mx),Y.addProperty(`Arguments`,mx);function hx(e,t){t&&X(this,`message`,t);let n=X(this,`object`);if(X(this,`deep`)){let t=X(this,`lockSsfi`);X(this,`lockSsfi`,!0),this.eql(e),X(this,`lockSsfi`,t)}else this.assert(e===n,`expected #{this} to equal #{exp}`,`expected #{this} to not equal #{exp}`,e,this._obj,!0)}J(hx,`assertEqual`),Y.addMethod(`equal`,hx),Y.addMethod(`equals`,hx),Y.addMethod(`eq`,hx);function gx(e,t){t&&X(this,`message`,t);let n=X(this,`eql`);this.assert(n(e,X(this,`object`)),`expected #{this} to deeply equal #{exp}`,`expected #{this} to not deeply equal #{exp}`,e,this._obj,!0)}J(gx,`assertEql`),Y.addMethod(`eql`,gx),Y.addMethod(`eqls`,gx);function _x(e,t){t&&X(this,`message`,t);let n=X(this,`object`),r=X(this,`doLength`),i=X(this,`message`),a=i?i+`: `:``,o=X(this,`ssfi`),s=ey(n).toLowerCase(),c=ey(e).toLowerCase();if(r&&s!==`map`&&s!==`set`&&new Y(n,i,o,!0).to.have.property(`length`),!r&&s===`date`&&c!==`date`)throw new ry(a+`the argument to above must be a date`,void 0,o);if(!sx(e)&&(r||sx(n)))throw new ry(a+`the argument to above must be a number`,void 0,o);if(!r&&s!==`date`&&!sx(n)){let e=s===`string`?`'`+n+`'`:n;throw new ry(a+`expected `+e+` to be a number or a date`,void 0,o)}if(r){let t=`length`,r;s===`map`||s===`set`?(t=`size`,r=n.size):r=n.length,this.assert(r>e,`expected #{this} to have a `+t+` above #{exp} but got #{act}`,`expected #{this} to not have a `+t+` above #{exp}`,e,r)}else this.assert(n>e,`expected #{this} to be above #{exp}`,`expected #{this} to be at most #{exp}`,e)}J(_x,`assertAbove`),Y.addMethod(`above`,_x),Y.addMethod(`gt`,_x),Y.addMethod(`greaterThan`,_x);function vx(e,t){t&&X(this,`message`,t);let n=X(this,`object`),r=X(this,`doLength`),i=X(this,`message`),a=i?i+`: `:``,o=X(this,`ssfi`),s=ey(n).toLowerCase(),c=ey(e).toLowerCase(),l,u=!0;if(r&&s!==`map`&&s!==`set`&&new Y(n,i,o,!0).to.have.property(`length`),!r&&s===`date`&&c!==`date`)l=a+`the argument to least must be a date`;else if(!sx(e)&&(r||sx(n)))l=a+`the argument to least must be a number`;else if(!r&&s!==`date`&&!sx(n)){let e=s===`string`?`'`+n+`'`:n;l=a+`expected `+e+` to be a number or a date`}else u=!1;if(u)throw new ry(l,void 0,o);if(r){let t=`length`,r;s===`map`||s===`set`?(t=`size`,r=n.size):r=n.length,this.assert(r>=e,`expected #{this} to have a `+t+` at least #{exp} but got #{act}`,`expected #{this} to have a `+t+` below #{exp}`,e,r)}else this.assert(n>=e,`expected #{this} to be at least #{exp}`,`expected #{this} to be below #{exp}`,e)}J(vx,`assertLeast`),Y.addMethod(`least`,vx),Y.addMethod(`gte`,vx),Y.addMethod(`greaterThanOrEqual`,vx);function yx(e,t){t&&X(this,`message`,t);let n=X(this,`object`),r=X(this,`doLength`),i=X(this,`message`),a=i?i+`: `:``,o=X(this,`ssfi`),s=ey(n).toLowerCase(),c=ey(e).toLowerCase(),l,u=!0;if(r&&s!==`map`&&s!==`set`&&new Y(n,i,o,!0).to.have.property(`length`),!r&&s===`date`&&c!==`date`)l=a+`the argument to below must be a date`;else if(!sx(e)&&(r||sx(n)))l=a+`the argument to below must be a number`;else if(!r&&s!==`date`&&!sx(n)){let e=s===`string`?`'`+n+`'`:n;l=a+`expected `+e+` to be a number or a date`}else u=!1;if(u)throw new ry(l,void 0,o);if(r){let t=`length`,r;s===`map`||s===`set`?(t=`size`,r=n.size):r=n.length,this.assert(r<e,`expected #{this} to have a `+t+` below #{exp} but got #{act}`,`expected #{this} to not have a `+t+` below #{exp}`,e,r)}else this.assert(n<e,`expected #{this} to be below #{exp}`,`expected #{this} to be at least #{exp}`,e)}J(yx,`assertBelow`),Y.addMethod(`below`,yx),Y.addMethod(`lt`,yx),Y.addMethod(`lessThan`,yx);function bx(e,t){t&&X(this,`message`,t);let n=X(this,`object`),r=X(this,`doLength`),i=X(this,`message`),a=i?i+`: `:``,o=X(this,`ssfi`),s=ey(n).toLowerCase(),c=ey(e).toLowerCase(),l,u=!0;if(r&&s!==`map`&&s!==`set`&&new Y(n,i,o,!0).to.have.property(`length`),!r&&s===`date`&&c!==`date`)l=a+`the argument to most must be a date`;else if(!sx(e)&&(r||sx(n)))l=a+`the argument to most must be a number`;else if(!r&&s!==`date`&&!sx(n)){let e=s===`string`?`'`+n+`'`:n;l=a+`expected `+e+` to be a number or a date`}else u=!1;if(u)throw new ry(l,void 0,o);if(r){let t=`length`,r;s===`map`||s===`set`?(t=`size`,r=n.size):r=n.length,this.assert(r<=e,`expected #{this} to have a `+t+` at most #{exp} but got #{act}`,`expected #{this} to have a `+t+` above #{exp}`,e,r)}else this.assert(n<=e,`expected #{this} to be at most #{exp}`,`expected #{this} to be above #{exp}`,e)}J(bx,`assertMost`),Y.addMethod(`most`,bx),Y.addMethod(`lte`,bx),Y.addMethod(`lessThanOrEqual`,bx),Y.addMethod(`within`,function(e,t,n){n&&X(this,`message`,n);let r=X(this,`object`),i=X(this,`doLength`),a=X(this,`message`),o=a?a+`: `:``,s=X(this,`ssfi`),c=ey(r).toLowerCase(),l=ey(e).toLowerCase(),u=ey(t).toLowerCase(),d,f=!0,p=l===`date`&&u===`date`?e.toISOString()+`..`+t.toISOString():e+`..`+t;if(i&&c!==`map`&&c!==`set`&&new Y(r,a,s,!0).to.have.property(`length`),!i&&c===`date`&&(l!==`date`||u!==`date`))d=o+`the arguments to within must be dates`;else if((!sx(e)||!sx(t))&&(i||sx(r)))d=o+`the arguments to within must be numbers`;else if(!i&&c!==`date`&&!sx(r)){let e=c===`string`?`'`+r+`'`:r;d=o+`expected `+e+` to be a number or a date`}else f=!1;if(f)throw new ry(d,void 0,s);if(i){let n=`length`,i;c===`map`||c===`set`?(n=`size`,i=r.size):i=r.length,this.assert(i>=e&&i<=t,`expected #{this} to have a `+n+` within `+p,`expected #{this} to not have a `+n+` within `+p)}else this.assert(r>=e&&r<=t,`expected #{this} to be within `+p,`expected #{this} to not be within `+p)});function xx(e,t){t&&X(this,`message`,t);let n=X(this,`object`),r=X(this,`ssfi`),i=X(this,`message`),a;try{a=n instanceof e}catch(t){throw t instanceof TypeError?(i=i?i+`: `:``,new ry(i+`The instanceof assertion needs a constructor but `+ey(e)+` was given.`,void 0,r)):t}let o=ax(e);o??=`an unnamed constructor`,this.assert(a,`expected #{this} to be an instance of `+o,`expected #{this} to not be an instance of `+o)}J(xx,`assertInstanceOf`),Y.addMethod(`instanceof`,xx),Y.addMethod(`instanceOf`,xx);function Sx(e,t,n){n&&X(this,`message`,n);let r=X(this,`nested`),i=X(this,`own`),a=X(this,`message`),o=X(this,`object`),s=X(this,`ssfi`),c=typeof e;if(a=a?a+`: `:``,r){if(c!==`string`)throw new ry(a+`the argument to property must be a string when using nested syntax`,void 0,s)}else if(c!==`string`&&c!==`number`&&c!==`symbol`)throw new ry(a+`the argument to property must be a string, number, or symbol`,void 0,s);if(r&&i)throw new ry(a+`The "nested" and "own" flags cannot be combined.`,void 0,s);if(o==null)throw new ry(a+`Target cannot be null or undefined.`,void 0,s);let l=X(this,`deep`),u=X(this,`negate`),d=r?Nb(o,e):null,f=r?d.value:o[e],p=l?X(this,`eql`):(e,t)=>e===t,m=``;l&&(m+=`deep `),i&&(m+=`own `),r&&(m+=`nested `),m+=`property `;let h;h=i?Object.prototype.hasOwnProperty.call(o,e):r?d.exists:Ab(o,e),(!u||arguments.length===1)&&this.assert(h,`expected #{this} to have `+m+rb(e),`expected #{this} to not have `+m+rb(e)),arguments.length>1&&this.assert(h&&p(t,f),`expected #{this} to have `+m+rb(e)+` of #{exp}, but got #{act}`,`expected #{this} to not have `+m+rb(e)+` of #{act}`,t,f),X(this,`object`,f)}J(Sx,`assertProperty`),Y.addMethod(`property`,Sx);function Cx(e,t,n){X(this,`own`,!0),Sx.apply(this,arguments)}J(Cx,`assertOwnProperty`),Y.addMethod(`ownProperty`,Cx),Y.addMethod(`haveOwnProperty`,Cx);function wx(e,t,n){typeof t==`string`&&(n=t,t=null),n&&X(this,`message`,n);let r=X(this,`object`),i=Object.getOwnPropertyDescriptor(Object(r),e),a=X(this,`eql`);i&&t?this.assert(a(t,i),`expected the own property descriptor for `+rb(e)+` on #{this} to match `+rb(t)+`, got `+rb(i),`expected the own property descriptor for `+rb(e)+` on #{this} to not match `+rb(t),t,i,!0):this.assert(i,`expected #{this} to have an own property descriptor for `+rb(e),`expected #{this} to not have an own property descriptor for `+rb(e)),X(this,`object`,i)}J(wx,`assertOwnPropertyDescriptor`),Y.addMethod(`ownPropertyDescriptor`,wx),Y.addMethod(`haveOwnPropertyDescriptor`,wx);function Tx(){X(this,`doLength`,!0)}J(Tx,`assertLengthChain`);function Ex(e,t){t&&X(this,`message`,t);let n=X(this,`object`),r=ey(n).toLowerCase(),i=X(this,`message`),a=X(this,`ssfi`),o=`length`,s;switch(r){case`map`:case`set`:o=`size`,s=n.size;break;default:new Y(n,i,a,!0).to.have.property(`length`),s=n.length}this.assert(s==e,`expected #{this} to have a `+o+` of #{exp} but got #{act}`,`expected #{this} to not have a `+o+` of #{act}`,e,s)}J(Ex,`assertLength`),Y.addChainableMethod(`length`,Ex,Tx),Y.addChainableMethod(`lengthOf`,Ex,Tx);function Dx(e,t){t&&X(this,`message`,t);let n=X(this,`object`);this.assert(e.exec(n),`expected #{this} to match `+e,`expected #{this} not to match `+e)}J(Dx,`assertMatch`),Y.addMethod(`match`,Dx),Y.addMethod(`matches`,Dx),Y.addMethod(`string`,function(e,t){t&&X(this,`message`,t);let n=X(this,`object`);new Y(n,X(this,`message`),X(this,`ssfi`),!0).is.a(`string`),this.assert(~n.indexOf(e),`expected #{this} to contain `+rb(e),`expected #{this} to not contain `+rb(e))});function Ox(e){let t=X(this,`object`),n=ey(t),r=ey(e),i=X(this,`ssfi`),a=X(this,`deep`),o,s=``,c,l=!0,u=X(this,`message`);u=u?u+`: `:``;let d=u+`when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments`;if(n===`Map`||n===`Set`)s=a?`deeply `:``,c=[],t.forEach(function(e,t){c.push(t)}),r!==`Array`&&(e=Array.prototype.slice.call(arguments));else{switch(c=tx(t),r){case`Array`:if(arguments.length>1)throw new ry(d,void 0,i);break;case`Object`:if(arguments.length>1)throw new ry(d,void 0,i);e=Object.keys(e);break;default:e=Array.prototype.slice.call(arguments)}e=e.map(function(e){return typeof e==`symbol`?e:String(e)})}if(!e.length)throw new ry(u+`keys required`,void 0,i);let f=e.length,p=X(this,`any`),m=X(this,`all`),h=e,g=a?X(this,`eql`):(e,t)=>e===t;if(!p&&!m&&(m=!0),p&&(l=h.some(function(e){return c.some(function(t){return g(e,t)})})),m&&(l=h.every(function(e){return c.some(function(t){return g(e,t)})}),X(this,`contains`)||(l&&=e.length==c.length)),f>1){e=e.map(function(e){return rb(e)});let t=e.pop();m&&(o=e.join(`, `)+`, and `+t),p&&(o=e.join(`, `)+`, or `+t)}else o=rb(e[0]);o=(f>1?`keys `:`key `)+o,o=(X(this,`contains`)?`contain `:`have `)+o,this.assert(l,`expected #{this} to `+s+o,`expected #{this} to not `+s+o,h.slice(0).sort($b),c.sort($b),!0)}J(Ox,`assertKeys`),Y.addMethod(`keys`,Ox),Y.addMethod(`key`,Ox);function kx(e,t,n){n&&X(this,`message`,n);let r=X(this,`object`),i=X(this,`ssfi`),a=X(this,`message`),o=X(this,`negate`)||!1;new Y(r,a,i,!0).is.a(`function`),(ox(e)||typeof e==`string`)&&(t=e,e=null);let s,c=!1;try{r()}catch(e){c=!0,s=e}let l=e===void 0&&t===void 0,u=!!(e&&t),d=!1,f=!1;if(l||!l&&!o){let t=`an error`;e instanceof Error?t=`#{exp}`:e&&(t=Wv.getConstructorName(e));let n=s;if(s instanceof Error)n=s.toString();else if(typeof s==`string`)n=s;else if(s&&(typeof s==`object`||typeof s==`function`))try{n=Wv.getConstructorName(s)}catch{}this.assert(c,`expected #{this} to throw `+t,`expected #{this} to not throw an error but #{act} was thrown`,e&&e.toString(),n)}if(e&&s&&(e instanceof Error&&Wv.compatibleInstance(s,e)===o&&(u&&o?d=!0:this.assert(o,`expected #{this} to throw #{exp} but #{act} was thrown`,`expected #{this} to not throw #{exp}`+(s&&!o?` but #{act} was thrown`:``),e.toString(),s.toString())),Wv.compatibleConstructor(s,e)===o&&(u&&o?d=!0:this.assert(o,`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&&Wv.getConstructorName(e),s instanceof Error?s.toString():s&&Wv.getConstructorName(s)))),s&&t!=null){let e=`including`;ox(t)&&(e=`matching`),Wv.compatibleMessage(s,t)===o&&(u&&o?f=!0:this.assert(o,`expected #{this} to throw error `+e+` #{exp} but got #{act}`,`expected #{this} to throw error not `+e+` #{exp}`,t,Wv.getMessage(s)))}d&&f&&this.assert(o,`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&&Wv.getConstructorName(e),s instanceof Error?s.toString():s&&Wv.getConstructorName(s)),X(this,`object`,s)}J(kx,`assertThrows`),Y.addMethod(`throw`,kx),Y.addMethod(`throws`,kx),Y.addMethod(`Throw`,kx);function Ax(e,t){t&&X(this,`message`,t);let n=X(this,`object`),r=X(this,`itself`),i=typeof n==`function`&&!r?n.prototype[e]:n[e];this.assert(typeof i==`function`,`expected #{this} to respond to `+rb(e),`expected #{this} to not respond to `+rb(e))}J(Ax,`respondTo`),Y.addMethod(`respondTo`,Ax),Y.addMethod(`respondsTo`,Ax),Y.addProperty(`itself`,function(){X(this,`itself`,!0)});function jx(e,t){t&&X(this,`message`,t);let n=e(X(this,`object`));this.assert(n,`expected #{this} to satisfy `+ib(e),`expected #{this} to not satisfy`+ib(e),!X(this,`negate`),n)}J(jx,`satisfy`),Y.addMethod(`satisfy`,jx),Y.addMethod(`satisfies`,jx);function Mx(e,t,n){n&&X(this,`message`,n);let r=X(this,`object`),i=X(this,`message`),a=X(this,`ssfi`);new Y(r,i,a,!0).is.numeric;let o="A `delta` value is required for `closeTo`";if(t==null||(new Y(t,i,a,!0).is.numeric,o="A `expected` value is required for `closeTo`",e==null))throw new ry(i?`${i}: ${o}`:o,void 0,a);new Y(e,i,a,!0).is.numeric;let s=J(e=>e<0n?-e:e,`abs`),c=J(e=>parseFloat(parseFloat(e).toPrecision(12)),`strip`);this.assert(c(s(r-e))<=t,`expected #{this} to be close to `+e+` +/- `+t,`expected #{this} not to be close to `+e+` +/- `+t)}J(Mx,`closeTo`),Y.addMethod(`closeTo`,Mx),Y.addMethod(`approximately`,Mx);function Nx(e,t,n,r,i){let a=Array.from(t),o=Array.from(e);if(!r){if(o.length!==a.length)return!1;a=a.slice()}return o.every(function(e,t){if(i)return n?n(e,a[t]):e===a[t];if(!n){let t=a.indexOf(e);return t===-1?!1:(r||a.splice(t,1),!0)}return a.some(function(t,i){return n(e,t)?(r||a.splice(i,1),!0):!1})})}J(Nx,`isSubsetOf`),Y.addMethod(`members`,function(e,t){t&&X(this,`message`,t);let n=X(this,`object`),r=X(this,`message`),i=X(this,`ssfi`);new Y(n,r,i,!0).to.be.iterable,new Y(e,r,i,!0).to.be.iterable;let a=X(this,`contains`),o=X(this,`ordered`),s,c,l;a?(s=o?`an ordered superset`:`a superset`,c=`expected #{this} to be `+s+` of #{exp}`,l=`expected #{this} to not be `+s+` of #{exp}`):(s=o?`ordered members`:`members`,c=`expected #{this} to have the same `+s+` as #{exp}`,l=`expected #{this} to not have the same `+s+` as #{exp}`);let u=X(this,`deep`)?X(this,`eql`):void 0;this.assert(Nx(e,n,u,a,o),c,l,e,n,!0)}),Y.addProperty(`iterable`,function(e){e&&X(this,`message`,e);let t=X(this,`object`);this.assert(t!=null&&t[Symbol.iterator],`expected #{this} to be an iterable`,`expected #{this} to not be an iterable`,t)});function Px(e,t){t&&X(this,`message`,t);let n=X(this,`object`),r=X(this,`message`),i=X(this,`ssfi`),a=X(this,`contains`),o=X(this,`deep`),s=X(this,`eql`);new Y(e,r,i,!0).to.be.an(`array`),a?this.assert(e.some(function(e){return n.indexOf(e)>-1}),`expected #{this} to contain one of #{exp}`,`expected #{this} to not contain one of #{exp}`,e,n):o?this.assert(e.some(function(e){return s(n,e)}),`expected #{this} to deeply equal one of #{exp}`,`expected #{this} to deeply equal one of #{exp}`,e,n):this.assert(e.indexOf(n)>-1,`expected #{this} to be one of #{exp}`,`expected #{this} to not be one of #{exp}`,e,n)}J(Px,`oneOf`),Y.addMethod(`oneOf`,Px);function Fx(e,t,n){n&&X(this,`message`,n);let r=X(this,`object`),i=X(this,`message`),a=X(this,`ssfi`);new Y(r,i,a,!0).is.a(`function`);let o;t?(new Y(e,i,a,!0).to.have.property(t),o=e[t]):(new Y(e,i,a,!0).is.a(`function`),o=e()),r();let s=t==null?e():e[t],c=t==null?o:`.`+t;X(this,`deltaMsgObj`,c),X(this,`initialDeltaValue`,o),X(this,`finalDeltaValue`,s),X(this,`deltaBehavior`,`change`),X(this,`realDelta`,s!==o),this.assert(o!==s,`expected `+c+` to change`,`expected `+c+` to not change`)}J(Fx,`assertChanges`),Y.addMethod(`change`,Fx),Y.addMethod(`changes`,Fx);function Ix(e,t,n){n&&X(this,`message`,n);let r=X(this,`object`),i=X(this,`message`),a=X(this,`ssfi`);new Y(r,i,a,!0).is.a(`function`);let o;t?(new Y(e,i,a,!0).to.have.property(t),o=e[t]):(new Y(e,i,a,!0).is.a(`function`),o=e()),new Y(o,i,a,!0).is.a(`number`),r();let s=t==null?e():e[t],c=t==null?o:`.`+t;X(this,`deltaMsgObj`,c),X(this,`initialDeltaValue`,o),X(this,`finalDeltaValue`,s),X(this,`deltaBehavior`,`increase`),X(this,`realDelta`,s-o),this.assert(s-o>0,`expected `+c+` to increase`,`expected `+c+` to not increase`)}J(Ix,`assertIncreases`),Y.addMethod(`increase`,Ix),Y.addMethod(`increases`,Ix);function Lx(e,t,n){n&&X(this,`message`,n);let r=X(this,`object`),i=X(this,`message`),a=X(this,`ssfi`);new Y(r,i,a,!0).is.a(`function`);let o;t?(new Y(e,i,a,!0).to.have.property(t),o=e[t]):(new Y(e,i,a,!0).is.a(`function`),o=e()),new Y(o,i,a,!0).is.a(`number`),r();let s=t==null?e():e[t],c=t==null?o:`.`+t;X(this,`deltaMsgObj`,c),X(this,`initialDeltaValue`,o),X(this,`finalDeltaValue`,s),X(this,`deltaBehavior`,`decrease`),X(this,`realDelta`,o-s),this.assert(s-o<0,`expected `+c+` to decrease`,`expected `+c+` to not decrease`)}J(Lx,`assertDecreases`),Y.addMethod(`decrease`,Lx),Y.addMethod(`decreases`,Lx);function Rx(e,t){t&&X(this,`message`,t);let n=X(this,`deltaMsgObj`),r=X(this,`initialDeltaValue`),i=X(this,`finalDeltaValue`),a=X(this,`deltaBehavior`),o=X(this,`realDelta`),s;s=a===`change`?Math.abs(i-r)===Math.abs(e):o===Math.abs(e),this.assert(s,`expected `+n+` to `+a+` by `+e,`expected `+n+` to not `+a+` by `+e)}J(Rx,`assertDelta`),Y.addMethod(`by`,Rx),Y.addProperty(`extensible`,function(){let e=X(this,`object`),t=e===Object(e)&&Object.isExtensible(e);this.assert(t,`expected #{this} to be extensible`,`expected #{this} to not be extensible`)}),Y.addProperty(`sealed`,function(){let e=X(this,`object`),t=e===Object(e)?Object.isSealed(e):!0;this.assert(t,`expected #{this} to be sealed`,`expected #{this} to not be sealed`)}),Y.addProperty(`frozen`,function(){let e=X(this,`object`),t=e===Object(e)?Object.isFrozen(e):!0;this.assert(t,`expected #{this} to be frozen`,`expected #{this} to not be frozen`)}),Y.addProperty(`finite`,function(e){let t=X(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 zx(e,t){return e===t?!0:typeof t==typeof e?typeof e!=`object`||!e?e===t:t?Array.isArray(e)?Array.isArray(t)?e.every(function(e){return t.some(function(t){return zx(e,t)})}):!1:e instanceof Date?t instanceof Date?e.getTime()===t.getTime():!1:Object.keys(e).every(function(n){let r=e[n],i=t[n];return typeof r==`object`&&r&&i!==null?zx(r,i):typeof r==`function`?r(i):i===r}):!1:!1}J(zx,`compareSubset`),Y.addMethod(`containSubset`,function(e){let t=Qv(this,`object`),n=nb.showDiff;this.assert(zx(e,t),`expected #{act} to contain subset #{exp}`,`expected #{act} to not contain subset #{exp}`,e,t,n)});function Bx(e,t){return new Y(e,t)}J(Bx,`expect`),Bx.fail=function(e,t,n,r){throw arguments.length<2&&(n=e,e=void 0),n||=`expect.fail()`,new ry(n,{actual:e,expected:t,operator:r},Bx.fail)};var Vx={};Hv(Vx,{Should:()=>Wx,should:()=>Ux});function Hx(){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 Y(this.valueOf(),null,e):new Y(this,null,e)}J(e,`shouldGetter`);function t(e){Object.defineProperty(this,`should`,{value:e,enumerable:!0,configurable:!0,writable:!0})}J(t,`shouldSetter`),Object.defineProperty(Object.prototype,`should`,{set:t,get:e,configurable:!0});let n={};return n.fail=function(e,t,r,i){throw arguments.length<2&&(r=e,e=void 0),r||=`should.fail()`,new ry(r,{actual:e,expected:t,operator:i},n.fail)},n.equal=function(e,t,n){new Y(e,n).to.equal(t)},n.Throw=function(e,t,n,r){new Y(e,r).to.Throw(t,n)},n.exist=function(e,t){new Y(e,t).to.exist},n.not={},n.not.equal=function(e,t,n){new Y(e,n).to.not.equal(t)},n.not.Throw=function(e,t,n,r){new Y(e,r).to.not.Throw(t,n)},n.not.exist=function(e,t){new Y(e,t).to.not.exist},n.throw=n.Throw,n.not.throw=n.not.Throw,n}J(Hx,`loadShould`);var Ux=Hx,Wx=Hx;function Z(e,t){new Y(null,null,Z,!0).assert(e,t,`[ negation message unavailable ]`)}J(Z,`assert`),Z.fail=function(e,t,n,r){throw arguments.length<2&&(n=e,e=void 0),n||=`assert.fail()`,new ry(n,{actual:e,expected:t,operator:r},Z.fail)},Z.isOk=function(e,t){new Y(e,t,Z.isOk,!0).is.ok},Z.isNotOk=function(e,t){new Y(e,t,Z.isNotOk,!0).is.not.ok},Z.equal=function(e,t,n){let r=new Y(e,n,Z.equal,!0);r.assert(t==Qv(r,`object`),`expected #{this} to equal #{exp}`,`expected #{this} to not equal #{act}`,t,e,!0)},Z.notEqual=function(e,t,n){let r=new Y(e,n,Z.notEqual,!0);r.assert(t!=Qv(r,`object`),`expected #{this} to not equal #{exp}`,`expected #{this} to equal #{act}`,t,e,!0)},Z.strictEqual=function(e,t,n){new Y(e,n,Z.strictEqual,!0).to.equal(t)},Z.notStrictEqual=function(e,t,n){new Y(e,n,Z.notStrictEqual,!0).to.not.equal(t)},Z.deepEqual=Z.deepStrictEqual=function(e,t,n){new Y(e,n,Z.deepEqual,!0).to.eql(t)},Z.notDeepEqual=function(e,t,n){new Y(e,n,Z.notDeepEqual,!0).to.not.eql(t)},Z.isAbove=function(e,t,n){new Y(e,n,Z.isAbove,!0).to.be.above(t)},Z.isAtLeast=function(e,t,n){new Y(e,n,Z.isAtLeast,!0).to.be.least(t)},Z.isBelow=function(e,t,n){new Y(e,n,Z.isBelow,!0).to.be.below(t)},Z.isAtMost=function(e,t,n){new Y(e,n,Z.isAtMost,!0).to.be.most(t)},Z.isTrue=function(e,t){new Y(e,t,Z.isTrue,!0).is.true},Z.isNotTrue=function(e,t){new Y(e,t,Z.isNotTrue,!0).to.not.equal(!0)},Z.isFalse=function(e,t){new Y(e,t,Z.isFalse,!0).is.false},Z.isNotFalse=function(e,t){new Y(e,t,Z.isNotFalse,!0).to.not.equal(!1)},Z.isNull=function(e,t){new Y(e,t,Z.isNull,!0).to.equal(null)},Z.isNotNull=function(e,t){new Y(e,t,Z.isNotNull,!0).to.not.equal(null)},Z.isNaN=function(e,t){new Y(e,t,Z.isNaN,!0).to.be.NaN},Z.isNotNaN=function(e,t){new Y(e,t,Z.isNotNaN,!0).not.to.be.NaN},Z.exists=function(e,t){new Y(e,t,Z.exists,!0).to.exist},Z.notExists=function(e,t){new Y(e,t,Z.notExists,!0).to.not.exist},Z.isUndefined=function(e,t){new Y(e,t,Z.isUndefined,!0).to.equal(void 0)},Z.isDefined=function(e,t){new Y(e,t,Z.isDefined,!0).to.not.equal(void 0)},Z.isCallable=function(e,t){new Y(e,t,Z.isCallable,!0).is.callable},Z.isNotCallable=function(e,t){new Y(e,t,Z.isNotCallable,!0).is.not.callable},Z.isObject=function(e,t){new Y(e,t,Z.isObject,!0).to.be.a(`object`)},Z.isNotObject=function(e,t){new Y(e,t,Z.isNotObject,!0).to.not.be.a(`object`)},Z.isArray=function(e,t){new Y(e,t,Z.isArray,!0).to.be.an(`array`)},Z.isNotArray=function(e,t){new Y(e,t,Z.isNotArray,!0).to.not.be.an(`array`)},Z.isString=function(e,t){new Y(e,t,Z.isString,!0).to.be.a(`string`)},Z.isNotString=function(e,t){new Y(e,t,Z.isNotString,!0).to.not.be.a(`string`)},Z.isNumber=function(e,t){new Y(e,t,Z.isNumber,!0).to.be.a(`number`)},Z.isNotNumber=function(e,t){new Y(e,t,Z.isNotNumber,!0).to.not.be.a(`number`)},Z.isNumeric=function(e,t){new Y(e,t,Z.isNumeric,!0).is.numeric},Z.isNotNumeric=function(e,t){new Y(e,t,Z.isNotNumeric,!0).is.not.numeric},Z.isFinite=function(e,t){new Y(e,t,Z.isFinite,!0).to.be.finite},Z.isBoolean=function(e,t){new Y(e,t,Z.isBoolean,!0).to.be.a(`boolean`)},Z.isNotBoolean=function(e,t){new Y(e,t,Z.isNotBoolean,!0).to.not.be.a(`boolean`)},Z.typeOf=function(e,t,n){new Y(e,n,Z.typeOf,!0).to.be.a(t)},Z.notTypeOf=function(e,t,n){new Y(e,n,Z.notTypeOf,!0).to.not.be.a(t)},Z.instanceOf=function(e,t,n){new Y(e,n,Z.instanceOf,!0).to.be.instanceOf(t)},Z.notInstanceOf=function(e,t,n){new Y(e,n,Z.notInstanceOf,!0).to.not.be.instanceOf(t)},Z.include=function(e,t,n){new Y(e,n,Z.include,!0).include(t)},Z.notInclude=function(e,t,n){new Y(e,n,Z.notInclude,!0).not.include(t)},Z.deepInclude=function(e,t,n){new Y(e,n,Z.deepInclude,!0).deep.include(t)},Z.notDeepInclude=function(e,t,n){new Y(e,n,Z.notDeepInclude,!0).not.deep.include(t)},Z.nestedInclude=function(e,t,n){new Y(e,n,Z.nestedInclude,!0).nested.include(t)},Z.notNestedInclude=function(e,t,n){new Y(e,n,Z.notNestedInclude,!0).not.nested.include(t)},Z.deepNestedInclude=function(e,t,n){new Y(e,n,Z.deepNestedInclude,!0).deep.nested.include(t)},Z.notDeepNestedInclude=function(e,t,n){new Y(e,n,Z.notDeepNestedInclude,!0).not.deep.nested.include(t)},Z.ownInclude=function(e,t,n){new Y(e,n,Z.ownInclude,!0).own.include(t)},Z.notOwnInclude=function(e,t,n){new Y(e,n,Z.notOwnInclude,!0).not.own.include(t)},Z.deepOwnInclude=function(e,t,n){new Y(e,n,Z.deepOwnInclude,!0).deep.own.include(t)},Z.notDeepOwnInclude=function(e,t,n){new Y(e,n,Z.notDeepOwnInclude,!0).not.deep.own.include(t)},Z.match=function(e,t,n){new Y(e,n,Z.match,!0).to.match(t)},Z.notMatch=function(e,t,n){new Y(e,n,Z.notMatch,!0).to.not.match(t)},Z.property=function(e,t,n){new Y(e,n,Z.property,!0).to.have.property(t)},Z.notProperty=function(e,t,n){new Y(e,n,Z.notProperty,!0).to.not.have.property(t)},Z.propertyVal=function(e,t,n,r){new Y(e,r,Z.propertyVal,!0).to.have.property(t,n)},Z.notPropertyVal=function(e,t,n,r){new Y(e,r,Z.notPropertyVal,!0).to.not.have.property(t,n)},Z.deepPropertyVal=function(e,t,n,r){new Y(e,r,Z.deepPropertyVal,!0).to.have.deep.property(t,n)},Z.notDeepPropertyVal=function(e,t,n,r){new Y(e,r,Z.notDeepPropertyVal,!0).to.not.have.deep.property(t,n)},Z.ownProperty=function(e,t,n){new Y(e,n,Z.ownProperty,!0).to.have.own.property(t)},Z.notOwnProperty=function(e,t,n){new Y(e,n,Z.notOwnProperty,!0).to.not.have.own.property(t)},Z.ownPropertyVal=function(e,t,n,r){new Y(e,r,Z.ownPropertyVal,!0).to.have.own.property(t,n)},Z.notOwnPropertyVal=function(e,t,n,r){new Y(e,r,Z.notOwnPropertyVal,!0).to.not.have.own.property(t,n)},Z.deepOwnPropertyVal=function(e,t,n,r){new Y(e,r,Z.deepOwnPropertyVal,!0).to.have.deep.own.property(t,n)},Z.notDeepOwnPropertyVal=function(e,t,n,r){new Y(e,r,Z.notDeepOwnPropertyVal,!0).to.not.have.deep.own.property(t,n)},Z.nestedProperty=function(e,t,n){new Y(e,n,Z.nestedProperty,!0).to.have.nested.property(t)},Z.notNestedProperty=function(e,t,n){new Y(e,n,Z.notNestedProperty,!0).to.not.have.nested.property(t)},Z.nestedPropertyVal=function(e,t,n,r){new Y(e,r,Z.nestedPropertyVal,!0).to.have.nested.property(t,n)},Z.notNestedPropertyVal=function(e,t,n,r){new Y(e,r,Z.notNestedPropertyVal,!0).to.not.have.nested.property(t,n)},Z.deepNestedPropertyVal=function(e,t,n,r){new Y(e,r,Z.deepNestedPropertyVal,!0).to.have.deep.nested.property(t,n)},Z.notDeepNestedPropertyVal=function(e,t,n,r){new Y(e,r,Z.notDeepNestedPropertyVal,!0).to.not.have.deep.nested.property(t,n)},Z.lengthOf=function(e,t,n){new Y(e,n,Z.lengthOf,!0).to.have.lengthOf(t)},Z.hasAnyKeys=function(e,t,n){new Y(e,n,Z.hasAnyKeys,!0).to.have.any.keys(t)},Z.hasAllKeys=function(e,t,n){new Y(e,n,Z.hasAllKeys,!0).to.have.all.keys(t)},Z.containsAllKeys=function(e,t,n){new Y(e,n,Z.containsAllKeys,!0).to.contain.all.keys(t)},Z.doesNotHaveAnyKeys=function(e,t,n){new Y(e,n,Z.doesNotHaveAnyKeys,!0).to.not.have.any.keys(t)},Z.doesNotHaveAllKeys=function(e,t,n){new Y(e,n,Z.doesNotHaveAllKeys,!0).to.not.have.all.keys(t)},Z.hasAnyDeepKeys=function(e,t,n){new Y(e,n,Z.hasAnyDeepKeys,!0).to.have.any.deep.keys(t)},Z.hasAllDeepKeys=function(e,t,n){new Y(e,n,Z.hasAllDeepKeys,!0).to.have.all.deep.keys(t)},Z.containsAllDeepKeys=function(e,t,n){new Y(e,n,Z.containsAllDeepKeys,!0).to.contain.all.deep.keys(t)},Z.doesNotHaveAnyDeepKeys=function(e,t,n){new Y(e,n,Z.doesNotHaveAnyDeepKeys,!0).to.not.have.any.deep.keys(t)},Z.doesNotHaveAllDeepKeys=function(e,t,n){new Y(e,n,Z.doesNotHaveAllDeepKeys,!0).to.not.have.all.deep.keys(t)},Z.throws=function(e,t,n,r){return(typeof t==`string`||t instanceof RegExp)&&(n=t,t=null),Qv(new Y(e,r,Z.throws,!0).to.throw(t,n),`object`)},Z.doesNotThrow=function(e,t,n,r){(typeof t==`string`||t instanceof RegExp)&&(n=t,t=null),new Y(e,r,Z.doesNotThrow,!0).to.not.throw(t,n)},Z.operator=function(e,t,n,r){let i;switch(t){case`==`:i=e==n;break;case`===`:i=e===n;break;case`>`:i=e>n;break;case`>=`:i=e>=n;break;case`<`:i=e<n;break;case`<=`:i=e<=n;break;case`!=`:i=e!=n;break;case`!==`:i=e!==n;break;default:throw r&&=r+`: `,new ry(r+`Invalid operator "`+t+`"`,void 0,Z.operator)}let a=new Y(i,r,Z.operator,!0);a.assert(Qv(a,`object`)===!0,`expected `+rb(e)+` to be `+t+` `+rb(n),`expected `+rb(e)+` to not be `+t+` `+rb(n))},Z.closeTo=function(e,t,n,r){new Y(e,r,Z.closeTo,!0).to.be.closeTo(t,n)},Z.approximately=function(e,t,n,r){new Y(e,r,Z.approximately,!0).to.be.approximately(t,n)},Z.sameMembers=function(e,t,n){new Y(e,n,Z.sameMembers,!0).to.have.same.members(t)},Z.notSameMembers=function(e,t,n){new Y(e,n,Z.notSameMembers,!0).to.not.have.same.members(t)},Z.sameDeepMembers=function(e,t,n){new Y(e,n,Z.sameDeepMembers,!0).to.have.same.deep.members(t)},Z.notSameDeepMembers=function(e,t,n){new Y(e,n,Z.notSameDeepMembers,!0).to.not.have.same.deep.members(t)},Z.sameOrderedMembers=function(e,t,n){new Y(e,n,Z.sameOrderedMembers,!0).to.have.same.ordered.members(t)},Z.notSameOrderedMembers=function(e,t,n){new Y(e,n,Z.notSameOrderedMembers,!0).to.not.have.same.ordered.members(t)},Z.sameDeepOrderedMembers=function(e,t,n){new Y(e,n,Z.sameDeepOrderedMembers,!0).to.have.same.deep.ordered.members(t)},Z.notSameDeepOrderedMembers=function(e,t,n){new Y(e,n,Z.notSameDeepOrderedMembers,!0).to.not.have.same.deep.ordered.members(t)},Z.includeMembers=function(e,t,n){new Y(e,n,Z.includeMembers,!0).to.include.members(t)},Z.notIncludeMembers=function(e,t,n){new Y(e,n,Z.notIncludeMembers,!0).to.not.include.members(t)},Z.includeDeepMembers=function(e,t,n){new Y(e,n,Z.includeDeepMembers,!0).to.include.deep.members(t)},Z.notIncludeDeepMembers=function(e,t,n){new Y(e,n,Z.notIncludeDeepMembers,!0).to.not.include.deep.members(t)},Z.includeOrderedMembers=function(e,t,n){new Y(e,n,Z.includeOrderedMembers,!0).to.include.ordered.members(t)},Z.notIncludeOrderedMembers=function(e,t,n){new Y(e,n,Z.notIncludeOrderedMembers,!0).to.not.include.ordered.members(t)},Z.includeDeepOrderedMembers=function(e,t,n){new Y(e,n,Z.includeDeepOrderedMembers,!0).to.include.deep.ordered.members(t)},Z.notIncludeDeepOrderedMembers=function(e,t,n){new Y(e,n,Z.notIncludeDeepOrderedMembers,!0).to.not.include.deep.ordered.members(t)},Z.oneOf=function(e,t,n){new Y(e,n,Z.oneOf,!0).to.be.oneOf(t)},Z.isIterable=function(e,t){if(e==null||!e[Symbol.iterator])throw t=t?`${t} expected ${rb(e)} to be an iterable`:`expected ${rb(e)} to be an iterable`,new ry(t,void 0,Z.isIterable)},Z.changes=function(e,t,n,r){arguments.length===3&&typeof t==`function`&&(r=n,n=null),new Y(e,r,Z.changes,!0).to.change(t,n)},Z.changesBy=function(e,t,n,r,i){if(arguments.length===4&&typeof t==`function`){let e=r;r=n,i=e}else arguments.length===3&&(r=n,n=null);new Y(e,i,Z.changesBy,!0).to.change(t,n).by(r)},Z.doesNotChange=function(e,t,n,r){return arguments.length===3&&typeof t==`function`&&(r=n,n=null),new Y(e,r,Z.doesNotChange,!0).to.not.change(t,n)},Z.changesButNotBy=function(e,t,n,r,i){if(arguments.length===4&&typeof t==`function`){let e=r;r=n,i=e}else arguments.length===3&&(r=n,n=null);new Y(e,i,Z.changesButNotBy,!0).to.change(t,n).but.not.by(r)},Z.increases=function(e,t,n,r){return arguments.length===3&&typeof t==`function`&&(r=n,n=null),new Y(e,r,Z.increases,!0).to.increase(t,n)},Z.increasesBy=function(e,t,n,r,i){if(arguments.length===4&&typeof t==`function`){let e=r;r=n,i=e}else arguments.length===3&&(r=n,n=null);new Y(e,i,Z.increasesBy,!0).to.increase(t,n).by(r)},Z.doesNotIncrease=function(e,t,n,r){return arguments.length===3&&typeof t==`function`&&(r=n,n=null),new Y(e,r,Z.doesNotIncrease,!0).to.not.increase(t,n)},Z.increasesButNotBy=function(e,t,n,r,i){if(arguments.length===4&&typeof t==`function`){let e=r;r=n,i=e}else arguments.length===3&&(r=n,n=null);new Y(e,i,Z.increasesButNotBy,!0).to.increase(t,n).but.not.by(r)},Z.decreases=function(e,t,n,r){return arguments.length===3&&typeof t==`function`&&(r=n,n=null),new Y(e,r,Z.decreases,!0).to.decrease(t,n)},Z.decreasesBy=function(e,t,n,r,i){if(arguments.length===4&&typeof t==`function`){let e=r;r=n,i=e}else arguments.length===3&&(r=n,n=null);new Y(e,i,Z.decreasesBy,!0).to.decrease(t,n).by(r)},Z.doesNotDecrease=function(e,t,n,r){return arguments.length===3&&typeof t==`function`&&(r=n,n=null),new Y(e,r,Z.doesNotDecrease,!0).to.not.decrease(t,n)},Z.doesNotDecreaseBy=function(e,t,n,r,i){if(arguments.length===4&&typeof t==`function`){let e=r;r=n,i=e}else arguments.length===3&&(r=n,n=null);return new Y(e,i,Z.doesNotDecreaseBy,!0).to.not.decrease(t,n).by(r)},Z.decreasesButNotBy=function(e,t,n,r,i){if(arguments.length===4&&typeof t==`function`){let e=r;r=n,i=e}else arguments.length===3&&(r=n,n=null);new Y(e,i,Z.decreasesButNotBy,!0).to.decrease(t,n).but.not.by(r)},Z.ifError=function(e){if(e)throw e},Z.isExtensible=function(e,t){new Y(e,t,Z.isExtensible,!0).to.be.extensible},Z.isNotExtensible=function(e,t){new Y(e,t,Z.isNotExtensible,!0).to.not.be.extensible},Z.isSealed=function(e,t){new Y(e,t,Z.isSealed,!0).to.be.sealed},Z.isNotSealed=function(e,t){new Y(e,t,Z.isNotSealed,!0).to.not.be.sealed},Z.isFrozen=function(e,t){new Y(e,t,Z.isFrozen,!0).to.be.frozen},Z.isNotFrozen=function(e,t){new Y(e,t,Z.isNotFrozen,!0).to.not.be.frozen},Z.isEmpty=function(e,t){new Y(e,t,Z.isEmpty,!0).to.be.empty},Z.isNotEmpty=function(e,t){new Y(e,t,Z.isNotEmpty,!0).to.not.be.empty},Z.containsSubset=function(e,t,n){new Y(e,n).to.containSubset(t)},Z.doesNotContainSubset=function(e,t,n){new Y(e,n).to.not.containSubset(t)};for(let[e,t]of[[`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`]])Z[t]=Z[e];var Gx=[];function Kx(e){let t={use:Kx,AssertionError:ry,util:Uv,config:nb,expect:Bx,assert:Z,Assertion:Y,...Vx};return~Gx.indexOf(e)||(e(t,Uv),Gx.push(e)),t}J(Kx,`use`);var qx={};Ne(qx,{toBeChecked:()=>oT,toBeDisabled:()=>Bw,toBeEmpty:()=>qC,toBeEmptyDOMElement:()=>JC,toBeEnabled:()=>Vw,toBeInTheDOM:()=>GC,toBeInTheDocument:()=>KC,toBeInvalid:()=>eT,toBePartiallyChecked:()=>uT,toBeRequired:()=>Yw,toBeValid:()=>tT,toBeVisible:()=>jw,toContainElement:()=>XC,toContainHTML:()=>QC,toHaveAccessibleDescription:()=>ew,toHaveAccessibleErrorMessage:()=>rw,toHaveAccessibleName:()=>lw,toHaveAttribute:()=>fw,toHaveClass:()=>gw,toHaveDescription:()=>dT,toHaveDisplayValue:()=>rT,toHaveErrorMessage:()=>fT,toHaveFocus:()=>Sw,toHaveFormValues:()=>Dw,toHaveRole:()=>aw,toHaveSelection:()=>mT,toHaveStyle:()=>xw,toHaveTextContent:()=>$C,toHaveValue:()=>nT});var Jx=H(Re(),1);function Yx(e){Object.defineProperty(e,`__esModule`,{value:!0,configurable:!0})}function Xx(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var Zx={};Yx(Zx),Xx(Zx,`default`,()=>Qx);var Qx=class extends Error{constructor(e,t,n,r,i){super(e+`:`+n+`:`+r+`: `+t),this.reason=t,this.filename=e,this.line=n,this.column=r,this.source=i}},$x={};Yx($x),Xx($x,`default`,()=>eS);var eS=class{constructor(e,t,n){this.start=e,this.end=t,this.source=n}};Xx({},`CssTypes`,()=>tS);var tS;(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`})(tS||={});var nS=/\/\*[^]*?(?:\*\/|$)/g,rS=(e,t)=>{t||={};let n=1,r=1;function i(e){let t=e.match(/\n/g);t&&(n+=t.length);let i=e.lastIndexOf(`
214
- `);r=~i?e.length-i:r+e.length}function a(){let e={line:n,column:r};return function(i){return i.position=new eS(e,{line:n,column:r},t?.source||``),p(),i}}let o=[];function s(i){let a=new Qx(t?.source||``,i,n,r,e);if(t?.silent)o.push(a);else throw a}function c(){let e=d();return{type:tS.stylesheet,stylesheet:{source:t?.source,rules:e,parsingErrors:o}}}function l(){return f(/^{\s*/)}function u(){return f(/^}/)}function d(){let t,n=[];for(p(),m(n);e.length&&e.charAt(0)!==`}`&&(t=ne()||re());)t&&(n.push(t),m(n));return n}function f(t){let n=t.exec(e);if(!n)return;let r=n[0];return i(r),e=e.slice(r.length),n}function p(){f(/^\s*/)}function m(e){let t;for(e||=[];t=h();)t&&e.push(t);return e}function h(){let t=a();if(e.charAt(0)!==`/`||e.charAt(1)!==`*`)return;let n=f(/^\/\*[^]*?\*\//);return n?t({type:tS.comment,comment:n[0].slice(2,-2)}):s(`End of comment missing`)}function g(e,t,n){let r=t+1,i=!1,a=e.indexOf(`)`,r);for(;!i&&a!==-1;){let t=e.indexOf(`(`,r);t!==-1&&t<a?(r=g(e,t+1,n+1)+1,a=e.indexOf(`)`,r)):i=!0}return i&&a!==-1?a:-1}function _(){let e=f(/^([^{]+)/);if(!e)return;let t=iS(e[0]).replace(nS,``);if(t.indexOf(`,`)===-1)return[t];let n=0,r=t.indexOf(`(`,n);for(;r!==-1;){let e=g(t,r,0);if(e===-1)break;n=e+1,t=t.substring(0,r)+t.substring(r,e).replace(/,/g,`‌`)+t.substring(e),r=t.indexOf(`(`,n)}return t=t.replace(/("|')(?:\\\1|.)*?\1/g,e=>e.replace(/,/g,`‌`)),t.split(`,`).map(e=>iS(e.replace(/\u200C/g,`,`)))}function v(){let e=a(),t=f(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(!t)return;let n=iS(t[0]);if(!f(/^:\s*/))return s(`property missing ':'`);let r=f(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),i=e({type:tS.declaration,property:n.replace(nS,``),value:r?iS(r[0]).replace(nS,``):``});return f(/^[;\s]*/),i}function y(){let e=[];if(!l())return s(`missing '{'`);m(e);let t;for(;t=v();)t&&(e.push(t),m(e));return u()?e:s(`missing '}'`)}function b(){let e,t=[],n=a();for(;e=f(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),f(/^,\s*/);if(t.length)return n({type:tS.keyframe,values:t,declarations:y()||[]})}function x(){let e=a(),t=f(/^@([-\w]+)?keyframes\s*/);if(!t)return;let n=t[1],r=f(/^([-\w]+)\s*/);if(!r)return s(`@keyframes missing name`);let i=r[1];if(!l())return s(`@keyframes missing '{'`);let o,c=m();for(;o=b();)c.push(o),c=c.concat(m());return u()?e({type:tS.keyframes,name:i,vendor:n,keyframes:c}):s(`@keyframes missing '}'`)}function S(){let e=a(),t=f(/^@supports *([^{]+)/);if(!t)return;let n=iS(t[1]);if(!l())return s(`@supports missing '{'`);let r=m().concat(d());return u()?e({type:tS.supports,supports:n,rules:r}):s(`@supports missing '}'`)}function C(){let e=a();if(!f(/^@host\s*/))return;if(!l())return s(`@host missing '{'`);let t=m().concat(d());return u()?e({type:tS.host,rules:t}):s(`@host missing '}'`)}function w(){let e=a(),t=f(/^@container *([^{]+)/);if(!t)return;let n=iS(t[1]);if(!l())return s(`@container missing '{'`);let r=m().concat(d());return u()?e({type:tS.container,container:n,rules:r}):s(`@container missing '}'`)}function T(){let e=a(),t=f(/^@layer *([^{;@]+)/);if(!t)return;let n=iS(t[1]);if(!l())return f(/^[;\s]*/),e({type:tS.layer,layer:n});let r=m().concat(d());return u()?e({type:tS.layer,layer:n,rules:r}):s(`@layer missing '}'`)}function E(){let e=a(),t=f(/^@media *([^{]+)/);if(!t)return;let n=iS(t[1]);if(!l())return s(`@media missing '{'`);let r=m().concat(d());return u()?e({type:tS.media,media:n,rules:r}):s(`@media missing '}'`)}function D(){let e=a(),t=f(/^@custom-media\s+(--\S+)\s*([^{;\s][^{;]*);/);if(t)return e({type:tS.customMedia,name:iS(t[1]),media:iS(t[2])})}function O(){let e=a();if(!f(/^@page */))return;let t=_()||[];if(!l())return s(`@page missing '{'`);let n=m(),r;for(;r=v();)n.push(r),n=n.concat(m());return u()?e({type:tS.page,selectors:t,declarations:n}):s(`@page missing '}'`)}function k(){let e=a(),t=f(/^@([-\w]+)?document *([^{]+)/);if(!t)return;let n=iS(t[1]),r=iS(t[2]);if(!l())return s(`@document missing '{'`);let i=m().concat(d());return u()?e({type:tS.document,document:r,vendor:n,rules:i}):s(`@document missing '}'`)}function A(){let e=a();if(!f(/^@font-face\s*/))return;if(!l())return s(`@font-face missing '{'`);let t=m(),n;for(;n=v();)t.push(n),t=t.concat(m());return u()?e({type:tS.fontFace,declarations:t}):s(`@font-face missing '}'`)}function j(){let e=a();if(!f(/^@starting-style\s*/))return;if(!l())return s(`@starting-style missing '{'`);let t=m().concat(d());return u()?e({type:tS.startingStyle,rules:t}):s(`@starting-style missing '}'`)}let M=te(`import`),ee=te(`charset`),N=te(`namespace`);function te(e){let t=RegExp(`^@`+e+`\\s*((?::?[^;'"]|"(?:\\\\"|[^"])*?"|'(?:\\\\'|[^'])*?')+)(?:;|$)`);return function(){let n=a(),r=f(t);if(!r)return;let i={type:e};return i[e]=r[1].trim(),n(i)}}function ne(){if(e[0]===`@`)return x()||E()||D()||S()||M()||ee()||N()||k()||O()||C()||A()||w()||j()||T()}function re(){let e=a(),t=_();return t?(m(),e({type:tS.rule,selectors:t,declarations:y()||[]})):s(`selector missing`)}return aS(c())};function iS(e){return e?e.trim():``}function aS(e,t){let n=e&&typeof e.type==`string`,r=n?e:t;for(let t in e){let n=e[t];Array.isArray(n)?n.forEach(e=>{aS(e,r)}):n&&typeof n==`object`&&aS(n,r)}return n&&Object.defineProperty(e,`parent`,{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}var oS=rS,sS=Object.prototype.toString;function cS(e){return typeof e==`function`||sS.call(e)===`[object Function]`}function lS(e){var t=Number(e);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))}var uS=2**53-1;function dS(e){var t=lS(e);return Math.min(Math.max(t,0),uS)}function fS(e,t){var n=Array,r=Object(e);if(e==null)throw TypeError(`Array.from requires an array-like object - not null or undefined`);if(typeof t<`u`&&!cS(t))throw TypeError(`Array.from: when provided, the second argument must be a function`);for(var i=dS(r.length),a=cS(n)?Object(new n(i)):Array(i),o=0,s;o<i;)s=r[o],t?a[o]=t(s,o):a[o]=s,o+=1;return a.length=i,a}function pS(e){"@babel/helpers - typeof";return pS=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},pS(e)}function mS(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function hS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,vS(r.key),r)}}function gS(e,t,n){return t&&hS(e.prototype,t),n&&hS(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function _S(e,t,n){return t=vS(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vS(e){var t=yS(e,`string`);return pS(t)===`symbol`?t:String(t)}function yS(e,t){if(pS(e)!==`object`||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(pS(r)!==`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var bS=(function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];mS(this,e),_S(this,`items`,void 0),this.items=t}return gS(e,[{key:`add`,value:function(e){return this.has(e)===!1&&this.items.push(e),this}},{key:`clear`,value:function(){this.items=[]}},{key:`delete`,value:function(e){var t=this.items.length;return this.items=this.items.filter(function(t){return t!==e}),t!==this.items.length}},{key:`forEach`,value:function(e){var t=this;this.items.forEach(function(n){e(n,n,t)})}},{key:`has`,value:function(e){return this.items.indexOf(e)!==-1}},{key:`size`,get:function(){return this.items.length}}]),e})(),xS=typeof Set>`u`?Set:bS;function SS(e){return e.localName??e.tagName.toLowerCase()}var CS={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`},wS={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 TS(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(n){var r;return e.hasAttribute(n)&&!((r=wS[t])!=null&&r.has(n))})}function ES(e,t){return TS(e,t)}function DS(e){var t=kS(e);if(t===null||AS.indexOf(t)!==-1){var n=OS(e);if(AS.indexOf(t||``)===-1||ES(e,n||``))return n}return t}function OS(e){var t=CS[SS(e)];if(t!==void 0)return t;switch(SS(e)){case`a`:case`area`:case`link`:if(e.hasAttribute(`href`))return`link`;break;case`img`:return e.getAttribute(`alt`)===``&&!ES(e,`img`)?`presentation`:`img`;case`input`:var n=e.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 kS(e){var t=e.getAttribute(`role`);if(t!==null){var n=t.trim().split(` `)[0];if(n.length>0)return n}return null}var AS=[`presentation`,`none`];function jS(e){return e!==null&&e.nodeType===e.ELEMENT_NODE}function MS(e){return jS(e)&&SS(e)===`caption`}function NS(e){return jS(e)&&SS(e)===`input`}function PS(e){return jS(e)&&SS(e)===`optgroup`}function FS(e){return jS(e)&&SS(e)===`select`}function IS(e){return jS(e)&&SS(e)===`table`}function LS(e){return jS(e)&&SS(e)===`textarea`}function RS(e){var t=(e.ownerDocument===null?e:e.ownerDocument).defaultView;if(t===null)throw TypeError(`no window available`);return t}function zS(e){return jS(e)&&SS(e)===`fieldset`}function BS(e){return jS(e)&&SS(e)===`legend`}function VS(e){return jS(e)&&SS(e)===`slot`}function HS(e){return jS(e)&&e.ownerSVGElement!==void 0}function US(e){return jS(e)&&SS(e)===`svg`}function WS(e){return HS(e)&&SS(e)===`title`}function GS(e,t){if(jS(e)&&e.hasAttribute(t)){var n=e.getAttribute(t).split(` `),r=e.getRootNode?e.getRootNode():e.ownerDocument;return n.map(function(e){return r.getElementById(e)}).filter(function(e){return e!==null})}return[]}function KS(e,t){return jS(e)?t.indexOf(DS(e))!==-1:!1}function qS(e){return e.trim().replace(/\s\s+/g,` `)}function JS(e,t){if(!jS(e))return!1;if(e.hasAttribute(`hidden`)||e.getAttribute(`aria-hidden`)===`true`)return!0;var n=t(e);return n.getPropertyValue(`display`)===`none`||n.getPropertyValue(`visibility`)===`hidden`}function YS(e){return KS(e,[`button`,`combobox`,`listbox`,`textbox`])||XS(e,`range`)}function XS(e,t){if(!jS(e))return!1;switch(t){case`range`:return KS(e,[`meter`,`progressbar`,`scrollbar`,`slider`,`spinbutton`]);default:throw TypeError(`No knowledge about abstract role '${t}'. This is likely a bug :(`)}}function ZS(e,t){var n=fS(e.querySelectorAll(t));return GS(e,`aria-owns`).forEach(function(e){n.push.apply(n,fS(e.querySelectorAll(t)))}),n}function QS(e){return FS(e)?e.selectedOptions||ZS(e,`[selected]`):ZS(e,`[aria-selected="true"]`)}function $S(e){return KS(e,AS)}function eC(e){return MS(e)}function tC(e){return KS(e,[`button`,`cell`,`checkbox`,`columnheader`,`gridcell`,`heading`,`label`,`legend`,`link`,`menuitem`,`menuitemcheckbox`,`menuitemradio`,`option`,`radio`,`row`,`rowheader`,`switch`,`tab`,`tooltip`,`treeitem`])}function nC(e){return!1}function rC(e){return NS(e)||LS(e)?e.value:e.textContent||``}function iC(e){var t=e.getPropertyValue(`content`);return/^["'].*["']$/.test(t)?t.slice(1,-1):``}function aC(e){var t=SS(e);return t===`button`||t===`input`&&e.getAttribute(`type`)!==`hidden`||t===`meter`||t===`output`||t===`progress`||t===`select`||t===`textarea`}function oC(e){if(aC(e))return e;var t=null;return e.childNodes.forEach(function(e){if(t===null&&jS(e)){var n=oC(e);n!==null&&(t=n)}}),t}function sC(e){if(e.control!==void 0)return e.control;var t=e.getAttribute(`for`);return t===null?oC(e):e.ownerDocument.getElementById(t)}function cC(e){var t=e.labels;if(t===null)return t;if(t!==void 0)return fS(t);if(!aC(e))return null;var n=e.ownerDocument;return fS(n.querySelectorAll(`label`)).filter(function(t){return sC(t)===e})}function lC(e){var t=e.assignedNodes();return t.length===0?fS(e.childNodes):t}function uC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=new xS,r=RS(e),i=t.compute,a=i===void 0?`name`:i,o=t.computedStyleSupportsPseudoElements,s=o===void 0?t.getComputedStyle!==void 0:o,c=t.getComputedStyle,l=c===void 0?r.getComputedStyle.bind(r):c,u=t.hidden,d=u===void 0?!1:u;function f(e,t){var n=``;if(jS(e)&&s&&(n=`${iC(l(e,`::before`))} ${n}`),(VS(e)?lC(e):fS(e.childNodes).concat(GS(e,`aria-owns`))).forEach(function(e){var r=g(e,{isEmbeddedInLabel:t.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),i=(jS(e)?l(e).getPropertyValue(`display`):`inline`)===`inline`?``:` `;n+=`${i}${r}${i}`}),jS(e)&&s){var r=iC(l(e,`::after`));n=`${n} ${r}`}return n.trim()}function p(e,t){var r=e.getAttributeNode(t);return r!==null&&!n.has(r)&&r.value.trim()!==``?(n.add(r),r.value):null}function m(e){return jS(e)?p(e,`title`):null}function h(e){if(!jS(e))return null;if(zS(e)){n.add(e);for(var t=fS(e.childNodes),r=0;r<t.length;r+=1){var i=t[r];if(BS(i))return g(i,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(IS(e)){n.add(e);for(var a=fS(e.childNodes),o=0;o<a.length;o+=1){var s=a[o];if(MS(s))return g(s,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(US(e)){n.add(e);for(var c=fS(e.childNodes),l=0;l<c.length;l+=1){var u=c[l];if(WS(u))return u.textContent}return null}else if(SS(e)===`img`||SS(e)===`area`){var d=p(e,`alt`);if(d!==null)return d}else if(PS(e)){var m=p(e,`label`);if(m!==null)return m}if(NS(e)&&(e.type===`button`||e.type===`submit`||e.type===`reset`)){var h=p(e,`value`);if(h!==null)return h;if(e.type===`submit`)return`Submit`;if(e.type===`reset`)return`Reset`}var _=cC(e);if(_!==null&&_.length!==0)return n.add(e),fS(_).map(function(e){return g(e,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(e){return e.length>0}).join(` `);if(NS(e)&&e.type===`image`){var v=p(e,`alt`);if(v!==null)return v;var y=p(e,`title`);return y===null?`Submit Query`:y}if(KS(e,[`button`])){var b=f(e,{isEmbeddedInLabel:!1,isReferenced:!1});if(b!==``)return b}return null}function g(e,t){if(n.has(e))return``;if(!d&&JS(e,l)&&!t.isReferenced)return n.add(e),``;var r=jS(e)?e.getAttributeNode(`aria-labelledby`):null,i=r!==null&&!n.has(r)?GS(e,`aria-labelledby`):[];if(a===`name`&&!t.isReferenced&&i.length>0)return n.add(r),i.map(function(e){return g(e,{isEmbeddedInLabel:t.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(` `);var o=t.recursion&&YS(e)&&a===`name`;if(!o){var s=(jS(e)&&e.getAttribute(`aria-label`)||``).trim();if(s!==``&&a===`name`)return n.add(e),s;if(!$S(e)){var c=h(e);if(c!==null)return n.add(e),c}}if(KS(e,[`menu`]))return n.add(e),``;if(o||t.isEmbeddedInLabel||t.isReferenced){if(KS(e,[`combobox`,`listbox`])){n.add(e);var u=QS(e);return u.length===0?NS(e)?e.value:``:fS(u).map(function(e){return g(e,{isEmbeddedInLabel:t.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(` `)}if(XS(e,`range`))return n.add(e),e.hasAttribute(`aria-valuetext`)?e.getAttribute(`aria-valuetext`):e.hasAttribute(`aria-valuenow`)?e.getAttribute(`aria-valuenow`):e.getAttribute(`value`)||``;if(KS(e,[`textbox`]))return n.add(e),rC(e)}if(tC(e)||jS(e)&&t.isReferenced||eC(e)||nC(e)){var p=f(e,{isEmbeddedInLabel:t.isEmbeddedInLabel,isReferenced:!1});if(p!==``)return n.add(e),p}if(e.nodeType===e.TEXT_NODE)return n.add(e),e.textContent||``;if(t.recursion)return n.add(e),f(e,{isEmbeddedInLabel:t.isEmbeddedInLabel,isReferenced:!1});var _=m(e);return _===null?(n.add(e),``):(n.add(e),_)}return qS(g(e,{isEmbeddedInLabel:!1,isReferenced:a===`description`,recursion:!1}))}function dC(e){"@babel/helpers - typeof";return dC=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},dC(e)}function fC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function pC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?fC(Object(n),!0).forEach(function(t){mC(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function mC(e,t,n){return t=hC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hC(e){var t=gC(e,`string`);return dC(t)===`symbol`?t:String(t)}function gC(e,t){if(dC(e)!==`object`||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(dC(r)!==`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function _C(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=GS(e,`aria-describedby`).map(function(e){return uC(e,pC(pC({},t),{},{compute:`description`}))}).join(` `);if(n===``){var r=e.getAttribute(`aria-description`);n=r===null?``:r}if(n===``){var i=e.getAttribute(`title`);n=i===null?``:i}return n}function vC(e){return KS(e,[`caption`,`code`,`deletion`,`emphasis`,`generic`,`insertion`,`none`,`paragraph`,`presentation`,`strong`,`subscript`,`superscript`])}function yC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return vC(e)?``:uC(e,t)}var bC=H(Er(),1),xC=H(Fr(),1),SC=H(ga(),1),CC=H(_a(),1),wC=class extends Error{constructor(e,t,n,r){super(),Error.captureStackTrace&&Error.captureStackTrace(this,n);let i=``;try{i=r.utils.printWithType(`Received`,t,r.utils.printReceived)}catch{}this.message=[r.utils.matcherHint(`${r.isNot?`.not`:``}.${n.name}`,`received`,``),``,`${r.utils.RECEIVED_COLOR(`received`)} value must ${e}.`,i].join(`
215
- `)}},TC=class extends wC{constructor(...e){super(`be an HTMLElement or an SVGElement`,...e)}},EC=class extends wC{constructor(...e){super(`be a Node`,...e)}};function DC(e,t,...n){if(!e||!e.ownerDocument||!e.ownerDocument.defaultView)throw new t(e,...n)}function OC(e,...t){if(DC(e,EC,...t),!(e instanceof e.ownerDocument.defaultView.Node))throw new EC(e,...t)}function kC(e,...t){DC(e,TC,...t);let n=e.ownerDocument.defaultView;if(!(e instanceof n.HTMLElement)&&!(e instanceof n.SVGElement))throw new TC(e,...t)}var AC=class extends Error{constructor(e,t,n){super(),Error.captureStackTrace&&Error.captureStackTrace(this,t),this.message=[e.message,``,n.utils.RECEIVED_COLOR(`Failing css:`),n.utils.RECEIVED_COLOR(`${e.css}`)].join(`
216
- `)}};function jC(e,...t){let n=oS(`selector { ${e} }`,{silent:!0}).stylesheet;if(n.parsingErrors&&n.parsingErrors.length>0){let{reason:r,line:i}=n.parsingErrors[0];throw new AC({css:e,message:`Syntax error parsing expected css: ${r} on line: ${i}`},...t)}return n.rules[0].declarations.filter(e=>e.type===`declaration`).reduce((e,{property:t,value:n})=>Object.assign(e,{[t]:n}),{})}function MC(e,t){return typeof t==`string`?t:e.utils.stringify(t)}function NC(e,t,n,r,i,a){return[`${t}
217
- `,`${n}:
218
- ${e.utils.EXPECTED_COLOR((0,Jx.default)(MC(e,r),2))}`,`${i}:
219
- ${e.utils.RECEIVED_COLOR((0,Jx.default)(MC(e,a),2))}`].join(`
220
- `)}function PC(e,t){return t instanceof RegExp?t.test(e):e.includes(String(t))}function FC(e,t){console.warn(`Warning: ${e} has been deprecated and will be removed in future updates.`,t)}function IC(e){return e.replace(/\s+/g,` `).trim()}function LC(e){return e.tagName&&e.tagName.toLowerCase()}function RC({multiple:e,options:t}){let n=[...t].filter(e=>e.selected);if(e)return[...n].map(e=>e.value);if(n.length!==0)return n[0].value}function zC(e){switch(e.type){case`number`:return e.value===``?null:Number(e.value);case`checkbox`:return e.checked;default:return e.value}}var BC=[`meter`,`progressbar`,`slider`,`spinbutton`];function VC(e){if(BC.includes(e.getAttribute(`role`)))return Number(e.getAttribute(`aria-valuenow`))}function HC(e){if(e)switch(e.tagName.toLowerCase()){case`input`:return zC(e);case`select`:return RC(e);default:return e.value??VC(e)}}function UC(e,{wordConnector:t=`, `,lastWordConnector:n=` and `}={}){return[e.slice(0,-1).join(t),e[e.length-1]].join(e.length>1?n:``)}function WC(e,t){if(Array.isArray(e)&&Array.isArray(t))return[...new Set(e)].every(e=>new Set(t).has(e))}function GC(e,t){return FC(`toBeInTheDOM`,`Please use toBeInTheDocument for searching the entire document and toContainElement for searching a specific container.`),e&&kC(e,GC,this),t&&kC(t,GC,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(`
221
- `)}}function KC(e){(e!==null||!this.isNot)&&kC(e,KC,this);let t=e===null?!1:e.ownerDocument===e.getRootNode({composed:!0}),n=()=>`expected document not to contain element, found ${this.utils.stringify(e.cloneNode(!0))} instead`,r=()=>`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?n():r())].join(`
222
- `)}}function qC(e){return FC(`toBeEmpty`,`Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM.`),kC(e,qC,this),{pass:e.innerHTML===``,message:()=>[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeEmpty`,`element`,``),``,`Received:`,` ${this.utils.printReceived(e.innerHTML)}`].join(`
223
- `)}}function JC(e){return kC(e,JC,this),{pass:YC(e),message:()=>[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeEmptyDOMElement`,`element`,``),``,`Received:`,` ${this.utils.printReceived(e.innerHTML)}`].join(`
224
- `)}}function YC(e){return[...e.childNodes].filter(e=>e.nodeType!==8).length===0}function XC(e,t){return kC(e,XC,this),t!==null&&kC(t,XC,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))}
225
- `)].join(`
226
- `)}}function ZC(e,t){let n=e.ownerDocument.createElement(`div`);return n.innerHTML=t,n.innerHTML}function QC(e,t){if(kC(e,QC,this),typeof t!=`string`)throw Error(`.toContainHTML() expects a string value, got ${t}`);return{pass:e.outerHTML.includes(ZC(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(`
227
- `)}}function $C(e,t,n={normalizeWhitespace:!0}){OC(e,$C,this);let r=n.normalizeWhitespace?IC(e.textContent):e.textContent.replace(/\u00a0/g,` `),i=r!==``&&t===``;return{pass:!i&&PC(r,t),message:()=>{let e=this.isNot?`not to`:`to`;return NC(this,this.utils.matcherHint(`${this.isNot?`.not`:``}.toHaveTextContent`,`element`,``),i?`Checking with empty string will always match, use .toBeEmptyDOMElement() instead`:`Expected element ${e} have text content`,t,`Received`,r)}}}function ew(e,t){kC(e,ew,this);let n=_C(e),r=arguments.length===1,i=!1;return i=r?n!==``:t instanceof RegExp?t.test(n):this.equals(n,t),{pass:i,message:()=>{let e=this.isNot?`not to`:`to`;return NC(this,this.utils.matcherHint(`${this.isNot?`.not`:``}.${ew.name}`,`element`,``),`Expected element ${e} have accessible description`,t,`Received`,n)}}}var tw=`aria-invalid`,nw=[`false`];function rw(e,t){kC(e,rw,this);let n=this.isNot?`not to`:`to`,r=this.isNot?`.not.toHaveAccessibleErrorMessage`:`.toHaveAccessibleErrorMessage`,i=e.getAttribute(`aria-errormessage`);if(i&&/\s+/.test(i))return{pass:!1,message:()=>NC(this,this.utils.matcherHint(r,`element`),"Expected element's `aria-errormessage` attribute to be empty or a single, valid ID",``,`Received`,`aria-errormessage="${i}"`)};let a=e.getAttribute(tw);if(!e.hasAttribute(tw)||nw.includes(a))return{pass:!1,message:()=>NC(this,this.utils.matcherHint(r,`element`),`Expected element to be marked as invalid with attribute`,`${tw}="true"`,`Received`,e.hasAttribute(`aria-invalid`)?`${tw}="${e.getAttribute(tw)}`:null)};let o=IC(e.ownerDocument.getElementById(i)?.textContent??``);return{pass:t===void 0?!!o:t instanceof RegExp?t.test(o):this.equals(o,t),message:()=>NC(this,this.utils.matcherHint(r,`element`),`Expected element ${n} have accessible error message`,t??``,`Received`,o)}}var iw=cw(bC.elementRoles);function aw(e,t){kC(e,aw,this);let n=ow(e);return{pass:n.some(e=>e===t),message:()=>{let e=this.isNot?`not to`:`to`;return NC(this,this.utils.matcherHint(`${this.isNot?`.not`:``}.${aw.name}`,`element`,``),`Expected element ${e} have role`,t,`Received`,n.join(`, `))}}}function ow(e){return e.hasAttribute(`role`)?e.getAttribute(`role`).split(` `).filter(Boolean):sw(e)}function sw(e){for(let{match:t,roles:n}of iw)if(t(e))return[...n];return[]}function cw(e){function t({name:e,attributes:t}){return`${e}${t.map(({name:e,value:t,constraints:n=[]})=>n.indexOf(`undefined`)===-1?t?`[${e}="${t}"]`:`[${e}]`:`:not([${e}])`).join(``)}`}function n({attributes:e=[]}){return e.length}function r({specificity:e},{specificity:t}){return t-e}function i(e){let{attributes:n=[]}=e,r=n.findIndex(e=>e.value&&e.name===`type`&&e.value===`text`);r>=0&&(n=[...n.slice(0,r),...n.slice(r+1)]);let i=t({...e,attributes:n});return e=>r>=0&&e.type!==`text`?!1:e.matches(i)}let a=[];for(let[t,r]of e.entries())a=[...a,{match:i(t),roles:Array.from(r),specificity:n(t)}];return a.sort(r)}function lw(e,t){kC(e,lw,this);let n=yC(e),r=arguments.length===1,i=!1;return i=r?n!==``:t instanceof RegExp?t.test(n):this.equals(n,t),{pass:i,message:()=>{let e=this.isNot?`not to`:`to`;return NC(this,this.utils.matcherHint(`${this.isNot?`.not`:``}.${lw.name}`,`element`,``),`Expected element ${e} have accessible name`,t,`Received`,n)}}}function uw(e,t,n){return n===void 0?t:`${t}=${e(n)}`}function dw(e,t,n){return n===void 0?`element.hasAttribute(${e(t)})`:`element.getAttribute(${e(t)}) === ${e(n)}`}function fw(e,t,n){kC(e,fw,this);let r=n!==void 0,i=e.hasAttribute(t),a=e.getAttribute(t);return{pass:r?i&&this.equals(a,n):i,message:()=>{let e=this.isNot?`not to`:`to`,o=i?uw(this.utils.stringify,t,a):null,s=this.utils.matcherHint(`${this.isNot?`.not`:``}.toHaveAttribute`,`element`,this.utils.printExpected(t),{secondArgument:r?this.utils.printExpected(n):void 0,comment:dw(this.utils.stringify,t,n)});return NC(this,s,`Expected the element ${e} have attribute`,uw(this.utils.stringify,t,n),`Received`,o)}}}function pw(e){let t=e.pop(),n,r;return typeof t==`object`&&!(t instanceof RegExp)?(n=e,r=t):(n=e.concat(t),r={exact:!1}),{expectedClassNames:n,options:r}}function mw(e){return e?e.split(/\s+/).filter(e=>e.length>0):[]}function hw(e,t){return e.every(e=>typeof e==`string`?t.includes(e):t.some(t=>e.test(t)))}function gw(e,...t){kC(e,gw,this);let{expectedClassNames:n,options:r}=pw(t),i=mw(e.getAttribute(`class`)),a=n.reduce((e,t)=>e.concat(typeof t==`string`||!t?mw(t):t),[]),o=a.some(e=>e instanceof RegExp);if(r.exact&&o)throw Error(`Exact option does not support RegExp expected class names`);return r.exact?{pass:hw(a,i)&&a.length===i.length,message:()=>{let e=this.isNot?`not to`:`to`;return NC(this,this.utils.matcherHint(`${this.isNot?`.not`:``}.toHaveClass`,`element`,this.utils.printExpected(a.join(` `))),`Expected the element ${e} have EXACTLY defined classes`,a.join(` `),`Received`,i.join(` `))}}:a.length>0?{pass:hw(a,i),message:()=>{let e=this.isNot?`not to`:`to`;return NC(this,this.utils.matcherHint(`${this.isNot?`.not`:``}.toHaveClass`,`element`,this.utils.printExpected(a.join(` `))),`Expected the element ${e} have class`,a.join(` `),`Received`,i.join(` `))}}:{pass:this.isNot?i.length>0:!1,message:()=>this.isNot?NC(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(`
228
- `)}}function _w(e,t){let n={},r=e.createElement(`div`);return Object.keys(t).forEach(e=>{r.style[e]=t[e],n[e]=r.style[e]}),n}function vw(e,t){return!!Object.keys(e).length&&Object.entries(e).every(([e,n])=>{let r=e.startsWith(`--`),i=[e];return r||i.push(e.toLowerCase()),i.some(e=>t[e]===n||t.getPropertyValue(e)===n)})}function yw(e){return Object.keys(e).sort().map(t=>`${t}: ${e[t]};`).join(`
229
- `)}function bw(e,t,n){let r=Array.from(n).filter(e=>t[e]!==void 0).reduce((e,t)=>Object.assign(e,{[t]:n.getPropertyValue(t)}),{});return e(yw(t),yw(r)).replace(`${xC.default.red(`+ Received`)}
230
- `,``)}function xw(e,t){kC(e,xw,this);let n=typeof t==`object`?t:jC(t,xw,this),{getComputedStyle:r}=e.ownerDocument.defaultView,i=_w(e.ownerDocument,n),a=r(e);return{pass:vw(i,a),message:()=>{let e=`${this.isNot?`.not`:``}.toHaveStyle`;return[this.utils.matcherHint(e,`element`,``),bw(this.utils.diff,i,a)].join(`
231
-
232
- `)}}}function Sw(e){return kC(e,Sw,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(`
233
- `)}}function Cw(e){let t=[...new Set(e.map(e=>e.type))];if(t.length!==1)throw Error(`Multiple form elements with the same name must be of the same type`);switch(t[0]){case`radio`:{let t=e.find(e=>e.checked);return t?t.value:void 0}case`checkbox`:return e.filter(e=>e.checked).map(e=>e.value);default:return e.map(e=>e.value)}}function ww(e,t){let n=[...e.querySelectorAll(`[name="${(0,CC.default)(t)}"]`)];if(n.length!==0)switch(n.length){case 1:return HC(n[0]);default:return Cw(n)}}function Tw(e){return/\[\]$/.test(e)?e.slice(0,-2):e}function Ew(e){return Array.from(e.elements).map(e=>e.name).reduce((t,n)=>({...t,[Tw(n)]:ww(e,n)}),{})}function Dw(e,t){if(kC(e,Dw,this),!e.elements)throw Error(`toHaveFormValues must be called on a form or a fieldset`);let n=Ew(e);return{pass:Object.entries(t).every(([e,t])=>(0,SC.default)(n[e],t,WC)),message:()=>{let e=this.isNot?`not to`:`to`,r=`${this.isNot?`.not`:``}.toHaveFormValues`,i=Object.keys(n).filter(e=>t.hasOwnProperty(e)).reduce((e,t)=>({...e,[t]:n[t]}),{});return[this.utils.matcherHint(r,`element`,``),`Expected the element ${e} have form values`,this.utils.diff(t,i)].join(`
234
-
235
- `)}}}function Ow(e){let{getComputedStyle:t}=e.ownerDocument.defaultView,{display:n,visibility:r,opacity:i}=t(e);return n!==`none`&&r!==`hidden`&&r!==`collapse`&&i!==`0`&&i!==0}function kw(e,t){let n;return n=t?e.nodeName===`DETAILS`&&t.nodeName!==`SUMMARY`?e.hasAttribute(`open`):!0:e.nodeName===`DETAILS`?e.hasAttribute(`open`):!0,!e.hasAttribute(`hidden`)&&n}function Aw(e,t){return Ow(e)&&kw(e,t)&&(!e.parentElement||Aw(e.parentElement,e))}function jw(e){kC(e,jw,this);let t=e.ownerDocument===e.getRootNode({composed:!0}),n=t&&Aw(e);return{pass:n,message:()=>{let r=n?`is`:`is not`;return[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeVisible`,`element`,``),``,`Received element ${r} visible${t?``:` (element is not in the document)`}:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
236
- `)}}}var Mw=[`fieldset`,`input`,`select`,`optgroup`,`option`,`button`,`textarea`];function Nw(e,t){return LC(e)===`legend`&&LC(t)===`fieldset`&&e.isSameNode(Array.from(t.children).find(e=>LC(e)===`legend`))}function Pw(e,t){return Lw(t)&&!Nw(e,t)}function Fw(e){return e.includes(`-`)}function Iw(e){let t=LC(e);return Mw.includes(t)||Fw(t)}function Lw(e){return Iw(e)&&e.hasAttribute(`disabled`)}function Rw(e){let t=e.parentElement;return!!t&&(Pw(e,t)||Rw(t))}function zw(e){return Iw(e)&&(Lw(e)||Rw(e))}function Bw(e){kC(e,Bw,this);let t=zw(e);return{pass:t,message:()=>{let n=t?`is`:`is not`;return[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeDisabled`,`element`,``),``,`Received element ${n} disabled:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
237
- `)}}}function Vw(e){kC(e,Vw,this);let t=!zw(e);return{pass:t,message:()=>{let n=t?`is`:`is not`;return[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeEnabled`,`element`,``),``,`Received element ${n} enabled:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
238
- `)}}}var Hw=[`select`,`textarea`],Uw=[`input`,`select`,`textarea`],Ww=[`color`,`hidden`,`range`,`submit`,`image`,`reset`],Gw=[`checkbox`,`combobox`,`gridcell`,`listbox`,`radiogroup`,`spinbutton`,`textbox`,`tree`];function Kw(e){return Hw.includes(LC(e))&&e.hasAttribute(`required`)}function qw(e){return LC(e)===`input`&&e.hasAttribute(`required`)&&(e.hasAttribute(`type`)&&!Ww.includes(e.getAttribute(`type`))||!e.hasAttribute(`type`))}function Jw(e){return e.hasAttribute(`aria-required`)&&e.getAttribute(`aria-required`)===`true`&&(Uw.includes(LC(e))||e.hasAttribute(`role`)&&Gw.includes(e.getAttribute(`role`)))}function Yw(e){kC(e,Yw,this);let t=Kw(e)||qw(e)||Jw(e);return{pass:t,message:()=>{let n=t?`is`:`is not`;return[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeRequired`,`element`,``),``,`Received element ${n} required:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
239
- `)}}}var Xw=[`form`,`input`,`select`,`textarea`];function Zw(e){return e.hasAttribute(`aria-invalid`)&&e.getAttribute(`aria-invalid`)!==`false`}function Qw(e){return Xw.includes(LC(e))}function $w(e){let t=Zw(e);return Qw(e)?t||!e.checkValidity():t}function eT(e){kC(e,eT,this);let t=$w(e);return{pass:t,message:()=>{let n=t?`is`:`is not`;return[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeInvalid`,`element`,``),``,`Received element ${n} currently invalid:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
240
- `)}}}function tT(e){kC(e,tT,this);let t=!$w(e);return{pass:t,message:()=>{let n=t?`is`:`is not`;return[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeValid`,`element`,``),``,`Received element ${n} currently valid:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
241
- `)}}}function nT(e,t){if(kC(e,nT,this),e.tagName.toLowerCase()===`input`&&[`checkbox`,`radio`].includes(e.type))throw Error(`input with type=checkbox or type=radio cannot be used with .toHaveValue(). Use .toBeChecked() for type=checkbox or .toHaveFormValues() instead`);let n=HC(e),r=t!==void 0,i=t,a=n;return t==n&&t!==n&&(i=`${t} (${typeof t})`,a=`${n} (${typeof n})`),{pass:r?(0,SC.default)(n,t,WC):!!n,message:()=>{let e=this.isNot?`not to`:`to`,n=this.utils.matcherHint(`${this.isNot?`.not`:``}.toHaveValue`,`element`,t);return NC(this,n,`Expected the element ${e} have value`,r?i:`(any)`,`Received`,a)}}}function rT(e,t){kC(e,rT,this);let n=e.tagName.toLowerCase();if(![`select`,`input`,`textarea`].includes(n))throw Error(`.toHaveDisplayValue() currently supports only input, textarea or select elements, try with another matcher instead.`);if(n===`input`&&[`radio`,`checkbox`].includes(e.type))throw Error(`.toHaveDisplayValue() currently does not support input[type="${e.type}"], try with another matcher instead.`);let r=iT(n,e),i=aT(t),a=i.filter(e=>r.some(t=>e instanceof RegExp?e.test(t):this.equals(t,String(e)))).length,o=a===r.length,s=a===i.length;return{pass:o&&s,message:()=>NC(this,this.utils.matcherHint(`${this.isNot?`.not`:``}.toHaveDisplayValue`,`element`,``),`Expected element ${this.isNot?`not `:``}to have display value`,t,`Received`,r)}}function iT(e,t){return e===`select`?Array.from(t).filter(e=>e.selected).map(e=>e.textContent):[t.value]}function aT(e){return e instanceof Array?e:[e]}function oT(e){kC(e,oT,this);let t=()=>e.tagName.toLowerCase()===`input`&&[`checkbox`,`radio`].includes(e.type);if(!t()&&!(lT(e.getAttribute(`role`))&&[`true`,`false`].includes(e.getAttribute(`aria-checked`))))return{pass:!1,message:()=>`only inputs with type="checkbox" or type="radio" or elements with ${sT()} 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 t=n()?`is`:`is not`;return[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBeChecked`,`element`,``),``,`Received element ${t} checked:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
242
- `)}}}function sT(){return UC(cT().map(e=>`role="${e}"`),{lastWordConnector:` or `})}function cT(){return bC.roles.keys().filter(lT)}function lT(e){return bC.roles.get(e)?.props[`aria-checked`]!==void 0}function uT(e){kC(e,uT,this);let t=()=>e.tagName.toLowerCase()===`input`&&e.type===`checkbox`;if(!t()&&e.getAttribute(`role`)!==`checkbox`)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 n=e.getAttribute(`aria-checked`)===`mixed`;return t()&&e.indeterminate||n};return{pass:n(),message:()=>{let t=n()?`is`:`is not`;return[this.utils.matcherHint(`${this.isNot?`.not`:``}.toBePartiallyChecked`,`element`,``),``,`Received element ${t} partially checked:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
243
- `)}}}function dT(e,t){FC(`toHaveDescription`,`Please use toHaveAccessibleDescription.`),kC(e,dT,this);let n=t!==void 0,r=(e.getAttribute(`aria-describedby`)||``).split(/\s+/).filter(Boolean),i=``;if(r.length>0){let t=e.ownerDocument;i=IC(r.map(e=>t.getElementById(e)).filter(Boolean).map(e=>e.textContent).join(` `))}return{pass:n?t instanceof RegExp?t.test(i):this.equals(i,t):!!i,message:()=>{let e=this.isNot?`not to`:`to`;return NC(this,this.utils.matcherHint(`${this.isNot?`.not`:``}.toHaveDescription`,`element`,``),`Expected the element ${e} have description`,this.utils.printExpected(t),`Received`,this.utils.printReceived(i))}}}function fT(e,t){if(FC(`toHaveErrorMessage`,`Please use toHaveAccessibleErrorMessage.`),kC(e,fT,this),!e.hasAttribute(`aria-invalid`)||e.getAttribute(`aria-invalid`)===`false`){let t=this.isNot?`.not`:``;return{pass:!1,message:()=>NC(this,this.utils.matcherHint(`${t}.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 n=t!==void 0,r=(e.getAttribute(`aria-errormessage`)||``).split(/\s+/).filter(Boolean),i=``;if(r.length>0){let t=e.ownerDocument;i=IC(r.map(e=>t.getElementById(e)).filter(Boolean).map(e=>e.textContent).join(` `))}return{pass:n?t instanceof RegExp?t.test(i):this.equals(i,t):!!i,message:()=>{let e=this.isNot?`not to`:`to`;return NC(this,this.utils.matcherHint(`${this.isNot?`.not`:``}.toHaveErrorMessage`,`element`,``),`Expected the element ${e} have error message`,this.utils.printExpected(t),`Received`,this.utils.printReceived(i))}}}function pT(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 n=t.getRangeAt(0),r=e.ownerDocument.createRange();if(t.containsNode(e,!1))r.selectNodeContents(e),t.removeAllRanges(),t.addRange(r);else if(!(e.contains(t.anchorNode)&&e.contains(t.focusNode))){let i=e===n.startContainer||e.contains(n.startContainer),a=e===n.endContainer||e.contains(n.endContainer);t.removeAllRanges(),(i||a)&&(r.selectNodeContents(e),i&&r.setStart(n.startContainer,n.startOffset),a&&r.setEnd(n.endContainer,n.endOffset),t.addRange(r))}let i=t.toString();return t.removeAllRanges(),t.addRange(n),i}function mT(e,t){kC(e,mT,this);let n=t!==void 0;if(n&&typeof t!=`string`)throw Error(`expected selection must be a string or undefined`);let r=pT(e);return{pass:n?(0,SC.default)(r,t,WC):!!r,message:()=>{let e=this.isNot?`not to`:`to`,i=this.utils.matcherHint(`${this.isNot?`.not`:``}.toHaveSelection`,`element`,t);return NC(this,i,`Expected the element ${e} have selection`,n?t:`(any)`,`Received`,r)}}}Object.freeze({__proto__:null,toBeChecked:oT,toBeDisabled:Bw,toBeEmpty:qC,toBeEmptyDOMElement:JC,toBeEnabled:Vw,toBeInTheDOM:GC,toBeInTheDocument:KC,toBeInvalid:eT,toBePartiallyChecked:uT,toBeRequired:Yw,toBeValid:tT,toBeVisible:jw,toContainElement:XC,toContainHTML:QC,toHaveAccessibleDescription:ew,toHaveAccessibleErrorMessage:rw,toHaveAccessibleName:lw,toHaveAttribute:fw,toHaveClass:gw,toHaveDescription:dT,toHaveDisplayValue:rT,toHaveErrorMessage:fT,toHaveFocus:Sw,toHaveFormValues:Dw,toHaveRole:aw,toHaveSelection:mT,toHaveStyle:xw,toHaveTextContent:$C,toHaveValue:nT}),H(Re(),1),H(Er(),1),H(Fr(),1),H(ga(),1),H(_a(),1);var hT,gT;function _T(){if(gT)return hT;gT=1;var e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v;return f=/\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/uy,d=/--|\+\+|=>|\.{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]+\})+/uy,m=/(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y,u=/(?: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,h=/[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y,v=/[\t\v\f\ufeff\p{Zs}]+/uy,s=/\r?\n|[\r\u2028\u2029]/y,c=/\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y,p=/\/\/.*/y,n=/[<>.:={}]|\/(?![\/*])/y,t=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/uy,r=/(['"])(?:(?!\1)[^])*(\1)?/y,i=/[^<>{}]+/y,_=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,g=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,a=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,o=/^(?:return|throw|yield)$/,l=RegExp(s.source),hT=function*(y,{jsx:b=!1}={}){var x,S,C,w,T,E,D,O,k,A,j,M,ee,N;for({length:E}=y,w=0,T=``,N=[{tag:`JS`}],x=[],j=0,M=!1;w<E;){switch(O=N[N.length-1],O.tag){case`JS`:case`JSNonExpressionParen`:case`InterpolationInTemplate`:case`InterpolationInJSX`:if(y[w]===`/`&&(_.test(T)||a.test(T))&&(f.lastIndex=w,D=f.exec(y))){w=f.lastIndex,T=D[0],M=!0,yield{type:`RegularExpressionLiteral`,value:D[0],closed:D[1]!==void 0&&D[1]!==`\\`};continue}if(d.lastIndex=w,D=d.exec(y)){switch(ee=D[0],k=d.lastIndex,A=ee,ee){case`(`:T===`?NonExpressionParenKeyword`&&N.push({tag:`JSNonExpressionParen`,nesting:j}),j++,M=!1;break;case`)`:j--,M=!0,O.tag===`JSNonExpressionParen`&&j===O.nesting&&(N.pop(),A=`?NonExpressionParenEnd`,M=!1);break;case`{`:d.lastIndex=0,C=!g.test(T)&&(_.test(T)||a.test(T)),x.push(C),M=!1;break;case`}`:switch(O.tag){case`InterpolationInTemplate`:if(x.length===O.nesting){h.lastIndex=w,D=h.exec(y),w=h.lastIndex,T=D[0],D[1]==="${"?(T=`?InterpolationInTemplate`,M=!1,yield{type:`TemplateMiddle`,value:D[0]}):(N.pop(),M=!0,yield{type:`TemplateTail`,value:D[0],closed:D[1]==="`"});continue}break;case`InterpolationInJSX`:if(x.length===O.nesting){N.pop(),w+=1,T=`}`,yield{type:`JSXPunctuator`,value:`}`};continue}}M=x.pop(),A=M?`?ExpressionBraceEnd`:`}`;break;case`]`:M=!0;break;case`++`:case`--`:A=M?`?PostfixIncDec`:`?UnaryIncDec`;break;case`<`:if(b&&(_.test(T)||a.test(T))){N.push({tag:`JSXTag`}),w+=1,T=`<`,yield{type:`JSXPunctuator`,value:ee};continue}M=!1;break;default:M=!1}w=k,T=A,yield{type:`Punctuator`,value:ee};continue}if(e.lastIndex=w,D=e.exec(y)){switch(w=e.lastIndex,A=D[0],D[0]){case`for`:case`if`:case`while`:case`with`:T!==`.`&&T!==`?.`&&(A=`?NonExpressionParenKeyword`)}T=A,M=!a.test(D[0]),yield{type:D[1]===`#`?`PrivateIdentifier`:`IdentifierName`,value:D[0]};continue}if(m.lastIndex=w,D=m.exec(y)){w=m.lastIndex,T=D[0],M=!0,yield{type:`StringLiteral`,value:D[0],closed:D[2]!==void 0};continue}if(u.lastIndex=w,D=u.exec(y)){w=u.lastIndex,T=D[0],M=!0,yield{type:`NumericLiteral`,value:D[0]};continue}if(h.lastIndex=w,D=h.exec(y)){w=h.lastIndex,T=D[0],D[1]==="${"?(T=`?InterpolationInTemplate`,N.push({tag:`InterpolationInTemplate`,nesting:x.length}),M=!1,yield{type:`TemplateHead`,value:D[0]}):(M=!0,yield{type:`NoSubstitutionTemplate`,value:D[0],closed:D[1]==="`"});continue}break;case`JSXTag`:case`JSXTagEnd`:if(n.lastIndex=w,D=n.exec(y)){switch(w=n.lastIndex,A=D[0],D[0]){case`<`:N.push({tag:`JSXTag`});break;case`>`:N.pop(),T===`/`||O.tag===`JSXTagEnd`?(A=`?JSX`,M=!0):N.push({tag:`JSXChildren`});break;case`{`:N.push({tag:`InterpolationInJSX`,nesting:x.length}),A=`?InterpolationInJSX`,M=!1;break;case`/`:T===`<`&&(N.pop(),N[N.length-1].tag===`JSXChildren`&&N.pop(),N.push({tag:`JSXTagEnd`}))}T=A,yield{type:`JSXPunctuator`,value:D[0]};continue}if(t.lastIndex=w,D=t.exec(y)){w=t.lastIndex,T=D[0],yield{type:`JSXIdentifier`,value:D[0]};continue}if(r.lastIndex=w,D=r.exec(y)){w=r.lastIndex,T=D[0],yield{type:`JSXString`,value:D[0],closed:D[2]!==void 0};continue}break;case`JSXChildren`:if(i.lastIndex=w,D=i.exec(y)){w=i.lastIndex,T=D[0],yield{type:`JSXText`,value:D[0]};continue}switch(y[w]){case`<`:N.push({tag:`JSXTag`}),w++,T=`<`,yield{type:`JSXPunctuator`,value:`<`};continue;case`{`:N.push({tag:`InterpolationInJSX`,nesting:x.length}),w++,T=`?InterpolationInJSX`,M=!1,yield{type:`JSXPunctuator`,value:`{`};continue}}if(v.lastIndex=w,D=v.exec(y)){w=v.lastIndex,yield{type:`WhiteSpace`,value:D[0]};continue}if(s.lastIndex=w,D=s.exec(y)){w=s.lastIndex,M=!1,o.test(T)&&(T=`?NoLineTerminatorHere`),yield{type:`LineTerminatorSequence`,value:D[0]};continue}if(c.lastIndex=w,D=c.exec(y)){w=c.lastIndex,l.test(D[0])&&(M=!1,o.test(T)&&(T=`?NoLineTerminatorHere`)),yield{type:`MultiLineComment`,value:D[0],closed:D[1]!==void 0};continue}if(p.lastIndex=w,D=p.exec(y)){w=p.lastIndex,M=!1,yield{type:`SingleLineComment`,value:D[0]};continue}S=String.fromCodePoint(y.codePointAt(w)),w+=S.length,T=S,M=!1,yield{type:O.tag.startsWith(`JSX`)?`JSXInvalid`:`Invalid`,value:S}}},hT}Pg(_T());var vT={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`.split(`.`),strict:[`implements`,`interface`,`let`,`package`,`private`,`protected`,`public`,`static`,`yield`]};new Set(vT.keyword),new Set(vT.strict);var yT=Object.entries({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]});function bT(e){return String(e)}bT.open=``,bT.close=``,yT.reduce((e,[t])=>(e[t]=bT,e),{isColorSupported:!1});function xT(e=!1){let t=typeof process<`u`?process:void 0,n=t?.env||{},r=t?.argv||[];return!(`NO_COLOR`in n||r.includes(`--no-color`))&&(`FORCE_COLOR`in n||r.includes(`--color`)||t?.platform===`win32`||e&&n.TERM!==`dumb`||`CI`in n)||typeof window<`u`&&!!window.chrome}function ST(e=!1){let t=xT(e),n=(e,t,n,r)=>{let i=``,a=0;do i+=e.substring(a,r)+n,a=r+t.length,r=e.indexOf(t,a);while(~r);return i+e.substring(a)},r=(e,t,r=e)=>{let i=i=>{let a=String(i),o=a.indexOf(t,e.length);return~o?e+n(a,t,r,o)+t:e+a+t};return i.open=e,i.close=t,i},i={isColorSupported:t},a=e=>`\x1B[${e}m`;for(let[e,n]of yT)i[e]=t?r(a(n[0]),a(n[1]),n[2]):bT;return i}var CT=ST();function wT(e,t){if(!e)throw Error(t)}function TT(e,t){return typeof t===e}function ET(e){return e instanceof Promise}function DT(e,t,n){Object.defineProperty(e,t,n)}function OT(e,t,n){DT(e,t,{value:n,configurable:!0,writable:!0})}var kT=Symbol.for(`tinyspy:spy`),AT=new Set,jT=e=>{e.called=!1,e.callCount=0,e.calls=[],e.results=[],e.resolves=[],e.next=[]},MT=e=>(DT(e,kT,{value:{reset:()=>jT(e[kT])}}),e[kT]),NT=e=>e[kT]||MT(e);function PT(e){wT(TT(`function`,e)||TT(`undefined`,e),`cannot spy on a non-function value`);let t=function(...e){let n=NT(t);n.called=!0,n.callCount++,n.calls.push(e);let r=n.next.shift();if(r){n.results.push(r);let[e,t]=r;if(e===`ok`)return t;throw t}let i,a=`ok`,o=n.results.length;if(n.impl)try{i=new.target?Reflect.construct(n.impl,e,new.target):n.impl.apply(this,e),a=`ok`}catch(e){throw i=e,a=`error`,n.results.push([a,e]),e}let s=[a,i];return ET(i)&&i.then(e=>n.resolves[o]=[`ok`,e],e=>n.resolves[o]=[`error`,e]),n.results.push(s),i};OT(t,`_isMockFunction`,!0),OT(t,`length`,e?e.length:0),OT(t,`name`,e&&e.name||`spy`);let n=NT(t);return n.reset(),n.impl=e,t}function FT(e){return!!e&&e._isMockFunction===!0}var IT=(e,t)=>{let n=Object.getOwnPropertyDescriptor(e,t);if(n)return[e,n];let r=Object.getPrototypeOf(e);for(;r!==null;){let e=Object.getOwnPropertyDescriptor(r,t);if(e)return[r,e];r=Object.getPrototypeOf(r)}},LT=(e,t)=>{t!=null&&typeof t==`function`&&t.prototype!=null&&Object.setPrototypeOf(e.prototype,t.prototype)};function RT(e,t,n){wT(!TT(`undefined`,e),`spyOn could not find an object to spy upon`),wT(TT(`object`,e)||TT(`function`,e),`cannot spyOn on a primitive value`);let[r,i]=(()=>{if(!TT(`object`,t))return[t,`value`];if(`getter`in t&&`setter`in t)throw 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 Error(`specify getter or setter to spy on`)})(),[a,o]=IT(e,r)||[];wT(o||r in e,`${String(r)} does not exist`);let s=!1;i===`value`&&o&&!o.value&&o.get&&(i=`get`,s=!0,n=o.get());let c;c=o?o[i]:i===`value`?e[r]:()=>e[r],c&&HT(c)&&(c=c[kT].getOriginal());let l=t=>{let{value:n,...a}=o||{configurable:!0,writable:!0};i!==`value`&&delete a.writable,a[i]=t,DT(e,r,a)},u=()=>{a===e?o&&!c?DT(e,r,o):l(c):Reflect.deleteProperty(e,r)};n||=c;let d=VT(PT(n),n);i===`value`&&LT(d,c);let f=d[kT];return OT(f,`restore`,u),OT(f,`getOriginal`,()=>s?c():c),OT(f,`willCall`,e=>(f.impl=e,d)),l(s?()=>(LT(d,n),d):d),AT.add(d),d}var zT=new Set([`length`,`name`,`prototype`]);function BT(e){let t=new Set,n={};for(;e&&e!==Object.prototype&&e!==Function.prototype;){let r=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(let i of r)n[i]||zT.has(i)||(t.add(i),n[i]=Object.getOwnPropertyDescriptor(e,i));e=Object.getPrototypeOf(e)}return{properties:t,descriptors:n}}function VT(e,t){if(!t||kT in t)return e;let{properties:n,descriptors:r}=BT(t);for(let t of n){let n=r[t];IT(e,t)||DT(e,t,n)}return e}function HT(e){return FT(e)&&`getOriginal`in e[kT]}var UT=new Set;function WT(e){return typeof e==`function`&&`_isMockFunction`in e&&e._isMockFunction}function GT(e,t,n){let r=n?{[{get:`getter`,set:`setter`}[n]]:t}:t,i,a=YT(e,t),o=a&&a[n||`value`];WT(o)&&(i=o.mock._state());try{let t=qT(RT(e,r));return i&&t.mock._state(i),t}catch(t){throw t instanceof TypeError&&Symbol.toStringTag&&e[Symbol.toStringTag]===`Module`&&(t.message.includes(`Cannot redefine property`)||t.message.includes(`Cannot replace module namespace`)||t.message.includes(`can't redefine non-configurable property`))?TypeError(`Cannot spy on export "${String(r)}". Module namespace is not configurable in ESM. See: https://vitest.dev/guide/browser/#limitations`,{cause:t}):t}}var KT=0;function qT(e){let t=e,n,r=[],i=!1,a=[],o=[],s=[],c=NT(e),l={get calls(){return c.calls},get contexts(){return o},get instances(){return a},get invocationCallOrder(){return s},get results(){return c.results.map(([e,t])=>({type:e===`error`?`throw`:`return`,value:t}))},get settledResults(){return c.resolves.map(([e,t])=>({type:e===`error`?`rejected`:`fulfilled`,value:t}))},get lastCall(){return c.calls[c.calls.length-1]},_state(e){return e&&(n=e.implementation,r=e.onceImplementations,i=e.implementationChangedTemporarily),{implementation:n,onceImplementations:r,implementationChangedTemporarily:i}}};function u(...e){return a.push(this),o.push(this),s.push(++KT),(i?n:r.shift()||n||c.getOriginal()||(()=>{})).apply(this,e)}let d=t.name;t.getMockName=()=>d||`vi.fn()`,t.mockName=e=>(d=e,t),t.mockClear=()=>(c.reset(),a=[],o=[],s=[],t),t.mockReset=()=>(t.mockClear(),n=void 0,r=[],t),t.mockRestore=()=>(t.mockReset(),c.restore(),t),Symbol.dispose&&(t[Symbol.dispose]=()=>t.mockRestore()),t.getMockImplementation=()=>i?n:r.at(0)||n,t.mockImplementation=e=>(n=e,c.willCall(u),t),t.mockImplementationOnce=e=>(r.push(e),t);function f(e,r){let a=n;n=e,c.willCall(u),i=!0;let o=()=>{n=a,i=!1},s=r();return typeof s==`object`&&s&&typeof s.then==`function`?s.then(()=>(o(),t)):(o(),t)}return t.withImplementation=f,t.mockReturnThis=()=>t.mockImplementation(function(){return this}),t.mockReturnValue=e=>t.mockImplementation(()=>e),t.mockReturnValueOnce=e=>t.mockImplementationOnce(()=>e),t.mockResolvedValue=e=>t.mockImplementation(()=>Promise.resolve(e)),t.mockResolvedValueOnce=e=>t.mockImplementationOnce(()=>Promise.resolve(e)),t.mockRejectedValue=e=>t.mockImplementation(()=>Promise.reject(e)),t.mockRejectedValueOnce=e=>t.mockImplementationOnce(()=>Promise.reject(e)),Object.defineProperty(t,`mock`,{get:()=>l}),c.willCall(u),UT.add(t),t}function JT(e){let t=qT(RT({spy:e||function(){}},`spy`));return e&&t.mockImplementation(e),t}function YT(e,t){let n=Object.getOwnPropertyDescriptor(e,t);if(n)return n;let r=Object.getPrototypeOf(e);for(;r!==null;){let e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=Object.getPrototypeOf(r)}}var XT=Symbol.for(`matchers-object`),ZT=Symbol.for(`$$jest-matchers-object-storybook`),QT=Symbol.for(`expect-global`),$T=Symbol.for(`asymmetric-matchers-object`),eE={toSatisfy(e,t,n){let{printReceived:r,printExpected:i,matcherHint:a}=this.utils,o=t(e);return{pass:o,message:()=>o?`${a(`.not.toSatisfy`,`received`,``)}
244
-
245
- Expected value to not satisfy:
246
- ${n||i(t)}
247
- Received:
248
- ${r(e)}`:`${a(`.toSatisfy`,`received`,``)}
249
-
250
- Expected value to satisfy:
251
- ${n||i(t)}
252
-
253
- Received:
254
- ${r(e)}`}},toBeOneOf(e,t){let{equals:n,customTesters:r}=this,{printReceived:i,printExpected:a,matcherHint:o}=this.utils;if(!Array.isArray(t))throw TypeError(`You must provide an array to ${o(`.toBeOneOf`)}, not '${typeof t}'.`);let s=t.length===0||t.some(t=>n(t,e,r));return{pass:s,message:()=>s?`${o(`.not.toBeOneOf`,`received`,``)}
255
-
256
- Expected value to not be one of:
257
- ${a(t)}
258
- Received:
259
- ${i(e)}`:`${o(`.toBeOneOf`,`received`,``)}
260
-
261
- Expected value to be one of:
262
- ${a(t)}
263
-
264
- Received:
265
- ${i(e)}`}}},tE=CT.green,nE=CT.red,rE=CT.inverse,iE=CT.bold,aE=CT.dim;function oE(e,t=`received`,n=`expected`,r={}){let{comment:i=``,isDirectExpectCall:a=!1,isNot:o=!1,promise:s=``,secondArgument:c=``,expectedColor:l=tE,receivedColor:u=nE,secondArgumentColor:d=tE}=r,f=``,p=`expect`;return!a&&t!==``&&(f+=aE(`${p}(`)+u(t),p=`)`),s!==``&&(f+=aE(`${p}.`)+s,p=``),o&&(f+=`${aE(`${p}.`)}not`,p=``),e.includes(`.`)?p+=e:(f+=aE(`${p}.`)+e,p=``),n===``?p+=`()`:(f+=aE(`${p}(`)+l(n),c&&(f+=aE(`, `)+d(c)),p=`)`),i!==``&&(p+=` // ${i}`),p!==``&&(f+=aE(p)),f}var sE=`·`;function cE(e){return e.replace(/\s+$/gm,e=>sE.repeat(e.length))}function lE(e){return nE(cE(Ag(e)))}function uE(e){return tE(cE(Ag(e)))}function dE(){return{EXPECTED_COLOR:tE,RECEIVED_COLOR:nE,INVERTED_COLOR:rE,BOLD_WEIGHT:iE,DIM_COLOR:aE,diff:tv,matcherHint:oE,printReceived:lE,printExpected:uE,printDiffOrStringify:dv,printWithType:fE}}function fE(e,t,n){let r=Rg(t);return(r!==`null`&&r!==`undefined`?`${e} has type: ${r}
266
- `:``)+`${e} has value: ${n(t)}`}function pE(){return globalThis[ZT].customEqualityTesters}function mE(e,t,n,r){return n||=[],_E(e,t,[],[],n,r?xE:bE)}Function.prototype.toString;function hE(e){return!!e&&typeof e==`object`&&`asymmetricMatch`in e&&SE(`Function`,e.asymmetricMatch)}function gE(e,t){let n=hE(e),r=hE(t);if(!(n&&r)){if(n)return e.asymmetricMatch(t);if(r)return t.asymmetricMatch(e)}}function _E(e,t,n,r,i,a){let o=!0,s=gE(e,t);if(s!==void 0)return s;let c={equals:mE};for(let n=0;n<i.length;n++){let r=i[n].call(c,e,t,i);if(r!==void 0)return r}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?typeof e!=`object`&&typeof t!=`object`?Object.is(e,t):Object.is(e.valueOf(),t.valueOf()):!1;case`[object Date]`:{let n=+e,r=+t;return n===r||Number.isNaN(n)&&Number.isNaN(r)}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(CE(e)&&CE(t))return e.isEqualNode(t);let u=n.length;for(;u--;){if(n[u]===e)return r[u]===t;if(r[u]===t)return!1}if(n.push(e),r.push(t),l===`[object Array]`&&e.length!==t.length)return!1;if(e instanceof Error&&t instanceof Error)try{return vE(e,t,n,r,i,a)}finally{n.pop(),r.pop()}let d=yE(e,a),f,p=d.length;if(yE(t,a).length!==p)return!1;for(;p--;)if(f=d[p],o=a(t,f)&&_E(e[f],t[f],n,r,i,a),!o)return!1;return n.pop(),r.pop(),o}function vE(e,t,n,r,i,a){let o=Object.getPrototypeOf(e)===Object.getPrototypeOf(t)&&e.name===t.name&&e.message===t.message;return typeof t.cause<`u`&&o&&(o=_E(e.cause,t.cause,n,r,i,a)),e instanceof AggregateError&&t instanceof AggregateError&&o&&(o=_E(e.errors,t.errors,n,r,i,a)),o&&=_E({...e},{...t},n,r,i,a),o}function yE(e,t){let n=[];for(let r in e)t(e,r)&&n.push(r);return n.concat(Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable))}function bE(e,t){return xE(e,t)&&e[t]!==void 0}function xE(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function SE(e,t){return Object.prototype.toString.apply(t)===`[object ${e}]`}function CE(e){return typeof e==`object`&&!!e&&`nodeType`in e&&typeof e.nodeType==`number`&&`nodeName`in e&&typeof e.nodeName==`string`&&`isEqualNode`in e&&typeof e.isEqualNode==`function`}var wE=`@@__IMMUTABLE_KEYED__@@`,TE=`@@__IMMUTABLE_SET__@@`,EE=`@@__IMMUTABLE_LIST__@@`,DE=`@@__IMMUTABLE_ORDERED__@@`,OE=`@@__IMMUTABLE_RECORD__@@`;function kE(e){return!!(e&&e[wE]&&!e[DE])}function AE(e){return!!(e&&e[TE]&&!e[DE])}function jE(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function ME(e){return!!(e&&jE(e)&&e[EE])}function NE(e){return!!(e&&jE(e)&&e[wE]&&e[DE])}function PE(e){return!!(e&&jE(e)&&e[TE]&&e[DE])}function FE(e){return!!(e&&jE(e)&&e[OE])}var IE=Symbol.iterator;function LE(e){return!!(e!=null&&e[IE])}function RE(e,t,n=[],r=[],i=[]){if(typeof e!=`object`||typeof t!=`object`||Array.isArray(e)||Array.isArray(t)||!LE(e)||!LE(t))return;if(e.constructor!==t.constructor)return!1;let a=r.length;for(;a--;)if(r[a]===e)return i[a]===t;r.push(e),i.push(t);let o=[...n.filter(e=>e!==RE),s];function s(e,t){return RE(e,t,[...n],[...r],[...i])}if(e.size!==void 0){if(e.size!==t.size)return!1;if(SE(`Set`,e)||AE(e)){let n=!0;for(let r of e)if(!t.has(r)){let e=!1;for(let n of t)mE(r,n,o)===!0&&(e=!0);if(e===!1){n=!1;break}}return r.pop(),i.pop(),n}else if(SE(`Map`,e)||kE(e)){let n=!0;for(let r of e)if(!t.has(r[0])||!mE(r[1],t.get(r[0]),o)){let e=!1;for(let n of t){let t=mE(r[0],n[0],o),i=!1;t===!0&&(i=mE(r[1],n[1],o)),i===!0&&(e=!0)}if(e===!1){n=!1;break}}return r.pop(),i.pop(),n}}let c=t[IE]();for(let t of e){let e=c.next();if(e.done||!mE(t,e.value,o))return!1}return!c.next().done||!ME(e)&&!NE(e)&&!PE(e)&&!FE(e)&&!mE(Object.entries(e),Object.entries(t),o)?!1:(r.pop(),i.pop(),!0)}function zE(e,t){return!e||typeof e!=`object`||e===Object.prototype?!1:Object.prototype.hasOwnProperty.call(e,t)||zE(Object.getPrototypeOf(e),t)}function BE(e){return Ig(e)&&!(e instanceof Error)&&!Array.isArray(e)&&!(e instanceof Date)}function VE(e,t,n=[]){let r=n.filter(e=>e!==VE),i=(e=new WeakMap)=>(t,n)=>{if(BE(n))return Object.keys(n).every(a=>{if(n[a]!=null&&typeof n[a]==`object`){if(e.has(n[a]))return mE(t[a],n[a],r);e.set(n[a],!0)}let o=t!=null&&zE(t,a)&&mE(t[a],n[a],[...r,i(e)]);return e.delete(n[a]),o})};return i()(e,t)}function HE(e,t){if(!(e==null||t==null||e.constructor===t.constructor))return!1}function UE(e,t){let n=e,r=t;if(!(e instanceof DataView&&t instanceof DataView)){if(!(e instanceof ArrayBuffer)||!(t instanceof ArrayBuffer))return;try{n=new DataView(e),r=new DataView(t)}catch{return}}if(n.byteLength!==r.byteLength)return!1;for(let e=0;e<n.byteLength;e++)if(n.getUint8(e)!==r.getUint8(e))return!1;return!0}function WE(e,t,n=[]){if(!Array.isArray(e)||!Array.isArray(t))return;let r=Object.keys(e),i=Object.keys(t);return mE(e,t,n.filter(e=>e!==WE),!0)&&mE(r,i)}function GE(e,t=`#{this}`,n=`#{exp}`){let r=`expected ${t} to be ${n} // Object.is equality`;return[`toStrictEqual`,`toEqual`].includes(e)?`${r}
267
-
268
- If it should pass with deep equality, replace "toBe" with "${e}"
269
-
270
- Expected: ${t}
271
- Received: serializes to the same string
272
- `:r}function KE(e,t){return`${t} ${e}${t===1?``:`s`}`}function qE(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t)?.enumerable)]}function JE(e,t,n){let r=0,i=(e=new WeakMap)=>(t,a)=>{if(Array.isArray(t)){if(Array.isArray(a)&&a.length===t.length)return a.map((n,r)=>i(e)(t[r],n))}else{if(t instanceof Date)return t;if(Ig(t)&&Ig(a)){if(mE(t,a,[...n,RE,VE]))return a;let o={};e.set(t,o),typeof t.constructor==`function`&&typeof t.constructor.name==`string`&&Object.defineProperty(o,`constructor`,{enumerable:!1,value:t.constructor});for(let n of qE(t))zE(a,n)?o[n]=e.has(t[n])?e.get(t[n]):i(e)(t[n],a[n]):e.has(t[n])||(r+=1,Ig(t[n])&&(r+=qE(t[n]).length),i(e)(t[n],a[n]));if(qE(o).length>0)return o}}return t};return{subset:i()(e,t),stripped:r}}if(!Object.prototype.hasOwnProperty.call(globalThis,XT)){let e=new WeakMap;Object.defineProperty(globalThis,XT,{get:()=>e})}if(!Object.prototype.hasOwnProperty.call(globalThis,ZT)){let e=Object.create(null),t=[];Object.defineProperty(globalThis,ZT,{configurable:!0,get:()=>({state:globalThis[XT].get(globalThis[QT]),matchers:e,customEqualityTesters:t})})}if(!Object.prototype.hasOwnProperty.call(globalThis,$T)){let e=Object.create(null);Object.defineProperty(globalThis,$T,{get:()=>e})}function YE(e){return globalThis[XT].get(e)}function XE(e,t){let n=globalThis[XT],r=n.get(t)||{},i=Object.defineProperties(r,{...Object.getOwnPropertyDescriptors(r),...Object.getOwnPropertyDescriptors(e)});n.set(t,i)}var ZE=class{$$typeof=Symbol.for(`jest.asymmetricMatcher`);constructor(e,t=!1){this.sample=e,this.inverse=t}getMatcherContext(e){return{...YE(e||globalThis[QT]),equals:mE,isNot:this.inverse,customTesters:pE(),utils:{...dE(),diff:tv,stringify:Ag,iterableEquality:RE,subsetEquality:VE}}}};ZE.prototype[Symbol.for(`chai/inspect`)]=function(e){let t=Ag(this,e.depth,{min:!0});return t.length<=e.truncate?t:`${this.toString()}{\u2026}`};var QE=class extends ZE{constructor(e,t=!1){if(!SE(`String`,e))throw Error(`Expected is not a string`);super(e,t)}asymmetricMatch(e){let t=SE(`String`,e)&&e.includes(this.sample);return this.inverse?!t:t}toString(){return`String${this.inverse?`Not`:``}Containing`}getExpectedType(){return`string`}},$E=class extends ZE{asymmetricMatch(e){return e!=null}toString(){return`Anything`}toAsymmetricMatcher(){return`Anything`}},eD=class extends ZE{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 TypeError(`You must provide an object to ${this.toString()}, not '${typeof this.sample}'.`);let t=!0,n=this.getMatcherContext();for(let r in this.sample)if(!this.hasProperty(e,r)||!mE(this.sample[r],e[r],n.customTesters)){t=!1;break}return this.inverse?!t:t}toString(){return`Object${this.inverse?`Not`:``}Containing`}getExpectedType(){return`object`}},tD=class extends ZE{constructor(e,t=!1){super(e,t)}asymmetricMatch(e){if(!Array.isArray(this.sample))throw TypeError(`You must provide an array to ${this.toString()}, not '${typeof this.sample}'.`);let t=this.getMatcherContext(),n=this.sample.length===0||Array.isArray(e)&&this.sample.every(n=>e.some(e=>mE(n,e,t.customTesters)));return this.inverse?!n:n}toString(){return`Array${this.inverse?`Not`:``}Containing`}getExpectedType(){return`array`}},nD=class extends ZE{constructor(e){if(typeof e>`u`)throw 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)}>`}},rD=class extends ZE{constructor(e,t=!1){if(!SE(`String`,e)&&!SE(`RegExp`,e))throw Error(`Expected is not a String or a RegExp`);super(new RegExp(e),t)}asymmetricMatch(e){let t=SE(`String`,e)&&this.sample.test(e);return this.inverse?!t:t}toString(){return`String${this.inverse?`Not`:``}Matching`}getExpectedType(){return`string`}},iD=class extends ZE{precision;constructor(e,t=2,n=!1){if(!SE(`Number`,e))throw Error(`Expected is not a Number`);if(!SE(`Number`,t))throw Error(`Precision is not a Number`);super(e),this.inverse=n,this.precision=t}asymmetricMatch(e){if(!SE(`Number`,e))return!1;let t=!1;return t=e===1/0&&this.sample===1/0||e===-1/0&&this.sample===-1/0?!0: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,`(${KE(`digit`,this.precision)})`].join(` `)}},aD=(e,t)=>{t.addMethod(e.expect,`anything`,()=>new $E),t.addMethod(e.expect,`any`,e=>new nD(e)),t.addMethod(e.expect,`stringContaining`,e=>new QE(e)),t.addMethod(e.expect,`objectContaining`,e=>new eD(e)),t.addMethod(e.expect,`arrayContaining`,e=>new tD(e)),t.addMethod(e.expect,`stringMatching`,e=>new rD(e)),t.addMethod(e.expect,`closeTo`,(e,t)=>new iD(e,t)),e.expect.not={stringContaining:e=>new QE(e,!0),objectContaining:e=>new eD(e,!0),arrayContaining:e=>new tD(e,!0),stringMatching:e=>new rD(e,!0),closeTo:(e,t)=>new iD(e,t,!0)}};function oD(e,t,n){let r=e.flag(t,`negate`)?`not.`:``,i=`${e.flag(t,`_name`)}(${n?`expected`:``})`,a=e.flag(t,`promise`);return`expect(actual)${a?`.${a}`:``}.${r}${i}`}function sD(e,t,n,r){let i=e;if(i&&t instanceof Promise){t=t.finally(()=>{if(!i.promises)return;let e=i.promises.indexOf(t);e!==-1&&i.promises.splice(e,1)}),i.promises||=[],i.promises.push(t);let e=!1;return i.onFinished??=[],i.onFinished.push(()=>{if(!e){let e=(globalThis.__vitest_worker__?.onFilterStackTrace||(e=>e||``))(r.stack);console.warn([`Promise returned by \`${n}\` 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.
273
- `,e].join(``))}}),{then(n,r){return e=!0,t.then(n,r)},catch(e){return t.catch(e)},finally(e){return t.finally(e)},[Symbol.toStringTag]:`Promise`}}return t}function cD(e,t){var n;e.result||={state:`fail`},e.result.state=`fail`,(n=e.result).errors||(n.errors=[]),e.result.errors.push(Dv(t))}function lD(e,t,n){return function(...r){if(t!==`withTest`&&e.flag(this,`_name`,t),!e.flag(this,`soft`))return n.apply(this,r);let i=e.flag(this,`vitest-test`);if(!i)throw Error(`expect.soft() can only be used inside a test`);try{let e=n.apply(this,r);return e&&typeof e==`object`&&typeof e.then==`function`?e.then(Wg,e=>{cD(i,e)}):e}catch(e){cD(i,e)}}}var uD=(e,t)=>{let{AssertionError:n}=e,r=pE();function i(n,r){let i=n=>{let i=lD(t,n,r);t.addMethod(e.Assertion.prototype,n,i),t.addMethod(globalThis[ZT].matchers,n,i)};Array.isArray(n)?n.forEach(e=>i(e)):i(n)}[`throw`,`throws`,`Throw`].forEach(r=>{t.overwriteMethod(e.Assertion.prototype,r,e=>function(...r){let i=t.flag(this,`promise`),a=t.flag(this,`object`),o=t.flag(this,`negate`);if(i===`rejects`)t.flag(this,`object`,()=>{throw a});else if(i===`resolves`&&typeof a!=`function`){if(o)return;throw new n(t.flag(this,`message`)||`expected promise to throw an error, but it didn't`,{showDiff:!1},t.flag(this,`ssfi`))}e.apply(this,r)})}),i(`withTest`,function(e){return t.flag(this,`vitest-test`,e),this}),i(`toEqual`,function(e){let n=t.flag(this,`object`),i=mE(n,e,[...r,RE]);return this.assert(i,`expected #{this} to deeply equal #{exp}`,`expected #{this} to not deeply equal #{exp}`,e,n)}),i(`toStrictEqual`,function(e){let n=t.flag(this,`object`),i=mE(n,e,[...r,RE,HE,WE,UE],!0);return this.assert(i,`expected #{this} to strictly equal #{exp}`,`expected #{this} to not strictly equal #{exp}`,e,n)}),i(`toBe`,function(e){let t=this._obj,n=Object.is(t,e),i=``;return n||(mE(t,e,[...r,RE,HE,WE,UE],!0)?i=`toStrictEqual`:mE(t,e,[...r,RE])&&(i=`toEqual`)),this.assert(n,GE(i),`expected #{this} not to be #{exp} // Object.is equality`,e,t)}),i(`toMatchObject`,function(e){let i=this._obj,a=mE(i,e,[...r,RE,VE]),o=t.flag(this,`negate`),{subset:s,stripped:c}=JE(i,e,r);if(a&&o||!a&&!o){let r=t.getMessage(this,[a,`expected #{this} to match object #{exp}`,`expected #{this} to not match object #{exp}`,e,s,!1]);throw new n(c===0?r:`${r}
274
- (${c} matching ${c===1?`property`:`properties`} omitted from actual)`,{showDiff:!0,expected:e,actual:s})}}),i(`toMatch`,function(e){let t=this._obj;if(typeof t!=`string`)throw TypeError(`.toMatch() expects to receive a string, but got ${typeof t}`);return this.assert(typeof e==`string`?t.includes(e):t.match(e),`expected #{this} to match #{exp}`,`expected #{this} not to match #{exp}`,e,t)}),i(`toContain`,function(e){let n=this._obj;if(typeof Node<`u`&&n instanceof Node){if(!(e instanceof Node))throw TypeError(`toContain() expected a DOM node as the argument, but got ${typeof e}`);return this.assert(n.contains(e),`expected #{this} to contain element #{exp}`,`expected #{this} not to contain element #{exp}`,e,n)}if(typeof DOMTokenList<`u`&&n instanceof DOMTokenList){Fg(e,`class name`,[`string`]);let r=t.flag(this,`negate`)?n.value.replace(e,``).trim():`${n.value} ${e}`;return this.assert(n.contains(e),`expected "${n.value}" to contain "${e}"`,`expected "${n.value}" not to contain "${e}"`,r,n.value)}return typeof n==`string`&&typeof e==`string`?this.assert(n.includes(e),`expected #{this} to contain #{exp}`,`expected #{this} not to contain #{exp}`,e,n):(n!=null&&typeof n!=`string`&&t.flag(this,`object`,Array.from(n)),this.contain(e))}),i(`toContainEqual`,function(e){let n=t.flag(this,`object`),i=Array.from(n).findIndex(t=>mE(t,e,r));this.assert(i!==-1,`expected #{this} to deep equally contain #{exp}`,`expected #{this} to not deep equally contain #{exp}`,e)}),i(`toBeTruthy`,function(){let e=t.flag(this,`object`);this.assert(!!e,`expected #{this} to be truthy`,`expected #{this} to not be truthy`,!0,e)}),i(`toBeFalsy`,function(){let e=t.flag(this,`object`);this.assert(!e,`expected #{this} to be falsy`,`expected #{this} to not be falsy`,!1,e)}),i(`toBeGreaterThan`,function(e){let t=this._obj;return Fg(t,`actual`,[`number`,`bigint`]),Fg(e,`expected`,[`number`,`bigint`]),this.assert(t>e,`expected ${t} to be greater than ${e}`,`expected ${t} to be not greater than ${e}`,e,t,!1)}),i(`toBeGreaterThanOrEqual`,function(e){let t=this._obj;return Fg(t,`actual`,[`number`,`bigint`]),Fg(e,`expected`,[`number`,`bigint`]),this.assert(t>=e,`expected ${t} to be greater than or equal to ${e}`,`expected ${t} to be not greater than or equal to ${e}`,e,t,!1)}),i(`toBeLessThan`,function(e){let t=this._obj;return Fg(t,`actual`,[`number`,`bigint`]),Fg(e,`expected`,[`number`,`bigint`]),this.assert(t<e,`expected ${t} to be less than ${e}`,`expected ${t} to be not less than ${e}`,e,t,!1)}),i(`toBeLessThanOrEqual`,function(e){let t=this._obj;return Fg(t,`actual`,[`number`,`bigint`]),Fg(e,`expected`,[`number`,`bigint`]),this.assert(t<=e,`expected ${t} to be less than or equal to ${e}`,`expected ${t} to be not less than or equal to ${e}`,e,t,!1)}),i(`toBeNaN`,function(){let e=t.flag(this,`object`);this.assert(Number.isNaN(e),`expected #{this} to be NaN`,`expected #{this} not to be NaN`,NaN,e)}),i(`toBeUndefined`,function(){let e=t.flag(this,`object`);this.assert(e===void 0,`expected #{this} to be undefined`,`expected #{this} not to be undefined`,void 0,e)}),i(`toBeNull`,function(){let e=t.flag(this,`object`);this.assert(e===null,`expected #{this} to be null`,`expected #{this} not to be null`,null,e)}),i(`toBeDefined`,function(){let e=t.flag(this,`object`);this.assert(typeof e<`u`,`expected #{this} to be defined`,`expected #{this} to be undefined`,e)}),i(`toBeTypeOf`,function(e){let t=typeof this._obj,n=e===t;return this.assert(n,`expected #{this} to be type of #{exp}`,`expected #{this} not to be type of #{exp}`,e,t)}),i(`toBeInstanceOf`,function(e){return this.instanceOf(e)}),i(`toHaveLength`,function(e){return this.have.length(e)}),i(`toHaveProperty`,function(...e){Array.isArray(e[0])&&(e[0]=e[0].map(e=>String(e).replace(/([.[\]])/g,`\\$1`)).join(`.`));let n=this._obj,[i,a]=e,{value:o,exists:s}=Object.prototype.hasOwnProperty.call(n,i)?{value:n[i],exists:!0}:t.getPathInfo(n,i),c=s&&(e.length===1||mE(a,o,r)),l=e.length===1?``:` with value ${t.objDisplay(a)}`;return this.assert(c,`expected #{this} to have property "${i}"${l}`,`expected #{this} to not have property "${i}"${l}`,a,s?o:void 0)}),i(`toBeCloseTo`,function(e,t=2){let n=this._obj,r=!1,i=0,a=0;return e===1/0&&n===1/0||e===-1/0&&n===-1/0?r=!0:(i=10**-t/2,a=Math.abs(n-e),r=a<i),this.assert(r,`expected #{this} to be close to #{exp}, received difference is ${a}, but expected ${i}`,`expected #{this} to not be close to #{exp}, received difference is ${a}, but expected ${i}`,e,n,!1)});function a(e){if(!WT(e._obj))throw TypeError(`${t.inspect(e._obj)} is not a spy or a call to a spy!`)}function o(e){return a(e),e._obj}i([`toHaveBeenCalledTimes`,`toBeCalledTimes`],function(e){let t=o(this),n=t.getMockName(),r=t.mock.calls.length;return this.assert(r===e,`expected "${n}" to be called #{exp} times, but got ${r} times`,`expected "${n}" to not be called #{exp} times`,e,r,!1)}),i(`toHaveBeenCalledOnce`,function(){let e=o(this),t=e.getMockName(),n=e.mock.calls.length;return this.assert(n===1,`expected "${t}" to be called once, but got ${n} times`,`expected "${t}" to not be called once`,1,n,!1)}),i([`toHaveBeenCalled`,`toBeCalled`],function(){let e=o(this),r=e.getMockName(),i=e.mock.calls.length,a=i>0,s=t.flag(this,`negate`),c=t.getMessage(this,[a,`expected "${r}" to be called at least once`,`expected "${r}" to not be called at all, but actually been called ${i} times`,!0,a]);if(a&&s&&(c=fD(e,c)),a&&s||!a&&!s)throw new n(c)});function s(e,t){return e.length===t.length&&e.every((e,n)=>mE(e,t[n],[...r,RE]))}i([`toHaveBeenCalledWith`,`toBeCalledWith`],function(...e){let r=o(this),i=r.getMockName(),a=r.mock.calls.some(t=>s(t,e)),c=t.flag(this,`negate`),l=t.getMessage(this,[a,`expected "${i}" to be called with arguments: #{exp}`,`expected "${i}" to not be called with arguments: #{exp}`,e]);if(a&&c||!a&&!c)throw new n(fD(r,l,e))}),i(`toHaveBeenCalledExactlyOnceWith`,function(...e){let r=o(this),i=r.getMockName(),a=r.mock.calls.length,c=r.mock.calls.some(t=>s(t,e))&&a===1,l=t.flag(this,`negate`),u=t.getMessage(this,[c,`expected "${i}" to be called once with arguments: #{exp}`,`expected "${i}" to not be called once with arguments: #{exp}`,e]);if(c&&l||!c&&!l)throw new n(fD(r,u,e))}),i([`toHaveBeenNthCalledWith`,`nthCalledWith`],function(e,...t){let n=o(this),r=n.getMockName(),i=n.mock.calls[e-1],a=n.mock.calls.length,c=e<=a;this.assert(i&&s(i,t),`expected ${dD(e)} "${r}" call to have been called with #{exp}${c?``:`, but called only ${a} times`}`,`expected ${dD(e)} "${r}" call to not have been called with #{exp}`,t,i,c)}),i([`toHaveBeenLastCalledWith`,`lastCalledWith`],function(...e){let t=o(this),n=t.getMockName(),r=t.mock.calls[t.mock.calls.length-1];this.assert(r&&s(r,e),`expected last "${n}" call to have been called with #{exp}`,`expected last "${n}" call to not have been called with #{exp}`,e,r)});function c(e,t,n){let r=e.mock.invocationCallOrder,i=t.mock.invocationCallOrder;return r.length===0?!n:i.length===0?!1:r[0]<i[0]}i([`toHaveBeenCalledBefore`],function(e,n=!0){let r=o(this);if(!WT(e))throw TypeError(`${t.inspect(e)} is not a spy or a call to a spy`);this.assert(c(r,e,n),`expected "${r.getMockName()}" to have been called before "${e.getMockName()}"`,`expected "${r.getMockName()}" to not have been called before "${e.getMockName()}"`,e,r)}),i([`toHaveBeenCalledAfter`],function(e,n=!0){let r=o(this);if(!WT(e))throw TypeError(`${t.inspect(e)} is not a spy or a call to a spy`);this.assert(c(e,r,n),`expected "${r.getMockName()}" to have been called after "${e.getMockName()}"`,`expected "${r.getMockName()}" to not have been called after "${e.getMockName()}"`,e,r)}),i([`toThrow`,`toThrowError`],function(e){if(typeof e==`string`||typeof e>`u`||e instanceof RegExp)return this.throws(e===``?/^$/:e);let i=this._obj,a=t.flag(this,`promise`),o=t.flag(this,`negate`),s=null;if(a===`rejects`)s=i;else if(a===`resolves`&&typeof i!=`function`){if(o)return;throw new n(t.flag(this,`message`)||`expected promise to throw an error, but it didn't`,{showDiff:!1},t.flag(this,`ssfi`))}else{let e=!1;try{i()}catch(t){e=!0,s=t}if(!e&&!o)throw new n(t.flag(this,`message`)||`expected function to throw an error, but it didn't`,{showDiff:!1},t.flag(this,`ssfi`))}if(typeof e==`function`){let t=e.name||e.prototype.constructor.name;return this.assert(s&&s instanceof e,`expected error to be instance of ${t}`,`expected error not to be instance of ${t}`,e,s)}if(e instanceof Error){let t=mE(s,e,[...r,RE]);return this.assert(t,`expected a thrown error to be #{exp}`,`expected a thrown error not to be #{exp}`,e,s)}if(typeof e==`object`&&`asymmetricMatch`in e&&typeof e.asymmetricMatch==`function`){let t=e;return this.assert(s&&t.asymmetricMatch(s),`expected error to match asymmetric matcher`,`expected error not to match asymmetric matcher`,t,s)}throw Error(`"toThrow" expects string, RegExp, function, Error instance or asymmetric matcher, got "${typeof e}"`)}),[{name:`toHaveResolved`,condition:e=>e.mock.settledResults.length>0&&e.mock.settledResults.some(({type:e})=>e===`fulfilled`),action:`resolved`},{name:[`toHaveReturned`,`toReturn`],condition:e=>e.mock.calls.length>0&&e.mock.results.some(({type:e})=>e!==`throw`),action:`called`}].forEach(({name:e,condition:t,action:n})=>{i(e,function(){let e=o(this),r=e.getMockName(),i=t(e);this.assert(i,`expected "${r}" to be successfully ${n} at least once`,`expected "${r}" to not be successfully ${n}`,i,!i,!1)})}),[{name:`toHaveResolvedTimes`,condition:(e,t)=>e.mock.settledResults.reduce((e,{type:t})=>t===`fulfilled`?++e:e,0)===t,action:`resolved`},{name:[`toHaveReturnedTimes`,`toReturnTimes`],condition:(e,t)=>e.mock.results.reduce((e,{type:t})=>t===`throw`?e:++e,0)===t,action:`called`}].forEach(({name:e,condition:t,action:n})=>{i(e,function(e){let r=o(this),i=r.getMockName(),a=t(r,e);this.assert(a,`expected "${i}" to be successfully ${n} ${e} times`,`expected "${i}" to not be successfully ${n} ${e} times`,`expected resolved times: ${e}`,`received resolved times: ${a}`,!1)})}),[{name:`toHaveResolvedWith`,condition:(e,t)=>e.mock.settledResults.some(({type:e,value:n})=>e===`fulfilled`&&mE(t,n)),action:`resolve`},{name:[`toHaveReturnedWith`,`toReturnWith`],condition:(e,t)=>e.mock.results.some(({type:e,value:n})=>e===`return`&&mE(t,n)),action:`return`}].forEach(({name:e,condition:r,action:a})=>{i(e,function(e){let i=o(this),s=r(i,e),c=t.flag(this,`negate`);if(s&&c||!s&&!c){let r=i.getMockName(),o=t.getMessage(this,[s,`expected "${r}" to ${a} with: #{exp} at least once`,`expected "${r}" to not ${a} with: #{exp}`,e]);throw new n(pD(i,a===`return`?i.mock.results:i.mock.settledResults,o,e))}})}),[{name:`toHaveLastResolvedWith`,condition:(e,t)=>{let n=e.mock.settledResults[e.mock.settledResults.length-1];return n&&n.type===`fulfilled`&&mE(n.value,t)},action:`resolve`},{name:[`toHaveLastReturnedWith`,`lastReturnedWith`],condition:(e,t)=>{let n=e.mock.results[e.mock.results.length-1];return n&&n.type===`return`&&mE(n.value,t)},action:`return`}].forEach(({name:e,condition:t,action:n})=>{i(e,function(e){let r=o(this),i=n===`return`?r.mock.results:r.mock.settledResults,a=i[i.length-1],s=r.getMockName();this.assert(t(r,e),`expected last "${s}" call to ${n} #{exp}`,`expected last "${s}" call to not ${n} #{exp}`,e,a?.value)})}),[{name:`toHaveNthResolvedWith`,condition:(e,t,n)=>{let r=e.mock.settledResults[t-1];return r&&r.type===`fulfilled`&&mE(r.value,n)},action:`resolve`},{name:[`toHaveNthReturnedWith`,`nthReturnedWith`],condition:(e,t,n)=>{let r=e.mock.results[t-1];return r&&r.type===`return`&&mE(r.value,n)},action:`return`}].forEach(({name:e,condition:t,action:n})=>{i(e,function(e,r){let i=o(this),a=i.getMockName(),s=(n===`return`?i.mock.results:i.mock.settledResults)[e-1],c=`${dD(e)} call`;this.assert(t(i,e,r),`expected ${c} "${a}" call to ${n} #{exp}`,`expected ${c} "${a}" call to not ${n} #{exp}`,r,s?.value)})}),i(`withContext`,function(e){for(let n in e)t.flag(this,n,e[n]);return this}),t.addProperty(e.Assertion.prototype,`resolves`,function(){let r=Error(`resolves`);t.flag(this,`promise`,`resolves`),t.flag(this,`error`,r);let i=t.flag(this,`vitest-test`),a=t.flag(this,`object`);if(t.flag(this,`poll`))throw SyntaxError(`expect.poll() is not supported in combination with .resolves`);if(typeof a?.then!=`function`)throw TypeError(`You must provide a Promise to expect() when using .resolves, not '${typeof a}'.`);let o=new Proxy(this,{get:(s,c,l)=>{let u=Reflect.get(s,c,l);return typeof u==`function`?(...e)=>(t.flag(this,`_name`,c),sD(i,a.then(n=>(t.flag(this,`object`,n),u.call(this,...e)),e=>{let i=new n(`promise rejected "${t.inspect(e)}" instead of resolving`,{showDiff:!1});throw i.cause=e,i.stack=r.stack.replace(r.message,i.message),i}),oD(t,this,!!e.length),r)):u instanceof e.Assertion?o:u}});return o}),t.addProperty(e.Assertion.prototype,`rejects`,function(){let r=Error(`rejects`);t.flag(this,`promise`,`rejects`),t.flag(this,`error`,r);let i=t.flag(this,`vitest-test`),a=t.flag(this,`object`),o=typeof a==`function`?a():a;if(t.flag(this,`poll`))throw SyntaxError(`expect.poll() is not supported in combination with .rejects`);if(typeof o?.then!=`function`)throw TypeError(`You must provide a Promise to expect() when using .rejects, not '${typeof o}'.`);let s=new Proxy(this,{get:(a,c,l)=>{let u=Reflect.get(a,c,l);return typeof u==`function`?(...e)=>(t.flag(this,`_name`,c),sD(i,o.then(e=>{let i=new n(`promise resolved "${t.inspect(e)}" instead of rejecting`,{showDiff:!0,expected:Error(`rejected promise`),actual:e});throw i.stack=r.stack.replace(r.message,i.message),i},n=>(t.flag(this,`object`,n),u.call(this,...e))),oD(t,this,!!e.length),r)):u instanceof e.Assertion?s:u}});return s})};function dD(e){let t=e%10,n=e%100;return t===1&&n!==11?`${e}st`:t===2&&n!==12?`${e}nd`:t===3&&n!==13?`${e}rd`:`${e}th`}function fD(e,t,n){return e.mock.calls.length&&(t+=CT.gray(`
275
-
276
- Received:
277
-
278
- ${e.mock.calls.map((t,r)=>{let i=CT.bold(` ${dD(r+1)} ${e.getMockName()} call:
279
-
280
- `);return n?i+=tv(n,t,{omitAnnotationLines:!0}):i+=Ag(t).split(`
281
- `).map(e=>` ${e}`).join(`
282
- `),i+=`
283
- `,i}).join(`
284
- `)}`)),t+=CT.gray(`
285
-
286
- Number of calls: ${CT.bold(e.mock.calls.length)}
287
- `),t}function pD(e,t,n,r){return t.length&&(n+=CT.gray(`
288
-
289
- Received:
290
-
291
- ${t.map((t,n)=>{let i=CT.bold(` ${dD(n+1)} ${e.getMockName()} call return:
292
-
293
- `);return r?i+=tv(r,t.value,{omitAnnotationLines:!0}):i+=Ag(t).split(`
294
- `).map(e=>` ${e}`).join(`
295
- `),i+=`
296
- `,i}).join(`
297
- `)}`)),n+=CT.gray(`
298
-
299
- Number of calls: ${CT.bold(e.mock.calls.length)}
300
- `),n}function mD(e,t){let n=e._obj,r=Uv.flag(e,`negate`),i=Uv.flag(e,`promise`)||``,a={...dE(),diff:tv,stringify:Ag,iterableEquality:RE,subsetEquality:VE};return{state:{...YE(t),customTesters:pE(),isNot:r,utils:a,promise:i,equals:mE,suppressedErrors:[],soft:Uv.flag(e,`soft`),poll:Uv.flag(e,`poll`)},isNot:r,obj:n}}var hD=class extends Error{constructor(e,t,n){super(e),this.actual=t,this.expected=n}};function gD(e,t,n){return(r,i)=>{Object.entries(n).forEach(([n,r])=>{function a(...e){let{state:n,isNot:i,obj:a}=mD(this,t),o=r.call(n,a,...e);if(o&&typeof o==`object`&&typeof o.then==`function`)return o.then(({pass:e,message:t,actual:n,expected:r})=>{if(e&&i||!e&&!i)throw new hD(t(),n,r)});let{pass:s,message:c,actual:l,expected:u}=o;if(s&&i||!s&&!i)throw new hD(c(),l,u)}let o=lD(i,n,a);i.addMethod(globalThis[ZT].matchers,n,o),i.addMethod(e.Assertion.prototype,n,o);class s extends ZE{constructor(e=!1,...t){super(t,e)}asymmetricMatch(e){let{pass:n}=r.call(this.getMatcherContext(t),e,...this.sample);return this.inverse?!n:n}toString(){return`${this.inverse?`not.`:``}${n}`}getExpectedType(){return`any`}toAsymmetricMatcher(){return`${this.toString()}<${this.sample.map(e=>Ag(e)).join(`, `)}>`}}let c=(...e)=>new s(!1,...e);Object.defineProperty(t,n,{configurable:!0,enumerable:!0,value:c,writable:!0}),Object.defineProperty(t.not,n,{configurable:!0,enumerable:!0,value:(...e)=>new s(!0,...e),writable:!0}),Object.defineProperty(globalThis[$T],n,{configurable:!0,enumerable:!0,value:c,writable:!0})})}}var _D=(e,t)=>{t.addMethod(e.expect,`extend`,(t,n)=>{Kx(gD(e,t,n))})};function vD(){Kx(_D),Kx(uD),Kx(aD);let e=((t,n)=>{let{assertionCalls:r}=YE(e);return XE({assertionCalls:r+1,soft:!1},e),Bx(t,n)});Object.assign(e,Bx),e.getState=()=>YE(e),e.setState=t=>XE(t,e),e.extend=t=>Bx.extend(e,t),e.soft=(...t)=>{let n=e(...t);return e.setState({soft:!0}),n},e.extend(eE),e.unreachable=e=>{Z.fail(`expected${e?` "${e}" `:` `}not to be reached`)};function t(n){let r=()=>Error(`expected number of assertions to be ${n}, but got ${e.getState().assertionCalls}`);`captureStackTrace`in Error&&typeof Error.captureStackTrace==`function`&&Error.captureStackTrace(r(),t),e.setState({expectedAssertionsNumber:n,expectedAssertionsNumberErrorGen:r})}function n(){let t=Error(`expected any number of assertion, but got none`);`captureStackTrace`in Error&&typeof Error.captureStackTrace==`function`&&Error.captureStackTrace(t,n),e.setState({isExpectingAssertions:!0,isExpectingAssertionsError:t})}return XE({assertionCalls:0,isExpectingAssertions:!1,isExpectingAssertionsError:null,expectedAssertionsNumber:null,expectedAssertionsNumberErrorGen:null},e),Uv.addMethod(e,`assertions`,t),Uv.addMethod(e,`hasAssertions`,n),e.extend(qx),e}var yD=vD();Object.defineProperty(globalThis,QT,{value:yD,writable:!0,configurable:!0});function bD(e,t,n){Object.defineProperty(e,t,n)}var xD=Symbol.for(`tinyspy:spy`),SD=e=>{e.called=!1,e.callCount=0,e.calls=[],e.results=[],e.resolves=[],e.next=[]},CD=e=>(bD(e,xD,{value:{reset:()=>SD(e[xD])}}),e[xD]),wD=e=>e[xD]||CD(e),TD=new Set;function ED(e){return TD.add(e),()=>void TD.delete(e)}var DD=(...e)=>kD(GT(...e));function OD(e){return kD(e?JT(e):JT())}function kD(e){let t=AD(e),n=t.mockImplementation.bind(null);return t.mockImplementation=e=>AD(n(e)),t}function AD(e){let t=wD(e),n=t.impl;return t.willCall(function(...t){return TD.forEach(n=>n(e,t)),n?.apply(this,t)}),e}function jD(){UT.forEach(e=>e.mockClear())}function MD(){UT.forEach(e=>e.mockReset())}function ND(){UT.forEach(e=>e.mockRestore())}function PD(e,t={}){return e}var FD={};Ne(FD,{buildQueries:()=>FA,configure:()=>Fk,createEvent:()=>vM,findAllByAltText:()=>jj,findAllByDisplayValue:()=>xj,findAllByLabelText:()=>GA,findAllByPlaceholderText:()=>rj,findAllByRole:()=>Qj,findAllByTestId:()=>cM,findAllByText:()=>fj,findAllByTitle:()=>Vj,findByAltText:()=>Mj,findByDisplayValue:()=>Sj,findByLabelText:()=>KA,findByPlaceholderText:()=>ij,findByRole:()=>$j,findByTestId:()=>lM,findByText:()=>pj,findByTitle:()=>Hj,fireEvent:()=>_M,getAllByAltText:()=>kj,getAllByDisplayValue:()=>yj,getAllByLabelText:()=>qA,getAllByPlaceholderText:()=>tj,getAllByRole:()=>Xj,getAllByTestId:()=>oM,getAllByText:()=>uj,getAllByTitle:()=>zj,getByAltText:()=>Aj,getByDisplayValue:()=>bj,getByLabelText:()=>JA,getByPlaceholderText:()=>nj,getByRole:()=>Zj,getByTestId:()=>sM,getByText:()=>dj,getByTitle:()=>Bj,getConfig:()=>Ik,getDefaultNormalizer:()=>Kk,getElementError:()=>TA,getMultipleElementsFoundError:()=>EA,getNodeText:()=>Yk,getQueriesForElement:()=>dM,getRoles:()=>tA,getSuggestedQuery:()=>xA,isInaccessible:()=>Qk,logDOM:()=>Mk,logRoles:()=>rA,makeFindQuery:()=>MA,makeGetAllQuery:()=>jA,makeSingleQuery:()=>kA,prettyDOM:()=>jk,prettyFormat:()=>ID,queries:()=>uM,queryAllByAltText:()=>Dj,queryAllByAttribute:()=>DA,queryAllByDisplayValue:()=>_j,queryAllByLabelText:()=>YA,queryAllByPlaceholderText:()=>$A,queryAllByRole:()=>Jj,queryAllByTestId:()=>iM,queryAllByText:()=>cj,queryAllByTitle:()=>Lj,queryByAltText:()=>Oj,queryByAttribute:()=>OA,queryByDisplayValue:()=>vj,queryByLabelText:()=>UA,queryByPlaceholderText:()=>ej,queryByRole:()=>Yj,queryByTestId:()=>aM,queryByText:()=>lj,queryByTitle:()=>Rj,queryHelpers:()=>IA,screen:()=>wM,waitFor:()=>wA,waitForElementToBeRemoved:()=>mM,within:()=>dM,wrapAllByQueryWithSuggestion:()=>PA,wrapSingleQueryWithSuggestion:()=>NA});var ID=H(Ma()),LD=Object.prototype.toString;function RD(e){return typeof e==`function`||LD.call(e)===`[object Function]`}function zD(e){var t=Number(e);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))}var BD=2**53-1;function VD(e){var t=zD(e);return Math.min(Math.max(t,0),BD)}function HD(e,t){var n=Array,r=Object(e);if(e==null)throw TypeError(`Array.from requires an array-like object - not null or undefined`);if(typeof t<`u`&&!RD(t))throw TypeError(`Array.from: when provided, the second argument must be a function`);for(var i=VD(r.length),a=RD(n)?Object(new n(i)):Array(i),o=0,s;o<i;)s=r[o],t?a[o]=t(s,o):a[o]=s,o+=1;return a.length=i,a}function UD(e){"@babel/helpers - typeof";return UD=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},UD(e)}function WD(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function GD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,JD(r.key),r)}}function KD(e,t,n){return t&&GD(e.prototype,t),n&&GD(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function qD(e,t,n){return t=JD(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JD(e){var t=YD(e,`string`);return UD(t)===`symbol`?t:String(t)}function YD(e,t){if(UD(e)!==`object`||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(UD(r)!==`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var XD=(function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];WD(this,e),qD(this,`items`,void 0),this.items=t}return KD(e,[{key:`add`,value:function(e){return this.has(e)===!1&&this.items.push(e),this}},{key:`clear`,value:function(){this.items=[]}},{key:`delete`,value:function(e){var t=this.items.length;return this.items=this.items.filter(function(t){return t!==e}),t!==this.items.length}},{key:`forEach`,value:function(e){var t=this;this.items.forEach(function(n){e(n,n,t)})}},{key:`has`,value:function(e){return this.items.indexOf(e)!==-1}},{key:`size`,get:function(){return this.items.length}}]),e})(),ZD=typeof Set>`u`?Set:XD;function QD(e){return e.localName??e.tagName.toLowerCase()}var $D={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`},eO={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 tO(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(n){var r;return e.hasAttribute(n)&&!((r=eO[t])!=null&&r.has(n))})}function nO(e,t){return tO(e,t)}function rO(e){var t=aO(e);if(t===null||t===`presentation`){var n=iO(e);if(t!==`presentation`||nO(e,n||``))return n}return t}function iO(e){var t=$D[QD(e)];if(t!==void 0)return t;switch(QD(e)){case`a`:case`area`:case`link`:if(e.hasAttribute(`href`))return`link`;break;case`img`:return e.getAttribute(`alt`)===``&&!nO(e,`img`)?`presentation`:`img`;case`input`:var n=e.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 aO(e){var t=e.getAttribute(`role`);if(t!==null){var n=t.trim().split(` `)[0];if(n.length>0)return n}return null}function oO(e){return e!==null&&e.nodeType===e.ELEMENT_NODE}function sO(e){return oO(e)&&QD(e)===`caption`}function cO(e){return oO(e)&&QD(e)===`input`}function lO(e){return oO(e)&&QD(e)===`optgroup`}function uO(e){return oO(e)&&QD(e)===`select`}function dO(e){return oO(e)&&QD(e)===`table`}function fO(e){return oO(e)&&QD(e)===`textarea`}function pO(e){var t=(e.ownerDocument===null?e:e.ownerDocument).defaultView;if(t===null)throw TypeError(`no window available`);return t}function mO(e){return oO(e)&&QD(e)===`fieldset`}function hO(e){return oO(e)&&QD(e)===`legend`}function gO(e){return oO(e)&&QD(e)===`slot`}function _O(e){return oO(e)&&e.ownerSVGElement!==void 0}function vO(e){return oO(e)&&QD(e)===`svg`}function yO(e){return _O(e)&&QD(e)===`title`}function bO(e,t){if(oO(e)&&e.hasAttribute(t)){var n=e.getAttribute(t).split(` `),r=e.getRootNode?e.getRootNode():e.ownerDocument;return n.map(function(e){return r.getElementById(e)}).filter(function(e){return e!==null})}return[]}function xO(e,t){return oO(e)?t.indexOf(rO(e))!==-1:!1}function SO(e){return e.trim().replace(/\s\s+/g,` `)}function CO(e,t){if(!oO(e))return!1;if(e.hasAttribute(`hidden`)||e.getAttribute(`aria-hidden`)===`true`)return!0;var n=t(e);return n.getPropertyValue(`display`)===`none`||n.getPropertyValue(`visibility`)===`hidden`}function wO(e){return xO(e,[`button`,`combobox`,`listbox`,`textbox`])||TO(e,`range`)}function TO(e,t){if(!oO(e))return!1;switch(t){case`range`:return xO(e,[`meter`,`progressbar`,`scrollbar`,`slider`,`spinbutton`]);default:throw TypeError(`No knowledge about abstract role '${t}'. This is likely a bug :(`)}}function EO(e,t){var n=HD(e.querySelectorAll(t));return bO(e,`aria-owns`).forEach(function(e){n.push.apply(n,HD(e.querySelectorAll(t)))}),n}function DO(e){return uO(e)?e.selectedOptions||EO(e,`[selected]`):EO(e,`[aria-selected="true"]`)}function OO(e){return xO(e,[`none`,`presentation`])}function kO(e){return sO(e)}function AO(e){return xO(e,[`button`,`cell`,`checkbox`,`columnheader`,`gridcell`,`heading`,`label`,`legend`,`link`,`menuitem`,`menuitemcheckbox`,`menuitemradio`,`option`,`radio`,`row`,`rowheader`,`switch`,`tab`,`tooltip`,`treeitem`])}function jO(e){return!1}function MO(e){return cO(e)||fO(e)?e.value:e.textContent||``}function NO(e){var t=e.getPropertyValue(`content`);return/^["'].*["']$/.test(t)?t.slice(1,-1):``}function PO(e){var t=QD(e);return t===`button`||t===`input`&&e.getAttribute(`type`)!==`hidden`||t===`meter`||t===`output`||t===`progress`||t===`select`||t===`textarea`}function FO(e){if(PO(e))return e;var t=null;return e.childNodes.forEach(function(e){if(t===null&&oO(e)){var n=FO(e);n!==null&&(t=n)}}),t}function IO(e){if(e.control!==void 0)return e.control;var t=e.getAttribute(`for`);return t===null?FO(e):e.ownerDocument.getElementById(t)}function LO(e){var t=e.labels;if(t===null)return t;if(t!==void 0)return HD(t);if(!PO(e))return null;var n=e.ownerDocument;return HD(n.querySelectorAll(`label`)).filter(function(t){return IO(t)===e})}function RO(e){var t=e.assignedNodes();return t.length===0?HD(e.childNodes):t}function zO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=new ZD,r=pO(e),i=t.compute,a=i===void 0?`name`:i,o=t.computedStyleSupportsPseudoElements,s=o===void 0?t.getComputedStyle!==void 0:o,c=t.getComputedStyle,l=c===void 0?r.getComputedStyle.bind(r):c,u=t.hidden,d=u===void 0?!1:u;function f(e,t){var n=``;if(oO(e)&&s&&(n=`${NO(l(e,`::before`))} ${n}`),(gO(e)?RO(e):HD(e.childNodes).concat(bO(e,`aria-owns`))).forEach(function(e){var r=g(e,{isEmbeddedInLabel:t.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),i=(oO(e)?l(e).getPropertyValue(`display`):`inline`)===`inline`?``:` `;n+=`${i}${r}${i}`}),oO(e)&&s){var r=NO(l(e,`::after`));n=`${n} ${r}`}return n.trim()}function p(e,t){var r=e.getAttributeNode(t);return r!==null&&!n.has(r)&&r.value.trim()!==``?(n.add(r),r.value):null}function m(e){return oO(e)?p(e,`title`):null}function h(e){if(!oO(e))return null;if(mO(e)){n.add(e);for(var t=HD(e.childNodes),r=0;r<t.length;r+=1){var i=t[r];if(hO(i))return g(i,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(dO(e)){n.add(e);for(var a=HD(e.childNodes),o=0;o<a.length;o+=1){var s=a[o];if(sO(s))return g(s,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(vO(e)){n.add(e);for(var c=HD(e.childNodes),l=0;l<c.length;l+=1){var u=c[l];if(yO(u))return u.textContent}return null}else if(QD(e)===`img`||QD(e)===`area`){var d=p(e,`alt`);if(d!==null)return d}else if(lO(e)){var m=p(e,`label`);if(m!==null)return m}if(cO(e)&&(e.type===`button`||e.type===`submit`||e.type===`reset`)){var h=p(e,`value`);if(h!==null)return h;if(e.type===`submit`)return`Submit`;if(e.type===`reset`)return`Reset`}var _=LO(e);if(_!==null&&_.length!==0)return n.add(e),HD(_).map(function(e){return g(e,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(e){return e.length>0}).join(` `);if(cO(e)&&e.type===`image`){var v=p(e,`alt`);if(v!==null)return v;var y=p(e,`title`);return y===null?`Submit Query`:y}if(xO(e,[`button`])){var b=f(e,{isEmbeddedInLabel:!1,isReferenced:!1});if(b!==``)return b}return null}function g(e,t){if(n.has(e))return``;if(!d&&CO(e,l)&&!t.isReferenced)return n.add(e),``;var r=oO(e)?e.getAttributeNode(`aria-labelledby`):null,i=r!==null&&!n.has(r)?bO(e,`aria-labelledby`):[];if(a===`name`&&!t.isReferenced&&i.length>0)return n.add(r),i.map(function(e){return g(e,{isEmbeddedInLabel:t.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(` `);var o=t.recursion&&wO(e)&&a===`name`;if(!o){var s=(oO(e)&&e.getAttribute(`aria-label`)||``).trim();if(s!==``&&a===`name`)return n.add(e),s;if(!OO(e)){var c=h(e);if(c!==null)return n.add(e),c}}if(xO(e,[`menu`]))return n.add(e),``;if(o||t.isEmbeddedInLabel||t.isReferenced){if(xO(e,[`combobox`,`listbox`])){n.add(e);var u=DO(e);return u.length===0?cO(e)?e.value:``:HD(u).map(function(e){return g(e,{isEmbeddedInLabel:t.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(` `)}if(TO(e,`range`))return n.add(e),e.hasAttribute(`aria-valuetext`)?e.getAttribute(`aria-valuetext`):e.hasAttribute(`aria-valuenow`)?e.getAttribute(`aria-valuenow`):e.getAttribute(`value`)||``;if(xO(e,[`textbox`]))return n.add(e),MO(e)}if(AO(e)||oO(e)&&t.isReferenced||kO(e)||jO(e)){var p=f(e,{isEmbeddedInLabel:t.isEmbeddedInLabel,isReferenced:!1});if(p!==``)return n.add(e),p}if(e.nodeType===e.TEXT_NODE)return n.add(e),e.textContent||``;if(t.recursion)return n.add(e),f(e,{isEmbeddedInLabel:t.isEmbeddedInLabel,isReferenced:!1});var _=m(e);return _===null?(n.add(e),``):(n.add(e),_)}return SO(g(e,{isEmbeddedInLabel:!1,isReferenced:a===`description`,recursion:!1}))}function BO(e){"@babel/helpers - typeof";return BO=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},BO(e)}function VO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function HO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?VO(Object(n),!0).forEach(function(t){UO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VO(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function UO(e,t,n){return t=WO(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WO(e){var t=GO(e,`string`);return BO(t)===`symbol`?t:String(t)}function GO(e,t){if(BO(e)!==`object`||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(BO(r)!==`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function KO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=bO(e,`aria-describedby`).map(function(e){return zO(e,HO(HO({},t),{},{compute:`description`}))}).join(` `);if(n===``){var r=e.getAttribute(`title`);n=r===null?``:r}return n}function qO(e){return xO(e,[`caption`,`code`,`deletion`,`emphasis`,`generic`,`insertion`,`paragraph`,`presentation`,`strong`,`subscript`,`superscript`])}function JO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return qO(e)?``:zO(e,t)}var YO=H(Er()),XO=H(Na());function ZO(e){return e.replace(/</g,`&lt;`).replace(/>/g,`&gt;`)}var QO=(e,t,n,r,i,a,o)=>{let s=r+n.indent,c=n.colors;return e.map(e=>{let l=t[e],u=o(l,n,s,i,a);return typeof l!=`string`&&(u.indexOf(`
301
- `)!==-1&&(u=n.spacingOuter+s+u+n.spacingOuter+r),u=`{`+u+`}`),n.spacingInner+r+c.prop.open+e+c.prop.close+`=`+c.value.open+u+c.value.close}).join(``)},$O=3,ek=(e,t,n,r,i,a)=>e.map(e=>{let o=typeof e==`string`?tk(e,t):a(e,t,n,r,i);return o===``&&typeof e==`object`&&e&&e.nodeType!==$O?``:t.spacingOuter+n+o}).join(``),tk=(e,t)=>{let n=t.colors.content;return n.open+ZO(e)+n.close},nk=(e,t)=>{let n=t.colors.comment;return n.open+`<!--`+ZO(e)+`-->`+n.close},rk=(e,t,n,r,i)=>{let a=r.colors.tag;return a.open+`<`+e+(t&&a.close+t+r.spacingOuter+i+a.open)+(n?`>`+a.close+n+r.spacingOuter+i+a.open+`</`+e:(t&&!r.min?``:` `)+`/`)+`>`+a.close},ik=(e,t)=>{let n=t.colors.tag;return n.open+`<`+e+n.close+` …`+n.open+` />`+n.close},ak=1,ok=3,sk=8,ck=11,lk=/^((HTML|SVG)\w*)?Element$/,uk=e=>{let{tagName:t}=e;return!!(typeof t==`string`&&t.includes(`-`)||typeof e.hasAttribute==`function`&&e.hasAttribute(`is`))},dk=e=>{let t=e.constructor.name,{nodeType:n}=e;return n===ak&&(lk.test(t)||uk(e))||n===ok&&t===`Text`||n===sk&&t===`Comment`||n===ck&&t===`DocumentFragment`};function fk(e){return e.nodeType===ok}function pk(e){return e.nodeType===sk}function mk(e){return e.nodeType===ck}function hk(e){return{test:e=>{var t;return((e==null||(t=e.constructor)==null?void 0:t.name)||uk(e))&&dk(e)},serialize:(t,n,r,i,a,o)=>{if(fk(t))return tk(t.data,n);if(pk(t))return nk(t.data,n);let s=mk(t)?`DocumentFragment`:t.tagName.toLowerCase();return++i>n.maxDepth?ik(s,n):rk(s,QO(mk(t)?[]:Array.from(t.attributes).map(e=>e.name).sort(),mk(t)?{}:Array.from(t.attributes).reduce((e,t)=>(e[t.name]=t.value,e),{}),n,r+n.indent,i,a,o),ek(Array.prototype.slice.call(t.childNodes||t.children).filter(e),n,r+n.indent,i,a,o),n,r)}}}var gk=null,_k=null,vk=null;try{let e=module&&module.require;_k=e.call(module,`fs`).readFileSync,vk=e.call(module,`@babel/code-frame`).codeFrameColumns,gk=e.call(module,`picocolors`)}catch{}function yk(e){let t=e.indexOf(`(`)+1,n=e.indexOf(`)`),r=e.slice(t,n),i=r.split(`:`),[a,o,s]=[i[0],parseInt(i[1],10),parseInt(i[2],10)],c=``;try{c=_k(a,`utf-8`)}catch{return``}let l=vk(c,{start:{line:o,column:s}},{highlightCode:!0,linesBelow:0});return gk.dim(r)+`
302
- `+l+`
303
- `}function bk(){return!_k||!vk?``:yk(Error().stack.split(`
304
- `).slice(1).find(e=>!e.includes(`node_modules/`)))}var xk=3;function Sk(){return typeof jest<`u`&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,`clock`):!1}function Ck(){if(typeof window>`u`)throw Error(`Could not find default container`);return window.document}function wk(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?Error(`It looks like the window object is not available for the provided node.`):e.then instanceof Function?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)?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`?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..., `?"):Error(`The given node is not an Element, the node type is: `+typeof e+`.`)}function Tk(e){if(!e||typeof e.querySelector!=`function`||typeof e.querySelectorAll!=`function`)throw TypeError(`Expected container to be an Element, a Document or a DocumentFragment but got `+t(e)+`.`);function t(e){return typeof e==`object`?e===null?`null`:e.constructor.name:typeof e}}var Ek=()=>{if(typeof process>`u`)return!1;let e;try{let t={}?.COLORS;t&&(e=JSON.parse(t))}catch{}return typeof e==`boolean`?e:process.versions!==void 0&&process.versions.node!==void 0},{DOMCollection:Dk}=ID.plugins,Ok=1,kk=8;function Ak(e){return e.nodeType!==kk&&(e.nodeType!==Ok||!e.matches(Ik().defaultIgnore))}function jk(e,t,n){if(n===void 0&&(n={}),e||=Ck().body,typeof t!=`number`&&(t=typeof process<`u`&&{}.DEBUG_PRINT_LIMIT||7e3),t===0)return``;e.documentElement&&(e=e.documentElement);let r=typeof e;if(r===`object`?r=e.constructor.name:e={},!(`outerHTML`in e))throw TypeError(`Expected an element or document but got `+r);let{filterNode:i=Ak,...a}=n,o=ID.format(e,{plugins:[hk(i),Dk],printFunctionName:!1,highlight:Ek(),...a});return t!==void 0&&e.outerHTML.length>t?o.slice(0,t)+`...`:o}var Mk=function(){let e=bk();console.log(e?jk(...arguments)+`
305
-
306
- `+e:jk(...arguments))},Nk={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 n=jk(t),r=Error([e,`Ignored nodes: comments, `+Nk.defaultIgnore+`
307
- `+n].filter(Boolean).join(`
308
-
309
- `));return r.name=`TestingLibraryElementError`,r},_disableExpensiveErrorDiagnostics:!1,computedStyleSupportsPseudoElements:!1};function Pk(e){try{return Nk._disableExpensiveErrorDiagnostics=!0,e()}finally{Nk._disableExpensiveErrorDiagnostics=!1}}function Fk(e){typeof e==`function`&&(e=e(Nk)),Nk={...Nk,...e}}function Ik(){return Nk}var Lk=[`button`,`meter`,`output`,`progress`,`select`,`textarea`,`input`];function Rk(e){return Lk.includes(e.nodeName.toLowerCase())?``:e.nodeType===xk?e.textContent:Array.from(e.childNodes).map(e=>Rk(e)).join(``)}function zk(e){let t;return t=e.tagName.toLowerCase()===`label`?Rk(e):e.value||e.textContent,t}function Bk(e){if(e.labels!==void 0)return e.labels??[];if(!Vk(e))return[];let t=e.ownerDocument.querySelectorAll(`label`);return Array.from(t).filter(t=>t.control===e)}function Vk(e){return/BUTTON|METER|OUTPUT|PROGRESS|SELECT|TEXTAREA/.test(e.tagName)||e.tagName===`INPUT`&&e.getAttribute(`type`)!==`hidden`}function Hk(e,t,n){let{selector:r=`*`}=n===void 0?{}:n,i=t.getAttribute(`aria-labelledby`),a=i?i.split(` `):[];return a.length?a.map(t=>{let n=e.querySelector(`[id="`+t+`"]`);return n?{content:zk(n),formControl:null}:{content:``,formControl:null}}):Array.from(Bk(t)).map(e=>({content:zk(e),formControl:Array.from(e.querySelectorAll(`button, input, meter, output, progress, select, textarea`)).filter(e=>e.matches(r))[0]}))}function Uk(e){if(e==null)throw Error(`It looks like `+e+` was passed instead of a matcher. Did you do something like getByText(`+e+`)?`)}function Wk(e,t,n,r){if(typeof e!=`string`)return!1;Uk(n);let i=r(e);return typeof n==`string`||typeof n==`number`?i.toLowerCase().includes(n.toString().toLowerCase()):typeof n==`function`?n(i,t):Jk(n,i)}function Gk(e,t,n,r){if(typeof e!=`string`)return!1;Uk(n);let i=r(e);return n instanceof Function?n(i,t):n instanceof RegExp?Jk(n,i):i===String(n)}function Kk(e){let{trim:t=!0,collapseWhitespace:n=!0}=e===void 0?{}:e;return e=>{let r=e;return r=t?r.trim():r,r=n?r.replace(/\s+/g,` `):r,r}}function qk(e){let{trim:t,collapseWhitespace:n,normalizer:r}=e;if(!r)return Kk({trim:t,collapseWhitespace:n});if(typeof t<`u`||typeof n<`u`)throw 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 r}function Jk(e,t){let n=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),n}function Yk(e){return e.matches(`input[type=submit], input[type=button], input[type=reset]`)?e.value:Array.from(e.childNodes).filter(e=>e.nodeType===xk&&!!e.textContent).map(e=>e.textContent).join(``)}var Xk=eA(YO.elementRoles);function Zk(e){return e.hidden===!0||e.getAttribute(`aria-hidden`)===`true`||e.ownerDocument.defaultView.getComputedStyle(e).display===`none`}function Qk(e,t){t===void 0&&(t={});let{isSubtreeInaccessible:n=Zk}=t;if(e.ownerDocument.defaultView.getComputedStyle(e).visibility===`hidden`)return!0;let r=e;for(;r;){if(n(r))return!0;r=r.parentElement}return!1}function $k(e){for(let{match:t,roles:n}of Xk)if(t(e))return[...n];return[]}function eA(e){function t(e){let{name:t,attributes:n}=e;return``+t+n.map(e=>{let{name:t,value:n,constraints:r=[]}=e,i=r.indexOf(`undefined`)!==-1,a=r.indexOf(`set`)!==-1;return typeof n<`u`?`[`+t+`="`+n+`"]`:i?`:not([`+t+`])`:a?`[`+t+`]:not([`+t+`=""])`:`[`+t+`]`}).join(``)}function n(e){let{attributes:t=[]}=e;return t.length}function r(e,t){let{specificity:n}=e,{specificity:r}=t;return r-n}function i(e){let{attributes:n=[]}=e,r=n.findIndex(e=>e.value&&e.name===`type`&&e.value===`text`);r>=0&&(n=[...n.slice(0,r),...n.slice(r+1)]);let i=t({...e,attributes:n});return e=>r>=0&&e.type!==`text`?!1:e.matches(i)}let a=[];for(let[t,r]of e.entries())a=[...a,{match:i(t),roles:Array.from(r),specificity:n(t)}];return a.sort(r)}function tA(e,t){let{hidden:n=!1}=t===void 0?{}:t;function r(e){return[e,...Array.from(e.children).reduce((e,t)=>[...e,...r(t)],[])]}return r(e).filter(e=>n===!1?Qk(e)===!1:!0).reduce((e,t)=>{let n=[];return n=t.hasAttribute(`role`)?t.getAttribute(`role`).split(` `).slice(0,1):$k(t),n.reduce((e,n)=>Array.isArray(e[n])?{...e,[n]:[...e[n],t]}:{...e,[n]:[t]},e)},{})}function nA(e,t){let{hidden:n,includeDescription:r}=t,i=tA(e,{hidden:n});return Object.entries(i).filter(e=>{let[t]=e;return t!==`generic`}).map(e=>{let[t,n]=e,i=`-`.repeat(50),a=n.map(e=>{let t=`Name "`+JO(e,{computedStyleSupportsPseudoElements:Ik().computedStyleSupportsPseudoElements})+`":
310
- `,n=jk(e.cloneNode(!1));if(r){let r=`Description "`+KO(e,{computedStyleSupportsPseudoElements:Ik().computedStyleSupportsPseudoElements})+`":
311
- `;return``+t+r+n}return``+t+n}).join(`
312
-
313
- `);return t+`:
314
-
315
- `+a+`
316
-
317
- `+i}).join(`
318
- `)}var rA=function(e,t){let{hidden:n=!1}=t===void 0?{}:t;return console.log(nA(e,{hidden:n}))};function iA(e){return e.tagName===`OPTION`?e.selected:uA(e,`aria-selected`)}function aA(e){return e.getAttribute(`aria-busy`)===`true`}function oA(e){if(!(`indeterminate`in e&&e.indeterminate))return`checked`in e?e.checked:uA(e,`aria-checked`)}function sA(e){return uA(e,`aria-pressed`)}function cA(e){return uA(e,`aria-current`)??e.getAttribute(`aria-current`)??!1}function lA(e){return uA(e,`aria-expanded`)}function uA(e,t){let n=e.getAttribute(t);if(n===`true`)return!0;if(n===`false`)return!1}function dA(e){return e.getAttribute(`aria-level`)&&Number(e.getAttribute(`aria-level`))||{H1:1,H2:2,H3:3,H4:4,H5:5,H6:6}[e.tagName]}function fA(e){let t=e.getAttribute(`aria-valuenow`);return t===null?void 0:+t}function pA(e){let t=e.getAttribute(`aria-valuemax`);return t===null?void 0:+t}function mA(e){let t=e.getAttribute(`aria-valuemin`);return t===null?void 0:+t}function hA(e){let t=e.getAttribute(`aria-valuetext`);return t===null?void 0:t}var gA=Kk();function _A(e){return e.replace(/[.*+\-?^${}()|[\]\\]/g,`\\$&`)}function vA(e){return new RegExp(_A(e.toLowerCase()),`i`)}function yA(e,t,n,r){let{variant:i,name:a}=r,o=``,s={},c=[[`Role`,`TestId`].includes(e)?n:vA(n)];a&&(s.name=vA(a)),e===`Role`&&Qk(t)&&(s.hidden=!0,o=`Element is inaccessible. This means that the element and all its children are invisible to screen readers.
319
- If you are using the aria-hidden prop, make sure this is the right choice for your case.
320
- `),Object.keys(s).length>0&&c.push(s);let l=i+`By`+e;return{queryName:e,queryMethod:l,queryArgs:c,variant:i,warning:o,toString(){o&&console.warn(o);let[e,t]=c;return e=typeof e==`string`?`'`+e+`'`:e,t=t?`, { `+Object.entries(t).map(e=>{let[t,n]=e;return t+`: `+n}).join(`, `)+` }`:``,l+`(`+e+t+`)`}}}function bA(e,t,n){return n&&(!t||t.toLowerCase()===e.toLowerCase())}function xA(e,t,n){if(t===void 0&&(t=`get`),e.matches(Ik().defaultIgnore))return;let r=e.getAttribute(`role`)??$k(e)?.[0];if(r!==`generic`&&bA(`Role`,n,r))return yA(`Role`,e,r,{variant:t,name:JO(e,{computedStyleSupportsPseudoElements:Ik().computedStyleSupportsPseudoElements})});let i=Hk(document,e).map(e=>e.content).join(` `);if(bA(`LabelText`,n,i))return yA(`LabelText`,e,i,{variant:t});let a=e.getAttribute(`placeholder`);if(bA(`PlaceholderText`,n,a))return yA(`PlaceholderText`,e,a,{variant:t});let o=gA(Yk(e));if(bA(`Text`,n,o))return yA(`Text`,e,o,{variant:t});if(bA(`DisplayValue`,n,e.value))return yA(`DisplayValue`,e,gA(e.value),{variant:t});let s=e.getAttribute(`alt`);if(bA(`AltText`,n,s))return yA(`AltText`,e,s,{variant:t});let c=e.getAttribute(`title`);if(bA(`Title`,n,c))return yA(`Title`,e,c,{variant:t});let l=e.getAttribute(Ik().testIdAttribute);if(bA(`TestId`,n,l))return yA(`TestId`,e,l,{variant:t})}function SA(e,t){e.stack=t.stack.replace(t.message,e.message)}function CA(e,t){let{container:n=Ck(),timeout:r=Ik().asyncUtilTimeout,showOriginalStackTrace:i=Ik().showOriginalStackTrace,stackTraceError:a,interval:o=50,onTimeout:s=e=>(Object.defineProperty(e,`message`,{value:Ik().getElementError(e.message,n).message}),e),mutationObserverOptions:c={subtree:!0,childList:!0,attributes:!0,characterData:!0}}=t;if(typeof e!=`function`)throw TypeError("Received `callback` arg must be a function");return new Promise(async(t,l)=>{let u,d,f,p=!1,m=`idle`,h=setTimeout(b,r),g=Sk();if(g){let{unstable_advanceTimersWrapper:e}=Ik();for(y();!p;){if(!Sk()){let e=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||SA(e,a),l(e);return}if(await e(async()=>{jest.advanceTimersByTime(o)}),p)break;y()}}else{try{Tk(n)}catch(e){l(e);return}d=setInterval(v,o);let{MutationObserver:e}=wk(n);f=new e(v),f.observe(n,c),y()}function _(e,n){p=!0,clearTimeout(h),g||(clearInterval(d),f.disconnect()),e?l(e):t(n)}function v(){if(Sk()){let e=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||SA(e,a),l(e)}else return y()}function y(){if(m!==`pending`)try{let t=Pk(e);typeof t?.then==`function`?(m=`pending`,t.then(e=>{m=`resolved`,_(null,e)},e=>{m=`rejected`,u=e})):_(null,t)}catch(e){u=e}}function b(){let e;u?(e=u,!i&&e.name===`TestingLibraryElementError`&&SA(e,a)):(e=Error(`Timed out in waitFor.`),i||SA(e,a)),_(s(e),null)}})}function wA(e,t){let n=Error(`STACK_TRACE_MESSAGE`);return Ik().asyncWrapper(()=>CA(e,{stackTraceError:n,...t}))}function TA(e,t){return Ik().getElementError(e,t)}function EA(e,t){return TA(e+"\n\n(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).",t)}function DA(e,t,n,r){let{exact:i=!0,collapseWhitespace:a,trim:o,normalizer:s}=r===void 0?{}:r,c=i?Gk:Wk,l=qk({collapseWhitespace:a,trim:o,normalizer:s});return Array.from(t.querySelectorAll(`[`+e+`]`)).filter(t=>c(t.getAttribute(e),t,n,l))}function OA(e,t,n,r){let i=DA(e,t,n,r);if(i.length>1)throw EA(`Found multiple elements by [`+e+`=`+n+`]`,t);return i[0]||null}function kA(e,t){return function(n){var r=[...arguments].slice(1);let i=e(n,...r);if(i.length>1){let e=i.map(e=>TA(null,e).message).join(`
321
-
322
- `);throw EA(t(n,...r)+`
323
-
324
- Here are the matching elements:
325
-
326
- `+e,n)}return i[0]||null}}function AA(e,t){return Ik().getElementError(`A better query is available, try this:
327
- `+e.toString()+`
328
- `,t)}function jA(e,t){return function(n){var r=[...arguments].slice(1);let i=e(n,...r);if(!i.length)throw Ik().getElementError(t(n,...r),n);return i}}function MA(e){return(t,n,r,i)=>wA(()=>e(t,n,r),{container:t,...i})}var NA=(e,t,n)=>function(r){var i=[...arguments].slice(1);let a=e(r,...i),[{suggest:o=Ik().throwSuggestions}={}]=i.slice(-1);if(a&&o){let e=xA(a,n);if(e&&!t.endsWith(e.queryName))throw AA(e.toString(),r)}return a},PA=(e,t,n)=>function(r){var i=[...arguments].slice(1);let a=e(r,...i),[{suggest:o=Ik().throwSuggestions}={}]=i.slice(-1);if(a.length&&o){let e=[...new Set(a.map(e=>xA(e,n)?.toString()))];if(e.length===1&&!t.endsWith(xA(a[0],n).queryName))throw AA(e[0],r)}return a};function FA(e,t,n){let r=NA(kA(e,t),e.name,`query`),i=jA(e,n),a=kA(i,t),o=NA(a,e.name,`get`);return[r,PA(i,e.name.replace(`query`,`get`),`getAll`),o,MA(PA(i,e.name,`findAll`)),MA(NA(a,e.name,`find`))]}var IA=Object.freeze({__proto__:null,getElementError:TA,wrapAllByQueryWithSuggestion:PA,wrapSingleQueryWithSuggestion:NA,getMultipleElementsFoundError:EA,queryAllByAttribute:DA,queryByAttribute:OA,makeSingleQuery:kA,makeGetAllQuery:jA,makeFindQuery:MA,buildQueries:FA});function LA(e){return Array.from(e.querySelectorAll(`label,input`)).map(e=>({node:e,textToMatch:zk(e)})).filter(e=>{let{textToMatch:t}=e;return t!==null})}var RA=function(e,t,n){let{exact:r=!0,trim:i,collapseWhitespace:a,normalizer:o}=n===void 0?{}:n,s=r?Gk:Wk,c=qk({collapseWhitespace:a,trim:i,normalizer:o});return LA(e).filter(e=>{let{node:n,textToMatch:r}=e;return s(r,n,t,c)}).map(e=>{let{node:t}=e;return t})},zA=function(e,t,n){let{selector:r=`*`,exact:i=!0,collapseWhitespace:a,trim:o,normalizer:s}=n===void 0?{}:n;Tk(e);let c=i?Gk:Wk,l=qk({collapseWhitespace:a,trim:o,normalizer:s}),u=Array.from(e.querySelectorAll(`*`)).filter(e=>Bk(e).length||e.hasAttribute(`aria-labelledby`)).reduce((n,i)=>{let a=Hk(e,i,{selector:r});a.filter(e=>!!e.formControl).forEach(e=>{c(e.content,e.formControl,t,l)&&e.formControl&&n.push(e.formControl)});let o=a.filter(e=>!!e.content).map(e=>e.content);return c(o.join(` `),i,t,l)&&n.push(i),o.length>1&&o.forEach((e,r)=>{c(e,i,t,l)&&n.push(i);let a=[...o];a.splice(r,1),a.length>1&&c(a.join(` `),i,t,l)&&n.push(i)}),n},[]).concat(DA(`aria-label`,e,t,{exact:i,normalizer:l}));return Array.from(new Set(u)).filter(e=>e.matches(r))},BA=function(e,t){var n=[...arguments].slice(2);let r=zA(e,t,...n);if(!r.length){let r=RA(e,t,...n);if(r.length){let n=r.map(t=>VA(e,t)).filter(e=>!!e);throw n.length?Ik().getElementError(n.map(e=>`Found a label with the text of: `+t+`, however the element associated with this label (<`+e+` />) is non-labellable [https://html.spec.whatwg.org/multipage/forms.html#category-label]. If you really need to label a <`+e+` />, you can use aria-label or aria-labelledby instead.`).join(`
329
-
330
- `),e):Ik().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 Ik().getElementError(`Unable to find a label with the text of: `+t,e)}return r};function VA(e,t){let n=t.getAttribute(`for`);if(!n)return null;let r=e.querySelector(`[id="`+n+`"]`);return r?r.tagName.toLowerCase():null}var HA=(e,t)=>`Found multiple elements with the text of: `+t,UA=NA(kA(zA,HA),zA.name,`query`),WA=kA(BA,HA),GA=MA(PA(BA,BA.name,`findAll`)),KA=MA(NA(WA,BA.name,`find`)),qA=PA(BA,BA.name,`getAll`),JA=NA(WA,BA.name,`get`),YA=PA(zA,zA.name,`queryAll`),XA=function(){var e=[...arguments];return Tk(e[0]),DA(`placeholder`,...e)},ZA=(e,t)=>`Found multiple elements with the placeholder text of: `+t,QA=(e,t)=>`Unable to find an element with the placeholder text of: `+t,$A=PA(XA,XA.name,`queryAll`),[ej,tj,nj,rj,ij]=FA(XA,ZA,QA),aj=function(e,t,n){let{selector:r=`*`,exact:i=!0,collapseWhitespace:a,trim:o,ignore:s=Ik().defaultIgnore,normalizer:c}=n===void 0?{}:n;Tk(e);let l=i?Gk:Wk,u=qk({collapseWhitespace:a,trim:o,normalizer:c}),d=[];return typeof e.matches==`function`&&e.matches(r)&&(d=[e]),[...d,...Array.from(e.querySelectorAll(r))].filter(e=>!s||!e.matches(s)).filter(e=>l(Yk(e),e,t,u))},oj=(e,t)=>`Found multiple elements with the text: `+t,sj=function(e,t,n){n===void 0&&(n={});let{collapseWhitespace:r,trim:i,normalizer:a,selector:o}=n,s=qk({collapseWhitespace:r,trim:i,normalizer:a})(t.toString()),c=s!==t.toString(),l=(o??`*`)!==`*`;return`Unable to find an element with the text: `+(c?s+` (normalized from '`+t+`')`:t)+(l?`, which matches selector '`+o+`'`:``)+`. 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.`},cj=PA(aj,aj.name,`queryAll`),[lj,uj,dj,fj,pj]=FA(aj,oj,sj),mj=function(e,t,n){let{exact:r=!0,collapseWhitespace:i,trim:a,normalizer:o}=n===void 0?{}:n;Tk(e);let s=r?Gk:Wk,c=qk({collapseWhitespace:i,trim:a,normalizer:o});return Array.from(e.querySelectorAll(`input,textarea,select`)).filter(e=>e.tagName===`SELECT`?Array.from(e.options).filter(e=>e.selected).some(e=>s(Yk(e),e,t,c)):s(e.value,e,t,c))},hj=(e,t)=>`Found multiple elements with the display value: `+t+`.`,gj=(e,t)=>`Unable to find an element with the display value: `+t+`.`,_j=PA(mj,mj.name,`queryAll`),[vj,yj,bj,xj,Sj]=FA(mj,hj,gj),Cj=/^(img|input|area|.+-.+)$/i,wj=function(e,t,n){return n===void 0&&(n={}),Tk(e),DA(`alt`,e,t,n).filter(e=>Cj.test(e.tagName))},Tj=(e,t)=>`Found multiple elements with the alt text: `+t,Ej=(e,t)=>`Unable to find an element with the alt text: `+t,Dj=PA(wj,wj.name,`queryAll`),[Oj,kj,Aj,jj,Mj]=FA(wj,Tj,Ej),Nj=e=>e.tagName.toLowerCase()===`title`&&e.parentElement?.tagName.toLowerCase()===`svg`,Pj=function(e,t,n){let{exact:r=!0,collapseWhitespace:i,trim:a,normalizer:o}=n===void 0?{}:n;Tk(e);let s=r?Gk:Wk,c=qk({collapseWhitespace:i,trim:a,normalizer:o});return Array.from(e.querySelectorAll(`[title], svg > title`)).filter(e=>s(e.getAttribute(`title`),e,t,c)||Nj(e)&&s(Yk(e),e,t,c))},Fj=(e,t)=>`Found multiple elements with the title: `+t+`.`,Ij=(e,t)=>`Unable to find an element with the title: `+t+`.`,Lj=PA(Pj,Pj.name,`queryAll`),[Rj,zj,Bj,Vj,Hj]=FA(Pj,Fj,Ij),Uj=function(e,t,n){let{hidden:r=Ik().defaultHidden,name:i,description:a,queryFallbacks:o=!1,selected:s,busy:c,checked:l,pressed:u,current:d,level:f,expanded:p,value:{now:m,min:h,max:g,text:_}={}}=n===void 0?{}:n;if(Tk(e),s!==void 0&&YO.roles.get(t)?.props[`aria-selected`]===void 0)throw Error(`"aria-selected" is not supported on role "`+t+`".`);if(c!==void 0&&YO.roles.get(t)?.props[`aria-busy`]===void 0)throw Error(`"aria-busy" is not supported on role "`+t+`".`);if(l!==void 0&&YO.roles.get(t)?.props[`aria-checked`]===void 0)throw Error(`"aria-checked" is not supported on role "`+t+`".`);if(u!==void 0&&YO.roles.get(t)?.props[`aria-pressed`]===void 0)throw Error(`"aria-pressed" is not supported on role "`+t+`".`);if(d!==void 0&&YO.roles.get(t)?.props[`aria-current`]===void 0)throw Error(`"aria-current" is not supported on role "`+t+`".`);if(f!==void 0&&t!==`heading`)throw Error(`Role "`+t+`" cannot have "level" property.`);if(m!==void 0&&YO.roles.get(t)?.props[`aria-valuenow`]===void 0)throw Error(`"aria-valuenow" is not supported on role "`+t+`".`);if(g!==void 0&&YO.roles.get(t)?.props[`aria-valuemax`]===void 0)throw Error(`"aria-valuemax" is not supported on role "`+t+`".`);if(h!==void 0&&YO.roles.get(t)?.props[`aria-valuemin`]===void 0)throw Error(`"aria-valuemin" is not supported on role "`+t+`".`);if(_!==void 0&&YO.roles.get(t)?.props[`aria-valuetext`]===void 0)throw Error(`"aria-valuetext" is not supported on role "`+t+`".`);if(p!==void 0&&YO.roles.get(t)?.props[`aria-expanded`]===void 0)throw Error(`"aria-expanded" is not supported on role "`+t+`".`);let v=new WeakMap;function y(e){return v.has(e)||v.set(e,Zk(e)),v.get(e)}return Array.from(e.querySelectorAll(Wj(t))).filter(e=>{if(e.hasAttribute(`role`)){let n=e.getAttribute(`role`);if(o)return n.split(` `).filter(Boolean).some(e=>e===t);let[r]=n.split(` `);return r===t}return $k(e).some(e=>e===t)}).filter(e=>{if(s!==void 0)return s===iA(e);if(c!==void 0)return c===aA(e);if(l!==void 0)return l===oA(e);if(u!==void 0)return u===sA(e);if(d!==void 0)return d===cA(e);if(p!==void 0)return p===lA(e);if(f!==void 0)return f===dA(e);if(m!==void 0||g!==void 0||h!==void 0||_!==void 0){let t=!0;return m!==void 0&&t&&(t=m===fA(e)),g!==void 0&&t&&(t=g===pA(e)),h!==void 0&&t&&(t=h===mA(e)),_!==void 0&&(t&&=Gk(hA(e)??null,e,_,e=>e)),t}return!0}).filter(e=>i===void 0?!0:Gk(JO(e,{computedStyleSupportsPseudoElements:Ik().computedStyleSupportsPseudoElements}),e,i,e=>e)).filter(e=>a===void 0?!0:Gk(KO(e,{computedStyleSupportsPseudoElements:Ik().computedStyleSupportsPseudoElements}),e,a,e=>e)).filter(e=>r===!1?Qk(e,{isSubtreeInaccessible:y})===!1:!0)};function Wj(e){let t=`*[role~="`+e+`"]`,n=YO.roleElements.get(e)??new Set,r=new Set(Array.from(n).map(e=>{let{name:t}=e;return t}));return[t].concat(Array.from(r)).join(`,`)}var Gj=e=>{let t=``;return t=e===void 0?``:typeof e==`string`?` and name "`+e+`"`:" and name `"+e+"`",t},Kj=function(e,t,n){let{name:r}=n===void 0?{}:n;return`Found multiple elements with the role "`+t+`"`+Gj(r)},qj=function(e,t,n){let{hidden:r=Ik().defaultHidden,name:i,description:a}=n===void 0?{}:n;if(Ik()._disableExpensiveErrorDiagnostics)return`Unable to find role="`+t+`"`+Gj(i);let o=``;Array.from(e.children).forEach(e=>{o+=nA(e,{hidden:r,includeDescription:a!==void 0})});let s;s=o.length===0?r===!1?"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":`There are no available roles.`:(`
331
- Here are the `+(r===!1?`accessible`:`available`)+` roles:
332
-
333
- `+o.replace(/\n/g,`
334
- `).replace(/\n\s\s\n/g,`
335
-
336
- `)+`
337
- `).trim();let c=``;c=i===void 0?``:typeof i==`string`?` and name "`+i+`"`:" and name `"+i+"`";let l=``;return l=a===void 0?``:typeof a==`string`?` and description "`+a+`"`:" and description `"+a+"`",(`
338
- Unable to find an `+(r===!1?`accessible `:``)+`element with the role "`+t+`"`+c+l+`
339
-
340
- `+s).trim()},Jj=PA(Uj,Uj.name,`queryAll`),[Yj,Xj,Zj,Qj,$j]=FA(Uj,Kj,qj),eM=()=>Ik().testIdAttribute,tM=function(){var e=[...arguments];return Tk(e[0]),DA(eM(),...e)},nM=(e,t)=>`Found multiple elements by: [`+eM()+`="`+t+`"]`,rM=(e,t)=>`Unable to find an element by: [`+eM()+`="`+t+`"]`,iM=PA(tM,tM.name,`queryAll`),[aM,oM,sM,cM,lM]=FA(tM,nM,rM),uM=Object.freeze({__proto__:null,queryAllByLabelText:YA,queryByLabelText:UA,getAllByLabelText:qA,getByLabelText:JA,findAllByLabelText:GA,findByLabelText:KA,queryByPlaceholderText:ej,queryAllByPlaceholderText:$A,getByPlaceholderText:nj,getAllByPlaceholderText:tj,findAllByPlaceholderText:rj,findByPlaceholderText:ij,queryByText:lj,queryAllByText:cj,getByText:dj,getAllByText:uj,findAllByText:fj,findByText:pj,queryByDisplayValue:vj,queryAllByDisplayValue:_j,getByDisplayValue:bj,getAllByDisplayValue:yj,findAllByDisplayValue:xj,findByDisplayValue:Sj,queryByAltText:Oj,queryAllByAltText:Dj,getByAltText:Aj,getAllByAltText:kj,findAllByAltText:jj,findByAltText:Mj,queryByTitle:Rj,queryAllByTitle:Lj,getByTitle:Bj,getAllByTitle:zj,findAllByTitle:Vj,findByTitle:Hj,queryByRole:Yj,queryAllByRole:Jj,getAllByRole:Xj,getByRole:Zj,findAllByRole:Qj,findByRole:$j,queryByTestId:aM,queryAllByTestId:iM,getByTestId:sM,getAllByTestId:oM,findAllByTestId:cM,findByTestId:lM});function dM(e,t,n){return t===void 0&&(t=uM),n===void 0&&(n={}),Object.keys(t).reduce((n,r)=>(n[r]=t[r].bind(null,e),n),n)}var fM=e=>!e||Array.isArray(e)&&!e.length;function pM(e){if(fM(e))throw Error(`The element(s) given to waitForElementToBeRemoved are already removed. waitForElementToBeRemoved requires that the element(s) exist(s) before waiting for removal.`)}async function mM(e,t){let n=Error(`Timed out in waitForElementToBeRemoved.`);if(typeof e!=`function`){pM(e);let t=(Array.isArray(e)?e:[e]).map(e=>{let t=e.parentElement;if(t===null)return()=>null;for(;t.parentElement;)t=t.parentElement;return()=>t.contains(e)?e:null});e=()=>t.map(e=>e()).filter(Boolean)}return pM(e()),wA(()=>{let t;try{t=e()}catch(e){if(e.name===`TestingLibraryElementError`)return;throw e}if(!fM(t))throw n},t)}var hM={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}}},gM={doubleClick:`dblClick`};function _M(e,t){return Ik().eventWrapper(()=>{if(!t)throw Error(`Unable to fire an event - please provide an event object.`);if(!e)throw Error(`Unable to fire a "`+t.type+`" event - please provide a DOM element.`);return e.dispatchEvent(t)})}function vM(e,t,n,r){let{EventType:i=`Event`,defaultInit:a={}}=r===void 0?{}:r;if(!t)throw Error(`Unable to fire a "`+e+`" event - please provide a DOM element.`);let o={...a,...n},{target:{value:s,files:c,...l}={}}=o;s!==void 0&&yM(t,s),c!==void 0&&Object.defineProperty(t,`files`,{configurable:!0,enumerable:!0,writable:!0,value:c}),Object.assign(t,l);let u=wk(t),d=u[i]||u.Event,f;if(typeof d==`function`)f=new d(e,o);else{f=u.document.createEvent(i);let{bubbles:t,cancelable:n,detail:r,...a}=o;f.initEvent(e,t,n,r),Object.keys(a).forEach(e=>{f[e]=a[e]})}return[`dataTransfer`,`clipboardData`].forEach(e=>{let t=o[e];typeof t==`object`&&(typeof u.DataTransfer==`function`?Object.defineProperty(f,e,{value:Object.getOwnPropertyNames(t).reduce((e,n)=>(Object.defineProperty(e,n,{value:t[n]}),e),new u.DataTransfer)}):Object.defineProperty(f,e,{value:t}))}),f}Object.keys(hM).forEach(e=>{let{EventType:t,defaultInit:n}=hM[e],r=e.toLowerCase();vM[e]=(e,i)=>vM(r,e,i,{EventType:t,defaultInit:n}),_M[e]=(t,n)=>_M(t,vM[e](t,n))});function yM(e,t){let{set:n}=Object.getOwnPropertyDescriptor(e,`value`)||{},r=Object.getPrototypeOf(e),{set:i}=Object.getOwnPropertyDescriptor(r,`value`)||{};if(i&&n!==i)i.call(e,t);else if(n)n.call(e,t);else throw Error(`The given element does not have a value setter`)}Object.keys(gM).forEach(e=>{let t=gM[e];_M[e]=function(){return _M[t](...arguments)}});function bM(e){return e.replace(/[ \t]*[\n][ \t]*/g,`
341
- `)}function xM(e){return XO.default.compressToEncodedURIComponent(bM(e))}function SM(e){return`https://testing-playground.com/#markup=`+xM(e)}var CM={debug:(e,t,n)=>Array.isArray(e)?e.forEach(e=>Mk(e,t,n)):Mk(e,t,n),logTestingPlaygroundURL:function(e){if(e===void 0&&(e=Ck().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=SM(e.innerHTML);return console.log(`Open this URL in your browser
342
-
343
- `+t),t}},wM=typeof document<`u`&&document.body?dM(document.body,uM,CM):Object.keys(uM).reduce((e,t)=>(e[t]=()=>{throw 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),CM);function TM(e,t,n){return e.namespaceURI&&e.namespaceURI!==`http://www.w3.org/1999/xhtml`||(t=Array.isArray(t)?t:[t],!t.includes(e.tagName.toLowerCase()))?!1:n?Object.entries(n).every(([t,n])=>e[t]===n):!0}function EM(e){var t;if(DM(e)&&e.defaultView)return e.defaultView;if((t=e.ownerDocument)!=null&&t.defaultView)return e.ownerDocument.defaultView;throw Error(`Could not determine window of node. Node was ${OM(e)}`)}function DM(e){return e.nodeType===9}function OM(e){return typeof e==`function`?`function ${e.name}`:e===null?`null`:String(e)}function kM(e,t){return new Promise((n,r)=>{let i=new t;i.onerror=r,i.onabort=r,i.onload=()=>{n(String(i.result))},i.readAsText(e)})}function AM(e,t){let n={...t,length:t.length,item:e=>n[e],[Symbol.iterator]:function*(){for(let e=0;e<n.length;e++)yield n[e]}};return n.constructor=e.FileList,e.FileList&&Object.setPrototypeOf(n,e.FileList.prototype),Object.freeze(n),n}function jM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var MM=class{getAsFile(){return this.file}getAsString(e){typeof this.data==`string`&&e(this.data)}webkitGetAsEntry(){throw Error(`not implemented`)}constructor(e,t){jM(this,`kind`,void 0),jM(this,`type`,void 0),jM(this,`file`,null),jM(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)}},NM=class extends Array{add(...e){let t=new MM(e[0],e[1]);return this.push(t),t}clear(){this.splice(0,this.length)}remove(e){this.splice(e,1)}};function PM(e,t){let[n,r]=e.split(`/`),i=!r||r===`*`;return r=>t?r.type===(i?n:e):i?r.type.startsWith(`${n}/`):r.type===n}function FM(e){return new class{getData(e){let t=this.items.find(PM(e,!0))??this.items.find(PM(e,!1)),n=``;return t?.getAsString(e=>{n=e}),n}setData(e,t){let n=this.items.findIndex(PM(e,!0)),r=new MM(t,e);n>=0?this.items.splice(n,1,r):this.items.push(r)}clearData(e){if(e){let t=this.items.findIndex(PM(e,!0));t>=0&&this.items.remove(t)}else this.items.clear()}get types(){let e=[];return this.files.length&&e.push(`Files`),this.items.forEach(t=>e.push(t.type)),Object.freeze(e),e}setDragImage(){}constructor(){jM(this,`dropEffect`,`none`),jM(this,`effectAllowed`,`uninitialized`),jM(this,`items`,new NM),jM(this,`files`,AM(e,[]))}}}function IM(e,t=[]){let n=typeof e.DataTransfer>`u`?FM(e):new e.DataTransfer;return Object.defineProperty(n,`files`,{get:()=>AM(e,t)}),n}async function LM(e,t){return t.kind===`file`?t.getAsFile():new e.Blob([await new Promise(e=>t.getAsString(e))],{type:t.type})}function RM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zM(e,...t){let n=Object.fromEntries(t.map(e=>[typeof e==`string`?`text/plain`:e.type,Promise.resolve(e)]));return typeof e.ClipboardItem<`u`?new e.ClipboardItem(n):new class{get types(){return Array.from(Object.keys(this.data))}async getType(t){let n=await this.data[t];if(!n)throw Error(`${t} is not one of the available MIME types on this item.`);return n instanceof e.Blob?n:new e.Blob([n],{type:t})}constructor(e){RM(this,`data`,void 0),this.data=e}}(n)}var BM=Symbol(`Manage ClipboardSub`);function VM(e,t){return Object.assign(new class extends e.EventTarget{async read(){return Array.from(this.items)}async readText(){let t=``;for(let n of this.items){let r=n.types.includes(`text/plain`)?`text/plain`:n.types.find(e=>e.startsWith(`text/`));r&&(t+=await n.getType(r).then(t=>kM(t,e.FileReader)))}return t}async write(e){this.items=e}async writeText(t){this.items=[zM(e,t)]}constructor(...e){super(...e),RM(this,`items`,[])}},{[BM]:t})}function HM(e){return!!e?.[BM]}function UM(e){if(HM(e.navigator.clipboard))return e.navigator.clipboard[BM];let t=Object.getOwnPropertyDescriptor(e.navigator,`clipboard`),n,r={resetClipboardStub:()=>{n=VM(e,r)},detachClipboardStub:()=>{t?Object.defineProperty(e.navigator,`clipboard`,t):Object.defineProperty(e.navigator,`clipboard`,{value:void 0,configurable:!0})}};return n=VM(e,r),Object.defineProperty(e.navigator,`clipboard`,{get:()=>n,configurable:!0}),n[BM]}function WM(e){HM(e.navigator.clipboard)&&e.navigator.clipboard[BM].resetClipboardStub()}function GM(e){HM(e.navigator.clipboard)&&e.navigator.clipboard[BM].detachClipboardStub()}async function KM(e){let t=e.defaultView,n=t?.navigator.clipboard,r=n&&await n.read();if(!r)throw Error(`The Clipboard API is unavailable.`);let i=IM(t);for(let e of r)for(let n of e.types)i.setData(n,await e.getType(n).then(e=>kM(e,t.FileReader)));return i}async function qM(e,t){let n=EM(e),r=n.navigator.clipboard,i=[];for(let e=0;e<t.items.length;e++){let r=t.items[e],a=await LM(n,r);i.push(zM(n,a))}if(!(r&&await r.write(i).then(()=>!0,()=>!1)))throw Error(`The Clipboard API is unavailable.`)}var JM=globalThis;typeof JM.afterEach==`function`&&JM.afterEach(()=>{typeof globalThis.window<`u`&&WM(globalThis.window)}),typeof JM.afterAll==`function`&&JM.afterAll(()=>{typeof globalThis.window<`u`&&GM(globalThis.window)});var YM=[`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 XM(e){return e.matches(YM)}function ZM(e){return new e.constructor(e.type,e)}function QM(e){for(let n=e;n;n=n.parentElement)if(TM(n,[`button`,`input`,`select`,`textarea`,`optgroup`,`option`])){if(n.hasAttribute(`disabled`))return!0}else if(TM(n,`fieldset`)){var t;if(n.hasAttribute(`disabled`)&&!((t=n.querySelector(`:scope > legend`))!=null&&t.contains(e)))return!0}else if(n.tagName.includes(`-`)&&n.constructor.formAssociated&&n.hasAttribute(`disabled`))return!0;return!1}function $M(e){let t=e.activeElement;return t?.shadowRoot?$M(t.shadowRoot):QM(t)?e.ownerDocument?e.ownerDocument.body:e.body:t}function eN(e){return $M(e)??e.body}function tN(e,t){let n=e;do{if(t(n))return n;n=n.parentElement}while(n&&n!==e.ownerDocument.body)}function nN(e){return e.hasAttribute(`contenteditable`)&&(e.getAttribute(`contenteditable`)==`true`||e.getAttribute(`contenteditable`)==``)}function rN(e){let t=iN(e);return t&&(t.closest(`[contenteditable=""]`)||t.closest(`[contenteditable="true"]`))}function iN(e){return e.nodeType===1?e:e.parentElement}var aN=(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})(aN||{});function oN(e){return TM(e,`button`)||TM(e,`input`)&&e.type in aN}function sN(e){return lN(e)&&!e.readOnly||nN(e)}var cN=(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})(cN||{});function lN(e){return TM(e,`textarea`)||TM(e,`input`)&&e.type in cN}function uN(e){return fN(e)&&lN(e)}function dN(e){return fN(e)&&oN(e)}function fN(e){return e.nodeType===1}function pN(e){let t=e.ownerDocument.getSelection();if(t?.focusNode&&uN(e)){let n=rN(t.focusNode);if(n){if(!t.isCollapsed){let e=n.firstChild?.nodeType===3?n.firstChild:n;t.setBaseAndExtent(e,0,e,0)}}else t.setBaseAndExtent(e,0,e,0)}}function mN(e,t){return Ik().eventWrapper(e)}function hN(e){let t=tN(e,XM),n=$M(e.ownerDocument);(t??e.ownerDocument.body)!==n&&(mN(t?()=>t.focus():()=>n?.blur()),pN(t??e.ownerDocument.body))}function gN(e){!XM(e)||$M(e.ownerDocument)!==e||mN(()=>e.blur())}var _N={};_N.click=(e,t,n)=>{let r=t.closest(`button,input,label,select,textarea`),i=r&&TM(r,`label`)&&r.control;if(i&&i!==t)return()=>{XM(i)&&(hN(i),n.dispatchEvent(i,ZM(e)))};if(TM(t,`input`,{type:`file`}))return()=>{gN(t),t.dispatchEvent(new(EM(t)).Event(`fileDialog`)),hN(t)}};var vN=Symbol(`Displayed value in UI`),yN=Symbol(`Displayed selection in UI`),bN=Symbol(`Initial value to compare on blur`);function xN(e){return typeof e==`object`&&vN in e}function SN(e){return!!e&&typeof e==`object`&&yN in e}function CN(e,t){e[bN]===void 0&&(e[bN]=e.value),e[vN]=t,e.value=Object.assign(new String(t),{[vN]:!0})}function wN(e){return e[vN]===void 0?e.value:String(e[vN])}function TN(e){e[vN]=void 0}function EN(e){e[bN]=void 0}function DN(e){return e[bN]}function ON(e,t){e[yN]=t}function kN(e,{focusOffset:t,anchorOffset:n=t},r=`replace`){let i=wN(e).length,a=e=>Math.max(0,Math.min(i,e)),o=r===`replace`||e[yN]===void 0?a(n):e[yN].anchorOffset,s=a(t),c=Math.min(o,s),l=Math.max(o,s);if(e[yN]={anchorOffset:o,focusOffset:s},e.selectionStart===c&&e.selectionEnd===l)return;let u=Object.assign(new Number(c),{[yN]:!0});try{e.setSelectionRange(u,l)}catch{}}function AN(e){let t=e[yN]??{anchorOffset:e.selectionStart??0,focusOffset:e.selectionEnd??0};return{...t,startOffset:Math.min(t.anchorOffset,t.focusOffset),endOffset:Math.max(t.anchorOffset,t.focusOffset)}}function jN(e){return!!e[yN]}function MN(e){e[yN]=void 0}var NN=globalThis.parseInt;function PN(e){let t=e.replace(/\D/g,``);if(t.length<2)return e;let n=NN(t[0],10),r=NN(t[1],10);if(n>=3||n===2&&r>=4){let e;return e=n>=3?1:2,FN(t,e)}return e.length===2?e:FN(t,2)}function FN(e,t){let n=e.slice(0,t),r=Math.min(NN(n,10),23),i=NN(e.slice(t),10),a=Math.min(i,59);return`${r.toString().padStart(2,`0`)}:${a.toString().padStart(2,`0`)}`}function IN(e,t){let n=e.cloneNode();return n.value=t,n.value===t}var LN=(function(e){return e.email=`email`,e.password=`password`,e.search=`search`,e.telephone=`telephone`,e.text=`text`,e.url=`url`,e})(LN||{});function RN(e){let t=e.getAttribute(`maxlength`)??``;return/^\d+$/.test(t)&&Number(t)>=0?Number(t):void 0}function zN(e){return TM(e,`textarea`)||TM(e,`input`)&&e.type in LN}function BN(e,t,n,r){if(GN(e)&&t+n>=0&&t+n<=e.nodeValue.length)return{node:e,offset:t+n};let i=VN(e,t,n);if(i){if(GN(i))return{node:i,offset:n>0?Math.min(1,i.nodeValue.length):Math.max(i.nodeValue.length-1,0)};if(TM(i,`br`)){let e=VN(i,void 0,n);return e?GN(e)?{node:e,offset:n>0?0:e.nodeValue.length}:n<0&&TM(e,`br`)?{node:i.parentNode,offset:UN(i)}:{node:e.parentNode,offset:UN(e)+(n>0?0:1)}:n<0&&r===`deleteContentBackward`?{node:i.parentNode,offset:UN(i)}:void 0}else return{node:i.parentNode,offset:UN(i)+(n>0?1:0)}}}function VN(e,t,n){let r=Number(t)+(n<0?-1:0);return t!==void 0&&WN(e)&&r>=0&&r<e.children.length&&(e=e.children[r]),KN(e,n===1?`next`:`previous`,HN)}function HN(e){if(GN(e))return!0;if(WN(e)){if(TM(e,[`input`,`textarea`]))return e.type!==`hidden`;if(TM(e,`br`))return!0}return!1}function UN(e){let t=0;for(;e.previousSibling;)t++,e=e.previousSibling;return t}function WN(e){return e.nodeType===1}function GN(e){return e.nodeType===3}function KN(e,t,n){for(;;){let r=e[`${t}Sibling`];if(r){if(e=qN(r,t===`next`?`first`:`last`),n(e))return e}else if(e.parentNode&&(!WN(e.parentNode)||!nN(e.parentNode)&&e.parentNode!==e.ownerDocument?.body))e=e.parentNode;else break}}function qN(e,t){for(;e.hasChildNodes();)e=e[`${t}Child`];return e}var JN=Symbol(`Track programmatic changes for React workaround`);function YN(e){return Object.getOwnPropertyNames(e).some(e=>e.startsWith(`__react`))&&EM(e).REACT_VERSION===17}function XN(e){YN(e)&&(e[JN]={previousValue:String(e.value),tracked:[]})}function ZN(e,t){var n,r;(r=e[JN])==null||(n=r.tracked)==null||n.push(t),e[JN]||(TN(e),kN(e,{focusOffset:t.length}))}function QN(e,t){var n;let r=e[JN];if(e[JN]=void 0,!(!(r==null||(n=r.tracked)==null)&&n.length))return;let i=r.tracked.length===2&&r.tracked[0]===r.previousValue&&r.tracked[1]===e.value;i||TN(e),jN(e)&&kN(e,{focusOffset:i?t:e.value.length})}function $N(e){let t=eP(e);if(t&&uN(t))return{type:`input`,selection:AN(t)};let n=t?.ownerDocument.getSelection();return{type:rN(e)&&n?.anchorNode&&rN(n.anchorNode)?`contenteditable`:`default`,selection:n}}function eP(e){return e.nodeType===1?e:e.parentElement}function tP(e){let t=$N(e);if(t.type===`input`)return t.selection;if(t.type===`contenteditable`)return t.selection?.getRangeAt(0)}function nP({focusNode:e,focusOffset:t,anchorNode:n=e,anchorOffset:r=t}){var i,a;if($N(e).type===`input`)return kN(e,{anchorOffset:r,focusOffset:t});(a=n.ownerDocument)==null||(i=a.getSelection())==null||i.setBaseAndExtent(n,r,e,t)}function rP(e){return TM(e,`input`)&&[`date`,`time`].includes(e.type)}function iP(e,t,n,r=`insertText`){let i=tP(t);i&&(!rP(t)&&!e.dispatchUIEvent(t,`beforeinput`,{inputType:r,data:n})||(`startContainer`in i?aP(e,t,i,n,r):oP(e,t,i,n,r)))}function aP(e,t,n,r,i){let a=!1;if(!n.collapsed)a=!0,n.deleteContents();else if([`deleteContentBackward`,`deleteContentForward`].includes(i)){let e=BN(n.startContainer,n.startOffset,i===`deleteContentBackward`?-1:1,i);if(e){a=!0;let t=n.cloneRange();t.comparePoint(e.node,e.offset)<0?t.setStart(e.node,e.offset):t.setEnd(e.node,e.offset),t.deleteContents()}}if(r)if(n.endContainer.nodeType===3){let e=n.endOffset;n.endContainer.insertData(e,r),n.setStart(n.endContainer,e+r.length),n.setEnd(n.endContainer,e+r.length)}else{let e=t.ownerDocument.createTextNode(r);n.insertNode(e),n.setStart(e,r.length),n.setEnd(e,r.length)}(a||r)&&e.dispatchUIEvent(t,`input`,{inputType:i})}function oP(e,t,n,r,i){let a=r;if(zN(t)){let e=RN(t);if(e!==void 0&&r.length>0){let n=e-t.value.length;if(n>0)a=r.substring(0,n);else return}}let{newValue:o,newOffset:s,oldValue:c}=sP(a,t,n,i);o===c&&s===n.startOffset&&s===n.endOffset||TM(t,`input`,{type:`number`})&&!lP(o)||(CN(t,o),nP({focusNode:t,anchorOffset:s,focusOffset:s}),rP(t)?IN(t,o)&&(cP(e,t,s,{}),e.dispatchUIEvent(t,`change`),EN(t)):cP(e,t,s,{data:r,inputType:i}))}function sP(e,t,{startOffset:n,endOffset:r},i){let a=wN(t),o=Math.max(0,n===r&&i===`deleteContentBackward`?n-1:n),s=a.substring(0,o),c=Math.min(a.length,n===r&&i===`deleteContentForward`?n+1:r),l=`${s}${e}${a.substring(c,a.length)}`,u=o+e.length;if(TM(t,`input`,{type:`time`})){let e=PN(l);e!==``&&IN(t,e)&&(l=e,u=e.length)}return{oldValue:a,newValue:l,newOffset:u}}function cP(e,t,n,r){e.dispatchUIEvent(t,`input`,r),QN(t,n)}function lP(e){let t=e.split(`e`,2);return!(/[^\d.\-e]/.test(e)||Number(e.match(/-/g)?.length)>2||Number(e.match(/\./g)?.length)>1||t[1]&&!/^-?\d*$/.test(t[1]))}_N.cut=(e,t,n)=>()=>{sN(t)&&iP(n,t,``,`deleteByCut`)};function uP(e){return e?nN(e)?e.textContent:wN(e):null}function dP(e){let t=EM(e);for(let n=e;n?.ownerDocument;n=n.parentElement){let{display:e,visibility:r}=t.getComputedStyle(n);if(e===`none`||r===`hidden`)return!1}return!0}function fP(e,t){let n=e.ownerDocument,r=n.querySelectorAll(YM),i=Array.from(r).filter(t=>t===e||!(Number(t.getAttribute(`tabindex`))<0||QM(t)));Number(e.getAttribute(`tabindex`))>=0&&i.sort((e,t)=>{let n=Number(e.getAttribute(`tabindex`)),r=Number(t.getAttribute(`tabindex`));return n===r?0:n===0?1:r===0?-1:n-r});let a={},o=[n.body],s=TM(e,`input`,{type:`radio`})?e.name:void 0;i.forEach(t=>{let n=t;if(TM(n,`input`,{type:`radio`})&&n.name){if(n===e){o.push(n);return}else if(n.name===s)return;if(n.checked){o=o.filter(e=>!TM(e,`input`,{type:`radio`,name:n.name})),o.push(n),a[n.name]=n;return}if(typeof a[n.name]<`u`)return}o.push(n)});for(let r=o.findIndex(t=>t===e);;)if(r+=t?-1:1,r===o.length?r=0:r===-1&&(r=o.length-1),o[r]===e||o[r]===n.body||dP(o[r]))return o[r]}function pP(e,t){if(uN(e)){let n=AN(e);nP({focusNode:e,focusOffset:n.startOffset===n.endOffset?n.focusOffset+t:t<0?n.startOffset:n.endOffset})}else{let n=e.ownerDocument.getSelection();if(!n?.focusNode)return;if(n.isCollapsed){let e=BN(n.focusNode,n.focusOffset,t);e&&nP({focusNode:e.node,focusOffset:e.offset})}else n[t<0?`collapseToStart`:`collapseToEnd`]()}}function mP(e){if(uN(e))return nP({focusNode:e,anchorOffset:0,focusOffset:wN(e).length});let t=rN(e)??e.ownerDocument.body;nP({focusNode:t,anchorOffset:0,focusOffset:t.childNodes.length})}function hP(e){if(uN(e))return AN(e).startOffset===0&&AN(e).endOffset===wN(e).length;let t=rN(e)??e.ownerDocument.body,n=e.ownerDocument.getSelection();return n?.anchorNode===t&&n.focusNode===t&&n.anchorOffset===0&&n.focusOffset===t.childNodes.length}function gP(e,t,n){if(uN(e))return nP({focusNode:e,anchorOffset:t,focusOffset:n});if(nN(e)&&e.firstChild?.nodeType===3)return nP({focusNode:e.firstChild,anchorOffset:t,focusOffset:n});throw Error(`Not implemented. The result of this interaction is unreliable.`)}function _P(e,t,n){let r=EM(t),i=Array.from(t.ownerDocument.querySelectorAll(t.name?`input[type="radio"][name="${r.CSS.escape(t.name)}"]`:`input[type="radio"][name=""], input[type="radio"]:not([name])`));for(let r=i.findIndex(e=>e===t)+n;;r+=n){if(i[r]||(r=n>0?0:i.length-1),i[r]===t)return;if(!QM(i[r])){hN(i[r]),e.dispatchUIEvent(i[r],`click`);return}}}_N.keydown=(e,t,n)=>vP[e.key]?.call(vP,e,t,n)??yP(e,t,n);var vP={ArrowDown:(e,t,n)=>{if(TM(t,`input`,{type:`radio`}))return()=>_P(n,t,1)},ArrowLeft:(e,t,n)=>TM(t,`input`,{type:`radio`})?()=>_P(n,t,-1):()=>pP(t,-1),ArrowRight:(e,t,n)=>TM(t,`input`,{type:`radio`})?()=>_P(n,t,1):()=>pP(t,1),ArrowUp:(e,t,n)=>{if(TM(t,`input`,{type:`radio`}))return()=>_P(n,t,-1)},Backspace:(e,t,n)=>{if(sN(t))return()=>{iP(n,t,``,`deleteContentBackward`)}},Delete:(e,t,n)=>{if(sN(t))return()=>{iP(n,t,``,`deleteContentForward`)}},End:(e,t)=>{if(TM(t,[`input`,`textarea`])||nN(t))return()=>{let e=uP(t)?.length??0;gP(t,e,e)}},Home:(e,t)=>{if(TM(t,[`input`,`textarea`])||nN(t))return()=>{gP(t,0,0)}},PageDown:(e,t)=>{if(TM(t,[`input`]))return()=>{let e=wN(t).length;gP(t,e,e)}},PageUp:(e,t)=>{if(TM(t,[`input`]))return()=>{gP(t,0,0)}},Tab:(e,t,n)=>()=>{let e=fP(t,n.system.keyboard.modifiers.Shift);hN(e),uN(e)&&kN(e,{anchorOffset:0,focusOffset:e.value.length})}},yP=(e,t,n)=>{if(e.code===`KeyA`&&n.system.keyboard.modifiers.Control)return()=>mP(t)};_N.keypress=(e,t,n)=>{if(e.key===`Enter`){if(TM(t,`button`)||TM(t,`input`)&&bP.includes(t.type)||TM(t,`a`)&&t.href)return()=>{n.dispatchUIEvent(t,`click`)};if(TM(t,`input`)){let e=t.form,r=e?.querySelector(`input[type="submit"], button:not([type]), button[type="submit"]`);return r?()=>n.dispatchUIEvent(r,`click`):e&&xP.includes(t.type)&&e.querySelectorAll(`input`).length===1?()=>n.dispatchUIEvent(e,`submit`):void 0}}if(sN(t)){let r=e.key===`Enter`?nN(t)&&!n.system.keyboard.modifiers.Shift?`insertParagraph`:`insertLineBreak`:`insertText`,i=e.key===`Enter`?`
344
- `:e.key;return()=>iP(n,t,i,r)}};var bP=[`button`,`color`,`file`,`image`,`reset`,`submit`],xP=[`email`,`month`,`password`,`search`,`tel`,`text`,`url`,`week`];_N.keyup=(e,t,n)=>SP[e.key]?.call(SP,e,t,n);var SP={" ":(e,t,n)=>{if(oN(t))return()=>n.dispatchUIEvent(t,`click`)}};_N.paste=(e,t,n)=>{if(sN(t))return()=>{let r=e.clipboardData?.getData(`text`);r&&iP(n,t,r,`insertFromPaste`)}};var CP={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 wP(e){return CP[e].EventType}var TP=[`MouseEvent`,`PointerEvent`];function EP(e){return TP.includes(wP(e))}function DP(e){return wP(e)===`KeyboardEvent`}var OP={ClipboardEvent:[NP],Event:[],FocusEvent:[IP,PP],InputEvent:[IP,FP],MouseEvent:[IP,LP,zP],PointerEvent:[IP,LP,zP,BP],KeyboardEvent:[IP,LP,RP]};function kP(e,t,n){let r=EM(t),{EventType:i,defaultInit:a}=CP[e],o=new(AP(r))[i](e,a);var s={};for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&(s[c]=n[c]);return s.view=r,OP[i].forEach(function(e){e(o,s)}),o}function AP(e){let t=e.Event??class{},n=e.AnimationEvent??class extends t{},r=e.ClipboardEvent??class extends t{},i=e.PopStateEvent??class extends t{},a=e.ProgressEvent??class extends t{},o=e.TransitionEvent??class extends t{},s=e.UIEvent??class extends t{},c=e.CompositionEvent??class extends s{},l=e.FocusEvent??class extends s{},u=e.InputEvent??class extends s{},d=e.KeyboardEvent??class extends s{},f=e.MouseEvent??class extends s{};return{Event:t,AnimationEvent:n,ClipboardEvent:r,PopStateEvent:i,ProgressEvent:a,TransitionEvent:o,UIEvent:s,CompositionEvent:c,FocusEvent:l,InputEvent:u,KeyboardEvent:d,MouseEvent:f,DragEvent:e.DragEvent??class extends f{},PointerEvent:e.PointerEvent??class extends f{},TouchEvent:e.TouchEvent??class extends s{}}}function jP(e,t){for(let[n,r]of Object.entries(t))Object.defineProperty(e,n,{get:()=>r??null})}function MP(e){return Number(e??0)}function NP(e,{clipboardData:t}){jP(e,{clipboardData:t})}function PP(e,{relatedTarget:t}){jP(e,{relatedTarget:t})}function FP(e,{data:t,inputType:n,isComposing:r}){jP(e,{data:t,isComposing:!!r,inputType:String(n)})}function IP(e,{view:t,detail:n}){jP(e,{view:t,detail:MP(n??0)})}function LP(e,{altKey:t,ctrlKey:n,metaKey:r,shiftKey:i,modifierAltGraph:a,modifierCapsLock:o,modifierFn:s,modifierFnLock:c,modifierNumLock:l,modifierScrollLock:u,modifierSymbol:d,modifierSymbolLock:f}){jP(e,{altKey:!!t,ctrlKey:!!n,metaKey:!!r,shiftKey:!!i,getModifierState(e){return!!{Alt:t,AltGraph:a,CapsLock:o,Control:n,Fn:s,FnLock:c,Meta:r,NumLock:l,ScrollLock:u,Shift:i,Symbol:d,SymbolLock:f}[e]}})}function RP(e,{key:t,code:n,location:r,repeat:i,isComposing:a,charCode:o}){jP(e,{key:String(t),code:String(n),location:MP(r),repeat:!!i,isComposing:!!a,charCode:o})}function zP(e,{x:t,y:n,screenX:r,screenY:i,clientX:a=t,clientY:o=n,button:s,buttons:c,relatedTarget:l,offsetX:u,offsetY:d,pageX:f,pageY:p}){jP(e,{screenX:MP(r),screenY:MP(i),clientX:MP(a),x:MP(a),clientY:MP(o),y:MP(o),button:MP(s),buttons:MP(c),relatedTarget:l,offsetX:MP(u),offsetY:MP(d),pageX:MP(f),pageY:MP(p)})}function BP(e,{pointerId:t,width:n,height:r,pressure:i,tangentialPressure:a,tiltX:o,tiltY:s,twist:c,pointerType:l,isPrimary:u}){jP(e,{pointerId:MP(t),width:MP(n??1),height:MP(r??1),pressure:MP(i),tangentialPressure:MP(a),tiltX:MP(o),tiltY:MP(s),twist:MP(c),pointerType:String(l),isPrimary:!!u})}function VP(e,t,n,r=!1){(EP(t)||DP(t))&&(n={...n,...this.system.getUIEventModifiers()});let i=kP(t,e,n);return HP.call(this,e,i,r)}function HP(e,t,n=!1){let r=t.type,i=n?()=>{}:_N[r]?.call(_N,t,e,this);if(i){t.preventDefault();let n=!1;return Object.defineProperty(t,`defaultPrevented`,{get:()=>n}),Object.defineProperty(t,`preventDefault`,{value:()=>{n=t.cancelable}}),mN(()=>e.dispatchEvent(t)),n||i(),!n}return mN(()=>e.dispatchEvent(t))}function UP(e,t,n){let r=kP(t,e,n);mN(()=>e.dispatchEvent(r))}var WP=Symbol(`patched focus/blur methods`);function GP(e){if(e.prototype[WP])return;let{focus:t,blur:n}=e.prototype;Object.defineProperties(e.prototype,{focus:{configurable:!0,get:()=>i},blur:{configurable:!0,get:()=>a},[WP]:{configurable:!0,get:()=>({focus:t,blur:n})}});let r;function i(e){if(this.ownerDocument.visibilityState!==`hidden`)return t.call(this,e);let i=KP(this.ownerDocument);if(i===this)return;let a=Symbol(`focus call`);r=a,i&&(n.call(i),UP(i,`blur`,{relatedTarget:this}),UP(i,`focusout`,{relatedTarget:r===a?this:null})),r===a&&(t.call(this,e),UP(this,`focus`,{relatedTarget:i})),r===a&&UP(this,`focusin`,{relatedTarget:i})}function a(){if(this.ownerDocument.visibilityState!==`hidden`)return n.call(this);let e=KP(this.ownerDocument);e===this&&(r=Symbol(`blur call`),n.call(this),UP(e,`blur`,{relatedTarget:null}),UP(e,`focusout`,{relatedTarget:null}))}}function KP(e){let t=$M(e);return t?.tagName===`BODY`?null:t}var qP=Symbol(`Interceptor for programmatical calls`);function JP(e,t,n){let r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=Object.getOwnPropertyDescriptor(e,t),a=r?.set?`set`:`value`;if(typeof r?.[a]!=`function`||r[a][qP])throw Error(`Element ${e.tagName} does not implement "${String(t)}".`);function o(...e){let{applyNative:t=!1,realArgs:o,then:s}=n.call(this,...e),c=(!t&&i||r)[a];a===`set`?c.call(this,o):c.call(this,...o),s?.()}o[qP]=qP,Object.defineProperty(e,t,{...i??r,[a]:o})}function YP(e){JP(e,`value`,function(e){let t=xN(e);return t&&XN(this),{applyNative:!!t,realArgs:XP(this,e),then:t?void 0:()=>ZN(this,String(e))}})}function XP(e,t){return TM(e,`input`,{type:`number`})&&String(t)!==``&&!Number.isNaN(Number(t))?String(Number(t)):String(t)}function ZP(e){JP(e,`setSelectionRange`,function(t,...n){let r=SN(t);return{applyNative:!!r,realArgs:[Number(t),...n],then:()=>r?void 0:MN(e)}}),JP(e,`selectionStart`,function(t){return{realArgs:t,then:()=>MN(e)}}),JP(e,`selectionEnd`,function(t){return{realArgs:t,then:()=>MN(e)}}),JP(e,`select`,function(){return{realArgs:[],then:()=>ON(e,{anchorOffset:0,focusOffset:wN(e).length})}})}function QP(e){JP(e,`setRangeText`,function(...t){return{realArgs:t,then:()=>{TN(e),MN(e)}}})}var $P=Symbol(`Node prepared with document state workarounds`);function eF(e){e[$P]||(e.addEventListener(`focus`,e=>{let t=e.target;tF(t)},{capture:!0,passive:!0}),e.activeElement&&tF(e.activeElement),e.addEventListener(`blur`,e=>{let t=e.target,n=DN(t);n!==void 0&&(t.value!==n&&UP(t,`change`),EN(t))},{capture:!0,passive:!0}),e[$P]=$P)}function tF(e){e[$P]||(TM(e,[`input`,`textarea`])&&(YP(e),ZP(e),QP(e)),e[$P]=$P)}function nF(e){return rF(e)?e:e.ownerDocument}function rF(e){return e.nodeType===9}var iF=(function(e){return e[e.Trigger=2]=`Trigger`,e[e.Call=1]=`Call`,e})({});function aF(e,t){e.levelRefs[t]={}}function oF(e,t){return e.levelRefs[t]}function sF(e){let t=e.delay;if(typeof t==`number`)return Promise.all([new Promise(e=>globalThis.setTimeout(()=>e(),t)),e.advanceTimers(t)])}var cF=(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 lF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var uF=(function(e){return e[e.STANDARD=0]=`STANDARD`,e[e.LEFT=1]=`LEFT`,e[e.RIGHT=2]=`RIGHT`,e[e.NUMPAD=3]=`NUMPAD`,e})({}),dF=[`Alt`,`AltGraph`,`Control`,`Fn`,`Meta`,`Shift`,`Symbol`];function fF(e){return dF.includes(e)}var pF=[`CapsLock`,`FnLock`,`NumLock`,`ScrollLock`,`SymbolLock`];function mF(e){return pF.includes(e)}var hF=class{isKeyPressed(e){return this.pressed.has(String(e.code))}getPressedKeys(){return this.pressed.values().map(e=>e.keyDef)}async keydown(e,t){let n=String(t.key),r=String(t.code),i=eN(e.config.document);this.setKeydownTarget(i),this.pressed.add(r,t),fF(n)&&(this.modifiers[n]=!0);let a=e.dispatchUIEvent(i,`keydown`,{key:n,code:r});mF(n)&&!this.modifiers[n]&&(this.modifiers[n]=!0,this.modifierLockStart[n]=!0),a&&this.pressed.setUnprevented(r),a&&this.hasKeyPress(n)&&e.dispatchUIEvent(eN(e.config.document),`keypress`,{key:n,code:r,charCode:t.key===`Enter`?13:String(t.key).charCodeAt(0)})}async keyup(e,t){let n=String(t.key),r=String(t.code),i=this.pressed.isUnprevented(r);this.pressed.delete(r),fF(n)&&!this.pressed.values().find(e=>e.keyDef.key===n)&&(this.modifiers[n]=!1),e.dispatchUIEvent(eN(e.config.document),`keyup`,{key:n,code:r},!i),mF(n)&&this.modifiers[n]&&(this.modifierLockStart[n]?this.modifierLockStart[n]=!1:this.modifiers[n]=!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){lF(this,`system`,void 0),lF(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}),lF(this,`pressed`,new class{add(e,t){var n,r;(n=this.registry)[r=e]??(n[r]={keyDef:t,unpreventedDefault:!1})}has(e){return!!this.registry[e]}setUnprevented(e){let t=this.registry[e];t&&(t.unpreventedDefault=!0)}isUnprevented(e){var t;return!!((t=this.registry[e])!=null&&t.unpreventedDefault)}delete(e){delete this.registry[e]}values(){return Object.values(this.registry)}constructor(){lF(this,`registry`,{})}}),lF(this,`carryChar`,``),lF(this,`lastKeydownTarget`,void 0),lF(this,`modifierLockStart`,{}),this.system=e}},gF=[...`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:uF.LEFT},{code:`AltRight`,key:`Alt`,location:uF.RIGHT},{code:`ShiftLeft`,key:`Shift`,location:uF.LEFT},{code:`ShiftRight`,key:`Shift`,location:uF.RIGHT},{code:`ControlLeft`,key:`Control`,location:uF.LEFT},{code:`ControlRight`,key:`Control`,location:uF.RIGHT},{code:`MetaLeft`,key:`Meta`,location:uF.LEFT},{code:`MetaRight`,key:`Meta`,location:uF.RIGHT},{code:`OSLeft`,key:`OS`,location:uF.LEFT},{code:`OSRight`,key:`OS`,location:uF.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`}],_F=[{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 vF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yF=class{getButtons(){let e=0;for(let t of Object.keys(this.pressed))e|=2**Number(t);return e}down(e){let t=xF(e.button);if(t in this.pressed){this.pressed[t].push(e);return}return this.pressed[t]=[e],t}up(e){let t=xF(e.button);if(t in this.pressed&&(this.pressed[t]=this.pressed[t].filter(t=>t.name!==e.name),this.pressed[t].length===0))return delete this.pressed[t],t}constructor(){vF(this,`pressed`,{})}},bF={primary:0,secondary:1,auxiliary:2,back:3,X1:3,forward:4,X2:4};function xF(e=0){return e in bF?bF[e]:Number(e)}var SF={1:2,2:1};function CF(e){return e=xF(e),e in SF?SF[e]:e}function wF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var TF=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(){wF(this,`pressedKeys`,new Set)}};function EF(e,t){let n=[];for(let t=e;t;t=t.parentElement)n.push(t);let r=[];for(let e=t;e;e=e.parentElement)r.push(e);let i=0;for(;!(i>=n.length||i>=r.length||n[n.length-1-i]!==r[r.length-1-i]);i++);return[n.slice(0,n.length-i),r.slice(0,r.length-i),r.slice(r.length-i)]}function DF({target:e,node:t,offset:n}){return uN(e)?{node:e,offset:n??wN(e).length}:t?{node:t,offset:n??(t.nodeType===3?t.nodeValue.length:t.childNodes.length)}:OF(e,n)}function OF(e,t,n=!0){let r=t===void 0?e.childNodes.length-1:0,i=t===void 0?-1:1;for(;t===void 0?r>=(n?Math.max(e.childNodes.length-1,0):0):r<=e.childNodes.length;){if(t&&r===e.childNodes.length)throw Error(`The given offset is out of bounds.`);let n=e.childNodes.item(r),a=String(n.textContent);if(a.length)if(t!==void 0&&a.length<t)t-=a.length;else{if(n.nodeType===1)return OF(n,t,!1);if(n.nodeType===3)return{node:n,offset:t??n.nodeValue.length}}r+=i}return{node:e,offset:e.childNodes.length}}function kF({document:e,target:t,clickCount:n,node:r,offset:i}){if(dN(t))return;let a=uN(t),o=String(a?wN(t):t.textContent),[s,c]=r?[i,i]:AF(o,i,n);if(a)return kN(t,{anchorOffset:s??o.length,focusOffset:c??o.length}),{node:t,start:s??0,end:c??o.length};{let{node:n,offset:i}=DF({target:t,node:r,offset:s}),{node:a,offset:o}=DF({target:t,node:r,offset:c}),l=t.ownerDocument.createRange();try{l.setStart(n,i),l.setEnd(a,o)}catch{throw Error(`The given offset is out of bounds.`)}let u=e.getSelection();return u?.removeAllRanges(),u?.addRange(l.cloneRange()),l}}function AF(e,t,n){if(n%3==1||e.length===0)return[t,t];let r=t??e.length;return n%3==2?[r-e.substr(0,t).match(/(\w+|\s+|\W)?$/)[0].length,t===void 0?t:t+e.substr(t).match(/^(\w+|\s+|\W)?/)[0].length]:[r-e.substr(0,t).match(/[^\r\n]*$/)[0].length,t===void 0?t:t+e.substr(t).match(/^[^\r\n]*/)[0].length]}function jF(e,{document:t,target:n,node:r,offset:i}){let a=DF({target:n,node:r,offset:i});if(`node`in e){if(a.node===e.node){let t=a.offset<e.start?e.end:e.start,n=a.offset>e.end||a.offset<e.start?a.offset:e.end;kN(e.node,{anchorOffset:t,focusOffset:n})}}else{let n=e.cloneRange(),r=n.comparePoint(a.node,a.offset);r<0?n.setStart(a.node,a.offset):r>0&&n.setEnd(a.node,a.offset);let i=t.getSelection();i?.removeAllRanges(),i?.addRange(n.cloneRange())}}function MF(e,t){return e.target!==t.target||e.coords?.x!==t.coords?.x||e.coords?.y!==t.coords?.y||e.coords?.clientX!==t.coords?.clientX||e.coords?.clientY!==t.coords?.clientY||e.coords?.offsetX!==t.coords?.offsetX||e.coords?.offsetY!==t.coords?.offsetY||e.coords?.pageX!==t.coords?.pageX||e.coords?.pageY!==t.coords?.pageY||e.coords?.screenX!==t.coords?.screenX||e.coords?.screenY!==t.coords?.screenY||e.caret?.node!==t.caret?.node||e.caret?.offset!==t.caret?.offset}function NF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var PF=class{move(e,t,n){let r=this.position,i=this.getTarget(e);if(this.position=t,!MF(r,t))return;let a=this.getTarget(e),o=this.getEventInit(`mousemove`),[s,c]=EF(i,a);return{leave:()=>{i!==a&&(e.dispatchUIEvent(i,`mouseout`,o),s.forEach(t=>e.dispatchUIEvent(t,`mouseleave`,o)))},enter:()=>{i!==a&&(e.dispatchUIEvent(a,`mouseover`,o),c.forEach(t=>e.dispatchUIEvent(t,`mouseenter`,o)))},move:()=>{n||(e.dispatchUIEvent(a,`mousemove`,o),this.modifySelecting(e))}}}down(e,t,n){let r=this.buttons.down(t);if(r===void 0)return;let i=this.getTarget(e);this.buttonDownTarget[r]=i;let a=this.getEventInit(`mousedown`,t.button),o=QM(i);!n&&(o||e.dispatchUIEvent(i,`mousedown`,a))&&(this.startSelecting(e,a.detail),hN(i)),!o&&CF(t.button)===2&&e.dispatchUIEvent(i,`contextmenu`,this.getEventInit(`contextmenu`,t.button))}up(e,t,n){let r=this.buttons.up(t);if(r===void 0)return;let i=this.getTarget(e);if(!QM(i)){if(!n){let n=this.getEventInit(`mouseup`,t.button);e.dispatchUIEvent(i,`mouseup`,n),this.endSelecting()}let a=EF(this.buttonDownTarget[r],i)[2][0];if(a){let n=this.getEventInit(`click`,t.button);n.detail&&(e.dispatchUIEvent(a,n.button===0?`click`:`auxclick`,n),n.button===0&&n.detail===2&&e.dispatchUIEvent(a,`dblclick`,{...this.getEventInit(`dblclick`,t.button),detail:n.detail}))}}}resetClickCount(){this.clickCount.reset()}getEventInit(e,t){let n={...this.position.coords};return n.button=CF(t),n.buttons=this.buttons.getButtons(),e===`mousedown`?n.detail=this.clickCount.getOnDown(n.button):e===`mouseup`?n.detail=this.clickCount.getOnUp(n.button):(e===`click`||e===`auxclick`)&&(n.detail=this.clickCount.incOnClick(n.button)),n}getTarget(e){return this.position.target??e.config.document.body}startSelecting(e,t){this.selecting=kF({document:e.config.document,target:this.getTarget(e),node:this.position.caret?.node,offset:this.position.caret?.offset,clickCount:t})}modifySelecting(e){this.selecting&&jF(this.selecting,{document:e.config.document,target:this.getTarget(e),node:this.position.caret?.node,offset:this.position.caret?.offset})}endSelecting(){this.selecting=void 0}constructor(){NF(this,`position`,{}),NF(this,`buttons`,new yF),NF(this,`selecting`,void 0),NF(this,`buttonDownTarget`,{}),NF(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){return this.down={[e]:this.count[e]??0},this.count={[e]:this.count[e]??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(){NF(this,`down`,{}),NF(this,`count`,{})}})}};function FF(e,t){return RF(e,t)?.pointerEvents!==`none`}function IF(e){let t=EM(e);for(let n=e,r=[];n?.ownerDocument;n=n.parentElement){r.push(n);let e=t.getComputedStyle(n).pointerEvents;if(e&&![`inherit`,`unset`].includes(e))return{pointerEvents:e,tree:r}}}var LF=Symbol(`Last check for pointer-events`);function RF(e,t){let n=t[LF];if(!(e.config.pointerEventsCheck!==cF.Never&&(!n||HF(e.config.pointerEventsCheck,cF.EachApiCall)&&n[iF.Call]!==oF(e,iF.Call)||HF(e.config.pointerEventsCheck,cF.EachTrigger)&&n[iF.Trigger]!==oF(e,iF.Trigger))))return n?.result;let r=IF(t);return t[LF]={[iF.Call]:oF(e,iF.Call),[iF.Trigger]:oF(e,iF.Trigger),result:r},r}function zF(e,t){let n=RF(e,t);if(n?.pointerEvents===`none`)throw Error([`Unable to perform pointer interaction as the element ${n.tree.length>1?`inherits`:`has`} \`pointer-events: none\`:`,``,BF(n.tree)].join(`
345
- `))}function BF(e){return e.reverse().map((t,n)=>[``.padEnd(n),t.tagName,t.id&&`#${t.id}`,t.hasAttribute(`data-testid`)&&`(testId=${t.getAttribute(`data-testid`)})`,VF(t),e.length>1&&n===0&&" <-- This element declared `pointer-events: none`",e.length>1&&n===e.length-1&&` <-- Asserted pointer events here`].filter(Boolean).join(``)).join(`
346
- `)}function VF(e){var t;let n;if(e.hasAttribute(`aria-label`))n=e.getAttribute(`aria-label`);else if(e.hasAttribute(`aria-labelledby`)){var r,i;n=(i=e.ownerDocument.getElementById(e.getAttribute(`aria-labelledby`)))==null||(r=i.textContent)==null?void 0:r.trim()}else TM(e,[`button`,`input`,`meter`,`output`,`progress`,`select`,`textarea`])&&(t=e.labels)!=null&&t.length?n=Array.from(e.labels).map(e=>e.textContent?.trim()).join(`|`):TM(e,`button`)&&(n=e.textContent?.trim());return n=n?.replace(/\n/g,` `),Number(n?.length)>30&&(n=`${n?.substring(0,29)}\u2026`),n?`(label=${n})`:``}function HF(e,t){return(e&t)>0}function UF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var WF=class{init(e){let t=this.getTarget(e),[,n]=EF(null,t),r=this.getEventInit();return zF(e,t),e.dispatchUIEvent(t,`pointerover`,r),n.forEach(t=>e.dispatchUIEvent(t,`pointerenter`,r)),this}move(e,t){let n=this.position,r=this.getTarget(e);if(this.position=t,!MF(n,t))return;let i=this.getTarget(e),a=this.getEventInit(-1),[o,s]=EF(r,i);return{leave:()=>{FF(e,r)&&r!==i&&(e.dispatchUIEvent(r,`pointerout`,a),o.forEach(t=>e.dispatchUIEvent(t,`pointerleave`,a)))},enter:()=>{zF(e,i),r!==i&&(e.dispatchUIEvent(i,`pointerover`,a),s.forEach(t=>e.dispatchUIEvent(t,`pointerenter`,a)))},move:()=>{e.dispatchUIEvent(i,`pointermove`,a)}}}down(e,t=0){if(this.isDown)return;let n=this.getTarget(e);zF(e,n),this.isDown=!0,this.isPrevented=!e.dispatchUIEvent(n,`pointerdown`,this.getEventInit(t))}up(e,t=0){if(!this.isDown)return;let n=this.getTarget(e);zF(e,n),this.isPrevented=!1,this.isDown=!1,e.dispatchUIEvent(n,`pointerup`,this.getEventInit(t))}release(e){let t=this.getTarget(e),[n]=EF(t,null),r=this.getEventInit();FF(e,t)&&(e.dispatchUIEvent(t,`pointerout`,r),n.forEach(t=>e.dispatchUIEvent(t,`pointerleave`,r))),this.isCancelled=!0}getTarget(e){return this.position.target??e.config.document.body}getEventInit(e){return{...this.position.coords,pointerId:this.pointerId,pointerType:this.pointerType,isPrimary:this.isPrimary,button:CF(e),buttons:this.buttons.getButtons()}}constructor({pointerId:e,pointerType:t,isPrimary:n},r){UF(this,`pointerId`,void 0),UF(this,`pointerType`,void 0),UF(this,`isPrimary`,void 0),UF(this,`buttons`,void 0),UF(this,`isMultitouch`,!1),UF(this,`isCancelled`,!1),UF(this,`isDown`,!1),UF(this,`isPrevented`,!1),UF(this,`position`,{}),this.pointerId=e,this.pointerType=t,this.isPrimary=n,this.isMultitouch=!n,this.buttons=r}};function GF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var KF=class{isKeyPressed(e){return this.devices.get(e.pointerType).isPressed(e)}async press(e,t,n){this.devices.get(t.pointerType).addPressed(t),this.buttons.down(t);let r=this.getPointerName(t),i=t.pointerType===`touch`?this.pointers.new(r,t.pointerType,this.buttons):this.pointers.get(r);i.position=n,i.pointerType!==`touch`&&(this.mouse.position=n),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,n){let r=this.pointers.get(t),i=r.move(e,n),a=r.pointerType===`touch`?void 0:this.mouse.move(e,n,r.isPrevented);i?.leave(),a?.leave(),i?.enter(),a?.enter(),i?.move(),a?.move()}async release(e,t,n){let r=this.devices.get(t.pointerType);r.removePressed(t),this.buttons.up(t);let i=this.pointers.get(this.getPointerName(t)),a=i.isPrevented;if(i.position=n,i.pointerType!==`touch`&&(this.mouse.position=n),r.countPressed===0&&i.up(e,t.button),i.pointerType===`touch`&&i.release(e),i.pointerType===`touch`&&!i.isMultitouch){let r=this.mouse.move(e,n,a);r?.leave(),r?.enter(),r?.move(),this.mouse.down(e,t,a)}if(!i.isMultitouch){let r=this.mouse.move(e,n,a);r?.leave(),r?.enter(),r?.move(),this.mouse.up(e,t,a)}}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){return this.mouse.position.target??e.config.document.body}setMousePosition(e){this.mouse.position=e,this.pointers.get(`mouse`).position=e}constructor(e){GF(this,`system`,void 0),GF(this,`mouse`,void 0),GF(this,`buttons`,void 0),GF(this,`devices`,new class{get(e){var t,n;return(t=this.registry)[n=e]??(t[n]=new TF)}constructor(){GF(this,`registry`,{})}}),GF(this,`pointers`,new class{new(e,t,n){let r=t!==`touch`||!Object.values(this.registry).some(e=>e.pointerType===`touch`&&!e.isCancelled);return r||Object.values(this.registry).forEach(e=>{e.pointerType===t&&!e.isCancelled&&(e.isMultitouch=!0)}),this.registry[e]=new WF({pointerId:this.nextId++,pointerType:t,isPrimary:r},n),this.registry[e]}get(e){if(!this.has(e))throw Error(`Trying to access pointer "${e}" which does not exist.`);return this.registry[e]}has(e){return e in this.registry}constructor(){GF(this,`registry`,{}),GF(this,`nextId`,1)}}),this.system=e,this.buttons=new yF,this.mouse=new PF,this.pointers.new(`mouse`,`mouse`,this.buttons)}};function qF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var JF=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(){qF(this,`keyboard`,new hF(this)),qF(this,`pointer`,new KF(this))}};async function YF(e){let t=[];return this.config.skipHover||t.push({target:e}),t.push({keys:`[MouseLeft]`,target:e}),this.pointer(t)}async function XF(e){return this.pointer([{target:e},`[MouseLeft][MouseLeft]`])}async function ZF(e){return this.pointer([{target:e},`[MouseLeft][MouseLeft][MouseLeft]`])}async function QF(e){return this.pointer({target:e})}async function $F(e){return zF(this,this.system.pointer.getMouseTarget(this)),this.pointer({target:e.ownerDocument.body})}async function eI({shift:e}={}){return this.keyboard(e===!0?`{Shift>}{Tab}{/Shift}`:e===!1?`[/ShiftLeft][/ShiftRight]{Tab}`:`{Tab}`)}var tI=(function(e){return e[`{`]=`}`,e[`[`]=`]`,e})(tI||{});function nI(e,t){let n=0,r=e[n]in tI?e[n]:``;n+=r.length;let i=RegExp(`^\\${r}{2}`).test(e)?``:r;return{type:i,...i===``?rI(e,n,t):iI(e,n,i,t)}}function rI(e,t,n){let r=e[t];return aI(r,e,t,n),t+=r.length,{consumedLength:t,descriptor:r,releasePrevious:!1,releaseSelf:!0,repeat:1}}function iI(e,t,n,r){let i=e[t]===`/`?`/`:``;t+=i.length;let a=n===`{`&&e[t]===`\\`;t+=Number(a);let o=a?e[t]:e.slice(t).match(n===`{`?/^\w+|^[^}>/]/:/^\w+/)?.[0];aI(o,e,t,r),t+=o.length;let s=e.slice(t).match(/^>\d+/)?.[0]??``;t+=s.length;let c=e[t]===`/`||!s&&e[t]===`>`?e[t]:``;t+=c.length;let l=tI[n],u=e[t]===l?l:``;if(!u)throw Error(sI([!s&&`repeat modifier`,!c&&`release modifier`,`"${l}"`].filter(Boolean).join(` or `),e[t],e,r));return t+=u.length,{consumedLength:t,descriptor:o,releasePrevious:!!i,repeat:s?Math.max(Number(s.substr(1)),1):1,releaseSelf:oI(c,s)}}function aI(e,t,n,r){if(!e)throw Error(sI(`key descriptor`,t[n],t,r))}function oI(e,t){if(e)return e===`/`;if(t)return!1}function sI(e,t,n,r){return`Expected ${e} but found "${t??``}" in "${n}"
347
- See ${r===`pointer`?`https://testing-library.com/docs/user-event/pointer#pressing-a-button-or-touching-the-screen`:`https://testing-library.com/docs/user-event/keyboard`}
348
- for more information about how userEvent parses your input.`}function cI(e,t){let n=[];do{let{type:r,descriptor:i,consumedLength:a,releasePrevious:o,releaseSelf:s=!0,repeat:c}=nI(t,`keyboard`),l=e.find(e=>r===`[`?e.code?.toLowerCase()===i.toLowerCase():r===`{`?e.key?.toLowerCase()===i.toLowerCase():e.key===i)??{key:`Unknown`,code:`Unknown`,[r===`[`?`code`:`key`]:i};n.push({keyDef:l,releasePrevious:o,releaseSelf:s,repeat:c}),t=t.slice(a)}while(t);return n}async function lI(e){let t=cI(this.config.keyboardMap,e);for(let e=0;e<t.length;e++)await sF(this.config),await uI(this,t[e])}async function uI(e,{keyDef:t,releasePrevious:n,releaseSelf:r,repeat:i}){let{system:a}=e;if(a.keyboard.isKeyPressed(t)&&await a.keyboard.keyup(e,t),!n){for(let n=1;n<=i;n++)await a.keyboard.keydown(e,t),n<i&&await sF(e.config);r&&await a.keyboard.keyup(e,t)}}async function dI(e){for(let t of e.system.keyboard.getPressedKeys())await e.system.keyboard.keyup(e,t)}function fI(e){let t=uN(e)?{"text/plain":pI(e)}:{"text/plain":String(e.ownerDocument.getSelection())},n=IM(EM(e));for(let e in t)t[e]&&n.setData(e,t[e]);return n}function pI(e){let t=AN(e);return wN(e).substring(t.startOffset,t.endOffset)}async function mI(){let e=this.config.document,t=e.activeElement??e.body,n=fI(t);if(n.items.length!==0)return this.dispatchUIEvent(t,`copy`,{clipboardData:n})&&this.config.writeToClipboard&&await qM(e,n),n}async function hI(){let e=this.config.document,t=e.activeElement??e.body,n=fI(t);if(n.items.length!==0)return this.dispatchUIEvent(t,`cut`,{clipboardData:n})&&this.config.writeToClipboard&&await qM(t.ownerDocument,n),n}async function gI(e){let t=this.config.document,n=t.activeElement??t.body,r=(typeof e==`string`?_I(t,e):e)??await KM(t).catch(()=>{throw Error("`userEvent.paste()` without `clipboardData` requires the `ClipboardAPI` to be available.")});this.dispatchUIEvent(n,`paste`,{clipboardData:r})}function _I(e,t){let n=IM(EM(e));return n.setData(`text`,t),n}function vI(e,t){let n=[];do{let{descriptor:r,consumedLength:i,releasePrevious:a,releaseSelf:o=!0}=nI(t,`pointer`),s=e.find(e=>e.name===r);s&&n.push({keyDef:s,releasePrevious:a,releaseSelf:o}),t=t.slice(i)}while(t);return n}async function yI(e){let{pointerMap:t}=this.config,n=[];(Array.isArray(e)?e:[e]).forEach(e=>{typeof e==`string`?n.push(...vI(t,e)):`keys`in e?n.push(...vI(t,e.keys).map(t=>({...e,...t}))):n.push(e)});for(let e=0;e<n.length;e++)await sF(this.config),await bI(this,n[e]);this.system.pointer.resetClickCount()}async function bI(e,t){var n,r;let i=`pointerName`in t&&t.pointerName?t.pointerName:`keyDef`in t?e.system.pointer.getPointerName(t.keyDef):`mouse`,a=e.system.pointer.getPreviousPosition(i),o={target:t.target??SI(e,a),coords:t.coords??a?.coords,caret:{node:t.node??(xI(t)||a==null||(n=a.caret)==null?void 0:n.node),offset:t.offset??(xI(t)||a==null||(r=a.caret)==null?void 0:r.offset)}};`keyDef`in t?(e.system.pointer.isKeyPressed(t.keyDef)&&(aF(e,iF.Trigger),await e.system.pointer.release(e,t.keyDef,o)),t.releasePrevious||(aF(e,iF.Trigger),await e.system.pointer.press(e,t.keyDef,o),t.releaseSelf&&(aF(e,iF.Trigger),await e.system.pointer.release(e,t.keyDef,o)))):(aF(e,iF.Trigger),await e.system.pointer.move(e,i,o))}function xI(e){return!!(e.target??e.node??e.offset!==void 0)}function SI(e,t){if(!t)throw Error(`This pointer has no previous position. Provide a target property!`);return t.target??e.config.document.body}async function CI(e){if(!sN(e)||QM(e))throw Error("clear()` is only supported on editable elements.");if(hN(e),e.ownerDocument.activeElement!==e)throw Error(`The element to be cleared could not be focused.`);if(mP(e),!hP(e))throw Error(`The element content to be cleared could not be selected.`);iP(this,e,``,`deleteContentBackward`)}async function wI(e,t){return EI.call(this,!0,e,t)}async function TI(e,t){return EI.call(this,!1,e,t)}async function EI(e,t,n){if(!e&&!t.multiple)throw Ik().getElementError(`Unable to deselect an option in a non-multiple select. Use selectOptions to change the selection instead.`,t);let r=Array.isArray(n)?n:[n],i=Array.from(t.querySelectorAll(`option, [role="option"]`)),a=r.map(e=>{if(typeof e!=`string`&&i.includes(e))return e;{let n=i.find(t=>t.value===e||t.innerHTML===e);if(n)return n;throw Ik().getElementError(`Value "${String(e)}" not found in options`,t)}}).filter(e=>!QM(e));if(QM(t)||!a.length)return;let o=n=>{n.selected=e,this.dispatchUIEvent(t,`input`,{bubbles:!0,cancelable:!1,composed:!0}),this.dispatchUIEvent(t,`change`)};if(TM(t,`select`))if(t.multiple)for(let e of a){let n=this.config.pointerEventsCheck===0?!0:FF(this,e);n&&(this.dispatchUIEvent(e,`pointerover`),this.dispatchUIEvent(t,`pointerenter`),this.dispatchUIEvent(e,`mouseover`),this.dispatchUIEvent(t,`mouseenter`),this.dispatchUIEvent(e,`pointermove`),this.dispatchUIEvent(e,`mousemove`),this.dispatchUIEvent(e,`pointerdown`),this.dispatchUIEvent(e,`mousedown`)),hN(t),n&&(this.dispatchUIEvent(e,`pointerup`),this.dispatchUIEvent(e,`mouseup`)),o(e),n&&this.dispatchUIEvent(e,`click`),await sF(this.config)}else if(a.length===1){let e=this.config.pointerEventsCheck===0?!0:FF(this,t);e?await this.click(t):hN(t),o(a[0]),e&&(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 sF(this.config)}else throw Ik().getElementError(`Cannot select multiple options on a non-multiple select`,t);else if(t.getAttribute(`role`)===`listbox`)for(let e of a)await this.click(e),await this.unhover(e);else throw Ik().getElementError(`Cannot select options on elements that are neither select nor listbox elements`,t)}async function DI(e,t,{skipClick:n=this.config.skipClick,skipAutoClose:r=this.config.skipAutoClose,initialSelectionStart:i,initialSelectionEnd:a}={}){e.disabled||(n||await this.click(e),i!==void 0&&gP(e,i,a??i),await this.keyboard(t),r||await dI(this))}var OI=Symbol(`files and value properties are mocked`);function kI(e,t,n){n?Object.defineProperty(e,t,n):delete e[t]}function AI(e,t){var n;(n=e[OI])==null||n.restore();let r=Object.getOwnPropertyDescriptor(e,`type`),i=Object.getOwnPropertyDescriptor(e,`value`),a=Object.getOwnPropertyDescriptor(e,`files`);function o(){kI(e,`type`,r),kI(e,`value`,i),kI(e,`files`,a)}e[OI]={restore:o},Object.defineProperties(e,{files:{configurable:!0,get:()=>t},value:{configurable:!0,get:()=>t.length?`C:\\fakepath\\${t[0].name}`:``,set(t){if(t===``)o();else{var n;i==null||(n=i.set)==null||n.call(e,t)}}},type:{configurable:!0,get:()=>`file`,set(t){t!==`file`&&(o(),e.type=t)}}})}async function jI(e,t){let n=TM(e,`label`)?e.control:e;if(!n||!TM(n,`input`,{type:`file`}))throw TypeError(`The ${n===e?`given`:`associated`} ${n?.tagName} element does not accept file uploads`);if(QM(e))return;let r=(Array.isArray(t)?t:[t]).filter(e=>!this.config.applyAccept||NI(e,n.accept)).slice(0,n.multiple?void 0:1),i=()=>{r.length===n.files?.length&&r.every((e,t)=>e===n.files?.item(t))||(AI(n,AM(EM(e),r)),this.dispatchUIEvent(n,`input`),this.dispatchUIEvent(n,`change`))};n.addEventListener(`fileDialog`,i),await this.click(e),n.removeEventListener(`fileDialog`,i)}function MI(e){return e.toLowerCase().replace(/(\.|\/)jpg\b/g,`$1jpeg`)}function NI(e,t){if(!t)return!0;let n=[`audio/*`,`image/*`,`video/*`];return MI(t).trim().split(/\s*,\s*/).some(t=>t.startsWith(`.`)?MI(e.name).endsWith(t):n.includes(t)?MI(e.type).startsWith(t.replace(`*`,``)):MI(e.type)===t)}var PI={click:YF,dblClick:XF,tripleClick:ZF,hover:QF,unhover:$F,tab:eI,keyboard:lI,copy:mI,cut:hI,paste:gI,pointer:yI,clear:CI,deselectOptions:TI,selectOptions:wI,type:DI,upload:jI};function FI(e){return Ik().asyncWrapper(e)}var II={applyAccept:!0,autoModify:!0,delay:0,document:globalThis.document,keyboardMap:gF,pointerMap:_F,pointerEventsCheck:cF.EachApiCall,skipAutoClose:!1,skipClick:!1,skipHover:!1,writeToClipboard:!1,advanceTimers:()=>Promise.resolve()},LI={...II,writeToClipboard:!0};function RI(e={},t=LI,n){let r=WI(e,n,t);return{...t,...e,document:r}}function zI(e={}){let t=RI(e);return eF(t.document),GP(EM(t.document).HTMLElement),UM(t.document.defaultView??globalThis.window),UI(t).api}function BI({keyboardState:e,pointerState:t,...n}={},r){let i=RI(n,II,r);eF(i.document),GP(EM(i.document).HTMLElement);let a=t??e??new JF;return{api:UI(i,a).api,system:a}}function VI(e){return UI({...this.config,...e},this.system).api}function HI(e,t){function n(...n){return aF(e,iF.Call),FI(()=>t.apply(e,n).then(async t=>(await sF(e.config),t)))}return Object.defineProperty(n,`name`,{get:()=>t.name}),n}function UI(e,t=new JF){let n={};return Object.assign(n,{config:e,dispatchEvent:HP.bind(n),dispatchUIEvent:VP.bind(n),system:t,levelRefs:{},...PI}),{instance:n,api:{...Object.fromEntries(Object.entries(PI).map(([e,t])=>[e,HI(n,t)])),setup:VI.bind(n)}}}function WI(e,t,n){return e.document??(t&&nF(t))??n.document}var GI={};Ne(GI,{clear:()=>KI,click:()=>qI,copy:()=>JI,cut:()=>YI,dblClick:()=>XI,deselectOptions:()=>ZI,hover:()=>QI,keyboard:()=>$I,paste:()=>tL,pointer:()=>eL,selectOptions:()=>nL,tab:()=>sL,tripleClick:()=>rL,type:()=>iL,unhover:()=>aL,upload:()=>oL});function KI(e){return BI().api.clear(e)}function qI(e,t={}){return BI(t,e).api.click(e)}function JI(e={}){return BI(e).api.copy()}function YI(e={}){return BI(e).api.cut()}function XI(e,t={}){return BI(t).api.dblClick(e)}function ZI(e,t,n={}){return BI(n).api.deselectOptions(e,t)}function QI(e,t={}){return BI(t).api.hover(e)}async function $I(e,t={}){let{api:n,system:r}=BI(t);return n.keyboard(e).then(()=>r)}async function eL(e,t={}){let{api:n,system:r}=BI(t);return n.pointer(e).then(()=>r)}function tL(e,t){return BI(t).api.paste(e)}function nL(e,t,n={}){return BI(n).api.selectOptions(e,t)}function rL(e,t={}){return BI(t).api.tripleClick(e)}function iL(e,t,n={}){return BI(n,e).api.type(e,t,n)}function aL(e,t={}){let{api:n,system:r}=BI(t);return r.pointer.setMousePosition({target:e}),n.unhover(e)}function oL(e,t,n={}){return BI(n).api.upload(e,t)}function sL(e={}){return BI().api.tab(e)}var cL={...GI,setup:zI},lL=Rv({...FD},{getKeys:e=>Object.keys(e).filter(e=>e!==`eventWrapper`),intercept:(e,t)=>t[0]===`fireEvent`||e.startsWith(`find`)||e.startsWith(`waitFor`)});lL.screen=new Proxy(lL.screen,{get(e,t,n){return typeof window<`u`&&globalThis.location?.href?.includes(`viewMode=docs`)&&Ns.warn(K`
349
- 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.
350
-
351
- More info: https://storybook.js.org/docs/writing-tests/interaction-testing?ref=error#querying-the-canvas
352
- `),Reflect.get(e,t,n)}});var{buildQueries:uL,configure:dL,createEvent:fL,fireEvent:pL,findAllByAltText:mL,findAllByDisplayValue:hL,findAllByLabelText:gL,findAllByPlaceholderText:_L,findAllByRole:vL,findAllByTestId:yL,findAllByText:bL,findAllByTitle:xL,findByAltText:SL,findByDisplayValue:CL,findByLabelText:wL,findByPlaceholderText:TL,findByRole:EL,findByTestId:DL,findByText:OL,findByTitle:kL,getAllByAltText:AL,getAllByDisplayValue:jL,getAllByLabelText:ML,getAllByPlaceholderText:NL,getAllByRole:PL,getAllByTestId:FL,getAllByText:IL,getAllByTitle:LL,getByAltText:RL,getByDisplayValue:zL,getByLabelText:BL,getByPlaceholderText:VL,getByRole:HL,getByTestId:UL,getByText:WL,getByTitle:GL,getConfig:KL,getDefaultNormalizer:qL,getElementError:JL,getNodeText:YL,getQueriesForElement:XL,getRoles:ZL,getSuggestedQuery:QL,isInaccessible:$L,logDOM:eR,logRoles:tR,prettyDOM:nR,queries:rR,queryAllByAltText:iR,queryAllByAttribute:aR,queryAllByDisplayValue:oR,queryAllByLabelText:sR,queryAllByPlaceholderText:cR,queryAllByRole:lR,queryAllByTestId:uR,queryAllByText:dR,queryAllByTitle:fR,queryByAltText:pR,queryByAttribute:mR,queryByDisplayValue:hR,queryByLabelText:gR,queryByPlaceholderText:_R,queryByRole:vR,queryByTestId:yR,queryByText:bR,queryByTitle:xR,queryHelpers:SR,screen:CR,waitFor:wR,waitForElementToBeRemoved:TR,within:ER,prettyFormat:DR}=lL,OR=cL,{userEvent:kR}=Rv({userEvent:cL},{intercept:!0,getKeys:e=>Object.keys(e).filter(e=>e!==`eventWrapper`)}),{expect:AR}=Rv({expect:yD},{getKeys:(e,t)=>{if(`constructor`in e&&e.constructor===Y){let n=[`assert`,`__methods`,`__flags`,`_obj`],r=Object.keys(Object.getPrototypeOf(e)).filter(e=>!n.includes(e));return t>2?r:[...r,`not`]}return`any`in e?Object.keys(e).filter(e=>e!==`any`):Object.keys(e)},mutate:!0,intercept:e=>e!==`expect`}),jR={mock:()=>{}},MR=!1,NR=[e=>{let{parameters:t}=e;t?.actions?.disable||MR||(ED((e,t)=>{let n=e.getMockName();n!==`spy`&&n!==`vi.fn()`&&(!/^next\/.*::/.test(n)||[`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(e=>n.startsWith(e)))&&vW(n)(t)}),MR=!0)}],PR=()=>({...up,...pp}),FR=`storybook/background`,IR=`backgrounds`;`${FR}`;var LR={light:{name:`light`,value:`#F8F8F8`},dark:{name:`dark`,value:`#333`}},{document:RR}=globalThis,zR=()=>globalThis?.matchMedia?!!globalThis.matchMedia(`(prefers-reduced-motion: reduce)`)?.matches:!1,BR=e=>{(Array.isArray(e)?e:[e]).forEach(VR)},VR=e=>{if(!RR)return;let t=RR.getElementById(e);t&&t.parentElement&&t.parentElement.removeChild(t)},HR=(e,t)=>{if(!RR)return;let n=RR.getElementById(e);if(n)n.innerHTML!==t&&(n.innerHTML=t);else{let n=RR.createElement(`style`);n.setAttribute(`id`,e),n.innerHTML=t,RR.head.appendChild(n)}},UR=(e,t,n)=>{if(!RR)return;let r=RR.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let r=RR.createElement(`style`);r.setAttribute(`id`,e),r.innerHTML=t;let i=`addon-backgrounds-grid${n?`-docs-${n}`:``}`,a=RR.getElementById(i);a?a.parentElement?.insertBefore(r,a):RR.head.appendChild(r)}},WR={cellSize:100,cellAmount:10,opacity:.8},GR=`addon-backgrounds`,KR=`addon-backgrounds-grid`,qR=zR()?``:`transition: background-color 0.3s;`,JR=globalThis.FEATURES?.backgrounds?[(e,t)=>{let{globals:n={},parameters:r={},viewMode:i,id:a}=t,{options:o=LR,disable:s,grid:c=WR}=r[IR]||{},l=n[IR]||{},u=typeof l==`string`?l:l?.value,d=u?o[u]:void 0,f=typeof d==`string`?d:d?.value||`transparent`,p=typeof l==`string`?!1:l.grid||!1,m=!!d&&!s,h=i===`docs`?`#anchor--${a} .docs-story`:`.sb-show-main`,g=i===`docs`?`#anchor--${a} .docs-story`:`.sb-show-main`,_=r.layout===void 0||r.layout===`padded`,v=i===`docs`?20:_?16:0,{cellAmount:y,cellSize:b,opacity:x,offsetX:S=v,offsetY:C=v}=c,w=i===`docs`?`${GR}-docs-${a}`:`${GR}-color`,T=i===`docs`?a:null;qf(()=>{let e=`
353
- ${h} {
354
- background: ${f} !important;
355
- ${qR}
356
- }`;if(!m){BR(w);return}UR(w,e,T)},[h,w,T,m,f]);let E=i===`docs`?`${KR}-docs-${a}`:`${KR}`;return qf(()=>{if(!p){BR(E);return}HR(E,`
357
- ${g} {
358
- background-size: ${[`${b*y}px ${b*y}px`,`${b*y}px ${b*y}px`,`${b}px ${b}px`,`${b}px ${b}px`].join(`, `)} !important;
359
- background-position: ${S}px ${C}px, ${S}px ${C}px, ${S}px ${C}px, ${S}px ${C}px !important;
360
- background-blend-mode: difference !important;
361
- background-image: linear-gradient(rgba(130, 130, 130, ${x}) 1px, transparent 1px),
362
- linear-gradient(90deg, rgba(130, 130, 130, ${x}) 1px, transparent 1px),
363
- linear-gradient(rgba(130, 130, 130, ${x/2}) 1px, transparent 1px),
364
- linear-gradient(90deg, rgba(130, 130, 130, ${x/2}) 1px, transparent 1px) !important;
365
- }
366
- `)},[y,b,g,E,p,S,C,x]),e()}]:[],YR={[IR]:{grid:{cellSize:20,opacity:.5,cellAmount:5},disable:!1}},XR={[IR]:{value:void 0,grid:!1}},ZR=()=>({decorators:JR,parameters:YR,initialGlobals:XR}),{step:QR}=Rv({step:async(e,t,n)=>t(n)},{intercept:!0}),$R=()=>({parameters:{throwPlayFunctionExceptions:!1},runStep:QR}),ez=e=>{let t=getComputedStyle(e),n=e.getBoundingClientRect();return!(n.width>0&&n.height>0&&t.visibility!==`hidden`&&Number(t.opacity)>0&&t.display!==`none`)},tz=async({reporting:e,canvasElement:t,globals:n})=>{try{if(!n.ghostStories)return;let r=ez(t.firstElementChild??t);r&&e.addReport({type:`render-analysis`,version:1,result:{emptyRender:r},status:`warning`})}catch{}},nz=()=>({afterEach:tz}),rz=`storybook/highlight`,iz=`${rz}/add`,az=`${rz}/remove`,oz=`${rz}/reset`,sz=`${rz}/scroll-into-view`,cz=2147483647,lz=28,uz={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`]},dz=`svg,path,rect,circle,line,polyline,polygon,ellipse,text`.split(`,`),fz=(e,t={},n)=>{let r=dz.includes(e)?document.createElementNS(`http://www.w3.org/2000/svg`,e):document.createElement(e);return Object.entries(t).forEach(([e,t])=>{/[A-Z]/.test(e)?(e===`onClick`&&(r.addEventListener(`click`,t),r.addEventListener(`keydown`,e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),t())})),e===`onMouseEnter`&&r.addEventListener(`mouseenter`,t),e===`onMouseLeave`&&r.addEventListener(`mouseleave`,t)):r.setAttribute(e,t)}),n?.forEach(e=>{if(!(e==null||e===!1))try{r.appendChild(e)}catch{r.appendChild(document.createTextNode(String(e)))}}),r},pz=e=>uz[e]&&fz(`svg`,{width:`14`,height:`14`,viewBox:`0 0 14 14`,xmlns:`http://www.w3.org/2000/svg`},uz[e].map(e=>fz(`path`,{fill:`currentColor`,"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:e}))),mz=e=>{if(`elements`in e){let{elements:t,color:n,style:r}=e;return{id:void 0,priority:0,selectors:t,styles:{outline:`2px ${r} ${n}`,outlineOffset:`2px`,boxShadow:`0 0 0 6px rgba(255,255,255,0.6)`},menu:void 0}}let{menu:t,...n}=e;return{id:void 0,priority:0,styles:{outline:`2px dashed #029cfd`},...n,menu:Array.isArray(t)?t.every(Array.isArray)?t:[t]:void 0}},hz=e=>e instanceof Function,gz=new Map,_z=new Map,vz=new Map,yz=e=>{let t=Symbol();return _z.set(t,[]),gz.set(t,e),{get:()=>gz.get(t),set:e=>{let n=gz.get(t),r=hz(e)?e(n):e;r!==n&&(gz.set(t,r),_z.get(t)?.forEach(e=>{vz.get(e)?.(),vz.set(e,e(r))}))},subscribe:e=>(_z.get(t)?.push(e),()=>{let n=_z.get(t);n&&_z.set(t,n.filter(t=>t!==e))}),teardown:()=>{_z.get(t)?.forEach(e=>{vz.get(e)?.(),vz.delete(e)}),_z.delete(t),gz.delete(t)}}},bz=e=>{let t=document.getElementById(`storybook-root`),n=new Map;for(let r of e){let{priority:e=0}=r;for(let i of r.selectors){let a=[...document.querySelectorAll(`:is(${i}):not([id^="storybook-"], [id^="storybook-"] *, [class^="sb-"], [class^="sb-"] *)`),...t?.querySelectorAll(i)||[]];for(let t of a){let a=n.get(t);(!a||a.priority<=e)&&n.set(t,{...r,priority:e,selectors:Array.from(new Set((a?.selectors||[]).concat(i)))})}}}return n},xz=e=>Array.from(e.entries()).map(([e,{selectors:t,styles:n,hoverStyles:r,focusStyles:i,menu:a}])=>{let{top:o,left:s,width:c,height:l}=e.getBoundingClientRect(),{position:u}=getComputedStyle(e);return{element:e,selectors:t,styles:n,hoverStyles:r,focusStyles:i,menu:a,top:u===`fixed`?o:o+window.scrollY,left:u===`fixed`?s:s+window.scrollX,width:c,height:l}}).sort((e,t)=>t.width*t.height-e.width*e.height),Sz=(e,t)=>{let n=e.getBoundingClientRect(),{x:r,y:i}=t;return n?.top&&n?.left&&r>=n.left&&r<=n.left+n.width&&i>=n.top&&i<=n.top+n.height},Cz=(e,t,n)=>{if(!t||!n)return!1;let{left:r,top:i,width:a,height:o}=e;o<lz&&(i-=Math.round((lz-o)/2),o=lz),a<lz&&(r-=Math.round((lz-a)/2),a=lz),t.style.position===`fixed`&&(r+=window.scrollX,i+=window.scrollY);let{x:s,y:c}=n;return s>=r&&s<=r+a&&c>=i&&c<=i+o},wz=(e,t,n={})=>{let{x:r,y:i}=t,{margin:a=5,topOffset:o=0,centered:s=!1}=n,{scrollX:c,scrollY:l,innerHeight:u,innerWidth:d}=window,f=Math.min(e.style.position===`fixed`?i-l:i,u-e.clientHeight-a-o+l),p=s?e.clientWidth/2:0,m=e.style.position===`fixed`?Math.max(Math.min(r-c,d-p-a),p+a):Math.max(Math.min(r,d-p-a+c),p+a+c);Object.assign(e.style,{...m!==r&&{left:`${m}px`},...f!==i&&{top:`${f}px`}})},Tz=e=>{window.HTMLElement.prototype.hasOwnProperty(`showPopover`)&&e.showPopover()},Ez=e=>{window.HTMLElement.prototype.hasOwnProperty(`showPopover`)&&e.hidePopover()},Dz=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(e=>[e.name,e.value])),localName:e.element.localName,tagName:e.element.tagName,outerHTML:e.element.outerHTML}}),Oz=`storybook-highlights-menu`,kz=`storybook-highlights-root`,Az=`storybook-root`;globalThis?.FEATURES?.highlight&&Df?.ready&&Df.ready().then(e=>{if(globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED)return;globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED=!0;let{document:t}=globalThis,n=yz([]),r=yz(new Map),i=yz([]),a=yz(),o=yz(),s=yz([]),c=yz([]),l=yz(),u=yz(),d=t.getElementById(kz);n.subscribe(()=>{d||(d=fz(`div`,{id:kz}),t.body.appendChild(d))}),n.subscribe(e=>{let n=t.getElementById(Az);if(!n)return;r.set(bz(e));let i=new MutationObserver(()=>r.set(bz(e)));return i.observe(n,{subtree:!0,childList:!0}),()=>{i.disconnect()}}),r.subscribe(e=>{let n=()=>requestAnimationFrame(()=>i.set(xz(e))),r=new ResizeObserver(n);r.observe(t.body),Array.from(e.keys()).forEach(e=>r.observe(e));let a=Array.from(t.body.querySelectorAll(`*`)).filter(e=>{let{overflow:t,overflowX:n,overflowY:r}=window.getComputedStyle(e);return[`auto`,`scroll`].some(e=>[t,n,r].includes(e))});return a.forEach(e=>e.addEventListener(`scroll`,n)),()=>{r.disconnect(),a.forEach(e=>e.removeEventListener(`scroll`,n))}}),r.subscribe(e=>{let n=Array.from(e.keys()).filter(({style:e})=>e.position===`sticky`),r=()=>requestAnimationFrame(()=>{i.set(e=>e.map(e=>{if(n.includes(e.element)){let{top:t,left:n}=e.element.getBoundingClientRect();return{...e,top:t+window.scrollY,left:n+window.scrollX}}return e}))});return t.addEventListener(`scroll`,r),()=>t.removeEventListener(`scroll`,r)}),r.subscribe(e=>{s.set(t=>t.filter(({element:t})=>e.has(t)))}),s.subscribe(e=>{e.length?(u.set(t=>e.some(e=>e.element===t?.element)?t:void 0),l.set(t=>e.some(e=>e.element===t?.element)?t:void 0)):(u.set(void 0),l.set(void 0),a.set(void 0))});let f=new Map(new Map);n.subscribe(e=>{e.forEach(({keyframes:e})=>{if(e){let n=f.get(e);n||(n=t.createElement(`style`),n.setAttribute(`data-highlight`,`keyframes`),f.set(e,n),t.head.appendChild(n)),n.innerHTML=e}}),f.forEach((t,n)=>{e.some(e=>e.keyframes===n)||(t.remove(),f.delete(n))})});let p=new Map(new Map);i.subscribe(e=>{e.forEach(e=>{let t=p.get(e.element);if(d&&!t){let n={popover:`manual`,"data-highlight-dimensions":`w${e.width.toFixed(0)}h${e.height.toFixed(0)}`,"data-highlight-coordinates":`x${e.left.toFixed(0)}y${e.top.toFixed(0)}`};t=d.appendChild(fz(`div`,n,[fz(`div`)])),p.set(e.element,t)}}),p.forEach((t,n)=>{e.some(({element:e})=>e===n)||(t.remove(),p.delete(n))})}),i.subscribe(e=>{let n=e.filter(e=>e.menu);if(!n.length)return;let r=e=>{requestAnimationFrame(()=>{let r=t.getElementById(Oz),i={x:e.pageX,y:e.pageY};if(r&&!Sz(r,i)){let e=n.filter(e=>Cz(e,p.get(e.element),i));a.set(e.length?i:void 0),s.set(e)}})};return t.addEventListener(`click`,r),()=>t.removeEventListener(`click`,r)});let m=()=>{let e=t.getElementById(Oz),n=o.get();!n||e&&Sz(e,n)||c.set(e=>{let t=i.get().filter(e=>Cz(e,p.get(e.element),n)),r=e.filter(e=>t.includes(e)),a=t.filter(t=>!e.includes(t)),o=e.length-r.length;return a.length||o?[...r,...a]:e})};o.subscribe(m),i.subscribe(m);let h=()=>{let e=u.get(),t=e?[e]:s.get(),n=t.length===1?t[0]:l.get(),r=a.get()!==void 0;i.get().forEach(e=>{let i=p.get(e.element);if(i){let a=n===e,o=r?n?a:t.includes(e):c.get()?.includes(e);Object.assign(i.style,{animation:`none`,background:`transparent`,border:`none`,boxSizing:`border-box`,outline:`none`,outlineOffset:`0px`,...e.styles,...o?e.hoverStyles:{},...a?e.focusStyles:{},position:getComputedStyle(e.element).position===`fixed`?`fixed`:`absolute`,zIndex:cz-10,top:`${e.top}px`,left:`${e.left}px`,width:`${e.width}px`,height:`${e.height}px`,margin:0,padding:0,cursor:e.menu&&o?`pointer`:`default`,pointerEvents:e.menu?`auto`:`none`,display:`flex`,alignItems:`center`,justifyContent:`center`,overflow:`visible`}),Object.assign(i.children[0].style,{width:`100%`,height:`100%`,minHeight:`${lz}px`,minWidth:`${lz}px`,boxSizing:`content-box`,padding:i.style.outlineWidth||`0px`}),Tz(i)}})};i.subscribe(h),s.subscribe(h),c.subscribe(h),l.subscribe(h),u.subscribe(h);let g=()=>{if(!d)return;let n=t.getElementById(Oz);if(n)n.innerHTML=``;else{let e={id:Oz,popover:`manual`};n=d.appendChild(fz(`div`,e)),d.appendChild(fz(`style`,{},[`
367
- #${Oz} {
368
- position: absolute;
369
- z-index: ${cz};
370
- width: 300px;
371
- padding: 0px;
372
- margin: 15px 0 0 0;
373
- transform: translateX(-50%);
374
- font-family: "Nunito Sans", -apple-system, ".SFNSText-Regular", "San Francisco", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
375
- font-size: 12px;
376
- background: white;
377
- border: none;
378
- border-radius: 6px;
379
- box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.05), 0 5px 15px 0 rgba(0, 0, 0, 0.1);
380
- color: #2E3438;
381
- }
382
- #${Oz} ul {
383
- list-style: none;
384
- margin: 0;
385
- padding: 0;
386
- }
387
- #${Oz} > ul {
388
- max-height: 300px;
389
- overflow-y: auto;
390
- padding: 4px 0;
391
- }
392
- #${Oz} li {
393
- padding: 0 4px;
394
- margin: 0;
395
- }
396
- #${Oz} li > :not(ul) {
397
- display: flex;
398
- padding: 8px;
399
- margin: 0;
400
- align-items: center;
401
- gap: 8px;
402
- border-radius: 4px;
403
- }
404
- #${Oz} button {
405
- width: 100%;
406
- border: 0;
407
- background: transparent;
408
- color: inherit;
409
- text-align: left;
410
- font-family: inherit;
411
- font-size: inherit;
412
- }
413
- #${Oz} button:focus-visible {
414
- outline-color: #029CFD;
415
- }
416
- #${Oz} button:hover {
417
- background: rgba(2, 156, 253, 0.07);
418
- color: #029CFD;
419
- cursor: pointer;
420
- }
421
- #${Oz} li code {
422
- white-space: nowrap;
423
- overflow: hidden;
424
- text-overflow: ellipsis;
425
- line-height: 16px;
426
- font-size: 11px;
427
- }
428
- #${Oz} li svg {
429
- flex-shrink: 0;
430
- margin: 1px;
431
- color: #73828C;
432
- }
433
- #${Oz} li > button:hover svg, #${Oz} li > button:focus-visible svg {
434
- color: #029CFD;
435
- }
436
- #${Oz} .element-list li svg {
437
- display: none;
438
- }
439
- #${Oz} li.selectable svg, #${Oz} li.selected svg {
440
- display: block;
441
- }
442
- #${Oz} .menu-list {
443
- border-top: 1px solid rgba(38, 85, 115, 0.15);
444
- }
445
- #${Oz} .menu-list > li:not(:last-child) {
446
- padding-bottom: 4px;
447
- margin-bottom: 4px;
448
- border-bottom: 1px solid rgba(38, 85, 115, 0.15);
449
- }
450
- #${Oz} .menu-items, #${Oz} .menu-items li {
451
- padding: 0;
452
- }
453
- #${Oz} .menu-item {
454
- display: flex;
455
- }
456
- #${Oz} .menu-item-content {
457
- display: flex;
458
- flex-direction: column;
459
- flex-grow: 1;
460
- }
461
- `]))}let r=u.get(),i=r?[r]:s.get();if(i.length&&(n.style.position=getComputedStyle(i[0].element).position===`fixed`?`fixed`:`absolute`,n.appendChild(fz(`ul`,{class:`element-list`},i.map(e=>{let t=i.length>1&&!!e.menu?.some(t=>t.some(t=>!t.selectors||t.selectors.some(t=>e.selectors.includes(t)))),n=t?{class:`selectable`,onClick:()=>u.set(e),onMouseEnter:()=>l.set(e),onMouseLeave:()=>l.set(void 0)}:r?{class:`selected`,onClick:()=>u.set(void 0)}:{},a=t||r;return fz(`li`,n,[fz(a?`button`:`div`,a?{type:`button`}:{},[r?pz(`chevronLeft`):null,fz(`code`,{},[e.element.outerHTML]),t?pz(`chevronRight`):null])])})))),u.get()||s.get().length===1){let t=u.get()||s.get()[0],r=t.menu?.filter(e=>e.some(e=>!e.selectors||e.selectors.some(e=>t.selectors.includes(e))));r?.length&&n.appendChild(fz(`ul`,{class:`menu-list`},r.map(n=>fz(`li`,{},[fz(`ul`,{class:`menu-items`},n.map(({id:n,title:r,description:i,iconLeft:a,iconRight:o,clickEvent:s})=>{let c=s&&(()=>e.emit(s,n,Dz(t)));return fz(`li`,{},[fz(c?`button`:`div`,c?{class:`menu-item`,type:`button`,onClick:c}:{class:`menu-item`},[a?pz(a):null,fz(`div`,{class:`menu-item-content`},[fz(i?`strong`:`span`,{},[r]),i&&fz(`span`,{},[i])]),o?pz(o):null])])}))]))))}let o=a.get();o?(Object.assign(n.style,{display:`block`,left:`${n.style.position===`fixed`?o.x-window.scrollX:o.x}px`,top:`${n.style.position===`fixed`?o.y-window.scrollY:o.y}px`}),Tz(n),requestAnimationFrame(()=>wz(n,o,{topOffset:15,centered:!0}))):(Ez(n),Object.assign(n.style,{display:`none`}))};s.subscribe(g),u.subscribe(g);let _=e=>{let t=mz(e);n.set(e=>{let n=t.id?e.filter(e=>e.id!==t.id):e;return t.selectors?.length?[...n,t]:n})},v=e=>{e&&n.set(t=>t.filter(t=>t.id!==e))},y=()=>{n.set([]),r.set(new Map),i.set([]),a.set(void 0),o.set(void 0),s.set([]),c.set([]),l.set(void 0),u.set(void 0)},b;t.body.addEventListener(`mousemove`,e=>{requestAnimationFrame(()=>o.set({x:e.pageX,y:e.pageY}))}),e.on(iz,_),e.on(az,v),e.on(oz,y),e.on(sz,(e,r)=>{let i=`scrollIntoView-highlight`;clearTimeout(b),v(i);let a=t.querySelector(e);if(!a){console.warn(`Cannot scroll into view: ${e} not found`);return}a.scrollIntoView({behavior:`smooth`,block:`center`,...r});let o=`kf-${Math.random().toString(36).substring(2,15)}`;n.set(t=>[...t,{id:i,priority:1e3,selectors:[e],styles:{outline:`2px solid #1EA7FD`,outlineOffset:`-1px`,animation:`${o} 3s linear forwards`},keyframes:`@keyframes ${o} {
462
- 0% { outline: 2px solid #1EA7FD; }
463
- 20% { outline: 2px solid #1EA7FD00; }
464
- 40% { outline: 2px solid #1EA7FD; }
465
- 60% { outline: 2px solid #1EA7FD00; }
466
- 80% { outline: 2px solid #1EA7FD; }
467
- 100% { outline: 2px solid #1EA7FD00; }
468
- }`}]),b=setTimeout(()=>v(i),3500)}),e.on(Ho,({newPhase:e})=>{e===`loading`&&y()})});var jz=()=>({}),Mz=`storybook/measure-addon`;`${Mz}`;var Nz=`measureEnabled`;`${Mz}`,`${Mz}`,`${Mz}`;function Pz(){let e=G.document.documentElement,t=Math.max(e.scrollHeight,e.offsetHeight);return{width:Math.max(e.scrollWidth,e.offsetWidth),height:t}}function Fz(){let e=G.document.createElement(`canvas`);e.id=`storybook-addon-measure`;let t=e.getContext(`2d`);xd(t!=null);let{width:n,height:r}=Pz();return Iz(e,t,{width:n,height:r}),e.style.position=`absolute`,e.style.left=`0`,e.style.top=`0`,e.style.zIndex=`2147483647`,e.style.pointerEvents=`none`,G.document.body.appendChild(e),{canvas:e,context:t,width:n,height:r}}function Iz(e,t,{width:n,height:r}){e.style.width=`${n}px`,e.style.height=`${r}px`;let i=G.window.devicePixelRatio;e.width=Math.floor(n*i),e.height=Math.floor(r*i),t.scale(i,i)}var Lz={};function Rz(){Lz.canvas||(Lz=Fz())}function zz(){Lz.context&&Lz.context.clearRect(0,0,Lz.width??0,Lz.height??0)}function Bz(e){zz(),e(Lz.context)}function Vz(){xd(Lz.canvas,`Canvas should exist in the state.`),xd(Lz.context,`Context should exist in the state.`),Iz(Lz.canvas,Lz.context,{width:0,height:0});let{width:e,height:t}=Pz();Iz(Lz.canvas,Lz.context,{width:e,height:t}),Lz.width=e,Lz.height=t}function Hz(){Lz.canvas&&(zz(),Lz.canvas.parentNode?.removeChild(Lz.canvas),Lz={})}var Uz={margin:`#f6b26b`,border:`#ffe599`,padding:`#93c47d`,content:`#6fa8dc`,text:`#232020`},Wz=6;function Gz(e,{x:t,y:n,w:r,h:i,r:a}){t-=r/2,n-=i/2,r<2*a&&(a=r/2),i<2*a&&(a=i/2),e.beginPath(),e.moveTo(t+a,n),e.arcTo(t+r,n,t+r,n+i,a),e.arcTo(t+r,n+i,t,n+i,a),e.arcTo(t,n+i,t,n,a),e.arcTo(t,n,t+r,n,a),e.closePath()}function Kz(e,{padding:t,border:n,width:r,height:i,top:a,left:o}){let s=r-n.left-n.right-t.left-t.right,c=i-t.top-t.bottom-n.top-n.bottom,l=o+n.left+t.left,u=a+n.top+t.top;return e===`top`?l+=s/2:e===`right`?(l+=s,u+=c/2):e===`bottom`?(l+=s/2,u+=c):e===`left`?u+=c/2:e===`center`&&(l+=s/2,u+=c/2),{x:l,y:u}}function qz(e,t,{margin:n,border:r,padding:i},a,o){let s=e=>0,c=0,l=0,u=o?1:.5,d=o?a*2:0;return e===`padding`?s=e=>i[e]*u+d:e===`border`?s=e=>i[e]+r[e]*u+d:e===`margin`&&(s=e=>i[e]+r[e]+n[e]*u+d),t===`top`?l=-s(`top`):t===`right`?c=s(`right`):t===`bottom`?l=s(`bottom`):t===`left`&&(c=-s(`left`)),{offsetX:c,offsetY:l}}function Jz(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 Yz(e,t,n){return e===`top`?t.y=n.y-n.h-Wz:e===`right`?t.x=n.x+n.w/2+Wz+t.w/2:e===`bottom`?t.y=n.y+n.h+Wz:e===`left`&&(t.x=n.x-n.w/2-Wz-t.w/2),{x:t.x,y:t.y}}function Xz(e,t,{x:n,y:r,w:i,h:a},o){return Gz(e,{x:n,y:r,w:i,h:a,r:3}),e.fillStyle=`${Uz[t]}dd`,e.fill(),e.strokeStyle=Uz[t],e.stroke(),e.fillStyle=Uz.text,e.fillText(o,n,r),Gz(e,{x:n,y:r,w:i,h:a,r:3}),e.fillStyle=`${Uz[t]}dd`,e.fill(),e.strokeStyle=Uz[t],e.stroke(),e.fillStyle=Uz.text,e.fillText(o,n,r),{x:n,y:r,w:i,h:a}}function Zz(e,t){e.font=`600 12px monospace`,e.textBaseline=`middle`,e.textAlign=`center`;let n=e.measureText(t),r=n.actualBoundingBoxAscent+n.actualBoundingBoxDescent;return{w:n.width+Wz*2,h:r+Wz*2}}function Qz(e,t,{type:n,position:r=`center`,text:i},a,o=!1){let{x:s,y:c}=Kz(r,t),{offsetX:l,offsetY:u}=qz(n,r,t,Wz+1,o);s+=l,c+=u;let{w:d,h:f}=Zz(e,i);if(a&&Jz({x:s,y:c,w:d,h:f},a)){let e=Yz(r,{x:s,y:c,w:d,h:f},a);s=e.x,c=e.y}return Xz(e,n,{x:s,y:c,w:d,h:f},i)}function $z(e,{w:t,h:n}){let r=t*.5+Wz,i=n*.5+Wz;return{offsetX:(e.x===`left`?-1:1)*r,offsetY:(e.y===`top`?-1:1)*i}}function eB(e,t,{type:n,text:r}){let{floatingAlignment:i,extremities:a}=t,o=a[i.x],s=a[i.y],{w:c,h:l}=Zz(e,r),{offsetX:u,offsetY:d}=$z(i,{w:c,h:l});return o+=u,s+=d,Xz(e,n,{x:o,y:s,w:c,h:l},r)}function tB(e,t,n,r){let i=[];n.forEach((n,a)=>{i[a]=r&&n.position===`center`?eB(e,t,n):Qz(e,t,n,i[a-1],r)})}function nB(e,t,n,r){let i=n.reduce((e,t)=>(Object.prototype.hasOwnProperty.call(e,t.position)||(e[t.position]=[]),e[t.position]?.push(t),e),{});i.top&&tB(e,t,i.top,r),i.right&&tB(e,t,i.right,r),i.bottom&&tB(e,t,i.bottom,r),i.left&&tB(e,t,i.left,r),i.center&&tB(e,t,i.center,r)}var rB={margin:`#f6b26ba8`,border:`#ffe599a8`,padding:`#93c47d8c`,content:`#6fa8dca8`},iB=30;function aB(e){return parseInt(e.replace(`px`,``),10)}function oB(e){return Number.isInteger(e)?e:e.toFixed(2)}function sB(e){return e.filter(e=>e.text!==0&&e.text!==`0`)}function cB(e){let t={top:G.window.scrollY,bottom:G.window.scrollY+G.window.innerHeight,left:G.window.scrollX,right:G.window.scrollX+G.window.innerWidth},n={top:Math.abs(t.top-e.top),bottom:Math.abs(t.bottom-e.bottom),left:Math.abs(t.left-e.left),right:Math.abs(t.right-e.right)};return{x:n.left>n.right?`left`:`right`,y:n.top>n.bottom?`top`:`bottom`}}function lB(e){let t=G.getComputedStyle(e),{top:n,left:r,right:i,bottom:a,width:o,height:s}=e.getBoundingClientRect(),{marginTop:c,marginBottom:l,marginLeft:u,marginRight:d,paddingTop:f,paddingBottom:p,paddingLeft:m,paddingRight:h,borderBottomWidth:g,borderTopWidth:_,borderLeftWidth:v,borderRightWidth:y}=t;n+=G.window.scrollY,r+=G.window.scrollX,a+=G.window.scrollY,i+=G.window.scrollX;let b={top:aB(c),bottom:aB(l),left:aB(u),right:aB(d)},x={top:aB(f),bottom:aB(p),left:aB(m),right:aB(h)},S={top:aB(_),bottom:aB(g),left:aB(v),right:aB(y)},C={top:n-b.top,bottom:a+b.bottom,left:r-b.left,right:i+b.right};return{margin:b,padding:x,border:S,top:n,left:r,bottom:a,right:i,width:o,height:s,extremities:C,floatingAlignment:cB(C)}}function uB(e,{margin:t,width:n,height:r,top:i,left:a,bottom:o,right:s}){let c=r+t.bottom+t.top;return e.fillStyle=rB.margin,e.fillRect(a,i-t.top,n,t.top),e.fillRect(s,i-t.top,t.right,c),e.fillRect(a,o,n,t.bottom),e.fillRect(a-t.left,i-t.top,t.left,c),sB([{type:`margin`,text:oB(t.top),position:`top`},{type:`margin`,text:oB(t.right),position:`right`},{type:`margin`,text:oB(t.bottom),position:`bottom`},{type:`margin`,text:oB(t.left),position:`left`}])}function dB(e,{padding:t,border:n,width:r,height:i,top:a,left:o,bottom:s,right:c}){let l=r-n.left-n.right,u=i-t.top-t.bottom-n.top-n.bottom;return e.fillStyle=rB.padding,e.fillRect(o+n.left,a+n.top,l,t.top),e.fillRect(c-t.right-n.right,a+t.top+n.top,t.right,u),e.fillRect(o+n.left,s-t.bottom-n.bottom,l,t.bottom),e.fillRect(o+n.left,a+t.top+n.top,t.left,u),sB([{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`}])}function fB(e,{border:t,width:n,height:r,top:i,left:a,bottom:o,right:s}){let c=r-t.top-t.bottom;return e.fillStyle=rB.border,e.fillRect(a,i,n,t.top),e.fillRect(a,o-t.bottom,n,t.bottom),e.fillRect(a,i+t.top,t.left,c),e.fillRect(s-t.right,i+t.top,t.right,c),sB([{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`}])}function pB(e,{padding:t,border:n,width:r,height:i,top:a,left:o}){let s=r-n.left-n.right-t.left-t.right,c=i-t.top-t.bottom-n.top-n.bottom;return e.fillStyle=rB.content,e.fillRect(o+n.left+t.left,a+n.top+t.top,s,c),[{type:`content`,position:`center`,text:`${oB(s)} x ${oB(c)}`}]}function mB(e){return t=>{if(e&&t){let n=lB(e),r=uB(t,n),i=dB(t,n),a=fB(t,n),o=pB(t,n),s=n.width<=iB*3||n.height<=iB;nB(t,n,[...o,...i,...a,...r],s)}}}function hB(e){Bz(mB(e))}var gB=(e,t)=>{let n=G.document.elementFromPoint(e,t),r=n=>{if(n&&n.shadowRoot){let i=n.shadowRoot.elementFromPoint(e,t);return n.isEqualNode(i)?n:i.shadowRoot?r(i):i}return n};return r(n)||n},_B,vB={x:0,y:0};function yB(e,t){_B=gB(e,t),hB(_B)}var bB=globalThis.FEATURES?.measure?[(e,t)=>{let{measureEnabled:n}=t.globals||{};return qf(()=>{if(typeof globalThis.document>`u`)return;let e=e=>{window.requestAnimationFrame(()=>{e.stopPropagation(),vB.x=e.clientX,vB.y=e.clientY})};return globalThis.document.addEventListener(`pointermove`,e),()=>{globalThis.document.removeEventListener(`pointermove`,e)}},[]),qf(()=>{let e=e=>{window.requestAnimationFrame(()=>{e.stopPropagation(),yB(e.clientX,e.clientY)})},r=()=>{window.requestAnimationFrame(()=>{Vz()})};return t.viewMode===`story`&&n&&(globalThis.document.addEventListener(`pointerover`,e),Rz(),globalThis.window.addEventListener(`resize`,r),yB(vB.x,vB.y)),()=>{globalThis.window.removeEventListener(`resize`,r),Hz()}},[n,t.viewMode]),e()}]:[],xB={[Nz]:!1},SB=()=>({decorators:bB,initialGlobals:xB}),CB=`outline`,wB=e=>{(Array.isArray(e)?e:[e]).forEach(TB)},TB=e=>{let t=typeof e==`string`?e:e.join(``),n=G.document.getElementById(t);n&&n.parentElement&&n.parentElement.removeChild(n)},EB=(e,t)=>{let n=G.document.getElementById(e);if(n)n.innerHTML!==t&&(n.innerHTML=t);else{let n=G.document.createElement(`style`);n.setAttribute(`id`,e),n.innerHTML=t,G.document.head.appendChild(n)}};function DB(e){return K`
469
- ${e} body {
470
- outline: 1px solid #2980b9 !important;
471
- }
472
-
473
- ${e} article {
474
- outline: 1px solid #3498db !important;
475
- }
476
-
477
- ${e} nav {
478
- outline: 1px solid #0088c3 !important;
479
- }
480
-
481
- ${e} aside {
482
- outline: 1px solid #33a0ce !important;
483
- }
484
-
485
- ${e} section {
486
- outline: 1px solid #66b8da !important;
487
- }
488
-
489
- ${e} header {
490
- outline: 1px solid #99cfe7 !important;
491
- }
492
-
493
- ${e} footer {
494
- outline: 1px solid #cce7f3 !important;
495
- }
496
-
497
- ${e} h1 {
498
- outline: 1px solid #162544 !important;
499
- }
500
-
501
- ${e} h2 {
502
- outline: 1px solid #314e6e !important;
503
- }
504
-
505
- ${e} h3 {
506
- outline: 1px solid #3e5e85 !important;
507
- }
508
-
509
- ${e} h4 {
510
- outline: 1px solid #449baf !important;
511
- }
512
-
513
- ${e} h5 {
514
- outline: 1px solid #c7d1cb !important;
515
- }
516
-
517
- ${e} h6 {
518
- outline: 1px solid #4371d0 !important;
519
- }
520
-
521
- ${e} main {
522
- outline: 1px solid #2f4f90 !important;
523
- }
524
-
525
- ${e} address {
526
- outline: 1px solid #1a2c51 !important;
527
- }
528
-
529
- ${e} div {
530
- outline: 1px solid #036cdb !important;
531
- }
532
-
533
- ${e} p {
534
- outline: 1px solid #ac050b !important;
535
- }
536
-
537
- ${e} hr {
538
- outline: 1px solid #ff063f !important;
539
- }
540
-
541
- ${e} pre {
542
- outline: 1px solid #850440 !important;
543
- }
544
-
545
- ${e} blockquote {
546
- outline: 1px solid #f1b8e7 !important;
547
- }
548
-
549
- ${e} ol {
550
- outline: 1px solid #ff050c !important;
551
- }
552
-
553
- ${e} ul {
554
- outline: 1px solid #d90416 !important;
555
- }
556
-
557
- ${e} li {
558
- outline: 1px solid #d90416 !important;
559
- }
560
-
561
- ${e} dl {
562
- outline: 1px solid #fd3427 !important;
563
- }
564
-
565
- ${e} dt {
566
- outline: 1px solid #ff0043 !important;
567
- }
568
-
569
- ${e} dd {
570
- outline: 1px solid #e80174 !important;
571
- }
572
-
573
- ${e} figure {
574
- outline: 1px solid #ff00bb !important;
575
- }
576
-
577
- ${e} figcaption {
578
- outline: 1px solid #bf0032 !important;
579
- }
580
-
581
- ${e} table {
582
- outline: 1px solid #00cc99 !important;
583
- }
584
-
585
- ${e} caption {
586
- outline: 1px solid #37ffc4 !important;
587
- }
588
-
589
- ${e} thead {
590
- outline: 1px solid #98daca !important;
591
- }
592
-
593
- ${e} tbody {
594
- outline: 1px solid #64a7a0 !important;
595
- }
596
-
597
- ${e} tfoot {
598
- outline: 1px solid #22746b !important;
599
- }
600
-
601
- ${e} tr {
602
- outline: 1px solid #86c0b2 !important;
603
- }
604
-
605
- ${e} th {
606
- outline: 1px solid #a1e7d6 !important;
607
- }
608
-
609
- ${e} td {
610
- outline: 1px solid #3f5a54 !important;
611
- }
612
-
613
- ${e} col {
614
- outline: 1px solid #6c9a8f !important;
615
- }
616
-
617
- ${e} colgroup {
618
- outline: 1px solid #6c9a9d !important;
619
- }
620
-
621
- ${e} button {
622
- outline: 1px solid #da8301 !important;
623
- }
624
-
625
- ${e} datalist {
626
- outline: 1px solid #c06000 !important;
627
- }
628
-
629
- ${e} fieldset {
630
- outline: 1px solid #d95100 !important;
631
- }
632
-
633
- ${e} form {
634
- outline: 1px solid #d23600 !important;
635
- }
636
-
637
- ${e} input {
638
- outline: 1px solid #fca600 !important;
639
- }
640
-
641
- ${e} keygen {
642
- outline: 1px solid #b31e00 !important;
643
- }
644
-
645
- ${e} label {
646
- outline: 1px solid #ee8900 !important;
647
- }
648
-
649
- ${e} legend {
650
- outline: 1px solid #de6d00 !important;
651
- }
652
-
653
- ${e} meter {
654
- outline: 1px solid #e8630c !important;
655
- }
656
-
657
- ${e} optgroup {
658
- outline: 1px solid #b33600 !important;
659
- }
660
-
661
- ${e} option {
662
- outline: 1px solid #ff8a00 !important;
663
- }
664
-
665
- ${e} output {
666
- outline: 1px solid #ff9619 !important;
667
- }
668
-
669
- ${e} progress {
670
- outline: 1px solid #e57c00 !important;
671
- }
672
-
673
- ${e} select {
674
- outline: 1px solid #e26e0f !important;
675
- }
676
-
677
- ${e} textarea {
678
- outline: 1px solid #cc5400 !important;
679
- }
680
-
681
- ${e} details {
682
- outline: 1px solid #33848f !important;
683
- }
684
-
685
- ${e} summary {
686
- outline: 1px solid #60a1a6 !important;
687
- }
688
-
689
- ${e} command {
690
- outline: 1px solid #438da1 !important;
691
- }
692
-
693
- ${e} menu {
694
- outline: 1px solid #449da6 !important;
695
- }
696
-
697
- ${e} del {
698
- outline: 1px solid #bf0000 !important;
699
- }
700
-
701
- ${e} ins {
702
- outline: 1px solid #400000 !important;
703
- }
704
-
705
- ${e} img {
706
- outline: 1px solid #22746b !important;
707
- }
708
-
709
- ${e} iframe {
710
- outline: 1px solid #64a7a0 !important;
711
- }
712
-
713
- ${e} embed {
714
- outline: 1px solid #98daca !important;
715
- }
716
-
717
- ${e} object {
718
- outline: 1px solid #00cc99 !important;
719
- }
720
-
721
- ${e} param {
722
- outline: 1px solid #37ffc4 !important;
723
- }
724
-
725
- ${e} video {
726
- outline: 1px solid #6ee866 !important;
727
- }
728
-
729
- ${e} audio {
730
- outline: 1px solid #027353 !important;
731
- }
732
-
733
- ${e} source {
734
- outline: 1px solid #012426 !important;
735
- }
736
-
737
- ${e} canvas {
738
- outline: 1px solid #a2f570 !important;
739
- }
740
-
741
- ${e} track {
742
- outline: 1px solid #59a600 !important;
743
- }
744
-
745
- ${e} map {
746
- outline: 1px solid #7be500 !important;
747
- }
748
-
749
- ${e} area {
750
- outline: 1px solid #305900 !important;
751
- }
752
-
753
- ${e} a {
754
- outline: 1px solid #ff62ab !important;
755
- }
756
-
757
- ${e} em {
758
- outline: 1px solid #800b41 !important;
759
- }
760
-
761
- ${e} strong {
762
- outline: 1px solid #ff1583 !important;
763
- }
764
-
765
- ${e} i {
766
- outline: 1px solid #803156 !important;
767
- }
768
-
769
- ${e} b {
770
- outline: 1px solid #cc1169 !important;
771
- }
772
-
773
- ${e} u {
774
- outline: 1px solid #ff0430 !important;
775
- }
776
-
777
- ${e} s {
778
- outline: 1px solid #f805e3 !important;
779
- }
780
-
781
- ${e} small {
782
- outline: 1px solid #d107b2 !important;
783
- }
784
-
785
- ${e} abbr {
786
- outline: 1px solid #4a0263 !important;
787
- }
788
-
789
- ${e} q {
790
- outline: 1px solid #240018 !important;
791
- }
792
-
793
- ${e} cite {
794
- outline: 1px solid #64003c !important;
795
- }
796
-
797
- ${e} dfn {
798
- outline: 1px solid #b4005a !important;
799
- }
800
-
801
- ${e} sub {
802
- outline: 1px solid #dba0c8 !important;
803
- }
804
-
805
- ${e} sup {
806
- outline: 1px solid #cc0256 !important;
807
- }
808
-
809
- ${e} time {
810
- outline: 1px solid #d6606d !important;
811
- }
812
-
813
- ${e} code {
814
- outline: 1px solid #e04251 !important;
815
- }
816
-
817
- ${e} kbd {
818
- outline: 1px solid #5e001f !important;
819
- }
820
-
821
- ${e} samp {
822
- outline: 1px solid #9c0033 !important;
823
- }
824
-
825
- ${e} var {
826
- outline: 1px solid #d90047 !important;
827
- }
828
-
829
- ${e} mark {
830
- outline: 1px solid #ff0053 !important;
831
- }
832
-
833
- ${e} bdi {
834
- outline: 1px solid #bf3668 !important;
835
- }
836
-
837
- ${e} bdo {
838
- outline: 1px solid #6f1400 !important;
839
- }
840
-
841
- ${e} ruby {
842
- outline: 1px solid #ff7b93 !important;
843
- }
844
-
845
- ${e} rt {
846
- outline: 1px solid #ff2f54 !important;
847
- }
848
-
849
- ${e} rp {
850
- outline: 1px solid #803e49 !important;
851
- }
852
-
853
- ${e} span {
854
- outline: 1px solid #cc2643 !important;
855
- }
856
-
857
- ${e} br {
858
- outline: 1px solid #db687d !important;
859
- }
860
-
861
- ${e} wbr {
862
- outline: 1px solid #db175b !important;
863
- }`}var OB=globalThis.FEATURES?.outline?[(e,t)=>{let n=t.globals||{},r=[!0,`true`].includes(n[CB]),i=t.viewMode===`docs`,a=zf(()=>DB(i?`[data-story-block="true"]`:`.sb-show-main`),[t]);return qf(()=>{let e=i?`addon-outline-docs-${t.id}`:`addon-outline`;return r?EB(e,a):wB(e),()=>{wB(e)}},[r,a,t]),e()}]:[],kB={[CB]:!1},AB=()=>({decorators:OB,initialGlobals:kB}),jB=({parameters:e})=>{e?.test?.mockReset===!0?MD():e?.test?.clearMocks===!0?jD():e?.test?.restoreMocks!==!1&&ND()},MB=(e,t=0,n)=>{if(t>5||e==null)return e;if(WT(e))return n&&e.mockName(n),e;if(typeof e==`function`&&`isAction`in e&&e.isAction&&!(`implicit`in e&&e.implicit)){let t=OD(e);return n&&t.mockName(n),t}if(Array.isArray(e)){t++;for(let n=0;n<e.length;n++)Object.getOwnPropertyDescriptor(e,n)?.writable&&(e[n]=MB(e[n],t));return e}if(typeof e==`object`&&e.constructor===Object){t++;for(let[n,r]of Object.entries(e))Object.getOwnPropertyDescriptor(e,n)?.writable&&(e[n]=MB(r,t,n));return e}return e},NB=({initialArgs:e})=>{MB(e)},PB=!1,FB=async e=>{globalThis.HTMLElement&&e.canvasElement instanceof globalThis.HTMLElement&&(e.canvas=ER(e.canvasElement));try{let t=globalThis.window?.navigator?.clipboard;if(t&&(e.userEvent=Rv({userEvent:OR.setup()},{intercept:!0,getKeys:e=>Object.keys(e).filter(e=>e!==`eventWrapper`)}).userEvent,Object.defineProperty(globalThis.window.navigator,`clipboard`,{get:()=>t,configurable:!0}),!PB)){let e=HTMLElement.prototype.focus,t=HTMLElement.prototype.focus,n=new Set;Object.defineProperties(HTMLElement.prototype,{focus:{configurable:!0,set:e=>{t=e},get(){return n.has(this)?e:(n.add(this),setTimeout(()=>n.delete(this),0),t)}}}),PB=!0}}catch{}},IB=()=>({loaders:[jB,NB,FB]}),LB=`storybook/viewport`,RB=`viewport`;`${LB}`,`${LB}`;var zB={[RB]:{value:void 0,isRotated:!1}},BB=()=>({initialGlobals:zB});function VB(){return[(SB.default??SB)(),(ZR.default??ZR)(),(jz.default??jz)(),(AB.default??AB)(),(BB.default??BB)(),(PR.default??PR)(),($R.default??$R)(),(IB.default??IB)(),(nz.default??nz)()]}function HB(e){return typeof e==`object`&&!!e&&`_tag`in e&&e?._tag===`Meta`}function UB(e){return typeof e==`object`&&!!e&&`_tag`in e&&e?._tag===`Story`}function WB(e){return`__children`in e?e.__children:[]}var GB=e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,`-`).replace(/-+/g,`-`).replace(/^-+/,``).replace(/-+$/,``),KB=(e,t)=>{let n=GB(e);if(n===``)throw Error(`Invalid ${t} '${e}', must include alphanumeric characters`);return n},qB=(e,t)=>`${KB(e,`kind`)}${t?`--${KB(t,`name`)}`:``}`,JB=(e,t)=>`${e}:${KB(t,`test`)}`,YB=e=>ep(e);function XB(e,t){return Array.isArray(t)?t.includes(e):e.match(t)}function ZB(e,{includeStories:t,excludeStories:n}){return e!==`__esModule`&&(!t||XB(e,t))&&(!n||!XB(e,n))}var QB=(...e)=>{let t=e.reduce((e,t)=>(t.startsWith(`!`)?e.delete(t.slice(1)):e.add(t),e),new Set);return Array.from(t)};function $B(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function eV(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var tV=`[object RegExp]`,nV=`[object String]`,rV=`[object Number]`,iV=`[object Boolean]`,aV=`[object Arguments]`,oV=`[object Symbol]`,sV=`[object Date]`,cV=`[object Map]`,lV=`[object Set]`,uV=`[object Array]`,dV=`[object Function]`,fV=`[object ArrayBuffer]`,pV=`[object Object]`,mV=`[object Error]`,hV=`[object DataView]`,gV=`[object Uint8Array]`,_V=`[object Uint8ClampedArray]`,vV=`[object Uint16Array]`,yV=`[object Uint32Array]`,bV=`[object BigUint64Array]`,xV=`[object Int8Array]`,SV=`[object Int16Array]`,CV=`[object Int32Array]`,wV=`[object BigInt64Array]`,TV=`[object Float32Array]`,EV=`[object Float64Array]`;function DV(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 OV(e,t){let n={},r=Object.keys(e);for(let i=0;i<r.length;i++){let a=r[i],o=e[a];n[a]=t(o,a,e)}return n}function kV(e,t){let n={},r=Object.keys(e);for(let i=0;i<r.length;i++){let a=r[i],o=e[a];t(o,a)&&(n[a]=o)}return n}var AV=H(Pa(),1);function jV(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function MV(e,t,n){return NV(e,t,void 0,void 0,void 0,void 0,n)}function NV(e,t,n,r,i,a,o){let s=o(e,t,n,r,i,a);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 PV(e,t,a,o)}return PV(e,t,a,o)}function PV(e,t,n,r){if(Object.is(e,t))return!0;let i=eV(e),a=eV(t);if(i===aV&&(i=pV),a===aV&&(a=pV),i!==a)return!1;switch(i){case nV:return e.toString()===t.toString();case rV:return jV(e.valueOf(),t.valueOf());case iV:case sV:case oV:return Object.is(e.valueOf(),t.valueOf());case tV:return e.source===t.source&&e.flags===t.flags;case dV:return e===t}n??=new Map;let o=n.get(e),s=n.get(t);if(o!=null&&s!=null)return o===t;n.set(e,t),n.set(t,e);try{switch(i){case cV:if(e.size!==t.size)return!1;for(let[i,a]of e.entries())if(!t.has(i)||!NV(a,t.get(i),i,e,t,n,r))return!1;return!0;case lV:{if(e.size!==t.size)return!1;let i=Array.from(e.values()),a=Array.from(t.values());for(let o=0;o<i.length;o++){let s=i[o],c=a.findIndex(i=>NV(s,i,void 0,e,t,n,r));if(c===-1)return!1;a.splice(c,1)}return!0}case uV:case gV:case _V:case vV:case yV:case bV:case xV:case SV:case CV:case wV:case TV:case EV:if(typeof Buffer<`u`&&Buffer.isBuffer(e)!==Buffer.isBuffer(t)||e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(!NV(e[i],t[i],i,e,t,n,r))return!1;return!0;case fV:return e.byteLength===t.byteLength?PV(new Uint8Array(e),new Uint8Array(t),n,r):!1;case hV:return e.byteLength!==t.byteLength||e.byteOffset!==t.byteOffset?!1:PV(new Uint8Array(e),new Uint8Array(t),n,r);case mV:return e.name===t.name&&e.message===t.message;case pV:{if(!(PV(e.constructor,t.constructor,n,r)||DV(e)&&DV(t)))return!1;let i=[...Object.keys(e),...$B(e)],a=[...Object.keys(t),...$B(t)];if(i.length!==a.length)return!1;for(let a=0;a<i.length;a++){let o=i[a],s=e[o];if(!Object.hasOwn(t,o))return!1;let c=t[o];if(!NV(s,c,o,e,t,n,r))return!1}return!0}default:return!1}}finally{n.delete(e),n.delete(t)}}function FV(){}function IV(e,t){return MV(e,t,FV)}var LV=Symbol(`incompatible`),RV=(e,t)=>{let n=t.type;if(e==null||!n||t.mapping)return e;switch(n.name){case`string`:return String(e);case`enum`:return e;case`number`:return Number(e);case`boolean`:return String(e)===`true`;case`array`:return!n.value||!Array.isArray(e)?LV:e.reduce((e,t,r)=>{let i=RV(t,{type:n.value});return i!==LV&&(e[r]=i),e},Array(e.length));case`object`:return typeof e==`string`||typeof e==`number`?e:!n.value||typeof e!=`object`?LV:Object.entries(e).reduce((e,[t,r])=>{let i=RV(r,{type:n.value[t]});return i===LV?e:Object.assign(e,{[t]:i})},{});case`other`:{let t=typeof e==`string`||typeof e==`number`||typeof e==`boolean`;return n.value===`ReactNode`&&t?e:LV}default:return LV}},zV=(e,t)=>Object.entries(e).reduce((e,[n,r])=>{if(!t[n])return e;let i=RV(r,t[n]);return i===LV?e:Object.assign(e,{[n]:i})},{}),BV=(e,t)=>Array.isArray(e)&&Array.isArray(t)?t.reduce((n,r,i)=>(n[i]=BV(e[i],t[i]),n),[...e]).filter(e=>e!==void 0):!DV(e)||!DV(t)?t:Object.keys({...e,...t}).reduce((n,r)=>{if(r in t){let i=BV(e[r],t[r]);i!==void 0&&(n[r]=i)}else n[r]=e[r];return n},{}),VV=(e,t)=>Object.entries(t).reduce((t,[n,{options:r}])=>{function i(){return n in e&&(t[n]=e[n]),t}if(!r)return i();if(!Array.isArray(r))return Ns.error(K`
864
- Invalid argType: '${n}.options' should be an array.
865
-
866
- More info: https://storybook.js.org/docs/api/arg-types?ref=error
867
- `),i();if(r.some(e=>e&&[`object`,`function`].includes(typeof e)))return Ns.error(K`
868
- Invalid argType: '${n}.options' should only contain primitives. Use a 'mapping' for complex values.
869
-
870
- More info: https://storybook.js.org/docs/writing-stories/args?ref=error#mapping-to-complex-arg-values
871
- `),i();let a=Array.isArray(e[n]),o=a&&e[n].findIndex(e=>!r.includes(e)),s=a&&o===-1;if(e[n]===void 0||r.includes(e[n])||s)return i();let c=a?`${n}[${o}]`:n,l=r.map(e=>typeof e==`string`?`'${e}'`:String(e)).join(`, `);return Ns.warn(`Received illegal value for '${c}'. Supported options: ${l}`),t},{}),HV=Symbol(`Deeply equal`),UV=(e,t)=>{if(typeof e!=typeof t)return t;if(IV(e,t))return HV;if(Array.isArray(e)&&Array.isArray(t)){let n=t.reduce((t,n,r)=>{let i=UV(e[r],n);return i!==HV&&(t[r]=i),t},Array(t.length));return t.length>=e.length?n:n.concat(Array(e.length-t.length).fill(void 0))}return DV(e)&&DV(t)?Object.keys({...e,...t}).reduce((n,r)=>{let i=UV(e?.[r],t?.[r]);return i===HV?n:Object.assign(n,{[r]:i})},{}):t},WV=`UNTARGETED`;function GV({args:e,argTypes:t}){let n={};return Object.entries(e).forEach(([e,r])=>{let{target:i=WV}=t[e]||{};n[i]=n[i]||{},n[i][e]=r}),n}function KV(e){return Object.keys(e).forEach(t=>e[t]===void 0&&delete e[t]),e}var qV=class{constructor(){this.initialArgsByStoryId={},this.argsByStoryId={}}get(e){if(!(e in this.argsByStoryId))throw 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=UV(this.initialArgsByStoryId[e.id],this.argsByStoryId[e.id]);this.initialArgsByStoryId[e.id]=e.initialArgs,this.argsByStoryId[e.id]=e.initialArgs,t!==HV&&this.updateFromDelta(e,t)}}updateFromDelta(e,t){let n=VV(t,e.argTypes);this.argsByStoryId[e.id]=BV(this.argsByStoryId[e.id],n)}updateFromPersisted(e,t){let n=zV(t,e.argTypes);return this.updateFromDelta(e,n)}update(e,t){if(!(e in this.argsByStoryId))throw Error(`No args known for ${e} -- has it been rendered yet?`);this.argsByStoryId[e]=KV({...this.argsByStoryId[e],...t})}},JV=(e={})=>Object.entries(e).reduce((e,[t,{defaultValue:n}])=>(typeof n<`u`&&(e[t]=n),e),{}),YV=class{constructor({globals:e={},globalTypes:t={}}){this.set({globals:e,globalTypes:t})}set({globals:e={},globalTypes:t={}}){let n=this.initialGlobals&&UV(this.initialGlobals,this.globals);this.allowedGlobalNames=new Set([...Object.keys(e),...Object.keys(t)]),this.initialGlobals={...JV(t),...e},this.globals=this.initialGlobals,n&&n!==HV&&this.updateFromPersisted(n)}filterAllowedGlobals(e){return Object.entries(e).reduce((e,[t,n])=>(this.allowedGlobalNames.has(t)?e[t]=n:js.warn(`Attempted to set a global (${t}) that is not defined in initial globals or globalTypes`),e),{})}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])}},XV=(0,H(Pa(),1).default)(1)(e=>Object.values(e).reduce((e,t)=>(e[t.importPath]=e[t.importPath]||t,e),{})),ZV=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(t=>t.id.startsWith(e));let{name:n,title:r}=e;return t.find(e=>e.name===n&&e.title===r)}storyIdToEntry(e){let t=this.entries[e];if(!t)throw new Bd({storyId:e});return t}importPathToEntry(e){return XV(this.entries)[e]}},QV=e=>typeof e==`string`?{name:e}:e,$V=e=>typeof e==`string`?{type:e}:e,eH=(e,t)=>{let{type:n,control:r,...i}=e,a={name:t,...i};return n&&(a.type=QV(n)),r?a.control=$V(r):r===!1&&(a.control={disable:!0}),a},tH=e=>OV(e,eH),nH=e=>Array.isArray(e)?e:e?[e]:[],rH=K`
872
- CSF .story annotations deprecated; annotate story functions directly:
873
- - StoryFn.story.name => StoryFn.storyName
874
- - StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators)
875
- See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod.
876
- `;function iH(e,t,n){let r=t,i=typeof t==`function`?t:null,{story:a}=r;a&&(js.debug(`deprecated story`,a),Ps(rH));let o=YB(e),s=typeof r!=`function`&&r.name||r.storyName||a?.name||o,c=[...nH(r.decorators),...nH(a?.decorators)],l={...a?.parameters,...r.parameters},u={...a?.args,...r.args},d={...a?.argTypes,...r.argTypes},f=[...nH(r.loaders),...nH(a?.loaders)],p=[...nH(r.beforeEach),...nH(a?.beforeEach)],m=[...nH(r.afterEach),...nH(a?.afterEach)],{render:h,play:g,tags:_=[],globals:v={}}=r;return{moduleExport:t,id:l.__id||qB(n.id,o),name:s,tags:_,decorators:c,parameters:l,args:u,argTypes:tH(d),loaders:f,beforeEach:p,afterEach:m,globals:v,...h&&{render:h},...i&&{userStoryFn:i},...g&&{play:g}}}function aH(e,t=e.title,n){let{id:r,argTypes:i}=e;return{id:GB(r||t),...e,title:t,...i&&{argTypes:tH(i)},parameters:{fileName:n,...e.parameters}}}var oH=e=>{let{globals:t,globalTypes:n}=e;(t||n)&&js.error(`Global args/argTypes can only be set globally`,JSON.stringify({globals:t,globalTypes:n}))},sH=e=>{let{options:t}=e;t?.storySort&&js.error(`The storySort option parameter can only be set globally`)},cH=e=>{e&&(oH(e),sH(e))};function lH(e,t,n){let{default:r,__namedExportsOrder:i,...a}=e,o=Object.values(a).find(e=>UB(e));if(o){let r=aH(o.meta.input,n,t);cH(r.parameters);let i={meta:r,stories:{},moduleExports:e};return Object.keys(a).forEach(e=>{if(ZB(e,r)&&UB(a[e])){let t=a[e],n=iH(e,t.input,r);cH(n.parameters),i.stories[n.id]=n,WB(t).forEach(e=>{let t=e.input.name,a=JB(n.id,t);e.input.parameters??={},e.input.parameters.__id=a,i.stories[a]=iH(t,e.input,r)})}}),i.projectAnnotations=o.meta.preview.composed,i}let s=aH(r,n,t);cH(s.parameters);let c={meta:s,stories:{},moduleExports:e};return Object.keys(a).forEach(e=>{if(ZB(e,s)){let t=iH(e,a[e],s);cH(t.parameters),c.stories[t.id]=t}}),c}function uH(e,t,n){let r=n(e);return e=>t(r,e)}function dH({componentId:e,title:t,kind:n,id:r,name:i,story:a,parameters:o,initialArgs:s,argTypes:c,...l}={}){return l}function fH(e,t){let n={},r=e=>t=>{if(!n.value)throw Error(`Decorated function called without init`);return n.value={...n.value,...dH(t)},e(n.value)},i=t.reduce((e,t)=>uH(e,t,r),e);return e=>(n.value=e,i(e))}var pH=(...e)=>{let t={},n=e.filter(Boolean),r=n.reduce((e,n)=>(Object.entries(n).forEach(([n,r])=>{let i=e[n];Array.isArray(r)||typeof i>`u`?e[n]=r:DV(r)&&DV(i)?t[n]=!0:typeof r<`u`&&(e[n]=r)}),e),{});return Object.keys(t).forEach(e=>{let t=n.filter(Boolean).map(t=>t[e]).filter(e=>typeof e<`u`);t.every(e=>DV(e))?r[e]=pH(...t):r[e]=t[t.length-1]}),r};function mH(e,t,n){let{moduleExport:r,id:i,name:a}=e||{},o=gH(e,t,n),s=async r=>{let i={};for(let a of[nH(n.loaders),nH(t.loaders),nH(e.loaders)]){if(r.abortSignal.aborted)return i;let e=await Promise.all(a.map(e=>e(r)));Object.assign(i,...e)}return i},c=async r=>{let i=[];for(let a of[...nH(n.beforeEach),...nH(t.beforeEach),...nH(e.beforeEach)]){if(r.abortSignal.aborted)return i;let e=await a(r);e&&i.push(e)}return i},l=async r=>{let i=[...nH(n.afterEach),...nH(t.afterEach),...nH(e.afterEach)].reverse();for(let e of i){if(r.abortSignal.aborted)return;await e(r)}},u=e=>e.originalStoryFn(e.args,e),{applyDecorators:d=fH,runStep:f}=n,p=[...nH(e?.decorators),...nH(t?.decorators),...nH(n?.decorators)],m=e?.userStoryFn||e?.render||t.render||n.render,h=Mf(d)(u,p),g=e=>h(e),_=e?.play??t?.play,v=ap(_);if(!m&&!v)throw new Qd({id:i});let y=e.mount??t.mount??n.mount??(e=>async()=>(await e.renderToCanvas(),e.canvas)),b=n.testingLibraryRender;return{storyGlobals:{},...o,moduleExport:r,id:i,name:a,story:a,originalStoryFn:m,undecoratedStoryFn:u,unboundStoryFn:g,applyLoaders:s,applyBeforeEach:c,applyAfterEach:l,playFunction:_,runStep:f,mount:y,testingLibraryRender:b,renderToCanvas:n.renderToCanvas,usesMount:v}}function hH(e,t,n){return{...gH(void 0,e,t),moduleExport:n}}function gH(e,t,n){let r=[lp.DEV,lp.TEST],i=G.DOCS_OPTIONS?.autodocs===!0?[lp.AUTODOCS]:[],a=e?.tags?.includes(lp.TEST_FN)?[`!${lp.AUTODOCS}`]:[],o=QB(...r,...i,...n.tags??[],...t.tags??[],...a,...e?.tags??[]),s=pH(n.parameters,t.parameters,e?.parameters),{argTypesEnhancers:c=[],argsEnhancers:l=[]}=n,u=pH(n.argTypes,t.argTypes,e?.argTypes);if(e){let r=e?.userStoryFn||e?.render||t.render||n.render;s.__isArgsStory=r&&r.length>0}let d={...n.args,...t.args,...e?.args},f={...t.globals,...e?.globals},p={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:o,parameters:s,initialArgs:d,argTypes:u,storyGlobals:f};p.argTypes=c.reduce((e,t)=>t({...p,argTypes:e}),p.argTypes);let m={...d};p.initialArgs=[...l].reduce((e,t)=>({...e,...t({...p,initialArgs:e})}),m);let{name:h,story:g,..._}=p;return _}function _H(e){let{args:t}=e,n={...e,allArgs:void 0,argsByTarget:void 0};if(G.FEATURES?.argTypeTargetsV7){let t=GV(e);n={...e,allArgs:e.args,argsByTarget:t,args:t[WV]||{}}}let r=Object.entries(n.args).reduce((e,[t,r])=>{if(!n.argTypes[t]?.mapping)return e[t]=r,e;let i=e=>{let r=n.argTypes[t].mapping;return r&&e in r?r[e]:e};return e[t]=Array.isArray(r)?r.map(i):i(r),e},{}),i=Object.entries(r).reduce((e,[t,i])=>(ip(n.argTypes[t]||{},r,n.globals)&&(e[t]=i),e),{});return{...n,unmappedArgs:t,args:i}}var vH=(e,t,n)=>{let r=typeof e;switch(r){case`boolean`:case`string`:case`number`:case`function`:case`symbol`:return{name:r};default:break}return e?n.has(e)?(js.warn(K`
877
- We've detected a cycle in arg '${t}'. Args should be JSON-serializable.
878
-
879
- Consider using the mapping feature or fully custom args:
880
- - Mapping: https://storybook.js.org/docs/writing-stories/args#mapping-to-complex-arg-values
881
- - Custom args: https://storybook.js.org/docs/essentials/controls#fully-custom-args
882
- `),{name:`other`,value:`cyclic object`}):(n.add(e),Array.isArray(e)?{name:`array`,value:e.length>0?vH(e[0],t,new Set(n)):{name:`other`,value:`unknown`}}:{name:`object`,value:OV(e,e=>vH(e,t,new Set(n)))}):{name:`object`,value:{}}},yH=e=>{let{id:t,argTypes:n={},initialArgs:r={}}=e;return pH(OV(r,(e,n)=>({name:n,type:vH(e,`${t}.${n}`,new Set)})),OV(n,(e,t)=>({name:t})),n)};yH.secondPass=!0;var bH=(e,t)=>Array.isArray(t)?t.includes(e):e.match(t),xH=(e,t,n)=>!t&&!n?e:e&&kV(e,(e,r)=>{let i=e.name||r.toString();return!!(!t||bH(i,t))&&(!n||!bH(i,n))}),SH=(e,t,n)=>{let{type:r,options:i}=e;if(r){if(n.color&&n.color.test(t)){let e=r.name;if(e===`string`)return{control:{type:`color`}};e!==`enum`&&js.warn(`Addon controls: Control of type color only supports string, received "${e}" instead`)}if(n.date&&n.date.test(t))return{control:{type:`date`}};switch(r.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:e}=r;return{control:{type:e?.length<=5?`radio`:`select`},options:e}}case`function`:case`symbol`:return null;default:return{control:{type:i?`select`:`object`}}}}},CH=e=>{let{argTypes:t,parameters:{__isArgsStory:n,controls:{include:r=null,exclude:i=null,matchers:a={}}={}}}=e;if(!n)return t;let o=xH(t,r,i);return pH(OV(o,(e,t)=>e?.type&&SH(e,t.toString(),a)),o)};CH.secondPass=!0;function wH({argTypes:e,argTypesEnhancers:t,decorators:n,loaders:r,beforeEach:i,afterEach:a,initialGlobals:o,...s}){return{...e&&{argTypes:tH(e)},decorators:nH(n),loaders:nH(r),beforeEach:nH(i),afterEach:nH(a),argTypesEnhancers:[...t||[],yH,CH],initialGlobals:o,...s}}var TH=e=>async()=>{let t=[];for(let n of e){let e=await n();e&&t.unshift(e)}return async()=>{for(let e of t)await e()}};function EH(e){return async(t,n,r)=>{await e.reduceRight((e,n)=>async()=>n(t,e,r),async()=>n(r))()}}function DH(e,t){return e.map(e=>e.default?.[t]??e[t]).filter(Boolean)}function OH(e,t,n={}){return DH(e,t).reduce((e,t)=>{let r=nH(t);return n.reverseFileOrder?[...r,...e]:[...e,...r]},[])}function kH(e,t){return Object.assign({},...DH(e,t))}function AH(e,t){return DH(e,t).pop()}function jH(e){let t=OH(e,`argTypesEnhancers`),n=DH(e,`runStep`),r=OH(e,`beforeAll`);return{parameters:pH(...DH(e,`parameters`)),decorators:OH(e,`decorators`,{reverseFileOrder:!(G.FEATURES?.legacyDecoratorFileOrder??!1)}),args:kH(e,`args`),argsEnhancers:OH(e,`argsEnhancers`),argTypes:kH(e,`argTypes`),argTypesEnhancers:[...t.filter(e=>!e.secondPass),...t.filter(e=>e.secondPass)],initialGlobals:kH(e,`initialGlobals`),globalTypes:kH(e,`globalTypes`),loaders:OH(e,`loaders`),beforeAll:TH(r),beforeEach:OH(e,`beforeEach`),afterEach:OH(e,`afterEach`),render:AH(e,`render`),renderToCanvas:AH(e,`renderToCanvas`),applyDecorators:AH(e,`applyDecorators`),runStep:EH(n),tags:OH(e,`tags`),mount:AH(e,`mount`),testingLibraryRender:AH(e,`testingLibraryRender`)}}function MH(){try{return!!globalThis.__vitest_browser__||!!globalThis.window?.navigator?.userAgent?.match(/StorybookTestRunner/)}catch{return!1}}function NH(e=!0){if(!(`document`in globalThis&&`createElement`in globalThis.document))return()=>{};let t=document.createElement(`style`);t.textContent=`*, *:before, *:after {
883
- animation: none !important;
884
- }`,document.head.appendChild(t);let n=document.createElement(`style`);return n.textContent=`*, *:before, *:after {
885
- animation-delay: 0s !important;
886
- animation-direction: ${e?`reverse`:`normal`} !important;
887
- animation-play-state: paused !important;
888
- transition: none !important;
889
- }`,document.head.appendChild(n),document.body.clientHeight,document.head.removeChild(t),()=>{n.parentNode?.removeChild(n)}}async function PH(e){if(!(`document`in globalThis&&`getAnimations`in globalThis.document&&`querySelectorAll`in globalThis.document))return;let t=!1;await Promise.race([new Promise(n=>{setTimeout(()=>{let r=[globalThis.document,...FH(globalThis.document)],i=async()=>{if(t||e?.aborted)return;let n=r.flatMap(e=>e?.getAnimations?.()||[]).filter(e=>e.playState===`running`&&!IH(e));n.length>0&&(await Promise.allSettled(n.map(async e=>e.finished)),await i())};i().then(n)},100)}),new Promise(e=>setTimeout(()=>{t=!0,e(void 0)},5e3))])}function FH(e){return[e,...e.querySelectorAll(`*`)].reduce((e,t)=>(`shadowRoot`in t&&t.shadowRoot&&e.push(t.shadowRoot,...FH(t.shadowRoot)),e),[])}function IH(e){if(e instanceof CSSAnimation&&e.effect instanceof KeyframeEffect&&e.effect.target){let t=getComputedStyle(e.effect.target,e.effect.pseudoElement),n=t.animationName?.split(`, `).indexOf(e.animationName);return t.animationIterationCount.split(`, `)[n]===`infinite`}return!1}var LH=class{constructor(){this.reports=[]}async addReport(e){this.reports.push(e)}};function RH(e,t,n){return UB(e)?{story:e.input,meta:e.meta.input,preview:e.meta.preview.composed}:{story:e,meta:HB(t)?t.input:t,preview:n}}function zH(e){globalThis.defaultProjectAnnotations=e}var BH=`ComposedStory`,VH=`Unnamed Story`;function HH(e){return e?jH([e]):{}}function UH(e){let t=Array.isArray(e)?e:[e];return globalThis.globalProjectAnnotations=jH([...VB(),globalThis.defaultProjectAnnotations??{},jH(t.map(HH))]),globalThis.globalProjectAnnotations??{}}var WH=[];function GH(e,t,n,r,i){if(e===void 0)throw Error(`Expected a story but received undefined.`);t.title=t.title??BH;let a=aH(t),o=i||e.storyName||e.story?.name||e.name||VH,s=iH(o,e,a),c=wH(jH([r??globalThis.globalProjectAnnotations??{},n??{}])),l=mH(s,a,c),u={...JV(c.globalTypes),...c.initialGlobals,...l.storyGlobals},d=new LH,f=()=>{let e=_H({hooks:new Of,globals:u,args:{...l.initialArgs},viewMode:`story`,reporting:d,loaded:{},abortSignal:new AbortController().signal,step:(t,n)=>l.runStep(t,n,e),canvasElement:null,canvas:{},userEvent:{},globalTypes:c.globalTypes,...l,context:null,mount:null});return e.parameters.__isPortableStory=!0,e.context=e,l.renderToCanvas&&(e.renderToCanvas=async()=>{let t=await l.renderToCanvas?.({componentId:l.componentId,title:l.title,id:l.id,name:l.name,tags:l.tags,showMain:()=>{},showError:e=>{throw Error(`${e.title}
890
- ${e.description}`)},showException:e=>{throw e},forceRemount:!0,storyContext:e,storyFn:()=>l.unboundStoryFn(e),unboundStoryFn:l.unboundStoryFn},e.canvasElement);t&&WH.push(t)}),e.mount=l.mount(e),e},p,m=async e=>{let t=f();return t.canvasElement??=globalThis?.document?.body,p&&(t.loaded=p.loaded),Object.assign(t,e),l.playFunction(t)},h=e=>{let t=f();return Object.assign(t,e),YH(l,t)},g=l.playFunction?m:void 0;return Object.assign(function(e){let t=f();return p&&(t.loaded=p.loaded),t.args={...t.initialArgs,...e},l.unboundStoryFn(t)},{id:l.id,storyName:o,load:async()=>{for(let e of[...WH].reverse())await e();WH.length=0;let e=f();e.loaded=await l.applyLoaders(e),WH.push(...(await l.applyBeforeEach(e)).filter(Boolean)),p=e},globals:u,args:l.initialArgs,parameters:l.parameters,argTypes:l.argTypes,play:g,run:h,reporting:d,tags:l.tags})}var KH=(e,t,n,r)=>GH(e,t,n,{},r);function qH(e,t,n=KH){let{default:r,__esModule:i,__namedExportsOrder:a,...o}=e,s=r;return Object.entries(o).reduce((e,[r,i])=>{let{story:a,meta:o}=RH(i);return!s&&o&&(s=o),ZB(r,s)?Object.assign(e,{[r]:n(a,s,t,r)}):e},{})}function JH(e){return e.extend({mount:async({mount:e,page:t},n)=>{await n(async(n,...r)=>{if(!(`__pw_type`in n)||`__pw_type`in n&&n.__pw_type!==`jsx`)throw Error(K`
891
- Portable stories in Playwright CT only work when referencing JSX elements.
892
- Please use JSX format for your components such as:
893
-
894
- instead of:
895
- await mount(MyComponent, { props: { foo: 'bar' } })
896
-
897
- do:
898
- await mount(<MyComponent foo="bar"/>)
899
-
900
- More info: https://storybook.js.org/docs/api/portable-stories/portable-stories-playwright?ref=error
901
- `);let{props:i,...a}=n;await t.evaluate(async e=>{let t=await globalThis.__pwUnwrapObject?.(e);return(`__pw_type`in t?t.type:t)?.load?.()},a);let o=await e(n,...r);return await t.evaluate(async e=>{let t=await globalThis.__pwUnwrapObject?.(e),n=`__pw_type`in t?t.type:t,r=document.querySelector(`#root`);return n?.play?.({canvasElement:r})},a),o})}})}async function YH(e,t){for(let e of[...WH].reverse())await e();if(WH.length=0,!t.canvasElement){let e=document.createElement(`div`);globalThis?.document?.body?.appendChild(e),t.canvasElement=e,WH.push(()=>{globalThis?.document?.body?.contains(e)&&globalThis?.document?.body?.removeChild(e)})}if(t.loaded=await e.applyLoaders(t),t.abortSignal.aborted)return;WH.push(...(await e.applyBeforeEach(t)).filter(Boolean));let n=e.playFunction,r=e.usesMount;if(r||await t.mount(),t.abortSignal.aborted)return;n&&(r||(t.mount=async()=>{throw new Zd({playFunction:n.toString()})}),await n(t));let i;MH()?i=NH():await PH(t.abortSignal),await e.applyAfterEach(t),await i?.()}var XH=1e3,ZH=1e4,QH=class{constructor(e,t,n){this.importFn=t,this.storyIndex=new ZV(e),this.projectAnnotations=wH(jH([...VB(),n]));let{initialGlobals:r,globalTypes:i}=this.projectAnnotations;this.args=new qV,this.userGlobals=new YV({globals:r,globalTypes:i}),this.hooks={},this.cleanupCallbacks={},this.processCSFFileWithCache=(0,AV.default)(XH)(lH),this.prepareMetaWithCache=(0,AV.default)(XH)(hH),this.prepareStoryWithCache=(0,AV.default)(ZH)(mH)}setProjectAnnotations(e){this.projectAnnotations=wH(e);let{initialGlobals:t,globalTypes:n}=e;this.userGlobals.set({globals:t,globalTypes:n})}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:n}=this.storyIndex.storyIdToEntry(e),r=await this.importFn(t);return this.processCSFFileWithCache(r,t,n)}async loadAllCSFFiles(){let e={};return Object.entries(this.storyIndex.entries).forEach(([t,{importPath:n}])=>{e[n]=t}),(await Promise.all(Object.entries(e).map(async([e,t])=>({importPath:e,csfFile:await this.loadCSFFileByStoryId(t)})))).reduce((e,{importPath:t,csfFile:n})=>(e[t]=n,e),{})}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 n=t.stories[e];if(!n)throw new Yd({storyId:e});let r=t.meta,i=this.prepareStoryWithCache(n,r,t.projectAnnotations??this.projectAnnotations);return this.args.setInitial(i),this.hooks[i.id]=this.hooks[i.id]||new Of,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),n=t.type===`docs`?t.storiesImports:[],[r,...i]=await Promise.all([this.importFn(t.importPath),...n.map(e=>{let t=this.storyIndex.importPathToEntry(e);return this.loadCSFFileByStoryId(t.id)})]);return{entryExports:r,csfFiles:i}}getStoryContext(e,{forceInitialArgs:t=!1}={}){let n=this.userGlobals.get(),{initialGlobals:r}=this.userGlobals,i=new LH;return _H({...e,args:t?e.initialArgs:this.args.get(e.id),initialGlobals:r,globalTypes:this.projectAnnotations.globalTypes,userGlobals:n,reporting:i,globals:{...n,...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 e of[...t].reverse())await e();delete this.cleanupCallbacks[e.id]}extract(e={includeDocsOnly:!1}){let{cachedCSFFiles:t}=this;if(console.log(`extract: extracting stories`,t),!t)throw new Hd;let n=Object.entries(this.storyIndex.entries).reduce((n,[r,i])=>{if(i.type===`docs`)return n;let a=t[i.importPath],o=this.storyFromCSFFile({storyId:r,csfFile:a});return!e.includeDocsOnly&&o.parameters.docsOnly||(n[r]=Object.entries(o).reduce((e,[t,n])=>t===`story`&&i.subtype===`test`?{...e,story:i.parentName}:t===`moduleExport`||typeof n==`function`?e:Array.isArray(n)?Object.assign(e,{[t]:n.slice().sort()}):Object.assign(e,{[t]:n}),{args:o.initialArgs,globals:{...this.userGlobals.initialGlobals,...this.userGlobals.globals,...o.storyGlobals},storyId:i.parent?i.parent:r})),n},{});return console.log(`extract: stories`,n),n}};function $H(e){return e.startsWith(`\\\\?\\`)?e:e.replace(/\\/g,`/`)}var eU=e=>{if(e.length===0)return e;let t=e[e.length-1],n=t?.replace(/(?:[.](?:story|stories))?([.][^.]+)$/i,``);if(e.length===1)return[n];let r=e[e.length-2];return n&&r&&n.toLowerCase()===r.toLowerCase()?[...e.slice(0,-2),n]:n&&(/^(story|stories)([.][^.]+)$/i.test(t)||/^index$/i.test(n))?e.slice(0,-1):[...e.slice(0,-1),n]};function tU(e){return e.flatMap(e=>e.split(`/`)).filter(Boolean).join(`/`)}var nU=(e,t,n)=>{let{directory:r,importPathMatcher:i,titlePrefix:a=``}=t||{};typeof e==`number`&&Ns.warn(K`
902
- CSF Auto-title received a numeric fileName. This typically happens when
903
- webpack is mis-configured in production mode. To force webpack to produce
904
- filenames, set optimization.moduleIds = "named" in your webpack config.
905
- `);let o=$H(String(e));if(i.exec(o)){if(!n){let e=tU([a,o.replace(r,``)]).split(`/`);return e=eU(e),e.join(`/`)}return a?tU([a,n]):n}},rU=(e,t,n)=>{for(let r=0;r<t.length;r+=1){let i=nU(e,t[r],n);if(i)return i}return n||void 0},iU=/\s*\/\s*/,aU=(e={})=>(t,n)=>{if(t.title===n.title&&!e.includeNames)return 0;let r=e.method||`configure`,i=e.order||[],a=t.title.trim().split(iU),o=n.title.trim().split(iU);e.includeNames&&(a.push(t.name),o.push(n.name));let s=0;for(;a[s]||o[s];){if(!a[s])return-1;if(!o[s])return 1;let t=a[s],n=o[s];if(t!==n){let a=i.indexOf(t),o=i.indexOf(n),s=i.indexOf(`*`);return a!==-1||o!==-1?(a===-1&&(a=s===-1?i.length:s),o===-1&&(o=s===-1?i.length:s),a-o):r===`configure`?0:t.localeCompare(n,e.locales?e.locales:void 0,{numeric:!0,sensitivity:`accent`})}let c=i.indexOf(t);c===-1&&(c=i.indexOf(`*`)),i=c!==-1&&Array.isArray(i[c+1])?i[c+1]:[],s+=1}return 0},oU=(e,t,n)=>{if(t){let n;n=typeof t==`function`?t:aU(t),e.sort(n)}else e.sort((e,t)=>n.indexOf(e.importPath)-n.indexOf(t.importPath));return e},sU=(e,t,n)=>{try{return oU(e,t,n)}catch(e){throw Error(K`
906
- Error sorting stories with sort parameter ${t}:
907
-
908
- > ${e.message}
909
-
910
- Are you using a V6-style sort function in V7 mode?
911
-
912
- More info: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#v7-style-story-sort
913
- `)}},cU=Error(`prepareAborted`),{AbortController:lU}=globalThis;function uU(e){try{let{name:t=`Error`,message:n=String(e),stack:r}=e;return{name:t,message:n,stack:r}}catch{return{name:`Error`,message:String(e)}}}var dU=class{constructor(e,t,n,r,i,a,o={autoplay:!0,forceInitialArgs:!1},s){this.channel=e,this.store=t,this.renderToScreen=n,this.callbacks=r,this.id=i,this.viewMode=a,this.renderOptions=o,this.type=`story`,this.notYetRendered=!0,this.rerenderEnqueued=!1,this.disableKeyListeners=!1,this.teardownRender=()=>{},this.torndown=!1,this.abortController=new lU,this.renderId=Date.now(),s&&(this.story=s,this.phase=`preparing`)}async runPhase(e,t,n){this.phase=t,this.channel.emit(Ho,{newPhase:this.phase,renderId:this.renderId,storyId:this.id}),n&&(await n(),this.checkIfAborted(e))}checkIfAborted(e){return e.aborted&&![`finished`,`aborted`,`errored`].includes(this.phase)&&(this.phase=`aborted`,this.channel.emit(Ho,{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),cU}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 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:n}=this;if(!this.story)throw Error(`cannot render when not prepared`);let r=this.story;if(!n)throw Error(`cannot render when canvasElement is unset`);let{id:i,componentId:a,title:o,name:s,tags:c,applyLoaders:l,applyBeforeEach:u,applyAfterEach:d,unboundStoryFn:f,playFunction:p,runStep:m}=r;t&&!e&&(this.cancelRender(),this.abortController=new lU);let h=this.abortController.signal,g=!1,_=r.usesMount;try{let e={...this.storyContext(),viewMode:this.viewMode,abortSignal:h,canvasElement:n,loaded:{},step:(t,n)=>m(t,n,e),context:null,canvas:{},userEvent:{},renderToCanvas:async()=>{this.teardownRender=await this.renderToScreen(v,n)||(()=>{}),g=!0},mount:async(...t)=>{this.callbacks.showStoryDuringRender?.();let n=null;return await this.runPhase(h,`rendering`,async()=>{n=await r.mount(e)(...t)}),_&&await this.runPhase(h,`playing`),n}};e.context=e;let v={componentId:a,title:o,kind:o,id:i,name:s,story:s,tags:c,...this.callbacks,showError:e=>(this.phase=`errored`,this.callbacks.showError(e)),showException:e=>(this.phase=`errored`,this.callbacks.showException(e)),forceRemount:t||this.notYetRendered,storyContext:e,storyFn:()=>f(e),unboundStoryFn:f};if(await this.runPhase(h,`loading`,async()=>{e.loaded=await l(e)}),h.aborted)return;let y=await u(e);if(this.store.addCleanupCallbacks(r,...y),this.checkIfAborted(h)||(!g&&!_&&await e.mount(),this.notYetRendered=!1,h.aborted))return;let b=this.story.parameters?.test?.dangerouslyIgnoreUnhandledErrors===!0,x=new Set,S=e=>{e.error&&x.add(e.error)},C=e=>{e.reason&&x.add(e.reason)};if(this.renderOptions.autoplay&&t&&p&&this.phase!==`errored`){window?.addEventListener?.(`error`,S),window?.addEventListener?.(`unhandledrejection`,C),this.disableKeyListeners=!0;try{if(_?await p(e):(e.mount=async()=>{throw new Zd({playFunction:p.toString()})},await this.runPhase(h,`playing`,async()=>p(e))),!g)throw new $d;this.checkIfAborted(h),!b&&x.size>0?await this.runPhase(h,`errored`):await this.runPhase(h,`played`)}catch(e){if(this.callbacks.showStoryDuringRender?.(),await this.runPhase(h,`errored`,async()=>{this.channel.emit(_o,uU(e))}),this.story.parameters.throwPlayFunctionExceptions!==!1)throw e;console.error(e)}if(!b&&x.size>0&&this.channel.emit(vo,Array.from(x).map(uU)),this.disableKeyListeners=!1,window?.removeEventListener?.(`unhandledrejection`,C),window?.removeEventListener?.(`error`,S),h.aborted)return}await this.runPhase(h,`completing`,async()=>{MH()?this.store.addCleanupCallbacks(r,NH()):await PH(h)}),await this.runPhase(h,`completed`,async()=>{this.channel.emit(Uo,i)}),this.phase!==`errored`&&await this.runPhase(h,`afterEach`,async()=>{await d(e)});let w=!b&&x.size>0,T=e.reporting.reports.some(e=>e.status===`failed`),E=w||T;await this.runPhase(h,`finished`,async()=>this.channel.emit(Wo,{storyId:i,status:E?`error`:`success`,reporters:e.reporting.reports}))}catch(e){this.phase=`errored`,this.callbacks.showException(e),await this.runPhase(h,`finished`,async()=>this.channel.emit(Wo,{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(e=>setTimeout(e,0))}window?.location?.reload?.(),await new Promise(()=>{})}},{fetch:fU}=G,pU=`./index.json`,mU=class{constructor(e,t,n=Df.getChannel(),r=!0){this.importFn=e,this.getProjectAnnotations=t,this.channel=n,this.storyRenders=[],this.storeInitializationPromise=new Promise((e,t)=>{this.resolveStoreInitializationPromise=e,this.rejectStoreInitializationPromise=t}),r&&this.initialize()}get storyStore(){return new Proxy({},{get:(e,t)=>{if(this.storyStoreValue)return Ps(`Accessing the Story Store is deprecated and will be removed in 9.0`),this.storyStoreValue[t];throw new Xd}})}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(bo,{userAgent:t})}catch(e){this.rejectStoreInitializationPromise(e)}}ready(){return this.storeInitializationPromise}setupListeners(){this.channel.on(zo,this.onStoryIndexChanged.bind(this)),this.channel.on(Yo,this.onUpdateGlobals.bind(this)),this.channel.on(Zo,this.onUpdateArgs.bind(this)),this.channel.on(as,this.onRequestArgTypesInfo.bind(this)),this.channel.on(wo,this.onResetArgs.bind(this)),this.channel.on(po,this.onForceReRender.bind(this)),this.channel.on(mo,this.onForceRemount.bind(this)),this.channel.on(Jo,this.onStoryHotUpdated.bind(this))}async getProjectAnnotationsOrRenderError(){try{let e=await this.getProjectAnnotations();if(this.renderToCanvas=e.renderToCanvas,!this.renderToCanvas)throw new Ud;return e}catch(e){throw this.renderPreviewEntryError(`Error reading preview.js:`,e),e}}async initializeWithProjectAnnotations(e){this.projectAnnotationsBeforeInitialization=e;try{let e=await this.getStoryIndexFromServer();return this.initializeWithStoryIndex(e)}catch(e){throw this.renderPreviewEntryError(`Error loading story index:`,e),e}}async runBeforeAllHook(e){try{await this.beforeAllCleanup?.(),this.beforeAllCleanup=await e.beforeAll?.()}catch(e){throw this.renderPreviewEntryError(`Error in beforeAll hook:`,e),e}}async getStoryIndexFromServer(){let e=await fU(pU);if(e.status===200)return e.json();throw new Gd({text:await e.text()})}initializeWithStoryIndex(e){if(!this.projectAnnotationsBeforeInitialization)throw Error(`Cannot call initializeWithStoryIndex until project annotations resolve`);this.storyStoreValue=new QH(e,this.importFn,this.projectAnnotationsBeforeInitialization),delete this.projectAnnotationsBeforeInitialization,this.setInitialGlobals(),this.resolveStoreInitializationPromise()}async setInitialGlobals(){this.emitGlobals()}emitGlobals(){if(!this.storyStoreValue)throw new Wd({methodName:`emitGlobals`});let e={globals:this.storyStoreValue.userGlobals.get()||{},globalTypes:this.storyStoreValue.projectAnnotations.globalTypes||{}};this.channel.emit(ko,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 Wd({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 Wd({methodName:`onUpdateGlobals`});if(this.storyStoreValue.userGlobals.update(e),t){let{initialGlobals:e,storyGlobals:n,userGlobals:r,globals:i}=this.storyStoreValue.getStoryContext(t);this.channel.emit(ho,{initialGlobals:e,userGlobals:r,storyGlobals:n,globals:i})}else{let{initialGlobals:e,globals:t}=this.storyStoreValue.userGlobals;this.channel.emit(ho,{initialGlobals:e,userGlobals:t,storyGlobals:{},globals:t})}await Promise.all(this.storyRenders.map(e=>e.rerender()))}async onUpdateArgs({storyId:e,updatedArgs:t}){if(!this.storyStoreValue)throw new Wd({methodName:`onUpdateArgs`});this.storyStoreValue.args.update(e,t),await Promise.all(this.storyRenders.filter(t=>t.id===e&&!t.renderOptions.forceInitialArgs).map(e=>e.story&&e.story.usesMount?e.remount():e.rerender())),this.channel.emit(Io,{storyId:e,args:this.storyStoreValue.args.get(e)})}async onRequestArgTypesInfo({id:e,payload:t}){try{await this.storeInitializationPromise;let n=await this.storyStoreValue?.loadStory(t);this.channel.emit(os,{id:e,success:!0,payload:{argTypes:n?.argTypes||{}},error:null})}catch(t){this.channel.emit(os,{id:e,success:!1,error:t?.message})}}async onResetArgs({storyId:e,argNames:t}){if(!this.storyStoreValue)throw new Wd({methodName:`onResetArgs`});let n=this.storyRenders.find(t=>t.id===e)?.story||await this.storyStoreValue.loadStory({storyId:e}),r=(t||[...new Set([...Object.keys(n.initialArgs),...Object.keys(this.storyStoreValue.args.get(e))])]).reduce((e,t)=>(e[t]=n.initialArgs[t],e),{});await this.onUpdateArgs({storyId:e,updatedArgs:r})}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(e=>e.remount()))}async onStoryHotUpdated(){await Promise.all(this.storyRenders.map(e=>e.cancelPlayFunction()))}renderStoryToElement(e,t,n,r){if(!this.renderToCanvas||!this.storyStoreValue)throw new Wd({methodName:`renderStoryToElement`});let i=new dU(this.channel,this.storyStoreValue,this.renderToCanvas,n,e.id,`docs`,r,e);return i.renderToElement(t),this.storyRenders.push(i),async()=>{await this.teardownRender(i)}}async teardownRender(e,{viewModeChanged:t}={}){this.storyRenders=this.storyRenders.filter(t=>t!==e),await e?.teardown?.({viewModeChanged:t})}async loadStory({storyId:e}){if(!this.storyStoreValue)throw new Wd({methodName:`loadStory`});return this.storyStoreValue.loadStory({storyId:e})}getStoryContext(e,{forceInitialArgs:t=!1}={}){if(!this.storyStoreValue)throw new Wd({methodName:`getStoryContext`});return this.storyStoreValue.getStoryContext(e,{forceInitialArgs:t})}async extract(e){if(!this.storyStoreValue)throw new Wd({methodName:`extract`});if(this.previewEntryError)throw this.previewEntryError;return await this.storyStoreValue.cacheAllCSFFiles(),this.storyStoreValue.extract(e)}renderPreviewEntryError(e,t){this.previewEntryError=t,js.error(e),js.error(t),this.channel.emit(io,t)}},hU=class{constructor(e,t,n,r){this.channel=e,this.store=t,this.renderStoryToElement=n,this.storyIdByName=e=>{let t=this.nameToStoryId.get(e);if(t)return t;throw Error(`No story found with that name: ${e}`)},this.componentStories=()=>this.componentStoriesValue,this.componentStoriesFromCSFFile=e=>this.store.componentStoriesFromCSFFile({csfFile:e}),this.storyById=e=>{if(!e){if(!this.primaryStory)throw Error("No primary story defined for docs entry. Did you forget to use `<Meta>`?");return this.primaryStory}let t=this.storyIdToCSFFile.get(e);if(!t)throw Error(`Called \`storyById\` for story that was never loaded: ${e}`);return this.store.storyFromCSFFile({storyId:e,csfFile:t})},this.getStoryContext=e=>({...this.store.getStoryContext(e),loaded:{},viewMode:`docs`}),this.loadStory=e=>this.store.loadStory({storyId:e}),this.componentStoriesValue=[],this.storyIdToCSFFile=new Map,this.exportToStory=new Map,this.exportsToCSFFile=new Map,this.nameToStoryId=new Map,this.attachedCSFFiles=new Set,r.forEach((e,t)=>{this.referenceCSFFile(e)})}referenceCSFFile(e){this.exportsToCSFFile.set(e.moduleExports,e),this.exportsToCSFFile.set(e.moduleExports.default,e),this.store.componentStoriesFromCSFFile({csfFile:e}).forEach(t=>{let n=e.stories[t.id];this.storyIdToCSFFile.set(n.id,e),this.exportToStory.set(n.moduleExport,t)})}attachCSFFile(e){if(!this.exportsToCSFFile.has(e.moduleExports))throw 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(e=>{this.nameToStoryId.set(e.name,e.id),this.componentStoriesValue.push(e),this.primaryStory||=e}))}referenceMeta(e,t){let n=this.resolveModuleExport(e);if(n.type!==`meta`)throw 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(n.csfFile)}get projectAnnotations(){let{projectAnnotations:e}=this.store;if(!e)throw Error(`Can't get projectAnnotations from DocsContext before they are initialized`);return e}resolveAttachedModuleExportType(e){if(e===`story`){if(!this.primaryStory)throw 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 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:n}=t.meta;if(!n)throw Error(`Attached CSF file does not defined a component, did you forget to export one?`);return{type:`component`,component:n}}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 n=this.exportToStory.get(UB(e)?e.input:e);return n?{type:`story`,story:n}:{type:`component`,component:e}}resolveOf(e,t=[]){let n;if([`component`,`meta`,`story`].includes(e)){let t=e;n=this.resolveAttachedModuleExportType(t)}else n=this.resolveModuleExport(e);if(t.length&&!t.includes(n.type)){let e=n.type===`component`?`component or unknown`:n.type;throw Error(K`Invalid value passed to the 'of' prop. The value was resolved to a '${e}' type but the only types for this block are: ${t.join(`, `)}.
914
- - Did you pass a component to the 'of' prop when the block only supports a story or a meta?
915
- - ... or vice versa?
916
- - Did you pass a story, CSF file or meta to the 'of' prop that is not indexed, ie. is not targeted by the 'stories' globs in the main configuration?`)}switch(n.type){case`component`:return{...n,projectAnnotations:this.projectAnnotations};case`meta`:return{...n,preparedMeta:this.store.preparedMetaFromCSFFile({csfFile:n.csfFile})};default:return n}}},gU=class{constructor(e,t,n,r){this.channel=e,this.store=t,this.entry=n,this.callbacks=r,this.type=`docs`,this.subtype=`csf`,this.torndown=!1,this.disableKeyListeners=!1,this.preparing=!1,this.id=n.id,this.renderId=Date.now()}isPreparing(){return this.preparing}async prepare(){this.preparing=!0;let{entryExports:e,csfFiles:t=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw cU;let{importPath:n,title:r}=this.entry,i=this.store.processCSFFileWithCache(e,n,r),a=Object.keys(i.stories)[0];this.story=this.store.storyFromCSFFile({storyId:a,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 Error(`Cannot render docs before preparing`);let t=new hU(this.channel,this.store,e,this.csfFiles);return this.csfFiles.forEach(e=>t.attachCSFFile(e)),t}async renderToElement(e,t){if(!this.story||!this.csfFiles)throw Error(`Cannot render docs before preparing`);let n=this.docsContext(t),{docs:r}=this.story.parameters||{};if(!r)throw Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");let i=await r.renderer(),{render:a}=i,o=async()=>{try{await a(n,r,e),this.channel.emit(lo,this.id)}catch(e){this.callbacks.showException(e)}};return this.rerender=async()=>o(),this.teardownRender=async({viewModeChanged:t})=>{!t||!e||i.unmount(e)},o()}async teardown({viewModeChanged:e}={}){this.teardownRender?.({viewModeChanged:e}),this.torndown=!0}},_U=class{constructor(e,t,n,r){this.channel=e,this.store=t,this.entry=n,this.callbacks=r,this.type=`docs`,this.subtype=`mdx`,this.torndown=!1,this.disableKeyListeners=!1,this.preparing=!1,this.id=n.id,this.renderId=Date.now()}isPreparing(){return this.preparing}async prepare(){this.preparing=!0;let{entryExports:e,csfFiles:t=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw cU;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 Error(`Cannot render docs before preparing`);return new hU(this.channel,this.store,e,this.csfFiles)}async renderToElement(e,t){if(!this.exports||!this.csfFiles||!this.store.projectAnnotations)throw Error(`Cannot render docs before preparing`);let n=this.docsContext(t),{docs:r}=this.store.projectAnnotations.parameters??{};if(!r)throw Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");let i={...r,page:this.exports.default},a=await r.renderer(),{render:o}=a,s=async()=>{try{await o(n,i,e),this.channel.emit(lo,this.id)}catch(e){this.callbacks.showException(e)}};return this.rerender=async()=>s(),this.teardownRender=async({viewModeChanged:t}={})=>{!t||!e||(a.unmount(e),this.torndown=!0)},s()}async teardown({viewModeChanged:e}={}){this.teardownRender?.({viewModeChanged:e}),this.torndown=!0}},vU=globalThis;function yU(e){let t=e.composedPath&&e.composedPath()[0]||e.target;return/input|textarea/i.test(t.tagName)||t.getAttribute(`contenteditable`)!==null}function bU({tags:e}){return e?.includes(lp.UNATTACHED_MDX)||e?.includes(lp.ATTACHED_MDX)}function xU(e){return e.type===`story`}function SU(e){return e.type===`docs`}function CU(e){return SU(e)&&e.subtype===`csf`}var wU=class extends mU{constructor(e,t,n,r){super(e,t,void 0,!1),this.importFn=e,this.getProjectAnnotations=t,this.selectionStore=n,this.view=r,this.initialize()}setupListeners(){super.setupListeners(),vU.onkeydown=this.onKeydown.bind(this),this.channel.on(Do,this.onSetCurrentStory.bind(this)),this.channel.on(Xo,this.onUpdateQueryParams.bind(this)),this.channel.on(yo,this.onPreloadStories.bind(this))}async setInitialGlobals(){if(!this.storyStoreValue)throw new Wd({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 Wd({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,n=this.storyStoreValue.storyIndex.entryFromSpecifier(e);if(!n){e===`*`?this.renderStoryLoadingException(e,new qd):this.renderStoryLoadingException(e,new Jd({storySpecifier:e.toString()}));return}let{id:r,type:i}=n;this.selectionStore.setSelection({storyId:r,viewMode:i}),this.channel.emit(Go,this.selectionStore.selection),this.channel.emit(so,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(e=>e.disableKeyListeners)&&!yU(e)){let{altKey:t,ctrlKey:n,metaKey:r,shiftKey:i,key:a,code:o,keyCode:s}=e;this.channel.emit(So,{event:{altKey:t,ctrlKey:n,metaKey:r,shiftKey:i,key:a,code:o,keyCode:s}})}}async onSetCurrentStory(e){this.selectionStore.setSelection({viewMode:`story`,...e}),await this.storeInitializationPromise,this.channel.emit(so,this.selectionStore.selection),this.renderSelection()}onUpdateQueryParams(e){this.selectionStore.setQueryParams(e)}async onUpdateGlobals({globals:e}){let t=this.currentRender instanceof dU&&this.currentRender.story||void 0;super.onUpdateGlobals({globals:e,currentStory:t}),(this.currentRender instanceof _U||this.currentRender instanceof gU)&&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(e=>this.storyStoreValue?.loadEntry(e)))}async renderSelection({persistedArgs:e}={}){let{renderToCanvas:t}=this;if(!this.storyStoreValue||!t)throw new Wd({methodName:`renderSelection`});let{selection:n}=this.selectionStore;if(!n)throw Error(`Cannot call renderSelection as no selection was made`);let{storyId:r}=n,i;try{i=await this.storyStoreValue.storyIdToEntry(r)}catch(e){this.currentRender&&await this.teardownRender(this.currentRender),this.renderStoryLoadingException(r,e);return}let a=this.currentSelection?.storyId!==r,o=this.currentRender?.type!==i.type;i.type===`story`?this.view.showPreparingStory({immediate:o}):this.view.showPreparingDocs({immediate:o}),this.currentRender?.isPreparing()&&await this.teardownRender(this.currentRender);let s;s=i.type===`story`?new dU(this.channel,this.storyStoreValue,t,this.mainStoryCallbacks(r),r,`story`):bU(i)?new _U(this.channel,this.storyStoreValue,i,this.mainStoryCallbacks(r)):new gU(this.channel,this.storyStoreValue,i,this.mainStoryCallbacks(r));let c=this.currentSelection;this.currentSelection=n;let l=this.currentRender;this.currentRender=s;try{await s.prepare()}catch(e){l&&await this.teardownRender(l),e!==cU&&this.renderStoryLoadingException(r,e);return}let u=!a&&l&&!s.isEqual(l);if(e&&xU(s)&&(xd(!!s.story),this.storyStoreValue.args.updateFromPersisted(s.story,e)),l&&!l.torndown&&!a&&!u&&!o){this.currentRender=l,this.channel.emit(qo,r),this.view.showMain();return}if(l&&await this.teardownRender(l,{viewModeChanged:o}),c&&(a||o)&&this.channel.emit(Lo,r),xU(s)){xd(!!s.story);let{parameters:e,initialArgs:t,argTypes:n,unmappedArgs:i,initialGlobals:a,userGlobals:o,storyGlobals:c,globals:l}=this.storyStoreValue.getStoryContext(s.story);this.channel.emit(Vo,{id:r,parameters:e,initialArgs:t,argTypes:n,args:i}),this.channel.emit(ho,{userGlobals:o,storyGlobals:c,globals:l,initialGlobals:a})}else{let{parameters:e}=this.storyStoreValue.projectAnnotations,{initialGlobals:t,globals:n}=this.storyStoreValue.userGlobals;if(this.channel.emit(ho,{globals:n,initialGlobals:t,storyGlobals:{},userGlobals:n}),CU(s)||s.entry.tags?.includes(lp.ATTACHED_MDX)){if(!s.csfFiles)throw new Kd({storyId:r});({parameters:e}=this.storyStoreValue.preparedMetaFromCSFFile({csfFile:s.csfFiles[0]}))}this.channel.emit(co,{id:r,parameters:e})}xU(s)?(xd(!!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(t=>t!==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(Bo)}renderStoryLoadingException(e,t){js.error(t),this.view.showErrorDisplay(t),this.channel.emit(Bo,e)}renderException(e,t){let{name:n=`Error`,message:r=String(t),stack:i}=t,a=this.currentRender?.renderId;this.channel.emit(Ko,{name:n,message:r,stack:i}),this.channel.emit(Ho,{newPhase:`errored`,renderId:a,storyId:e}),this.view.showErrorDisplay(t),js.error(`Error rendering story '${e}':`),js.error(t)}renderError(e,{title:t,description:n}){let r=this.currentRender?.renderId;this.channel.emit(Ro,{title:t,description:n}),this.channel.emit(Ho,{newPhase:`errored`,renderId:r,storyId:e}),this.view.showErrorDisplay({message:t,stack:n}),js.error(`Error rendering story ${t}: ${n}`)}},TU=H(Va(),1),EU=H(Va(),1),DU=/^[a-zA-Z0-9 _-]*$/,OU=/^-?[0-9]+(\.[0-9]+)?$/,kU=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,AU=/^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,jU=(e=``,t)=>e===null||e===``||!DU.test(e)?!1:t==null||t instanceof Date||typeof t==`number`||typeof t==`boolean`?!0:typeof t==`string`?DU.test(t)||OU.test(t)||kU.test(t)||AU.test(t):Array.isArray(t)?t.every(t=>jU(e,t)):DV(t)?Object.entries(t).every(([e,t])=>jU(e,t)):!1,MU={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(AU);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 OU.test(e)?Number(e):e}},NU=e=>{let t=e.split(`;`).map(e=>e.replace(`=`,`~`).replace(`:`,`=`));return Object.entries((0,EU.parse)(t.join(`;`),MU)).reduce((e,[t,n])=>jU(t,n)?Object.assign(e,{[t]:n}):(Ns.warn(K`
917
- Omitted potentially unsafe URL args.
918
-
919
- More info: https://storybook.js.org/docs/writing-stories/args?ref=error#setting-args-through-the-url
920
- `),e),{})},{history:PU,document:FU}=G;function IU(e){let t=(e||``).match(/^\/story\/(.+)/);if(!t)throw Error(`Invalid path '${e}', must start with '/story/'`);return t[1]}var LU=({selection:e,extraParams:t})=>{let n=FU?.location.search.slice(1),{path:r,selectedKind:i,selectedStory:a,...o}=(0,TU.parse)(n);return`?${(0,TU.stringify)({...o,...t,...e&&{id:e.storyId,viewMode:e.viewMode}})}`},RU=e=>{if(!e)return;let t=LU({selection:e}),{hash:n=``}=FU.location;FU.title=e.storyId,PU.replaceState({},``,`${FU.location.pathname}${t}${n}`)},zU=e=>typeof e==`object`&&!!e&&Array.isArray(e)===!1,BU=e=>{if(e!==void 0){if(typeof e==`string`)return e;if(Array.isArray(e))return BU(e[0]);if(zU(e))return BU(Object.values(e).filter(Boolean))}},VU=()=>{if(typeof FU<`u`){let e=FU.location.search.slice(1),t=(0,TU.parse)(e),n=typeof t.args==`string`?NU(t.args):void 0,r=typeof t.globals==`string`?NU(t.globals):void 0,i=BU(t.viewMode);if(typeof i!=`string`||!i)i=`story`;else if(!i.match(/docs|story/))return null;let a=BU(t.path),o=a?IU(a):BU(t.id);if(o)return{storySpecifier:o,args:n,globals:r,viewMode:i}}return null},HU=class{constructor(){this.selectionSpecifier=VU()}setSelection(e){this.selection=e,RU(this.selection)}setQueryParams(e){let t=LU({extraParams:e}),{hash:n=``}=FU.location;PU.replaceState({},``,`${FU.location.pathname}${t}${n}`)}},UU=H(Xa(),1),WU=H(Va(),1),{document:GU}=G,KU=100,qU=(e=>(e.MAIN=`MAIN`,e.NOPREVIEW=`NOPREVIEW`,e.PREPARING_STORY=`PREPARING_STORY`,e.PREPARING_DOCS=`PREPARING_DOCS`,e.ERROR=`ERROR`,e))(qU||{}),JU={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`},XU=new UU.default({escapeXML:!0}),ZU=class{constructor(){if(this.testing=!1,typeof GU<`u`){let{__SPECIAL_TEST_PARAMETER__:e}=(0,WU.parse)(GU.location.search.slice(1));switch(e){case`preparing-story`:this.showPreparingStory(),this.testing=!0;break;case`preparing-docs`:this.showPreparingDocs(),this.testing=!0;break;default:}}}prepareForStory(e){return this.showStory(),this.applyLayout(e.parameters.layout),GU.documentElement.scrollTop=0,GU.documentElement.scrollLeft=0,this.storyRoot()}storyRoot(){return GU.getElementById(`storybook-root`)}prepareForDocs(){return this.showMain(),this.showDocs(),this.applyLayout(`fullscreen`),GU.documentElement.scrollTop=0,GU.documentElement.scrollLeft=0,this.docsRoot()}docsRoot(){return GU.getElementById(`storybook-docs`)}applyLayout(e=`padded`){if(e===`none`){GU.body.classList.remove(this.currentLayoutClass),this.currentLayoutClass=null;return}this.checkIfLayoutExists(e);let t=YU[e];GU.body.classList.remove(this.currentLayoutClass),GU.body.classList.add(t),this.currentLayoutClass=t}checkIfLayoutExists(e){YU[e]||js.warn(K`
921
- The desired layout: ${e} is not a valid option.
922
- The possible options are: ${Object.keys(YU).join(`, `)}, none.
923
- `)}showMode(e){clearTimeout(this.preparingTimeout),Object.keys(qU).forEach(t=>{t===e?GU.body.classList.add(JU[t]):GU.body.classList.remove(JU[t])})}showErrorDisplay({message:e=``,stack:t=``}){let n=e,r=t,i=e.split(`
924
- `);i.length>1&&([n]=i,r=i.slice(1).join(`
925
- `).replace(/^\n/,``)),GU.getElementById(`error-message`).innerHTML=XU.toHtml(n),GU.getElementById(`error-stack`).innerHTML=XU.toHtml(r),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`),KU)}showPreparingDocs({immediate:e=!1}={}){clearTimeout(this.preparingTimeout),e?this.showMode(`PREPARING_DOCS`):this.preparingTimeout=setTimeout(()=>this.showMode(`PREPARING_DOCS`),KU)}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(){GU.body.classList.add(JU.MAIN)}},QU=class extends wU{constructor(e,t){super(e,t,new HU,new ZU),this.importFn=e,this.getProjectAnnotations=t,G.__STORYBOOK_PREVIEW__=this}},{document:$U}=G,eW=[`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`],tW=`script`,nW=`scripts-root`;function rW(){let e=$U.createEvent(`Event`);e.initEvent(`DOMContentLoaded`,!0,!0),$U.dispatchEvent(e)}function iW(e,t,n){let r=$U.createElement(`script`);r.type=e.type===`module`?`module`:`text/javascript`,e.src?(r.onload=t,r.onerror=t,r.src=e.src):r.textContent=e.innerText,n?n.appendChild(r):$U.head.appendChild(r),e.parentNode.removeChild(e),e.src||t()}function aW(e,t,n=0){e[n](()=>{n++,n===e.length?t():aW(e,t,n)})}function oW(e){let t=$U.getElementById(nW);t?t.innerHTML=``:(t=$U.createElement(`div`),t.id=nW,$U.body.appendChild(t));let n=Array.from(e.querySelectorAll(tW));if(n.length){let e=[];n.forEach(n=>{let r=n.getAttribute(`type`);(!r||eW.includes(r))&&e.push(e=>iW(n,e,t))}),e.length&&aW(e,rW,void 0)}else rW()}var sW;(function(e){e.start=`/**`,e.nostart=`/***`,e.delim=`*`,e.end=`*/`})(sW=sW||={});var cW=(0,H(Za(),1).stringifyRules)(),lW=cW.JsdocTypeObject;cW.JsdocTypeAny=()=>`any`,cW.JsdocTypeObject=(e,t)=>`(${lW(e,t)})`,cW.JsdocTypeOptional=(e,t)=>t(e.element),cW.JsdocTypeNullable=(e,t)=>t(e.element),cW.JsdocTypeNotNullable=(e,t)=>t(e.element),cW.JsdocTypeUnion=(e,t)=>e.elements.map(t).join(`|`);var uW=`storybook/docs`;`${uW}`;var dW=`${uW}/snippet-rendered`;async function fW(e,t){let n=t.parameters?.docs?.source?.transform,{id:r,unmappedArgs:i}=t,a=n&&e?n?.(e,t):e,o=a?await a:void 0;Df.getChannel().emit(dW,{id:r,source:o,args:i})}var pW={depth:10,clearOnStoryChange:!0,limit:50},mW=(e={})=>{Object.assign(pW,e)},hW=(e,t)=>{let n=Object.getPrototypeOf(e);return!n||t(n)?n:hW(n,t)},gW=e=>!!(typeof e==`object`&&e&&hW(e,e=>/^Synthetic(?:Base)?Event$/.test(e.constructor.name))&&typeof e.persist==`function`),_W=e=>{if(gW(e)){let t=Object.create(e.constructor.prototype,Object.getOwnPropertyDescriptors(e));t.persist();let n=Object.getOwnPropertyDescriptor(t,`view`),r=n?.value;return typeof r==`object`&&r?.constructor.name===`Window`&&Object.defineProperty(t,`view`,{...n,value:Object.create(r.constructor.prototype)}),t}return e};function vW(e,t={}){let n={...pW,...t},r=function(...r){if(t.implicit){let t=(`__STORYBOOK_PREVIEW__`in G?G.__STORYBOOK_PREVIEW__:void 0)?.storyRenders.find(e=>e.phase===`playing`||e.phase===`rendering`);if(t){let n=!globalThis?.FEATURES?.disallowImplicitActionsInRenderV8,r=new Vd({phase:t.phase,name:e,deprecated:n});if(n)console.warn(r);else throw r}}let i=Df.getChannel(),a=Date.now().toString(36)+Math.random().toString(36).substring(2),o=r.map(_W),s={id:a,count:0,data:{name:e,args:r.length>1?o:o[0]},options:{...n,maxDepth:5+(n.depth||3)}};i.emit(yf,s)};return r.isAction=!0,r.implicit=t.implicit,r}var yW=(...e)=>{let t=pW,n=e;n.length===1&&Array.isArray(n[0])&&([n]=n),n.length!==1&&typeof n[n.length-1]!=`string`&&(t={...pW,...n.pop()});let r=n[0];(n.length!==1||typeof r==`string`)&&(r={},n.forEach(e=>{r[e]=e}));let i={};return Object.keys(r).forEach(e=>{i[e]=vW(r[e],t)}),i},bW={"@storybook/global":hs,"storybook/test":mp,"storybook/actions":hf,"storybook/preview-api":Sf,"storybook/internal/channels":vs,"storybook/internal/client-logger":Ds,"storybook/internal/core-events":$a,"storybook/internal/types":sf,"storybook/internal/preview-errors":Fd,"storybook/internal/preview-api":Sf};async function xW(){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(),n=e.searchParams.get(`id`);if(!n){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}SW(t,n)}var SW=async(e,t)=>{let n={title:``,entries:{},isActive:!0};for(let r of Object.values(e.entries)){let e=r.title.split(`/`),i=n;for(let n of e)i.entries||={},i.entries[n]?t===r.id&&(i.entries[n].isActive=!0):i.entries[n]={title:n,isActive:t===r.id,entries:{}},i=i.entries[n];i.entries||={},i.entries[r.name]={id:r.id,name:r.name,href:`?id=${r.id}&viewMode=${r.type}&navigator=true`,isActive:t===r.id}}let r=e=>{if(`entries`in e&&`title`in e){let t=e;return`
926
- <li class="sb-navigator-branch">
927
- <details${t.isActive?` open`:``}>
928
- <summary class="sb-navigator-title">
929
- ${t.title}
930
- </summary>
931
- <ul class="sb-navigator-entries" aria-label="${t.title}">
932
- ${Object.values(t.entries).map(r).join(``)}
933
- </ul>
934
- </details>
935
- </li>
936
- `}let t=e;return`
937
- <li class="sb-navigator-story-item">
938
- <a href="${t.href}"
939
- class="sb-navigator-story-link${t.isActive?` active`:``}"
940
- aria-current="${t.isActive?`location`:`false`}">${t.name}</a>
941
- </li>
942
- `},i=Object.values(n.entries).map(r).join(``),a=document.createElement(`nav`);a.id=`sb-navigator-container`,a.setAttribute(`role`,`navigation`),a.setAttribute(`aria-label`,`Story navigation`),a.innerHTML=`
943
- <ul class="sb-navigator-list">${i}</ul>
944
- `,document.body.insertBefore(a,document.body.firstChild);let o=document.createElement(`style`);o.id=`sb-navigator-style`,o.textContent=`
945
- body {
946
- display: grid !important;
947
- grid-template-columns: 300px 1fr;
948
- font-family: 'Nunito', sans-serif;
949
- height: 100vh;
950
- margin: 0;
951
-
952
- --text-color: rgb(46, 52, 56);
953
- --bg-color: rgb(246, 249, 252);
954
-
955
- @media (prefers-color-scheme: dark) {
956
- --text-color: rgb(201, 205, 207);
957
- --bg-color: rgb(34, 36, 37);
958
- }
959
- }
960
- #storybook-root, #storybook-docs {
961
- overflow-y: auto;
962
- max-height: 100vh;
963
- max-width: 100%;
964
- }
965
- #sb-navigator-container, #sb-navigator-container * {
966
- box-sizing: border-box;
967
- }
968
- #sb-navigator-container {
969
- height: 100vh;
970
- overflow-y: auto;
971
- border-right: 1px solid #eee;
972
- padding: 1rem;
973
- font-size: 14px;
974
- color: var(--text-color);
975
- background-color: var(--bg-color);
976
- align-self: start;
977
- z-index: 1000;
978
- }
979
- .sb-main-padded #sb-navigator-container {
980
- margin: -1rem 1rem -1rem -1rem;
981
- }
982
- .sb-navigator-list {
983
- list-style-type: none;
984
- padding: 0;
985
- margin: 0;
986
- }
987
- .sb-navigator-branch {
988
- list-style-type: none;
989
- }
990
- .sb-navigator-item {
991
- margin-bottom: 15px;
992
- }
993
- .sb-navigator-title {
994
- color: var(--text-color);
995
- text-decoration: none;
996
- padding-block: 5px;
997
- cursor: pointer;
998
- }
999
- .sb-navigator-entries {
1000
- padding-left: 15px;
1001
- }
1002
- .sb-navigator-story-item {
1003
- margin-bottom: 8px;
1004
- margin-left: 8px;
1005
- }
1006
- .sb-navigator-story-link {
1007
- color: var(--text-color);
1008
- }
1009
- .sb-navigator-story-link.active {
1010
- font-weight: bold;
1011
- color: hsl(212 100 46);
1012
- }
1013
- `,document.head.appendChild(o),a.querySelector(`.sb-navigator-story-link.active`)?.closest(`details`)?.scrollIntoView({block:`center`})},CW=H(Qa(),1),wW;function TW(){return wW||=new CW.default(G.navigator?.userAgent).getBrowserInfo(),wW}function EW(e){return e.browserInfo=TW(),e}function DW(e){let t=e.error||e;t.fromStorybook&&G.sendTelemetryError(t)}function OW({reason:e}){e.fromStorybook&&G.sendTelemetryError(e)}function kW(){_s.forEach(e=>{G[gs[e]]=bW[e]}),G.sendTelemetryError=e=>{G.__STORYBOOK_ADDONS_CHANNEL__.emit(ns,EW(e))},document.addEventListener(`DOMContentLoaded`,()=>{G.__STORYBOOK_ADDONS_CHANNEL__.on(ds,e=>{e?document.body.setAttribute(`inert`,`true`):document.body.removeAttribute(`inert`)})}),G.addEventListener(`error`,DW),G.addEventListener(`unhandledrejection`,OW),xW()}kW();var{createBrowserChannel:AW}=__STORYBOOK_MODULE_CHANNELS__,{addons:jW}=__STORYBOOK_MODULE_PREVIEW_API__,MW=AW({page:`preview`});jW.setChannel(MW),window.__STORYBOOK_ADDONS_CHANNEL__=MW,window.CONFIG_TYPE===`DEVELOPMENT`&&(window.__STORYBOOK_SERVER_CHANNEL__=MW);var NW=Object.create,PW=Object.defineProperty,FW=Object.getOwnPropertyDescriptor,IW=Object.getOwnPropertyNames,LW=Object.getPrototypeOf,RW=Object.prototype.hasOwnProperty,zW=(e=>typeof Ee<`u`?Ee:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof Ee<`u`?Ee:e)[t]}):e)(function(e){if(typeof Ee<`u`)return Ee.apply(this,arguments);throw Error(`Dynamic require of "`+e+`" is not supported`)}),BW=(e,t)=>function(){return t||(0,e[IW(e)[0]])((t={exports:{}}).exports,t),t.exports},VW=(e,t)=>{for(var n in t)PW(e,n,{get:t[n],enumerable:!0})},HW=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of IW(t))!RW.call(e,i)&&i!==n&&PW(e,i,{get:()=>t[i],enumerable:!(r=FW(t,i))||r.enumerable});return e},UW=(e,t,n)=>(n=e==null?{}:NW(LW(e)),HW(t||!e||!e.__esModule?PW(n,`default`,{value:e,enumerable:!0}):n,e)),WW=BW({"../../node_modules/memoizerific/memoizerific.js"(e,t){(function(n){if(typeof e==`object`&&typeof t<`u`)t.exports=n();else if(typeof define==`function`&&define.amd)define([],n);else{var r=typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:this;r.memoizerific=n()}})(function(){return(function e(t,n,r){function i(o,s){if(!n[o]){if(!t[o]){var c=typeof zW==`function`&&zW;if(!s&&c)return c(o,!0);if(a)return a(o,!0);var l=Error(`Cannot find module '`+o+`'`);throw l.code=`MODULE_NOT_FOUND`,l}var u=n[o]={exports:{}};t[o][0].call(u.exports,function(e){var n=t[o][1][e];return i(n||e)},u,u.exports,e,t,n,r)}return n[o].exports}for(var a=typeof zW==`function`&&zW,o=0;o<r.length;o++)i(r[o]);return i})({1:[function(e,t,n){t.exports=function(t){return typeof Map!=`function`||t?new(e(`./similar`)):new Map}},{"./similar":2}],2:[function(e,t,n){function r(){return this.list=[],this.lastItem=void 0,this.size=0,this}r.prototype.get=function(e){var t;if(this.lastItem&&this.isEqual(this.lastItem.key,e))return this.lastItem.val;if(t=this.indexOf(e),t>=0)return this.lastItem=this.list[t],this.list[t].val},r.prototype.set=function(e,t){var n;return this.lastItem&&this.isEqual(this.lastItem.key,e)?(this.lastItem.val=t,this):(n=this.indexOf(e),n>=0?(this.lastItem=this.list[n],this.list[n].val=t,this):(this.lastItem={key:e,val:t},this.list.push(this.lastItem),this.size++,this))},r.prototype.delete=function(e){var t;if(this.lastItem&&this.isEqual(this.lastItem.key,e)&&(this.lastItem=void 0),t=this.indexOf(e),t>=0)return this.size--,this.list.splice(t,1)[0]},r.prototype.has=function(e){var t;return this.lastItem&&this.isEqual(this.lastItem.key,e)?!0:(t=this.indexOf(e),t>=0?(this.lastItem=this.list[t],!0):!1)},r.prototype.forEach=function(e,t){var n;for(n=0;n<this.size;n++)e.call(t||this,this.list[n].val,this.list[n].key,this)},r.prototype.indexOf=function(e){var t;for(t=0;t<this.size;t++)if(this.isEqual(this.list[t].key,e))return t;return-1},r.prototype.isEqual=function(e,t){return e===t||e!==e&&t!==t},t.exports=r},{}],3:[function(e,t,n){var r=e(`map-or-similar`);t.exports=function(e){var t=new r(!1),n=[];return function(o){var s=function(){var c=t,l,u,d=arguments.length-1,f=Array(d+1),p=!0,m;if((s.numArgs||s.numArgs===0)&&s.numArgs!==d+1)throw Error(`Memoizerific functions should always be called with the same number of arguments`);for(m=0;m<d;m++){if(f[m]={cacheItem:c,arg:arguments[m]},c.has(arguments[m])){c=c.get(arguments[m]);continue}p=!1,l=new r(!1),c.set(arguments[m],l),c=l}return p&&(c.has(arguments[d])?u=c.get(arguments[d]):p=!1),p||(u=o.apply(null,arguments),c.set(arguments[d],u)),e>0&&(f[d]={cacheItem:c,arg:arguments[d]},p?i(n,f):n.push(f),n.length>e&&a(n.shift())),s.wasMemoized=p,s.numArgs=d+1,u};return s.limit=e,s.wasMemoized=!1,s.cache=t,s.lru=n,s}};function i(e,t){var n=e.length,r=t.length,i,a,s;for(a=0;a<n;a++){for(i=!0,s=0;s<r;s++)if(!o(e[a][s].arg,t[s].arg)){i=!1;break}if(i)break}e.push(e.splice(a,1)[0])}function a(e){var t=e.length,n=e[t-1],r,i;for(n.cacheItem.delete(n.arg),i=t-2;i>=0&&(n=e[i],r=n.cacheItem.get(n.arg),!r||!r.size);i--)n.cacheItem.delete(n.arg)}function o(e,t){return e===t||e!==e&&t!==t}},{"map-or-similar":1}]},{},[3])(3)})}});function GW(e){var t=[...arguments].slice(1),n=Array.from(typeof e==`string`?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,``);var r=n.reduce(function(e,t){var n=t.match(/\n([\t ]+|(?!\s).)/g);return n?e.concat(n.map(function(e){return e.match(/[\t ]/g)?.length??0})):e},[]);if(r.length){var i=RegExp(`
1014
- [ ]{`+Math.min.apply(Math,r)+`}`,`g`);n=n.map(function(e){return e.replace(i,`
1015
- `)})}n[0]=n[0].replace(/^\r?\n/,``);var a=n[0];return t.forEach(function(e,t){var r=a.match(/(?:^|\n)( *)$/),i=r?r[1]:``,o=e;typeof e==`string`&&e.includes(`
1016
- `)&&(o=String(e).split(`
1017
- `).map(function(e,t){return t===0?e:``+i+e}).join(`
1018
- `)),a+=o+n[t+1]}),a}var KW={"./src/components/bar-chart/bar-chart.stories.jsx":()=>le(()=>import(`./bar-chart.stories-Sq6kGcCe.js`),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url),"./src/components/line-chart/line-chart.stories.jsx":()=>le(()=>import(`./line-chart.stories-DVnjeEYv.js`),__vite__mapDeps([6,1,2,7,3,5]),import.meta.url),"./src/components/line-chart/line-chart.test-case.stories.jsx":()=>le(()=>import(`./line-chart.test-case.stories-DFLUWQxt.js`),__vite__mapDeps([8,1,2,7,3]),import.meta.url),"./src/components/pie-chart/pie-chart.stories.jsx":()=>le(()=>import(`./pie-chart.stories-BZ8-Flt7.js`),__vite__mapDeps([9,2,4]),import.meta.url),"./src/components/scatter-chart/scatter-chart.stories.jsx":()=>le(()=>import(`./scatter-chart.stories--7xp7w4K.js`),__vite__mapDeps([10,1,2,4]),import.meta.url)};async function qW(e){return await KW[e]()}var JW=Se((e=>{var t=Symbol.for(`react.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.provider`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.iterator;function p(e){return typeof e!=`object`||!e?null:(e=f&&e[f]||e[`@@iterator`],typeof e==`function`?e:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,g={};function _(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`setState(...): takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function v(){}v.prototype=_.prototype;function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}var b=y.prototype=new v;b.constructor=y,h(b,_.prototype),b.isPureReactComponent=!0;var x=Array.isArray,S=Object.prototype.hasOwnProperty,C={current:null},w={key:!0,ref:!0,__self:!0,__source:!0};function T(e,n,r){var i,a={},o=null,s=null;if(n!=null)for(i in n.ref!==void 0&&(s=n.ref),n.key!==void 0&&(o=``+n.key),n)S.call(n,i)&&!w.hasOwnProperty(i)&&(a[i]=n[i]);var c=arguments.length-2;if(c===1)a.children=r;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];a.children=l}if(e&&e.defaultProps)for(i in c=e.defaultProps,c)a[i]===void 0&&(a[i]=c[i]);return{$$typeof:t,type:e,key:o,ref:s,props:a,_owner:C.current}}function E(e,n){return{$$typeof:t,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}function D(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function O(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var k=/\/+/g;function A(e,t){return typeof e==`object`&&e&&e.key!=null?O(``+e.key):t.toString(36)}function j(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0}}if(c)return c=e,o=o(c),e=a===``?`.`+A(c,0):a,x(o)?(i=``,e!=null&&(i=e.replace(k,`$&/`)+`/`),j(o,r,i,``,function(e){return e})):o!=null&&(D(o)&&(o=E(o,i+(!o.key||c&&c.key===o.key?``:(``+o.key).replace(k,`$&/`)+`/`)+e)),r.push(o)),1;if(c=0,a=a===``?`.`:a+`:`,x(e))for(var l=0;l<e.length;l++){s=e[l];var u=a+A(s,l);c+=j(s,r,i,u,o)}else if(u=p(e),typeof u==`function`)for(e=u.call(e),l=0;!(s=e.next()).done;)s=s.value,u=a+A(s,l++),c+=j(s,r,i,u,o);else if(s===`object`)throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`);return c}function M(e,t,n){if(e==null)return e;var r=[],i=0;return j(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function ee(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var N={current:null},te={transition:null},ne={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:te,ReactCurrentOwner:C};function re(){throw Error(`act(...) is not supported in production builds of React.`)}e.Children={map:M,forEach:function(e,t,n){M(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return M(e,function(){t++}),t},toArray:function(e){return M(e,function(e){return e})||[]},only:function(e){if(!D(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}},e.Component=_,e.Fragment=r,e.Profiler=a,e.PureComponent=y,e.StrictMode=i,e.Suspense=l,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ne,e.act=re,e.cloneElement=function(e,n,r){if(e==null)throw Error(`React.cloneElement(...): The argument must be a React element, but you passed `+e+`.`);var i=h({},e.props),a=e.key,o=e.ref,s=e._owner;if(n!=null){if(n.ref!==void 0&&(o=n.ref,s=C.current),n.key!==void 0&&(a=``+n.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in n)S.call(n,l)&&!w.hasOwnProperty(l)&&(i[l]=n[l]===void 0&&c!==void 0?c[l]:n[l])}var l=arguments.length-2;if(l===1)i.children=r;else if(1<l){c=Array(l);for(var u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}return{$$typeof:t,type:e.type,key:a,ref:o,props:i,_owner:s}},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:o,_context:e},e.Consumer=e},e.createElement=T,e.createFactory=function(e){var t=T.bind(null,e);return t.type=e,t},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=D,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:ee}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=te.transition;te.transition={};try{e()}finally{te.transition=t}},e.unstable_act=re,e.useCallback=function(e,t){return N.current.useCallback(e,t)},e.useContext=function(e){return N.current.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e){return N.current.useDeferredValue(e)},e.useEffect=function(e,t){return N.current.useEffect(e,t)},e.useId=function(){return N.current.useId()},e.useImperativeHandle=function(e,t,n){return N.current.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return N.current.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return N.current.useLayoutEffect(e,t)},e.useMemo=function(e,t){return N.current.useMemo(e,t)},e.useReducer=function(e,t,n){return N.current.useReducer(e,t,n)},e.useRef=function(e){return N.current.useRef(e)},e.useState=function(e){return N.current.useState(e)},e.useSyncExternalStore=function(e,t,n){return N.current.useSyncExternalStore(e,t,n)},e.useTransition=function(){return N.current.useTransition()},e.version=`18.3.1`})),YW=Se(((e,t)=>{t.exports=JW()})),Q=R(YW(),1),{defaultDecorateStory:XW}=__STORYBOOK_MODULE_PREVIEW_API__,ZW=(e,t)=>XW(t=>Q.createElement(e,t),t),QW=Object.create,$W=Object.defineProperty,eG=Object.getOwnPropertyDescriptor,tG=Object.getOwnPropertyNames,nG=Object.getPrototypeOf,rG=Object.prototype.hasOwnProperty,iG=(e,t)=>function(){return t||(0,e[tG(e)[0]])((t={exports:{}}).exports,t),t.exports},aG=(e,t)=>{for(var n in t)$W(e,n,{get:t[n],enumerable:!0})},oG=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of tG(t))!rG.call(e,i)&&i!==n&&$W(e,i,{get:()=>t[i],enumerable:!(r=eG(t,i))||r.enumerable});return e},sG=(e,t,n)=>(n=e==null?{}:QW(nG(e)),oG(t||!e||!e.__esModule?$W(n,`default`,{value:e,enumerable:!0}):n,e));aG({},{applyDecorators:()=>ZW,beforeAll:()=>EG,decorators:()=>wG,mount:()=>CG,parameters:()=>TG,render:()=>mG,renderToCanvas:()=>SG});var{Tag:cG}=__STORYBOOK_MODULE_PREVIEW_API__,{global:lG}=__STORYBOOK_MODULE_GLOBAL__,{configure:uG}=__STORYBOOK_MODULE_TEST__;({...Q});function dG(e){globalThis.IS_REACT_ACT_ENVIRONMENT=e}function fG(){return globalThis.IS_REACT_ACT_ENVIRONMENT}var pG=async({disableAct:e=!1}={})=>e=>e(),mG=(e,t)=>{let{id:n,component:r}=t;if(!r)throw Error(`Unable to render story ${n} as the component annotation is missing from the default export`);return Q.createElement(r,{...e})},{global:hG}=__STORYBOOK_MODULE_GLOBAL__,{FRAMEWORK_OPTIONS:gG}=hG,_G=class extends Q.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}},vG=gG?.strictMode?Q.StrictMode:Q.Fragment,yG=[],bG=!1,xG=async()=>{if(bG||yG.length===0)return;bG=!0;let e=yG.shift();e&&await e(),bG=!1,xG()};async function SG({storyContext:e,unboundStoryFn:t,showMain:n,showException:r,forceRemount:i},a){let{renderElement:o,unmountElement:s}=await le(async()=>{let{renderElement:e,unmountElement:t}=await import(`./react-18-BP1-1NuC.js`).then(e=>e.t);return{renderElement:e,unmountElement:t}},[],import.meta.url),c=t,l=e.parameters.__isPortableStory?Q.createElement(c,{...e}):Q.createElement(_G,{key:e.id,showMain:n,showException:r},Q.createElement(c,{...e})),u=vG?Q.createElement(vG,null,l):l;i&&s(a);let d=await pG({disableAct:e.viewMode===`docs`});return await new Promise(async(t,n)=>{yG.push(async()=>{try{await d(async()=>{await o(u,a,e?.parameters?.react?.rootOptions)}),t()}catch(e){n(e)}}),xG()}),async()=>{await d(()=>{s(a)})}}var CG=e=>async t=>(t!=null&&(e.originalStoryFn=()=>t),await e.renderToCanvas(),e.canvas),wG=[(e,t)=>{if(!t.parameters?.react?.rsc)return e();let[n,r]=`18.3.1`.split(`.`).map(e=>parseInt(e,10));if(!Number.isInteger(n)||!Number.isInteger(r))throw Error(`Unable to parse React version`);if(n<18||n===18&&r<3)throw Error(`React Server Components require React >= 18.3`);return Q.createElement(Q.Suspense,null,e())},(e,t)=>{if(t.tags?.includes(cG.TEST_FN)&&!lG.FEATURES?.experimentalTestSyntax)throw Error(`To use the experimental test function, you must enable the experimentalTestSyntax feature flag. See https://storybook.js.org/docs/api/main-config/main-config-features#experimentaltestsyntax`);return e()}],TG={renderer:`react`},EG=async()=>{try{let e=await pG();uG({unstable_advanceTimersWrapper:t=>e(t),asyncWrapper:async e=>{let t=fG();dG(!1);try{let t=await e();return await new Promise(e=>{setTimeout(()=>{e()},0),DG()&&jest.advanceTimersByTime(0)}),t}finally{dG(t)}},eventWrapper:t=>{let n;return e(()=>(n=t(),n)),n}})}catch{}};function DG(){return typeof jest<`u`&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,`clock`):!1}var OG=Ce({applyDecorators:()=>ZW,beforeAll:()=>EG,decorators:()=>wG,mount:()=>CG,parameters:()=>TG,render:()=>mG,renderToCanvas:()=>SG}),kG=iG({"../../../node_modules/@base2/pretty-print-object/dist/index.js"(e){var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.apply(this,arguments)},n=e&&e.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r};Object.defineProperty(e,`__esModule`,{value:!0});var r=[];function i(e){var t=typeof e;return e!==null&&(t===`object`||t===`function`)}function a(e){return Object.prototype.toString.call(e)===`[object RegExp]`}function o(e){return Object.getOwnPropertySymbols(e).filter(function(t){return Object.prototype.propertyIsEnumerable.call(e,t)})}function s(e,c,l){l===void 0&&(l=``);var u=t(t({},{indent:` `,singleQuotes:!0}),c),d=u.inlineCharacterLimit===void 0?{newLine:`
1019
- `,newLineOrSpace:`
1020
- `,pad:l,indent:l+u.indent}:{newLine:`@@__PRETTY_PRINT_NEW_LINE__@@`,newLineOrSpace:`@@__PRETTY_PRINT_NEW_LINE_OR_SPACE__@@`,pad:`@@__PRETTY_PRINT_PAD__@@`,indent:`@@__PRETTY_PRINT_INDENT__@@`},f=function(e){if(u.inlineCharacterLimit===void 0)return e;var t=e.replace(new RegExp(d.newLine,`g`),``).replace(new RegExp(d.newLineOrSpace,`g`),` `).replace(RegExp(d.pad+`|`+d.indent,`g`),``);return t.length<=u.inlineCharacterLimit?t:e.replace(RegExp(d.newLine+`|`+d.newLineOrSpace,`g`),`
1021
- `).replace(new RegExp(d.pad,`g`),l).replace(new RegExp(d.indent,`g`),l+u.indent)};if(r.indexOf(e)!==-1)return`"[Circular]"`;if(e==null||typeof e==`number`||typeof e==`boolean`||typeof e==`function`||typeof e==`symbol`||a(e))return String(e);if(e instanceof Date)return`new Date('`+e.toISOString()+`')`;if(Array.isArray(e)){if(e.length===0)return`[]`;r.push(e);var p=`[`+d.newLine+e.map(function(t,n){var r=e.length-1===n?d.newLine:`,`+d.newLineOrSpace,i=s(t,u,l+u.indent);return u.transform&&(i=u.transform(e,n,i)),d.indent+i+r}).join(``)+d.pad+`]`;return r.pop(),f(p)}if(i(e)){var m=n(Object.keys(e),o(e));if(u.filter&&(m=m.filter(function(t){return u.filter&&u.filter(e,t)})),m.length===0)return`{}`;r.push(e);var p=`{`+d.newLine+m.map(function(t,n){var r=m.length-1===n?d.newLine:`,`+d.newLineOrSpace,i=typeof t==`symbol`,a=!i&&/^[a-z$_][a-z$_0-9]*$/i.test(t.toString()),o=i||a?t:s(t,u),c=s(e[t],u,l+u.indent);return u.transform&&(c=u.transform(e,t,c)),d.indent+String(o)+`: `+c+r}).join(``)+d.pad+`}`;return r.pop(),f(p)}return e=String(e).replace(/[\r\n]/g,function(e){return e===`
1022
- `?`\\n`:`\\r`}),u.singleQuotes?(e=e.replace(/\\?'/g,`\\'`),`'`+e+`'`):(e=e.replace(/"/g,`\\"`),`"`+e+`"`)}e.prettyPrint=s}}),AG=iG({"../../../node_modules/react-element-to-jsx-string/node_modules/react-is/cjs/react-is.production.min.js"(e){var t=Symbol.for(`react.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.provider`),s=Symbol.for(`react.context`),c=Symbol.for(`react.server_context`),l=Symbol.for(`react.forward_ref`),u=Symbol.for(`react.suspense`),d=Symbol.for(`react.suspense_list`),f=Symbol.for(`react.memo`),p=Symbol.for(`react.lazy`),m=Symbol.for(`react.offscreen`),h=Symbol.for(`react.module.reference`);function g(e){if(typeof e==`object`&&e){var m=e.$$typeof;switch(m){case t:switch(e=e.type,e){case r:case a:case i:case u:case d:return e;default:switch(e&&=e.$$typeof,e){case c:case s:case l:case p:case f:case o:return e;default:return m}}case n:return m}}}e.ContextConsumer=s,e.ContextProvider=o,e.Element=t,e.ForwardRef=l,e.Fragment=r,e.Lazy=p,e.Memo=f,e.Portal=n,e.Profiler=a,e.StrictMode=i,e.Suspense=u,e.SuspenseList=d,e.isAsyncMode=function(){return!1},e.isConcurrentMode=function(){return!1},e.isContextConsumer=function(e){return g(e)===s},e.isContextProvider=function(e){return g(e)===o},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===t},e.isForwardRef=function(e){return g(e)===l},e.isFragment=function(e){return g(e)===r},e.isLazy=function(e){return g(e)===p},e.isMemo=function(e){return g(e)===f},e.isPortal=function(e){return g(e)===n},e.isProfiler=function(e){return g(e)===a},e.isStrictMode=function(e){return g(e)===i},e.isSuspense=function(e){return g(e)===u},e.isSuspenseList=function(e){return g(e)===d},e.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===r||e===a||e===i||e===u||e===d||e===m||typeof e==`object`&&!!e&&(e.$$typeof===p||e.$$typeof===f||e.$$typeof===o||e.$$typeof===s||e.$$typeof===l||e.$$typeof===h||e.getModuleId!==void 0)},e.typeOf=g}}),jG=iG({"../../../node_modules/react-element-to-jsx-string/node_modules/react-is/index.js"(e,t){t.exports=AG()}}),MG=e=>e.$$typeof===Symbol.for(`react.memo`),NG=e=>e.$$typeof===Symbol.for(`react.forward_ref`);function PG(e){return Object.prototype.toString.call(e)===`[object Object]`}function FG(e){var t,n;return PG(e)===!1?!1:(t=e.constructor,t===void 0?!0:(n=t.prototype,!(PG(n)===!1||n.hasOwnProperty(`isPrototypeOf`)===!1)))}var IG=sG(kG()),LG=sG(jG()),RG=(function(e,t){return e===0?``:Array(e*t).fill(` `).join(``)});function zG(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function BG(e){if(Array.isArray(e))return zG(e)}function VG(e,t,n){return(t=JG(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HG(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function UG(){throw TypeError(`Invalid attempt to spread non-iterable instance.
1023
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function GG(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?WG(Object(n),!0).forEach(function(t){VG(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WG(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function KG(e){return BG(e)||HG(e)||XG(e)||UG()}function qG(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function JG(e){var t=qG(e,`string`);return typeof t==`symbol`?t:t+``}function YG(e){"@babel/helpers - typeof";return YG=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},YG(e)}function XG(e,t){if(e){if(typeof e==`string`)return zG(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zG(e,t):void 0}}function ZG(e,t){if(e===null||YG(e)!==`object`||e instanceof Date||e instanceof RegExp)return e;if(Q.isValidElement(e)){var n=GG({},e);return delete n._owner,n}return t.add(e),Array.isArray(e)?e.map(function(e){return ZG(e,t)}):Object.keys(e).sort().reduce(function(n,r){return r===`current`||t.has(e[r])?n[r]=`[Circular]`:n[r]=ZG(e[r],t),n},{})}function QG(e){return ZG(e,new WeakSet)}var $G=function(e){return{type:`string`,value:e}},eK=function(e){return{type:`number`,value:e}},tK=function(e,t,n,r){return{type:`ReactElement`,displayName:e,props:t,defaultProps:n,childrens:r}},nK=function(e,t){return{type:`ReactFragment`,key:e,childrens:t}},rK=!!Q.Fragment,iK=function(e){return!e.name||e.name===`_default`?`No Display Name`:e.name},aK=function(e){switch(!0){case!!e.displayName:return e.displayName;case e.$$typeof===LG.Memo:return aK(e.type);case e.$$typeof===LG.ForwardRef:return aK(e.render);default:return iK(e)}},oK=function(e){switch(!0){case typeof e.type==`string`:return e.type;case typeof e.type==`function`:return e.type.displayName?e.type.displayName:iK(e.type);case(0,LG.isForwardRef)(e):case(0,LG.isMemo)(e):return aK(e.type);case(0,LG.isContextConsumer)(e):return`${e.type._context.displayName||`Context`}.Consumer`;case(0,LG.isContextProvider)(e):return`${e.type._context.displayName||`Context`}.Provider`;case(0,LG.isLazy)(e):return`Lazy`;case(0,LG.isProfiler)(e):return`Profiler`;case(0,LG.isStrictMode)(e):return`StrictMode`;case(0,LG.isSuspense)(e):return`Suspense`;default:return`UnknownElementType`}},sK=function(e,t){return t!==`children`},cK=function(e){return e!==!0&&e!==!1&&e!==null&&e!==``},lK=function(e,t){var n={};return Object.keys(e).filter(function(n){return t(e[n],n)}).forEach(function(t){return n[t]=e[t]}),n},uK=function(e,t){var n=t.displayName,r=n===void 0?oK:n;if(typeof e==`string`)return $G(e);if(typeof e==`number`)return eK(e);if(!Q.isValidElement(e))throw Error(`react-element-to-jsx-string: Expected a React.Element, got \`${YG(e)}\``);var i=r(e),a=lK(e.props,sK);e.ref!==null&&(a.ref=e.ref);var o=e.key;typeof o==`string`&&o.search(/^\./)&&(a.key=o);var s=lK(e.type.defaultProps||{},sK),c=Q.Children.toArray(e.props.children).filter(cK).map(function(e){return uK(e,t)});return rK&&e.type===Q.Fragment?nK(o,c):tK(i,a,s,c)};function dK(){}var fK=function(e){return e.toString().split(`
1024
- `).map(function(e){return e.trim()}).join(``)},pK=(function(e,t){var n=t.functionValue,r=n===void 0?fK:n,i=t.showFunctions;return r(!i&&r===fK?dK:e)}),mK=(function(e,t,n,r){var i=QG(e),a=(0,IG.prettyPrint)(i,{transform:function(e,t,i){var a=e[t];return a&&(0,Q.isValidElement)(a)?RK(uK(a,r),!0,n,r):typeof a==`function`?pK(a,r):i}});return t?a.replace(/\s+/g,` `).replace(/{ /g,`{`).replace(/ }/g,`}`).replace(/\[ /g,`[`).replace(/ ]/g,`]`):a.replace(/\t/g,RG(1,r.tabStop)).replace(/\n([^$])/g,`
1025
- ${RG(n+1,r.tabStop)}\$1`)}),hK=function(e){return e.replace(/"/g,`&quot;`)},gK=function(e,t,n,r){if(typeof e==`number`)return`{${String(e)}}`;if(typeof e==`string`)return`"${hK(e)}"`;if(YG(e)===`symbol`){var i=e.valueOf().toString().replace(/Symbol\((.*)\)/,`$1`);return i?`{Symbol('${i}')}`:`{Symbol()}`}return typeof e==`function`?`{${pK(e,r)}}`:(0,Q.isValidElement)(e)?`{${RK(uK(e,r),!0,n,r)}}`:e instanceof Date?isNaN(e.valueOf())?`{new Date(NaN)}`:`{new Date("${e.toISOString()}")}`:FG(e)||Array.isArray(e)?`{${mK(e,t,n,r)}}`:`{${String(e)}}`},_K=(function(e,t,n,r,i,a,o,s){if(!t&&!r)throw Error(`The prop "${e}" has no value and no default: could not be formatted`);var c=t?n:i,l=s.useBooleanShorthandSyntax,u=s.tabStop,d=gK(c,a,o,s),f=` `,p=`
1026
- ${RG(o+1,u)}`,m=d.includes(`
1027
- `);return l&&d===`{false}`&&!r?(f=``,p=``):l&&d===`{true}`?(f+=`${e}`,p+=`${e}`):(f+=`${e}=${d}`,p+=`${e}=${d}`),{attributeFormattedInline:f,attributeFormattedMultiline:p,isMultilineAttribute:m}}),vK=(function(e,t){var n=e.slice(0,e.length>0?e.length-1:0),r=e[e.length-1];return r&&(t.type===`string`||t.type===`number`)&&(r.type===`string`||r.type===`number`)?n.push($G(String(r.value)+String(t.value))):(r&&n.push(r),n.push(t)),n}),yK=function(e){return[`key`,`ref`].includes(e)},bK=(function(e){return function(t){var n=t.includes(`key`),r=t.includes(`ref`),i=t.filter(function(e){return!yK(e)}),a=KG(e?i.sort():i);return r&&a.unshift(`ref`),n&&a.unshift(`key`),a}});function xK(e,t){return Array.isArray(t)?function(e){return t.indexOf(e)===-1}:function(n){return t(e[n],n)}}var SK=function(e,t,n,r,i){var a=i.tabStop;return e.type===`string`?t.split(`
1028
- `).map(function(e,t){return t===0?e:`${RG(r,a)}${e}`}).join(`
1029
- `):t},CK=function(e,t,n){return function(r){return SK(r,RK(r,e,t,n),e,t,n)}},wK=function(e,t){return function(n){var r=Object.keys(e).includes(n);return!r||r&&e[n]!==t[n]}},TK=function(e,t,n,r,i){return i?RG(n,r).length+t.length>i:e.length>1},EK=function(e,t,n,r,i,a,o){return(TK(e,t,i,a,o)||n)&&!r},DK=(function(e,t,n,r){var i=e.type,a=e.displayName,o=a===void 0?``:a,s=e.childrens,c=e.props,l=c===void 0?{}:c,u=e.defaultProps,d=u===void 0?{}:u;if(i!==`ReactElement`)throw Error(`The "formatReactElementNode" function could only format node of type "ReactElement". Given: ${i}`);var f=r.filterProps,p=r.maxInlineAttributesLineLength,m=r.showDefaultProps,h=r.sortProps,g=r.tabStop,_=`<${o}`,v=_,y=_,b=!1,x=[],S=xK(l,f);Object.keys(l).filter(S).filter(wK(d,l)).forEach(function(e){return x.push(e)}),Object.keys(d).filter(S).filter(function(){return m}).filter(function(e){return!x.includes(e)}).forEach(function(e){return x.push(e)});var C=bK(h)(x);if(C.forEach(function(e){var i=_K(e,Object.keys(l).includes(e),l[e],Object.keys(d).includes(e),d[e],t,n,r),a=i.attributeFormattedInline,o=i.attributeFormattedMultiline;i.isMultilineAttribute&&(b=!0),v+=a,y+=o}),y+=`
1030
- ${RG(n,g)}`,_=EK(C,v,b,t,n,g,p)?y:v,s&&s.length>0){var w=n+1;_+=`>`,t||(_+=`
1031
- `,_+=RG(w,g)),_+=s.reduce(vK,[]).map(CK(t,w,r)).join(t?``:`
1032
- ${RG(w,g)}`),t||(_+=`
1033
- `,_+=RG(w-1,g)),_+=`</${o}>`}else TK(C,v,n,g,p)||(_+=` `),_+=`/>`;return _}),OK=``,kK=`React.Fragment`,AK=function(e,t,n){var r={};return t&&(r={key:t}),{type:`ReactElement`,displayName:e,props:r,defaultProps:{},childrens:n}},jK=function(e){return!!e.key},MK=function(e){return e.childrens.length===0},NK=(function(e,t,n,r){var i=e.type,a=e.key,o=e.childrens;if(i!==`ReactFragment`)throw Error(`The "formatReactFragmentNode" function could only format node of type "ReactFragment". Given: ${i}`);var s=r.useFragmentShortSyntax,c;return c=s?MK(e)||jK(e)?kK:OK:kK,DK(AK(c,a,o),t,n,r)}),PK=[`<`,`>`,`{`,`}`],FK=function(e){return PK.some(function(t){return e.includes(t)})},IK=function(e){return FK(e)?`{\`${e}\`}`:e},LK=function(e){var t=e;return t.endsWith(` `)&&(t=t.replace(/^(.*?)(\s+)$/,`$1{'$2'}`)),t.startsWith(` `)&&(t=t.replace(/^(\s+)(.*)$/,`{'$1'}$2`)),t},RK=(function(e,t,n,r){if(e.type===`number`)return String(e.value);if(e.type===`string`)return e.value?`${LK(IK(String(e.value)))}`:``;if(e.type===`ReactElement`)return DK(e,t,n,r);if(e.type===`ReactFragment`)return NK(e,t,n,r);throw TypeError(`Unknow format type "${e.type}"`)}),zK=(function(e,t){return RK(e,!1,0,t)}),BK=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.filterProps,r=n===void 0?[]:n,i=t.showDefaultProps,a=i===void 0?!0:i,o=t.showFunctions,s=o===void 0?!1:o,c=t.functionValue,l=t.tabStop,u=l===void 0?2:l,d=t.useBooleanShorthandSyntax,f=d===void 0?!0:d,p=t.useFragmentShortSyntax,m=p===void 0?!0:p,h=t.sortProps,g=h===void 0?!0:h,_=t.maxInlineAttributesLineLength,v=t.displayName;if(!e)throw Error(`react-element-to-jsx-string: Expected a ReactElement`);var y={filterProps:r,showDefaultProps:a,showFunctions:s,functionValue:c,tabStop:u,useBooleanShorthandSyntax:f,useFragmentShortSyntax:m,sortProps:g,maxInlineAttributesLineLength:_,displayName:v};return zK(uK(e,y),y)},VK=iG({"../../../node_modules/estraverse/estraverse.js"(e){(function e(t){var n,r,i,a,o,s;function c(e){var t={},n,r;for(n in e)e.hasOwnProperty(n)&&(r=e[n],typeof r==`object`&&r?t[n]=c(r):t[n]=r);return t}function l(e,t){var n,r,i,a;for(r=e.length,i=0;r;)n=r>>>1,a=i+n,t(e[a])?r=n:(i=a+1,r-=n+1);return i}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`},i={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={},o={},s={},r={Break:a,Skip:o,Remove:s};function u(e,t){this.parent=e,this.key=t}u.prototype.replace=function(e){this.parent[this.key]=e},u.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)};function d(e,t,n,r){this.node=e,this.path=t,this.wrap=n,this.ref=r}function f(){}f.prototype.path=function(){var e,t,n,r,i,a;function o(e,t){if(Array.isArray(t))for(n=0,r=t.length;n<r;++n)e.push(t[n]);else e.push(t)}if(!this.__current.path)return null;for(i=[],e=2,t=this.__leavelist.length;e<t;++e)a=this.__leavelist[e],o(i,a.path);return o(i,this.__current.path),i},f.prototype.type=function(){return this.current().type||this.__current.wrap},f.prototype.parents=function(){var e,t,n;for(n=[],e=1,t=this.__leavelist.length;e<t;++e)n.push(this.__leavelist[e].node);return n},f.prototype.current=function(){return this.__current.node},f.prototype.__execute=function(e,t){var n,r;return r=void 0,n=this.__current,this.__current=t,this.__state=null,e&&(r=e.call(this,t.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=n,r},f.prototype.notify=function(e){this.__state=e},f.prototype.skip=function(){this.notify(o)},f.prototype.break=function(){this.notify(a)},f.prototype.remove=function(){this.notify(s)},f.prototype.__initialize=function(e,t){this.visitor=t,this.root=e,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback=null,t.fallback===`iteration`?this.__fallback=Object.keys:typeof t.fallback==`function`&&(this.__fallback=t.fallback),this.__keys=i,t.keys&&(this.__keys=Object.assign(Object.create(this.__keys),t.keys))};function p(e){return e==null?!1:typeof e==`object`&&typeof e.type==`string`}function m(e,t){return(e===n.ObjectExpression||e===n.ObjectPattern)&&t===`properties`}function h(e,t){for(var n=e.length-1;n>=0;--n)if(e[n].node===t)return!0;return!1}f.prototype.traverse=function(e,t){var n,r,i,s,c,l,u,f,g,_,v,y;for(this.__initialize(e,t),y={},n=this.__worklist,r=this.__leavelist,n.push(new d(e,null,null,null)),r.push(new d(null,null,null,null));n.length;){if(i=n.pop(),i===y){if(i=r.pop(),l=this.__execute(t.leave,i),this.__state===a||l===a)return;continue}if(i.node){if(l=this.__execute(t.enter,i),this.__state===a||l===a)return;if(n.push(y),r.push(i),this.__state===o||l===o)continue;if(s=i.node,c=s.type||i.wrap,_=this.__keys[c],!_)if(this.__fallback)_=this.__fallback(s);else throw Error(`Unknown node type `+c+`.`);for(f=_.length;--f>=0;)if(u=_[f],v=s[u],v){if(Array.isArray(v)){for(g=v.length;--g>=0;)if(v[g]&&!h(r,v[g])){if(m(c,_[f]))i=new d(v[g],[u,g],`Property`,null);else if(p(v[g]))i=new d(v[g],[u,g],null,null);else continue;n.push(i)}}else if(p(v)){if(h(r,v))continue;n.push(new d(v,u,null,null))}}}}},f.prototype.replace=function(e,t){var n,r,i,c,l,f,h,g,_,v,y,b,x;function S(e){var t,r,i,a;if(e.ref.remove()){for(r=e.ref.key,a=e.ref.parent,t=n.length;t--;)if(i=n[t],i.ref&&i.ref.parent===a){if(i.ref.key<r)break;--i.ref.key}}}for(this.__initialize(e,t),y={},n=this.__worklist,r=this.__leavelist,b={root:e},f=new d(e,null,null,new u(b,`root`)),n.push(f),r.push(f);n.length;){if(f=n.pop(),f===y){if(f=r.pop(),l=this.__execute(t.leave,f),l!==void 0&&l!==a&&l!==o&&l!==s&&f.ref.replace(l),(this.__state===s||l===s)&&S(f),this.__state===a||l===a)return b.root;continue}if(l=this.__execute(t.enter,f),l!==void 0&&l!==a&&l!==o&&l!==s&&(f.ref.replace(l),f.node=l),(this.__state===s||l===s)&&(S(f),f.node=null),this.__state===a||l===a)return b.root;if(i=f.node,i&&(n.push(y),r.push(f),!(this.__state===o||l===o))){if(c=i.type||f.wrap,_=this.__keys[c],!_)if(this.__fallback)_=this.__fallback(i);else throw Error(`Unknown node type `+c+`.`);for(h=_.length;--h>=0;)if(x=_[h],v=i[x],v)if(Array.isArray(v)){for(g=v.length;--g>=0;)if(v[g]){if(m(c,_[h]))f=new d(v[g],[x,g],`Property`,new u(v,g));else if(p(v[g]))f=new d(v[g],[x,g],null,new u(v,g));else continue;n.push(f)}}else p(v)&&n.push(new d(v,x,null,new u(i,x)))}}return b.root};function g(e,t){return new f().traverse(e,t)}function _(e,t){return new f().replace(e,t)}function v(e,t){var n;return n=l(t,function(t){return t.range[0]>e.range[0]}),e.extendedRange=[e.range[0],e.range[1]],n!==t.length&&(e.extendedRange[1]=t[n].range[0]),--n,n>=0&&(e.extendedRange[0]=t[n].range[1]),e}function y(e,t,n){var i=[],a,o,s,l;if(!e.range)throw Error(`attachComments needs range information`);if(!n.length){if(t.length){for(s=0,o=t.length;s<o;s+=1)a=c(t[s]),a.extendedRange=[0,e.range[0]],i.push(a);e.leadingComments=i}return e}for(s=0,o=t.length;s<o;s+=1)i.push(v(c(t[s]),n));return l=0,g(e,{enter:function(e){for(var t;l<i.length&&(t=i[l],!(t.extendedRange[1]>e.range[0]));)t.extendedRange[1]===e.range[0]?(e.leadingComments||=[],e.leadingComments.push(t),i.splice(l,1)):l+=1;if(l===i.length)return r.Break;if(i[l].extendedRange[0]>e.range[1])return r.Skip}}),l=0,g(e,{leave:function(e){for(var t;l<i.length&&(t=i[l],!(e.range[1]<t.extendedRange[0]));)e.range[1]===t.extendedRange[0]?(e.trailingComments||=[],e.trailingComments.push(t),i.splice(l,1)):l+=1;if(l===i.length)return r.Break;if(i[l].extendedRange[0]>e.range[1])return r.Skip}}),e}return t.Syntax=n,t.traverse=g,t.replace=_,t.attachComments=y,t.VisitorKeys=i,t.VisitorOption=r,t.Controller=f,t.cloneEnvironment=function(){return e({})},t})(e)}}),HK=iG({"../../../node_modules/esutils/lib/ast.js"(e,t){(function(){function e(e){if(e==null)return!1;switch(e.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(e){if(e==null)return!1;switch(e.type){case`DoWhileStatement`:case`ForInStatement`:case`ForStatement`:case`WhileStatement`:return!0}return!1}function r(e){if(e==null)return!1;switch(e.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 i(e){return r(e)||e!=null&&e.type===`FunctionDeclaration`}function a(e){switch(e.type){case`IfStatement`:return e.alternate==null?e.consequent:e.alternate;case`LabeledStatement`:case`ForStatement`:case`ForInStatement`:case`WhileStatement`:case`WithStatement`:return e.body}return null}function o(e){var t;if(e.type!==`IfStatement`||e.alternate==null)return!1;t=e.consequent;do{if(t.type===`IfStatement`&&t.alternate==null)return!0;t=a(t)}while(t);return!1}t.exports={isExpression:e,isStatement:r,isIterationStatement:n,isSourceElement:i,isProblematicIfStatement:o,trailingStatement:a}})()}}),UK=iG({"../../../node_modules/esutils/lib/code.js"(e,t){(function(){var e,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,i,a,o;e={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 s(e){return 48<=e&&e<=57}function c(e){return 48<=e&&e<=57||97<=e&&e<=102||65<=e&&e<=70}function l(e){return e>=48&&e<=55}r=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function u(e){return e===32||e===9||e===11||e===12||e===160||e>=5760&&r.indexOf(e)>=0}function d(e){return e===10||e===13||e===8232||e===8233}function f(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(Math.floor((e-65536)/1024)+55296)+String.fromCharCode((e-65536)%1024+56320)}for(i=Array(128),o=0;o<128;++o)i[o]=o>=97&&o<=122||o>=65&&o<=90||o===36||o===95;for(a=Array(128),o=0;o<128;++o)a[o]=o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===36||o===95;function p(e){return e<128?i[e]:n.NonAsciiIdentifierStart.test(f(e))}function m(e){return e<128?a[e]:n.NonAsciiIdentifierPart.test(f(e))}function h(t){return t<128?i[t]:e.NonAsciiIdentifierStart.test(f(t))}function g(t){return t<128?a[t]:e.NonAsciiIdentifierPart.test(f(t))}t.exports={isDecimalDigit:s,isHexDigit:c,isOctalDigit:l,isWhiteSpace:u,isLineTerminator:d,isIdentifierStartES5:p,isIdentifierPartES5:m,isIdentifierStartES6:h,isIdentifierPartES6:g}})()}}),WK=iG({"../../../node_modules/esutils/lib/keyword.js"(e,t){(function(){var e=UK();function n(e){switch(e){case`implements`:case`interface`:case`package`:case`private`:case`protected`:case`public`:case`static`:case`let`:return!0;default:return!1}}function r(e,t){return!t&&e===`yield`?!1:i(e,t)}function i(e,t){if(t&&n(e))return!0;switch(e.length){case 2:return e===`if`||e===`in`||e===`do`;case 3:return e===`var`||e===`for`||e===`new`||e===`try`;case 4:return e===`this`||e===`else`||e===`case`||e===`void`||e===`with`||e===`enum`;case 5:return e===`while`||e===`break`||e===`catch`||e===`throw`||e===`const`||e===`yield`||e===`class`||e===`super`;case 6:return e===`return`||e===`typeof`||e===`delete`||e===`switch`||e===`export`||e===`import`;case 7:return e===`default`||e===`finally`||e===`extends`;case 8:return e===`function`||e===`continue`||e===`debugger`;case 10:return e===`instanceof`;default:return!1}}function a(e,t){return e===`null`||e===`true`||e===`false`||r(e,t)}function o(e,t){return e===`null`||e===`true`||e===`false`||i(e,t)}function s(e){return e===`eval`||e===`arguments`}function c(t){var n,r,i;if(t.length===0||(i=t.charCodeAt(0),!e.isIdentifierStartES5(i)))return!1;for(n=1,r=t.length;n<r;++n)if(i=t.charCodeAt(n),!e.isIdentifierPartES5(i))return!1;return!0}function l(e,t){return(e-55296)*1024+(t-56320)+65536}function u(t){var n,r,i,a,o;if(t.length===0)return!1;for(o=e.isIdentifierStartES6,n=0,r=t.length;n<r;++n){if(i=t.charCodeAt(n),55296<=i&&i<=56319){if(++n,n>=r||(a=t.charCodeAt(n),!(56320<=a&&a<=57343)))return!1;i=l(i,a)}if(!o(i))return!1;o=e.isIdentifierPartES6}return!0}function d(e,t){return c(e)&&!a(e,t)}function f(e,t){return u(e)&&!o(e,t)}t.exports={isKeywordES5:r,isKeywordES6:i,isReservedWordES5:a,isReservedWordES6:o,isRestrictedWord:s,isIdentifierNameES5:c,isIdentifierNameES6:u,isIdentifierES5:d,isIdentifierES6:f}})()}}),GK=iG({"../../../node_modules/esutils/lib/utils.js"(e){(function(){e.ast=HK(),e.code=UK(),e.keyword=WK()})()}}),KK=iG({"../../../node_modules/escodegen/node_modules/source-map/lib/base64.js"(e){var t=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`.split(``);e.encode=function(e){if(0<=e&&e<t.length)return t[e];throw TypeError(`Must be between 0 and 63: `+e)},e.decode=function(e){var t=65,n=90,r=97,i=122,a=48;return t<=e&&e<=n?e-t:r<=e&&e<=i?e-r+26:a<=e&&e<=57?e-a+52:e==43?62:e==47?63:-1}}}),qK=iG({"../../../node_modules/escodegen/node_modules/source-map/lib/base64-vlq.js"(e){var t=KK(),n=5,r=1<<n,i=r-1,a=r;function o(e){return e<0?(-e<<1)+1:(e<<1)+0}function s(e){var t=(e&1)==1,n=e>>1;return t?-n:n}e.encode=function(e){var r=``,s,c=o(e);do s=c&i,c>>>=n,c>0&&(s|=a),r+=t.encode(s);while(c>0);return r},e.decode=function(e,r,o){var c=e.length,l=0,u=0,d,f;do{if(r>=c)throw Error(`Expected more digits in base 64 VLQ value.`);if(f=t.decode(e.charCodeAt(r++)),f===-1)throw Error(`Invalid base64 digit: `+e.charAt(r-1));d=!!(f&a),f&=i,l+=f<<u,u+=n}while(d);o.value=s(l),o.rest=r}}}),JK=iG({"../../../node_modules/escodegen/node_modules/source-map/lib/util.js"(e){function t(e,t,n){if(t in e)return e[t];if(arguments.length===3)return n;throw Error(`"`+t+`" is a required argument.`)}e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function i(e){var t=e.match(n);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}e.urlParse=i;function a(e){var t=``;return e.scheme&&(t+=e.scheme+`:`),t+=`//`,e.auth&&(t+=e.auth+`@`),e.host&&(t+=e.host),e.port&&(t+=`:`+e.port),e.path&&(t+=e.path),t}e.urlGenerate=a;function o(t){var n=t,r=i(t);if(r){if(!r.path)return t;n=r.path}for(var o=e.isAbsolute(n),s=n.split(/\/+/),c,l=0,u=s.length-1;u>=0;u--)c=s[u],c===`.`?s.splice(u,1):c===`..`?l++:l>0&&(c===``?(s.splice(u+1,l),l=0):(s.splice(u,2),l--));return n=s.join(`/`),n===``&&(n=o?`/`:`.`),r?(r.path=n,a(r)):n}e.normalize=o;function s(e,t){e===``&&(e=`.`),t===``&&(t=`.`);var n=i(t),s=i(e);if(s&&(e=s.path||`/`),n&&!n.scheme)return s&&(n.scheme=s.scheme),a(n);if(n||t.match(r))return t;if(s&&!s.host&&!s.path)return s.host=t,a(s);var c=t.charAt(0)===`/`?t:o(e.replace(/\/+$/,``)+`/`+t);return s?(s.path=c,a(s)):c}e.join=s,e.isAbsolute=function(e){return e.charAt(0)===`/`||n.test(e)};function c(e,t){e===``&&(e=`.`),e=e.replace(/\/$/,``);for(var n=0;t.indexOf(e+`/`)!==0;){var r=e.lastIndexOf(`/`);if(r<0||(e=e.slice(0,r),e.match(/^([^\/]+:\/)?\/*$/)))return t;++n}return Array(n+1).join(`../`)+t.substr(e.length+1)}e.relative=c;var l=(function(){return!(`__proto__`in Object.create(null))})();function u(e){return e}function d(e){return p(e)?`$`+e:e}e.toSetString=l?u:d;function f(e){return p(e)?e.slice(1):e}e.fromSetString=l?u:f;function p(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var n=t-10;n>=0;n--)if(e.charCodeAt(n)!==36)return!1;return!0}function m(e,t,n){var r=g(e.source,t.source);return r!==0||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0||n)||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=e.generatedLine-t.generatedLine,r!==0)?r:g(e.name,t.name)}e.compareByOriginalPositions=m;function h(e,t,n){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0||n)||(r=g(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:g(e.name,t.name)}e.compareByGeneratedPositionsDeflated=h;function g(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}function _(e,t){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0)||(n=g(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:g(e.name,t.name)}e.compareByGeneratedPositionsInflated=_;function v(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,``))}e.parseSourceMapInput=v;function y(e,t,n){if(t||=``,e&&(e[e.length-1]!==`/`&&t[0]!==`/`&&(e+=`/`),t=e+t),n){var r=i(n);if(!r)throw Error(`sourceMapURL could not be parsed`);if(r.path){var c=r.path.lastIndexOf(`/`);c>=0&&(r.path=r.path.substring(0,c+1))}t=s(a(r),t)}return o(t)}e.computeSourceURL=y}}),YK=iG({"../../../node_modules/escodegen/node_modules/source-map/lib/array-set.js"(e){var t=JK(),n=Object.prototype.hasOwnProperty,r=typeof Map<`u`;function i(){this._array=[],this._set=r?new Map:Object.create(null)}i.fromArray=function(e,t){for(var n=new i,r=0,a=e.length;r<a;r++)n.add(e[r],t);return n},i.prototype.size=function(){return r?this._set.size:Object.getOwnPropertyNames(this._set).length},i.prototype.add=function(e,i){var a=r?e:t.toSetString(e),o=r?this.has(e):n.call(this._set,a),s=this._array.length;(!o||i)&&this._array.push(e),o||(r?this._set.set(e,s):this._set[a]=s)},i.prototype.has=function(e){if(r)return this._set.has(e);var i=t.toSetString(e);return n.call(this._set,i)},i.prototype.indexOf=function(e){if(r){var i=this._set.get(e);if(i>=0)return i}else{var a=t.toSetString(e);if(n.call(this._set,a))return this._set[a]}throw Error(`"`+e+`" is not in the set.`)},i.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw Error(`No element indexed by `+e)},i.prototype.toArray=function(){return this._array.slice()},e.ArraySet=i}}),XK=iG({"../../../node_modules/escodegen/node_modules/source-map/lib/mapping-list.js"(e){var t=JK();function n(e,n){var r=e.generatedLine,i=n.generatedLine,a=e.generatedColumn,o=n.generatedColumn;return i>r||i==r&&o>=a||t.compareByGeneratedPositionsInflated(e,n)<=0}function r(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}r.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},r.prototype.add=function(e){n(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},r.prototype.toArray=function(){return this._sorted||=(this._array.sort(t.compareByGeneratedPositionsInflated),!0),this._array},e.MappingList=r}}),ZK=iG({"../../../node_modules/escodegen/node_modules/source-map/lib/source-map-generator.js"(e){var t=qK(),n=JK(),r=YK().ArraySet,i=XK().MappingList;function a(e){e||={},this._file=n.getArg(e,`file`,null),this._sourceRoot=n.getArg(e,`sourceRoot`,null),this._skipValidation=n.getArg(e,`skipValidation`,!1),this._sources=new r,this._names=new r,this._mappings=new i,this._sourcesContents=null}a.prototype._version=3,a.fromSourceMap=function(e){var t=e.sourceRoot,r=new a({file:e.file,sourceRoot:t});return e.eachMapping(function(e){var i={generated:{line:e.generatedLine,column:e.generatedColumn}};e.source!=null&&(i.source=e.source,t!=null&&(i.source=n.relative(t,i.source)),i.original={line:e.originalLine,column:e.originalColumn},e.name!=null&&(i.name=e.name)),r.addMapping(i)}),e.sources.forEach(function(i){var a=i;t!==null&&(a=n.relative(t,i)),r._sources.has(a)||r._sources.add(a);var o=e.sourceContentFor(i);o!=null&&r.setSourceContent(i,o)}),r},a.prototype.addMapping=function(e){var t=n.getArg(e,`generated`),r=n.getArg(e,`original`,null),i=n.getArg(e,`source`,null),a=n.getArg(e,`name`,null);this._skipValidation||this._validateMapping(t,r,i,a),i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),a!=null&&(a=String(a),this._names.has(a)||this._names.add(a)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:r!=null&&r.line,originalColumn:r!=null&&r.column,source:i,name:a})},a.prototype.setSourceContent=function(e,t){var r=e;this._sourceRoot!=null&&(r=n.relative(this._sourceRoot,r)),t==null?this._sourcesContents&&(delete this._sourcesContents[n.toSetString(r)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null)):(this._sourcesContents||=Object.create(null),this._sourcesContents[n.toSetString(r)]=t)},a.prototype.applySourceMap=function(e,t,i){var a=t;if(t==null){if(e.file==null)throw Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);a=e.file}var o=this._sourceRoot;o!=null&&(a=n.relative(o,a));var s=new r,c=new r;this._mappings.unsortedForEach(function(t){if(t.source===a&&t.originalLine!=null){var r=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});r.source!=null&&(t.source=r.source,i!=null&&(t.source=n.join(i,t.source)),o!=null&&(t.source=n.relative(o,t.source)),t.originalLine=r.line,t.originalColumn=r.column,r.name!=null&&(t.name=r.name))}var l=t.source;l!=null&&!s.has(l)&&s.add(l);var u=t.name;u!=null&&!c.has(u)&&c.add(u)},this),this._sources=s,this._names=c,e.sources.forEach(function(t){var r=e.sourceContentFor(t);r!=null&&(i!=null&&(t=n.join(i,t)),o!=null&&(t=n.relative(o,t)),this.setSourceContent(t,r))},this)},a.prototype._validateMapping=function(e,t,n,r){if(t&&typeof t.line!=`number`&&typeof t.column!=`number`)throw 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(!(e&&`line`in e&&`column`in e&&e.line>0&&e.column>=0&&!t&&!n&&!r)){if(e&&`line`in e&&`column`in e&&t&&`line`in t&&`column`in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n)return;throw Error(`Invalid mapping: `+JSON.stringify({generated:e,source:n,original:t,name:r}))}},a.prototype._serializeMappings=function(){for(var e=0,r=1,i=0,a=0,o=0,s=0,c=``,l,u,d,f,p=this._mappings.toArray(),m=0,h=p.length;m<h;m++){if(u=p[m],l=``,u.generatedLine!==r)for(e=0;u.generatedLine!==r;)l+=`;`,r++;else if(m>0){if(!n.compareByGeneratedPositionsInflated(u,p[m-1]))continue;l+=`,`}l+=t.encode(u.generatedColumn-e),e=u.generatedColumn,u.source!=null&&(f=this._sources.indexOf(u.source),l+=t.encode(f-s),s=f,l+=t.encode(u.originalLine-1-a),a=u.originalLine-1,l+=t.encode(u.originalColumn-i),i=u.originalColumn,u.name!=null&&(d=this._names.indexOf(u.name),l+=t.encode(d-o),o=d)),c+=l}return c},a.prototype._generateSourcesContent=function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;t!=null&&(e=n.relative(t,e));var r=n.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null},this)},a.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},a.prototype.toString=function(){return JSON.stringify(this.toJSON())},e.SourceMapGenerator=a}}),QK=iG({"../../../node_modules/escodegen/node_modules/source-map/lib/binary-search.js"(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(n,r,i,a,o,s){var c=Math.floor((r-n)/2)+n,l=o(i,a[c],!0);return l===0?c:l>0?r-c>1?t(c,r,i,a,o,s):s==e.LEAST_UPPER_BOUND?r<a.length?r:-1:c:c-n>1?t(n,c,i,a,o,s):s==e.LEAST_UPPER_BOUND?c:n<0?-1:n}e.search=function(n,r,i,a){if(r.length===0)return-1;var o=t(-1,r.length,n,r,i,a||e.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&i(r[o],r[o-1],!0)===0;)--o;return o}}}),$K=iG({"../../../node_modules/escodegen/node_modules/source-map/lib/quick-sort.js"(e){function t(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function n(e,t){return Math.round(e+Math.random()*(t-e))}function r(e,i,a,o){if(a<o){var s=n(a,o),c=a-1;t(e,s,o);for(var l=e[o],u=a;u<o;u++)i(e[u],l)<=0&&(c+=1,t(e,c,u));t(e,c+1,u);var d=c+1;r(e,i,a,d-1),r(e,i,d+1,o)}}e.quickSort=function(e,t){r(e,t,0,e.length-1)}}}),eq=iG({"../../../node_modules/escodegen/node_modules/source-map/lib/source-map-consumer.js"(e){var t=JK(),n=QK(),r=YK().ArraySet,i=qK(),a=$K().quickSort;function o(e,n){var r=e;return typeof e==`string`&&(r=t.parseSourceMapInput(e)),r.sections==null?new s(r,n):new l(r,n)}o.fromSourceMap=function(e,t){return s.fromSourceMap(e,t)},o.prototype._version=3,o.prototype.__generatedMappings=null,Object.defineProperty(o.prototype,`_generatedMappings`,{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),o.prototype.__originalMappings=null,Object.defineProperty(o.prototype,`_originalMappings`,{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),o.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return n===`;`||n===`,`},o.prototype._parseMappings=function(e,t){throw Error(`Subclasses must implement _parseMappings`)},o.GENERATED_ORDER=1,o.ORIGINAL_ORDER=2,o.GREATEST_LOWER_BOUND=1,o.LEAST_UPPER_BOUND=2,o.prototype.eachMapping=function(e,n,r){var i=n||null,a=r||o.GENERATED_ORDER,s;switch(a){case o.GENERATED_ORDER:s=this._generatedMappings;break;case o.ORIGINAL_ORDER:s=this._originalMappings;break;default:throw Error(`Unknown order of iteration.`)}var c=this.sourceRoot;s.map(function(e){var n=e.source===null?null:this._sources.at(e.source);return n=t.computeSourceURL(c,n,this._sourceMapURL),{source:n,generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:e.name===null?null:this._names.at(e.name)}},this).forEach(e,i)},o.prototype.allGeneratedPositionsFor=function(e){var r=t.getArg(e,`line`),i={source:t.getArg(e,`source`),originalLine:r,originalColumn:t.getArg(e,`column`,0)};if(i.source=this._findSourceIndex(i.source),i.source<0)return[];var a=[],o=this._findMapping(i,this._originalMappings,`originalLine`,`originalColumn`,t.compareByOriginalPositions,n.LEAST_UPPER_BOUND);if(o>=0){var s=this._originalMappings[o];if(e.column===void 0)for(var c=s.originalLine;s&&s.originalLine===c;)a.push({line:t.getArg(s,`generatedLine`,null),column:t.getArg(s,`generatedColumn`,null),lastColumn:t.getArg(s,`lastGeneratedColumn`,null)}),s=this._originalMappings[++o];else for(var l=s.originalColumn;s&&s.originalLine===r&&s.originalColumn==l;)a.push({line:t.getArg(s,`generatedLine`,null),column:t.getArg(s,`generatedColumn`,null),lastColumn:t.getArg(s,`lastGeneratedColumn`,null)}),s=this._originalMappings[++o]}return a},e.SourceMapConsumer=o;function s(e,n){var i=e;typeof e==`string`&&(i=t.parseSourceMapInput(e));var a=t.getArg(i,`version`),o=t.getArg(i,`sources`),s=t.getArg(i,`names`,[]),c=t.getArg(i,`sourceRoot`,null),l=t.getArg(i,`sourcesContent`,null),u=t.getArg(i,`mappings`),d=t.getArg(i,`file`,null);if(a!=this._version)throw Error(`Unsupported version: `+a);c&&=t.normalize(c),o=o.map(String).map(t.normalize).map(function(e){return c&&t.isAbsolute(c)&&t.isAbsolute(e)?t.relative(c,e):e}),this._names=r.fromArray(s.map(String),!0),this._sources=r.fromArray(o,!0),this._absoluteSources=this._sources.toArray().map(function(e){return t.computeSourceURL(c,e,n)}),this.sourceRoot=c,this.sourcesContent=l,this._mappings=u,this._sourceMapURL=n,this.file=d}s.prototype=Object.create(o.prototype),s.prototype.consumer=o,s.prototype._findSourceIndex=function(e){var n=e;if(this.sourceRoot!=null&&(n=t.relative(this.sourceRoot,n)),this._sources.has(n))return this._sources.indexOf(n);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==e)return r;return-1},s.fromSourceMap=function(e,n){var i=Object.create(s.prototype),o=i._names=r.fromArray(e._names.toArray(),!0),l=i._sources=r.fromArray(e._sources.toArray(),!0);i.sourceRoot=e._sourceRoot,i.sourcesContent=e._generateSourcesContent(i._sources.toArray(),i.sourceRoot),i.file=e._file,i._sourceMapURL=n,i._absoluteSources=i._sources.toArray().map(function(e){return t.computeSourceURL(i.sourceRoot,e,n)});for(var u=e._mappings.toArray().slice(),d=i.__generatedMappings=[],f=i.__originalMappings=[],p=0,m=u.length;p<m;p++){var h=u[p],g=new c;g.generatedLine=h.generatedLine,g.generatedColumn=h.generatedColumn,h.source&&(g.source=l.indexOf(h.source),g.originalLine=h.originalLine,g.originalColumn=h.originalColumn,h.name&&(g.name=o.indexOf(h.name)),f.push(g)),d.push(g)}return a(i.__originalMappings,t.compareByOriginalPositions),i},s.prototype._version=3,Object.defineProperty(s.prototype,`sources`,{get:function(){return this._absoluteSources.slice()}});function c(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}s.prototype._parseMappings=function(e,n){for(var r=1,o=0,s=0,l=0,u=0,d=0,f=e.length,p=0,m={},h={},g=[],_=[],v,y,b,x,S;p<f;)if(e.charAt(p)===`;`)r++,p++,o=0;else if(e.charAt(p)===`,`)p++;else{for(v=new c,v.generatedLine=r,x=p;x<f&&!this._charIsMappingSeparator(e,x);x++);if(y=e.slice(p,x),b=m[y],b)p+=y.length;else{for(b=[];p<x;)i.decode(e,p,h),S=h.value,p=h.rest,b.push(S);if(b.length===2)throw Error(`Found a source, but no line and column`);if(b.length===3)throw Error(`Found a source and line, but no column`);m[y]=b}v.generatedColumn=o+b[0],o=v.generatedColumn,b.length>1&&(v.source=u+b[1],u+=b[1],v.originalLine=s+b[2],s=v.originalLine,v.originalLine+=1,v.originalColumn=l+b[3],l=v.originalColumn,b.length>4&&(v.name=d+b[4],d+=b[4])),_.push(v),typeof v.originalLine==`number`&&g.push(v)}a(_,t.compareByGeneratedPositionsDeflated),this.__generatedMappings=_,a(g,t.compareByOriginalPositions),this.__originalMappings=g},s.prototype._findMapping=function(e,t,r,i,a,o){if(e[r]<=0)throw TypeError(`Line must be greater than or equal to 1, got `+e[r]);if(e[i]<0)throw TypeError(`Column must be greater than or equal to 0, got `+e[i]);return n.search(e,t,a,o)},s.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},s.prototype.originalPositionFor=function(e){var n={generatedLine:t.getArg(e,`line`),generatedColumn:t.getArg(e,`column`)},r=this._findMapping(n,this._generatedMappings,`generatedLine`,`generatedColumn`,t.compareByGeneratedPositionsDeflated,t.getArg(e,`bias`,o.GREATEST_LOWER_BOUND));if(r>=0){var i=this._generatedMappings[r];if(i.generatedLine===n.generatedLine){var a=t.getArg(i,`source`,null);a!==null&&(a=this._sources.at(a),a=t.computeSourceURL(this.sourceRoot,a,this._sourceMapURL));var s=t.getArg(i,`name`,null);return s!==null&&(s=this._names.at(s)),{source:a,line:t.getArg(i,`originalLine`,null),column:t.getArg(i,`originalColumn`,null),name:s}}}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(e){return e==null}):!1},s.prototype.sourceContentFor=function(e,n){if(!this.sourcesContent)return null;var r=this._findSourceIndex(e);if(r>=0)return this.sourcesContent[r];var i=e;this.sourceRoot!=null&&(i=t.relative(this.sourceRoot,i));var a;if(this.sourceRoot!=null&&(a=t.urlParse(this.sourceRoot))){var o=i.replace(/^file:\/\//,``);if(a.scheme==`file`&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];if((!a.path||a.path==`/`)&&this._sources.has(`/`+i))return this.sourcesContent[this._sources.indexOf(`/`+i)]}if(n)return null;throw Error(`"`+i+`" is not in the SourceMap.`)},s.prototype.generatedPositionFor=function(e){var n=t.getArg(e,`source`);if(n=this._findSourceIndex(n),n<0)return{line:null,column:null,lastColumn:null};var r={source:n,originalLine:t.getArg(e,`line`),originalColumn:t.getArg(e,`column`)},i=this._findMapping(r,this._originalMappings,`originalLine`,`originalColumn`,t.compareByOriginalPositions,t.getArg(e,`bias`,o.GREATEST_LOWER_BOUND));if(i>=0){var a=this._originalMappings[i];if(a.source===r.source)return{line:t.getArg(a,`generatedLine`,null),column:t.getArg(a,`generatedColumn`,null),lastColumn:t.getArg(a,`lastGeneratedColumn`,null)}}return{line:null,column:null,lastColumn:null}},e.BasicSourceMapConsumer=s;function l(e,n){var i=e;typeof e==`string`&&(i=t.parseSourceMapInput(e));var a=t.getArg(i,`version`),s=t.getArg(i,`sections`);if(a!=this._version)throw Error(`Unsupported version: `+a);this._sources=new r,this._names=new r;var c={line:-1,column:0};this._sections=s.map(function(e){if(e.url)throw Error(`Support for url field in sections not implemented.`);var r=t.getArg(e,`offset`),i=t.getArg(r,`line`),a=t.getArg(r,`column`);if(i<c.line||i===c.line&&a<c.column)throw Error(`Section offsets must be ordered and non-overlapping.`);return c=r,{generatedOffset:{generatedLine:i+1,generatedColumn:a+1},consumer:new o(t.getArg(e,`map`),n)}})}l.prototype=Object.create(o.prototype),l.prototype.constructor=o,l.prototype._version=3,Object.defineProperty(l.prototype,`sources`,{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}}),l.prototype.originalPositionFor=function(e){var r={generatedLine:t.getArg(e,`line`),generatedColumn:t.getArg(e,`column`)},i=n.search(r,this._sections,function(e,t){return e.generatedLine-t.generatedOffset.generatedLine||e.generatedColumn-t.generatedOffset.generatedColumn}),a=this._sections[i];return a?a.consumer.originalPositionFor({line:r.generatedLine-(a.generatedOffset.generatedLine-1),column:r.generatedColumn-(a.generatedOffset.generatedLine===r.generatedLine?a.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},l.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})},l.prototype.sourceContentFor=function(e,t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n].consumer.sourceContentFor(e,!0);if(r)return r}if(t)return null;throw Error(`"`+e+`" is not in the SourceMap.`)},l.prototype.generatedPositionFor=function(e){for(var n=0;n<this._sections.length;n++){var r=this._sections[n];if(r.consumer._findSourceIndex(t.getArg(e,`source`))!==-1){var i=r.consumer.generatedPositionFor(e);if(i)return{line:i.line+(r.generatedOffset.generatedLine-1),column:i.column+(r.generatedOffset.generatedLine===i.line?r.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},l.prototype._parseMappings=function(e,n){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var i=this._sections[r],o=i.consumer._generatedMappings,s=0;s<o.length;s++){var c=o[s],l=i.consumer._sources.at(c.source);l=t.computeSourceURL(i.consumer.sourceRoot,l,this._sourceMapURL),this._sources.add(l),l=this._sources.indexOf(l);var u=null;c.name&&(u=i.consumer._names.at(c.name),this._names.add(u),u=this._names.indexOf(u));var d={source:l,generatedLine:c.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:c.generatedColumn+(i.generatedOffset.generatedLine===c.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:c.originalLine,originalColumn:c.originalColumn,name:u};this.__generatedMappings.push(d),typeof d.originalLine==`number`&&this.__originalMappings.push(d)}a(this.__generatedMappings,t.compareByGeneratedPositionsDeflated),a(this.__originalMappings,t.compareByOriginalPositions)},e.IndexedSourceMapConsumer=l}}),tq=iG({"../../../node_modules/escodegen/node_modules/source-map/lib/source-node.js"(e){var t=ZK().SourceMapGenerator,n=JK(),r=/(\r?\n)/,i=10,a=`$$$isSourceNode$$$`;function o(e,t,n,r,i){this.children=[],this.sourceContents={},this.line=e??null,this.column=t??null,this.source=n??null,this.name=i??null,this[a]=!0,r!=null&&this.add(r)}o.fromStringWithSourceMap=function(e,t,i){var a=new o,s=e.split(r),c=0,l=function(){return e()+(e()||``);function e(){return c<s.length?s[c++]:void 0}},u=1,d=0,f=null;return t.eachMapping(function(e){if(f!==null)if(u<e.generatedLine)p(f,l()),u++,d=0;else{var t=s[c]||``,n=t.substr(0,e.generatedColumn-d);s[c]=t.substr(e.generatedColumn-d),d=e.generatedColumn,p(f,n),f=e;return}for(;u<e.generatedLine;)a.add(l()),u++;if(d<e.generatedColumn){var t=s[c]||``;a.add(t.substr(0,e.generatedColumn)),s[c]=t.substr(e.generatedColumn),d=e.generatedColumn}f=e},this),c<s.length&&(f&&p(f,l()),a.add(s.splice(c).join(``))),t.sources.forEach(function(e){var r=t.sourceContentFor(e);r!=null&&(i!=null&&(e=n.join(i,e)),a.setSourceContent(e,r))}),a;function p(e,t){if(e===null||e.source===void 0)a.add(t);else{var r=i?n.join(i,e.source):e.source;a.add(new o(e.originalLine,e.originalColumn,r,t,e.name))}}},o.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(e){this.add(e)},this);else if(e[a]||typeof e==`string`)e&&this.children.push(e);else throw TypeError(`Expected a SourceNode, string, or an array of SourceNodes and strings. Got `+e);return this},o.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else if(e[a]||typeof e==`string`)this.children.unshift(e);else throw TypeError(`Expected a SourceNode, string, or an array of SourceNodes and strings. Got `+e);return this},o.prototype.walk=function(e){for(var t,n=0,r=this.children.length;n<r;n++)t=this.children[n],t[a]?t.walk(e):t!==``&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},o.prototype.join=function(e){var t,n,r=this.children.length;if(r>0){for(t=[],n=0;n<r-1;n++)t.push(this.children[n]),t.push(e);t.push(this.children[n]),this.children=t}return this},o.prototype.replaceRight=function(e,t){var n=this.children[this.children.length-1];return n[a]?n.replaceRight(e,t):typeof n==`string`?this.children[this.children.length-1]=n.replace(e,t):this.children.push(``.replace(e,t)),this},o.prototype.setSourceContent=function(e,t){this.sourceContents[n.toSetString(e)]=t},o.prototype.walkSourceContents=function(e){for(var t=0,r=this.children.length;t<r;t++)this.children[t][a]&&this.children[t].walkSourceContents(e);for(var i=Object.keys(this.sourceContents),t=0,r=i.length;t<r;t++)e(n.fromSetString(i[t]),this.sourceContents[i[t]])},o.prototype.toString=function(){var e=``;return this.walk(function(t){e+=t}),e},o.prototype.toStringWithSourceMap=function(e){var n={code:``,line:1,column:0},r=new t(e),a=!1,o=null,s=null,c=null,l=null;return this.walk(function(e,t){n.code+=e,t.source!==null&&t.line!==null&&t.column!==null?((o!==t.source||s!==t.line||c!==t.column||l!==t.name)&&r.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:n.line,column:n.column},name:t.name}),o=t.source,s=t.line,c=t.column,l=t.name,a=!0):a&&=(r.addMapping({generated:{line:n.line,column:n.column}}),o=null,!1);for(var u=0,d=e.length;u<d;u++)e.charCodeAt(u)===i?(n.line++,n.column=0,u+1===d?(o=null,a=!1):a&&r.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:n.line,column:n.column},name:t.name})):n.column++}),this.walkSourceContents(function(e,t){r.setSourceContent(e,t)}),{code:n.code,map:r}},e.SourceNode=o}}),nq=iG({"../../../node_modules/escodegen/node_modules/source-map/source-map.js"(e){e.SourceMapGenerator=ZK().SourceMapGenerator,e.SourceMapConsumer=eq().SourceMapConsumer,e.SourceNode=tq().SourceNode}}),rq=iG({"../../../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`}}}}),iq=iG({"../../../node_modules/escodegen/escodegen.js"(e){(function(){var t,n,r,i,a=VK(),o=GK(),s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E;t=a.Syntax;function D(e){return Ne.Expression.hasOwnProperty(e.type)}function O(e){return Ne.Statement.hasOwnProperty(e.type)}n={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},r={"??":n.Coalesce,"||":n.LogicalOR,"&&":n.LogicalAND,"|":n.BitwiseOR,"^":n.BitwiseXOR,"&":n.BitwiseAND,"==":n.Equality,"!=":n.Equality,"===":n.Equality,"!==":n.Equality,is:n.Equality,isnt:n.Equality,"<":n.Relational,">":n.Relational,"<=":n.Relational,">=":n.Relational,in:n.Relational,instanceof:n.Relational,"<<":n.BitwiseSHIFT,">>":n.BitwiseSHIFT,">>>":n.BitwiseSHIFT,"+":n.Additive,"-":n.Additive,"*":n.Multiplicative,"%":n.Multiplicative,"/":n.Multiplicative,"**":n.Exponentiation};var k=1,A=2,j=4,M=8,ee=16,N=32,te=64,ne=A|j,re=k|A,P=k|A|j,ie=k,ae=j,oe=k|j,F=k,se=k|N,ce=0,le=k|ee,ue=k|M;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 fe(e,t){var n=``;for(t|=0;t>0;t>>>=1,e+=e)t&1&&(n+=e);return n}function pe(e){return/[\r\n]/g.test(e)}function me(e){var t=e.length;return t&&o.code.isLineTerminator(e.charCodeAt(t-1))}function I(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function he(e,t){var n,r;function i(e){return typeof e==`object`&&e instanceof Object&&!(e instanceof RegExp)}for(n in t)t.hasOwnProperty(n)&&(r=t[n],i(r)?i(e[n])?he(e[n],r):e[n]=he({},r):e[n]=r);return e}function ge(e){var t,n,r,i,a;if(e!==e)throw Error(`Numeric literal whose value is NaN`);if(e<0||e===0&&1/e<0)throw Error(`Numeric literal whose value is negative`);if(e===1/0)return l?`null`:u?`1e400`:`1e+400`;if(t=``+e,!u||t.length<3)return t;for(n=t.indexOf(`.`),!l&&t.charCodeAt(0)===48&&n===1&&(n=0,t=t.slice(1)),r=t,t=t.replace(`e+`,`e`),i=0,(a=r.indexOf(`e`))>0&&(i=+r.slice(a+1),r=r.slice(0,a)),n>=0&&(i-=r.length-n-1,r=+(r.slice(0,n)+r.slice(n+1))+``),a=0;r.charCodeAt(r.length+a-1)===48;)--a;return a!==0&&(i-=a,r=r.slice(0,a)),i!==0&&(r+=`e`+i),(r.length<t.length||d&&e>0xe8d4a51000&&Math.floor(e)===e&&(r=`0x`+e.toString(16)).length<t.length)&&+r===e&&(t=r),t}function _e(e,t){return(e&-2)==8232?(t?`u`:`\\u`)+(e===8232?`2028`:`2029`):e===10||e===13?(t?``:`\\`)+(e===10?`n`:`r`):String.fromCharCode(e)}function ve(e){var t,n,r,i,a,o,s,c;if(n=e.toString(),e.source){if(t=n.match(/\/([^/]*)$/),!t)return n;for(r=t[1],n=``,s=!1,c=!1,i=0,a=e.source.length;i<a;++i)o=e.source.charCodeAt(i),c?(n+=_e(o,c),c=!1):(s?o===93&&(s=!1):o===47?n+=`\\`:o===91&&(s=!0),n+=_e(o,c),c=o===92);return`/`+n+`/`+r}return n}function ye(e,t){var n;return e===8?`\\b`:e===12?`\\f`:e===9?`\\t`:(n=e.toString(16).toUpperCase(),l||e>255?`\\u`+`0000`.slice(n.length)+n:e===0&&!o.code.isDecimalDigit(t)?`\\0`:e===11?`\\x0B`:`\\x`+`00`.slice(n.length)+n)}function be(e){if(e===92)return`\\\\`;if(e===10)return`\\n`;if(e===13)return`\\r`;if(e===8232)return`\\u2028`;if(e===8233)return`\\u2029`;throw Error(`Incorrectly classified character`)}function xe(e){var t,n,r,i;for(i=f===`double`?`"`:`'`,t=0,n=e.length;t<n;++t)if(r=e.charCodeAt(t),r===39){i=`"`;break}else if(r===34){i=`'`;break}else r===92&&++t;return i+e+i}function L(e){var t=``,n,r,i,a=0,s=0,c,u;for(n=0,r=e.length;n<r;++n){if(i=e.charCodeAt(n),i===39)++a;else if(i===34)++s;else if(i===47&&l)t+=`\\`;else if(o.code.isLineTerminator(i)||i===92){t+=be(i);continue}else if(!o.code.isIdentifierPartES5(i)&&(l&&i<32||!l&&!p&&(i<32||i>126))){t+=ye(i,e.charCodeAt(n+1));continue}t+=String.fromCharCode(i)}if(c=!(f===`double`||f===`auto`&&s<a),u=c?`'`:`"`,!(c?a:s))return u+t+u;for(e=t,t=u,n=0,r=e.length;n<r;++n)i=e.charCodeAt(n),(i===39&&c||i===34&&!c)&&(t+=`\\`),t+=String.fromCharCode(i);return t+u}function Se(e){var t,n,r,i=``;for(t=0,n=e.length;t<n;++t)r=e[t],i+=Array.isArray(r)?Se(r):r;return i}function Ce(e,t){if(!S)return Array.isArray(e)?Se(e):e;if(t==null){if(e instanceof i)return e;t={}}return t.loc==null?new i(null,null,S,e,t.name||null):new i(t.loc.start.line,t.loc.start.column,S===!0?t.loc.source||null:S,e,t.name||null)}function we(){return h||` `}function R(e,t){var n,r,i,a;return n=Ce(e).toString(),n.length===0?[t]:(r=Ce(t).toString(),r.length===0?[e]:(i=n.charCodeAt(n.length-1),a=r.charCodeAt(0),(i===43||i===45)&&i===a||o.code.isIdentifierPartES5(i)&&o.code.isIdentifierPartES5(a)||i===47&&a===105?[e,we(),t]:o.code.isWhiteSpace(i)||o.code.isLineTerminator(i)||o.code.isWhiteSpace(a)||o.code.isLineTerminator(a)?[e,t]:[e,h,t]))}function Te(e){return[s,e]}function Ee(e){var t=s;s+=c,e(s),s=t}function De(e){var t;for(t=e.length-1;t>=0&&!o.code.isLineTerminator(e.charCodeAt(t));--t);return e.length-1-t}function z(e,t){var n,r,i,a,c,l,u,d;for(n=e.split(/\r\n|[\r\n]/),l=Number.MAX_VALUE,r=1,i=n.length;r<i;++r){for(a=n[r],c=0;c<a.length&&o.code.isWhiteSpace(a.charCodeAt(c));)++c;l>c&&(l=c)}for(typeof t<`u`?(u=s,n[1][l]===`*`&&(t+=` `),s=t):(l&1&&--l,u=s),r=1,i=n.length;r<i;++r)d=Ce(Te(n[r].slice(l))),n[r]=S?d.join(``):d;return s=u,n.join(`
1035
- `)}function Oe(e,t){if(e.type===`Line`){if(me(e.value))return`//`+e.value;var n=`//`+e.value;return w||(n+=`
1036
- `),n}return b.format.indent.adjustMultilineComment&&/[\n\r]/.test(e.value)?z(`/*`+e.value+`*/`,t):`/*`+e.value+`*/`}function ke(e,n){var r,i,a,o,l,u,d,f,p,m,h,g,_,y;if(e.leadingComments&&e.leadingComments.length>0){if(o=n,w){for(a=e.leadingComments[0],n=[],f=a.extendedRange,p=a.range,h=C.substring(f[0],p[0]),y=(h.match(/\n/g)||[]).length,y>0?(n.push(fe(`
1037
- `,y)),n.push(Te(Oe(a)))):(n.push(h),n.push(Oe(a))),m=p,r=1,i=e.leadingComments.length;r<i;r++)a=e.leadingComments[r],p=a.range,g=C.substring(m[1],p[0]),y=(g.match(/\n/g)||[]).length,n.push(fe(`
1038
- `,y)),n.push(Te(Oe(a))),m=p;_=C.substring(p[1],f[1]),y=(_.match(/\n/g)||[]).length,n.push(fe(`
1039
- `,y))}else for(a=e.leadingComments[0],n=[],v&&e.type===t.Program&&e.body.length===0&&n.push(`
1040
- `),n.push(Oe(a)),me(Ce(n).toString())||n.push(`
1041
- `),r=1,i=e.leadingComments.length;r<i;++r)a=e.leadingComments[r],d=[Oe(a)],me(Ce(d).toString())||d.push(`
1042
- `),n.push(Te(d));n.push(Te(o))}if(e.trailingComments)if(w)a=e.trailingComments[0],f=a.extendedRange,p=a.range,h=C.substring(f[0],p[0]),y=(h.match(/\n/g)||[]).length,y>0?(n.push(fe(`
1043
- `,y)),n.push(Te(Oe(a)))):(n.push(h),n.push(Oe(a)));else for(l=!me(Ce(n).toString()),u=fe(` `,De(Ce([s,n,c]).toString())),r=0,i=e.trailingComments.length;r<i;++r)a=e.trailingComments[r],l?(n=r===0?[n,c]:[n,u],n.push(Oe(a,u))):n=[n,Te(Oe(a))],r!==i-1&&!me(Ce(n).toString())&&(n=[n,`
1044
- `]);return n}function Ae(e,t,n){var r,i=0;for(r=e;r<t;r++)C[r]===`
1045
- `&&i++;for(r=1;r<i;r++)n.push(m)}function je(e,t,n){return t<n?[`(`,e,`)`]:e}function Me(e){var t,n,r;for(r=e.split(/\r\n|\n/),t=1,n=r.length;t<n;t++)r[t]=m+s+r[t];return r}function B(e,t){var r,i,a;return r=e[b.verbatim],typeof r==`string`?i=je(Me(r),n.Sequence,t):(i=Me(r.content),a=r.precedence==null?n.Sequence:r.precedence,i=je(i,a,t)),Ce(i,e)}function Ne(){}Ne.prototype.maybeBlock=function(e,n){var r,i,a=this;return i=!b.comment||!e.leadingComments,e.type===t.BlockStatement&&i?[h,this.generateStatement(e,n)]:e.type===t.EmptyStatement&&i?`;`:(Ee(function(){r=[m,Te(a.generateStatement(e,n))]}),r)},Ne.prototype.maybeBlockSuffix=function(e,n){var r=me(Ce(n).toString());return e.type===t.BlockStatement&&(!b.comment||!e.leadingComments)&&!r?[n,h]:r?[n,s]:[n,m,s]};function V(e){return Ce(e.name,e)}function H(e,t){return e.async?`async`+(t?we():h):``}function Pe(e){return e.generator&&!b.moz.starlessGenerator?`*`+h:``}function Fe(e){var t=e.value,n=``;return t.async&&(n+=H(t,!e.computed)),t.generator&&(n+=Pe(t)?`*`:``),n}Ne.prototype.generatePattern=function(e,n,r){return e.type===t.Identifier?V(e):this.generateExpression(e,n,r)},Ne.prototype.generateFunctionParams=function(e){var r,i,a,o;if(o=!1,e.type===t.ArrowFunctionExpression&&!e.rest&&(!e.defaults||e.defaults.length===0)&&e.params.length===1&&e.params[0].type===t.Identifier)a=[H(e,!0),V(e.params[0])];else{for(a=e.type===t.ArrowFunctionExpression?[H(e,!1)]:[],a.push(`(`),e.defaults&&(o=!0),r=0,i=e.params.length;r<i;++r)o&&e.defaults[r]?a.push(this.generateAssignment(e.params[r],e.defaults[r],`=`,n.Assignment,P)):a.push(this.generatePattern(e.params[r],n.Assignment,P)),r+1<i&&a.push(`,`+h);e.rest&&(e.params.length&&a.push(`,`+h),a.push(`...`),a.push(V(e.rest))),a.push(`)`)}return a},Ne.prototype.generateFunctionBody=function(e){var r,i;return r=this.generateFunctionParams(e),e.type===t.ArrowFunctionExpression&&(r.push(h),r.push(`=>`)),e.expression?(r.push(h),i=this.generateExpression(e.body,n.Assignment,P),i.toString().charAt(0)===`{`&&(i=[`(`,i,`)`]),r.push(i)):r.push(this.maybeBlock(e.body,ue)),r},Ne.prototype.generateIterationForStatement=function(e,r,i){var a=[`for`+(r.await?we()+`await`:``)+h+`(`],o=this;return Ee(function(){r.left.type===t.VariableDeclaration?Ee(function(){a.push(r.left.kind+we()),a.push(o.generateStatement(r.left.declarations[0],ce))}):a.push(o.generateExpression(r.left,n.Call,P)),a=R(a,e),a=[R(a,o.generateExpression(r.right,n.Assignment,P)),`)`]}),a.push(this.maybeBlock(r.body,i)),a},Ne.prototype.generatePropertyKey=function(e,t){var r=[];return t&&r.push(`[`),r.push(this.generateExpression(e,n.Assignment,P)),t&&r.push(`]`),r},Ne.prototype.generateAssignment=function(e,t,r,i,a){return n.Assignment<i&&(a|=k),je([this.generateExpression(e,n.Call,a),h+r+h,this.generateExpression(t,n.Assignment,a)],n.Assignment,i)},Ne.prototype.semicolon=function(e){return!_&&e&N?``:`;`},Ne.Statement={BlockStatement:function(e,t){var n,r,i=[`{`,m],a=this;return Ee(function(){e.body.length===0&&w&&(n=e.range,n[1]-n[0]>2&&(r=C.substring(n[0]+1,n[1]-1),r[0]===`
1046
- `&&(i=[`{`]),i.push(r)));var o,s,c,l;for(l=F,t&M&&(l|=ee),o=0,s=e.body.length;o<s;++o)w&&(o===0&&(e.body[0].leadingComments&&(n=e.body[0].leadingComments[0].extendedRange,r=C.substring(n[0],n[1]),r[0]===`
1047
- `&&(i=[`{`])),e.body[0].leadingComments||Ae(e.range[0],e.body[0].range[0],i)),o>0&&!e.body[o-1].trailingComments&&!e.body[o].leadingComments&&Ae(e.body[o-1].range[1],e.body[o].range[0],i)),o===s-1&&(l|=N),c=e.body[o].leadingComments&&w?a.generateStatement(e.body[o],l):Te(a.generateStatement(e.body[o],l)),i.push(c),me(Ce(c).toString())||w&&o<s-1&&e.body[o+1].leadingComments||i.push(m),w&&o===s-1&&(e.body[o].trailingComments||Ae(e.body[o].range[1],e.range[1],i))}),i.push(Te(`}`)),i},BreakStatement:function(e,t){return e.label?`break `+e.label.name+this.semicolon(t):`break`+this.semicolon(t)},ContinueStatement:function(e,t){return e.label?`continue `+e.label.name+this.semicolon(t):`continue`+this.semicolon(t)},ClassBody:function(e,t){var r=[`{`,m],i=this;return Ee(function(t){var a,o;for(a=0,o=e.body.length;a<o;++a)r.push(t),r.push(i.generateExpression(e.body[a],n.Sequence,P)),a+1<o&&r.push(m)}),me(Ce(r).toString())||r.push(m),r.push(s),r.push(`}`),r},ClassDeclaration:function(e,t){var r,i;return r=[`class`],e.id&&(r=R(r,this.generateExpression(e.id,n.Sequence,P))),e.superClass&&(i=R(`extends`,this.generateExpression(e.superClass,n.Unary,P)),r=R(r,i)),r.push(h),r.push(this.generateStatement(e.body,se)),r},DirectiveStatement:function(e,t){return b.raw&&e.raw?e.raw+this.semicolon(t):xe(e.directive)+this.semicolon(t)},DoWhileStatement:function(e,t){var r=R(`do`,this.maybeBlock(e.body,F));return r=this.maybeBlockSuffix(e.body,r),R(r,[`while`+h+`(`,this.generateExpression(e.test,n.Sequence,P),`)`+this.semicolon(t)])},CatchClause:function(e,t){var r,i=this;return Ee(function(){var t;e.param?(r=[`catch`+h+`(`,i.generateExpression(e.param,n.Sequence,P),`)`],e.guard&&(t=i.generateExpression(e.guard,n.Sequence,P),r.splice(2,0,` if `,t))):r=[`catch`]}),r.push(this.maybeBlock(e.body,F)),r},DebuggerStatement:function(e,t){return`debugger`+this.semicolon(t)},EmptyStatement:function(e,t){return`;`},ExportDefaultDeclaration:function(e,t){var r=[`export`],i;return i=t&N?se:F,r=R(r,`default`),r=O(e.declaration)?R(r,this.generateStatement(e.declaration,i)):R(r,this.generateExpression(e.declaration,n.Assignment,P)+this.semicolon(t)),r},ExportNamedDeclaration:function(e,r){var i=[`export`],a,o=this;return a=r&N?se:F,e.declaration?R(i,this.generateStatement(e.declaration,a)):(e.specifiers&&(e.specifiers.length===0?i=R(i,`{`+h+`}`):e.specifiers[0].type===t.ExportBatchSpecifier?i=R(i,this.generateExpression(e.specifiers[0],n.Sequence,P)):(i=R(i,`{`),Ee(function(t){var r,a;for(i.push(m),r=0,a=e.specifiers.length;r<a;++r)i.push(t),i.push(o.generateExpression(e.specifiers[r],n.Sequence,P)),r+1<a&&i.push(`,`+m)}),me(Ce(i).toString())||i.push(m),i.push(s+`}`)),e.source?i=R(i,[`from`+h,this.generateExpression(e.source,n.Sequence,P),this.semicolon(r)]):i.push(this.semicolon(r))),i)},ExportAllDeclaration:function(e,t){return[`export`+h,`*`+h,`from`+h,this.generateExpression(e.source,n.Sequence,P),this.semicolon(t)]},ExpressionStatement:function(e,r){var i,a;function s(e){var t;return e.slice(0,5)===`class`?(t=e.charCodeAt(5),t===123||o.code.isWhiteSpace(t)||o.code.isLineTerminator(t)):!1}function c(e){var t;return e.slice(0,8)===`function`?(t=e.charCodeAt(8),t===40||o.code.isWhiteSpace(t)||t===42||o.code.isLineTerminator(t)):!1}function l(e){var t,n,r;if(e.slice(0,5)!==`async`||!o.code.isWhiteSpace(e.charCodeAt(5)))return!1;for(n=6,r=e.length;n<r&&o.code.isWhiteSpace(e.charCodeAt(n));++n);return n===r||e.slice(n,n+8)!==`function`?!1:(t=e.charCodeAt(n+8),t===40||o.code.isWhiteSpace(t)||t===42||o.code.isLineTerminator(t))}return i=[this.generateExpression(e.expression,n.Sequence,P)],a=Ce(i).toString(),a.charCodeAt(0)===123||s(a)||c(a)||l(a)||y&&r&ee&&e.expression.type===t.Literal&&typeof e.expression.value==`string`?i=[`(`,i,`)`+this.semicolon(r)]:i.push(this.semicolon(r)),i},ImportDeclaration:function(e,r){var i,a,o=this;return e.specifiers.length===0?[`import`,h,this.generateExpression(e.source,n.Sequence,P),this.semicolon(r)]:(i=[`import`],a=0,e.specifiers[a].type===t.ImportDefaultSpecifier&&(i=R(i,[this.generateExpression(e.specifiers[a],n.Sequence,P)]),++a),e.specifiers[a]&&(a!==0&&i.push(`,`),e.specifiers[a].type===t.ImportNamespaceSpecifier?i=R(i,[h,this.generateExpression(e.specifiers[a],n.Sequence,P)]):(i.push(h+`{`),e.specifiers.length-a===1?(i.push(h),i.push(this.generateExpression(e.specifiers[a],n.Sequence,P)),i.push(h+`}`+h)):(Ee(function(t){var r,s;for(i.push(m),r=a,s=e.specifiers.length;r<s;++r)i.push(t),i.push(o.generateExpression(e.specifiers[r],n.Sequence,P)),r+1<s&&i.push(`,`+m)}),me(Ce(i).toString())||i.push(m),i.push(s+`}`+h)))),i=R(i,[`from`+h,this.generateExpression(e.source,n.Sequence,P),this.semicolon(r)]),i)},VariableDeclarator:function(e,t){var r=t&k?P:ne;return e.init?[this.generateExpression(e.id,n.Assignment,r),h,`=`,h,this.generateExpression(e.init,n.Assignment,r)]:this.generatePattern(e.id,n.Assignment,r)},VariableDeclaration:function(e,t){var n,r,i,a,o,s=this;n=[e.kind],o=t&k?F:ce;function c(){for(a=e.declarations[0],b.comment&&a.leadingComments?(n.push(`
1048
- `),n.push(Te(s.generateStatement(a,o)))):(n.push(we()),n.push(s.generateStatement(a,o))),r=1,i=e.declarations.length;r<i;++r)a=e.declarations[r],b.comment&&a.leadingComments?(n.push(`,`+m),n.push(Te(s.generateStatement(a,o)))):(n.push(`,`+h),n.push(s.generateStatement(a,o)))}return e.declarations.length>1?Ee(c):c(),n.push(this.semicolon(t)),n},ThrowStatement:function(e,t){return[R(`throw`,this.generateExpression(e.argument,n.Sequence,P)),this.semicolon(t)]},TryStatement:function(e,t){var n,r,i,a;if(n=[`try`,this.maybeBlock(e.block,F)],n=this.maybeBlockSuffix(e.block,n),e.handlers)for(r=0,i=e.handlers.length;r<i;++r)n=R(n,this.generateStatement(e.handlers[r],F)),(e.finalizer||r+1!==i)&&(n=this.maybeBlockSuffix(e.handlers[r].body,n));else{for(a=e.guardedHandlers||[],r=0,i=a.length;r<i;++r)n=R(n,this.generateStatement(a[r],F)),(e.finalizer||r+1!==i)&&(n=this.maybeBlockSuffix(a[r].body,n));if(e.handler)if(Array.isArray(e.handler))for(r=0,i=e.handler.length;r<i;++r)n=R(n,this.generateStatement(e.handler[r],F)),(e.finalizer||r+1!==i)&&(n=this.maybeBlockSuffix(e.handler[r].body,n));else n=R(n,this.generateStatement(e.handler,F)),e.finalizer&&(n=this.maybeBlockSuffix(e.handler.body,n))}return e.finalizer&&(n=R(n,[`finally`,this.maybeBlock(e.finalizer,F)])),n},SwitchStatement:function(e,t){var r,i,a,o,s,c=this;if(Ee(function(){r=[`switch`+h+`(`,c.generateExpression(e.discriminant,n.Sequence,P),`)`+h+`{`+m]}),e.cases)for(s=F,a=0,o=e.cases.length;a<o;++a)a===o-1&&(s|=N),i=Te(this.generateStatement(e.cases[a],s)),r.push(i),me(Ce(i).toString())||r.push(m);return r.push(Te(`}`)),r},SwitchCase:function(e,r){var i,a,o,s,c,l=this;return Ee(function(){for(i=e.test?[R(`case`,l.generateExpression(e.test,n.Sequence,P)),`:`]:[`default:`],o=0,s=e.consequent.length,s&&e.consequent[0].type===t.BlockStatement&&(a=l.maybeBlock(e.consequent[0],F),i.push(a),o=1),o!==s&&!me(Ce(i).toString())&&i.push(m),c=F;o<s;++o)o===s-1&&r&N&&(c|=N),a=Te(l.generateStatement(e.consequent[o],c)),i.push(a),o+1!==s&&!me(Ce(a).toString())&&i.push(m)}),i},IfStatement:function(e,r){var i,a,o,s=this;return Ee(function(){i=[`if`+h+`(`,s.generateExpression(e.test,n.Sequence,P),`)`]}),o=r&N,a=F,o&&(a|=N),e.alternate?(i.push(this.maybeBlock(e.consequent,F)),i=this.maybeBlockSuffix(e.consequent,i),i=e.alternate.type===t.IfStatement?R(i,[`else `,this.generateStatement(e.alternate,a)]):R(i,R(`else`,this.maybeBlock(e.alternate,a)))):i.push(this.maybeBlock(e.consequent,a)),i},ForStatement:function(e,r){var i,a=this;return Ee(function(){i=[`for`+h+`(`],e.init?e.init.type===t.VariableDeclaration?i.push(a.generateStatement(e.init,ce)):(i.push(a.generateExpression(e.init,n.Sequence,ne)),i.push(`;`)):i.push(`;`),e.test&&(i.push(h),i.push(a.generateExpression(e.test,n.Sequence,P))),i.push(`;`),e.update&&(i.push(h),i.push(a.generateExpression(e.update,n.Sequence,P))),i.push(`)`)}),i.push(this.maybeBlock(e.body,r&N?se:F)),i},ForInStatement:function(e,t){return this.generateIterationForStatement(`in`,e,t&N?se:F)},ForOfStatement:function(e,t){return this.generateIterationForStatement(`of`,e,t&N?se:F)},LabeledStatement:function(e,t){return[e.label.name+`:`,this.maybeBlock(e.body,t&N?se:F)]},Program:function(e,t){var n,r,i,a,o;for(a=e.body.length,n=[v&&a>0?`
1049
- `:``],o=le,i=0;i<a;++i)!v&&i===a-1&&(o|=N),w&&(i===0&&(e.body[0].leadingComments||Ae(e.range[0],e.body[i].range[0],n)),i>0&&!e.body[i-1].trailingComments&&!e.body[i].leadingComments&&Ae(e.body[i-1].range[1],e.body[i].range[0],n)),r=Te(this.generateStatement(e.body[i],o)),n.push(r),i+1<a&&!me(Ce(r).toString())&&(w&&e.body[i+1].leadingComments||n.push(m)),w&&i===a-1&&(e.body[i].trailingComments||Ae(e.body[i].range[1],e.range[1],n));return n},FunctionDeclaration:function(e,t){return[H(e,!0),`function`,Pe(e)||we(),e.id?V(e.id):``,this.generateFunctionBody(e)]},ReturnStatement:function(e,t){return e.argument?[R(`return`,this.generateExpression(e.argument,n.Sequence,P)),this.semicolon(t)]:[`return`+this.semicolon(t)]},WhileStatement:function(e,t){var r,i=this;return Ee(function(){r=[`while`+h+`(`,i.generateExpression(e.test,n.Sequence,P),`)`]}),r.push(this.maybeBlock(e.body,t&N?se:F)),r},WithStatement:function(e,t){var r,i=this;return Ee(function(){r=[`with`+h+`(`,i.generateExpression(e.object,n.Sequence,P),`)`]}),r.push(this.maybeBlock(e.body,t&N?se:F)),r}},I(Ne.prototype,Ne.Statement),Ne.Expression={SequenceExpression:function(e,t,r){var i,a,o;for(n.Sequence<t&&(r|=k),i=[],a=0,o=e.expressions.length;a<o;++a)i.push(this.generateExpression(e.expressions[a],n.Assignment,r)),a+1<o&&i.push(`,`+h);return je(i,n.Sequence,t)},AssignmentExpression:function(e,t,n){return this.generateAssignment(e.left,e.right,e.operator,t,n)},ArrowFunctionExpression:function(e,t,r){return je(this.generateFunctionBody(e),n.ArrowFunction,t)},ConditionalExpression:function(e,t,r){return n.Conditional<t&&(r|=k),je([this.generateExpression(e.test,n.Coalesce,r),h+`?`+h,this.generateExpression(e.consequent,n.Assignment,r),h+`:`+h,this.generateExpression(e.alternate,n.Assignment,r)],n.Conditional,t)},LogicalExpression:function(e,t,n){return e.operator===`??`&&(n|=te),this.BinaryExpression(e,t,n)},BinaryExpression:function(e,t,i){var a,s,c,l,u,d;return l=r[e.operator],s=e.operator===`**`?n.Postfix:l,c=e.operator===`**`?l:l+1,l<t&&(i|=k),u=this.generateExpression(e.left,s,i),d=u.toString(),a=d.charCodeAt(d.length-1)===47&&o.code.isIdentifierPartES5(e.operator.charCodeAt(0))?[u,we(),e.operator]:R(u,e.operator),u=this.generateExpression(e.right,c,i),e.operator===`/`&&u.toString().charAt(0)===`/`||e.operator.slice(-1)===`<`&&u.toString().slice(0,3)===`!--`?(a.push(we()),a.push(u)):a=R(a,u),e.operator===`in`&&!(i&k)||(e.operator===`||`||e.operator===`&&`)&&i&te?[`(`,a,`)`]:je(a,l,t)},CallExpression:function(e,t,r){var i,a,o;for(i=[this.generateExpression(e.callee,n.Call,re)],e.optional&&i.push(`?.`),i.push(`(`),a=0,o=e.arguments.length;a<o;++a)i.push(this.generateExpression(e.arguments[a],n.Assignment,P)),a+1<o&&i.push(`,`+h);return i.push(`)`),r&A?je(i,n.Call,t):[`(`,i,`)`]},ChainExpression:function(e,t,r){return n.OptionalChaining<t&&(r|=A),je(this.generateExpression(e.expression,n.OptionalChaining,r),n.OptionalChaining,t)},NewExpression:function(e,t,r){var i,a,o,s,c;if(a=e.arguments.length,c=r&j&&!g&&a===0?oe:ie,i=R(`new`,this.generateExpression(e.callee,n.New,c)),!(r&j)||g||a>0){for(i.push(`(`),o=0,s=a;o<s;++o)i.push(this.generateExpression(e.arguments[o],n.Assignment,P)),o+1<s&&i.push(`,`+h);i.push(`)`)}return je(i,n.New,t)},MemberExpression:function(e,r,i){var a,s;return a=[this.generateExpression(e.object,n.Call,i&A?re:ie)],e.computed?(e.optional&&a.push(`?.`),a.push(`[`),a.push(this.generateExpression(e.property,n.Sequence,i&A?P:oe)),a.push(`]`)):(!e.optional&&e.object.type===t.Literal&&typeof e.object.value==`number`&&(s=Ce(a).toString(),s.indexOf(`.`)<0&&!/[eExX]/.test(s)&&o.code.isDecimalDigit(s.charCodeAt(s.length-1))&&!(s.length>=2&&s.charCodeAt(0)===48)&&a.push(` `)),a.push(e.optional?`?.`:`.`),a.push(V(e.property))),je(a,n.Member,r)},MetaProperty:function(e,t,r){var i;return i=[],i.push(typeof e.meta==`string`?e.meta:V(e.meta)),i.push(`.`),i.push(typeof e.property==`string`?e.property:V(e.property)),je(i,n.Member,t)},UnaryExpression:function(e,t,r){var i,a,s,c,l;return a=this.generateExpression(e.argument,n.Unary,P),h===``?i=R(e.operator,a):(i=[e.operator],e.operator.length>2?i=R(i,a):(c=Ce(i).toString(),l=c.charCodeAt(c.length-1),s=a.toString().charCodeAt(0),((l===43||l===45)&&l===s||o.code.isIdentifierPartES5(l)&&o.code.isIdentifierPartES5(s))&&i.push(we()),i.push(a))),je(i,n.Unary,t)},YieldExpression:function(e,t,r){var i;return i=e.delegate?`yield*`:`yield`,e.argument&&(i=R(i,this.generateExpression(e.argument,n.Yield,P))),je(i,n.Yield,t)},AwaitExpression:function(e,t,r){return je(R(e.all?`await*`:`await`,this.generateExpression(e.argument,n.Await,P)),n.Await,t)},UpdateExpression:function(e,t,r){return e.prefix?je([e.operator,this.generateExpression(e.argument,n.Unary,P)],n.Unary,t):je([this.generateExpression(e.argument,n.Postfix,P),e.operator],n.Postfix,t)},FunctionExpression:function(e,t,n){var r=[H(e,!0),`function`];return e.id?(r.push(Pe(e)||we()),r.push(V(e.id))):r.push(Pe(e)||h),r.push(this.generateFunctionBody(e)),r},ArrayPattern:function(e,t,n){return this.ArrayExpression(e,t,n,!0)},ArrayExpression:function(e,t,r,i){var a,o,c=this;return e.elements.length?(o=i?!1:e.elements.length>1,a=[`[`,o?m:``],Ee(function(t){var r,i;for(r=0,i=e.elements.length;r<i;++r)e.elements[r]?(a.push(o?t:``),a.push(c.generateExpression(e.elements[r],n.Assignment,P))):(o&&a.push(t),r+1===i&&a.push(`,`)),r+1<i&&a.push(`,`+(o?m:h))}),o&&!me(Ce(a).toString())&&a.push(m),a.push(o?s:``),a.push(`]`),a):`[]`},RestElement:function(e,t,n){return`...`+this.generatePattern(e.argument)},ClassExpression:function(e,t,r){var i,a;return i=[`class`],e.id&&(i=R(i,this.generateExpression(e.id,n.Sequence,P))),e.superClass&&(a=R(`extends`,this.generateExpression(e.superClass,n.Unary,P)),i=R(i,a)),i.push(h),i.push(this.generateStatement(e.body,se)),i},MethodDefinition:function(e,t,n){var r,i;return r=e.static?[`static`+h]:[],i=e.kind===`get`||e.kind===`set`?[R(e.kind,this.generatePropertyKey(e.key,e.computed)),this.generateFunctionBody(e.value)]:[Fe(e),this.generatePropertyKey(e.key,e.computed),this.generateFunctionBody(e.value)],R(r,i)},Property:function(e,t,r){return e.kind===`get`||e.kind===`set`?[e.kind,we(),this.generatePropertyKey(e.key,e.computed),this.generateFunctionBody(e.value)]:e.shorthand?e.value.type===`AssignmentPattern`?this.AssignmentPattern(e.value,n.Sequence,P):this.generatePropertyKey(e.key,e.computed):e.method?[Fe(e),this.generatePropertyKey(e.key,e.computed),this.generateFunctionBody(e.value)]:[this.generatePropertyKey(e.key,e.computed),`:`+h,this.generateExpression(e.value,n.Assignment,P)]},ObjectExpression:function(e,t,r){var i,a,o,c=this;return e.properties.length?(i=e.properties.length>1,Ee(function(){o=c.generateExpression(e.properties[0],n.Sequence,P)}),!i&&!pe(Ce(o).toString())?[`{`,h,o,h,`}`]:(Ee(function(t){var r,s;if(a=[`{`,m,t,o],i)for(a.push(`,`+m),r=1,s=e.properties.length;r<s;++r)a.push(t),a.push(c.generateExpression(e.properties[r],n.Sequence,P)),r+1<s&&a.push(`,`+m)}),me(Ce(a).toString())||a.push(m),a.push(s),a.push(`}`),a)):`{}`},AssignmentPattern:function(e,t,n){return this.generateAssignment(e.left,e.right,`=`,t,n)},ObjectPattern:function(e,r,i){var a,o,c,l,u,d=this;if(!e.properties.length)return`{}`;if(l=!1,e.properties.length===1)u=e.properties[0],u.type===t.Property&&u.value.type!==t.Identifier&&(l=!0);else for(o=0,c=e.properties.length;o<c;++o)if(u=e.properties[o],u.type===t.Property&&!u.shorthand){l=!0;break}return a=[`{`,l?m:``],Ee(function(t){var r,i;for(r=0,i=e.properties.length;r<i;++r)a.push(l?t:``),a.push(d.generateExpression(e.properties[r],n.Sequence,P)),r+1<i&&a.push(`,`+(l?m:h))}),l&&!me(Ce(a).toString())&&a.push(m),a.push(l?s:``),a.push(`}`),a},ThisExpression:function(e,t,n){return`this`},Super:function(e,t,n){return`super`},Identifier:function(e,t,n){return V(e)},ImportDefaultSpecifier:function(e,t,n){return V(e.id||e.local)},ImportNamespaceSpecifier:function(e,t,n){var r=[`*`],i=e.id||e.local;return i&&r.push(h+`as`+we()+V(i)),r},ImportSpecifier:function(e,t,n){var r=e.imported,i=[r.name],a=e.local;return a&&a.name!==r.name&&i.push(we()+`as`+we()+V(a)),i},ExportSpecifier:function(e,t,n){var r=e.local,i=[r.name],a=e.exported;return a&&a.name!==r.name&&i.push(we()+`as`+we()+V(a)),i},Literal:function(e,n,r){var i;if(e.hasOwnProperty(`raw`)&&x&&b.raw)try{if(i=x(e.raw).body[0].expression,i.type===t.Literal&&i.value===e.value)return e.raw}catch{}return e.regex?`/`+e.regex.pattern+`/`+e.regex.flags:typeof e.value==`bigint`?e.value.toString()+`n`:e.bigint?e.bigint+`n`:e.value===null?`null`:typeof e.value==`string`?L(e.value):typeof e.value==`number`?ge(e.value):typeof e.value==`boolean`?e.value?`true`:`false`:ve(e.value)},GeneratorExpression:function(e,t,n){return this.ComprehensionExpression(e,t,n)},ComprehensionExpression:function(e,r,i){var a,o,s,c,l=this;return a=e.type===t.GeneratorExpression?[`(`]:[`[`],b.moz.comprehensionExpressionStartsWithAssignment&&(c=this.generateExpression(e.body,n.Assignment,P),a.push(c)),e.blocks&&Ee(function(){for(o=0,s=e.blocks.length;o<s;++o)c=l.generateExpression(e.blocks[o],n.Sequence,P),o>0||b.moz.comprehensionExpressionStartsWithAssignment?a=R(a,c):a.push(c)}),e.filter&&(a=R(a,`if`+h),c=this.generateExpression(e.filter,n.Sequence,P),a=R(a,[`(`,c,`)`])),b.moz.comprehensionExpressionStartsWithAssignment||(c=this.generateExpression(e.body,n.Assignment,P),a=R(a,c)),a.push(e.type===t.GeneratorExpression?`)`:`]`),a},ComprehensionBlock:function(e,r,i){var a;return a=e.left.type===t.VariableDeclaration?[e.left.kind,we(),this.generateStatement(e.left.declarations[0],ce)]:this.generateExpression(e.left,n.Call,P),a=R(a,e.of?`of`:`in`),a=R(a,this.generateExpression(e.right,n.Sequence,P)),[`for`+h+`(`,a,`)`]},SpreadElement:function(e,t,r){return[`...`,this.generateExpression(e.argument,n.Assignment,P)]},TaggedTemplateExpression:function(e,t,r){var i=re;return r&A||(i=ie),je([this.generateExpression(e.tag,n.Call,i),this.generateExpression(e.quasi,n.Primary,ae)],n.TaggedTemplate,t)},TemplateElement:function(e,t,n){return e.value.raw},TemplateLiteral:function(e,t,r){var i,a,o;for(i=["`"],a=0,o=e.quasis.length;a<o;++a)i.push(this.generateExpression(e.quasis[a],n.Primary,P)),a+1<o&&(i.push("${"+h),i.push(this.generateExpression(e.expressions[a],n.Sequence,P)),i.push(h+`}`));return i.push("`"),i},ModuleSpecifier:function(e,t,n){return this.Literal(e,t,n)},ImportExpression:function(e,t,r){return je([`import(`,this.generateExpression(e.source,n.Assignment,P),`)`],n.Call,t)}},I(Ne.prototype,Ne.Expression),Ne.prototype.generateExpression=function(e,n,r){var i,a;return a=e.type||t.Property,b.verbatim&&e.hasOwnProperty(b.verbatim)?B(e,n):(i=this[a](e,n,r),b.comment&&(i=ke(e,i)),Ce(i,e))},Ne.prototype.generateStatement=function(e,n){var r,i;return r=this[e.type](e,n),b.comment&&(r=ke(e,r)),i=Ce(r).toString(),e.type===t.Program&&!v&&m===``&&i.charAt(i.length-1)===`
1050
- `&&(r=S?Ce(r).replaceRight(/\s+$/,``):i.replace(/\s+$/,``)),Ce(r,e)};function Ie(e){var t;if(t=new Ne,O(e))return t.generateStatement(e,F);if(D(e))return t.generateExpression(e,n.Sequence,P);throw Error(`Unknown node type: `+e.type)}function Le(t,n){var r=de(),a,o;return n==null?(n=r,c=n.format.indent.style,s=fe(c,n.format.indent.base)):(typeof n.indent==`string`&&(r.format.indent.style=n.indent),typeof n.base==`number`&&(r.format.indent.base=n.base),n=he(r,n),c=n.format.indent.style,s=typeof n.base==`string`?n.base:fe(c,n.format.indent.base)),l=n.format.json,u=n.format.renumber,d=l?!1:n.format.hexadecimal,f=l?`double`:n.format.quotes,p=n.format.escapeless,m=n.format.newline,h=n.format.space,n.format.compact&&(m=h=c=s=``),g=n.format.parentheses,_=n.format.semicolons,v=n.format.safeConcatenation,y=n.directive,x=l?null:n.parse,S=n.sourceMap,C=n.sourceCode,w=n.format.preserveBlankLines&&C!==null,b=n,S&&(i=e.browser?global.sourceMap.SourceNode:nq().SourceNode),a=Ie(t),S?(o=a.toStringWithSourceMap({file:n.file,sourceRoot:n.sourceMapRoot}),n.sourceContent&&o.map.setSourceContent(n.sourceMap,n.sourceContent),n.sourceMapWithCode?o:o.map.toString()):(o={code:a.toString(),map:null},n.sourceMapWithCode?o:o.code)}T={indent:{style:``,base:0},renumber:!0,hexadecimal:!0,quotes:`auto`,escapeless:!0,compact:!0,parentheses:!1,semicolons:!1},E=de().format,e.version=rq().version,e.generate=Le,e.attachComments=a.attachComments,e.Precedence=he({},n),e.browser=!1,e.FORMAT_MINIFY=T,e.FORMAT_DEFAULTS=E})()}}),aq=iG({"../../../node_modules/acorn/dist/acorn.js"(e,t){(function(n,r){typeof e==`object`&&typeof t<`u`?r(e):typeof define==`function`&&define.amd?define([`exports`],r):(n||=self,r(n.acorn={}))})(e,(function(e){var t={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`},n=`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`,r={5:n,"5module":n+` export import`,6:n+` const class extends export import super`},i=/^in(stanceof)?$/,a=`ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ`,o=`‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_`,s=RegExp(`[`+a+`]`),c=RegExp(`[`+a+o+`]`);a=o=null;var l=[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],u=[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 d(e,t){for(var n=65536,r=0;r<t.length;r+=2){if(n+=t[r],n>e)return!1;if(n+=t[r+1],n>=e)return!0}}function f(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&s.test(String.fromCharCode(e)):t===!1?!1:d(e,l)}function p(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&c.test(String.fromCharCode(e)):t===!1?!1:d(e,l)||d(e,u)}var m=function(e,t){t===void 0&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function h(e,t){return new m(e,{beforeExpr:!0,binop:t})}var g={beforeExpr:!0},_={startsExpr:!0},v={};function y(e,t){return t===void 0&&(t={}),t.keyword=e,v[e]=new m(e,t)}var b={num:new m(`num`,_),regexp:new m(`regexp`,_),string:new m(`string`,_),name:new m(`name`,_),eof:new m(`eof`),bracketL:new m(`[`,{beforeExpr:!0,startsExpr:!0}),bracketR:new m(`]`),braceL:new m(`{`,{beforeExpr:!0,startsExpr:!0}),braceR:new m(`}`),parenL:new m(`(`,{beforeExpr:!0,startsExpr:!0}),parenR:new m(`)`),comma:new m(`,`,g),semi:new m(`;`,g),colon:new m(`:`,g),dot:new m(`.`),question:new m(`?`,g),questionDot:new m(`?.`),arrow:new m(`=>`,g),template:new m(`template`),invalidTemplate:new m(`invalidTemplate`),ellipsis:new m(`...`,g),backQuote:new m("`",_),dollarBraceL:new m("${",{beforeExpr:!0,startsExpr:!0}),eq:new m(`=`,{beforeExpr:!0,isAssign:!0}),assign:new m(`_=`,{beforeExpr:!0,isAssign:!0}),incDec:new m(`++/--`,{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new m(`!/~`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:h(`||`,1),logicalAND:h(`&&`,2),bitwiseOR:h(`|`,3),bitwiseXOR:h(`^`,4),bitwiseAND:h(`&`,5),equality:h(`==/!=/===/!==`,6),relational:h(`</>/<=/>=`,7),bitShift:h(`<</>>/>>>`,8),plusMin:new m(`+/-`,{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:h(`%`,10),star:h(`*`,10),slash:h(`/`,10),starstar:new m(`**`,{beforeExpr:!0}),coalesce:h(`??`,1),_break:y(`break`),_case:y(`case`,g),_catch:y(`catch`),_continue:y(`continue`),_debugger:y(`debugger`),_default:y(`default`,g),_do:y(`do`,{isLoop:!0,beforeExpr:!0}),_else:y(`else`,g),_finally:y(`finally`),_for:y(`for`,{isLoop:!0}),_function:y(`function`,_),_if:y(`if`),_return:y(`return`,g),_switch:y(`switch`),_throw:y(`throw`,g),_try:y(`try`),_var:y(`var`),_const:y(`const`),_while:y(`while`,{isLoop:!0}),_with:y(`with`),_new:y(`new`,{beforeExpr:!0,startsExpr:!0}),_this:y(`this`,_),_super:y(`super`,_),_class:y(`class`,_),_extends:y(`extends`,g),_export:y(`export`),_import:y(`import`,_),_null:y(`null`,_),_true:y(`true`,_),_false:y(`false`,_),_in:y(`in`,{beforeExpr:!0,binop:7}),_instanceof:y(`instanceof`,{beforeExpr:!0,binop:7}),_typeof:y(`typeof`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:y(`void`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:y(`delete`,{beforeExpr:!0,prefix:!0,startsExpr:!0})},x=/\r\n?|\n|\u2028|\u2029/,S=new RegExp(x.source,`g`);function C(e,t){return e===10||e===13||!t&&(e===8232||e===8233)}var w=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,T=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,E=Object.prototype,D=E.hasOwnProperty,O=E.toString;function k(e,t){return D.call(e,t)}var A=Array.isArray||(function(e){return O.call(e)===`[object Array]`});function j(e){return RegExp(`^(?:`+e.replace(/ /g,`|`)+`)$`)}var M=function(e,t){this.line=e,this.column=t};M.prototype.offset=function(e){return new M(this.line,this.column+e)};var ee=function(e,t,n){this.start=t,this.end=n,e.sourceFile!==null&&(this.source=e.sourceFile)};function N(e,t){for(var n=1,r=0;;){S.lastIndex=r;var i=S.exec(e);if(i&&i.index<t)++n,r=i.index+i[0].length;else return new M(n,t-r)}}var te={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 ne(e){var t={};for(var n in te)t[n]=e&&k(e,n)?e[n]:te[n];if(t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved??=t.ecmaVersion<5,A(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}return A(t.onComment)&&(t.onComment=re(t,t.onComment)),t}function re(e,t){return function(n,r,i,a,o,s){var c={type:n?`Block`:`Line`,value:r,start:i,end:a};e.locations&&(c.loc=new ee(this,o,s)),e.ranges&&(c.range=[i,a]),t.push(c)}}var P=1,ie=2,ae=P|ie,oe=4,F=8,se=16,ce=32,le=64,ue=128;function de(e,t){return ie|(e?oe:0)|(t?F:0)}var fe=0,pe=1,me=2,I=3,he=4,ge=5,_e=function(e,n,i){this.options=e=ne(e),this.sourceFile=e.sourceFile,this.keywords=j(r[e.ecmaVersion>=6?6:e.sourceType===`module`?`5module`:5]);var a=``;if(e.allowReserved!==!0){for(var o=e.ecmaVersion;!(a=t[o]);o--);e.sourceType===`module`&&(a+=` await`)}this.reservedWords=j(a);var s=(a?a+` `:``)+t.strict;this.reservedWordsStrict=j(s),this.reservedWordsStrictBind=j(s+` `+t.strictBind),this.input=String(n),this.containsEsc=!1,i?(this.pos=i,this.lineStart=this.input.lastIndexOf(`
1051
- `,i-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(x).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=b.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=e.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&&e.allowHashBang&&this.input.slice(0,2)===`#!`&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(P),this.regexpState=null},ve={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0}};_e.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},ve.inFunction.get=function(){return(this.currentVarScope().flags&ie)>0},ve.inGenerator.get=function(){return(this.currentVarScope().flags&F)>0},ve.inAsync.get=function(){return(this.currentVarScope().flags&oe)>0},ve.allowSuper.get=function(){return(this.currentThisScope().flags&le)>0},ve.allowDirectSuper.get=function(){return(this.currentThisScope().flags&ue)>0},ve.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},_e.prototype.inNonArrowFunction=function(){return(this.currentThisScope().flags&ie)>0},_e.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=this,r=0;r<e.length;r++)n=e[r](n);return n},_e.parse=function(e,t){return new this(t,e).parse()},_e.parseExpressionAt=function(e,t,n){var r=new this(n,e,t);return r.nextToken(),r.parseExpression()},_e.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(_e.prototype,ve);var ye=_e.prototype,be=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;ye.strictDirective=function(e){for(;;){T.lastIndex=e,e+=T.exec(this.input)[0].length;var t=be.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])===`use strict`){T.lastIndex=e+t[0].length;var n=T.exec(this.input),r=n.index+n[0].length,i=this.input.charAt(r);return i===`;`||i===`}`||x.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||i===`!`&&this.input.charAt(r+1)===`=`)}e+=t[0].length,T.lastIndex=e,e+=T.exec(this.input)[0].length,this.input[e]===`;`&&e++}},ye.eat=function(e){return this.type===e?(this.next(),!0):!1},ye.isContextual=function(e){return this.type===b.name&&this.value===e&&!this.containsEsc},ye.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1},ye.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},ye.canInsertSemicolon=function(){return this.type===b.eof||this.type===b.braceR||x.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(b.semi)&&!this.insertSemicolon()&&this.unexpected()},ye.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},ye.expect=function(e){this.eat(e)||this.unexpected()},ye.unexpected=function(e){this.raise(e??this.start,`Unexpected token`)};function xe(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}ye.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,`Comma is not permitted after the rest element`);var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,`Parenthesized pattern`)}},ye.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,r=e.doubleProto;if(!t)return n>=0||r>=0;n>=0&&this.raise(n,`Shorthand property assignments are valid only in destructuring patterns`),r>=0&&this.raiseRecoverable(r,`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(e){return e.type===`ParenthesizedExpression`?this.isSimpleAssignTarget(e.expression):e.type===`Identifier`||e.type===`MemberExpression`};var L=_e.prototype;L.parseTopLevel=function(e){var t={};for(e.body||=[];this.type!==b.eof;){var n=this.parseStatement(null,!0,t);e.body.push(n)}if(this.inModule)for(var r=0,i=Object.keys(this.undefinedExports);r<i.length;r+=1){var a=i[r];this.raiseRecoverable(this.undefinedExports[a].start,`Export '`+a+`' is not defined`)}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,`Program`)};var Se={kind:`loop`},Ce={kind:`switch`};L.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual(`let`))return!1;T.lastIndex=this.pos;var t=T.exec(this.input),n=this.pos+t[0].length,r=this.input.charCodeAt(n);if(r===91)return!0;if(e)return!1;if(r===123)return!0;if(f(r,!0)){for(var a=n+1;p(this.input.charCodeAt(a),!0);)++a;var o=this.input.slice(n,a);if(!i.test(o))return!0}return!1},L.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual(`async`))return!1;T.lastIndex=this.pos;var e=T.exec(this.input),t=this.pos+e[0].length;return!x.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)===`function`&&(t+8===this.input.length||!p(this.input.charAt(t+8)))},L.parseStatement=function(e,t,n){var r=this.type,i=this.startNode(),a;switch(this.isLet(e)&&(r=b._var,a=`let`),r){case b._break:case b._continue:return this.parseBreakContinueStatement(i,r.keyword);case b._debugger:return this.parseDebuggerStatement(i);case b._do:return this.parseDoStatement(i);case b._for:return this.parseForStatement(i);case b._function:return e&&(this.strict||e!==`if`&&e!==`label`)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(i,!1,!e);case b._class:return e&&this.unexpected(),this.parseClass(i,!0);case b._if:return this.parseIfStatement(i);case b._return:return this.parseReturnStatement(i);case b._switch:return this.parseSwitchStatement(i);case b._throw:return this.parseThrowStatement(i);case b._try:return this.parseTryStatement(i);case b._const:case b._var:return a||=this.value,e&&a!==`var`&&this.unexpected(),this.parseVarStatement(i,a);case b._while:return this.parseWhileStatement(i);case b._with:return this.parseWithStatement(i);case b.braceL:return this.parseBlock(!0,i);case b.semi:return this.parseEmptyStatement(i);case b._export:case b._import:if(this.options.ecmaVersion>10&&r===b._import){T.lastIndex=this.pos;var o=T.exec(this.input),s=this.pos+o[0].length,c=this.input.charCodeAt(s);if(c===40||c===46)return this.parseExpressionStatement(i,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||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'`)),r===b._import?this.parseImport(i):this.parseExport(i,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(i,!0,!e);var l=this.value,u=this.parseExpression();return r===b.name&&u.type===`Identifier`&&this.eat(b.colon)?this.parseLabeledStatement(i,l,u,e):this.parseExpressionStatement(i,u)}},L.parseBreakContinueStatement=function(e,t){var n=t===`break`;this.next(),this.eat(b.semi)||this.insertSemicolon()?e.label=null:this.type===b.name?(e.label=this.parseIdent(),this.semicolon()):this.unexpected();for(var r=0;r<this.labels.length;++r){var i=this.labels[r];if((e.label==null||i.name===e.label.name)&&(i.kind!=null&&(n||i.kind===`loop`)||e.label&&n))break}return r===this.labels.length&&this.raise(e.start,`Unsyntactic `+t),this.finishNode(e,n?`BreakStatement`:`ContinueStatement`)},L.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,`DebuggerStatement`)},L.parseDoStatement=function(e){return this.next(),this.labels.push(Se),e.body=this.parseStatement(`do`),this.labels.pop(),this.expect(b._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(b.semi):this.semicolon(),this.finishNode(e,`DoWhileStatement`)},L.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual(`await`)?this.lastTokStart:-1;if(this.labels.push(Se),this.enterScope(0),this.expect(b.parenL),this.type===b.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===b._var||this.type===b._const||n){var r=this.startNode(),i=n?`let`:this.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,`VariableDeclaration`),(this.type===b._in||this.options.ecmaVersion>=6&&this.isContextual(`of`))&&r.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===b._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,r)):(t>-1&&this.unexpected(t),this.parseFor(e,r))}var a=new xe,o=this.parseExpression(!0,a);return this.type===b._in||this.options.ecmaVersion>=6&&this.isContextual(`of`)?(this.options.ecmaVersion>=9&&(this.type===b._in?t>-1&&this.unexpected(t):e.await=t>-1),this.toAssignable(o,!1,a),this.checkLVal(o),this.parseForIn(e,o)):(this.checkExpressionErrors(a,!0),t>-1&&this.unexpected(t),this.parseFor(e,o))},L.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,R|(n?0:Te),!1,t)},L.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement(`if`),e.alternate=this.eat(b._else)?this.parseStatement(`if`):null,this.finishNode(e,`IfStatement`)},L.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,`'return' outside of function`),this.next(),this.eat(b.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,`ReturnStatement`)},L.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(b.braceL),this.labels.push(Ce),this.enterScope(0);for(var t,n=!1;this.type!==b.braceR;)if(this.type===b._case||this.type===b._default){var r=this.type===b._case;t&&this.finishNode(t,`SwitchCase`),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,`Multiple default clauses`),n=!0,t.test=null),this.expect(b.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,`SwitchCase`),this.next(),this.labels.pop(),this.finishNode(e,`SwitchStatement`)},L.parseThrowStatement=function(e){return this.next(),x.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,`Illegal newline after throw`),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,`ThrowStatement`)};var we=[];L.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===b._catch){var t=this.startNode();if(this.next(),this.eat(b.parenL)){t.param=this.parseBindingAtom();var n=t.param.type===`Identifier`;this.enterScope(n?ce:0),this.checkLVal(t.param,n?he:me),this.expect(b.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0);t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,`CatchClause`)}return e.finalizer=this.eat(b._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,`Missing catch or finally clause`),this.finishNode(e,`TryStatement`)},L.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,`VariableDeclaration`)},L.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Se),e.body=this.parseStatement(`while`),this.labels.pop(),this.finishNode(e,`WhileStatement`)},L.parseWithStatement=function(e){return this.strict&&this.raise(this.start,`'with' in strict mode`),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement(`with`),this.finishNode(e,`WithStatement`)},L.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,`EmptyStatement`)},L.parseLabeledStatement=function(e,t,n,r){for(var i=0,a=this.labels;i<a.length;i+=1)a[i].name===t&&this.raise(n.start,`Label '`+t+`' is already declared`);for(var o=this.type.isLoop?`loop`:this.type===b._switch?`switch`:null,s=this.labels.length-1;s>=0;s--){var c=this.labels[s];if(c.statementStart===e.start)c.statementStart=this.start,c.kind=o;else break}return this.labels.push({name:t,kind:o,statementStart:this.start}),e.body=this.parseStatement(r?r.indexOf(`label`)===-1?r+`label`:r:`label`),this.labels.pop(),e.label=n,this.finishNode(e,`LabeledStatement`)},L.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,`ExpressionStatement`)},L.parseBlock=function(e,t,n){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(b.braceL),e&&this.enterScope(0);this.type!==b.braceR;){var r=this.parseStatement(null);t.body.push(r)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,`BlockStatement`)},L.parseFor=function(e,t){return e.init=t,this.expect(b.semi),e.test=this.type===b.semi?null:this.parseExpression(),this.expect(b.semi),e.update=this.type===b.parenR?null:this.parseExpression(),this.expect(b.parenR),e.body=this.parseStatement(`for`),this.exitScope(),this.labels.pop(),this.finishNode(e,`ForStatement`)},L.parseForIn=function(e,t){var n=this.type===b._in;return this.next(),t.type===`VariableDeclaration`&&t.declarations[0].init!=null&&(!n||this.options.ecmaVersion<8||this.strict||t.kind!==`var`||t.declarations[0].id.type!==`Identifier`)?this.raise(t.start,(n?`for-in`:`for-of`)+` loop variable declaration may not have an initializer`):t.type===`AssignmentPattern`&&this.raise(t.start,`Invalid left-hand side in for-loop`),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(b.parenR),e.body=this.parseStatement(`for`),this.exitScope(),this.labels.pop(),this.finishNode(e,n?`ForInStatement`:`ForOfStatement`)},L.parseVar=function(e,t,n){for(e.declarations=[],e.kind=n;;){var r=this.startNode();if(this.parseVarId(r,n),this.eat(b.eq)?r.init=this.parseMaybeAssign(t):n===`const`&&!(this.type===b._in||this.options.ecmaVersion>=6&&this.isContextual(`of`))?this.unexpected():r.id.type!==`Identifier`&&!(t&&(this.type===b._in||this.isContextual(`of`)))?this.raise(this.lastTokEnd,`Complex binding patterns require an initialization value`):r.init=null,e.declarations.push(this.finishNode(r,`VariableDeclarator`)),!this.eat(b.comma))break}return e},L.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLVal(e.id,t===`var`?pe:me,!1)};var R=1,Te=2,Ee=4;L.parseFunction=function(e,t,n,r){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===b.star&&t&Te&&this.unexpected(),e.generator=this.eat(b.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&R&&(e.id=t&Ee&&this.type!==b.name?null:this.parseIdent(),e.id&&!(t&Te)&&this.checkLVal(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?pe:me:I));var i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(de(e.async,e.generator)),t&R||(e.id=this.type===b.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,t&R?`FunctionDeclaration`:`FunctionExpression`)},L.parseFunctionParams=function(e){this.expect(b.parenL),e.params=this.parseBindingList(b.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},L.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.startNode(),i=!1;for(r.body=[],this.expect(b.braceL);this.type!==b.braceR;){var a=this.parseClassElement(e.superClass!==null);a&&(r.body.push(a),a.type===`MethodDefinition`&&a.kind===`constructor`&&(i&&this.raise(a.start,`Duplicate constructor in the same class`),i=!0))}return this.strict=n,this.next(),e.body=this.finishNode(r,`ClassBody`),this.finishNode(e,t?`ClassDeclaration`:`ClassExpression`)},L.parseClassElement=function(e){var t=this;if(this.eat(b.semi))return null;var n=this.startNode(),r=function(e,r){r===void 0&&(r=!1);var i=t.start,a=t.startLoc;return t.eatContextual(e)?t.type!==b.parenL&&(!r||!t.canInsertSemicolon())?!0:(n.key&&t.unexpected(),n.computed=!1,n.key=t.startNodeAt(i,a),n.key.name=e,t.finishNode(n.key,`Identifier`),!1):!1};n.kind=`method`,n.static=r(`static`);var i=this.eat(b.star),a=!1;i||(this.options.ecmaVersion>=8&&r(`async`,!0)?(a=!0,i=this.options.ecmaVersion>=9&&this.eat(b.star)):r(`get`)?n.kind=`get`:r(`set`)&&(n.kind=`set`)),n.key||this.parsePropertyName(n);var o=n.key,s=!1;return!n.computed&&!n.static&&(o.type===`Identifier`&&o.name===`constructor`||o.type===`Literal`&&o.value===`constructor`)?(n.kind!==`method`&&this.raise(o.start,`Constructor can't have get/set modifier`),i&&this.raise(o.start,`Constructor can't be a generator`),a&&this.raise(o.start,`Constructor can't be an async method`),n.kind=`constructor`,s=e):n.static&&o.type===`Identifier`&&o.name===`prototype`&&this.raise(o.start,`Classes may not have a static property named prototype`),this.parseClassMethod(n,i,a,s),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},L.parseClassMethod=function(e,t,n,r){return e.value=this.parseMethod(t,n,r),this.finishNode(e,`MethodDefinition`)},L.parseClassId=function(e,t){this.type===b.name?(e.id=this.parseIdent(),t&&this.checkLVal(e.id,me,!1)):(t===!0&&this.unexpected(),e.id=null)},L.parseClassSuper=function(e){e.superClass=this.eat(b._extends)?this.parseExprSubscripts():null},L.parseExport=function(e,t){if(this.next(),this.eat(b.star))return this.options.ecmaVersion>=11&&(this.eatContextual(`as`)?(e.exported=this.parseIdent(!0),this.checkExport(t,e.exported.name,this.lastTokStart)):e.exported=null),this.expectContextual(`from`),this.type!==b.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,`ExportAllDeclaration`);if(this.eat(b._default)){this.checkExport(t,`default`,this.lastTokStart);var n;if(this.type===b._function||(n=this.isAsyncFunction())){var r=this.startNode();this.next(),n&&this.next(),e.declaration=this.parseFunction(r,R|Ee,!1,n)}else if(this.type===b._class){var i=this.startNode();e.declaration=this.parseClass(i,`nullableID`)}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,`ExportDefaultDeclaration`)}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(null),e.declaration.type===`VariableDeclaration`?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id.name,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual(`from`))this.type!==b.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var a=0,o=e.specifiers;a<o.length;a+=1){var s=o[a];this.checkUnreserved(s.local),this.checkLocalExport(s.local)}e.source=null}this.semicolon()}return this.finishNode(e,`ExportNamedDeclaration`)},L.checkExport=function(e,t,n){e&&(k(e,t)&&this.raiseRecoverable(n,`Duplicate export '`+t+`'`),e[t]=!0)},L.checkPatternExport=function(e,t){var n=t.type;if(n===`Identifier`)this.checkExport(e,t.name,t.start);else if(n===`ObjectPattern`)for(var r=0,i=t.properties;r<i.length;r+=1){var a=i[r];this.checkPatternExport(e,a)}else if(n===`ArrayPattern`)for(var o=0,s=t.elements;o<s.length;o+=1){var c=s[o];c&&this.checkPatternExport(e,c)}else n===`Property`?this.checkPatternExport(e,t.value):n===`AssignmentPattern`?this.checkPatternExport(e,t.left):n===`RestElement`?this.checkPatternExport(e,t.argument):n===`ParenthesizedExpression`&&this.checkPatternExport(e,t.expression)},L.checkVariableExport=function(e,t){if(e)for(var n=0,r=t;n<r.length;n+=1){var i=r[n];this.checkPatternExport(e,i.id)}},L.shouldParseExportStatement=function(){return this.type.keyword===`var`||this.type.keyword===`const`||this.type.keyword===`class`||this.type.keyword===`function`||this.isLet()||this.isAsyncFunction()},L.parseExportSpecifiers=function(e){var t=[],n=!0;for(this.expect(b.braceL);!this.eat(b.braceR);){if(n)n=!1;else if(this.expect(b.comma),this.afterTrailingComma(b.braceR))break;var r=this.startNode();r.local=this.parseIdent(!0),r.exported=this.eatContextual(`as`)?this.parseIdent(!0):r.local,this.checkExport(e,r.exported.name,r.exported.start),t.push(this.finishNode(r,`ExportSpecifier`))}return t},L.parseImport=function(e){return this.next(),this.type===b.string?(e.specifiers=we,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual(`from`),e.source=this.type===b.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,`ImportDeclaration`)},L.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===b.name){var n=this.startNode();if(n.local=this.parseIdent(),this.checkLVal(n.local,me),e.push(this.finishNode(n,`ImportDefaultSpecifier`)),!this.eat(b.comma))return e}if(this.type===b.star){var r=this.startNode();return this.next(),this.expectContextual(`as`),r.local=this.parseIdent(),this.checkLVal(r.local,me),e.push(this.finishNode(r,`ImportNamespaceSpecifier`)),e}for(this.expect(b.braceL);!this.eat(b.braceR);){if(t)t=!1;else if(this.expect(b.comma),this.afterTrailingComma(b.braceR))break;var i=this.startNode();i.imported=this.parseIdent(!0),this.eatContextual(`as`)?i.local=this.parseIdent():(this.checkUnreserved(i.imported),i.local=i.imported),this.checkLVal(i.local,me),e.push(this.finishNode(i,`ImportSpecifier`))}return e},L.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},L.isDirectiveCandidate=function(e){return e.type===`ExpressionStatement`&&e.expression.type===`Literal`&&typeof e.expression.value==`string`&&(this.input[e.start]===`"`||this.input[e.start]===`'`)};var De=_e.prototype;De.toAssignable=function(e,t,n){if(this.options.ecmaVersion>=6&&e)switch(e.type){case`Identifier`:this.inAsync&&e.name===`await`&&this.raise(e.start,`Cannot use 'await' as identifier inside an async function`);break;case`ObjectPattern`:case`ArrayPattern`:case`RestElement`:break;case`ObjectExpression`:e.type=`ObjectPattern`,n&&this.checkPatternErrors(n,!0);for(var r=0,i=e.properties;r<i.length;r+=1){var a=i[r];this.toAssignable(a,t),a.type===`RestElement`&&(a.argument.type===`ArrayPattern`||a.argument.type===`ObjectPattern`)&&this.raise(a.argument.start,`Unexpected token`)}break;case`Property`:e.kind!==`init`&&this.raise(e.key.start,`Object pattern can't contain getter or setter`),this.toAssignable(e.value,t);break;case`ArrayExpression`:e.type=`ArrayPattern`,n&&this.checkPatternErrors(n,!0),this.toAssignableList(e.elements,t);break;case`SpreadElement`:e.type=`RestElement`,this.toAssignable(e.argument,t),e.argument.type===`AssignmentPattern`&&this.raise(e.argument.start,`Rest elements cannot have a default value`);break;case`AssignmentExpression`:e.operator!==`=`&&this.raise(e.left.end,`Only '=' operator can be used for specifying default value.`),e.type=`AssignmentPattern`,delete e.operator,this.toAssignable(e.left,t);case`AssignmentPattern`:break;case`ParenthesizedExpression`:this.toAssignable(e.expression,t,n);break;case`ChainExpression`:this.raiseRecoverable(e.start,`Optional chaining cannot appear in left-hand side`);break;case`MemberExpression`:if(!t)break;default:this.raise(e.start,`Assigning to rvalue`)}else n&&this.checkPatternErrors(n,!0);return e},De.toAssignableList=function(e,t){for(var n=e.length,r=0;r<n;r++){var i=e[r];i&&this.toAssignable(i,t)}if(n){var a=e[n-1];this.options.ecmaVersion===6&&t&&a&&a.type===`RestElement`&&a.argument.type!==`Identifier`&&this.unexpected(a.argument.start)}return e},De.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,`SpreadElement`)},De.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==b.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,`RestElement`)},De.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case b.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(b.bracketR,!0,!0),this.finishNode(e,`ArrayPattern`);case b.braceL:return this.parseObj(!0)}return this.parseIdent()},De.parseBindingList=function(e,t,n){for(var r=[],i=!0;!this.eat(e);)if(i?i=!1:this.expect(b.comma),t&&this.type===b.comma)r.push(null);else{if(n&&this.afterTrailingComma(e))break;if(this.type===b.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),r.push(a),this.type===b.comma&&this.raise(this.start,`Comma is not permitted after the rest element`),this.expect(e);break}else{var o=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(o),r.push(o)}}return r},De.parseBindingListItem=function(e){return e},De.parseMaybeDefault=function(e,t,n){if(n||=this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(b.eq))return n;var r=this.startNodeAt(e,t);return r.left=n,r.right=this.parseMaybeAssign(),this.finishNode(r,`AssignmentPattern`)},De.checkLVal=function(e,t,n){switch(t===void 0&&(t=fe),e.type){case`Identifier`:t===me&&e.name===`let`&&this.raiseRecoverable(e.start,`let is disallowed as a lexically bound name`),this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(t?`Binding `:`Assigning to `)+e.name+` in strict mode`),n&&(k(n,e.name)&&this.raiseRecoverable(e.start,`Argument name clash`),n[e.name]=!0),t!==fe&&t!==ge&&this.declareName(e.name,t,e.start);break;case`ChainExpression`:this.raiseRecoverable(e.start,`Optional chaining cannot appear in left-hand side`);break;case`MemberExpression`:t&&this.raiseRecoverable(e.start,`Binding member expression`);break;case`ObjectPattern`:for(var r=0,i=e.properties;r<i.length;r+=1){var a=i[r];this.checkLVal(a,t,n)}break;case`Property`:this.checkLVal(e.value,t,n);break;case`ArrayPattern`:for(var o=0,s=e.elements;o<s.length;o+=1){var c=s[o];c&&this.checkLVal(c,t,n)}break;case`AssignmentPattern`:this.checkLVal(e.left,t,n);break;case`RestElement`:this.checkLVal(e.argument,t,n);break;case`ParenthesizedExpression`:this.checkLVal(e.expression,t,n);break;default:this.raise(e.start,(t?`Binding`:`Assigning to`)+` rvalue`)}};var z=_e.prototype;z.checkPropClash=function(e,t,n){if(!(this.options.ecmaVersion>=9&&e.type===`SpreadElement`)&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var r=e.key,i;switch(r.type){case`Identifier`:i=r.name;break;case`Literal`:i=String(r.value);break;default:return}var a=e.kind;if(this.options.ecmaVersion>=6){i===`__proto__`&&a===`init`&&(t.proto&&(n?n.doubleProto<0&&(n.doubleProto=r.start):this.raiseRecoverable(r.start,`Redefinition of __proto__ property`)),t.proto=!0);return}i=`$`+i;var o=t[i];o?(a===`init`?this.strict&&o.init||o.get||o.set:o.init||o[a])&&this.raiseRecoverable(r.start,`Redefinition of property`):o=t[i]={init:!1,get:!1,set:!1},o[a]=!0}},z.parseExpression=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===b.comma){var a=this.startNodeAt(n,r);for(a.expressions=[i];this.eat(b.comma);)a.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(a,`SequenceExpression`)}return i},z.parseMaybeAssign=function(e,t,n){if(this.isContextual(`yield`)){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var r=!1,i=-1,a=-1;t?(i=t.parenthesizedAssign,a=t.trailingComma,t.parenthesizedAssign=t.trailingComma=-1):(t=new xe,r=!0);var o=this.start,s=this.startLoc;(this.type===b.parenL||this.type===b.name)&&(this.potentialArrowAt=this.start);var c=this.parseMaybeConditional(e,t);if(n&&(c=n.call(this,c,o,s)),this.type.isAssign){var l=this.startNodeAt(o,s);return l.operator=this.value,l.left=this.type===b.eq?this.toAssignable(c,!1,t):c,r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=l.left.start&&(t.shorthandAssign=-1),this.checkLVal(c),this.next(),l.right=this.parseMaybeAssign(e),this.finishNode(l,`AssignmentExpression`)}else r&&this.checkExpressionErrors(t,!0);return i>-1&&(t.parenthesizedAssign=i),a>-1&&(t.trailingComma=a),c},z.parseMaybeConditional=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(b.question)){var a=this.startNodeAt(n,r);return a.test=i,a.consequent=this.parseMaybeAssign(),this.expect(b.colon),a.alternate=this.parseMaybeAssign(e),this.finishNode(a,`ConditionalExpression`)}return i},z.parseExprOps=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeUnary(t,!1);return this.checkExpressionErrors(t)||i.start===n&&i.type===`ArrowFunctionExpression`?i:this.parseExprOp(i,n,r,-1,e)},z.parseExprOp=function(e,t,n,r,i){var a=this.type.binop;if(a!=null&&(!i||this.type!==b._in)&&a>r){var o=this.type===b.logicalOR||this.type===b.logicalAND,s=this.type===b.coalesce;s&&(a=b.logicalAND.binop);var c=this.value;this.next();var l=this.start,u=this.startLoc,d=this.parseExprOp(this.parseMaybeUnary(null,!1),l,u,a,i),f=this.buildBinary(t,n,e,d,c,o||s);return(o&&this.type===b.coalesce||s&&(this.type===b.logicalOR||this.type===b.logicalAND))&&this.raiseRecoverable(this.start,`Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses`),this.parseExprOp(f,t,n,r,i)}return e},z.buildBinary=function(e,t,n,r,i,a){var o=this.startNodeAt(e,t);return o.left=n,o.operator=i,o.right=r,this.finishNode(o,a?`LogicalExpression`:`BinaryExpression`)},z.parseMaybeUnary=function(e,t){var n=this.start,r=this.startLoc,i;if(this.isContextual(`await`)&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction))i=this.parseAwait(),t=!0;else if(this.type.prefix){var a=this.startNode(),o=this.type===b.incDec;a.operator=this.value,a.prefix=!0,this.next(),a.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),o?this.checkLVal(a.argument):this.strict&&a.operator===`delete`&&a.argument.type===`Identifier`?this.raiseRecoverable(a.start,`Deleting local variable in strict mode`):t=!0,i=this.finishNode(a,o?`UpdateExpression`:`UnaryExpression`)}else{if(i=this.parseExprSubscripts(e),this.checkExpressionErrors(e))return i;for(;this.type.postfix&&!this.canInsertSemicolon();){var s=this.startNodeAt(n,r);s.operator=this.value,s.prefix=!1,s.argument=i,this.checkLVal(i),this.next(),i=this.finishNode(s,`UpdateExpression`)}}return!t&&this.eat(b.starstar)?this.buildBinary(n,r,i,this.parseMaybeUnary(null,!1),`**`,!1):i},z.parseExprSubscripts=function(e){var t=this.start,n=this.startLoc,r=this.parseExprAtom(e);if(r.type===`ArrowFunctionExpression`&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==`)`)return r;var i=this.parseSubscripts(r,t,n);return e&&i.type===`MemberExpression`&&(e.parenthesizedAssign>=i.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=i.start&&(e.parenthesizedBind=-1)),i},z.parseSubscripts=function(e,t,n,r){for(var i=this.options.ecmaVersion>=8&&e.type===`Identifier`&&e.name===`async`&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,a=!1;;){var o=this.parseSubscript(e,t,n,r,i,a);if(o.optional&&(a=!0),o===e||o.type===`ArrowFunctionExpression`){if(a){var s=this.startNodeAt(t,n);s.expression=o,o=this.finishNode(s,`ChainExpression`)}return o}e=o}},z.parseSubscript=function(e,t,n,r,i,a){var o=this.options.ecmaVersion>=11,s=o&&this.eat(b.questionDot);r&&s&&this.raise(this.lastTokStart,`Optional chaining cannot appear in the callee of new expressions`);var c=this.eat(b.bracketL);if(c||s&&this.type!==b.parenL&&this.type!==b.backQuote||this.eat(b.dot)){var l=this.startNodeAt(t,n);l.object=e,l.property=c?this.parseExpression():this.parseIdent(this.options.allowReserved!==`never`),l.computed=!!c,c&&this.expect(b.bracketR),o&&(l.optional=s),e=this.finishNode(l,`MemberExpression`)}else if(!r&&this.eat(b.parenL)){var u=new xe,d=this.yieldPos,f=this.awaitPos,p=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var m=this.parseExprList(b.parenR,this.options.ecmaVersion>=8,!1,u);if(i&&!s&&!this.canInsertSemicolon()&&this.eat(b.arrow))return this.checkPatternErrors(u,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,`Cannot use 'await' as identifier inside an async function`),this.yieldPos=d,this.awaitPos=f,this.awaitIdentPos=p,this.parseArrowExpression(this.startNodeAt(t,n),m,!0);this.checkExpressionErrors(u,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=f||this.awaitPos,this.awaitIdentPos=p||this.awaitIdentPos;var h=this.startNodeAt(t,n);h.callee=e,h.arguments=m,o&&(h.optional=s),e=this.finishNode(h,`CallExpression`)}else if(this.type===b.backQuote){(s||a)&&this.raise(this.start,`Optional chaining cannot appear in the tag of tagged template expressions`);var g=this.startNodeAt(t,n);g.tag=e,g.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(g,`TaggedTemplateExpression`)}return e},z.parseExprAtom=function(e){this.type===b.slash&&this.readRegexp();var t,n=this.potentialArrowAt===this.start;switch(this.type){case b._super:return this.allowSuper||this.raise(this.start,`'super' keyword outside a method`),t=this.startNode(),this.next(),this.type===b.parenL&&!this.allowDirectSuper&&this.raise(t.start,`super() call outside constructor of a subclass`),this.type!==b.dot&&this.type!==b.bracketL&&this.type!==b.parenL&&this.unexpected(),this.finishNode(t,`Super`);case b._this:return t=this.startNode(),this.next(),this.finishNode(t,`ThisExpression`);case b.name:var r=this.start,i=this.startLoc,a=this.containsEsc,o=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!a&&o.name===`async`&&!this.canInsertSemicolon()&&this.eat(b._function))return this.parseFunction(this.startNodeAt(r,i),0,!1,!0);if(n&&!this.canInsertSemicolon()){if(this.eat(b.arrow))return this.parseArrowExpression(this.startNodeAt(r,i),[o],!1);if(this.options.ecmaVersion>=8&&o.name===`async`&&this.type===b.name&&!a)return o=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(b.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(r,i),[o],!0)}return o;case b.regexp:var s=this.value;return t=this.parseLiteral(s.value),t.regex={pattern:s.pattern,flags:s.flags},t;case b.num:case b.string:return this.parseLiteral(this.value);case b._null:case b._true:case b._false:return t=this.startNode(),t.value=this.type===b._null?null:this.type===b._true,t.raw=this.type.keyword,this.next(),this.finishNode(t,`Literal`);case b.parenL:var c=this.start,l=this.parseParenAndDistinguishExpression(n);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(l)&&(e.parenthesizedAssign=c),e.parenthesizedBind<0&&(e.parenthesizedBind=c)),l;case b.bracketL:return t=this.startNode(),this.next(),t.elements=this.parseExprList(b.bracketR,!0,!0,e),this.finishNode(t,`ArrayExpression`);case b.braceL:return this.parseObj(!1,e);case b._function:return t=this.startNode(),this.next(),this.parseFunction(t,0);case b._class:return this.parseClass(this.startNode(),!1);case b._new:return this.parseNew();case b.backQuote:return this.parseTemplate();case b._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},z.parseExprImport=function(){var e=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword import`);var t=this.parseIdent(!0);switch(this.type){case b.parenL:return this.parseDynamicImport(e);case b.dot:return e.meta=t,this.parseImportMeta(e);default:this.unexpected()}},z.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(b.parenR)){var t=this.start;this.eat(b.comma)&&this.eat(b.parenR)?this.raiseRecoverable(t,`Trailing comma is not allowed in import()`):this.unexpected(t)}return this.finishNode(e,`ImportExpression`)},z.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!==`meta`&&this.raiseRecoverable(e.property.start,`The only valid meta property for import is 'import.meta'`),t&&this.raiseRecoverable(e.start,`'import.meta' must not contain escaped characters`),this.options.sourceType!==`module`&&this.raiseRecoverable(e.start,`Cannot use 'import.meta' outside a module`),this.finishNode(e,`MetaProperty`)},z.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,``)),this.next(),this.finishNode(t,`Literal`)},z.parseParenExpression=function(){this.expect(b.parenL);var e=this.parseExpression();return this.expect(b.parenR),e},z.parseParenAndDistinguishExpression=function(e){var t=this.start,n=this.startLoc,r,i=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a=this.start,o=this.startLoc,s=[],c=!0,l=!1,u=new xe,d=this.yieldPos,f=this.awaitPos,p;for(this.yieldPos=0,this.awaitPos=0;this.type!==b.parenR;)if(c?c=!1:this.expect(b.comma),i&&this.afterTrailingComma(b.parenR,!0)){l=!0;break}else if(this.type===b.ellipsis){p=this.start,s.push(this.parseParenItem(this.parseRestBinding())),this.type===b.comma&&this.raise(this.start,`Comma is not permitted after the rest element`);break}else s.push(this.parseMaybeAssign(!1,u,this.parseParenItem));var m=this.start,h=this.startLoc;if(this.expect(b.parenR),e&&!this.canInsertSemicolon()&&this.eat(b.arrow))return this.checkPatternErrors(u,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=d,this.awaitPos=f,this.parseParenArrowList(t,n,s);(!s.length||l)&&this.unexpected(this.lastTokStart),p&&this.unexpected(p),this.checkExpressionErrors(u,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=f||this.awaitPos,s.length>1?(r=this.startNodeAt(a,o),r.expressions=s,this.finishNodeAt(r,`SequenceExpression`,m,h)):r=s[0]}else r=this.parseParenExpression();if(this.options.preserveParens){var g=this.startNodeAt(t,n);return g.expression=r,this.finishNode(g,`ParenthesizedExpression`)}else return r},z.parseParenItem=function(e){return e},z.parseParenArrowList=function(e,t,n){return this.parseArrowExpression(this.startNodeAt(e,t),n)};var Oe=[];z.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword new`);var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(b.dot)){e.meta=t;var n=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!==`target`&&this.raiseRecoverable(e.property.start,`The only valid meta property for new is 'new.target'`),n&&this.raiseRecoverable(e.start,`'new.target' must not contain escaped characters`),this.inNonArrowFunction()||this.raiseRecoverable(e.start,`'new.target' can only be used in functions`),this.finishNode(e,`MetaProperty`)}var r=this.start,i=this.startLoc,a=this.type===b._import;return e.callee=this.parseSubscripts(this.parseExprAtom(),r,i,!0),a&&e.callee.type===`ImportExpression`&&this.raise(r,`Cannot use new with import()`),this.eat(b.parenL)?e.arguments=this.parseExprList(b.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Oe,this.finishNode(e,`NewExpression`)},z.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===b.invalidTemplate?(t||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===b.backQuote,this.finishNode(n,`TemplateElement`)},z.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(n.quasis=[r];!r.tail;)this.type===b.eof&&this.raise(this.pos,`Unterminated template literal`),this.expect(b.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(b.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,`TemplateLiteral`)},z.isAsyncProp=function(e){return!e.computed&&e.key.type===`Identifier`&&e.key.name===`async`&&(this.type===b.name||this.type===b.num||this.type===b.string||this.type===b.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===b.star)&&!x.test(this.input.slice(this.lastTokEnd,this.start))},z.parseObj=function(e,t){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(b.braceR);){if(r)r=!1;else if(this.expect(b.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(b.braceR))break;var a=this.parseProperty(e,t);e||this.checkPropClash(a,i,t),n.properties.push(a)}return this.finishNode(n,e?`ObjectPattern`:`ObjectExpression`)},z.parseProperty=function(e,t){var n=this.startNode(),r,i,a,o;if(this.options.ecmaVersion>=9&&this.eat(b.ellipsis))return e?(n.argument=this.parseIdent(!1),this.type===b.comma&&this.raise(this.start,`Comma is not permitted after the rest element`),this.finishNode(n,`RestElement`)):(this.type===b.parenL&&t&&(t.parenthesizedAssign<0&&(t.parenthesizedAssign=this.start),t.parenthesizedBind<0&&(t.parenthesizedBind=this.start)),n.argument=this.parseMaybeAssign(!1,t),this.type===b.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(n,`SpreadElement`));this.options.ecmaVersion>=6&&(n.method=!1,n.shorthand=!1,(e||t)&&(a=this.start,o=this.startLoc),e||(r=this.eat(b.star)));var s=this.containsEsc;return this.parsePropertyName(n),!e&&!s&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(n)?(i=!0,r=this.options.ecmaVersion>=9&&this.eat(b.star),this.parsePropertyName(n,t)):i=!1,this.parsePropertyValue(n,e,r,i,a,o,t,s),this.finishNode(n,`Property`)},z.parsePropertyValue=function(e,t,n,r,i,a,o,s){if((n||r)&&this.type===b.colon&&this.unexpected(),this.eat(b.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind=`init`;else if(this.options.ecmaVersion>=6&&this.type===b.parenL)t&&this.unexpected(),e.kind=`init`,e.method=!0,e.value=this.parseMethod(n,r);else if(!t&&!s&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type===`Identifier`&&(e.key.name===`get`||e.key.name===`set`)&&this.type!==b.comma&&this.type!==b.braceR&&this.type!==b.eq){(n||r)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var c=e.kind===`get`?0:1;if(e.value.params.length!==c){var l=e.value.start;e.kind===`get`?this.raiseRecoverable(l,`getter should have no params`):this.raiseRecoverable(l,`setter should have exactly one param`)}else e.kind===`set`&&e.value.params[0].type===`RestElement`&&this.raiseRecoverable(e.value.params[0].start,`Setter cannot use rest params`)}else this.options.ecmaVersion>=6&&!e.computed&&e.key.type===`Identifier`?((n||r)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name===`await`&&!this.awaitIdentPos&&(this.awaitIdentPos=i),e.kind=`init`,t?e.value=this.parseMaybeDefault(i,a,e.key):this.type===b.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,a,e.key)):e.value=e.key,e.shorthand=!0):this.unexpected()},z.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(b.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(b.bracketR),e.key;e.computed=!1}return e.key=this.type===b.num||this.type===b.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!==`never`)},z.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},z.parseMethod=function(e,t,n){var r=this.startNode(),i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(de(t,r.generator)|le|(n?ue:0)),this.expect(b.parenL),r.params=this.parseBindingList(b.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(r,`FunctionExpression`)},z.parseArrowExpression=function(e,t,n){var r=this.yieldPos,i=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(de(n,!1)|se),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1),this.yieldPos=r,this.awaitPos=i,this.awaitIdentPos=a,this.finishNode(e,`ArrowFunctionExpression`)},z.parseFunctionBody=function(e,t,n){var r=t&&this.type!==b.braceL,i=this.strict,a=!1;if(r)e.body=this.parseMaybeAssign(),e.expression=!0,this.checkParams(e,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!i||o)&&(a=this.strictDirective(this.end),a&&o&&this.raiseRecoverable(e.start,`Illegal 'use strict' directive in function with non-simple parameter list`));var s=this.labels;this.labels=[],a&&(this.strict=!0),this.checkParams(e,!i&&!a&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLVal(e.id,ge),e.body=this.parseBlock(!1,void 0,a&&!i),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=s}this.exitScope()},z.isSimpleParamList=function(e){for(var t=0,n=e;t<n.length;t+=1)if(n[t].type!==`Identifier`)return!1;return!0},z.checkParams=function(e,t){for(var n={},r=0,i=e.params;r<i.length;r+=1){var a=i[r];this.checkLVal(a,pe,t?null:n)}},z.parseExprList=function(e,t,n,r){for(var i=[],a=!0;!this.eat(e);){if(a)a=!1;else if(this.expect(b.comma),t&&this.afterTrailingComma(e))break;var o=void 0;n&&this.type===b.comma?o=null:this.type===b.ellipsis?(o=this.parseSpread(r),r&&this.type===b.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):o=this.parseMaybeAssign(!1,r),i.push(o)}return i},z.checkUnreserved=function(e){var t=e.start,n=e.end,r=e.name;this.inGenerator&&r===`yield`&&this.raiseRecoverable(t,`Cannot use 'yield' as identifier inside a generator`),this.inAsync&&r===`await`&&this.raiseRecoverable(t,`Cannot use 'await' as identifier inside an async function`),this.keywords.test(r)&&this.raise(t,`Unexpected keyword '`+r+`'`),!(this.options.ecmaVersion<6&&this.input.slice(t,n).indexOf(`\\`)!==-1)&&(this.strict?this.reservedWordsStrict:this.reservedWords).test(r)&&(!this.inAsync&&r===`await`&&this.raiseRecoverable(t,`Cannot use keyword 'await' outside an async function`),this.raiseRecoverable(t,`The keyword '`+r+`' is reserved`))},z.parseIdent=function(e,t){var n=this.startNode();return this.type===b.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(!!e),this.finishNode(n,`Identifier`),e||(this.checkUnreserved(n),n.name===`await`&&!this.awaitIdentPos&&(this.awaitIdentPos=n.start)),n},z.parseYield=function(e){this.yieldPos||=this.start;var t=this.startNode();return this.next(),this.type===b.semi||this.canInsertSemicolon()||this.type!==b.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(b.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,`YieldExpression`)},z.parseAwait=function(){this.awaitPos||=this.start;var e=this.startNode();return this.next(),e.argument=this.parseMaybeUnary(null,!1),this.finishNode(e,`AwaitExpression`)};var ke=_e.prototype;ke.raise=function(e,t){var n=N(this.input,e);t+=` (`+n.line+`:`+n.column+`)`;var r=SyntaxError(t);throw r.pos=e,r.loc=n,r.raisedAt=this.pos,r},ke.raiseRecoverable=ke.raise,ke.curPosition=function(){if(this.options.locations)return new M(this.curLine,this.pos-this.lineStart)};var Ae=_e.prototype,je=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[]};Ae.enterScope=function(e){this.scopeStack.push(new je(e))},Ae.exitScope=function(){this.scopeStack.pop()},Ae.treatFunctionsAsVarInScope=function(e){return e.flags&ie||!this.inModule&&e.flags&P},Ae.declareName=function(e,t,n){var r=!1;if(t===me){var i=this.currentScope();r=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&i.flags&P&&delete this.undefinedExports[e]}else if(t===he)this.currentScope().lexical.push(e);else if(t===I){var a=this.currentScope();r=this.treatFunctionsAsVar?a.lexical.indexOf(e)>-1:a.lexical.indexOf(e)>-1||a.var.indexOf(e)>-1,a.functions.push(e)}else for(var o=this.scopeStack.length-1;o>=0;--o){var s=this.scopeStack[o];if(s.lexical.indexOf(e)>-1&&!(s.flags&ce&&s.lexical[0]===e)||!this.treatFunctionsAsVarInScope(s)&&s.functions.indexOf(e)>-1){r=!0;break}if(s.var.push(e),this.inModule&&s.flags&P&&delete this.undefinedExports[e],s.flags&ae)break}r&&this.raiseRecoverable(n,`Identifier '`+e+`' has already been declared`)},Ae.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)},Ae.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},Ae.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&ae)return t}},Ae.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&ae&&!(t.flags&se))return t}};var Me=function(e,t,n){this.type=``,this.start=t,this.end=0,e.options.locations&&(this.loc=new ee(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},B=_e.prototype;B.startNode=function(){return new Me(this,this.start,this.startLoc)},B.startNodeAt=function(e,t){return new Me(this,e,t)};function Ne(e,t,n,r){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=n),e}B.finishNode=function(e,t){return Ne.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},B.finishNodeAt=function(e,t,n,r){return Ne.call(this,e,t,n,r)};var V=function(e,t,n,r,i){this.token=e,this.isExpr=!!t,this.preserveSpace=!!n,this.override=r,this.generator=!!i},H={b_stat:new V(`{`,!1),b_expr:new V(`{`,!0),b_tmpl:new V("${",!1),p_stat:new V(`(`,!1),p_expr:new V(`(`,!0),q_tmpl:new V("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new V(`function`,!1),f_expr:new V(`function`,!0),f_expr_gen:new V(`function`,!0,!1,null,!0),f_gen:new V(`function`,!1,!1,null,!0)},Pe=_e.prototype;Pe.initialContext=function(){return[H.b_stat]},Pe.braceIsBlock=function(e){var t=this.curContext();return t===H.f_expr||t===H.f_stat?!0:e===b.colon&&(t===H.b_stat||t===H.b_expr)?!t.isExpr:e===b._return||e===b.name&&this.exprAllowed?x.test(this.input.slice(this.lastTokEnd,this.start)):e===b._else||e===b.semi||e===b.eof||e===b.parenR||e===b.arrow?!0:e===b.braceL?t===H.b_stat:e===b._var||e===b._const||e===b.name?!1:!this.exprAllowed},Pe.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token===`function`)return t.generator}return!1},Pe.updateContext=function(e){var t,n=this.type;n.keyword&&e===b.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},b.parenR.updateContext=b.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();e===H.b_stat&&this.curContext().token===`function`&&(e=this.context.pop()),this.exprAllowed=!e.isExpr},b.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?H.b_stat:H.b_expr),this.exprAllowed=!0},b.dollarBraceL.updateContext=function(){this.context.push(H.b_tmpl),this.exprAllowed=!0},b.parenL.updateContext=function(e){var t=e===b._if||e===b._for||e===b._with||e===b._while;this.context.push(t?H.p_stat:H.p_expr),this.exprAllowed=!0},b.incDec.updateContext=function(){},b._function.updateContext=b._class.updateContext=function(e){e.beforeExpr&&e!==b.semi&&e!==b._else&&!(e===b._return&&x.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===b.colon||e===b.braceL)&&this.curContext()===H.b_stat)?this.context.push(H.f_expr):this.context.push(H.f_stat),this.exprAllowed=!1},b.backQuote.updateContext=function(){this.curContext()===H.q_tmpl?this.context.pop():this.context.push(H.q_tmpl),this.exprAllowed=!1},b.star.updateContext=function(e){if(e===b._function){var t=this.context.length-1;this.context[t]===H.f_expr?this.context[t]=H.f_expr_gen:this.context[t]=H.f_gen}this.exprAllowed=!0},b.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==b.dot&&(this.value===`of`&&!this.exprAllowed||this.value===`yield`&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var Fe=`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`,Ie=Fe+` Extended_Pictographic`,Le=Ie,Re={9:Fe,10:Ie,11:Le},ze=`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`,Be=`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`,U=Be+` Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd`,Ve=U+` Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho`,He={9:Be,10:U,11:Ve},Ue={};function We(e){var t=Ue[e]={binary:j(Re[e]+` `+ze),nonBinary:{General_Category:j(ze),Script:j(He[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}We(9),We(10),We(11);var W=_e.prototype,Ge=function(e){this.parser=e,this.validFlags=`gim`+(e.options.ecmaVersion>=6?`uy`:``)+(e.options.ecmaVersion>=9?`s`:``),this.unicodeProperties=Ue[e.options.ecmaVersion>=11?11:e.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=[]};Ge.prototype.reset=function(e,t,n){var r=n.indexOf(`u`)!==-1;this.start=e|0,this.source=t+``,this.flags=n,this.switchU=r&&this.parser.options.ecmaVersion>=6,this.switchN=r&&this.parser.options.ecmaVersion>=9},Ge.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,`Invalid regular expression: /`+this.source+`/: `+e)},Ge.prototype.at=function(e,t){t===void 0&&(t=!1);var n=this.source,r=n.length;if(e>=r)return-1;var i=n.charCodeAt(e);if(!(t||this.switchU)||i<=55295||i>=57344||e+1>=r)return i;var a=n.charCodeAt(e+1);return a>=56320&&a<=57343?(i<<10)+a-56613888:i},Ge.prototype.nextIndex=function(e,t){t===void 0&&(t=!1);var n=this.source,r=n.length;if(e>=r)return r;var i=n.charCodeAt(e),a;return!(t||this.switchU)||i<=55295||i>=57344||e+1>=r||(a=n.charCodeAt(e+1))<56320||a>57343?e+1:e+2},Ge.prototype.current=function(e){return e===void 0&&(e=!1),this.at(this.pos,e)},Ge.prototype.lookahead=function(e){return e===void 0&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},Ge.prototype.advance=function(e){e===void 0&&(e=!1),this.pos=this.nextIndex(this.pos,e)},Ge.prototype.eat=function(e,t){return t===void 0&&(t=!1),this.current(t)===e?(this.advance(t),!0):!1};function Ke(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}W.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,r=0;r<n.length;r++){var i=n.charAt(r);t.indexOf(i)===-1&&this.raise(e.start,`Invalid regular expression flag`),n.indexOf(i,r+1)>-1&&this.raise(e.start,`Duplicate regular expression flag`)}},W.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},W.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue=``,e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise(`Unmatched ')'`),(e.eat(93)||e.eat(125))&&e.raise(`Lone quantifier brackets`)),e.maxBackReference>e.numCapturingParens&&e.raise(`Invalid escape`);for(var t=0,n=e.backReferenceNames;t<n.length;t+=1){var r=n[t];e.groupNames.indexOf(r)===-1&&e.raise(`Invalid named capture referenced`)}},W.regexp_disjunction=function(e){for(this.regexp_alternative(e);e.eat(124);)this.regexp_alternative(e);this.regexp_eatQuantifier(e,!0)&&e.raise(`Nothing to repeat`),e.eat(123)&&e.raise(`Lone quantifier brackets`)},W.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},W.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise(`Invalid quantifier`),!0):(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))?(this.regexp_eatQuantifier(e),!0):!1},W.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var n=!1;if(this.options.ecmaVersion>=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise(`Unterminated group`),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1},W.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1},W.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},W.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return i!==-1&&i<r&&!t&&e.raise(`numbers out of order in {} quantifier`),!0;e.switchU&&!t&&e.raise(`Incomplete quantifier`),e.pos=n}return!1},W.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},W.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},W.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise(`Unterminated group`)}e.pos=t}return!1},W.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise(`Invalid group`),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise(`Unterminated group`)}return!1},W.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},W.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise(`Nothing to repeat`),!1},W.regexp_eatSyntaxCharacter=function(e){var t=e.current();return qe(t)?(e.lastIntValue=t,e.advance(),!0):!1};function qe(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}W.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;(n=e.current())!==-1&&!qe(n);)e.advance();return e.pos!==t},W.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124?(e.advance(),!0):!1},W.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e)){e.groupNames.indexOf(e.lastStringValue)!==-1&&e.raise(`Duplicate capture group name`),e.groupNames.push(e.lastStringValue);return}e.raise(`Invalid group`)}},W.regexp_eatGroupName=function(e){if(e.lastStringValue=``,e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise(`Invalid capture group name`)}return!1},W.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue=``,this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=Ke(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=Ke(e.lastIntValue);return!0}return!1},W.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),Je(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function Je(e){return f(e,!0)||e===36||e===95}W.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),Ye(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function Ye(e){return p(e,!0)||e===36||e===95||e===8204||e===8205}W.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise(`Invalid unicode escape`),e.raise(`Invalid escape`)),!1)},W.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1},W.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise(`Invalid named reference`)}return!1},W.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},W.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},W.regexp_eatZero=function(e){return e.current()===48&&!tt(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1},W.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114?(e.lastIntValue=13,e.advance(),!0):!1},W.regexp_eatControlLetter=function(e){var t=e.current();return Xe(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function Xe(e){return e>=65&&e<=90||e>=97&&e<=122}W.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var n=e.pos,r=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var i=e.lastIntValue;if(r&&i>=55296&&i<=56319){var a=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(o>=56320&&o<=57343)return e.lastIntValue=(i-55296)*1024+(o-56320)+65536,!0}e.pos=a,e.lastIntValue=i}return!0}if(r&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&Ze(e.lastIntValue))return!0;r&&e.raise(`Invalid unicode escape`),e.pos=n}return!1};function Ze(e){return e>=0&&e<=1114111}W.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)?(e.lastIntValue=t,e.advance(),!0):!1},W.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1},W.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(Qe(t))return e.lastIntValue=-1,e.advance(),!0;if(e.switchU&&this.options.ecmaVersion>=9&&(t===80||t===112)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125))return!0;e.raise(`Invalid property name`)}return!1};function Qe(e){return e===100||e===68||e===115||e===83||e===119||e===87}W.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,r),!0}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i),!0}return!1},W.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){k(e.unicodeProperties.nonBinary,t)||e.raise(`Invalid property name`),e.unicodeProperties.nonBinary[t].test(n)||e.raise(`Invalid property value`)},W.regexp_validateUnicodePropertyNameOrValue=function(e,t){e.unicodeProperties.binary.test(t)||e.raise(`Invalid property name`)},W.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue=``;$e(t=e.current());)e.lastStringValue+=Ke(t),e.advance();return e.lastStringValue!==``};function $e(e){return Xe(e)||e===95}W.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue=``;et(t=e.current());)e.lastStringValue+=Ke(t),e.advance();return e.lastStringValue!==``};function et(e){return $e(e)||tt(e)}W.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},W.regexp_eatCharacterClass=function(e){if(e.eat(91)){if(e.eat(94),this.regexp_classRanges(e),e.eat(93))return!0;e.raise(`Unterminated character class`)}return!1},W.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;e.switchU&&(t===-1||n===-1)&&e.raise(`Invalid character class`),t!==-1&&n!==-1&&t>n&&e.raise(`Range out of order in character class`)}}},W.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(n===99||it(n))&&e.raise(`Invalid class escape`),e.raise(`Invalid escape`)}e.pos=t}var r=e.current();return r===93?!1:(e.lastIntValue=r,e.advance(),!0)},W.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},W.regexp_eatClassControlLetter=function(e){var t=e.current();return tt(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1},W.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise(`Invalid escape`),e.pos=t}return!1},W.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;tt(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t};function tt(e){return e>=48&&e<=57}W.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;nt(n=e.current());)e.lastIntValue=16*e.lastIntValue+rt(n),e.advance();return e.pos!==t};function nt(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function rt(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}W.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=t*64+n*8+e.lastIntValue:e.lastIntValue=t*8+n}else e.lastIntValue=t;return!0}return!1},W.regexp_eatOctalDigit=function(e){var t=e.current();return it(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function it(e){return e>=48&&e<=55}W.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var i=e.current();if(!nt(i))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+rt(i),e.advance()}return!0};var at=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new ee(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},ot=_e.prototype;ot.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword `+this.type.keyword),this.options.onToken&&this.options.onToken(new at(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},ot.getToken=function(){return this.next(),new at(this)},typeof Symbol<`u`&&(ot[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===b.eof,value:t}}}}),ot.curContext=function(){return this.context[this.context.length-1]},ot.nextToken=function(){var e=this.curContext();if((!e||!e.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(b.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())},ot.readToken=function(e){return f(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)},ot.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=57344)return e;var t=this.input.charCodeAt(this.pos+1);return(e<<10)+t-56613888},ot.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=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){S.lastIndex=t;for(var r;(r=S.exec(this.input))&&r.index<this.pos;)++this.curLine,this.lineStart=r.index+r[0].length}this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,n),t,this.pos,e,this.curPosition())},ot.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!C(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,n,this.curPosition())},ot.skipSpace=function(){loop:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){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 loop}break;default:if(e>8&&e<14||e>=5760&&w.test(String.fromCharCode(e)))++this.pos;else break loop}}},ot.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)},ot.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(b.ellipsis)):(++this.pos,this.finishToken(b.dot))},ot.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(b.assign,2):this.finishOp(b.slash,1)},ot.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=e===42?b.star:b.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++n,r=b.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(b.assign,n+1):this.finishOp(r,n)},ot.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.options.ecmaVersion>=12&&this.input.charCodeAt(this.pos+2)===61?this.finishOp(b.assign,3):this.finishOp(e===124?b.logicalOR:b.logicalAND,2):t===61?this.finishOp(b.assign,2):this.finishOp(e===124?b.bitwiseOR:b.bitwiseAND,1)},ot.readToken_caret=function(){return this.input.charCodeAt(this.pos+1)===61?this.finishOp(b.assign,2):this.finishOp(b.bitwiseXOR,1)},ot.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||x.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(b.incDec,2):t===61?this.finishOp(b.assign,2):this.finishOp(b.plusMin,1)},ot.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+n)===61?this.finishOp(b.assign,n+1):this.finishOp(b.bitShift,n)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(n=2),this.finishOp(b.relational,n))},ot.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(b.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(b.arrow)):this.finishOp(e===61?b.eq:b.prefix,1)},ot.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(b.questionDot,2)}if(t===63)return e>=12&&this.input.charCodeAt(this.pos+2)===61?this.finishOp(b.assign,3):this.finishOp(b.coalesce,2)}return this.finishOp(b.question,1)},ot.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(b.parenL);case 41:return++this.pos,this.finishToken(b.parenR);case 59:return++this.pos,this.finishToken(b.semi);case 44:return++this.pos,this.finishToken(b.comma);case 91:return++this.pos,this.finishToken(b.bracketL);case 93:return++this.pos,this.finishToken(b.bracketR);case 123:return++this.pos,this.finishToken(b.braceL);case 125:return++this.pos,this.finishToken(b.braceR);case 58:return++this.pos,this.finishToken(b.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(b.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===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(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(b.prefix,1)}this.raise(this.pos,`Unexpected character '`+lt(e)+`'`)},ot.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},ot.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,`Unterminated regular expression`);var r=this.input.charAt(this.pos);if(x.test(r)&&this.raise(n,`Unterminated regular expression`),e)e=!1;else{if(r===`[`)t=!0;else if(r===`]`&&t)t=!1;else if(r===`/`&&!t)break;e=r===`\\`}++this.pos}var i=this.input.slice(n,this.pos);++this.pos;var a=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(a);var s=this.regexpState||=new Ge(this);s.reset(n,i,o),this.validateRegExpFlags(s),this.validateRegExpPattern(s);var c=null;try{c=new RegExp(i,o)}catch{}return this.finishToken(b.regexp,{pattern:i,flags:o,value:c})},ot.readInt=function(e,t,n){for(var r=this.options.ecmaVersion>=12&&t===void 0,i=n&&this.input.charCodeAt(this.pos)===48,a=this.pos,o=0,s=0,c=0,l=t??1/0;c<l;++c,++this.pos){var u=this.input.charCodeAt(this.pos),d=void 0;if(r&&u===95){i&&this.raiseRecoverable(this.pos,`Numeric separator is not allowed in legacy octal numeric literals`),s===95&&this.raiseRecoverable(this.pos,`Numeric separator must be exactly one underscore`),c===0&&this.raiseRecoverable(this.pos,`Numeric separator is not allowed at the first of digits`),s=u;continue}if(d=u>=97?u-97+10:u>=65?u-65+10:u>=48&&u<=57?u-48:1/0,d>=e)break;s=u,o=o*e+d}return r&&s===95&&this.raiseRecoverable(this.pos-1,`Numeric separator is not allowed at the last of digits`),this.pos===a||t!=null&&this.pos-a!==t?null:o};function st(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,``))}function ct(e){return typeof BigInt==`function`?BigInt(e.replace(/_/g,``)):null}ot.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);return n??this.raise(this.start+2,`Expected number in radix `+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(n=ct(this.input.slice(t,this.pos)),++this.pos):f(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`),this.finishToken(b.num,n)},ot.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,`Invalid number`);var n=this.pos-t>=2&&this.input.charCodeAt(t)===48;n&&this.strict&&this.raise(t,`Invalid number`);var r=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&r===110){var i=ct(this.input.slice(t,this.pos));return++this.pos,f(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`),this.finishToken(b.num,i)}n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1),r===46&&!n&&(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),(r===69||r===101)&&!n&&(r=this.input.charCodeAt(++this.pos),(r===43||r===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,`Invalid number`)),f(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`);var a=st(this.input.slice(t,this.pos),n);return this.finishToken(b.num,a)},ot.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var n=++this.pos;t=this.readHexChar(this.input.indexOf(`}`,this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(n,`Code point out of bounds`)}else t=this.readHexChar(4);return t};function lt(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}ot.readString=function(e){for(var t=``,n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated string constant`);var r=this.input.charCodeAt(this.pos);if(r===e)break;r===92?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):(C(r,this.options.ecmaVersion>=10)&&this.raise(this.start,`Unterminated string constant`),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(b.string,t)};var ut={};ot.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===ut)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1},ot.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw ut;this.raise(e,t)},ot.readTmplToken=function(){for(var e=``,t=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===b.template||this.type===b.invalidTemplate)?n===36?(this.pos+=2,this.finishToken(b.dollarBraceL)):(++this.pos,this.finishToken(b.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(b.template,e));if(n===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(C(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
1053
- `;break;default:e+=String.fromCharCode(n);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else ++this.pos}},ot.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(b.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,`Unterminated template`)},ot.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
1054
- `;case 114:return`\r`;case 120:return String.fromCharCode(this.readHexChar(2));case 117:return lt(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(e){var n=this.pos-1;return this.invalidStringToken(n,`Invalid escape sequence in template string`),null}default:if(t>=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(r,8);return i>255&&(r=r.slice(0,-1),i=parseInt(r,8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),(r!==`0`||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-r.length,e?`Octal literal in template string`:`Octal literal in strict mode`),String.fromCharCode(i)}return C(t)?``:String.fromCharCode(t)}},ot.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return n===null&&this.invalidStringToken(t,`Bad character escape sequence`),n},ot.readWord1=function(){this.containsEsc=!1;for(var e=``,t=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(p(i,r))this.pos+=i<=65535?1:2;else if(i===92){this.containsEsc=!0,e+=this.input.slice(n,this.pos);var a=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,`Expecting Unicode escape sequence \\uXXXX`),++this.pos;var o=this.readCodePoint();(t?f:p)(o,r)||this.invalidStringToken(a,`Invalid Unicode escape`),e+=lt(o),n=this.pos}else break;t=!1}return e+this.input.slice(n,this.pos)},ot.readWord=function(){var e=this.readWord1(),t=b.name;return this.keywords.test(e)&&(t=v[e]),this.finishToken(t,e)};var dt=`7.4.1`;_e.acorn={Parser:_e,version:dt,defaultOptions:te,Position:M,SourceLocation:ee,getLineInfo:N,Node:Me,TokenType:m,tokTypes:b,keywordTypes:v,TokContext:V,tokContexts:H,isIdentifierChar:p,isIdentifierStart:f,Token:at,isNewLine:C,lineBreak:x,lineBreakG:S,nonASCIIwhitespace:w};function ft(e,t){return _e.parse(e,t)}function pt(e,t,n){return _e.parseExpressionAt(e,t,n)}function mt(e,t){return _e.tokenizer(e,t)}e.Node=Me,e.Parser=_e,e.Position=M,e.SourceLocation=ee,e.TokContext=V,e.Token=at,e.TokenType=m,e.defaultOptions=te,e.getLineInfo=N,e.isIdentifierChar=p,e.isIdentifierStart=f,e.isNewLine=C,e.keywordTypes=v,e.lineBreak=x,e.lineBreakG=S,e.nonASCIIwhitespace=w,e.parse=ft,e.parseExpressionAt=pt,e.tokContexts=H,e.tokTypes=b,e.tokenizer=mt,e.version=dt,Object.defineProperty(e,`__esModule`,{value:!0})}))}}),oq=iG({"../../../node_modules/acorn-jsx/xhtml.js"(e,t){t.exports={quot:`"`,amp:`&`,apos:`'`,lt:`<`,gt:`>`,nbsp:`\xA0`,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:`♦`}}}),sq=iG({"../../../node_modules/acorn-jsx/index.js"(e,t){var n=oq(),r=/^[\da-fA-F]+$/,i=/^\d+$/,a=new WeakMap;function o(e){e=e.Parser.acorn||e;let t=a.get(e);if(!t){let n=e.tokTypes,r=e.TokContext,i=e.TokenType,o=new r(`<tag`,!1),s=new r(`</tag`,!1),c=new r(`<tag>...</tag>`,!0,!0),l={tc_oTag:o,tc_cTag:s,tc_expr:c},u={jsxName:new i(`jsxName`),jsxText:new i(`jsxText`,{beforeExpr:!0}),jsxTagStart:new i(`jsxTagStart`,{startsExpr:!0}),jsxTagEnd:new i(`jsxTagEnd`)};u.jsxTagStart.updateContext=function(){this.context.push(c),this.context.push(o),this.exprAllowed=!1},u.jsxTagEnd.updateContext=function(e){let t=this.context.pop();t===o&&e===n.slash||t===s?(this.context.pop(),this.exprAllowed=this.curContext()===c):this.exprAllowed=!0},t={tokContexts:l,tokTypes:u},a.set(e,t)}return t}function s(e){if(!e)return e;if(e.type===`JSXIdentifier`)return e.name;if(e.type===`JSXNamespacedName`)return e.namespace.name+`:`+e.name.name;if(e.type===`JSXMemberExpression`)return s(e.object)+`.`+s(e.property)}t.exports=function(e){return e||={},function(t){return c({allowNamespaces:e.allowNamespaces!==!1,allowNamespacedObjects:!!e.allowNamespacedObjects},t)}},Object.defineProperty(t.exports,`tokTypes`,{get:function(){return o(aq()).tokTypes},configurable:!0,enumerable:!0});function c(e,t){let a=t.acorn||aq(),c=o(a),l=a.tokTypes,u=c.tokTypes,d=a.tokContexts,f=c.tokContexts.tc_oTag,p=c.tokContexts.tc_cTag,m=c.tokContexts.tc_expr,h=a.isNewLine,g=a.isIdentifierStart,_=a.isIdentifierChar;return class extends t{static get acornJsx(){return c}jsx_readToken(){let e=``,t=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated JSX contents`);let n=this.input.charCodeAt(this.pos);switch(n){case 60:case 123:return this.pos===this.start?n===60&&this.exprAllowed?(++this.pos,this.finishToken(u.jsxTagStart)):this.getTokenFromCode(n):(e+=this.input.slice(t,this.pos),this.finishToken(u.jsxText,e));case 38:e+=this.input.slice(t,this.pos),e+=this.jsx_readEntity(),t=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(n===62?`&gt;`:`&rbrace;`)+'` or `{"'+this.input[this.pos]+'"}`?');default:h(n)?(e+=this.input.slice(t,this.pos),e+=this.jsx_readNewLine(!0),t=this.pos):++this.pos}}}jsx_readNewLine(e){let t=this.input.charCodeAt(this.pos),n;return++this.pos,t===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,n=e?`
1055
- `:`\r
1056
- `):n=String.fromCharCode(t),this.options.locations&&(++this.curLine,this.lineStart=this.pos),n}jsx_readString(e){let t=``,n=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated string constant`);let r=this.input.charCodeAt(this.pos);if(r===e)break;r===38?(t+=this.input.slice(n,this.pos),t+=this.jsx_readEntity(),n=this.pos):h(r)?(t+=this.input.slice(n,this.pos),t+=this.jsx_readNewLine(!1),n=this.pos):++this.pos}return t+=this.input.slice(n,this.pos++),this.finishToken(l.string,t)}jsx_readEntity(){let e=``,t=0,a,o=this.input[this.pos];o!==`&`&&this.raise(this.pos,`Entity must start with an ampersand`);let s=++this.pos;for(;this.pos<this.input.length&&t++<10;){if(o=this.input[this.pos++],o===`;`){e[0]===`#`?e[1]===`x`?(e=e.substr(2),r.test(e)&&(a=String.fromCharCode(parseInt(e,16)))):(e=e.substr(1),i.test(e)&&(a=String.fromCharCode(parseInt(e,10)))):a=n[e];break}e+=o}return a||(this.pos=s,`&`)}jsx_readWord(){let e,t=this.pos;do e=this.input.charCodeAt(++this.pos);while(_(e)||e===45);return this.finishToken(u.jsxName,this.input.slice(t,this.pos))}jsx_parseIdentifier(){let e=this.startNode();return this.type===u.jsxName?e.name=this.value:this.type.keyword?e.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(e,`JSXIdentifier`)}jsx_parseNamespacedName(){let t=this.start,n=this.startLoc,r=this.jsx_parseIdentifier();if(!e.allowNamespaces||!this.eat(l.colon))return r;var i=this.startNodeAt(t,n);return i.namespace=r,i.name=this.jsx_parseIdentifier(),this.finishNode(i,`JSXNamespacedName`)}jsx_parseElementName(){if(this.type===u.jsxTagEnd)return``;let t=this.start,n=this.startLoc,r=this.jsx_parseNamespacedName();for(this.type===l.dot&&r.type===`JSXNamespacedName`&&!e.allowNamespacedObjects&&this.unexpected();this.eat(l.dot);){let e=this.startNodeAt(t,n);e.object=r,e.property=this.jsx_parseIdentifier(),r=this.finishNode(e,`JSXMemberExpression`)}return r}jsx_parseAttributeValue(){switch(this.type){case l.braceL:let e=this.jsx_parseExpressionContainer();return e.expression.type===`JSXEmptyExpression`&&this.raise(e.start,`JSX attributes must only be assigned a non-empty expression`),e;case u.jsxTagStart:case l.string:return this.parseExprAtom();default:this.raise(this.start,`JSX value should be either an expression or a quoted JSX text`)}}jsx_parseEmptyExpression(){let e=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(e,`JSXEmptyExpression`,this.start,this.startLoc)}jsx_parseExpressionContainer(){let e=this.startNode();return this.next(),e.expression=this.type===l.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(l.braceR),this.finishNode(e,`JSXExpressionContainer`)}jsx_parseAttribute(){let e=this.startNode();return this.eat(l.braceL)?(this.expect(l.ellipsis),e.argument=this.parseMaybeAssign(),this.expect(l.braceR),this.finishNode(e,`JSXSpreadAttribute`)):(e.name=this.jsx_parseNamespacedName(),e.value=this.eat(l.eq)?this.jsx_parseAttributeValue():null,this.finishNode(e,`JSXAttribute`))}jsx_parseOpeningElementAt(e,t){let n=this.startNodeAt(e,t);n.attributes=[];let r=this.jsx_parseElementName();for(r&&(n.name=r);this.type!==l.slash&&this.type!==u.jsxTagEnd;)n.attributes.push(this.jsx_parseAttribute());return n.selfClosing=this.eat(l.slash),this.expect(u.jsxTagEnd),this.finishNode(n,r?`JSXOpeningElement`:`JSXOpeningFragment`)}jsx_parseClosingElementAt(e,t){let n=this.startNodeAt(e,t),r=this.jsx_parseElementName();return r&&(n.name=r),this.expect(u.jsxTagEnd),this.finishNode(n,r?`JSXClosingElement`:`JSXClosingFragment`)}jsx_parseElementAt(e,t){let n=this.startNodeAt(e,t),r=[],i=this.jsx_parseOpeningElementAt(e,t),a=null;if(!i.selfClosing){contents:for(;;)switch(this.type){case u.jsxTagStart:if(e=this.start,t=this.startLoc,this.next(),this.eat(l.slash)){a=this.jsx_parseClosingElementAt(e,t);break contents}r.push(this.jsx_parseElementAt(e,t));break;case u.jsxText:r.push(this.parseExprAtom());break;case l.braceL:r.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}s(a.name)!==s(i.name)&&this.raise(a.start,`Expected corresponding JSX closing tag for <`+s(i.name)+`>`)}let o=i.name?`Element`:`Fragment`;return n[`opening`+o]=i,n[`closing`+o]=a,n.children=r,this.type===l.relational&&this.value===`<`&&this.raise(this.start,`Adjacent JSX elements must be wrapped in an enclosing tag`),this.finishNode(n,`JSX`+o)}jsx_parseText(){let e=this.parseLiteral(this.value);return e.type=`JSXText`,e}jsx_parseElement(){let e=this.start,t=this.startLoc;return this.next(),this.jsx_parseElementAt(e,t)}parseExprAtom(e){return this.type===u.jsxText?this.jsx_parseText():this.type===u.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(e)}readToken(e){let t=this.curContext();if(t===m)return this.jsx_readToken();if(t===f||t===p){if(g(e))return this.jsx_readWord();if(e==62)return++this.pos,this.finishToken(u.jsxTagEnd);if((e===34||e===39)&&t==f)return this.jsx_readString(e)}return e===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(u.jsxTagStart)):super.readToken(e)}updateContext(e){if(this.type==l.braceL){var t=this.curContext();t==f?this.context.push(d.b_expr):t==m?this.context.push(d.b_tmpl):super.updateContext(e),this.exprAllowed=!0}else if(this.type===l.slash&&e===u.jsxTagStart)this.context.length-=2,this.context.push(p),this.exprAllowed=!1;else return super.updateContext(e)}}}}}),cq=iG({"../../../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`.split(`.`)}}),lq=iG({"../../../node_modules/html-tags/index.js"(e,t){t.exports=cq()}});aG({},{argTypesEnhancers:()=>XJ,parameters:()=>YJ});var uq=`custom`,dq=`object`,fq=`array`,pq=`class`,mq=`func`,hq=`element`,gq=sG(iq(),1);function _q(e){var t=[...arguments].slice(1),n=Array.from(typeof e==`string`?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,``);var r=n.reduce(function(e,t){var n=t.match(/\n([\t ]+|(?!\s).)/g);return n?e.concat(n.map(function(e){return e.match(/[\t ]/g)?.length??0})):e},[]);if(r.length){var i=RegExp(`
1057
- [ ]{`+Math.min.apply(Math,r)+`}`,`g`);n=n.map(function(e){return e.replace(i,`
1058
- `)})}n[0]=n[0].replace(/^\r?\n/,``);var a=n[0];return t.forEach(function(e,t){var r=a.match(/(?:^|\n)( *)$/),i=r?r[1]:``,o=e;typeof e==`string`&&e.includes(`
1059
- `)&&(o=String(e).split(`
1060
- `).map(function(e,t){return t===0?e:``+i+e}).join(`
1061
- `)),a+=o+n[t+1]}),a}var vq={format:{indent:{style:` `},semicolons:!1}},yq={...vq,format:{newline:``}},bq={...vq};function xq(e,t=!1){return(0,gq.generate)(e,t?yq:bq)}function Sq(e,t=!1){return t?Cq(e):xq(e)}function Cq(e){let t=xq(e,!0);return t.endsWith(` }`)||(t=`${t.slice(0,-1)} }`),t}function wq(e,t=!1){return t?Eq(e):Tq(e)}function Tq(e){let t=xq(e);return t.endsWith(` }]`)&&(t=_q(t)),t}function Eq(e){let t=xq(e,!0);return t.startsWith(`[ `)&&(t=t.replace(`[ `,`[`)),t}var Dq=sG(aq(),1),Oq=sG(sq(),1);function kq(e,t,n,r,i){n||=$,(function e(r,i,a){var o=a||r.type,s=t[o];n[o](r,i,e),s&&s(r,i)})(e,r,i)}function Aq(e,t,n,r,i){var a=[];n||=$,(function e(r,i,o){var s=o||r.type,c=t[s],l=r!==a[a.length-1];l&&a.push(r),n[s](r,i,e),c&&c(r,i||a,a),l&&a.pop()})(e,r,i)}function jq(e,t,n){n(e,t)}function Mq(e,t,n){}var $={};$.Program=$.BlockStatement=function(e,t,n){for(var r=0,i=e.body;r<i.length;r+=1){var a=i[r];n(a,t,`Statement`)}},$.Statement=jq,$.EmptyStatement=Mq,$.ExpressionStatement=$.ParenthesizedExpression=$.ChainExpression=function(e,t,n){return n(e.expression,t,`Expression`)},$.IfStatement=function(e,t,n){n(e.test,t,`Expression`),n(e.consequent,t,`Statement`),e.alternate&&n(e.alternate,t,`Statement`)},$.LabeledStatement=function(e,t,n){return n(e.body,t,`Statement`)},$.BreakStatement=$.ContinueStatement=Mq,$.WithStatement=function(e,t,n){n(e.object,t,`Expression`),n(e.body,t,`Statement`)},$.SwitchStatement=function(e,t,n){n(e.discriminant,t,`Expression`);for(var r=0,i=e.cases;r<i.length;r+=1){var a=i[r];a.test&&n(a.test,t,`Expression`);for(var o=0,s=a.consequent;o<s.length;o+=1){var c=s[o];n(c,t,`Statement`)}}},$.SwitchCase=function(e,t,n){e.test&&n(e.test,t,`Expression`);for(var r=0,i=e.consequent;r<i.length;r+=1){var a=i[r];n(a,t,`Statement`)}},$.ReturnStatement=$.YieldExpression=$.AwaitExpression=function(e,t,n){e.argument&&n(e.argument,t,`Expression`)},$.ThrowStatement=$.SpreadElement=function(e,t,n){return n(e.argument,t,`Expression`)},$.TryStatement=function(e,t,n){n(e.block,t,`Statement`),e.handler&&n(e.handler,t),e.finalizer&&n(e.finalizer,t,`Statement`)},$.CatchClause=function(e,t,n){e.param&&n(e.param,t,`Pattern`),n(e.body,t,`Statement`)},$.WhileStatement=$.DoWhileStatement=function(e,t,n){n(e.test,t,`Expression`),n(e.body,t,`Statement`)},$.ForStatement=function(e,t,n){e.init&&n(e.init,t,`ForInit`),e.test&&n(e.test,t,`Expression`),e.update&&n(e.update,t,`Expression`),n(e.body,t,`Statement`)},$.ForInStatement=$.ForOfStatement=function(e,t,n){n(e.left,t,`ForInit`),n(e.right,t,`Expression`),n(e.body,t,`Statement`)},$.ForInit=function(e,t,n){e.type===`VariableDeclaration`?n(e,t):n(e,t,`Expression`)},$.DebuggerStatement=Mq,$.FunctionDeclaration=function(e,t,n){return n(e,t,`Function`)},$.VariableDeclaration=function(e,t,n){for(var r=0,i=e.declarations;r<i.length;r+=1){var a=i[r];n(a,t)}},$.VariableDeclarator=function(e,t,n){n(e.id,t,`Pattern`),e.init&&n(e.init,t,`Expression`)},$.Function=function(e,t,n){e.id&&n(e.id,t,`Pattern`);for(var r=0,i=e.params;r<i.length;r+=1){var a=i[r];n(a,t,`Pattern`)}n(e.body,t,e.expression?`Expression`:`Statement`)},$.Pattern=function(e,t,n){e.type===`Identifier`?n(e,t,`VariablePattern`):e.type===`MemberExpression`?n(e,t,`MemberPattern`):n(e,t)},$.VariablePattern=Mq,$.MemberPattern=jq,$.RestElement=function(e,t,n){return n(e.argument,t,`Pattern`)},$.ArrayPattern=function(e,t,n){for(var r=0,i=e.elements;r<i.length;r+=1){var a=i[r];a&&n(a,t,`Pattern`)}},$.ObjectPattern=function(e,t,n){for(var r=0,i=e.properties;r<i.length;r+=1){var a=i[r];a.type===`Property`?(a.computed&&n(a.key,t,`Expression`),n(a.value,t,`Pattern`)):a.type===`RestElement`&&n(a.argument,t,`Pattern`)}},$.Expression=jq,$.ThisExpression=$.Super=$.MetaProperty=Mq,$.ArrayExpression=function(e,t,n){for(var r=0,i=e.elements;r<i.length;r+=1){var a=i[r];a&&n(a,t,`Expression`)}},$.ObjectExpression=function(e,t,n){for(var r=0,i=e.properties;r<i.length;r+=1){var a=i[r];n(a,t)}},$.FunctionExpression=$.ArrowFunctionExpression=$.FunctionDeclaration,$.SequenceExpression=function(e,t,n){for(var r=0,i=e.expressions;r<i.length;r+=1){var a=i[r];n(a,t,`Expression`)}},$.TemplateLiteral=function(e,t,n){for(var r=0,i=e.quasis;r<i.length;r+=1){var a=i[r];n(a,t)}for(var o=0,s=e.expressions;o<s.length;o+=1){var c=s[o];n(c,t,`Expression`)}},$.TemplateElement=Mq,$.UnaryExpression=$.UpdateExpression=function(e,t,n){n(e.argument,t,`Expression`)},$.BinaryExpression=$.LogicalExpression=function(e,t,n){n(e.left,t,`Expression`),n(e.right,t,`Expression`)},$.AssignmentExpression=$.AssignmentPattern=function(e,t,n){n(e.left,t,`Pattern`),n(e.right,t,`Expression`)},$.ConditionalExpression=function(e,t,n){n(e.test,t,`Expression`),n(e.consequent,t,`Expression`),n(e.alternate,t,`Expression`)},$.NewExpression=$.CallExpression=function(e,t,n){if(n(e.callee,t,`Expression`),e.arguments)for(var r=0,i=e.arguments;r<i.length;r+=1){var a=i[r];n(a,t,`Expression`)}},$.MemberExpression=function(e,t,n){n(e.object,t,`Expression`),e.computed&&n(e.property,t,`Expression`)},$.ExportNamedDeclaration=$.ExportDefaultDeclaration=function(e,t,n){e.declaration&&n(e.declaration,t,e.type===`ExportNamedDeclaration`||e.declaration.id?`Statement`:`Expression`),e.source&&n(e.source,t,`Expression`)},$.ExportAllDeclaration=function(e,t,n){e.exported&&n(e.exported,t),n(e.source,t,`Expression`)},$.ImportDeclaration=function(e,t,n){for(var r=0,i=e.specifiers;r<i.length;r+=1){var a=i[r];n(a,t)}n(e.source,t,`Expression`)},$.ImportExpression=function(e,t,n){n(e.source,t,`Expression`)},$.ImportSpecifier=$.ImportDefaultSpecifier=$.ImportNamespaceSpecifier=$.Identifier=$.Literal=Mq,$.TaggedTemplateExpression=function(e,t,n){n(e.tag,t,`Expression`),n(e.quasi,t,`Expression`)},$.ClassDeclaration=$.ClassExpression=function(e,t,n){return n(e,t,`Class`)},$.Class=function(e,t,n){e.id&&n(e.id,t,`Pattern`),e.superClass&&n(e.superClass,t,`Expression`),n(e.body,t)},$.ClassBody=function(e,t,n){for(var r=0,i=e.body;r<i.length;r+=1){var a=i[r];n(a,t)}},$.MethodDefinition=$.Property=function(e,t,n){e.computed&&n(e.key,t,`Expression`),n(e.value,t,`Expression`)};var Nq={...$,JSXElement:()=>{}},Pq=Dq.Parser.extend((0,Oq.default)());function Fq(e){return e==null?null:e.name}function Iq(e){return e.filter(e=>e.type===`ObjectExpression`||e.type===`ArrayExpression`)}function Lq(e){let t=[];return Aq(e,{ObjectExpression(e,n){t.push(Iq(n).length)},ArrayExpression(e,n){t.push(Iq(n).length)}},Nq),Math.max(...t)}function Rq(e){return{inferredType:{type:`Identifier`,identifier:Fq(e)},ast:e}}function zq(e){return{inferredType:{type:`Literal`},ast:e}}function Bq(e){let t;kq(e.body,{JSXElement(e){t=e}},Nq);let n={type:t==null?`Function`:`Element`,params:e.params,hasParams:e.params.length!==0},r=Fq(e.id);return r!=null&&(n.identifier=r),{inferredType:n,ast:e}}function Vq(e){let t;return kq(e.body,{JSXElement(e){t=e}},Nq),{inferredType:{type:t==null?`Class`:`Element`,identifier:Fq(e.id)},ast:e}}function Hq(e){let t={type:`Element`},n=Fq(e.openingElement.name);return n!=null&&(t.identifier=n),{inferredType:t,ast:e}}function Uq(e){return Fq(e.callee.type===`MemberExpression`?e.callee.property:e.callee)===`shape`?Wq(e.arguments[0]):null}function Wq(e){return{inferredType:{type:`Object`,depth:Lq(e)},ast:e}}function Gq(e){return{inferredType:{type:`Array`,depth:Lq(e)},ast:e}}function Kq(e){switch(e.type){case`Identifier`:return Rq(e);case`Literal`:return zq(e);case`FunctionExpression`:case`ArrowFunctionExpression`:return Bq(e);case`ClassExpression`:return Vq(e);case`JSXElement`:return Hq(e);case`CallExpression`:return Uq(e);case`ObjectExpression`:return Wq(e);case`ArrayExpression`:return Gq(e);default:return null}}function qq(e){let t=Pq.parse(`(${e})`,{ecmaVersion:2020}),n={inferredType:{type:`Unknown`},ast:t};if(t.body[0]!=null){let e=t.body[0];switch(e.type){case`ExpressionStatement`:{let t=Kq(e.expression);t!=null&&(n=t);break}default:break}}return n}function Jq(e){try{return{...qq(e)}}catch{}return{inferredType:{type:`Unknown`}}}var Yq=sG(lq(),1);function Xq(e){return Yq.default.includes(e.toLowerCase())}function Zq({inferredType:e,ast:n}){let{depth:r}=e;if(r<=2){let e=wq(n,!0);if(!l(e))return t(e)}return t(fq,wq(n))}function Qq({inferredType:e,ast:n}){let{depth:r}=e;if(r===1){let e=Sq(n,!0);if(!l(e))return t(e)}return t(dq,Sq(n))}function $q(e,t){return t?`${e}( ... )`:`${e}()`}function eJ(e){return`<${e} />`}function tJ(e){let{type:t,identifier:n}=e;switch(t){case`Function`:return $q(n,e.hasParams);case`Element`:return eJ(n);default:return n}}function nJ({inferredType:e,ast:n}){let{identifier:r}=e;if(r!=null)return t(tJ(e),xq(n));let i=xq(n,!0);return l(i)?t(mq,xq(n)):t(i)}function rJ(e,n){let{inferredType:r}=n,{identifier:i}=r;return i!=null&&!Xq(i)?t(tJ(r),e):l(e)?t(hq,e):t(e)}function iJ(e){try{let t=Jq(e);switch(t.inferredType.type){case`Object`:return Qq(t);case`Function`:return nJ(t);case`Element`:return rJ(e,t);case`Array`:return Zq(t);default:return null}}catch(e){console.error(e)}return null}function aJ(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 oJ(e){return typeof e==`function`}function sJ(e){return typeof e==`string`}var cJ=BK;function lJ(e){return e.$$typeof!=null}function uJ(e,t){let{name:n}=e;return n!==``&&n!==`anonymous`&&n!==t?n:null}var dJ=e=>t(JSON.stringify(e));function fJ(e){let{type:n}=e,{displayName:r}=n,i=cJ(e,{});if(r!=null)return t(eJ(r),i);if(sJ(n)&&Xq(n)){let n=cJ(e,{tabStop:0}).replace(/\r?\n|\r/g,``);if(!l(n))return t(n)}return t(hq,i)}var pJ={string:dJ,object:e=>lJ(e)&&e.type!=null?fJ(e):aJ(e)?Qq(Jq(JSON.stringify(e))):Array.isArray(e)?Zq(Jq(JSON.stringify(e))):t(dq),function:(e,n)=>{let r=!1,i;if(oJ(e.render))r=!0;else if(e.prototype!=null&&oJ(e.prototype.render))r=!0;else{let t;try{i=Jq(e.toString());let{hasParams:n,params:a}=i.inferredType;n?a.length===1&&a[0].type===`ObjectPattern`&&(t=e({})):t=e(),t!=null&&lJ(t)&&(r=!0)}catch{}}let a=uJ(e,n.name);if(a!=null){if(r)return t(eJ(a));i!=null&&(i=Jq(e.toString()));let{hasParams:n}=i.inferredType;return t($q(a,n))}return t(r?hq:mq)},default:e=>t(e.toString())};function mJ(e={}){return{...pJ,...e}}function hJ(e,t,n=pJ){try{switch(typeof e){case`string`:return n.string(e,t);case`object`:return n.object(e,t);case`function`:return n.function(e,t);default:return n.default(e,t)}}catch(e){console.error(e)}return null}function gJ(e,t){let n=e!=null,r=t!=null;if(!n&&!r)return``;let i=[];if(n){let t=e.map(e=>{let t=e.getPrettyName(),n=e.getTypeName();return n==null?t:`${t}: ${n}`});i.push(`(${t.join(`, `)})`)}else i.push(`()`);return r&&i.push(`=> ${t.getTypeName()}`),i.join(` `)}function _J(e,t){let n=e!=null,r=t!=null;if(!n&&!r)return``;let i=[];return n?i.push(`( ... )`):i.push(`()`),r&&i.push(`=> ${t.getTypeName()}`),i.join(` `)}function vJ(e){return e.replace(/,/g,`,\r
1062
- `)}var yJ=150;function bJ({name:e,short:t,compact:n,full:r,inferredType:i}){return{name:e,short:t,compact:n,full:r??t,inferredType:i}}function xJ(e){return e.replace(/PropTypes./g,``).replace(/.isRequired/g,``)}function SJ(e){return e.split(/\r?\n/)}function CJ(e,t=!1){return xJ(Sq(e,t))}function wJ(e,t=!1){return xJ(xq(e,t))}function TJ(e){switch(e){case`Object`:return dq;case`Array`:return fq;case`Class`:return pq;case`Function`:return mq;case`Element`:return hq;default:return uq}}function EJ(e,t){let{inferredType:n,ast:r}=Jq(e),{type:i}=n,a,o,s;switch(i){case`Identifier`:case`Literal`:a=e,o=e;break;case`Object`:{let{depth:e}=n;a=dq,o=e===1?CJ(r,!0):null,s=CJ(r);break}case`Element`:{let{identifier:t}=n;a=t!=null&&!Xq(t)?t:hq,o=SJ(e).length===1?e:null,s=e;break}case`Array`:{let{depth:e}=n;a=fq,o=e<=2?wJ(r,!0):null,s=wJ(r);break}default:a=TJ(i),o=SJ(e).length===1?e:null,s=e;break}return bJ({name:t,short:a,compact:o,full:s,inferredType:i})}function DJ({raw:e}){return e==null?bJ({name:`custom`,short:uq,compact:uq}):EJ(e,`custom`)}function OJ(e){let{jsDocTags:t}=e;return t!=null&&(t.params!=null||t.returns!=null)?bJ({name:`func`,short:_J(t.params,t.returns),compact:null,full:gJ(t.params,t.returns)}):bJ({name:`func`,short:mq,compact:mq})}function kJ(e,t){let{inferredType:n,ast:r}=Jq(`{ ${Object.keys(e.value).map(n=>`${n}: ${zJ(e.value[n],t).full}`).join(`, `)} }`),{depth:i}=n;return bJ({name:`shape`,short:dq,compact:i===1&&r?CJ(r,!0):null,full:r?CJ(r):null})}function AJ(e){return`objectOf(${e})`}function jJ(e,t){let{short:n,compact:r,full:i}=zJ(e.value,t);return bJ({name:`objectOf`,short:AJ(n),compact:r==null?null:AJ(r),full:i&&AJ(i)})}function MJ(e,t){if(Array.isArray(e.value)){let n=e.value.reduce((e,n)=>{let{short:r,compact:i,full:a}=zJ(n,t);return e.short.push(r),e.compact.push(i),e.full.push(a),e},{short:[],compact:[],full:[]});return bJ({name:`union`,short:n.short.join(` | `),compact:n.compact.every(e=>e!=null)?n.compact.join(` | `):null,full:n.full.join(` | `)})}return bJ({name:`union`,short:e.value,compact:null})}function NJ({value:e,computed:t}){return t?EJ(e,`enumvalue`):bJ({name:`enumvalue`,short:e,compact:e})}function PJ(e){if(Array.isArray(e.value)){let t=e.value.reduce((e,t)=>{let{short:n,compact:r,full:i}=NJ(t);return e.short.push(n),e.compact.push(r),e.full.push(i),e},{short:[],compact:[],full:[]});return bJ({name:`enum`,short:t.short.join(` | `),compact:t.compact.every(e=>e!=null)?t.compact.join(` | `):null,full:t.full.join(` | `)})}return bJ({name:`enum`,short:e.value,compact:e.value})}function FJ(e){return`${e}[]`}function IJ(e){return`[${e}]`}function LJ(e,t,n){return bJ({name:`arrayOf`,short:FJ(e),compact:t==null?null:IJ(t),full:n&&IJ(n)})}function RJ(e,t){let{name:n,short:r,compact:i,full:a,inferredType:o}=zJ(e.value,t);if(n===`custom`){if(o===`Object`)return LJ(r,i,a)}else if(n===`shape`)return LJ(r,i,a);return bJ({name:`arrayOf`,short:FJ(r),compact:FJ(r)})}function zJ(e,t){try{switch(e.name){case`custom`:return DJ(e);case`func`:return OJ(t);case`shape`:return kJ(e,t);case`instanceOf`:return bJ({name:`instanceOf`,short:e.value,compact:e.value});case`objectOf`:return jJ(e,t);case`union`:return MJ(e,t);case`enum`:return PJ(e);case`arrayOf`:return RJ(e,t);default:return bJ({name:e.name,short:e.name,compact:e.name})}}catch(e){console.error(e)}return bJ({name:`unknown`,short:`unknown`,compact:`unknown`})}function BJ(e){let{type:n}=e.docgenInfo;if(n==null)return null;try{switch(n.name){case`custom`:case`shape`:case`instanceOf`:case`objectOf`:case`union`:case`enum`:case`arrayOf`:{let{short:r,compact:i,full:a}=zJ(n,e);return i!=null&&!ne(i)?t(i):a?t(r,a):t(r)}case`func`:{let{short:r,full:i}=zJ(n,e),a=r,o;return i&&i.length<yJ?a=i:i&&(o=vJ(i)),t(a,o)}default:return null}}catch(e){console.error(e)}return null}var VJ=mJ({function:(e,{name:n,type:r})=>{let i=r?.summary===`element`||r?.summary===`elementType`,a=uJ(e,n);if(a!=null){if(i)return t(eJ(a));let{hasParams:n}=Jq(e.toString()).inferredType;return t($q(a,n))}return t(i?hq:mq)}});function HJ(e,t){let{propTypes:n}=t;return n==null?e:Object.keys(n).map(t=>e.find(e=>e.name===t)).filter(Boolean)}function UJ(e,t){let{propDef:n}=e,r=BJ(e);r!=null&&(n.type=r);let{defaultValue:i}=e.docgenInfo;if(i!=null&&i.value!=null){let e=iJ(i.value);e!=null&&(n.defaultValue=e)}else if(t!=null){let e=hJ(t,n,VJ);e!=null&&(n.defaultValue=e)}return n}function WJ(e,t){let n=t.defaultProps==null?{}:t.defaultProps;return HJ(e.map(e=>UJ(e,n[e.propDef.name])),t)}function GJ(e,t){let{propDef:n}=e,{defaultValue:r}=e.docgenInfo;if(r!=null&&r.value!=null){let e=iJ(r.value);e!=null&&(n.defaultValue=e)}else if(t!=null){let e=hJ(t,n);e!=null&&(n.defaultValue=e)}return n}function KJ(e){return e.map(e=>GJ(e))}function qJ(e,t){let n=e;!o(e)&&!e.propTypes&&MG(e)&&(n=e.type);let r=v(n,t);if(r.length===0)return[];switch(r[0].typeSystem){case ce.JAVASCRIPT:return WJ(r,e);case ce.TYPESCRIPT:return KJ(r);default:return r.map(e=>e.propDef)}}var JJ=e=>({rows:qJ(e,`props`)}),YJ={docs:{extractArgTypes:e=>{if(e){let{rows:t}=JJ(e);if(t)return t.reduce((e,t)=>{let{name:n,description:r,type:i,sbType:a,defaultValue:o,jsDocTags:s,required:c}=t;return e[n]={name:n,description:r,type:{required:c,...a},table:{type:i??void 0,jsDocTags:s,defaultValue:o??void 0}},e},{})}return null},extractComponentDescription:s}},XJ=[y],ZJ=Ce({argTypesEnhancers:()=>XJ,parameters:()=>YJ});aG({},{applyDecorators:()=>fY,decorators:()=>pY,parameters:()=>mY});var{logger:QJ}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{emitTransformCode:$J,useEffect:eY,useRef:tY}=__STORYBOOK_MODULE_PREVIEW_API__,nY=BK,rY=e=>e.charAt(0).toUpperCase()+e.slice(1),iY=e=>(e.$$typeof||e).toString().replace(/^Symbol\((.*)\)$/,`$1`).split(`.`).map(e=>e.split(`_`).map(rY).join(``)).join(`.`);function aY(e){if((0,Q.isValidElement)(e)){let t=Object.keys(e.props).reduce((t,n)=>(t[n]=aY(e.props[n]),t),{});return{...e,props:t,_owner:null}}return Array.isArray(e)?e.map(aY):e}var oY=(e,t)=>{if(typeof e>`u`)return QJ.warn(`Too many skip or undefined component`),null;let n=e,r=n.type;for(let e=0;e<t?.skip;e+=1){if(typeof n>`u`)return QJ.warn(`Cannot skip undefined element`),null;if(Q.Children.count(n)>1)return QJ.warn(`Trying to skip an array of elements`),null;typeof n.props.children>`u`?(QJ.warn(`Not enough children to skip elements.`),typeof n.type==`function`&&n.type.name===``&&(n=Q.createElement(r,{...n.props}))):n=typeof n.props.children==`function`?n.props.children():n.props.children}let i;i=typeof t?.displayName==`string`?{showFunctions:!0,displayName:()=>t.displayName}:{displayName:e=>e.type.displayName?e.type.displayName:b(e.type,`displayName`)?b(e.type,`displayName`):e.type.render?.displayName?e.type.render.displayName:typeof e.type==`symbol`||e.type.$$typeof&&typeof e.type.$$typeof==`symbol`?iY(e.type):e.type.name&&e.type.name!==`_default`?e.type.name:typeof e.type==`function`?`No Display Name`:NG(e.type)?e.type.render.name:MG(e.type)?e.type.type.name:e.type};let a={...i,filterProps:(e,t)=>e!==void 0,...t};return Q.Children.map(e,e=>{let t=typeof e==`number`?e.toString():e,n=(typeof nY==`function`?nY:nY.default)(aY(t),a);if(n.indexOf(`&quot;`)>-1){let e=n.match(/\S+=\\"([^"]*)\\"/g);e&&e.forEach(e=>{n=n.replace(e,e.replace(/&quot;/g,`'`))})}return n}).join(`
1063
- `).replace(/function\s+noRefCheck\(\)\s*\{\}/g,`() => {}`)},sY={skip:0,showFunctions:!1,enableBeautify:!0,showDefaultProps:!1},cY=e=>{let t=e?.parameters.docs?.source,n=e?.parameters.__isArgsStory;return t?.type===h.DYNAMIC?!1:!n||t?.code||t?.type===h.CODE},lY=e=>e.type?.displayName===`MDXCreateElement`&&!!e.props?.mdxType,uY=e=>{if(!lY(e))return e;let{mdxType:t,originalType:n,children:r,...i}=e.props,a=[];return r&&(a=(Array.isArray(r)?r:[r]).map(uY)),(0,Q.createElement)(n,i,...a)},dY=(e,t)=>{let n=tY(void 0),r=e(),i=cY(t),a={...sY,...t?.parameters.jsx||{}},o=t.originalStoryFn(t.args,t);return eY(()=>{if(i)return;let e=oY(uY(o),a);e&&n.current!==e&&($J(e,t),n.current=e)}),r},fY=(e,t)=>{let n=t.findIndex(e=>e.originalFn===dY);return ZW(e,n===-1?t:[...t.splice(n,1),...t])},pY=`FEATURES`in globalThis&&globalThis?.FEATURES?.experimentalCodeExamples?[]:[dY],mY={docs:{story:{inline:!0}}},hY=Ce({applyDecorators:()=>fY,decorators:()=>pY,parameters:()=>mY}),gY=Object.defineProperty,_Y=(e,t)=>{for(var n in t)gY(e,n,{get:t[n],enumerable:!0})},vY=`themes`,yY=`storybook/${vY}`,bY=`theme`;`${yY}`;var xY={},SY={REGISTER_THEMES:`${yY}/REGISTER_THEMES`};_Y({},{initialGlobals:()=>CY});var CY={[bY]:``},wY=Ce({initialGlobals:()=>CY}),TY=Object.create,EY=Object.defineProperty,DY=Object.getOwnPropertyDescriptor,OY=Object.getOwnPropertyNames,kY=Object.getPrototypeOf,AY=Object.prototype.hasOwnProperty,jY=(e,t)=>function(){return t||(0,e[OY(e)[0]])((t={exports:{}}).exports,t),t.exports},MY=(e,t)=>{for(var n in t)EY(e,n,{get:t[n],enumerable:!0})},NY=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of OY(t))!AY.call(e,i)&&i!==n&&EY(e,i,{get:()=>t[i],enumerable:!(r=DY(t,i))||r.enumerable});return e},PY=(e,t,n)=>(n=e==null?{}:TY(kY(e)),NY(t||!e||!e.__esModule?EY(n,`default`,{value:e,enumerable:!0}):n,e));MY({},{parameters:()=>IY});var FY=Object.entries(globalThis.TAGS_OPTIONS??{}).reduce((e,t)=>{let[n,r]=t;return r.excludeFromDocsStories&&(e[n]=!0),e},{}),IY={docs:{renderer:async()=>{let{DocsRenderer:e}=await le(async()=>{let{DocsRenderer:e}=await import(`./DocsRenderer-LL677BLK-IiQab3mR.js`);return{DocsRenderer:e}},__vite__mapDeps([11,12,13,14,15]),import.meta.url);return new e},stories:{filter:e=>(e.tags||[]).filter(e=>FY[e]).length===0&&!e.parameters.docs?.disable}}},LY=Ce({parameters:()=>IY});function RY(e){var t=[...arguments].slice(1),n=Array.from(typeof e==`string`?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,``);var r=n.reduce(function(e,t){var n=t.match(/\n([\t ]+|(?!\s).)/g);return n?e.concat(n.map(function(e){return e.match(/[\t ]/g)?.length??0})):e},[]);if(r.length){var i=RegExp(`
1064
- [ ]{`+Math.min.apply(Math,r)+`}`,`g`);n=n.map(function(e){return e.replace(i,`
1065
- `)})}n[0]=n[0].replace(/^\r?\n/,``);var a=n[0];return t.forEach(function(e,t){var r=a.match(/(?:^|\n)( *)$/),i=r?r[1]:``,o=e;typeof e==`string`&&e.includes(`
1066
- `)&&(o=String(e).split(`
1067
- `).map(function(e,t){return t===0?e:``+i+e}).join(`
1068
- `)),a+=o+n[t+1]}),a}var{useEffect:zY}=__STORYBOOK_MODULE_PREVIEW_API__;_Y({},{initializeThemeState:()=>GY,pluckThemeFromContext:()=>UY,useThemeParameters:()=>WY});var{deprecate:BY}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{addons:VY,useParameter:HY}=__STORYBOOK_MODULE_PREVIEW_API__;function UY({globals:e}){return e.theme||``}function WY(e){return BY(RY`The useThemeParameters function is deprecated. Please access parameters via the context directly instead e.g.
1069
- - const { themeOverride } = context.parameters.themes ?? {};
1070
- `),e?e.parameters.themes??xY:HY(vY,xY)}function GY(e,t){VY.getChannel().emit(SY.REGISTER_THEMES,{defaultTheme:t,themes:e})}var{useEffect:KY}=__STORYBOOK_MODULE_PREVIEW_API__,qY=`html`,JY=`data-theme`,YY=({themes:e,defaultTheme:t,parentSelector:n=qY,attributeName:r=JY})=>(GY(Object.keys(e),t),(i,a)=>{let{themeOverride:o}=a.parameters.themes??{},s=UY(a);return KY(()=>{let i=document.querySelector(n),a=o||s||t;i&&i.setAttribute(r,e[a])},[o,s]),i()}),{useMemo:XY}=__STORYBOOK_MODULE_PREVIEW_API__,ZY=e=>`control-${e.replace(/\s+/g,`-`)}`,QY=e=>`set-${e.replace(/\s+/g,`-`)}`,$Y=Se((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=typeof setTimeout==`function`?setTimeout:null,_=typeof clearTimeout==`function`?clearTimeout:null,v=typeof setImmediate<`u`?setImmediate:null;typeof navigator<`u`&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function b(e){if(h=!1,y(e),!m)if(n(c)!==null)m=!0,M(x);else{var t=n(l);t!==null&&ee(b,t.startTime-e)}}function x(t,i){m=!1,h&&(h=!1,_(w),w=-1),p=!0;var a=f;try{for(y(i),d=n(c);d!==null&&(!(d.expirationTime>i)||t&&!D());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=i);i=e.unstable_now(),typeof s==`function`?d.callback=s:d===n(c)&&r(c),y(i)}else r(c);d=n(c)}if(d!==null)var u=!0;else{var g=n(l);g!==null&&ee(b,g.startTime-i),u=!1}return u}finally{d=null,f=a,p=!1}}var S=!1,C=null,w=-1,T=5,E=-1;function D(){return!(e.unstable_now()-E<T)}function O(){if(C!==null){var t=e.unstable_now();E=t;var n=!0;try{n=C(!0,t)}finally{n?k():(S=!1,C=null)}}else S=!1}var k;if(typeof v==`function`)k=function(){v(O)};else if(typeof MessageChannel<`u`){var A=new MessageChannel,j=A.port2;A.port1.onmessage=O,k=function(){j.postMessage(null)}}else k=function(){g(O,0)};function M(e){C=e,S||(S=!0,k())}function ee(t,n){w=g(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){m||p||(m=!0,M(x))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):T=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(_(w),w=-1):h=!0,ee(b,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,M(x))),r},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),eX=Se(((e,t)=>{t.exports=$Y()})),tX=Se((e=>{var t=YW(),n=eX();function r(e){for(var t=`https://reactjs.org/docs/error-decoder.html?invariant=`+e,n=1;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n]);return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}var i=new Set,a={};function o(e,t){s(e,t),s(e+`Capture`,t)}function s(e,t){for(a[e]=t,e=0;e<t.length;e++)i.add(t[e])}var c=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),l=Object.prototype.hasOwnProperty,u=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,d={},f={};function p(e){return l.call(f,e)?!0:l.call(d,e)?!1:u.test(e)?f[e]=!0:(d[e]=!0,!1)}function m(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case`function`:case`symbol`:return!0;case`boolean`:return r?!1:n===null?(e=e.toLowerCase().slice(0,5),e!==`data-`&&e!==`aria-`):!n.acceptsBooleans;default:return!1}}function h(e,t,n,r){if(t==null||m(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function g(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var _={};`children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style`.split(` `).forEach(function(e){_[e]=new g(e,0,!1,e,null,!1,!1)}),[[`acceptCharset`,`accept-charset`],[`className`,`class`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`]].forEach(function(e){var t=e[0];_[t]=new g(t,1,!1,e[1],null,!1,!1)}),[`contentEditable`,`draggable`,`spellCheck`,`value`].forEach(function(e){_[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)}),[`autoReverse`,`externalResourcesRequired`,`focusable`,`preserveAlpha`].forEach(function(e){_[e]=new g(e,2,!1,e,null,!1,!1)}),`allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope`.split(` `).forEach(function(e){_[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)}),[`checked`,`multiple`,`muted`,`selected`].forEach(function(e){_[e]=new g(e,3,!0,e,null,!1,!1)}),[`capture`,`download`].forEach(function(e){_[e]=new g(e,4,!1,e,null,!1,!1)}),[`cols`,`rows`,`size`,`span`].forEach(function(e){_[e]=new g(e,6,!1,e,null,!1,!1)}),[`rowSpan`,`start`].forEach(function(e){_[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)});var v=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}`accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height`.split(` `).forEach(function(e){var t=e.replace(v,y);_[t]=new g(t,1,!1,e,null,!1,!1)}),`xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type`.split(` `).forEach(function(e){var t=e.replace(v,y);_[t]=new g(t,1,!1,e,`http://www.w3.org/1999/xlink`,!1,!1)}),[`xml:base`,`xml:lang`,`xml:space`].forEach(function(e){var t=e.replace(v,y);_[t]=new g(t,1,!1,e,`http://www.w3.org/XML/1998/namespace`,!1,!1)}),[`tabIndex`,`crossOrigin`].forEach(function(e){_[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)}),_.xlinkHref=new g(`xlinkHref`,1,!1,`xlink:href`,`http://www.w3.org/1999/xlink`,!0,!1),[`src`,`href`,`action`,`formAction`].forEach(function(e){_[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)});function b(e,t,n,r){var i=_.hasOwnProperty(t)?_[t]:null;(i===null?r||!(2<t.length)||t[0]!==`o`&&t[0]!==`O`||t[1]!==`n`&&t[1]!==`N`:i.type!==0)&&(h(t,n,i,r)&&(n=null),r||i===null?p(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,``+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:``:n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&!0===n?``:``+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var x=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,S=Symbol.for(`react.element`),C=Symbol.for(`react.portal`),w=Symbol.for(`react.fragment`),T=Symbol.for(`react.strict_mode`),E=Symbol.for(`react.profiler`),D=Symbol.for(`react.provider`),O=Symbol.for(`react.context`),k=Symbol.for(`react.forward_ref`),A=Symbol.for(`react.suspense`),j=Symbol.for(`react.suspense_list`),M=Symbol.for(`react.memo`),ee=Symbol.for(`react.lazy`),N=Symbol.for(`react.offscreen`),te=Symbol.iterator;function ne(e){return typeof e!=`object`||!e?null:(e=te&&e[te]||e[`@@iterator`],typeof e==`function`?e:null)}var re=Object.assign,P;function ie(e){if(P===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);P=t&&t[1]||``}return`
1071
- `+P+e}var ae=!1;function oe(e,t){if(!e||ae)return``;ae=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,`props`,{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&typeof t.stack==`string`){for(var i=t.stack.split(`
1072
- `),a=r.stack.split(`
1073
- `),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(o!==1||s!==1)do if(o--,s--,0>s||i[o]!==a[s]){var c=`
1074
- `+i[o].replace(` at new `,` at `);return e.displayName&&c.includes(`<anonymous>`)&&(c=c.replace(`<anonymous>`,e.displayName)),c}while(1<=o&&0<=s);break}}}finally{ae=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:``)?ie(e):``}function F(e){switch(e.tag){case 5:return ie(e.type);case 16:return ie(`Lazy`);case 13:return ie(`Suspense`);case 19:return ie(`SuspenseList`);case 0:case 2:case 15:return e=oe(e.type,!1),e;case 11:return e=oe(e.type.render,!1),e;case 1:return e=oe(e.type,!0),e;default:return``}}function se(e){if(e==null)return null;if(typeof e==`function`)return e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case w:return`Fragment`;case C:return`Portal`;case E:return`Profiler`;case T:return`StrictMode`;case A:return`Suspense`;case j:return`SuspenseList`}if(typeof e==`object`)switch(e.$$typeof){case O:return(e.displayName||`Context`)+`.Consumer`;case D:return(e._context.displayName||`Context`)+`.Provider`;case k:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case M:return t=e.displayName||null,t===null?se(e.type)||`Memo`:t;case ee:t=e._payload,e=e._init;try{return se(e(t))}catch{}}return null}function ce(e){var t=e.type;switch(e.tag){case 24:return`Cache`;case 9:return(t.displayName||`Context`)+`.Consumer`;case 10:return(t._context.displayName||`Context`)+`.Provider`;case 18:return`DehydratedFragment`;case 11:return e=t.render,e=e.displayName||e.name||``,t.displayName||(e===``?`ForwardRef`:`ForwardRef(`+e+`)`);case 7:return`Fragment`;case 5:return t;case 4:return`Portal`;case 3:return`Root`;case 6:return`Text`;case 16:return se(t);case 8:return t===T?`StrictMode`:`Mode`;case 22:return`Offscreen`;case 12:return`Profiler`;case 21:return`Scope`;case 13:return`Suspense`;case 19:return`SuspenseList`;case 25:return`TracingMarker`;case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t==`function`)return t.displayName||t.name||null;if(typeof t==`string`)return t}return null}function le(e){switch(typeof e){case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function ue(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function de(e){var t=ue(e)?`checked`:`value`,n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=``+e[t];if(!e.hasOwnProperty(t)&&n!==void 0&&typeof n.get==`function`&&typeof n.set==`function`){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function fe(e){e._valueTracker||=de(e)}function pe(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=ue(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function me(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function I(e,t){var n=t.checked;return re({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function he(e,t){var n=t.defaultValue==null?``:t.defaultValue,r=t.checked==null?t.defaultChecked:t.checked;n=le(t.value==null?n:t.value),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type===`checkbox`||t.type===`radio`?t.checked!=null:t.value!=null}}function ge(e,t){t=t.checked,t!=null&&b(e,`checked`,t,!1)}function _e(e,t){ge(e,t);var n=le(t.value),r=t.type;if(n!=null)r===`number`?(n===0&&e.value===``||e.value!=n)&&(e.value=``+n):e.value!==``+n&&(e.value=``+n);else if(r===`submit`||r===`reset`){e.removeAttribute(`value`);return}t.hasOwnProperty(`value`)?ye(e,t.type,n):t.hasOwnProperty(`defaultValue`)&&ye(e,t.type,le(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ve(e,t,n){if(t.hasOwnProperty(`value`)||t.hasOwnProperty(`defaultValue`)){var r=t.type;if(!(r!==`submit`&&r!==`reset`||t.value!==void 0&&t.value!==null))return;t=``+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==``&&(e.name=``),e.defaultChecked=!!e._wrapperState.initialChecked,n!==``&&(e.name=n)}function ye(e,t,n){(t!==`number`||me(e.ownerDocument)!==e)&&(n==null?e.defaultValue=``+e._wrapperState.initialValue:e.defaultValue!==``+n&&(e.defaultValue=``+n))}var be=Array.isArray;function xe(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+le(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function L(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(r(91));return re({},t,{value:void 0,defaultValue:void 0,children:``+e._wrapperState.initialValue})}function Se(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(r(92));if(be(n)){if(1<n.length)throw Error(r(93));n=n[0]}t=n}t??=``,n=t}e._wrapperState={initialValue:le(n)}}function Ce(e,t){var n=le(t.value),r=le(t.defaultValue);n!=null&&(n=``+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=``+r)}function we(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==``&&t!==null&&(e.value=t)}function R(e){switch(e){case`svg`:return`http://www.w3.org/2000/svg`;case`math`:return`http://www.w3.org/1998/Math/MathML`;default:return`http://www.w3.org/1999/xhtml`}}function Te(e,t){return e==null||e===`http://www.w3.org/1999/xhtml`?R(t):e===`http://www.w3.org/2000/svg`&&t===`foreignObject`?`http://www.w3.org/1999/xhtml`:e}var Ee,De=function(e){return typeof MSApp<`u`&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!==`http://www.w3.org/2000/svg`||`innerHTML`in e)e.innerHTML=t;else{for(Ee||=document.createElement(`div`),Ee.innerHTML=`<svg>`+t.valueOf().toString()+`</svg>`,t=Ee.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function z(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Oe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ke=[`Webkit`,`ms`,`Moz`,`O`];Object.keys(Oe).forEach(function(e){ke.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Oe[t]=Oe[e]})});function Ae(e,t,n){return t==null||typeof t==`boolean`||t===``?``:n||typeof t!=`number`||t===0||Oe.hasOwnProperty(e)&&Oe[e]?(``+t).trim():t+`px`}function je(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=n.indexOf(`--`)===0,i=Ae(n,t[n],r);n===`float`&&(n=`cssFloat`),r?e.setProperty(n,i):e[n]=i}}var Me=re({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function B(e,t){if(t){if(Me[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(r(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(r(60));if(typeof t.dangerouslySetInnerHTML!=`object`||!(`__html`in t.dangerouslySetInnerHTML))throw Error(r(61))}if(t.style!=null&&typeof t.style!=`object`)throw Error(r(62))}}function Ne(e,t){if(e.indexOf(`-`)===-1)return typeof t.is==`string`;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var V=null;function H(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Pe=null,Fe=null,Ie=null;function Le(e){if(e=Ii(e)){if(typeof Pe!=`function`)throw Error(r(280));var t=e.stateNode;t&&(t=Ri(t),Pe(e.stateNode,e.type,t))}}function Re(e){Fe?Ie?Ie.push(e):Ie=[e]:Fe=e}function ze(){if(Fe){var e=Fe,t=Ie;if(Ie=Fe=null,Le(e),t)for(e=0;e<t.length;e++)Le(t[e])}}function Be(e,t){return e(t)}function U(){}var Ve=!1;function He(e,t,n){if(Ve)return e(t,n);Ve=!0;try{return Be(e,t,n)}finally{Ve=!1,(Fe!==null||Ie!==null)&&(U(),ze())}}function Ue(e,t){var n=e.stateNode;if(n===null)return null;var i=Ri(n);if(i===null)return null;n=i[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(i=!i.disabled)||(e=e.type,i=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!i;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(r(231,t,typeof n));return n}var We=!1;if(c)try{var W={};Object.defineProperty(W,`passive`,{get:function(){We=!0}}),window.addEventListener(`test`,W,W),window.removeEventListener(`test`,W,W)}catch{We=!1}function Ge(e,t,n,r,i,a,o,s,c){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var Ke=!1,qe=null,Je=!1,Ye=null,Xe={onError:function(e){Ke=!0,qe=e}};function Ze(e,t,n,r,i,a,o,s,c){Ke=!1,qe=null,Ge.apply(Xe,arguments)}function Qe(e,t,n,i,a,o,s,c,l){if(Ze.apply(this,arguments),Ke){if(Ke){var u=qe;Ke=!1,qe=null}else throw Error(r(198));Je||(Je=!0,Ye=u)}}function $e(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function et(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function tt(e){if($e(e)!==e)throw Error(r(188))}function nt(e){var t=e.alternate;if(!t){if(t=$e(e),t===null)throw Error(r(188));return t===e?e:null}for(var n=e,i=t;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(i=a.return,i!==null){n=i;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return tt(a),e;if(o===i)return tt(a),t;o=o.sibling}throw Error(r(188))}if(n.return!==i.return)n=a,i=o;else{for(var s=!1,c=a.child;c;){if(c===n){s=!0,n=a,i=o;break}if(c===i){s=!0,i=a,n=o;break}c=c.sibling}if(!s){for(c=o.child;c;){if(c===n){s=!0,n=o,i=a;break}if(c===i){s=!0,i=o,n=a;break}c=c.sibling}if(!s)throw Error(r(189))}}if(n.alternate!==i)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?e:t}function rt(e){return e=nt(e),e===null?null:it(e)}function it(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=it(e);if(t!==null)return t;e=e.sibling}return null}var at=n.unstable_scheduleCallback,ot=n.unstable_cancelCallback,st=n.unstable_shouldYield,ct=n.unstable_requestPaint,lt=n.unstable_now,ut=n.unstable_getCurrentPriorityLevel,dt=n.unstable_ImmediatePriority,ft=n.unstable_UserBlockingPriority,pt=n.unstable_NormalPriority,mt=n.unstable_LowPriority,ht=n.unstable_IdlePriority,gt=null,_t=null;function vt(e){if(_t&&typeof _t.onCommitFiberRoot==`function`)try{_t.onCommitFiberRoot(gt,e,void 0,(e.current.flags&128)==128)}catch{}}var yt=Math.clz32?Math.clz32:St,bt=Math.log,xt=Math.LN2;function St(e){return e>>>=0,e===0?32:31-(bt(e)/xt|0)|0}var Ct=64,wt=4194304;function Tt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Et(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s===0?(a&=o,a!==0&&(r=Tt(a))):r=Tt(s)}else o=n&~i,o===0?a!==0&&(r=Tt(a)):r=Tt(o);if(r===0)return 0;if(t!==0&&t!==r&&(t&i)===0&&(i=r&-r,a=t&-t,i>=a||i===16&&a&4194240))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-yt(t),i=1<<n,r|=e[n],t&=~i;return r}function Dt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ot(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-yt(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Dt(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}}function kt(e){return e=e.pendingLanes&-1073741825,e===0?e&1073741824?1073741824:0:e}function At(){var e=Ct;return Ct<<=1,!(Ct&4194240)&&(Ct=64),e}function jt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Mt(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-yt(t),e[t]=n}function Nt(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-yt(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}function Pt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-yt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Ft=0;function It(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Lt,Rt,zt,Bt,Vt,Ht=!1,Ut=[],Wt=null,Gt=null,Kt=null,qt=new Map,Jt=new Map,Yt=[],Xt=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit`.split(` `);function Zt(e,t){switch(e){case`focusin`:case`focusout`:Wt=null;break;case`dragenter`:case`dragleave`:Gt=null;break;case`mouseover`:case`mouseout`:Kt=null;break;case`pointerover`:case`pointerout`:qt.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Jt.delete(t.pointerId)}}function Qt(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Ii(t),t!==null&&Rt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function $t(e,t,n,r,i){switch(t){case`focusin`:return Wt=Qt(Wt,e,t,n,r,i),!0;case`dragenter`:return Gt=Qt(Gt,e,t,n,r,i),!0;case`mouseover`:return Kt=Qt(Kt,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return qt.set(a,Qt(qt.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Jt.set(a,Qt(Jt.get(a)||null,e,t,n,r,i)),!0}return!1}function en(e){var t=Fi(e.target);if(t!==null){var n=$e(t);if(n!==null){if(t=n.tag,t===13){if(t=et(n),t!==null){e.blockedOn=t,Vt(e.priority,function(){zt(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function tn(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=pn(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);V=r,n.target.dispatchEvent(r),V=null}else return t=Ii(n),t!==null&&Rt(t),e.blockedOn=n,!1;t.shift()}return!0}function nn(e,t,n){tn(e)&&n.delete(t)}function rn(){Ht=!1,Wt!==null&&tn(Wt)&&(Wt=null),Gt!==null&&tn(Gt)&&(Gt=null),Kt!==null&&tn(Kt)&&(Kt=null),qt.forEach(nn),Jt.forEach(nn)}function an(e,t){e.blockedOn===t&&(e.blockedOn=null,Ht||(Ht=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,rn)))}function on(e){function t(t){return an(t,e)}if(0<Ut.length){an(Ut[0],e);for(var n=1;n<Ut.length;n++){var r=Ut[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Wt!==null&&an(Wt,e),Gt!==null&&an(Gt,e),Kt!==null&&an(Kt,e),qt.forEach(t),Jt.forEach(t),n=0;n<Yt.length;n++)r=Yt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Yt.length&&(n=Yt[0],n.blockedOn===null);)en(n),n.blockedOn===null&&Yt.shift()}var sn=x.ReactCurrentBatchConfig,cn=!0;function ln(e,t,n,r){var i=Ft,a=sn.transition;sn.transition=null;try{Ft=1,dn(e,t,n,r)}finally{Ft=i,sn.transition=a}}function un(e,t,n,r){var i=Ft,a=sn.transition;sn.transition=null;try{Ft=4,dn(e,t,n,r)}finally{Ft=i,sn.transition=a}}function dn(e,t,n,r){if(cn){var i=pn(e,t,n,r);if(i===null)si(e,t,r,fn,n),Zt(e,r);else if($t(i,e,t,n,r))r.stopPropagation();else if(Zt(e,r),t&4&&-1<Xt.indexOf(e)){for(;i!==null;){var a=Ii(i);if(a!==null&&Lt(a),a=pn(e,t,n,r),a===null&&si(e,t,r,fn,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else si(e,t,r,null,n)}}var fn=null;function pn(e,t,n,r){if(fn=null,e=H(r),e=Fi(e),e!==null)if(t=$e(e),t===null)e=null;else if(n=t.tag,n===13){if(e=et(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return fn=e,null}function mn(e){switch(e){case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 1;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`toggle`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 4;case`message`:switch(ut()){case dt:return 1;case ft:return 4;case pt:case mt:return 16;case ht:return 536870912;default:return 16}default:return 16}}var hn=null,gn=null,_n=null;function vn(){if(_n)return _n;var e,t=gn,n=t.length,r,i=`value`in hn?hn.value:hn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return _n=i.slice(e,1<r?1-r:void 0)}function yn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function bn(){return!0}function xn(){return!1}function Sn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?bn:xn,this.isPropagationStopped=xn,this}return re(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=bn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=bn)},persist:function(){},isPersistent:bn}),t}var Cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wn=Sn(Cn),Tn=re({},Cn,{view:0,detail:0}),En=Sn(Tn),Dn,On,kn,An=re({},Tn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Vn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==kn&&(kn&&e.type===`mousemove`?(Dn=e.screenX-kn.screenX,On=e.screenY-kn.screenY):On=Dn=0,kn=e),Dn)},movementY:function(e){return`movementY`in e?e.movementY:On}}),jn=Sn(An),Mn=Sn(re({},An,{dataTransfer:0})),Nn=Sn(re({},Tn,{relatedTarget:0})),Pn=Sn(re({},Cn,{animationName:0,elapsedTime:0,pseudoElement:0})),Fn=Sn(re({},Cn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),In=Sn(re({},Cn,{data:0})),Ln={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Rn={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},zn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Bn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=zn[e])?!!t[e]:!1}function Vn(){return Bn}var Hn=Sn(re({},Tn,{key:function(e){if(e.key){var t=Ln[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=yn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Rn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vn,charCode:function(e){return e.type===`keypress`?yn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?yn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Un=Sn(re({},An,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Wn=Sn(re({},Tn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vn})),Gn=Sn(re({},Cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Kn=Sn(re({},An,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),qn=[9,13,27,32],Jn=c&&`CompositionEvent`in window,Yn=null;c&&`documentMode`in document&&(Yn=document.documentMode);var Xn=c&&`TextEvent`in window&&!Yn,Zn=c&&(!Jn||Yn&&8<Yn&&11>=Yn),Qn=` `,$n=!1;function er(e,t){switch(e){case`keyup`:return qn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function tr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var nr=!1;function rr(e,t){switch(e){case`compositionend`:return tr(t);case`keypress`:return t.which===32?($n=!0,Qn):null;case`textInput`:return e=t.data,e===Qn&&$n?null:e;default:return null}}function ir(e,t){if(nr)return e===`compositionend`||!Jn&&er(e,t)?(e=vn(),_n=gn=hn=null,nr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return Zn&&t.locale!==`ko`?null:t.data;default:return null}}var ar={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function or(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!ar[e.type]:t===`textarea`}function sr(e,t,n,r){Re(r),t=li(t,`onChange`),0<t.length&&(n=new wn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var cr=null,lr=null;function ur(e){ti(e,0)}function dr(e){if(pe(Li(e)))return e}function fr(e,t){if(e===`change`)return t}var pr=!1;if(c){var mr;if(c){var hr=`oninput`in document;if(!hr){var gr=document.createElement(`div`);gr.setAttribute(`oninput`,`return;`),hr=typeof gr.oninput==`function`}mr=hr}else mr=!1;pr=mr&&(!document.documentMode||9<document.documentMode)}function _r(){cr&&(cr.detachEvent(`onpropertychange`,vr),lr=cr=null)}function vr(e){if(e.propertyName===`value`&&dr(lr)){var t=[];sr(t,lr,e,H(e)),He(ur,t)}}function yr(e,t,n){e===`focusin`?(_r(),cr=t,lr=n,cr.attachEvent(`onpropertychange`,vr)):e===`focusout`&&_r()}function br(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return dr(lr)}function xr(e,t){if(e===`click`)return dr(t)}function Sr(e,t){if(e===`input`||e===`change`)return dr(t)}function Cr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var wr=typeof Object.is==`function`?Object.is:Cr;function Tr(e,t){if(wr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!l.call(t,i)||!wr(e[i],t[i]))return!1}return!0}function Er(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Dr(e,t){var n=Er(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Er(n)}}function Or(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Or(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function kr(){for(var e=window,t=me();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=me(e.document)}return t}function Ar(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}function jr(e){var t=kr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Or(n.ownerDocument.documentElement,n)){if(r!==null&&Ar(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),`selectionStart`in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=Dr(n,a);var o=Dr(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus==`function`&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Mr=c&&`documentMode`in document&&11>=document.documentMode,Nr=null,Pr=null,Fr=null,Ir=!1;function Lr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ir||Nr==null||Nr!==me(r)||(r=Nr,`selectionStart`in r&&Ar(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Fr&&Tr(Fr,r)||(Fr=r,r=li(Pr,`onSelect`),0<r.length&&(t=new wn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Nr)))}function Rr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var zr={animationend:Rr(`Animation`,`AnimationEnd`),animationiteration:Rr(`Animation`,`AnimationIteration`),animationstart:Rr(`Animation`,`AnimationStart`),transitionend:Rr(`Transition`,`TransitionEnd`)},Br={},Vr={};c&&(Vr=document.createElement(`div`).style,`AnimationEvent`in window||(delete zr.animationend.animation,delete zr.animationiteration.animation,delete zr.animationstart.animation),`TransitionEvent`in window||delete zr.transitionend.transition);function Hr(e){if(Br[e])return Br[e];if(!zr[e])return e;var t=zr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Vr)return Br[e]=t[n];return e}var Ur=Hr(`animationend`),Wr=Hr(`animationiteration`),Gr=Hr(`animationstart`),Kr=Hr(`transitionend`),qr=new Map,Jr=`abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);function Yr(e,t){qr.set(e,t),o(t,[e])}for(var Xr=0;Xr<Jr.length;Xr++){var Zr=Jr[Xr];Yr(Zr.toLowerCase(),`on`+(Zr[0].toUpperCase()+Zr.slice(1)))}Yr(Ur,`onAnimationEnd`),Yr(Wr,`onAnimationIteration`),Yr(Gr,`onAnimationStart`),Yr(`dblclick`,`onDoubleClick`),Yr(`focusin`,`onFocus`),Yr(`focusout`,`onBlur`),Yr(Kr,`onTransitionEnd`),s(`onMouseEnter`,[`mouseout`,`mouseover`]),s(`onMouseLeave`,[`mouseout`,`mouseover`]),s(`onPointerEnter`,[`pointerout`,`pointerover`]),s(`onPointerLeave`,[`pointerout`,`pointerover`]),o(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),o(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),o(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),o(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),o(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),o(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Qr=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),$r=new Set(`cancel close invalid load scroll toggle`.split(` `).concat(Qr));function ei(e,t,n){var r=e.type||`unknown-event`;e.currentTarget=n,Qe(r,t,void 0,e),e.currentTarget=null}function ti(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;ei(i,s,l),a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;ei(i,s,l),a=c}}}if(Je)throw e=Ye,Je=!1,Ye=null,e}function ni(e,t){var n=t[Mi];n===void 0&&(n=t[Mi]=new Set);var r=e+`__bubble`;n.has(r)||(oi(t,e,2,!1),n.add(r))}function ri(e,t,n){var r=0;t&&(r|=4),oi(n,e,r,t)}var ii=`_reactListening`+Math.random().toString(36).slice(2);function ai(e){if(!e[ii]){e[ii]=!0,i.forEach(function(t){t!==`selectionchange`&&($r.has(t)||ri(t,!1,e),ri(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ii]||(t[ii]=!0,ri(`selectionchange`,!1,t))}}function oi(e,t,n,r){switch(mn(t)){case 1:var i=ln;break;case 4:i=un;break;default:i=dn}n=i.bind(null,t,n,e),i=void 0,!We||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function si(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&(c=o.stateNode.containerInfo,c===i||c.nodeType===8&&c.parentNode===i))return;o=o.return}for(;s!==null;){if(o=Fi(s),o===null)return;if(c=o.tag,c===5||c===6){r=a=o;continue a}s=s.parentNode}}r=r.return}He(function(){var r=a,i=H(n),o=[];a:{var s=qr.get(e);if(s!==void 0){var c=wn,l=e;switch(e){case`keypress`:if(yn(n)===0)break a;case`keydown`:case`keyup`:c=Hn;break;case`focusin`:l=`focus`,c=Nn;break;case`focusout`:l=`blur`,c=Nn;break;case`beforeblur`:case`afterblur`:c=Nn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:c=jn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:c=Mn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:c=Wn;break;case Ur:case Wr:case Gr:c=Pn;break;case Kr:c=Gn;break;case`scroll`:c=En;break;case`wheel`:c=Kn;break;case`copy`:case`cut`:case`paste`:c=Fn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:c=Un}var u=(t&4)!=0,d=!u&&e===`scroll`,f=u?s===null?null:s+`Capture`:s;u=[];for(var p=r,m;p!==null;){m=p;var h=m.stateNode;if(m.tag===5&&h!==null&&(m=h,f!==null&&(h=Ue(p,f),h!=null&&u.push(ci(p,h,m)))),d)break;p=p.return}0<u.length&&(s=new c(s,l,null,n,i),o.push({event:s,listeners:u}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,s&&n!==V&&(l=n.relatedTarget||n.fromElement)&&(Fi(l)||l[ji]))break a;if((c||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?Fi(l):null,l!==null&&(d=$e(l),l!==d||l.tag!==5&&l.tag!==6)&&(l=null)):(c=null,l=r),c!==l)){if(u=jn,h=`onMouseLeave`,f=`onMouseEnter`,p=`mouse`,(e===`pointerout`||e===`pointerover`)&&(u=Un,h=`onPointerLeave`,f=`onPointerEnter`,p=`pointer`),d=c==null?s:Li(c),m=l==null?s:Li(l),s=new u(h,p+`leave`,c,n,i),s.target=d,s.relatedTarget=m,h=null,Fi(i)===r&&(u=new u(f,p+`enter`,l,n,i),u.target=m,u.relatedTarget=d,h=u),d=h,c&&l)b:{for(u=c,f=l,p=0,m=u;m;m=ui(m))p++;for(m=0,h=f;h;h=ui(h))m++;for(;0<p-m;)u=ui(u),p--;for(;0<m-p;)f=ui(f),m--;for(;p--;){if(u===f||f!==null&&u===f.alternate)break b;u=ui(u),f=ui(f)}u=null}else u=null;c!==null&&di(o,s,c,u,!1),l!==null&&d!==null&&di(o,d,l,u,!0)}}a:{if(s=r?Li(r):window,c=s.nodeName&&s.nodeName.toLowerCase(),c===`select`||c===`input`&&s.type===`file`)var g=fr;else if(or(s))if(pr)g=Sr;else{g=br;var _=yr}else (c=s.nodeName)&&c.toLowerCase()===`input`&&(s.type===`checkbox`||s.type===`radio`)&&(g=xr);if(g&&=g(e,r)){sr(o,g,n,i);break a}_&&_(e,s,r),e===`focusout`&&(_=s._wrapperState)&&_.controlled&&s.type===`number`&&ye(s,`number`,s.value)}switch(_=r?Li(r):window,e){case`focusin`:(or(_)||_.contentEditable===`true`)&&(Nr=_,Pr=r,Fr=null);break;case`focusout`:Fr=Pr=Nr=null;break;case`mousedown`:Ir=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Ir=!1,Lr(o,n,i);break;case`selectionchange`:if(Mr)break;case`keydown`:case`keyup`:Lr(o,n,i)}var v;if(Jn)b:{switch(e){case`compositionstart`:var y=`onCompositionStart`;break b;case`compositionend`:y=`onCompositionEnd`;break b;case`compositionupdate`:y=`onCompositionUpdate`;break b}y=void 0}else nr?er(e,n)&&(y=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(y=`onCompositionStart`);y&&(Zn&&n.locale!==`ko`&&(nr||y!==`onCompositionStart`?y===`onCompositionEnd`&&nr&&(v=vn()):(hn=i,gn=`value`in hn?hn.value:hn.textContent,nr=!0)),_=li(r,y),0<_.length&&(y=new In(y,e,null,n,i),o.push({event:y,listeners:_}),v?y.data=v:(v=tr(n),v!==null&&(y.data=v)))),(v=Xn?rr(e,n):ir(e,n))&&(r=li(r,`onBeforeInput`),0<r.length&&(i=new In(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:i,listeners:r}),i.data=v))}ti(o,t)})}function ci(e,t,n){return{instance:e,listener:t,currentTarget:n}}function li(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=Ue(e,n),a!=null&&r.unshift(ci(e,a,i)),a=Ue(e,t),a!=null&&r.push(ci(e,a,i))),e=e.return}return r}function ui(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function di(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(c!==null&&c===r)break;s.tag===5&&l!==null&&(s=l,i?(c=Ue(n,a),c!=null&&o.unshift(ci(n,c,s))):i||(c=Ue(n,a),c!=null&&o.push(ci(n,c,s)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var fi=/\r\n?/g,pi=/\u0000|\uFFFD/g;function mi(e){return(typeof e==`string`?e:``+e).replace(fi,`
1075
- `).replace(pi,``)}function hi(e,t,n){if(t=mi(t),mi(e)!==t&&n)throw Error(r(425))}function gi(){}var _i=null,vi=null;function yi(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var bi=typeof setTimeout==`function`?setTimeout:void 0,xi=typeof clearTimeout==`function`?clearTimeout:void 0,Si=typeof Promise==`function`?Promise:void 0,Ci=typeof queueMicrotask==`function`?queueMicrotask:Si===void 0?bi:function(e){return Si.resolve(null).then(e).catch(wi)};function wi(e){setTimeout(function(){throw e})}function Ti(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`){if(r===0){e.removeChild(i),on(t);return}r--}else n!==`$`&&n!==`$?`&&n!==`$!`||r++;n=i}while(n);on(t)}function Ei(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`)break;if(t===`/$`)return null}}return e}function Di(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`){if(t===0)return e;t--}else n===`/$`&&t++}e=e.previousSibling}return null}var Oi=Math.random().toString(36).slice(2),ki=`__reactFiber$`+Oi,Ai=`__reactProps$`+Oi,ji=`__reactContainer$`+Oi,Mi=`__reactEvents$`+Oi,Ni=`__reactListeners$`+Oi,Pi=`__reactHandles$`+Oi;function Fi(e){var t=e[ki];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ji]||n[ki]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Di(e);e!==null;){if(n=e[ki])return n;e=Di(e)}return t}e=n,n=e.parentNode}return null}function Ii(e){return e=e[ki]||e[ji],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Li(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(r(33))}function Ri(e){return e[Ai]||null}var zi=[],Bi=-1;function Vi(e){return{current:e}}function Hi(e){0>Bi||(e.current=zi[Bi],zi[Bi]=null,Bi--)}function Ui(e,t){Bi++,zi[Bi]=e.current,e.current=t}var Wi={},Gi=Vi(Wi),Ki=Vi(!1),qi=Wi;function Ji(e,t){var n=e.type.contextTypes;if(!n)return Wi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Yi(e){return e=e.childContextTypes,e!=null}function Xi(){Hi(Ki),Hi(Gi)}function Zi(e,t,n){if(Gi.current!==Wi)throw Error(r(168));Ui(Gi,t),Ui(Ki,n)}function Qi(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!=`function`)return n;for(var a in i=i.getChildContext(),i)if(!(a in t))throw Error(r(108,ce(e)||`Unknown`,a));return re({},n,i)}function $i(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Wi,qi=Gi.current,Ui(Gi,e),Ui(Ki,Ki.current),!0}function ea(e,t,n){var i=e.stateNode;if(!i)throw Error(r(169));n?(e=Qi(e,t,qi),i.__reactInternalMemoizedMergedChildContext=e,Hi(Ki),Hi(Gi),Ui(Gi,e)):Hi(Ki),Ui(Ki,n)}var ta=null,na=!1,ra=!1;function ia(e){ta===null?ta=[e]:ta.push(e)}function aa(e){na=!0,ia(e)}function oa(){if(!ra&&ta!==null){ra=!0;var e=0,t=Ft;try{var n=ta;for(Ft=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}ta=null,na=!1}catch(t){throw ta!==null&&(ta=ta.slice(e+1)),at(dt,oa),t}finally{Ft=t,ra=!1}}return null}var sa=[],ca=0,la=null,ua=0,da=[],fa=0,pa=null,ma=1,ha=``;function ga(e,t){sa[ca++]=ua,sa[ca++]=la,la=e,ua=t}function _a(e,t,n){da[fa++]=ma,da[fa++]=ha,da[fa++]=pa,pa=e;var r=ma;e=ha;var i=32-yt(r)-1;r&=~(1<<i),n+=1;var a=32-yt(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,ma=1<<32-yt(t)+i|n<<i|r,ha=a+e}else ma=1<<a|n<<i|r,ha=e}function va(e){e.return!==null&&(ga(e,1),_a(e,1,0))}function ya(e){for(;e===la;)la=sa[--ca],sa[ca]=null,ua=sa[--ca],sa[ca]=null;for(;e===pa;)pa=da[--fa],da[fa]=null,ha=da[--fa],da[fa]=null,ma=da[--fa],da[fa]=null}var ba=null,xa=null,Sa=!1,Ca=null;function wa(e,t){var n=Xl(5,null,null,0);n.elementType=`DELETED`,n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Ta(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t===null?!1:(e.stateNode=t,ba=e,xa=Ei(t.firstChild),!0);case 6:return t=e.pendingProps===``||t.nodeType!==3?null:t,t===null?!1:(e.stateNode=t,ba=e,xa=null,!0);case 13:return t=t.nodeType===8?t:null,t===null?!1:(n=pa===null?null:{id:ma,overflow:ha},e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Xl(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ba=e,xa=null,!0);default:return!1}}function Ea(e){return(e.mode&1)!=0&&(e.flags&128)==0}function Da(e){if(Sa){var t=xa;if(t){var n=t;if(!Ta(e,t)){if(Ea(e))throw Error(r(418));t=Ei(n.nextSibling);var i=ba;t&&Ta(e,t)?wa(i,n):(e.flags=e.flags&-4097|2,Sa=!1,ba=e)}}else{if(Ea(e))throw Error(r(418));e.flags=e.flags&-4097|2,Sa=!1,ba=e}}}function Oa(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ba=e}function ka(e){if(e!==ba)return!1;if(!Sa)return Oa(e),Sa=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!==`head`&&t!==`body`&&!yi(e.type,e.memoizedProps)),t&&=xa){if(Ea(e))throw Aa(),Error(r(418));for(;t;)wa(e,t),t=Ei(t.nextSibling)}if(Oa(e),e.tag===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(r(317));a:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`){if(t===0){xa=Ei(e.nextSibling);break a}t--}else n!==`$`&&n!==`$!`&&n!==`$?`||t++}e=e.nextSibling}xa=null}}else xa=ba?Ei(e.stateNode.nextSibling):null;return!0}function Aa(){for(var e=xa;e;)e=Ei(e.nextSibling)}function ja(){xa=ba=null,Sa=!1}function Ma(e){Ca===null?Ca=[e]:Ca.push(e)}var Na=x.ReactCurrentBatchConfig;function Pa(e,t,n){if(e=n.ref,e!==null&&typeof e!=`function`&&typeof e!=`object`){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(r(309));var i=n.stateNode}if(!i)throw Error(r(147,e));var a=i,o=``+e;return t!==null&&t.ref!==null&&typeof t.ref==`function`&&t.ref._stringRef===o?t.ref:(t=function(e){var t=a.refs;e===null?delete t[o]:t[o]=e},t._stringRef=o,t)}if(typeof e!=`string`)throw Error(r(284));if(!n._owner)throw Error(r(290,e))}return e}function Fa(e,t){throw e=Object.prototype.toString.call(t),Error(r(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e))}function Ia(e){var t=e._init;return t(e._payload)}function La(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function i(e,t){for(e=new Map;t!==null;)t.key===null?e.set(t.index,t):e.set(t.key,t),t=t.sibling;return e}function a(e,t){return e=$l(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=2,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=2),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=ru(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===w?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===ee&&Ia(i)===t.type)?(r=a(t,n.props),r.ref=Pa(e,t,n),r.return=e,r):(r=eu(n.type,n.key,n.props,null,e.mode,r),r.ref=Pa(e,t,n),r.return=e,r)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=iu(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=tu(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`)return t=ru(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case S:return n=eu(t.type,t.key,t.props,null,e.mode,n),n.ref=Pa(e,null,t),n.return=e,n;case C:return t=iu(t,e.mode,n),t.return=e,t;case ee:var r=t._init;return f(e,r(t._payload),n)}if(be(t)||ne(t))return t=tu(t,e.mode,n,null),t.return=e,t;Fa(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case S:return n.key===i?l(e,t,n,r):null;case C:return n.key===i?u(e,t,n,r):null;case ee:return i=n._init,p(e,t,i(n._payload),r)}if(be(n)||ne(n))return i===null?d(e,t,n,r,null):null;Fa(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case S:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case C:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case ee:var a=r._init;return m(e,t,n,a(r._payload),i)}if(be(r)||ne(r))return e=e.get(n)||null,d(t,e,r,i,null);Fa(t,r)}return null}function h(r,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(r,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(r,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(r,d),Sa&&ga(r,h),l;if(d===null){for(;h<s.length;h++)d=f(r,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return Sa&&ga(r,h),l}for(d=i(r,d);h<s.length;h++)g=m(d,r,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(r,e)}),Sa&&ga(r,h),l}function g(a,s,c,l){var u=ne(c);if(typeof u!=`function`)throw Error(r(150));if(c=u.call(c),c==null)throw Error(r(151));for(var d=u=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),Sa&&ga(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Sa&&ga(a,g),u}for(h=i(a,h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),Sa&&ga(a,g),u}function _(e,r,i,o){if(typeof i==`object`&&i&&i.type===w&&i.key===null&&(i=i.props.children),typeof i==`object`&&i){switch(i.$$typeof){case S:a:{for(var c=i.key,l=r;l!==null;){if(l.key===c){if(c=i.type,c===w){if(l.tag===7){n(e,l.sibling),r=a(l,i.props.children),r.return=e,e=r;break a}}else if(l.elementType===c||typeof c==`object`&&c&&c.$$typeof===ee&&Ia(c)===l.type){n(e,l.sibling),r=a(l,i.props),r.ref=Pa(e,l,i),r.return=e,e=r;break a}n(e,l);break}else t(e,l);l=l.sibling}i.type===w?(r=tu(i.props.children,e.mode,o,i.key),r.return=e,e=r):(o=eu(i.type,i.key,i.props,null,e.mode,o),o.ref=Pa(e,r,i),o.return=e,e=o)}return s(e);case C:a:{for(l=i.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),r=a(r,i.children||[]),r.return=e,e=r;break a}else{n(e,r);break}else t(e,r);r=r.sibling}r=iu(i,e.mode,o),r.return=e,e=r}return s(e);case ee:return l=i._init,_(e,r,l(i._payload),o)}if(be(i))return h(e,r,i,o);if(ne(i))return g(e,r,i,o);Fa(e,i)}return typeof i==`string`&&i!==``||typeof i==`number`?(i=``+i,r!==null&&r.tag===6?(n(e,r.sibling),r=a(r,i),r.return=e,e=r):(n(e,r),r=ru(i,e.mode,o),r.return=e,e=r),s(e)):n(e,r)}return _}var Ra=La(!0),za=La(!1),Ba=Vi(null),Va=null,Ha=null,Ua=null;function Wa(){Ua=Ha=Va=null}function Ga(e){var t=Ba.current;Hi(Ba),e._currentValue=t}function Ka(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function qa(e,t){Va=e,Ua=Ha=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Fs=!0),e.firstContext=null)}function Ja(e){var t=e._currentValue;if(Ua!==e)if(e={context:e,memoizedValue:t,next:null},Ha===null){if(Va===null)throw Error(r(308));Ha=e,Va.dependencies={lanes:0,firstContext:e}}else Ha=Ha.next=e;return t}var Ya=null;function Xa(e){Ya===null?Ya=[e]:Ya.push(e)}function Za(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Xa(t)):(n.next=i.next,i.next=n),t.interleaved=n,Qa(e,r)}function Qa(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var $a=!1;function eo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function to(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function no(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ro(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Wc&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Qa(e,n)}return i=r.interleaved,i===null?(t.next=t,Xa(r)):(t.next=i.next,i.next=t),r.interleaved=t,Qa(e,n)}function io(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194240)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Pt(e,n)}}function ao(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function oo(e,t,n,r){var i=e.updateQueue;$a=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane,p=s.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});a:{var m=e,h=s;switch(f=t,p=n,h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(p,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(p,d,f):m,f==null)break a;d=re({},d,f);break a;case 2:$a=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;f=s,s=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(1);if(u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);Qc|=o,e.lanes=o,e.memoizedState=d}}function so(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var i=e[t],a=i.callback;if(a!==null){if(i.callback=null,i=n,typeof a!=`function`)throw Error(r(191,a));a.call(i)}}}var co={},lo=Vi(co),uo=Vi(co),fo=Vi(co);function po(e){if(e===co)throw Error(r(174));return e}function mo(e,t){switch(Ui(fo,t),Ui(uo,e),Ui(lo,co),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Te(null,``);break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Te(t,e)}Hi(lo),Ui(lo,t)}function ho(){Hi(lo),Hi(uo),Hi(fo)}function go(e){po(fo.current);var t=po(lo.current),n=Te(t,e.type);t!==n&&(Ui(uo,e),Ui(lo,n))}function _o(e){uo.current===e&&(Hi(lo),Hi(uo))}var vo=Vi(0);function yo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data===`$?`||n.data===`$!`))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var bo=[];function xo(){for(var e=0;e<bo.length;e++)bo[e]._workInProgressVersionPrimary=null;bo.length=0}var So=x.ReactCurrentDispatcher,Co=x.ReactCurrentBatchConfig,wo=0,To=null,Eo=null,Do=null,Oo=!1,ko=!1,Ao=0,jo=0;function Mo(){throw Error(r(321))}function No(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!wr(e[n],t[n]))return!1;return!0}function Po(e,t,n,i,a,o){if(wo=o,To=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,So.current=e===null||e.memoizedState===null?gs:_s,e=n(i,a),ko){o=0;do{if(ko=!1,Ao=0,25<=o)throw Error(r(301));o+=1,Do=Eo=null,t.updateQueue=null,So.current=vs,e=n(i,a)}while(ko)}if(So.current=G,t=Eo!==null&&Eo.next!==null,wo=0,Do=Eo=To=null,Oo=!1,t)throw Error(r(300));return e}function Fo(){var e=Ao!==0;return Ao=0,e}function Io(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Do===null?To.memoizedState=Do=e:Do=Do.next=e,Do}function Lo(){if(Eo===null){var e=To.alternate;e=e===null?null:e.memoizedState}else e=Eo.next;var t=Do===null?To.memoizedState:Do.next;if(t!==null)Do=t,Eo=e;else{if(e===null)throw Error(r(310));Eo=e,e={memoizedState:Eo.memoizedState,baseState:Eo.baseState,baseQueue:Eo.baseQueue,queue:Eo.queue,next:null},Do===null?To.memoizedState=Do=e:Do=Do.next=e}return Do}function Ro(e,t){return typeof t==`function`?t(e):t}function zo(e){var t=Lo(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=Eo,a=i.baseQueue,o=n.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}i.baseQueue=a=o,n.pending=null}if(a!==null){o=a.next,i=i.baseState;var c=s=null,l=null,u=o;do{var d=u.lane;if((wo&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),i=u.hasEagerState?u.eagerState:e(i,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(c=l=f,s=i):l=l.next=f,To.lanes|=d,Qc|=d}u=u.next}while(u!==null&&u!==o);l===null?s=i:l.next=c,wr(i,t.memoizedState)||(Fs=!0),t.memoizedState=i,t.baseState=s,t.baseQueue=l,n.lastRenderedState=i}if(e=n.interleaved,e!==null){a=e;do o=a.lane,To.lanes|=o,Qc|=o,a=a.next;while(a!==e)}else a===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Bo(e){var t=Lo(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);wr(o,t.memoizedState)||(Fs=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,i]}function Vo(){}function Ho(e,t){var n=To,i=Lo(),a=t(),o=!wr(i.memoizedState,a);if(o&&(i.memoizedState=a,Fs=!0),i=i.queue,es(Go.bind(null,n,i,e),[e]),i.getSnapshot!==t||o||Do!==null&&Do.memoizedState.tag&1){if(n.flags|=2048,Yo(9,Wo.bind(null,n,i,a,t),void 0,null),Gc===null)throw Error(r(349));wo&30||Uo(n,t,a)}return a}function Uo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=To.updateQueue,t===null?(t={lastEffect:null,stores:null},To.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Wo(e,t,n,r){t.value=n,t.getSnapshot=r,Ko(t)&&qo(e)}function Go(e,t,n){return n(function(){Ko(t)&&qo(e)})}function Ko(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!wr(e,n)}catch{return!0}}function qo(e){var t=Qa(e,1);t!==null&&vl(t,e,1,-1)}function Jo(e){var t=Io();return typeof e==`function`&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ro,lastRenderedState:e},t.queue=e,e=e.dispatch=fs.bind(null,To,e),[t.memoizedState,e]}function Yo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=To.updateQueue,t===null?(t={lastEffect:null,stores:null},To.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Xo(){return Lo().memoizedState}function Zo(e,t,n,r){var i=Io();To.flags|=e,i.memoizedState=Yo(1|t,n,void 0,r===void 0?null:r)}function Qo(e,t,n,r){var i=Lo();r=r===void 0?null:r;var a=void 0;if(Eo!==null){var o=Eo.memoizedState;if(a=o.destroy,r!==null&&No(r,o.deps)){i.memoizedState=Yo(t,n,a,r);return}}To.flags|=e,i.memoizedState=Yo(1|t,n,a,r)}function $o(e,t){return Zo(8390656,8,e,t)}function es(e,t){return Qo(2048,8,e,t)}function ts(e,t){return Qo(4,2,e,t)}function ns(e,t){return Qo(4,4,e,t)}function rs(e,t){if(typeof t==`function`)return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function is(e,t,n){return n=n==null?null:n.concat([e]),Qo(4,4,rs.bind(null,t,e),n)}function as(){}function os(e,t){var n=Lo();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&No(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ss(e,t){var n=Lo();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&No(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function cs(e,t,n){return wo&21?(wr(n,t)||(n=At(),To.lanes|=n,Qc|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Fs=!0),e.memoizedState=n)}function ls(e,t){var n=Ft;Ft=n!==0&&4>n?n:4,e(!0);var r=Co.transition;Co.transition={};try{e(!1),t()}finally{Ft=n,Co.transition=r}}function us(){return Lo().memoizedState}function ds(e,t,n){var r=_l(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ps(e))ms(t,n);else if(n=Za(e,t,n,r),n!==null){var i=gl();vl(n,e,r,i),hs(n,t,r)}}function fs(e,t,n){var r=_l(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ps(e))ms(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,wr(s,o)){var c=t.interleaved;c===null?(i.next=i,Xa(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}n=Za(e,t,i,r),n!==null&&(i=gl(),vl(n,e,r,i),hs(n,t,r))}}function ps(e){var t=e.alternate;return e===To||t!==null&&t===To}function ms(e,t){ko=Oo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function hs(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Pt(e,n)}}var G={readContext:Ja,useCallback:Mo,useContext:Mo,useEffect:Mo,useImperativeHandle:Mo,useInsertionEffect:Mo,useLayoutEffect:Mo,useMemo:Mo,useReducer:Mo,useRef:Mo,useState:Mo,useDebugValue:Mo,useDeferredValue:Mo,useTransition:Mo,useMutableSource:Mo,useSyncExternalStore:Mo,useId:Mo,unstable_isNewReconciler:!1},gs={readContext:Ja,useCallback:function(e,t){return Io().memoizedState=[e,t===void 0?null:t],e},useContext:Ja,useEffect:$o,useImperativeHandle:function(e,t,n){return n=n==null?null:n.concat([e]),Zo(4194308,4,rs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Zo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Zo(4,2,e,t)},useMemo:function(e,t){var n=Io();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Io();return t=n===void 0?t:n(t),r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ds.bind(null,To,e),[r.memoizedState,e]},useRef:function(e){var t=Io();return e={current:e},t.memoizedState=e},useState:Jo,useDebugValue:as,useDeferredValue:function(e){return Io().memoizedState=e},useTransition:function(){var e=Jo(!1),t=e[0];return e=ls.bind(null,e[1]),Io().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=To,a=Io();if(Sa){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),Gc===null)throw Error(r(349));wo&30||Uo(i,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,$o(Go.bind(null,i,o,e),[e]),i.flags|=2048,Yo(9,Wo.bind(null,i,o,n,t),void 0,null),n},useId:function(){var e=Io(),t=Gc.identifierPrefix;if(Sa){var n=ha,r=ma;n=(r&~(1<<32-yt(r)-1)).toString(32)+n,t=`:`+t+`R`+n,n=Ao++,0<n&&(t+=`H`+n.toString(32)),t+=`:`}else n=jo++,t=`:`+t+`r`+n.toString(32)+`:`;return e.memoizedState=t},unstable_isNewReconciler:!1},_s={readContext:Ja,useCallback:os,useContext:Ja,useEffect:es,useImperativeHandle:is,useInsertionEffect:ts,useLayoutEffect:ns,useMemo:ss,useReducer:zo,useRef:Xo,useState:function(){return zo(Ro)},useDebugValue:as,useDeferredValue:function(e){return cs(Lo(),Eo.memoizedState,e)},useTransition:function(){return[zo(Ro)[0],Lo().memoizedState]},useMutableSource:Vo,useSyncExternalStore:Ho,useId:us,unstable_isNewReconciler:!1},vs={readContext:Ja,useCallback:os,useContext:Ja,useEffect:es,useImperativeHandle:is,useInsertionEffect:ts,useLayoutEffect:ns,useMemo:ss,useReducer:Bo,useRef:Xo,useState:function(){return Bo(Ro)},useDebugValue:as,useDeferredValue:function(e){var t=Lo();return Eo===null?t.memoizedState=e:cs(t,Eo.memoizedState,e)},useTransition:function(){return[Bo(Ro)[0],Lo().memoizedState]},useMutableSource:Vo,useSyncExternalStore:Ho,useId:us,unstable_isNewReconciler:!1};function K(e,t){if(e&&e.defaultProps){for(var n in t=re({},t),e=e.defaultProps,e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function ys(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:re({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var bs={isMounted:function(e){return(e=e._reactInternals)?$e(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=gl(),i=_l(e),a=no(r,i);a.payload=t,n!=null&&(a.callback=n),t=ro(e,a,i),t!==null&&(vl(t,e,i,r),io(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=gl(),i=_l(e),a=no(r,i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=ro(e,a,i),t!==null&&(vl(t,e,i,r),io(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=gl(),r=_l(e),i=no(n,r);i.tag=2,t!=null&&(i.callback=t),t=ro(e,i,r),t!==null&&(vl(t,e,r,n),io(t,e,r))}};function xs(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Tr(n,r)||!Tr(i,a):!0}function Ss(e,t,n){var r=!1,i=Wi,a=t.contextType;return typeof a==`object`&&a?a=Ja(a):(i=Yi(t)?qi:Gi.current,r=t.contextTypes,a=(r=r!=null)?Ji(e,i):Wi),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=bs,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function Cs(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&bs.enqueueReplaceState(t,t.state,null)}function ws(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},eo(e);var a=t.contextType;typeof a==`object`&&a?i.context=Ja(a):(a=Yi(t)?qi:Gi.current,i.context=Ji(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a==`function`&&(ys(e,t,a,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps==`function`||typeof i.getSnapshotBeforeUpdate==`function`||typeof i.UNSAFE_componentWillMount!=`function`&&typeof i.componentWillMount!=`function`||(t=i.state,typeof i.componentWillMount==`function`&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount==`function`&&i.UNSAFE_componentWillMount(),t!==i.state&&bs.enqueueReplaceState(i,i.state,null),oo(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount==`function`&&(e.flags|=4194308)}function Ts(e,t){try{var n=``,r=t;do n+=F(r),r=r.return;while(r);var i=n}catch(e){i=`
1076
- Error generating stack: `+e.message+`
1077
- `+e.stack}return{value:e,source:t,stack:i,digest:null}}function Es(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ds(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var Os=typeof WeakMap==`function`?WeakMap:Map;function ks(e,t,n){n=no(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ol||(ol=!0,sl=r),Ds(e,t)},n}function As(e,t,n){n=no(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r==`function`){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Ds(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch==`function`&&(n.callback=function(){Ds(e,t),typeof r!=`function`&&(cl===null?cl=new Set([this]):cl.add(this));var n=t.stack;this.componentDidCatch(t.value,{componentStack:n===null?``:n})}),n}function js(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Os;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Ul.bind(null,e,t,n),t.then(e,e))}function Ms(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t===null?!0:t.dehydrated!==null),t)return e;e=e.return}while(e!==null);return null}function Ns(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=no(-1,1),t.tag=2,ro(n,t,1))),n.lanes|=1),e)}var Ps=x.ReactCurrentOwner,Fs=!1;function Is(e,t,n,r){t.child=e===null?za(t,null,n,r):Ra(t,e.child,n,r)}function Ls(e,t,n,r,i){n=n.render;var a=t.ref;return qa(t,i),r=Po(e,t,n,r,a,i),n=Fo(),e!==null&&!Fs?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,rc(e,t,i)):(Sa&&n&&va(t),t.flags|=1,Is(e,t,r,i),t.child)}function Rs(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!Zl(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,zs(e,t,a,r,i)):(e=eu(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,(e.lanes&i)===0){var o=a.memoizedProps;if(n=n.compare,n=n===null?Tr:n,n(o,r)&&e.ref===t.ref)return rc(e,t,i)}return t.flags|=1,e=$l(a,r),e.ref=t.ref,e.return=t,t.child=e}function zs(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Tr(a,r)&&e.ref===t.ref)if(Fs=!1,t.pendingProps=r=a,(e.lanes&i)!==0)e.flags&131072&&(Fs=!0);else return t.lanes=e.lanes,rc(e,t,i)}return Hs(e,t,n,r,i)}function Bs(e,t,n){var r=t.pendingProps,i=r.children,a=e===null?null:e.memoizedState;if(r.mode===`hidden`)if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ui(Yc,Jc),Jc|=n;else{if(!(n&1073741824))return e=a===null?n:a.baseLanes|n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ui(Yc,Jc),Jc|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a===null?n:a.baseLanes,Ui(Yc,Jc),Jc|=r}else a===null?r=n:(r=a.baseLanes|n,t.memoizedState=null),Ui(Yc,Jc),Jc|=r;return Is(e,t,i,n),t.child}function Vs(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Hs(e,t,n,r,i){var a=Yi(n)?qi:Gi.current;return a=Ji(t,a),qa(t,i),n=Po(e,t,n,r,a,i),r=Fo(),e!==null&&!Fs?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,rc(e,t,i)):(Sa&&r&&va(t),t.flags|=1,Is(e,t,n,i),t.child)}function Us(e,t,n,r,i){if(Yi(n)){var a=!0;$i(t)}else a=!1;if(qa(t,i),t.stateNode===null)nc(e,t),Ss(t,n,r),ws(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var c=o.context,l=n.contextType;typeof l==`object`&&l?l=Ja(l):(l=Yi(n)?qi:Gi.current,l=Ji(t,l));var u=n.getDerivedStateFromProps,d=typeof u==`function`||typeof o.getSnapshotBeforeUpdate==`function`;d||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==r||c!==l)&&Cs(t,o,r,l),$a=!1;var f=t.memoizedState;o.state=f,oo(t,r,o,i),c=t.memoizedState,s!==r||f!==c||Ki.current||$a?(typeof u==`function`&&(ys(t,n,u,r),c=t.memoizedState),(s=$a||xs(t,n,s,r,f,c,l))?(d||typeof o.UNSAFE_componentWillMount!=`function`&&typeof o.componentWillMount!=`function`||(typeof o.componentWillMount==`function`&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount==`function`&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount==`function`&&(t.flags|=4194308)):(typeof o.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=l,r=s):(typeof o.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,to(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:K(t.type,s),o.props=l,d=t.pendingProps,f=o.context,c=n.contextType,typeof c==`object`&&c?c=Ja(c):(c=Yi(n)?qi:Gi.current,c=Ji(t,c));var p=n.getDerivedStateFromProps;(u=typeof p==`function`||typeof o.getSnapshotBeforeUpdate==`function`)||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==d||f!==c)&&Cs(t,o,r,c),$a=!1,f=t.memoizedState,o.state=f,oo(t,r,o,i);var m=t.memoizedState;s!==d||f!==m||Ki.current||$a?(typeof p==`function`&&(ys(t,n,p,r),m=t.memoizedState),(l=$a||xs(t,n,l,r,f,m,c)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!=`function`&&typeof o.componentWillUpdate!=`function`||(typeof o.componentWillUpdate==`function`&&o.componentWillUpdate(r,m,c),typeof o.UNSAFE_componentWillUpdate==`function`&&o.UNSAFE_componentWillUpdate(r,m,c)),typeof o.componentDidUpdate==`function`&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=c,r=l):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Ws(e,t,n,r,a,i)}function Ws(e,t,n,r,i,a){Vs(e,t);var o=(t.flags&128)!=0;if(!r&&!o)return i&&ea(t,n,!1),rc(e,t,a);r=t.stateNode,Ps.current=t;var s=o&&typeof n.getDerivedStateFromError!=`function`?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Ra(t,e.child,null,a),t.child=Ra(t,null,s,a)):Is(e,t,s,a),t.memoizedState=r.state,i&&ea(t,n,!0),t.child}function Gs(e){var t=e.stateNode;t.pendingContext?Zi(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Zi(e,t.context,!1),mo(e,t.containerInfo)}function Ks(e,t,n,r,i){return ja(),Ma(i),t.flags|=256,Is(e,t,n,r),t.child}var qs={dehydrated:null,treeContext:null,retryLane:0};function Js(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ys(e,t,n){var r=t.pendingProps,i=vo.current,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!=0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Ui(vo,i&1),e===null)return Da(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data===`$!`?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,a?(r=t.mode,a=t.child,o={mode:`hidden`,children:o},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=nu(o,r,0,null),e=tu(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Js(n),t.memoizedState=qs,e):Xs(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return Qs(e,t,o,r,s,i,n);if(a){a=r.fallback,o=t.mode,i=e.child,s=i.sibling;var c={mode:`hidden`,children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=$l(i,c),r.subtreeFlags=i.subtreeFlags&14680064),s===null?(a=tu(a,o,n,null),a.flags|=2):a=$l(s,a),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,o=e.child.memoizedState,o=o===null?Js(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~n,t.memoizedState=qs,r}return a=e.child,e=a.sibling,r=$l(a,{mode:`visible`,children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Xs(e,t){return t=nu({mode:`visible`,children:t},e.mode,0,null),t.return=e,e.child=t}function Zs(e,t,n,r){return r!==null&&Ma(r),Ra(t,e.child,null,n),e=Xs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Qs(e,t,n,i,a,o,s){if(n)return t.flags&256?(t.flags&=-257,i=Es(Error(r(422))),Zs(e,t,s,i)):t.memoizedState===null?(o=i.fallback,a=t.mode,i=nu({mode:`visible`,children:i.children},a,0,null),o=tu(o,a,s,null),o.flags|=2,i.return=t,o.return=t,i.sibling=o,t.child=i,t.mode&1&&Ra(t,e.child,null,s),t.child.memoizedState=Js(s),t.memoizedState=qs,o):(t.child=e.child,t.flags|=128,null);if(!(t.mode&1))return Zs(e,t,s,null);if(a.data===`$!`){if(i=a.nextSibling&&a.nextSibling.dataset,i)var c=i.dgst;return i=c,o=Error(r(419)),i=Es(o,i,void 0),Zs(e,t,s,i)}if(c=(s&e.childLanes)!==0,Fs||c){if(i=Gc,i!==null){switch(s&-s){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=(a&(i.suspendedLanes|s))===0?a:0,a!==0&&a!==o.retryLane&&(o.retryLane=a,Qa(e,a),vl(i,e,a,-1))}return Ml(),i=Es(Error(r(421))),Zs(e,t,s,i)}return a.data===`$?`?(t.flags|=128,t.child=e.child,t=Gl.bind(null,e),a._reactRetry=t,null):(e=o.treeContext,xa=Ei(a.nextSibling),ba=t,Sa=!0,Ca=null,e!==null&&(da[fa++]=ma,da[fa++]=ha,da[fa++]=pa,ma=e.id,ha=e.overflow,pa=t),t=Xs(t,i.children),t.flags|=4096,t)}function $s(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ka(e.return,t,n)}function ec(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function tc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Is(e,t,r.children,n),r=vo.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&$s(e,n,t);else if(e.tag===19)$s(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ui(vo,r),!(t.mode&1))t.memoizedState=null;else switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&yo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),ec(t,!1,i,n,a);break;case`backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&yo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}ec(t,!0,n,null,a);break;case`together`:ec(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function nc(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function rc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Qc|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=$l(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=$l(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ic(e,t,n){switch(t.tag){case 3:Gs(t),ja();break;case 5:go(t);break;case 1:Yi(t.type)&&$i(t);break;case 4:mo(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Ui(Ba,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(Ui(vo,vo.current&1),e=rc(e,t,n),e===null?null:e.sibling):Ys(e,t,n):(Ui(vo,vo.current&1),t.flags|=128,null);Ui(vo,vo.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return tc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ui(vo,vo.current),r)break;return null;case 22:case 23:return t.lanes=0,Bs(e,t,n)}return rc(e,t,n)}var ac=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},oc=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,po(lo.current);var o=null;switch(n){case`input`:i=I(e,i),r=I(e,r),o=[];break;case`select`:i=re({},i,{value:void 0}),r=re({},r,{value:void 0}),o=[];break;case`textarea`:i=L(e,i),r=L(e,r),o=[];break;default:typeof i.onClick!=`function`&&typeof r.onClick==`function`&&(e.onclick=gi)}B(n,r);var s;for(u in n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u===`style`){var c=i[u];for(s in c)c.hasOwnProperty(s)&&(n||={},n[s]=``)}else u!==`dangerouslySetInnerHTML`&&u!==`children`&&u!==`suppressContentEditableWarning`&&u!==`suppressHydrationWarning`&&u!==`autoFocus`&&(a.hasOwnProperty(u)?o||=[]:(o||=[]).push(u,null));for(u in r){var l=r[u];if(c=i?.[u],r.hasOwnProperty(u)&&l!==c&&(l!=null||c!=null))if(u===`style`)if(c){for(s in c)!c.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||={},n[s]=``);for(s in l)l.hasOwnProperty(s)&&c[s]!==l[s]&&(n||={},n[s]=l[s])}else n||(o||=[],o.push(u,n)),n=l;else u===`dangerouslySetInnerHTML`?(l=l?l.__html:void 0,c=c?c.__html:void 0,l!=null&&c!==l&&(o||=[]).push(u,l)):u===`children`?typeof l!=`string`&&typeof l!=`number`||(o||=[]).push(u,``+l):u!==`suppressContentEditableWarning`&&u!==`suppressHydrationWarning`&&(a.hasOwnProperty(u)?(l!=null&&u===`onScroll`&&ni(`scroll`,e),o||c===l||(o=[])):(o||=[]).push(u,l))}n&&(o||=[]).push(`style`,n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}},sc=function(e,t,n,r){n!==r&&(t.flags|=4)};function cc(e,t){if(!Sa)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function lc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function uc(e,t,n){var i=t.pendingProps;switch(ya(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return lc(t),null;case 1:return Yi(t.type)&&Xi(),lc(t),null;case 3:return i=t.stateNode,ho(),Hi(Ki),Hi(Gi),xo(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(ka(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ca!==null&&(Sl(Ca),Ca=null))),lc(t),null;case 5:_o(t);var o=po(fo.current);if(n=t.type,e!==null&&t.stateNode!=null)oc(e,t,n,i,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(t.stateNode===null)throw Error(r(166));return lc(t),null}if(e=po(lo.current),ka(t)){i=t.stateNode,n=t.type;var s=t.memoizedProps;switch(i[ki]=t,i[Ai]=s,e=(t.mode&1)!=0,n){case`dialog`:ni(`cancel`,i),ni(`close`,i);break;case`iframe`:case`object`:case`embed`:ni(`load`,i);break;case`video`:case`audio`:for(o=0;o<Qr.length;o++)ni(Qr[o],i);break;case`source`:ni(`error`,i);break;case`img`:case`image`:case`link`:ni(`error`,i),ni(`load`,i);break;case`details`:ni(`toggle`,i);break;case`input`:he(i,s),ni(`invalid`,i);break;case`select`:i._wrapperState={wasMultiple:!!s.multiple},ni(`invalid`,i);break;case`textarea`:Se(i,s),ni(`invalid`,i)}for(var c in B(n,s),o=null,s)if(s.hasOwnProperty(c)){var l=s[c];c===`children`?typeof l==`string`?i.textContent!==l&&(!0!==s.suppressHydrationWarning&&hi(i.textContent,l,e),o=[`children`,l]):typeof l==`number`&&i.textContent!==``+l&&(!0!==s.suppressHydrationWarning&&hi(i.textContent,l,e),o=[`children`,``+l]):a.hasOwnProperty(c)&&l!=null&&c===`onScroll`&&ni(`scroll`,i)}switch(n){case`input`:fe(i),ve(i,s,!0);break;case`textarea`:fe(i),we(i);break;case`select`:case`option`:break;default:typeof s.onClick==`function`&&(i.onclick=gi)}i=o,t.updateQueue=i,i!==null&&(t.flags|=4)}else{c=o.nodeType===9?o:o.ownerDocument,e===`http://www.w3.org/1999/xhtml`&&(e=R(n)),e===`http://www.w3.org/1999/xhtml`?n===`script`?(e=c.createElement(`div`),e.innerHTML=`<script><\/script>`,e=e.removeChild(e.firstChild)):typeof i.is==`string`?e=c.createElement(n,{is:i.is}):(e=c.createElement(n),n===`select`&&(c=e,i.multiple?c.multiple=!0:i.size&&(c.size=i.size))):e=c.createElementNS(e,n),e[ki]=t,e[Ai]=i,ac(e,t,!1,!1),t.stateNode=e;a:{switch(c=Ne(n,i),n){case`dialog`:ni(`cancel`,e),ni(`close`,e),o=i;break;case`iframe`:case`object`:case`embed`:ni(`load`,e),o=i;break;case`video`:case`audio`:for(o=0;o<Qr.length;o++)ni(Qr[o],e);o=i;break;case`source`:ni(`error`,e),o=i;break;case`img`:case`image`:case`link`:ni(`error`,e),ni(`load`,e),o=i;break;case`details`:ni(`toggle`,e),o=i;break;case`input`:he(e,i),o=I(e,i),ni(`invalid`,e);break;case`option`:o=i;break;case`select`:e._wrapperState={wasMultiple:!!i.multiple},o=re({},i,{value:void 0}),ni(`invalid`,e);break;case`textarea`:Se(e,i),o=L(e,i),ni(`invalid`,e);break;default:o=i}for(s in B(n,o),l=o,l)if(l.hasOwnProperty(s)){var u=l[s];s===`style`?je(e,u):s===`dangerouslySetInnerHTML`?(u=u?u.__html:void 0,u!=null&&De(e,u)):s===`children`?typeof u==`string`?(n!==`textarea`||u!==``)&&z(e,u):typeof u==`number`&&z(e,``+u):s!==`suppressContentEditableWarning`&&s!==`suppressHydrationWarning`&&s!==`autoFocus`&&(a.hasOwnProperty(s)?u!=null&&s===`onScroll`&&ni(`scroll`,e):u!=null&&b(e,s,u,c))}switch(n){case`input`:fe(e),ve(e,i,!1);break;case`textarea`:fe(e),we(e);break;case`option`:i.value!=null&&e.setAttribute(`value`,``+le(i.value));break;case`select`:e.multiple=!!i.multiple,s=i.value,s==null?i.defaultValue!=null&&xe(e,!!i.multiple,i.defaultValue,!0):xe(e,!!i.multiple,s,!1);break;default:typeof o.onClick==`function`&&(e.onclick=gi)}switch(n){case`button`:case`input`:case`select`:case`textarea`:i=!!i.autoFocus;break a;case`img`:i=!0;break a;default:i=!1}}i&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return lc(t),null;case 6:if(e&&t.stateNode!=null)sc(e,t,e.memoizedProps,i);else{if(typeof i!=`string`&&t.stateNode===null)throw Error(r(166));if(n=po(fo.current),po(lo.current),ka(t)){if(i=t.stateNode,n=t.memoizedProps,i[ki]=t,(s=i.nodeValue!==n)&&(e=ba,e!==null))switch(e.tag){case 3:hi(i.nodeValue,n,(e.mode&1)!=0);break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&hi(i.nodeValue,n,(e.mode&1)!=0)}s&&(t.flags|=4)}else i=(n.nodeType===9?n:n.ownerDocument).createTextNode(i),i[ki]=t,t.stateNode=i}return lc(t),null;case 13:if(Hi(vo),i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Sa&&xa!==null&&t.mode&1&&!(t.flags&128))Aa(),ja(),t.flags|=98560,s=!1;else if(s=ka(t),i!==null&&i.dehydrated!==null){if(e===null){if(!s)throw Error(r(318));if(s=t.memoizedState,s=s===null?null:s.dehydrated,!s)throw Error(r(317));s[ki]=t}else ja(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;lc(t),s=!1}else Ca!==null&&(Sl(Ca),Ca=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(i=i!==null,i!==(e!==null&&e.memoizedState!==null)&&i&&(t.child.flags|=8192,t.mode&1&&(e===null||vo.current&1?Xc===0&&(Xc=3):Ml())),t.updateQueue!==null&&(t.flags|=4),lc(t),null);case 4:return ho(),e===null&&ai(t.stateNode.containerInfo),lc(t),null;case 10:return Ga(t.type._context),lc(t),null;case 17:return Yi(t.type)&&Xi(),lc(t),null;case 19:if(Hi(vo),s=t.memoizedState,s===null)return lc(t),null;if(i=(t.flags&128)!=0,c=s.rendering,c===null)if(i)cc(s,!1);else{if(Xc!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(c=yo(e),c!==null){for(t.flags|=128,cc(s,!1),i=c.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=n,n=t.child;n!==null;)s=n,e=i,s.flags&=14680066,c=s.alternate,c===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ui(vo,vo.current&1|2),t.child}e=e.sibling}s.tail!==null&&lt()>il&&(t.flags|=128,i=!0,cc(s,!1),t.lanes=4194304)}else{if(!i)if(e=yo(c),e!==null){if(t.flags|=128,i=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),cc(s,!0),s.tail===null&&s.tailMode===`hidden`&&!c.alternate&&!Sa)return lc(t),null}else 2*lt()-s.renderingStartTime>il&&n!==1073741824&&(t.flags|=128,i=!0,cc(s,!1),t.lanes=4194304);s.isBackwards?(c.sibling=t.child,t.child=c):(n=s.last,n===null?t.child=c:n.sibling=c,s.last=c)}return s.tail===null?(lc(t),null):(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=lt(),t.sibling=null,n=vo.current,Ui(vo,i?n&1|2:n&1),t);case 22:case 23:return Ol(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&t.mode&1?Jc&1073741824&&(lc(t),t.subtreeFlags&6&&(t.flags|=8192)):lc(t),null;case 24:return null;case 25:return null}throw Error(r(156,t.tag))}function dc(e,t){switch(ya(t),t.tag){case 1:return Yi(t.type)&&Xi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ho(),Hi(Ki),Hi(Gi),xo(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return _o(t),null;case 13:if(Hi(vo),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));ja()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Hi(vo),null;case 4:return ho(),null;case 10:return Ga(t.type._context),null;case 22:case 23:return Ol(),null;case 24:return null;default:return null}}var fc=!1,pc=!1,mc=typeof WeakSet==`function`?WeakSet:Set,q=null;function hc(e,t){var n=e.ref;if(n!==null)if(typeof n==`function`)try{n(null)}catch(n){Hl(e,t,n)}else n.current=null}function gc(e,t,n){try{n()}catch(n){Hl(e,t,n)}}var _c=!1;function vc(e,t){if(_i=cn,e=kr(),Ar(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(vi={focusedElem:e,selectionRange:n},cn=!1,q=t;q!==null;)if(t=q,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,q=e;else for(;q!==null;){t=q;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var g=h.memoizedProps,_=h.memoizedState,v=t.stateNode;v.__reactInternalSnapshotBeforeUpdate=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:K(t.type,g),_)}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent=``:y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(e){Hl(t,t.return,e)}if(e=t.sibling,e!==null){e.return=t.return,q=e;break}q=t.return}return h=_c,_c=!1,h}function yc(e,t,n){var r=t.updateQueue;if(r=r===null?null:r.lastEffect,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&gc(t,n,a)}i=i.next}while(i!==r)}}function bc(e,t){if(t=t.updateQueue,t=t===null?null:t.lastEffect,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function xc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t==`function`?t(e):t.current=e}}function Sc(e){var t=e.alternate;t!==null&&(e.alternate=null,Sc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ki],delete t[Ai],delete t[Mi],delete t[Ni],delete t[Pi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Cc(e){return e.tag===5||e.tag===3||e.tag===4}function wc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Cc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Tc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=gi));else if(r!==4&&(e=e.child,e!==null))for(Tc(e,t,n),e=e.sibling;e!==null;)Tc(e,t,n),e=e.sibling}function Ec(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ec(e,t,n),e=e.sibling;e!==null;)Ec(e,t,n),e=e.sibling}var Dc=null,Oc=!1;function kc(e,t,n){for(n=n.child;n!==null;)Ac(e,t,n),n=n.sibling}function Ac(e,t,n){if(_t&&typeof _t.onCommitFiberUnmount==`function`)try{_t.onCommitFiberUnmount(gt,n)}catch{}switch(n.tag){case 5:pc||hc(n,t);case 6:var r=Dc,i=Oc;Dc=null,kc(e,t,n),Dc=r,Oc=i,Dc!==null&&(Oc?(e=Dc,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Dc.removeChild(n.stateNode));break;case 18:Dc!==null&&(Oc?(e=Dc,n=n.stateNode,e.nodeType===8?Ti(e.parentNode,n):e.nodeType===1&&Ti(e,n),on(e)):Ti(Dc,n.stateNode));break;case 4:r=Dc,i=Oc,Dc=n.stateNode.containerInfo,Oc=!0,kc(e,t,n),Dc=r,Oc=i;break;case 0:case 11:case 14:case 15:if(!pc&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&gc(n,t,o),i=i.next}while(i!==r)}kc(e,t,n);break;case 1:if(!pc&&(hc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Hl(n,t,e)}kc(e,t,n);break;case 21:kc(e,t,n);break;case 22:n.mode&1?(pc=(r=pc)||n.memoizedState!==null,kc(e,t,n),pc=r):kc(e,t,n);break;default:kc(e,t,n)}}function jc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new mc),t.forEach(function(t){var r=Kl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function Mc(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i];try{var o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 5:Dc=c.stateNode,Oc=!1;break a;case 3:Dc=c.stateNode.containerInfo,Oc=!0;break a;case 4:Dc=c.stateNode.containerInfo,Oc=!0;break a}c=c.return}if(Dc===null)throw Error(r(160));Ac(o,s,a),Dc=null,Oc=!1;var l=a.alternate;l!==null&&(l.return=null),a.return=null}catch(e){Hl(a,t,e)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Nc(t,e),t=t.sibling}function Nc(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Mc(t,e),Pc(e),i&4){try{yc(3,e,e.return),bc(3,e)}catch(t){Hl(e,e.return,t)}try{yc(5,e,e.return)}catch(t){Hl(e,e.return,t)}}break;case 1:Mc(t,e),Pc(e),i&512&&n!==null&&hc(n,n.return);break;case 5:if(Mc(t,e),Pc(e),i&512&&n!==null&&hc(n,n.return),e.flags&32){var a=e.stateNode;try{z(a,``)}catch(t){Hl(e,e.return,t)}}if(i&4&&(a=e.stateNode,a!=null)){var o=e.memoizedProps,s=n===null?o:n.memoizedProps,c=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{c===`input`&&o.type===`radio`&&o.name!=null&&ge(a,o),Ne(c,s);var u=Ne(c,o);for(s=0;s<l.length;s+=2){var d=l[s],f=l[s+1];d===`style`?je(a,f):d===`dangerouslySetInnerHTML`?De(a,f):d===`children`?z(a,f):b(a,d,f,u)}switch(c){case`input`:_e(a,o);break;case`textarea`:Ce(a,o);break;case`select`:var p=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!o.multiple;var m=o.value;m==null?p!==!!o.multiple&&(o.defaultValue==null?xe(a,!!o.multiple,o.multiple?[]:``,!1):xe(a,!!o.multiple,o.defaultValue,!0)):xe(a,!!o.multiple,m,!1)}a[Ai]=o}catch(t){Hl(e,e.return,t)}}break;case 6:if(Mc(t,e),Pc(e),i&4){if(e.stateNode===null)throw Error(r(162));a=e.stateNode,o=e.memoizedProps;try{a.nodeValue=o}catch(t){Hl(e,e.return,t)}}break;case 3:if(Mc(t,e),Pc(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{on(t.containerInfo)}catch(t){Hl(e,e.return,t)}break;case 4:Mc(t,e),Pc(e);break;case 13:Mc(t,e),Pc(e),a=e.child,a.flags&8192&&(o=a.memoizedState!==null,a.stateNode.isHidden=o,!o||a.alternate!==null&&a.alternate.memoizedState!==null||(rl=lt())),i&4&&jc(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(pc=(u=pc)||d,Mc(t,e),pc=u):Mc(t,e),Pc(e),i&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(q=e,d=e.child;d!==null;){for(f=q=d;q!==null;){switch(p=q,m=p.child,p.tag){case 0:case 11:case 14:case 15:yc(4,p,p.return);break;case 1:hc(p,p.return);var h=p.stateNode;if(typeof h.componentWillUnmount==`function`){i=p,n=p.return;try{t=i,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(e){Hl(i,n,e)}}break;case 5:hc(p,p.return);break;case 22:if(p.memoizedState!==null){Rc(f);continue}}m===null?Rc(f):(m.return=p,q=m)}d=d.sibling}a:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{a=f.stateNode,u?(o=a.style,typeof o.setProperty==`function`?o.setProperty(`display`,`none`,`important`):o.display=`none`):(c=f.stateNode,l=f.memoizedProps.style,s=l!=null&&l.hasOwnProperty(`display`)?l.display:null,c.style.display=Ae(`display`,s))}catch(t){Hl(e,e.return,t)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?``:f.memoizedProps}catch(t){Hl(e,e.return,t)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break a;for(;f.sibling===null;){if(f.return===null||f.return===e)break a;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Mc(t,e),Pc(e),i&4&&jc(e);break;case 21:break;default:Mc(t,e),Pc(e)}}function Pc(e){var t=e.flags;if(t&2){try{a:{for(var n=e.return;n!==null;){if(Cc(n)){var i=n;break a}n=n.return}throw Error(r(160))}switch(i.tag){case 5:var a=i.stateNode;i.flags&32&&(z(a,``),i.flags&=-33),Ec(e,wc(e),a);break;case 3:case 4:var o=i.stateNode.containerInfo;Tc(e,wc(e),o);break;default:throw Error(r(161))}}catch(t){Hl(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Fc(e,t,n){q=e,Ic(e,t,n)}function Ic(e,t,n){for(var r=(e.mode&1)!=0;q!==null;){var i=q,a=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||fc;if(!o){var s=i.alternate,c=s!==null&&s.memoizedState!==null||pc;s=fc;var l=pc;if(fc=o,(pc=c)&&!l)for(q=i;q!==null;)o=q,c=o.child,o.tag===22&&o.memoizedState!==null||c===null?zc(i):(c.return=o,q=c);for(;a!==null;)q=a,Ic(a,t,n),a=a.sibling;q=i,fc=s,pc=l}Lc(e,t,n)}else i.subtreeFlags&8772&&a!==null?(a.return=i,q=a):Lc(e,t,n)}}function Lc(e){for(;q!==null;){var t=q;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:pc||bc(5,t);break;case 1:var i=t.stateNode;if(t.flags&4&&!pc)if(n===null)i.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:K(t.type,n.memoizedProps);i.componentDidUpdate(a,n.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&so(t,o,i);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}so(t,s,n)}break;case 5:var c=t.stateNode;if(n===null&&t.flags&4){n=c;var l=t.memoizedProps;switch(t.type){case`button`:case`input`:case`select`:case`textarea`:l.autoFocus&&n.focus();break;case`img`:l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&on(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}pc||t.flags&512&&xc(t)}catch(e){Hl(t,t.return,e)}}if(t===e){q=null;break}if(n=t.sibling,n!==null){n.return=t.return,q=n;break}q=t.return}}function Rc(e){for(;q!==null;){var t=q;if(t===e){q=null;break}var n=t.sibling;if(n!==null){n.return=t.return,q=n;break}q=t.return}}function zc(e){for(;q!==null;){var t=q;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{bc(4,t)}catch(e){Hl(t,n,e)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount==`function`){var i=t.return;try{r.componentDidMount()}catch(e){Hl(t,i,e)}}var a=t.return;try{xc(t)}catch(e){Hl(t,a,e)}break;case 5:var o=t.return;try{xc(t)}catch(e){Hl(t,o,e)}}}catch(e){Hl(t,t.return,e)}if(t===e){q=null;break}var s=t.sibling;if(s!==null){s.return=t.return,q=s;break}q=t.return}}var Bc=Math.ceil,Vc=x.ReactCurrentDispatcher,Hc=x.ReactCurrentOwner,Uc=x.ReactCurrentBatchConfig,Wc=0,Gc=null,Kc=null,qc=0,Jc=0,Yc=Vi(0),Xc=0,Zc=null,Qc=0,$c=0,el=0,tl=null,nl=null,rl=0,il=1/0,al=null,ol=!1,sl=null,cl=null,ll=!1,ul=null,dl=0,fl=0,pl=null,ml=-1,hl=0;function gl(){return Wc&6?lt():ml===-1?ml=lt():ml}function _l(e){return e.mode&1?Wc&2&&qc!==0?qc&-qc:Na.transition===null?(e=Ft,e===0?(e=window.event,e=e===void 0?16:mn(e.type),e):e):(hl===0&&(hl=At()),hl):1}function vl(e,t,n,i){if(50<fl)throw fl=0,pl=null,Error(r(185));Mt(e,n,i),(!(Wc&2)||e!==Gc)&&(e===Gc&&(!(Wc&2)&&($c|=n),Xc===4&&wl(e,qc)),yl(e,i),n===1&&Wc===0&&!(t.mode&1)&&(il=lt()+500,na&&oa()))}function yl(e,t){var n=e.callbackNode;Ot(e,t);var r=Et(e,e===Gc?qc:0);if(r===0)n!==null&&ot(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&ot(n),t===1)e.tag===0?aa(Tl.bind(null,e)):ia(Tl.bind(null,e)),Ci(function(){!(Wc&6)&&oa()}),n=null;else{switch(It(r)){case 1:n=dt;break;case 4:n=ft;break;case 16:n=pt;break;case 536870912:n=ht;break;default:n=pt}n=Jl(n,bl.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function bl(e,t){if(ml=-1,hl=0,Wc&6)throw Error(r(327));var n=e.callbackNode;if(Bl()&&e.callbackNode!==n)return null;var i=Et(e,e===Gc?qc:0);if(i===0)return null;if(i&30||(i&e.expiredLanes)!==0||t)t=Nl(e,i);else{t=i;var a=Wc;Wc|=2;var o=jl();(Gc!==e||qc!==t)&&(al=null,il=lt()+500,kl(e,t));do try{Fl();break}catch(t){Al(e,t)}while(1);Wa(),Vc.current=o,Wc=a,Kc===null?(Gc=null,qc=0,t=Xc):t=0}if(t!==0){if(t===2&&(a=kt(e),a!==0&&(i=a,t=xl(e,a))),t===1)throw n=Zc,kl(e,0),wl(e,i),yl(e,lt()),n;if(t===6)wl(e,i);else{if(a=e.current.alternate,!(i&30)&&!Cl(a)&&(t=Nl(e,i),t===2&&(o=kt(e),o!==0&&(i=o,t=xl(e,o))),t===1))throw n=Zc,kl(e,0),wl(e,i),yl(e,lt()),n;switch(e.finishedWork=a,e.finishedLanes=i,t){case 0:case 1:throw Error(r(345));case 2:Rl(e,nl,al);break;case 3:if(wl(e,i),(i&130023424)===i&&(t=rl+500-lt(),10<t)){if(Et(e,0)!==0)break;if(a=e.suspendedLanes,(a&i)!==i){gl(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=bi(Rl.bind(null,e,nl,al),t);break}Rl(e,nl,al);break;case 4:if(wl(e,i),(i&4194240)===i)break;for(t=e.eventTimes,a=-1;0<i;){var s=31-yt(i);o=1<<s,s=t[s],s>a&&(a=s),i&=~o}if(i=a,i=lt()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Bc(i/1960))-i,10<i){e.timeoutHandle=bi(Rl.bind(null,e,nl,al),i);break}Rl(e,nl,al);break;case 5:Rl(e,nl,al);break;default:throw Error(r(329))}}}return yl(e,lt()),e.callbackNode===n?bl.bind(null,e):null}function xl(e,t){var n=tl;return e.current.memoizedState.isDehydrated&&(kl(e,t).flags|=256),e=Nl(e,t),e!==2&&(t=nl,nl=n,t!==null&&Sl(t)),e}function Sl(e){nl===null?nl=e:nl.push.apply(nl,e)}function Cl(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!wr(a(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function wl(e,t){for(t&=~el,t&=~$c,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-yt(t),r=1<<n;e[n]=-1,t&=~r}}function Tl(e){if(Wc&6)throw Error(r(327));Bl();var t=Et(e,0);if(!(t&1))return yl(e,lt()),null;var n=Nl(e,t);if(e.tag!==0&&n===2){var i=kt(e);i!==0&&(t=i,n=xl(e,i))}if(n===1)throw n=Zc,kl(e,0),wl(e,t),yl(e,lt()),n;if(n===6)throw Error(r(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Rl(e,nl,al),yl(e,lt()),null}function El(e,t){var n=Wc;Wc|=1;try{return e(t)}finally{Wc=n,Wc===0&&(il=lt()+500,na&&oa())}}function Dl(e){ul!==null&&ul.tag===0&&!(Wc&6)&&Bl();var t=Wc;Wc|=1;var n=Uc.transition,r=Ft;try{if(Uc.transition=null,Ft=1,e)return e()}finally{Ft=r,Uc.transition=n,Wc=t,!(Wc&6)&&oa()}}function Ol(){Jc=Yc.current,Hi(Yc)}function kl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,xi(n)),Kc!==null)for(n=Kc.return;n!==null;){var r=n;switch(ya(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Xi();break;case 3:ho(),Hi(Ki),Hi(Gi),xo();break;case 5:_o(r);break;case 4:ho();break;case 13:Hi(vo);break;case 19:Hi(vo);break;case 10:Ga(r.type._context);break;case 22:case 23:Ol()}n=n.return}if(Gc=e,Kc=e=$l(e.current,null),qc=Jc=t,Xc=0,Zc=null,el=$c=Qc=0,nl=tl=null,Ya!==null){for(t=0;t<Ya.length;t++)if(n=Ya[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,a=n.pending;if(a!==null){var o=a.next;a.next=i,r.next=o}n.pending=r}Ya=null}return e}function Al(e,t){do{var n=Kc;try{if(Wa(),So.current=G,Oo){for(var i=To.memoizedState;i!==null;){var a=i.queue;a!==null&&(a.pending=null),i=i.next}Oo=!1}if(wo=0,Do=Eo=To=null,ko=!1,Ao=0,Hc.current=null,n===null||n.return===null){Xc=1,Zc=t,Kc=null;break}a:{var o=e,s=n.return,c=n,l=t;if(t=qc,c.flags|=32768,typeof l==`object`&&l&&typeof l.then==`function`){var u=l,d=c,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=Ms(s);if(m!==null){m.flags&=-257,Ns(m,s,c,o,t),m.mode&1&&js(o,u,t),t=m,l=u;var h=t.updateQueue;if(h===null){var g=new Set;g.add(l),t.updateQueue=g}else h.add(l);break a}else{if(!(t&1)){js(o,u,t),Ml();break a}l=Error(r(426))}}else if(Sa&&c.mode&1){var _=Ms(s);if(_!==null){!(_.flags&65536)&&(_.flags|=256),Ns(_,s,c,o,t),Ma(Ts(l,c));break a}}o=l=Ts(l,c),Xc!==4&&(Xc=2),tl===null?tl=[o]:tl.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var v=ks(o,l,t);ao(o,v);break a;case 1:c=l;var y=o.type,b=o.stateNode;if(!(o.flags&128)&&(typeof y.getDerivedStateFromError==`function`||b!==null&&typeof b.componentDidCatch==`function`&&(cl===null||!cl.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t;var x=As(o,c,t);ao(o,x);break a}}o=o.return}while(o!==null)}Ll(n)}catch(e){t=e,Kc===n&&n!==null&&(Kc=n=n.return);continue}break}while(1)}function jl(){var e=Vc.current;return Vc.current=G,e===null?G:e}function Ml(){(Xc===0||Xc===3||Xc===2)&&(Xc=4),Gc===null||!(Qc&268435455)&&!($c&268435455)||wl(Gc,qc)}function Nl(e,t){var n=Wc;Wc|=2;var i=jl();(Gc!==e||qc!==t)&&(al=null,kl(e,t));do try{Pl();break}catch(t){Al(e,t)}while(1);if(Wa(),Wc=n,Vc.current=i,Kc!==null)throw Error(r(261));return Gc=null,qc=0,Xc}function Pl(){for(;Kc!==null;)Il(Kc)}function Fl(){for(;Kc!==null&&!st();)Il(Kc)}function Il(e){var t=ql(e.alternate,e,Jc);e.memoizedProps=e.pendingProps,t===null?Ll(e):Kc=t,Hc.current=null}function Ll(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=dc(n,t),n!==null){n.flags&=32767,Kc=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Xc=6,Kc=null;return}}else if(n=uc(n,t,Jc),n!==null){Kc=n;return}if(t=t.sibling,t!==null){Kc=t;return}Kc=t=e}while(t!==null);Xc===0&&(Xc=5)}function Rl(e,t,n){var r=Ft,i=Uc.transition;try{Uc.transition=null,Ft=1,zl(e,t,n,r)}finally{Uc.transition=i,Ft=r}return null}function zl(e,t,n,i){do Bl();while(ul!==null);if(Wc&6)throw Error(r(327));n=e.finishedWork;var a=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(r(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Nt(e,o),e===Gc&&(Kc=Gc=null,qc=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ll||(ll=!0,Jl(pt,function(){return Bl(),null})),o=(n.flags&15990)!=0,n.subtreeFlags&15990||o){o=Uc.transition,Uc.transition=null;var s=Ft;Ft=1;var c=Wc;Wc|=4,Hc.current=null,vc(e,n),Nc(n,e),jr(vi),cn=!!_i,vi=_i=null,e.current=n,Fc(n,e,a),ct(),Wc=c,Ft=s,Uc.transition=o}else e.current=n;if(ll&&(ll=!1,ul=e,dl=a),o=e.pendingLanes,o===0&&(cl=null),vt(n.stateNode,i),yl(e,lt()),t!==null)for(i=e.onRecoverableError,n=0;n<t.length;n++)a=t[n],i(a.value,{componentStack:a.stack,digest:a.digest});if(ol)throw ol=!1,e=sl,sl=null,e;return dl&1&&e.tag!==0&&Bl(),o=e.pendingLanes,o&1?e===pl?fl++:(fl=0,pl=e):fl=0,oa(),null}function Bl(){if(ul!==null){var e=It(dl),t=Uc.transition,n=Ft;try{if(Uc.transition=null,Ft=16>e?16:e,ul===null)var i=!1;else{if(e=ul,ul=null,dl=0,Wc&6)throw Error(r(331));var a=Wc;for(Wc|=4,q=e.current;q!==null;){var o=q,s=o.child;if(q.flags&16){var c=o.deletions;if(c!==null){for(var l=0;l<c.length;l++){var u=c[l];for(q=u;q!==null;){var d=q;switch(d.tag){case 0:case 11:case 15:yc(8,d,o)}var f=d.child;if(f!==null)f.return=d,q=f;else for(;q!==null;){d=q;var p=d.sibling,m=d.return;if(Sc(d),d===u){q=null;break}if(p!==null){p.return=m,q=p;break}q=m}}}var h=o.alternate;if(h!==null){var g=h.child;if(g!==null){h.child=null;do{var _=g.sibling;g.sibling=null,g=_}while(g!==null)}}q=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,q=s;else b:for(;q!==null;){if(o=q,o.flags&2048)switch(o.tag){case 0:case 11:case 15:yc(9,o,o.return)}var v=o.sibling;if(v!==null){v.return=o.return,q=v;break b}q=o.return}}var y=e.current;for(q=y;q!==null;){s=q;var b=s.child;if(s.subtreeFlags&2064&&b!==null)b.return=s,q=b;else b:for(s=y;q!==null;){if(c=q,c.flags&2048)try{switch(c.tag){case 0:case 11:case 15:bc(9,c)}}catch(e){Hl(c,c.return,e)}if(c===s){q=null;break b}var x=c.sibling;if(x!==null){x.return=c.return,q=x;break b}q=c.return}}if(Wc=a,oa(),_t&&typeof _t.onPostCommitFiberRoot==`function`)try{_t.onPostCommitFiberRoot(gt,e)}catch{}i=!0}return i}finally{Ft=n,Uc.transition=t}}return!1}function Vl(e,t,n){t=Ts(n,t),t=ks(e,t,1),e=ro(e,t,1),t=gl(),e!==null&&(Mt(e,1,t),yl(e,t))}function Hl(e,t,n){if(e.tag===3)Vl(e,e,n);else for(;t!==null;){if(t.tag===3){Vl(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(cl===null||!cl.has(r))){e=Ts(n,e),e=As(t,e,1),t=ro(t,e,1),e=gl(),t!==null&&(Mt(t,1,e),yl(t,e));break}}t=t.return}}function Ul(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=gl(),e.pingedLanes|=e.suspendedLanes&n,Gc===e&&(qc&n)===n&&(Xc===4||Xc===3&&(qc&130023424)===qc&&500>lt()-rl?kl(e,0):el|=n),yl(e,t)}function Wl(e,t){t===0&&(e.mode&1?(t=wt,wt<<=1,!(wt&130023424)&&(wt=4194304)):t=1);var n=gl();e=Qa(e,t),e!==null&&(Mt(e,t,n),yl(e,n))}function Gl(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Wl(e,n)}function Kl(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(r(314))}i!==null&&i.delete(t),Wl(e,n)}var ql=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ki.current)Fs=!0;else{if((e.lanes&n)===0&&!(t.flags&128))return Fs=!1,ic(e,t,n);Fs=!!(e.flags&131072)}else Fs=!1,Sa&&t.flags&1048576&&_a(t,ua,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;nc(e,t),e=t.pendingProps;var a=Ji(t,Gi.current);qa(t,n),a=Po(null,t,i,e,a,n);var o=Fo();return t.flags|=1,typeof a==`object`&&a&&typeof a.render==`function`&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Yi(i)?(o=!0,$i(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,eo(t),a.updater=bs,t.stateNode=a,a._reactInternals=t,ws(t,i,e,n),t=Ws(null,t,i,!0,o,n)):(t.tag=0,Sa&&o&&va(t),Is(null,t,a,n),t=t.child),t;case 16:i=t.elementType;a:{switch(nc(e,t),e=t.pendingProps,a=i._init,i=a(i._payload),t.type=i,a=t.tag=Ql(i),e=K(i,e),a){case 0:t=Hs(null,t,i,e,n);break a;case 1:t=Us(null,t,i,e,n);break a;case 11:t=Ls(null,t,i,e,n);break a;case 14:t=Rs(null,t,i,K(i.type,e),n);break a}throw Error(r(306,i,``))}return t;case 0:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:K(i,a),Hs(e,t,i,a,n);case 1:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:K(i,a),Us(e,t,i,a,n);case 3:a:{if(Gs(t),e===null)throw Error(r(387));i=t.pendingProps,o=t.memoizedState,a=o.element,to(e,t),oo(t,i,null,n);var s=t.memoizedState;if(i=s.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=Ts(Error(r(423)),t),t=Ks(e,t,i,n,a);break a}else if(i!==a){a=Ts(Error(r(424)),t),t=Ks(e,t,i,n,a);break a}else for(xa=Ei(t.stateNode.containerInfo.firstChild),ba=t,Sa=!0,Ca=null,n=za(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ja(),i===a){t=rc(e,t,n);break a}Is(e,t,i,n)}t=t.child}return t;case 5:return go(t),e===null&&Da(t),i=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,s=a.children,yi(i,a)?s=null:o!==null&&yi(i,o)&&(t.flags|=32),Vs(e,t),Is(e,t,s,n),t.child;case 6:return e===null&&Da(t),null;case 13:return Ys(e,t,n);case 4:return mo(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Ra(t,null,i,n):Is(e,t,i,n),t.child;case 11:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:K(i,a),Ls(e,t,i,a,n);case 7:return Is(e,t,t.pendingProps,n),t.child;case 8:return Is(e,t,t.pendingProps.children,n),t.child;case 12:return Is(e,t,t.pendingProps.children,n),t.child;case 10:a:{if(i=t.type._context,a=t.pendingProps,o=t.memoizedProps,s=a.value,Ui(Ba,i._currentValue),i._currentValue=s,o!==null)if(wr(o.value,s)){if(o.children===a.children&&!Ki.current){t=rc(e,t,n);break a}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var c=o.dependencies;if(c!==null){s=o.child;for(var l=c.firstContext;l!==null;){if(l.context===i){if(o.tag===1){l=no(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Ka(o.return,n,t),c.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(r(341));s.lanes|=n,c=s.alternate,c!==null&&(c.lanes|=n),Ka(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Is(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,i=t.pendingProps.children,qa(t,n),a=Ja(a),i=i(a),t.flags|=1,Is(e,t,i,n),t.child;case 14:return i=t.type,a=K(i,t.pendingProps),a=K(i.type,a),Rs(e,t,i,a,n);case 15:return zs(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:K(i,a),nc(e,t),t.tag=1,Yi(i)?(e=!0,$i(t)):e=!1,qa(t,n),Ss(t,i,a),ws(t,i,a,n),Ws(null,t,i,!0,e,n);case 19:return tc(e,t,n);case 22:return Bs(e,t,n)}throw Error(r(156,t.tag))};function Jl(e,t){return at(e,t)}function Yl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Xl(e,t,n,r){return new Yl(e,t,n,r)}function Zl(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ql(e){if(typeof e==`function`)return Zl(e)?1:0;if(e!=null){if(e=e.$$typeof,e===k)return 11;if(e===M)return 14}return 2}function $l(e,t){var n=e.alternate;return n===null?(n=Xl(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function eu(e,t,n,i,a,o){var s=2;if(i=e,typeof e==`function`)Zl(e)&&(s=1);else if(typeof e==`string`)s=5;else a:switch(e){case w:return tu(n.children,a,o,t);case T:s=8,a|=8;break;case E:return e=Xl(12,n,t,a|2),e.elementType=E,e.lanes=o,e;case A:return e=Xl(13,n,t,a),e.elementType=A,e.lanes=o,e;case j:return e=Xl(19,n,t,a),e.elementType=j,e.lanes=o,e;case N:return nu(n,a,o,t);default:if(typeof e==`object`&&e)switch(e.$$typeof){case D:s=10;break a;case O:s=9;break a;case k:s=11;break a;case M:s=14;break a;case ee:s=16,i=null;break a}throw Error(r(130,e==null?e:typeof e,``))}return t=Xl(s,n,t,a),t.elementType=e,t.type=i,t.lanes=o,t}function tu(e,t,n,r){return e=Xl(7,e,r,t),e.lanes=n,e}function nu(e,t,n,r){return e=Xl(22,e,r,t),e.elementType=N,e.lanes=n,e.stateNode={isHidden:!1},e}function ru(e,t,n){return e=Xl(6,e,null,t),e.lanes=n,e}function iu(e,t,n){return t=Xl(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function au(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=jt(0),this.expirationTimes=jt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=jt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function ou(e,t,n,r,i,a,o,s,c){return e=new au(e,t,n,s,c),t===1?(t=1,!0===a&&(t|=8)):t=0,a=Xl(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},eo(a),e}function su(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:C,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}function cu(e){if(!e)return Wi;e=e._reactInternals;a:{if($e(e)!==e||e.tag!==1)throw Error(r(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break a;case 1:if(Yi(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break a}}t=t.return}while(t!==null);throw Error(r(171))}if(e.tag===1){var n=e.type;if(Yi(n))return Qi(e,n,t)}return t}function lu(e,t,n,r,i,a,o,s,c){return e=ou(n,r,!0,e,i,a,o,s,c),e.context=cu(null),n=e.current,r=gl(),i=_l(n),a=no(r,i),a.callback=t??null,ro(n,a,i),e.current.lanes=i,Mt(e,i,r),yl(e,r),e}function uu(e,t,n,r){var i=t.current,a=gl(),o=_l(i);return n=cu(n),t.context===null?t.context=n:t.pendingContext=n,t=no(a,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=ro(i,t,o),e!==null&&(vl(e,i,o,a),io(e,i,o)),o}function du(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function fu(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function pu(e,t){fu(e,t),(e=e.alternate)&&fu(e,t)}function mu(){return null}var hu=typeof reportError==`function`?reportError:function(e){console.error(e)};function gu(e){this._internalRoot=e}_u.prototype.render=gu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));uu(e,t,null,null)},_u.prototype.unmount=gu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Dl(function(){uu(null,e,null,null)}),t[ji]=null}};function _u(e){this._internalRoot=e}_u.prototype.unstable_scheduleHydration=function(e){if(e){var t=Bt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Yt.length&&t!==0&&t<Yt[n].priority;n++);Yt.splice(n,0,e),n===0&&en(e)}};function vu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function yu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==` react-mount-point-unstable `))}function bu(){}function xu(e,t,n,r,i){if(i){if(typeof r==`function`){var a=r;r=function(){var e=du(o);a.call(e)}}var o=lu(t,r,e,0,null,!1,!1,``,bu);return e._reactRootContainer=o,e[ji]=o.current,ai(e.nodeType===8?e.parentNode:e),Dl(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r==`function`){var s=r;r=function(){var e=du(c);s.call(e)}}var c=ou(e,0,!1,null,null,!1,!1,``,bu);return e._reactRootContainer=c,e[ji]=c.current,ai(e.nodeType===8?e.parentNode:e),Dl(function(){uu(t,c,n,r)}),c}function Su(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a;if(typeof i==`function`){var s=i;i=function(){var e=du(o);s.call(e)}}uu(t,o,e,i)}else o=xu(n,t,e,i,r);return du(o)}Lt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Tt(t.pendingLanes);n!==0&&(Pt(t,n|1),yl(t,lt()),!(Wc&6)&&(il=lt()+500,oa()))}break;case 13:Dl(function(){var t=Qa(e,1);t!==null&&vl(t,e,1,gl())}),pu(e,1)}},Rt=function(e){if(e.tag===13){var t=Qa(e,134217728);t!==null&&vl(t,e,134217728,gl()),pu(e,134217728)}},zt=function(e){if(e.tag===13){var t=_l(e),n=Qa(e,t);n!==null&&vl(n,e,t,gl()),pu(e,t)}},Bt=function(){return Ft},Vt=function(e,t){var n=Ft;try{return Ft=e,t()}finally{Ft=n}},Pe=function(e,t,n){switch(t){case`input`:if(_e(e,n),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name=`+JSON.stringify(``+t)+`][type="radio"]`),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var a=Ri(i);if(!a)throw Error(r(90));pe(i),_e(i,a)}}}break;case`textarea`:Ce(e,n);break;case`select`:t=n.value,t!=null&&xe(e,!!n.multiple,t,!1)}},Be=El,U=Dl;var Cu={usingClientEntryPoint:!1,Events:[Ii,Li,Ri,Re,ze,El]},wu={findFiberByHostInstance:Fi,bundleType:0,version:`18.3.1`,rendererPackageName:`react-dom`},Tu={bundleType:wu.bundleType,version:wu.version,rendererPackageName:wu.rendererPackageName,rendererConfig:wu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=rt(e),e===null?null:e.stateNode},findFiberByHostInstance:wu.findFiberByHostInstance||mu,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:`18.3.1-next-f1338f8080-20240426`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Eu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Eu.isDisabled&&Eu.supportsFiber)try{gt=Eu.inject(Tu),_t=Eu}catch{}}e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Cu,e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!vu(t))throw Error(r(200));return su(e,t,null,n)},e.createRoot=function(e,t){if(!vu(e))throw Error(r(299));var n=!1,i=``,a=hu;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=ou(e,1,!1,null,null,n,!1,i,a),e[ji]=t.current,ai(e.nodeType===8?e.parentNode:e),new gu(t)},e.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(r(188)):(e=Object.keys(e).join(`,`),Error(r(268,e)));return e=rt(t),e=e===null?null:e.stateNode,e},e.flushSync=function(e){return Dl(e)},e.hydrate=function(e,t,n){if(!yu(t))throw Error(r(200));return Su(null,e,t,!0,n)},e.hydrateRoot=function(e,t,n){if(!vu(e))throw Error(r(405));var i=n!=null&&n.hydratedSources||null,a=!1,o=``,s=hu;if(n!=null&&(!0===n.unstable_strictMode&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=lu(t,null,e,1,n??null,a,!1,o,s),e[ji]=t.current,ai(e),i)for(e=0;e<i.length;e++)n=i[e],a=n._getVersion,a=a(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new _u(t)},e.render=function(e,t,n){if(!yu(t))throw Error(r(200));return Su(null,e,t,!1,n)},e.unmountComponentAtNode=function(e){if(!yu(e))throw Error(r(40));return e._reactRootContainer?(Dl(function(){Su(null,null,e,!1,function(){e._reactRootContainer=null,e[ji]=null})}),!0):!1},e.unstable_batchedUpdates=El,e.unstable_renderSubtreeIntoContainer=function(e,t,n,i){if(!yu(n))throw Error(r(200));if(e==null||e._reactInternals===void 0)throw Error(r(38));return Su(e,t,n,!1,i)},e.version=`18.3.1-next-f1338f8080-20240426`})),nX=Se(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=tX()})),rX=Se((e=>{var t=YW(),n=Symbol.for(`react.element`),r=Symbol.for(`react.fragment`),i=Object.prototype.hasOwnProperty,a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var s,c={},l=null,u=null;for(s in r!==void 0&&(l=``+r),t.key!==void 0&&(l=``+t.key),t.ref!==void 0&&(u=t.ref),t)i.call(t,s)&&!o.hasOwnProperty(s)&&(c[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps,t)c[s]===void 0&&(c[s]=t[s]);return{$$typeof:n,type:e,key:l,ref:u,props:c,_owner:a.current}}e.Fragment=r,e.jsx=s,e.jsxs=s})),iX=Se(((e,t)=>{t.exports=rX()})),aX=R(nX(),1),oX=iX(),sX=I.div(({theme:e})=>({position:`absolute`,bottom:0,right:0,maxWidth:`100%`,display:`flex`,background:e.background.content,zIndex:1})),cX=I.button(({theme:e})=>({margin:0,border:`0 none`,padding:`4px 10px`,cursor:`pointer`,display:`flex`,alignItems:`center`,color:e.color.defaultText,background:e.background.content,fontSize:12,lineHeight:`16px`,fontFamily:e.typography.fonts.base,fontWeight:e.typography.weight.bold,borderTop:`1px solid ${e.appBorderColor}`,borderLeft:`1px solid ${e.appBorderColor}`,marginLeft:-1,borderRadius:`4px 0 0 0`,"&:not(:last-child)":{borderRight:`1px solid ${e.appBorderColor}`},"& + *":{borderLeft:`1px solid ${e.appBorderColor}`,borderRadius:0},"&:focus":{boxShadow:`${e.color.secondary} 0 -3px 0 0 inset`,outline:`0 none`,"@media (forced-colors: active)":{outline:`1px solid highlight`}}}),({disabled:e})=>e&&{cursor:`not-allowed`,opacity:.5});cX.displayName=`ActionButton`;var lX=({actionItems:e,...t})=>Q.createElement(sX,{...t},e.map(({title:e,className:t,onClick:n,disabled:r},i)=>Q.createElement(cX,{key:i,className:t,onClick:n,disabled:!!r},e)));function uX(e,t){typeof e==`function`?e(t):e!=null&&(e.current=t)}function dX(...e){return t=>e.forEach(e=>uX(e,t))}function fX(...e){return Q.useCallback(dX(...e),e)}var pX=Q.forwardRef((e,t)=>{let{children:n,...r}=e,i=Q.Children.toArray(n),a=i.find(gX);if(a){let e=a.props.children,n=i.map(t=>t===a?Q.Children.count(e)>1?Q.Children.only(null):Q.isValidElement(e)?e.props.children:null:t);return(0,oX.jsx)(mX,{...r,ref:t,children:Q.isValidElement(e)?Q.cloneElement(e,void 0,n):null})}return(0,oX.jsx)(mX,{...r,ref:t,children:n})});pX.displayName=`Slot`;var mX=Q.forwardRef((e,t)=>{let{children:n,...r}=e;if(Q.isValidElement(n)){let e=vX(n);return Q.cloneElement(n,{..._X(r,n.props),ref:t?dX(t,e):e})}return Q.Children.count(n)>1?Q.Children.only(null):null});mX.displayName=`SlotClone`;var hX=({children:e})=>(0,oX.jsx)(oX.Fragment,{children:e});function gX(e){return Q.isValidElement(e)&&e.type===hX}function _X(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{a(...e),i(...e)}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function vX(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var yX=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=Q.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?pX:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,oX.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),bX=globalThis?.document?Q.useLayoutEffect:()=>{};function xX(e,t){return Q.useReducer((e,n)=>t[e][n]??e,e)}var SX=e=>{let{present:t,children:n}=e,r=CX(t),i=typeof n==`function`?n({present:r.isPresent}):Q.Children.only(n),a=fX(r.ref,TX(i));return typeof n==`function`||r.isPresent?Q.cloneElement(i,{ref:a}):null};SX.displayName=`Presence`;function CX(e){let[t,n]=Q.useState(),r=Q.useRef({}),i=Q.useRef(e),a=Q.useRef(`none`),[o,s]=xX(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return Q.useEffect(()=>{let e=wX(r.current);a.current=o===`mounted`?e:`none`},[o]),bX(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,o=wX(t);e?s(`MOUNT`):o===`none`||t?.display===`none`?s(`UNMOUNT`):s(n&&r!==o?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,s]),bX(()=>{if(t){let e=e=>{let n=wX(r.current).includes(e.animationName);e.target===t&&n&&aX.flushSync(()=>s(`ANIMATION_END`))},n=e=>{e.target===t&&(a.current=wX(r.current))};return t.addEventListener(`animationstart`,n),t.addEventListener(`animationcancel`,e),t.addEventListener(`animationend`,e),()=>{t.removeEventListener(`animationstart`,n),t.removeEventListener(`animationcancel`,e),t.removeEventListener(`animationend`,e)}}else s(`ANIMATION_END`)},[t,s]),{isPresent:[`mounted`,`unmountSuspended`].includes(o),ref:Q.useCallback(e=>{e&&(r.current=getComputedStyle(e)),n(e)},[])}}function wX(e){return e?.animationName||`none`}function TX(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function EX(e,t=[]){let n=[];function r(t,r){let i=Q.createContext(r),a=n.length;n=[...n,r];function o(t){let{scope:n,children:r,...o}=t,s=n?.[e][a]||i,c=Q.useMemo(()=>o,Object.values(o));return(0,oX.jsx)(s.Provider,{value:c,children:r})}function s(n,o){let s=o?.[e][a]||i,c=Q.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return o.displayName=t+`Provider`,[o,s]}let i=()=>{let t=n.map(e=>Q.createContext(e));return function(n){let r=n?.[e]||t;return Q.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,DX(i,...t)]}function DX(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return Q.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function OX(e){let t=Q.useRef(e);return Q.useEffect(()=>{t.current=e}),Q.useMemo(()=>(...e)=>t.current?.(...e),[])}var kX=Q.createContext(void 0);function AX(e){let t=Q.useContext(kX);return e||t||`ltr`}function jX(e,[t,n]){return Math.min(n,Math.max(t,e))}function MX(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function NX(e,t){return Q.useReducer((e,n)=>t[e][n]??e,e)}var PX=`ScrollArea`,[FX,IX]=EX(PX),[LX,RX]=FX(PX),zX=Q.forwardRef((e,t)=>{let{__scopeScrollArea:n,type:r=`hover`,dir:i,scrollHideDelay:a=600,...o}=e,[s,c]=Q.useState(null),[l,u]=Q.useState(null),[d,f]=Q.useState(null),[p,m]=Q.useState(null),[h,g]=Q.useState(null),[_,v]=Q.useState(0),[y,b]=Q.useState(0),[x,S]=Q.useState(!1),[C,w]=Q.useState(!1),T=fX(t,e=>c(e)),E=AX(i);return(0,oX.jsx)(LX,{scope:n,type:r,dir:E,scrollHideDelay:a,scrollArea:s,viewport:l,onViewportChange:u,content:d,onContentChange:f,scrollbarX:p,onScrollbarXChange:m,scrollbarXEnabled:x,onScrollbarXEnabledChange:S,scrollbarY:h,onScrollbarYChange:g,scrollbarYEnabled:C,onScrollbarYEnabledChange:w,onCornerWidthChange:v,onCornerHeightChange:b,children:(0,oX.jsx)(yX.div,{dir:E,...o,ref:T,style:{position:`relative`,"--radix-scroll-area-corner-width":_+`px`,"--radix-scroll-area-corner-height":y+`px`,...e.style}})})});zX.displayName=PX;var BX=`ScrollAreaViewport`,VX=Q.forwardRef((e,t)=>{let{__scopeScrollArea:n,children:r,asChild:i,nonce:a,...o}=e,s=RX(BX,n),c=fX(t,Q.useRef(null),s.onViewportChange);return(0,oX.jsxs)(oX.Fragment,{children:[(0,oX.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`
1078
- [data-radix-scroll-area-viewport] {
1079
- scrollbar-width: none;
1080
- -ms-overflow-style: none;
1081
- -webkit-overflow-scrolling: touch;
1082
- }
1083
- [data-radix-scroll-area-viewport]::-webkit-scrollbar {
1084
- display: none;
1085
- }
1086
- :where([data-radix-scroll-area-viewport]) {
1087
- display: flex;
1088
- flex-direction: column;
1089
- align-items: stretch;
1090
- }
1091
- :where([data-radix-scroll-area-content]) {
1092
- flex-grow: 1;
1093
- }
1094
- `},nonce:a}),(0,oX.jsx)(yX.div,{"data-radix-scroll-area-viewport":``,...o,asChild:i,ref:c,style:{overflowX:s.scrollbarXEnabled?`scroll`:`hidden`,overflowY:s.scrollbarYEnabled?`scroll`:`hidden`,...e.style},children:hZ({asChild:i,children:r},e=>(0,oX.jsx)(`div`,{"data-radix-scroll-area-content":``,ref:s.onContentChange,style:{minWidth:s.scrollbarXEnabled?`fit-content`:void 0},children:e}))})]})});VX.displayName=BX;var HX=`ScrollAreaScrollbar`,UX=Q.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=RX(HX,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:o}=i,s=e.orientation===`horizontal`;return Q.useEffect(()=>(s?a(!0):o(!0),()=>{s?a(!1):o(!1)}),[s,a,o]),i.type===`hover`?(0,oX.jsx)(WX,{...r,ref:t,forceMount:n}):i.type===`scroll`?(0,oX.jsx)(GX,{...r,ref:t,forceMount:n}):i.type===`auto`?(0,oX.jsx)(KX,{...r,ref:t,forceMount:n}):i.type===`always`?(0,oX.jsx)(qX,{...r,ref:t}):null});UX.displayName=HX;var WX=Q.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=RX(HX,e.__scopeScrollArea),[a,o]=Q.useState(!1);return Q.useEffect(()=>{let e=i.scrollArea,t=0;if(e){let n=()=>{window.clearTimeout(t),o(!0)},r=()=>{t=window.setTimeout(()=>o(!1),i.scrollHideDelay)};return e.addEventListener(`pointerenter`,n),e.addEventListener(`pointerleave`,r),()=>{window.clearTimeout(t),e.removeEventListener(`pointerenter`,n),e.removeEventListener(`pointerleave`,r)}}},[i.scrollArea,i.scrollHideDelay]),(0,oX.jsx)(SX,{present:n||a,children:(0,oX.jsx)(KX,{"data-state":a?`visible`:`hidden`,...r,ref:t})})}),GX=Q.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=RX(HX,e.__scopeScrollArea),a=e.orientation===`horizontal`,o=pZ(()=>c(`SCROLL_END`),100),[s,c]=NX(`hidden`,{hidden:{SCROLL:`scrolling`},scrolling:{SCROLL_END:`idle`,POINTER_ENTER:`interacting`},interacting:{SCROLL:`interacting`,POINTER_LEAVE:`idle`},idle:{HIDE:`hidden`,SCROLL:`scrolling`,POINTER_ENTER:`interacting`}});return Q.useEffect(()=>{if(s===`idle`){let e=window.setTimeout(()=>c(`HIDE`),i.scrollHideDelay);return()=>window.clearTimeout(e)}},[s,i.scrollHideDelay,c]),Q.useEffect(()=>{let e=i.viewport,t=a?`scrollLeft`:`scrollTop`;if(e){let n=e[t],r=()=>{let r=e[t];n!==r&&(c(`SCROLL`),o()),n=r};return e.addEventListener(`scroll`,r),()=>e.removeEventListener(`scroll`,r)}},[i.viewport,a,c,o]),(0,oX.jsx)(SX,{present:n||s!==`hidden`,children:(0,oX.jsx)(qX,{"data-state":s===`hidden`?`hidden`:`visible`,...r,ref:t,onPointerEnter:MX(e.onPointerEnter,()=>c(`POINTER_ENTER`)),onPointerLeave:MX(e.onPointerLeave,()=>c(`POINTER_LEAVE`))})})}),KX=Q.forwardRef((e,t)=>{let n=RX(HX,e.__scopeScrollArea),{forceMount:r,...i}=e,[a,o]=Q.useState(!1),s=e.orientation===`horizontal`,c=pZ(()=>{if(n.viewport){let e=n.viewport.offsetWidth<n.viewport.scrollWidth,t=n.viewport.offsetHeight<n.viewport.scrollHeight;o(s?e:t)}},10);return mZ(n.viewport,c),mZ(n.content,c),(0,oX.jsx)(SX,{present:r||a,children:(0,oX.jsx)(qX,{"data-state":a?`visible`:`hidden`,...i,ref:t})})}),qX=Q.forwardRef((e,t)=>{let{orientation:n=`vertical`,...r}=e,i=RX(HX,e.__scopeScrollArea),a=Q.useRef(null),o=Q.useRef(0),[s,c]=Q.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),l=oZ(s.viewport,s.content),u={...r,sizes:s,onSizesChange:c,hasThumb:l>0&&l<1,onThumbChange:e=>a.current=e,onThumbPointerUp:()=>o.current=0,onThumbPointerDown:e=>o.current=e};function d(e,t){return cZ(e,o.current,s,t)}return n===`horizontal`?(0,oX.jsx)(JX,{...u,ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=i.viewport.scrollLeft,t=lZ(e,s,i.dir);a.current.style.transform=`translate3d(${t}px, 0, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollLeft=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollLeft=d(e,i.dir))}}):n===`vertical`?(0,oX.jsx)(YX,{...u,ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=i.viewport.scrollTop,t=lZ(e,s);a.current.style.transform=`translate3d(0, ${t}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=d(e))}}):null}),JX=Q.forwardRef((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,a=RX(HX,e.__scopeScrollArea),[o,s]=Q.useState(),c=Q.useRef(null),l=fX(t,c,a.onScrollbarXChange);return Q.useEffect(()=>{c.current&&s(getComputedStyle(c.current))},[c]),(0,oX.jsx)(QX,{"data-orientation":`horizontal`,...i,ref:l,sizes:n,style:{bottom:0,left:a.dir===`rtl`?`var(--radix-scroll-area-corner-width)`:0,right:a.dir===`ltr`?`var(--radix-scroll-area-corner-width)`:0,"--radix-scroll-area-thumb-width":sZ(n)+`px`,...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(a.viewport){let r=a.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),dZ(r,n)&&t.preventDefault()}},onResize:()=>{c.current&&a.viewport&&o&&r({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:aZ(o.paddingLeft),paddingEnd:aZ(o.paddingRight)}})}})}),YX=Q.forwardRef((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,a=RX(HX,e.__scopeScrollArea),[o,s]=Q.useState(),c=Q.useRef(null),l=fX(t,c,a.onScrollbarYChange);return Q.useEffect(()=>{c.current&&s(getComputedStyle(c.current))},[c]),(0,oX.jsx)(QX,{"data-orientation":`vertical`,...i,ref:l,sizes:n,style:{top:0,right:a.dir===`ltr`?0:void 0,left:a.dir===`rtl`?0:void 0,bottom:`var(--radix-scroll-area-corner-height)`,"--radix-scroll-area-thumb-height":sZ(n)+`px`,...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(a.viewport){let r=a.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),dZ(r,n)&&t.preventDefault()}},onResize:()=>{c.current&&a.viewport&&o&&r({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:aZ(o.paddingTop),paddingEnd:aZ(o.paddingBottom)}})}})}),[XX,ZX]=FX(HX),QX=Q.forwardRef((e,t)=>{let{__scopeScrollArea:n,sizes:r,hasThumb:i,onThumbChange:a,onThumbPointerUp:o,onThumbPointerDown:s,onThumbPositionChange:c,onDragScroll:l,onWheelScroll:u,onResize:d,...f}=e,p=RX(HX,n),[m,h]=Q.useState(null),g=fX(t,e=>h(e)),_=Q.useRef(null),v=Q.useRef(``),y=p.viewport,b=r.content-r.viewport,x=OX(u),S=OX(c),C=pZ(d,10);function w(e){_.current&&l({x:e.clientX-_.current.left,y:e.clientY-_.current.top})}return Q.useEffect(()=>{let e=e=>{let t=e.target;m?.contains(t)&&x(e,b)};return document.addEventListener(`wheel`,e,{passive:!1}),()=>document.removeEventListener(`wheel`,e,{passive:!1})},[y,m,b,x]),Q.useEffect(S,[r,S]),mZ(m,C),mZ(p.content,C),(0,oX.jsx)(XX,{scope:n,scrollbar:m,hasThumb:i,onThumbChange:OX(a),onThumbPointerUp:OX(o),onThumbPositionChange:S,onThumbPointerDown:OX(s),children:(0,oX.jsx)(yX.div,{...f,ref:g,style:{position:`absolute`,...f.style},onPointerDown:MX(e.onPointerDown,e=>{e.button===0&&(e.target.setPointerCapture(e.pointerId),_.current=m.getBoundingClientRect(),v.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect=`none`,p.viewport&&(p.viewport.style.scrollBehavior=`auto`),w(e))}),onPointerMove:MX(e.onPointerMove,w),onPointerUp:MX(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=v.current,p.viewport&&(p.viewport.style.scrollBehavior=``),_.current=null})})})}),$X=`ScrollAreaThumb`,eZ=Q.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=ZX($X,e.__scopeScrollArea);return(0,oX.jsx)(SX,{present:n||i.hasThumb,children:(0,oX.jsx)(tZ,{ref:t,...r})})}),tZ=Q.forwardRef((e,t)=>{let{__scopeScrollArea:n,style:r,...i}=e,a=RX($X,n),o=ZX($X,n),{onThumbPositionChange:s}=o,c=fX(t,e=>o.onThumbChange(e)),l=Q.useRef(),u=pZ(()=>{l.current&&=(l.current(),void 0)},100);return Q.useEffect(()=>{let e=a.viewport;if(e){let t=()=>{u(),!l.current&&(l.current=fZ(e,s),s())};return s(),e.addEventListener(`scroll`,t),()=>e.removeEventListener(`scroll`,t)}},[a.viewport,u,s]),(0,oX.jsx)(yX.div,{"data-state":o.hasThumb?`visible`:`hidden`,...i,ref:c,style:{width:`var(--radix-scroll-area-thumb-width)`,height:`var(--radix-scroll-area-thumb-height)`,...r},onPointerDownCapture:MX(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;o.onThumbPointerDown({x:n,y:r})}),onPointerUp:MX(e.onPointerUp,o.onThumbPointerUp)})});eZ.displayName=$X;var nZ=`ScrollAreaCorner`,rZ=Q.forwardRef((e,t)=>{let n=RX(nZ,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!==`scroll`&&r?(0,oX.jsx)(iZ,{...e,ref:t}):null});rZ.displayName=nZ;var iZ=Q.forwardRef((e,t)=>{let{__scopeScrollArea:n,...r}=e,i=RX(nZ,n),[a,o]=Q.useState(0),[s,c]=Q.useState(0),l=!!(a&&s);return mZ(i.scrollbarX,()=>{let e=i.scrollbarX?.offsetHeight||0;i.onCornerHeightChange(e),c(e)}),mZ(i.scrollbarY,()=>{let e=i.scrollbarY?.offsetWidth||0;i.onCornerWidthChange(e),o(e)}),l?(0,oX.jsx)(yX.div,{...r,ref:t,style:{width:a,height:s,position:`absolute`,right:i.dir===`ltr`?0:void 0,left:i.dir===`rtl`?0:void 0,bottom:0,...e.style}}):null});function aZ(e){return e?parseInt(e,10):0}function oZ(e,t){let n=e/t;return isNaN(n)?0:n}function sZ(e){let t=oZ(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function cZ(e,t,n,r=`ltr`){let i=sZ(n),a=i/2,o=t||a,s=i-o,c=n.scrollbar.paddingStart+o,l=n.scrollbar.size-n.scrollbar.paddingEnd-s,u=n.content-n.viewport,d=r===`ltr`?[0,u]:[u*-1,0];return uZ([c,l],d)(e)}function lZ(e,t,n=`ltr`){let r=sZ(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-i,o=t.content-t.viewport,s=a-r,c=jX(e,n===`ltr`?[0,o]:[o*-1,0]);return uZ([0,o],[0,s])(c)}function uZ(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function dZ(e,t){return e>0&&e<t}var fZ=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return(function i(){let a={left:e.scrollLeft,top:e.scrollTop},o=n.left!==a.left,s=n.top!==a.top;(o||s)&&t(),n=a,r=window.requestAnimationFrame(i)})(),()=>window.cancelAnimationFrame(r)};function pZ(e,t){let n=OX(e),r=Q.useRef(0);return Q.useEffect(()=>()=>window.clearTimeout(r.current),[]),Q.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function mZ(e,t){let n=OX(t);bX(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}function hZ(e,t){let{asChild:n,children:r}=e;if(!n)return typeof t==`function`?t(r):t;let i=Q.Children.only(r);return Q.cloneElement(i,{children:typeof t==`function`?t(i.props.children):t})}var gZ=zX,_Z=VX,vZ=UX,yZ=eZ,bZ=rZ,xZ=I(gZ)(({scrollbarsize:e,offset:t})=>({width:`100%`,height:`100%`,overflow:`hidden`,"--scrollbar-size":`${e+t}px`,"--radix-scroll-area-thumb-width":`${e}px`})),SZ=I(_Z)({width:`100%`,height:`100%`}),CZ=I(vZ)(({offset:e,horizontal:t,vertical:n})=>({display:`flex`,userSelect:`none`,touchAction:`none`,background:`transparent`,transition:`all 0.2s ease-out`,borderRadius:`var(--scrollbar-size)`,zIndex:1,'&[data-orientation="vertical"]':{width:`var(--scrollbar-size)`,paddingRight:e,marginTop:e,marginBottom:t===`true`&&n===`true`?0:e},'&[data-orientation="horizontal"]':{flexDirection:`column`,height:`var(--scrollbar-size)`,paddingBottom:e,marginLeft:e,marginRight:t===`true`&&n===`true`?0:e}})),wZ=I(yZ)(({theme:e})=>({flex:1,background:e.textMutedColor,opacity:.5,borderRadius:`var(--scrollbar-size)`,position:`relative`,transition:`opacity 0.2s ease-out`,zIndex:1,"&:hover":{opacity:.8},"::before":{content:`""`,position:`absolute`,top:`50%`,left:`50%`,transform:`translate(-50%,-50%)`,width:`100%`,height:`100%`}})),TZ=(0,Q.forwardRef)(({children:e,horizontal:t=!1,vertical:n=!1,offset:r=2,scrollbarSize:i=6,scrollPadding:a=0,className:o},s)=>Q.createElement(xZ,{scrollbarsize:i,offset:r,className:o},Q.createElement(SZ,{ref:s,style:{scrollPadding:a}},e),t&&Q.createElement(CZ,{orientation:`horizontal`,offset:r,horizontal:t.toString(),vertical:n.toString()},Q.createElement(wZ,null)),n&&Q.createElement(CZ,{orientation:`vertical`,offset:r,horizontal:t.toString(),vertical:n.toString()},Q.createElement(wZ,null)),t&&n&&Q.createElement(bZ,null)));TZ.displayName=`ScrollArea`;var{global:EZ}=__STORYBOOK_MODULE_GLOBAL__,{document:DZ,window:OZ}=EZ;async function kZ(e){try{await OZ.top?.navigator.clipboard.writeText(e)}catch{await OZ.navigator.clipboard.writeText(e)}}async function AZ(e){let t=DZ.createElement(`TEXTAREA`),n=DZ.activeElement;t.value=e,DZ.body.appendChild(t),t.select(),DZ.execCommand(`copy`),DZ.body.removeChild(t),n.focus()}function jZ(){return OZ.navigator?.clipboard?kZ:AZ}function MZ(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function NZ(){return NZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},NZ.apply(null,arguments)}function PZ(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function FZ(e,t){return FZ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},FZ(e,t)}function IZ(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,FZ(e,t)}function LZ(e){return LZ=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},LZ(e)}function RZ(e){try{return Function.toString.call(e).indexOf(`[native code]`)!==-1}catch{return typeof e==`function`}}function zZ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zZ=function(){return!!e})()}function BZ(e,t,n){if(zZ())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&FZ(i,n.prototype),i}function VZ(e){var t=typeof Map==`function`?new Map:void 0;return VZ=function(e){if(e===null||!RZ(e))return e;if(typeof e!=`function`)throw TypeError(`Super expression must either be null or a function`);if(t!==void 0){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return BZ(e,arguments,LZ(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),FZ(n,e)},VZ(e)}var HZ=(function(e){IZ(t,e);function t(t){return PZ(e.call(this,`An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#`+t+` for more information.`)||this)}return t})(VZ(Error));function UZ(e){return Math.round(e*255)}function WZ(e,t,n){return UZ(e)+`,`+UZ(t)+`,`+UZ(n)}function GZ(e,t,n,r){if(r===void 0&&(r=WZ),t===0)return r(n,n,n);var i=(e%360+360)%360/60,a=(1-Math.abs(2*n-1))*t,o=a*(1-Math.abs(i%2-1)),s=0,c=0,l=0;i>=0&&i<1?(s=a,c=o):i>=1&&i<2?(s=o,c=a):i>=2&&i<3?(c=a,l=o):i>=3&&i<4?(c=o,l=a):i>=4&&i<5?(s=o,l=a):i>=5&&i<6&&(s=a,l=o);var u=n-a/2,d=s+u,f=c+u,p=l+u;return r(d,f,p)}var KZ={aliceblue:`f0f8ff`,antiquewhite:`faebd7`,aqua:`00ffff`,aquamarine:`7fffd4`,azure:`f0ffff`,beige:`f5f5dc`,bisque:`ffe4c4`,black:`000`,blanchedalmond:`ffebcd`,blue:`0000ff`,blueviolet:`8a2be2`,brown:`a52a2a`,burlywood:`deb887`,cadetblue:`5f9ea0`,chartreuse:`7fff00`,chocolate:`d2691e`,coral:`ff7f50`,cornflowerblue:`6495ed`,cornsilk:`fff8dc`,crimson:`dc143c`,cyan:`00ffff`,darkblue:`00008b`,darkcyan:`008b8b`,darkgoldenrod:`b8860b`,darkgray:`a9a9a9`,darkgreen:`006400`,darkgrey:`a9a9a9`,darkkhaki:`bdb76b`,darkmagenta:`8b008b`,darkolivegreen:`556b2f`,darkorange:`ff8c00`,darkorchid:`9932cc`,darkred:`8b0000`,darksalmon:`e9967a`,darkseagreen:`8fbc8f`,darkslateblue:`483d8b`,darkslategray:`2f4f4f`,darkslategrey:`2f4f4f`,darkturquoise:`00ced1`,darkviolet:`9400d3`,deeppink:`ff1493`,deepskyblue:`00bfff`,dimgray:`696969`,dimgrey:`696969`,dodgerblue:`1e90ff`,firebrick:`b22222`,floralwhite:`fffaf0`,forestgreen:`228b22`,fuchsia:`ff00ff`,gainsboro:`dcdcdc`,ghostwhite:`f8f8ff`,gold:`ffd700`,goldenrod:`daa520`,gray:`808080`,green:`008000`,greenyellow:`adff2f`,grey:`808080`,honeydew:`f0fff0`,hotpink:`ff69b4`,indianred:`cd5c5c`,indigo:`4b0082`,ivory:`fffff0`,khaki:`f0e68c`,lavender:`e6e6fa`,lavenderblush:`fff0f5`,lawngreen:`7cfc00`,lemonchiffon:`fffacd`,lightblue:`add8e6`,lightcoral:`f08080`,lightcyan:`e0ffff`,lightgoldenrodyellow:`fafad2`,lightgray:`d3d3d3`,lightgreen:`90ee90`,lightgrey:`d3d3d3`,lightpink:`ffb6c1`,lightsalmon:`ffa07a`,lightseagreen:`20b2aa`,lightskyblue:`87cefa`,lightslategray:`789`,lightslategrey:`789`,lightsteelblue:`b0c4de`,lightyellow:`ffffe0`,lime:`0f0`,limegreen:`32cd32`,linen:`faf0e6`,magenta:`f0f`,maroon:`800000`,mediumaquamarine:`66cdaa`,mediumblue:`0000cd`,mediumorchid:`ba55d3`,mediumpurple:`9370db`,mediumseagreen:`3cb371`,mediumslateblue:`7b68ee`,mediumspringgreen:`00fa9a`,mediumturquoise:`48d1cc`,mediumvioletred:`c71585`,midnightblue:`191970`,mintcream:`f5fffa`,mistyrose:`ffe4e1`,moccasin:`ffe4b5`,navajowhite:`ffdead`,navy:`000080`,oldlace:`fdf5e6`,olive:`808000`,olivedrab:`6b8e23`,orange:`ffa500`,orangered:`ff4500`,orchid:`da70d6`,palegoldenrod:`eee8aa`,palegreen:`98fb98`,paleturquoise:`afeeee`,palevioletred:`db7093`,papayawhip:`ffefd5`,peachpuff:`ffdab9`,peru:`cd853f`,pink:`ffc0cb`,plum:`dda0dd`,powderblue:`b0e0e6`,purple:`800080`,rebeccapurple:`639`,red:`f00`,rosybrown:`bc8f8f`,royalblue:`4169e1`,saddlebrown:`8b4513`,salmon:`fa8072`,sandybrown:`f4a460`,seagreen:`2e8b57`,seashell:`fff5ee`,sienna:`a0522d`,silver:`c0c0c0`,skyblue:`87ceeb`,slateblue:`6a5acd`,slategray:`708090`,slategrey:`708090`,snow:`fffafa`,springgreen:`00ff7f`,steelblue:`4682b4`,tan:`d2b48c`,teal:`008080`,thistle:`d8bfd8`,tomato:`ff6347`,turquoise:`40e0d0`,violet:`ee82ee`,wheat:`f5deb3`,white:`fff`,whitesmoke:`f5f5f5`,yellow:`ff0`,yellowgreen:`9acd32`};function qZ(e){if(typeof e!=`string`)return e;var t=e.toLowerCase();return KZ[t]?`#`+KZ[t]:e}var JZ=/^#[a-fA-F0-9]{6}$/,YZ=/^#[a-fA-F0-9]{8}$/,XZ=/^#[a-fA-F0-9]{3}$/,ZZ=/^#[a-fA-F0-9]{4}$/,QZ=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,$Z=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,eQ=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,tQ=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function nQ(e){if(typeof e!=`string`)throw new HZ(3);var t=qZ(e);if(t.match(JZ))return{red:parseInt(``+t[1]+t[2],16),green:parseInt(``+t[3]+t[4],16),blue:parseInt(``+t[5]+t[6],16)};if(t.match(YZ)){var n=parseFloat((parseInt(``+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(``+t[1]+t[2],16),green:parseInt(``+t[3]+t[4],16),blue:parseInt(``+t[5]+t[6],16),alpha:n}}if(t.match(XZ))return{red:parseInt(``+t[1]+t[1],16),green:parseInt(``+t[2]+t[2],16),blue:parseInt(``+t[3]+t[3],16)};if(t.match(ZZ)){var r=parseFloat((parseInt(``+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(``+t[1]+t[1],16),green:parseInt(``+t[2]+t[2],16),blue:parseInt(``+t[3]+t[3],16),alpha:r}}var i=QZ.exec(t);if(i)return{red:parseInt(``+i[1],10),green:parseInt(``+i[2],10),blue:parseInt(``+i[3],10)};var a=$Z.exec(t.substring(0,50));if(a)return{red:parseInt(``+a[1],10),green:parseInt(``+a[2],10),blue:parseInt(``+a[3],10),alpha:parseFloat(``+a[4])>1?parseFloat(``+a[4])/100:parseFloat(``+a[4])};var o=eQ.exec(t);if(o){var s=`rgb(`+GZ(parseInt(``+o[1],10),parseInt(``+o[2],10)/100,parseInt(``+o[3],10)/100)+`)`,c=QZ.exec(s);if(!c)throw new HZ(4,t,s);return{red:parseInt(``+c[1],10),green:parseInt(``+c[2],10),blue:parseInt(``+c[3],10)}}var l=tQ.exec(t.substring(0,50));if(l){var u=`rgb(`+GZ(parseInt(``+l[1],10),parseInt(``+l[2],10)/100,parseInt(``+l[3],10)/100)+`)`,d=QZ.exec(u);if(!d)throw new HZ(4,t,u);return{red:parseInt(``+d[1],10),green:parseInt(``+d[2],10),blue:parseInt(``+d[3],10),alpha:parseFloat(``+l[4])>1?parseFloat(``+l[4])/100:parseFloat(``+l[4])}}throw new HZ(5)}function rQ(e){var t=e.red/255,n=e.green/255,r=e.blue/255,i=Math.max(t,n,r),a=Math.min(t,n,r),o=(i+a)/2;if(i===a)return e.alpha===void 0?{hue:0,saturation:0,lightness:o}:{hue:0,saturation:0,lightness:o,alpha:e.alpha};var s,c=i-a,l=o>.5?c/(2-i-a):c/(i+a);switch(i){case t:s=(n-r)/c+(n<r?6:0);break;case n:s=(r-t)/c+2;break;default:s=(t-n)/c+4;break}return s*=60,e.alpha===void 0?{hue:s,saturation:l,lightness:o}:{hue:s,saturation:l,lightness:o,alpha:e.alpha}}function iQ(e){return rQ(nQ(e))}var aQ=function(e){return e.length===7&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?`#`+e[1]+e[3]+e[5]:e};function oQ(e){var t=e.toString(16);return t.length===1?`0`+t:t}function sQ(e){return oQ(Math.round(e*255))}function cQ(e,t,n){return aQ(`#`+sQ(e)+sQ(t)+sQ(n))}function lQ(e,t,n){return GZ(e,t,n,cQ)}function uQ(e,t,n){if(typeof e==`number`&&typeof t==`number`&&typeof n==`number`)return lQ(e,t,n);if(typeof e==`object`&&t===void 0&&n===void 0)return lQ(e.hue,e.saturation,e.lightness);throw new HZ(1)}function dQ(e,t,n,r){if(typeof e==`number`&&typeof t==`number`&&typeof n==`number`&&typeof r==`number`)return r>=1?lQ(e,t,n):`rgba(`+GZ(e,t,n)+`,`+r+`)`;if(typeof e==`object`&&t===void 0&&n===void 0&&r===void 0)return e.alpha>=1?lQ(e.hue,e.saturation,e.lightness):`rgba(`+GZ(e.hue,e.saturation,e.lightness)+`,`+e.alpha+`)`;throw new HZ(2)}function fQ(e,t,n){if(typeof e==`number`&&typeof t==`number`&&typeof n==`number`)return aQ(`#`+oQ(e)+oQ(t)+oQ(n));if(typeof e==`object`&&t===void 0&&n===void 0)return aQ(`#`+oQ(e.red)+oQ(e.green)+oQ(e.blue));throw new HZ(6)}function pQ(e,t,n,r){if(typeof e==`string`&&typeof t==`number`){var i=nQ(e);return`rgba(`+i.red+`,`+i.green+`,`+i.blue+`,`+t+`)`}else{if(typeof e==`number`&&typeof t==`number`&&typeof n==`number`&&typeof r==`number`)return r>=1?fQ(e,t,n):`rgba(`+e+`,`+t+`,`+n+`,`+r+`)`;if(typeof e==`object`&&t===void 0&&n===void 0&&r===void 0)return e.alpha>=1?fQ(e.red,e.green,e.blue):`rgba(`+e.red+`,`+e.green+`,`+e.blue+`,`+e.alpha+`)`}throw new HZ(7)}var mQ=function(e){return typeof e.red==`number`&&typeof e.green==`number`&&typeof e.blue==`number`&&(typeof e.alpha!=`number`||typeof e.alpha>`u`)},hQ=function(e){return typeof e.red==`number`&&typeof e.green==`number`&&typeof e.blue==`number`&&typeof e.alpha==`number`},gQ=function(e){return typeof e.hue==`number`&&typeof e.saturation==`number`&&typeof e.lightness==`number`&&(typeof e.alpha!=`number`||typeof e.alpha>`u`)},_Q=function(e){return typeof e.hue==`number`&&typeof e.saturation==`number`&&typeof e.lightness==`number`&&typeof e.alpha==`number`};function vQ(e){if(typeof e!=`object`)throw new HZ(8);if(hQ(e))return pQ(e);if(mQ(e))return fQ(e);if(_Q(e))return dQ(e);if(gQ(e))return uQ(e);throw new HZ(8)}function yQ(e,t,n){return function(){var r=n.concat(Array.prototype.slice.call(arguments));return r.length>=t?e.apply(this,r):yQ(e,t,r)}}function bQ(e){return yQ(e,e.length,[])}function xQ(e,t){if(t===`transparent`)return t;var n=iQ(t);return vQ(NZ({},n,{hue:n.hue+parseFloat(e)}))}bQ(xQ);function SQ(e,t,n){return Math.max(e,Math.min(t,n))}function CQ(e,t){if(t===`transparent`)return t;var n=iQ(t);return vQ(NZ({},n,{lightness:SQ(0,1,n.lightness-parseFloat(e))}))}var wQ=bQ(CQ);function TQ(e,t){if(t===`transparent`)return t;var n=iQ(t);return vQ(NZ({},n,{saturation:SQ(0,1,n.saturation-parseFloat(e))}))}bQ(TQ);function EQ(e,t){if(t===`transparent`)return t;var n=iQ(t);return vQ(NZ({},n,{lightness:SQ(0,1,n.lightness+parseFloat(e))}))}var DQ=bQ(EQ);function OQ(e,t,n){if(t===`transparent`)return n;if(n===`transparent`)return t;if(e===0)return n;var r=nQ(t),i=NZ({},r,{alpha:typeof r.alpha==`number`?r.alpha:1}),a=nQ(n),o=NZ({},a,{alpha:typeof a.alpha==`number`?a.alpha:1}),s=i.alpha-o.alpha,c=parseFloat(e)*2-1,l=((c*s===-1?c:c+s)/(1+c*s)+1)/2,u=1-l;return pQ({red:Math.floor(i.red*l+o.red*u),green:Math.floor(i.green*l+o.green*u),blue:Math.floor(i.blue*l+o.blue*u),alpha:i.alpha*parseFloat(e)+o.alpha*(1-parseFloat(e))})}var kQ=bQ(OQ);function AQ(e,t){if(t===`transparent`)return t;var n=nQ(t),r=typeof n.alpha==`number`?n.alpha:1;return pQ(NZ({},n,{alpha:SQ(0,1,(r*100+parseFloat(e)*100)/100)}))}var jQ=bQ(AQ);function MQ(e,t){if(t===`transparent`)return t;var n=iQ(t);return vQ(NZ({},n,{saturation:SQ(0,1,n.saturation+parseFloat(e))}))}bQ(MQ);function NQ(e,t){return t===`transparent`?t:vQ(NZ({},iQ(t),{hue:parseFloat(e)}))}bQ(NQ);function PQ(e,t){return t===`transparent`?t:vQ(NZ({},iQ(t),{lightness:parseFloat(e)}))}bQ(PQ);function FQ(e,t){return t===`transparent`?t:vQ(NZ({},iQ(t),{saturation:parseFloat(e)}))}bQ(FQ);function IQ(e,t){return t===`transparent`?t:kQ(parseFloat(e),`rgb(0, 0, 0)`,t)}bQ(IQ);function LQ(e,t){return t===`transparent`?t:kQ(parseFloat(e),`rgb(255, 255, 255)`,t)}bQ(LQ);function RQ(e,t){if(t===`transparent`)return t;var n=nQ(t),r=typeof n.alpha==`number`?n.alpha:1;return pQ(NZ({},n,{alpha:SQ(0,1,(r*100-parseFloat(e)*100).toFixed(2)/100)}))}var zQ=bQ(RQ),BQ=I.div(se,({theme:e})=>({backgroundColor:e.base===`light`?`rgba(0,0,0,.01)`:`rgba(255,255,255,.01)`,borderRadius:e.appBorderRadius,border:`1px dashed ${e.appBorderColor}`,display:`flex`,alignItems:`center`,justifyContent:`center`,padding:20,margin:`25px 0 40px`,color:zQ(.3,e.color.defaultText),fontSize:e.typography.size.s2})),VQ=e=>Q.createElement(BQ,{...e,className:`docblock-emptyblock sb-unstyled`}),HQ=I(E)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,lineHeight:`19px`,margin:`25px 0 40px`,borderRadius:e.appBorderRadius,boxShadow:e.base===`light`?`rgba(0, 0, 0, 0.10) 0 1px 3px 0`:`rgba(0, 0, 0, 0.20) 0 2px 5px 0`,"pre.prismjs":{padding:20,background:`inherit`}})),UQ=I.div(({theme:e})=>({background:e.background.content,borderRadius:e.appBorderRadius,border:`1px solid ${e.appBorderColor}`,boxShadow:e.base===`light`?`rgba(0, 0, 0, 0.10) 0 1px 3px 0`:`rgba(0, 0, 0, 0.20) 0 2px 5px 0`,margin:`25px 0 40px`,padding:`20px 20px 20px 22px`})),WQ=I.div(({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:`60%`,[`&:first-child${ue}`]:{margin:0}})),GQ=()=>Q.createElement(UQ,null,Q.createElement(WQ,null),Q.createElement(WQ,{style:{width:`80%`}}),Q.createElement(WQ,{style:{width:`30%`}}),Q.createElement(WQ,{style:{width:`80%`}})),KQ=({isLoading:e,error:t,language:n,code:r,dark:i,format:a=!0,...o})=>{let{typography:s}=de();if(e)return Q.createElement(GQ,null);if(t)return Q.createElement(VQ,null,t);let c=Q.createElement(HQ,{bordered:!0,copyable:!0,format:a,language:n??`jsx`,className:`docblock-source sb-unstyled`,...o},r);if(typeof i>`u`)return c;let l=i?pe.dark:pe.light;return Q.createElement(he,{theme:fe({...l,fontCode:s.fonts.mono,fontBase:s.fonts.base})},c)},{once:qQ}=__STORYBOOK_MODULE_CLIENT_LOGGER__;function JQ(e){return e==null||typeof e!=`object`&&typeof e!=`function`}function YQ(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function XQ(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function ZQ(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var QQ=`[object RegExp]`,$Q=`[object String]`,e$=`[object Number]`,t$=`[object Boolean]`,n$=`[object Arguments]`,r$=`[object Symbol]`,i$=`[object Date]`,a$=`[object Map]`,o$=`[object Set]`,s$=`[object Array]`,c$=`[object ArrayBuffer]`,l$=`[object Object]`,u$=`[object DataView]`,d$=`[object Uint8Array]`,f$=`[object Uint8ClampedArray]`,p$=`[object Uint16Array]`,m$=`[object Uint32Array]`,h$=`[object Int8Array]`,g$=`[object Int16Array]`,_$=`[object Int32Array]`,v$=`[object Float32Array]`,y$=`[object Float64Array]`;function b$(e,t,n,r=new Map,i=void 0){let a=i?.(e,t,n,r);if(a!==void 0)return a;if(JQ(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=b$(e[a],a,n,r,i);return Object.hasOwn(e,`index`)&&(t.index=e.index),Object.hasOwn(e,`input`)&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){let t=new Map;r.set(e,t);for(let[a,o]of e)t.set(a,b$(o,a,n,r,i));return t}if(e instanceof Set){let t=new Set;r.set(e,t);for(let a of e)t.add(b$(a,void 0,n,r,i));return t}if(typeof Buffer<`u`&&Buffer.isBuffer(e))return e.subarray();if(YQ(e)){let t=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=b$(e[a],a,n,r,i);return t}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,t),x$(t,e,n,r,i),t}if(typeof File<`u`&&e instanceof File){let t=new File([e],e.name,{type:e.type});return r.set(e,t),x$(t,e,n,r,i),t}if(typeof Blob<`u`&&e instanceof Blob){let t=new Blob([e],{type:e.type});return r.set(e,t),x$(t,e,n,r,i),t}if(e instanceof Error){let t=new e.constructor;return r.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,x$(t,e,n,r,i),t}if(e instanceof Boolean){let t=new Boolean(e.valueOf());return r.set(e,t),x$(t,e,n,r,i),t}if(e instanceof Number){let t=new Number(e.valueOf());return r.set(e,t),x$(t,e,n,r,i),t}if(e instanceof String){let t=new String(e.valueOf());return r.set(e,t),x$(t,e,n,r,i),t}if(typeof e==`object`&&S$(e)){let t=Object.create(Object.getPrototypeOf(e));return r.set(e,t),x$(t,e,n,r,i),t}return e}function x$(e,t,n=e,r,i){let a=[...Object.keys(t),...XQ(t)];for(let o=0;o<a.length;o++){let s=a[o],c=Object.getOwnPropertyDescriptor(e,s);(c==null||c.writable)&&(e[s]=b$(t[s],s,n,r,i))}}function S$(e){switch(ZQ(e)){case n$:case s$:case c$:case u$:case t$:case i$:case v$:case y$:case h$:case g$:case _$:case a$:case e$:case l$:case QQ:case o$:case $Q:case r$:case d$:case f$:case p$:case m$:return!0;default:return!1}}function C$(e){return b$(e,void 0,e,new Map,void 0)}function w$(e,t){let n={},r=Object.keys(e);for(let i=0;i<r.length;i++){let a=r[i],o=e[a];t(o,a)&&(n[a]=o)}return n}function T$(){return T$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T$.apply(this,arguments)}var E$=[`children`,`options`],D$=`allowFullScreen.allowTransparency.autoComplete.autoFocus.autoPlay.cellPadding.cellSpacing.charSet.classId.colSpan.contentEditable.contextMenu.crossOrigin.encType.formAction.formEncType.formMethod.formNoValidate.formTarget.frameBorder.hrefLang.inputMode.keyParams.keyType.marginHeight.marginWidth.maxLength.mediaGroup.minLength.noValidate.radioGroup.readOnly.rowSpan.spellCheck.srcDoc.srcLang.srcSet.tabIndex.useMap`.split(`.`).reduce((e,t)=>(e[t.toLowerCase()]=t,e),{class:`className`,for:`htmlFor`}),O$={amp:`&`,apos:`'`,gt:`>`,lt:`<`,nbsp:`\xA0`,quot:`“`},k$=[`style`,`script`,`pre`],A$=[`src`,`href`,`data`,`formAction`,`srcDoc`,`action`],j$=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,M$=/\n{2,}$/,N$=/^(\s*>[\s\S]*?)(?=\n\n|$)/,P$=/^ *> ?/gm,F$=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,I$=/^ {2,}\n/,L$=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,R$=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,z$=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,B$=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,V$=/^(?:\n *)*\n/,H$=/\r\n?/g,U$=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,W$=/^\[\^([^\]]+)]/,G$=/\f/g,K$=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,q$=/^\s*?\[(x|\s)\]/,J$=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Y$=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,X$=/^([^\n]+)\n *(=|-)\2{2,} *\n/,Z$=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,Q$=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,$$=/^<!--[\s\S]*?(?:-->)/,e1=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,t1=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,n1=/^\{.*\}$/,r1=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,i1=/^<([^ >]+[:@\/][^ >]+)>/,a1=/-([a-z])?/gi,o1=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,s1=/^[^\n]+(?: \n|\n{2,})/,c1=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,l1=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,u1=/^\[([^\]]*)\] ?\[([^\]]*)\]/,d1=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,f1=/\t/g,p1=/(^ *\||\| *$)/g,m1=/^ *:-+: *$/,h1=/^ *:-+ *$/,g1=/^ *-+: *$/,_1=e=>`(?=[\\s\\S]+?\\1${e?`\\1`:``})`,v1="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",y1=RegExp(`^([*_])\\1${_1(1)}${v1}\\1\\1(?!\\1)`),b1=RegExp(`^([*_])${_1(0)}${v1}\\1(?!\\1)`),x1=RegExp(`^(==)${_1(0)}${v1}\\1`),S1=RegExp(`^(~~)${_1(0)}${v1}\\1`),C1=/^(:[a-zA-Z0-9-_]+:)/,w1=/^\\([^0-9A-Za-z\s])/,T1=/\\([^0-9A-Za-z\s])/g,E1=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,D1=/^\n+/,O1=/^([ \t]*)/,k1=/(?:^|\n)( *)$/,A1=`(?:\\d+\\.)`,j1=`(?:[*+-])`;function M1(e){return`( *)(`+(e===1?A1:j1)+`) +`}var N1=M1(1),P1=M1(2);function F1(e){return RegExp(`^`+(e===1?N1:P1))}var I1=F1(1),L1=F1(2);function R1(e){return RegExp(`^`+(e===1?N1:P1)+`[^\\n]*(?:\\n(?!\\1`+(e===1?A1:j1)+` )[^\\n]*)*(\\n|$)`,`gm`)}var z1=R1(1),B1=R1(2);function V1(e){let t=e===1?A1:j1;return RegExp(`^( *)(`+t+`) [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1`+t+` (?!`+t+` ))\\n*|\\s*\\n*$)`)}var H1=V1(1),U1=V1(2);function W1(e,t){let n=t===1,r=n?H1:U1,i=n?z1:B1,a=n?I1:L1;return{t:e=>a.test(e),o:n0(function(e,t){let n=k1.exec(t.prevCapture);return n&&(t.list||!t.inline&&!t.simple)?r.exec(e=n[1]+e):null}),i:1,u(e,t,r){let o=n?+e[2]:void 0,s=e[0].replace(M$,`
1095
- `).match(i),c=!1;return{items:s.map(function(e,n){let i=a.exec(e)[0].length,o=RegExp(`^ {1,`+i+`}`,`gm`),l=e.replace(o,``).replace(a,``),u=n===s.length-1,d=l.indexOf(`
1096
-
1097
- `)!==-1||u&&c;c=d;let f=r.inline,p=r.list,m;r.list=!0,d?(r.inline=!1,m=J1(l)+`
1098
-
1099
- `):(r.inline=!0,m=J1(l));let h=t(m,r);return r.inline=f,r.list=p,h}),ordered:n,start:o}},l:(t,n,r)=>e(t.ordered?`ol`:`ul`,{key:r.key,start:t.type===`20`?t.start:void 0},t.items.map(function(t,i){return e(`li`,{key:i},n(t,r))}))}}var G1=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),K1=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function q1(e){return typeof e==`string`}function J1(e){let t=e.length;for(;t>0&&e[t-1]<=` `;)t--;return e.slice(0,t)}function Y1(e,t){return e.startsWith(t)}function X1(e,t,n){if(Array.isArray(n)){for(let t=0;t<n.length;t++)if(Y1(e,n[t]))return!0;return!1}return n(e,t)}function Z1(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,`a`).replace(/[çÇ]/g,`c`).replace(/[ðÐ]/g,`d`).replace(/[ÈÉÊËéèêë]/g,`e`).replace(/[ÏïÎîÍíÌì]/g,`i`).replace(/[Ññ]/g,`n`).replace(/[øØœŒÕõÔôÓóÒò]/g,`o`).replace(/[ÜüÛûÚúÙù]/g,`u`).replace(/[ŸÿÝý]/g,`y`).replace(/[^a-z0-9- ]/gi,``).replace(/ /gi,`-`).toLowerCase()}function Q1(e){return g1.test(e)?`right`:m1.test(e)?`center`:h1.test(e)?`left`:null}function $1(e,t,n,r){let i=n.inTable;n.inTable=!0;let a=[[]],o=``;function s(){if(!o)return;let e=a[a.length-1];e.push.apply(e,t(o,n)),o=``}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((e,t,n)=>{e.trim()===`|`&&(s(),r)?t!==0&&t!==n.length-1&&a.push([]):o+=e}),s(),n.inTable=i,a}function e0(e,t,n){n.inline=!0;let r=e[2]?e[2].replace(p1,``).split(`|`).map(Q1):[],i=e[3]?(function(e,t,n){return e.trim().split(`
1100
- `).map(function(e){return $1(e,t,n,!0)})})(e[3],t,n):[],a=$1(e[1],t,n,!!i.length);return n.inline=!1,i.length?{align:r,cells:i,header:a,type:`25`}:{children:a,type:`21`}}function t0(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function n0(e){return e.inline=1,e}function r0(e){return n0(function(t,n){return n.inline?e.exec(t):null})}function i0(e){return n0(function(t,n){return n.inline||n.simple?e.exec(t):null})}function a0(e){return function(t,n){return n.inline||n.simple?null:e.exec(t)}}function o0(e){return n0(function(t){return e.exec(t)})}var s0=/(javascript|vbscript|data(?!:image)):/i;function c0(e){try{let t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,``);if(s0.test(t))return null}catch{return null}return e}function l0(e){return e&&e.replace(T1,`$1`)}function u0(e,t,n){let r=n.inline||!1,i=n.simple||!1;n.inline=!0,n.simple=!0;let a=e(t,n);return n.inline=r,n.simple=i,a}function d0(e,t,n){let r=n.inline||!1,i=n.simple||!1;n.inline=!1,n.simple=!0;let a=e(t,n);return n.inline=r,n.simple=i,a}function f0(e,t,n){let r=n.inline||!1;n.inline=!1;let i=e(t,n);return n.inline=r,i}var p0=(e,t,n)=>({children:u0(t,e[2],n)});function m0(){return{}}function h0(){return null}function g0(...e){return e.filter(Boolean).join(` `)}function _0(e,t,n){let r=e,i=t.split(`.`);for(;i.length&&(r=r[i[0]],r!==void 0);)i.shift();return r||n}function v0(e=``,t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?T$({},O$,t.namedCodesToUnicode):O$;let n=t.slugify||Z1,r=t.sanitizer||c0,i=t.createElement||Q.createElement,a=[N$,R$,z$,t.enforceAtxHeadings?Y$:J$,X$,o1,H1,U1],o=[...a,s1,Z$,$$,t1];function s(e,t){for(let n=0;n<e.length;n++)if(e[n].test(t))return!0;return!1}function c(e,n,...r){let a=_0(t.overrides,e+`.props`,{});return i((function(e,t){let n=_0(t,e);return n?typeof n==`function`||typeof n==`object`&&`render`in n?n:_0(t,e+`.component`,e):e})(e,t.overrides),T$({},n,a,{className:g0(n?.className,a.className)||void 0}),...r)}function l(e){e=e.replace(K$,``);let n=!1;t.forceInline?n=!0:t.forceBlock||(n=d1.test(e)===!1);let r=h(m(n?e:J1(e).replace(D1,``)+`
1101
-
1102
- `,{inline:n}));for(;q1(r[r.length-1])&&!r[r.length-1].trim();)r.pop();if(t.wrapper===null)return r;let a=t.wrapper||(n?`span`:`div`),o;if(r.length>1||t.forceWrapper)o=r;else{if(r.length===1)return o=r[0],typeof o==`string`?c(`span`,{key:`outer`},o):o;o=null}return i(a,{key:`outer`},o)}function u(e,t){if(!t||!t.trim())return null;let n=t.match(j$);return n?n.reduce(function(t,n){let i=n.indexOf(`=`);if(i!==-1){let a=(function(e){return e.indexOf(`-`)!==-1&&e.match(e1)===null&&(e=e.replace(a1,function(e,t){return t.toUpperCase()})),e})(n.slice(0,i)).trim(),o=(function(e){let t=e[0];return(t===`"`||t===`'`)&&e.length>=2&&e[e.length-1]===t?e.slice(1,-1):e})(n.slice(i+1).trim()),s=D$[a]||a;if(s===`ref`)return t;let c=t[s]=(function(e,t,n,r){return t===`style`?(function(e){let t=[],n=``,r=!1,i=!1,a=``;if(!e)return t;for(let o=0;o<e.length;o++){let s=e[o];if(s!==`"`&&s!==`'`||r||(i?s===a&&(i=!1,a=``):(i=!0,a=s)),s===`(`&&n.endsWith(`url`)?r=!0:s===`)`&&r&&(r=!1),s!==`;`||i||r)n+=s;else{let e=n.trim();if(e){let n=e.indexOf(`:`);if(n>0){let r=e.slice(0,n).trim(),i=e.slice(n+1).trim();t.push([r,i])}}n=``}}let o=n.trim();if(o){let e=o.indexOf(`:`);if(e>0){let n=o.slice(0,e).trim(),r=o.slice(e+1).trim();t.push([n,r])}}return t})(n).reduce(function(t,[n,i]){return t[n.replace(/(-[a-z])/g,e=>e[1].toUpperCase())]=r(i,e,n),t},{}):A$.indexOf(t)===-1?(n.match(n1)&&(n=l0(n.slice(1,n.length-1))),n===`true`||n!==`false`&&n):r(l0(n),e,t)})(e,a,o,r);typeof c==`string`&&(Z$.test(c)||t1.test(c))&&(t[s]=l(c.trim()))}else n!==`style`&&(t[D$[n]||n]=!0);return t},{}):null}let d=[],f={},p={0:{t:[`>`],o:a0(N$),i:1,u(e,t,n){let[,r,i]=e[0].replace(P$,``).match(F$);return{alert:r,children:t(i,n)}},l(e,t,r){let i={key:r.key};return e.alert&&(i.className=`markdown-alert-`+n(e.alert.toLowerCase(),Z1),e.children.unshift({attrs:{},children:[{type:`27`,text:e.alert}],noInnerParse:!0,type:`11`,tag:`header`})),c(`blockquote`,i,t(e.children,r))}},1:{t:[` `],o:o0(I$),i:1,u:m0,l:(e,t,n)=>c(`br`,{key:n.key})},2:{t:[`--`,`__`,`**`,`- `,`* `,`_ `],o:a0(L$),i:1,u:m0,l:(e,t,n)=>c(`hr`,{key:n.key})},3:{t:[` `],o:a0(z$),i:0,u:e=>({lang:void 0,text:l0(J1(e[0].replace(/^ {4}/gm,``)))}),l:(e,t,n)=>c(`pre`,{key:n.key},c(`code`,T$({},e.attrs,{className:e.lang?`lang-`+e.lang:``}),e.text))},4:{t:["```",`~~~`],o:a0(R$),i:0,u:e=>({attrs:u(`code`,e[3]||``),lang:e[2]||void 0,text:e[4],type:`3`})},5:{t:["`"],o:i0(B$),i:3,u:e=>({text:l0(e[2])}),l:(e,t,n)=>c(`code`,{key:n.key},e.text)},6:{t:[`[^`],o:a0(U$),i:0,u:e=>(d.push({footnote:e[2],identifier:e[1]}),{}),l:h0},7:{t:[`[^`],o:r0(W$),i:1,u:e=>({target:`#`+n(e[1],Z1),text:e[1]}),l:(e,t,n)=>c(`a`,{key:n.key,href:r(e.target,`a`,`href`)},c(`sup`,{key:n.key},e.text))},8:{t:[`[ ]`,`[x]`],o:r0(q$),i:1,u:e=>({completed:e[1].toLowerCase()===`x`}),l:(e,t,n)=>c(`input`,{checked:e.completed,key:n.key,readOnly:!0,type:`checkbox`})},9:{t:[`#`],o:a0(t.enforceAtxHeadings?Y$:J$),i:1,u:(e,t,r)=>({children:u0(t,e[2],r),id:n(e[2],Z1),level:e[1].length}),l:(e,t,n)=>c(`h`+e.level,{id:e.id,key:n.key},t(e.children,n))},10:{t:e=>{let t=e.indexOf(`
1103
- `);return t>0&&t<e.length-1&&(e[t+1]===`=`||e[t+1]===`-`)},o:a0(X$),i:1,u:(e,t,n)=>({children:u0(t,e[1],n),level:e[2]===`=`?1:2,type:`9`})},11:{t:[`<`],o:o0(Z$),i:1,u(e,t,n){let[,r]=e[3].match(O1),i=RegExp(`^`+r,`gm`),a=e[3].replace(i,``),c=s(o,a)?f0:u0,l=e[1].toLowerCase(),d=k$.indexOf(l)!==-1,f=(d?l:e[1]).trim(),p={attrs:u(f,e[2]),noInnerParse:d,tag:f};if(n.inAnchor=n.inAnchor||l===`a`,d)p.text=e[3];else{let e=n.inHTML;n.inHTML=!0,p.children=c(t,a,n),n.inHTML=e}return n.inAnchor=!1,p},l:(e,t,n)=>c(e.tag,T$({key:n.key},e.attrs),e.text||(e.children?t(e.children,n):``))},13:{t:[`<`],o:o0(t1),i:1,u(e){let t=e[1].trim();return{attrs:u(t,e[2]||``),tag:t}},l:(e,t,n)=>c(e.tag,T$({},e.attrs,{key:n.key}))},12:{t:[`<!--`],o:o0($$),i:1,u:()=>({}),l:h0},14:{t:[`![`],o:i0(K1),i:1,u:e=>({alt:l0(e[1]),target:l0(e[2]),title:l0(e[3])}),l:(e,t,n)=>c(`img`,{key:n.key,alt:e.alt||void 0,title:e.title||void 0,src:r(e.target,`img`,`src`)})},15:{t:[`[`],o:r0(G1),i:3,u:(e,t,n)=>({children:d0(t,e[1],n),target:l0(e[2]),title:l0(e[3])}),l:(e,t,n)=>c(`a`,{key:n.key,href:r(e.target,`a`,`href`),title:e.title},t(e.children,n))},16:{t:[`<`],o:r0(i1),i:0,u(e){let t=e[1],n=!1;return t.indexOf(`@`)!==-1&&t.indexOf(`//`)===-1&&(n=!0,t=t.replace(`mailto:`,``)),{children:[{text:t,type:`27`}],target:n?`mailto:`+t:t,type:`15`}}},17:{t:(e,n)=>!n.inAnchor&&!t.disableAutoLink&&(Y1(e,`http://`)||Y1(e,`https://`)),o:r0(r1),i:0,u:e=>({children:[{text:e[1],type:`27`}],target:e[1],title:void 0,type:`15`})},20:W1(c,1),33:W1(c,2),19:{t:[`
1104
- `],o:a0(V$),i:3,u:m0,l:()=>`
1105
- `},21:{o:n0(function(e,t){if(t.inline||t.simple||t.inHTML&&e.indexOf(`
1106
-
1107
- `)===-1&&t.prevCapture.indexOf(`
1108
-
1109
- `)===-1)return null;let n=``,r=0;for(;;){let t=e.indexOf(`
1110
- `,r),i=e.slice(r,t===-1?void 0:t+1);if(s(a,i)||(n+=i,t===-1||!i.trim()))break;r=t+1}let i=J1(n);return i===``?null:[n,,i]}),i:3,u:p0,l:(e,t,n)=>c(`p`,{key:n.key},t(e.children,n))},22:{t:[`[`],o:r0(c1),i:0,u:e=>(f[e[1]]={target:e[2],title:e[4]},{}),l:h0},23:{t:[`![`],o:i0(l1),i:0,u:e=>({alt:e[1]?l0(e[1]):void 0,ref:e[2]}),l:(e,t,n)=>f[e.ref]?c(`img`,{key:n.key,alt:e.alt,src:r(f[e.ref].target,`img`,`src`),title:f[e.ref].title}):null},24:{t:e=>e[0]===`[`&&e.indexOf(`](`)===-1,o:r0(u1),i:0,u:(e,t,n)=>({children:t(e[1],n),fallbackChildren:e[0],ref:e[2]}),l:(e,t,n)=>f[e.ref]?c(`a`,{key:n.key,href:r(f[e.ref].target,`a`,`href`),title:f[e.ref].title},t(e.children,n)):c(`span`,{key:n.key},e.fallbackChildren)},25:{t:[`|`],o:a0(o1),i:1,u:e0,l(e,t,n){let r=e;return c(`table`,{key:n.key},c(`thead`,null,c(`tr`,null,r.header.map(function(e,i){return c(`th`,{key:i,style:t0(r,i)},t(e,n))}))),c(`tbody`,null,r.cells.map(function(e,i){return c(`tr`,{key:i},e.map(function(e,i){return c(`td`,{key:i,style:t0(r,i)},t(e,n))}))})))}},27:{o:n0(function(e,t){let n;return Y1(e,`:`)&&(n=C1.exec(e)),n||E1.exec(e)}),i:4,u(e){let n=e[0];return{text:n.indexOf(`&`)===-1?n:n.replace(Q$,(e,n)=>t.namedCodesToUnicode[n]||e)}},l:e=>e.text},28:{t:[`**`,`__`],o:i0(y1),i:2,u:(e,t,n)=>({children:t(e[2],n)}),l:(e,t,n)=>c(`strong`,{key:n.key},t(e.children,n))},29:{t:e=>{let t=e[0];return(t===`*`||t===`_`)&&e[1]!==t},o:i0(b1),i:3,u:(e,t,n)=>({children:t(e[2],n)}),l:(e,t,n)=>c(`em`,{key:n.key},t(e.children,n))},30:{t:[`\\`],o:i0(w1),i:1,u:e=>({text:e[1],type:`27`})},31:{t:[`==`],o:i0(x1),i:3,u:p0,l:(e,t,n)=>c(`mark`,{key:n.key},t(e.children,n))},32:{t:[`~~`],o:i0(S1),i:3,u:p0,l:(e,t,n)=>c(`del`,{key:n.key},t(e.children,n))}};t.disableParsingRawHTML===!0&&(delete p[11],delete p[13]);let m=(function(e){var t=Object.keys(e);function n(r,i){var a=[];if(i.prevCapture=i.prevCapture||``,r.trim())for(;r;)for(var o=0;o<t.length;){var s=t[o],c=e[s];if(!c.t||X1(r,i,c.t)){var l=c.o(r,i);if(l&&l[0]){r=r.substring(l[0].length);var u=c.u(l,n,i);i.prevCapture+=l[0],u.type||=s,a.push(u);break}o++}else o++}return i.prevCapture=``,a}return t.sort(function(t,n){return e[t].i-e[n].i||(t<n?-1:1)}),function(e,t){return n((function(e){return e.replace(H$,`
1111
- `).replace(G$,``).replace(f1,` `)})(e),t)}})(p),h=(function(e,t){return function n(r,i={}){if(Array.isArray(r)){let e=i.key,t=[],a=!1;for(let e=0;e<r.length;e++){i.key=e;let o=n(r[e],i),s=q1(o);s&&a?t[t.length-1]+=o:o!==null&&t.push(o),a=s}return i.key=e,t}return(function(n,r,i){let a=e[n.type].l;return t?t(()=>a(n,r,i),n,r,i):a(n,r,i)})(r,n,i)}})(p,t.renderRule),g=l(e);return d.length?c(`div`,null,g,c(`footer`,{key:`footer`},d.map(function(e){return c(`div`,{id:n(e.identifier,Z1),key:e.identifier},e.identifier,h(m(e.footnote,{inline:!0})))}))):g}var y0=e=>{let{children:t,options:n}=e,r=(function(e,t){if(e==null)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(i[n]=e[n]);return i})(e,E$);return Q.cloneElement(v0(t??``,n),r)},b0=I.label(({theme:e})=>({lineHeight:`18px`,alignItems:`center`,marginBottom:8,display:`inline-block`,position:`relative`,whiteSpace:`nowrap`,background:e.boolean.background,borderRadius:`3em`,padding:1,'&[aria-disabled="true"]':{opacity:.5,input:{cursor:`not-allowed`}},input:{appearance:`none`,width:`100%`,height:`100%`,position:`absolute`,left:0,top:0,margin:0,padding:0,border:`none`,background:`transparent`,cursor:`pointer`,borderRadius:`3em`,"&:focus":{outline:`none`,boxShadow:`${e.color.secondary} 0 0 0 1px inset !important`},"@media (forced-colors: active)":{"&:focus":{outline:`1px solid highlight`}}},span:{textAlign:`center`,fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:`1`,cursor:`pointer`,display:`inline-block`,padding:`7px 15px`,transition:`all 100ms ease-out`,userSelect:`none`,borderRadius:`3em`,color:zQ(.5,e.color.defaultText),background:`transparent`,"&:hover":{boxShadow:`${jQ(.3,e.appBorderColor)} 0 0 0 1px inset`},"&:active":{boxShadow:`${jQ(.05,e.appBorderColor)} 0 0 0 2px inset`,color:jQ(1,e.appBorderColor)},"&:first-of-type":{paddingRight:8},"&:last-of-type":{paddingLeft:8}},"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type":{background:e.boolean.selectedBackground,boxShadow:e.base===`light`?`${jQ(.1,e.appBorderColor)} 0 0 2px`:`${e.appBorderColor} 0 0 0 1px`,color:e.color.defaultText,padding:`7px 15px`,"@media (forced-colors: active)":{textDecoration:`underline`}}})),x0=e=>e===`true`,S0=({name:e,value:t,onChange:n,onBlur:r,onFocus:i,argType:a})=>{let o=(0,Q.useCallback)(()=>n(!1),[n]),s=!!a?.table?.readonly;if(t===void 0)return Q.createElement(ie,{ariaLabel:!1,variant:`outline`,size:`medium`,id:QY(e),onClick:o,disabled:s},`Set boolean`);let c=ZY(e),l=typeof t==`string`?x0(t):t;return Q.createElement(b0,{"aria-disabled":s,htmlFor:c,"aria-label":e},Q.createElement(`input`,{id:c,type:`checkbox`,onChange:e=>n(e.target.checked),checked:l,role:`switch`,disabled:s,name:e,onBlur:r,onFocus:i}),Q.createElement(`span`,{"aria-hidden":`true`},`False`),Q.createElement(`span`,{"aria-hidden":`true`},`True`))},C0=e=>{let[t,n,r]=e.split(`-`),i=new Date;return i.setFullYear(parseInt(t,10),parseInt(n,10)-1,parseInt(r,10)),i},w0=e=>{let[t,n]=e.split(`:`),r=new Date;return r.setHours(parseInt(t,10)),r.setMinutes(parseInt(n,10)),r},T0=e=>{let t=new Date(e);return`${`000${t.getFullYear()}`.slice(-4)}-${`0${t.getMonth()+1}`.slice(-2)}-${`0${t.getDate()}`.slice(-2)}`},E0=e=>{let t=new Date(e);return`${`0${t.getHours()}`.slice(-2)}:${`0${t.getMinutes()}`.slice(-2)}`},D0=I(S.Input)(({theme:e})=>({"&[readonly]":{background:e.base===`light`?e.color.lighter:`transparent`},"&::-webkit-calendar-picker-indicator":{opacity:.5,height:12,filter:e.base===`light`?void 0:`invert(1)`}})),O0=I.fieldset({flex:1,display:`flex`,border:0,marginInline:0,padding:0,gap:10,"div:first-of-type":{flex:4},"div:last-of-type":{flex:3}}),k0=({name:e,value:t,onChange:n,onFocus:r,onBlur:i,argType:a})=>{let[o,s]=(0,Q.useState)(!0),c=(0,Q.useRef)(),l=(0,Q.useRef)(),u=!!a?.table?.readonly;(0,Q.useEffect)(()=>{o!==!1&&(c&&c.current&&(c.current.value=t?T0(t):``),l&&l.current&&(l.current.value=t?E0(t):``))},[t]);let d=e=>{if(!e.target.value)return n();let r=C0(e.target.value),i=new Date(t??``);i.setFullYear(r.getFullYear(),r.getMonth(),r.getDate());let a=i.getTime();a&&n(a),s(!!a)},f=e=>{if(!e.target.value)return n();let r=w0(e.target.value),i=new Date(t??``);i.setHours(r.getHours()),i.setMinutes(r.getMinutes());let a=i.getTime();a&&n(a),s(!!a)},p=ZY(e);return Q.createElement(O0,null,Q.createElement(`legend`,{className:`sb-sr-only`},e),Q.createElement(`label`,{htmlFor:`${p}-date`,className:`sb-sr-only`},`Date`),Q.createElement(D0,{type:`date`,max:`9999-12-31`,ref:c,id:`${p}-date`,name:`${p}-date`,readOnly:u,onChange:d,onFocus:r,onBlur:i}),Q.createElement(`label`,{htmlFor:`${p}-time`,className:`sb-sr-only`},`Time`),Q.createElement(D0,{type:`time`,id:`${p}-time`,name:`${p}-time`,ref:l,onChange:f,readOnly:u,onFocus:r,onBlur:i}),o?null:Q.createElement(`div`,null,`invalid`))},A0=I.label({display:`flex`}),j0=e=>{let t=parseFloat(e);return Number.isNaN(t)?void 0:t},M0=I(S.Input)(({theme:e})=>({background:e.base===`light`?e.color.lighter:`transparent`})),N0=({name:e,value:t,onChange:n,min:r,max:i,step:a,onBlur:o,onFocus:s,argType:c})=>{let[l,u]=(0,Q.useState)(typeof t==`number`?t:``),[d,f]=(0,Q.useState)(!1),[p,m]=(0,Q.useState)(null),h=!!c?.table?.readonly,g=(0,Q.useCallback)(e=>{u(e.target.value);let t=parseFloat(e.target.value);if(Number.isNaN(t))m(Error(`'${e.target.value}' is not a number`));else{let e=t;typeof r==`number`&&e<r&&(e=r),typeof i==`number`&&e>i&&(e=i),n(e),m(null),e!==t&&u(String(e))}},[n,m,r,i]),_=(0,Q.useCallback)(()=>{u(`0`),n(0),f(!0)},[f]),v=(0,Q.useRef)(null);return(0,Q.useEffect)(()=>{d&&v.current&&v.current.select()},[d]),(0,Q.useEffect)(()=>{let e=typeof t==`number`?t:``;l!==e&&u(e)},[t]),t===void 0?Q.createElement(ie,{ariaLabel:!1,variant:`outline`,size:`medium`,id:QY(e),onClick:_,disabled:h},`Set number`):Q.createElement(A0,null,Q.createElement(M0,{ref:v,id:ZY(e),type:`number`,onChange:g,size:`flex`,placeholder:`Edit number...`,value:l,valid:p?`error`:void 0,autoFocus:d,readOnly:h,name:e,min:r,max:i,step:a,onFocus:s,onBlur:o}))},{logger:P0}=__STORYBOOK_MODULE_CLIENT_LOGGER__,F0=(e,t)=>{let n=t&&Object.entries(t).find(([t,n])=>n===e);return n?n[0]:void 0},I0=(e,t)=>e&&t?Object.entries(t).filter(t=>e.includes(t[1])).map(e=>e[0]):[],L0=(e,t)=>e&&t&&e.map(e=>t[e]),R0=I.fieldset({border:`none`,marginInline:0,padding:0,display:`flex`,alignItems:`flex-start`},({$isInline:e})=>e?{flexWrap:`wrap`,gap:15,label:{display:`inline-flex`}}:{flexDirection:`column`,gap:8,label:{display:`flex`}}),z0=I.span(({$readOnly:e})=>({opacity:e?.5:1})),B0=I.label(({$readOnly:e})=>({lineHeight:`20px`,alignItems:`center`,cursor:e?`not-allowed`:`pointer`,input:{cursor:e?`not-allowed`:`pointer`,margin:0,marginRight:6}})),V0=({name:e,options:t,value:n,onChange:r,isInline:i,argType:a})=>{if(!t)return P0.warn(`Checkbox with no options: ${e}`),Q.createElement(Q.Fragment,null,`-`);let[o,s]=(0,Q.useState)(I0(n||[],t)),c=!!a?.table?.readonly,l=e=>{let n=e.target.value,i=[...o];i.includes(n)?i.splice(i.indexOf(n),1):i.push(n),r(L0(i,t)),s(i)};(0,Q.useEffect)(()=>{s(I0(n||[],t))},[n]);let u=ZY(e);return Q.createElement(R0,{$isInline:i},Q.createElement(`legend`,{className:`sb-sr-only`},e),Object.keys(t).map((e,t)=>{let n=`${u}-${t}`;return Q.createElement(B0,{key:n,htmlFor:n,$readOnly:c},Q.createElement(`input`,{type:`checkbox`,disabled:c,id:n,name:n,value:e,onChange:l,checked:o?.includes(e)}),Q.createElement(z0,{$readOnly:c},e))}))},{logger:H0}=__STORYBOOK_MODULE_CLIENT_LOGGER__,U0=I.fieldset({border:`none`,marginInline:0,padding:0,display:`flex`,alignItems:`flex-start`},({isInline:e})=>e?{flexWrap:`wrap`,gap:15,label:{display:`inline-flex`}}:{flexDirection:`column`,gap:8,label:{display:`flex`}}),W0=I.span(({$readOnly:e})=>({opacity:e?.5:1})),G0=I.label(({$readOnly:e})=>({lineHeight:`20px`,alignItems:`center`,cursor:e?`not-allowed`:`pointer`,input:{cursor:e?`not-allowed`:`pointer`,margin:0,marginRight:6}})),K0=({name:e,options:t,value:n,onChange:r,isInline:i,argType:a})=>{if(!t)return H0.warn(`Radio with no options: ${e}`),Q.createElement(Q.Fragment,null,`-`);let o=F0(n,t),s=ZY(e),c=!!a?.table?.readonly;return Q.createElement(U0,{isInline:i},Q.createElement(`legend`,{className:`sb-sr-only`},e),Object.keys(t).map((e,n)=>{let i=`${s}-${n}`;return Q.createElement(G0,{key:i,htmlFor:i,$readOnly:c},Q.createElement(`input`,{type:`radio`,id:i,name:s,disabled:c,value:e,onChange:e=>r(t[e.currentTarget.value]),checked:e===o}),Q.createElement(W0,{$readOnly:c},e))}))},{logger:q0}=__STORYBOOK_MODULE_CLIENT_LOGGER__,J0=I.select({appearance:`none`,border:`0 none`,boxSizing:`inherit`,display:` block`,margin:` 0`,background:`transparent`,padding:0,fontSize:`inherit`,position:`relative`},({theme:e})=>({boxSizing:`border-box`,position:`relative`,padding:`6px 10px`,width:`100%`,color:e.input.color||`inherit`,background:e.input.background,borderRadius:e.input.borderRadius,boxShadow:`${e.input.border} 0 0 0 1px inset`,fontSize:e.typography.size.s2-1,lineHeight:`20px`,"&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:`none`},"&[disabled]":{cursor:`not-allowed`,opacity:.5},"::placeholder":{color:e.textMutedColor},"&[multiple]":{overflow:`auto`,padding:0,option:{display:`block`,padding:`6px 10px`,marginLeft:1,marginRight:1,"&:hover":{background:e.background.hoverable},"&:checked":{background:`transparent`,color:e.color.secondary,fontWeight:e.typography.weight.bold}}}})),Y0=I.span(({theme:e})=>({display:`inline-block`,lineHeight:`normal`,overflow:`hidden`,position:`relative`,verticalAlign:`top`,width:`100%`,svg:{position:`absolute`,zIndex:1,pointerEvents:`none`,height:`12px`,marginTop:`-6px`,right:`12px`,top:`50%`,fill:e.textMutedColor,path:{fill:e.textMutedColor}}})),X0=`Choose option...`,Z0=({name:e,value:t,options:n,onChange:r,argType:i})=>{let a=e=>{r(n[e.currentTarget.value])},o=F0(t,n)||X0,s=ZY(e),c=!!i?.table?.readonly;return Q.createElement(Y0,null,Q.createElement(_,null),Q.createElement(`label`,{htmlFor:s,className:`sb-sr-only`},e),Q.createElement(J0,{disabled:c,id:s,value:o,onChange:a},Q.createElement(`option`,{disabled:o===X0,key:`no-selection`},X0),Object.keys(n).map(e=>Q.createElement(`option`,{key:e,value:e},e))))},Q0=({name:e,value:t,options:n,onChange:r,argType:i})=>{let a=e=>{r(L0(Array.from(e.currentTarget.options).filter(e=>e.selected).map(e=>e.value),n))},o=I0(t,n),s=ZY(e),c=!!i?.table?.readonly;return Q.createElement(Y0,null,Q.createElement(`label`,{htmlFor:s,className:`sb-sr-only`},e),Q.createElement(J0,{disabled:c,id:s,multiple:!0,value:o,onChange:a},Object.keys(n).map(e=>Q.createElement(`option`,{key:e,value:e},e))))},$0=e=>{let{name:t,options:n}=e;return n?e.isMulti?Q.createElement(Q0,{...e}):Q.createElement(Z0,{...e}):(q0.warn(`Select with no options: ${t}`),Q.createElement(Q.Fragment,null,`-`))},e2=(e,t)=>Array.isArray(e)?e.reduce((e,n)=>(e[t?.[n]||String(n)]=n,e),{}):e,t2={check:V0,"inline-check":V0,radio:K0,"inline-radio":K0,select:$0,"multi-select":$0},n2=e=>{let{type:t=`select`,labels:n,argType:r}=e,i={...e,argType:r,options:r?e2(r.options,n):{},isInline:t.includes(`inline`),isMulti:t.includes(`multi`)},a=t2[t];if(a)return Q.createElement(a,{...i});throw Error(`Unknown options type: ${t}`)},r2=I.div(({theme:e})=>({position:`relative`,":hover":{"& > .rejt-accordion-button::after":{background:e.color.secondary},"& > .rejt-accordion-region > :is(.rejt-plus-menu, .rejt-minus-menu)":{opacity:1}}})),i2=I.button(({theme:e})=>({padding:0,background:`transparent`,border:`none`,marginRight:`3px`,lineHeight:`22px`,color:e.color.secondary,"::after":{content:`""`,position:`absolute`,top:0,display:`block`,width:`100%`,marginLeft:`-1rem`,height:`22px`,background:`transparent`,borderRadius:4,transition:`background 0.2s`,opacity:.1,paddingRight:`20px`},"::before":{content:`""`,position:`absolute`},'&[aria-expanded="true"]::before':{left:-10,top:10,borderTop:`3px solid rgba(153,153,153,0.6)`,borderLeft:`3px solid transparent`,borderRight:`3px solid transparent`},'&[aria-expanded="false"]::before':{left:-8,top:8,borderTop:`3px solid transparent`,borderBottom:`3px solid transparent`,borderLeft:`3px solid rgba(153,153,153,0.6)`}})),a2=I.div({display:`inline`});function o2({children:e,name:t,collapsed:n,keyPath:r,deep:i,...a}){let o=`${r.at(-1)??`root`}-${t}-${i}`,s={trigger:`${o}-trigger`,region:`${o}-region`},c=r.length>0?`li`:`div`;return Q.createElement(r2,{as:c},Q.createElement(i2,{type:`button`,"aria-expanded":!n,id:s.trigger,"aria-controls":s.region,className:`rejt-accordion-button`,...a},t,` :`),Q.createElement(a2,{role:`region`,id:s.region,"aria-labelledby":s.trigger,className:`rejt-accordion-region`},e))}var s2=`Error`,c2=`Object`,l2=`Array`,u2=`String`,d2=`Number`,f2=`Boolean`,p2=`Date`,m2=`Null`,h2=`Undefined`,g2=`Function`,_2=`Symbol`,v2=`ADD_DELTA_TYPE`,y2=`REMOVE_DELTA_TYPE`,b2=`UPDATE_DELTA_TYPE`,x2=`value`;function S2(e){return typeof e==`object`&&e&&!Array.isArray(e)&&typeof e[Symbol.iterator]==`function`?`Iterable`:Object.prototype.toString.call(e).slice(8,-1)}function C2(e,t){let n=S2(e),r=S2(t);return(n===`Function`||r===`Function`)&&r!==n}var w2=class extends Q.Component{constructor(e){super(e),this.state={inputRefKey:null,inputRefValue:null},this.refInputValue=this.refInputValue.bind(this),this.refInputKey=this.refInputKey.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onSubmit=this.onSubmit.bind(this)}componentDidMount(){let{inputRefKey:e,inputRefValue:t}=this.state,{onlyValue:n}=this.props;e&&typeof e.focus==`function`&&e.focus(),n&&t&&typeof t.focus==`function`&&t.focus()}onKeydown(e){if(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat)return;let{inputRefKey:t,inputRefValue:n}=this.state,{addButtonElement:r,handleCancel:i}=this.props;[t,n,r].some(t=>t===e.target)&&((e.code===`Enter`||e.key===`Enter`)&&(e.preventDefault(),this.onSubmit()),(e.code===`Escape`||e.key===`Escape`)&&(e.preventDefault(),i()))}onSubmit(){let{handleAdd:e,onlyValue:t,onSubmitValueParser:n,keyPath:r,deep:i}=this.props,{inputRefKey:a,inputRefValue:o}=this.state,s={};if(!t){if(!a.value)return;s.key=a.value}s.newValue=n(!1,r,i,s.key,o.value),e(s)}refInputKey(e){this.state.inputRefKey=e}refInputValue(e){this.state.inputRefValue=e}render(){let{handleCancel:e,onlyValue:t,addButtonElement:n,cancelButtonElement:r,inputElementGenerator:i,keyPath:a,deep:o}=this.props,s=n&&(0,Q.cloneElement)(n,{onClick:this.onSubmit}),c=r&&(0,Q.cloneElement)(r,{onClick:e}),l=(0,Q.cloneElement)(i(x2,a,o),{placeholder:`Value`,ref:this.refInputValue,onKeyDown:this.onKeydown}),u=null;return t||(u=(0,Q.cloneElement)(i(`key`,a,o),{placeholder:`Key`,ref:this.refInputKey,onKeyDown:this.onKeydown})),Q.createElement(`span`,{className:`rejt-add-value-node`},u,l,s,c)}};w2.defaultProps={onlyValue:!1,addButtonElement:Q.createElement(`button`,null,`+`),cancelButtonElement:Q.createElement(`button`,null,`c`)};var T2=class extends Q.Component{constructor(e){super(e);let t=[...e.keyPath||[],e.name];this.state={data:e.data,name:e.name,keyPath:t??[],deep:e.deep??0,nextDeep:(e.deep??0)+1,collapsed:e.isCollapsed(t,e.deep??0,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveItem=this.handleRemoveItem.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data===t.data?null:{data:e.data}}onChildUpdate(e,t){let{data:n,keyPath:r=[]}=this.state;n[e]=t,this.setState({data:n});let{onUpdate:i}=this.props,a=r.length;i(r[a-1],n)}handleAddMode(){this.setState({addFormVisible:!0})}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleRemoveItem(e){return()=>{let{beforeRemoveAction:t,logger:n}=this.props,{data:r,keyPath:i,nextDeep:a}=this.state,o=r[e];(t||Promise.resolve.bind(Promise))(e,i,a,o).then(()=>{let t={keyPath:i,deep:a,key:e,oldValue:o,type:y2};r.splice(e,1),this.setState({data:r});let{onUpdate:n,onDeltaUpdate:s}=this.props;n(i[i.length-1],r),s(t)}).catch(n.error)}}handleAddValueAdd({newValue:e}){let{data:t,keyPath:n=[],nextDeep:r}=this.state,{beforeAddAction:i,logger:a}=this.props,o=t.length;(i||Promise.resolve.bind(Promise))(o,n,r,e).then(()=>{t[o]=e,this.setState({data:t}),this.handleAddValueCancel();let{onUpdate:i,onDeltaUpdate:a}=this.props;i(n[n.length-1],t),a({type:v2,keyPath:n,deep:r,key:o,newValue:e})}).catch(a.error)}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleEditValue({key:e,value:t}){return new Promise((n,r)=>{let{beforeUpdateAction:i}=this.props,{data:a,keyPath:o,nextDeep:s}=this.state,c=a[e];(i||Promise.resolve.bind(Promise))(e,o,s,c,t).then(()=>{a[e]=t,this.setState({data:a});let{onUpdate:r,onDeltaUpdate:i}=this.props;r(o[o.length-1],a),i({type:b2,keyPath:o,deep:s,key:e,newValue:t,oldValue:c}),n(void 0)}).catch(r)})}renderCollapsed(){let{name:e,data:t,keyPath:n,deep:r}=this.state,{handleRemove:i,readOnly:a,getStyle:o,dataType:s,minusMenuElement:c}=this.props,{minus:l,collapsed:u}=o(e,t,n,r,s),d=a(e,t,n,r,s),f=c&&(0,Q.cloneElement)(c,{onClick:i,className:`rejt-minus-menu`,style:l,"aria-label":`remove the array '${String(e)}'`});return Q.createElement(Q.Fragment,null,Q.createElement(`span`,{style:u},`[...] `,t.length,` `,t.length===1?`item`:`items`),!d&&f)}renderNotCollapsed(){let{name:e,data:t,keyPath:n,deep:r,addFormVisible:i,nextDeep:a}=this.state,{isCollapsed:o,handleRemove:s,onDeltaUpdate:c,readOnly:l,getStyle:u,dataType:d,addButtonElement:f,cancelButtonElement:p,inputElementGenerator:m,textareaElementGenerator:h,minusMenuElement:g,plusMenuElement:_,beforeRemoveAction:v,beforeAddAction:y,beforeUpdateAction:b,logger:x,onSubmitValueParser:S}=this.props,{minus:C,plus:w,delimiter:T,ul:E,addForm:D}=u(e,t,n,r,d),O=l(e,t,n,r,d),k=_&&(0,Q.cloneElement)(_,{onClick:this.handleAddMode,className:`rejt-plus-menu`,style:w,"aria-label":`add a new item to the '${String(e)}' array`}),A=g&&(0,Q.cloneElement)(g,{onClick:s,className:`rejt-minus-menu`,style:C,"aria-label":`remove the array '${String(e)}'`});return Q.createElement(Q.Fragment,null,Q.createElement(`span`,{className:`rejt-not-collapsed-delimiter`,style:T},`[`),!i&&k,Q.createElement(`ul`,{className:`rejt-not-collapsed-list`,style:E},t.map((e,t)=>Q.createElement(D2,{key:t,name:t.toString(),data:e,keyPath:n,deep:a,isCollapsed:o,handleRemove:this.handleRemoveItem(t),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:c,readOnly:l,getStyle:u,addButtonElement:f,cancelButtonElement:p,inputElementGenerator:m,textareaElementGenerator:h,minusMenuElement:g,plusMenuElement:_,beforeRemoveAction:v,beforeAddAction:y,beforeUpdateAction:b,logger:x,onSubmitValueParser:S}))),!O&&i&&Q.createElement(`div`,{className:`rejt-add-form`,style:D},Q.createElement(w2,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue:!0,addButtonElement:f,cancelButtonElement:p,inputElementGenerator:m,keyPath:n,deep:r,onSubmitValueParser:S})),Q.createElement(`span`,{className:`rejt-not-collapsed-delimiter`,style:T},`]`),!O&&A)}render(){let{name:e,collapsed:t,keyPath:n,deep:r}=this.state,i=t?this.renderCollapsed():this.renderNotCollapsed();return Q.createElement(o2,{name:e,collapsed:t,deep:r,keyPath:n,onClick:this.handleCollapseMode},i)}};T2.defaultProps={keyPath:[],deep:0,minusMenuElement:Q.createElement(`span`,null,` - `),plusMenuElement:Q.createElement(`span`,null,` + `)};var E2=class extends Q.Component{constructor(e){super(e);let t=[...e.keyPath||[],e.name];this.state={value:e.value,name:e.name,keyPath:t??[],deep:e.deep??0,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value===t.value?null:{value:e.value}}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:n,value:r,keyPath:i,deep:a}=this.state,{readOnly:o,dataType:s}=this.props,c=o(n,r,i,a,s);e&&!c&&typeof t.focus==`function`&&t.focus()}onKeydown(e){let{inputRef:t}=this.state;e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||t!==e.target||((e.code===`Enter`||e.key===`Enter`)&&(e.preventDefault(),this.handleEdit()),(e.code===`Escape`||e.key===`Escape`)&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:n,onSubmitValueParser:r,keyPath:i}=this.props,{inputRef:a,name:o,deep:s}=this.state;if(!a)return;let c=r(!0,i,s,o,a.value),l={value:c,key:o};(e||Promise.resolve.bind(Promise))(l).then(()=>{C2(t,c)||this.handleCancelEdit()}).catch(n.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:n,keyPath:r,deep:i}=this.state,{handleRemove:a,originalValue:o,readOnly:s,dataType:c,getStyle:l,textareaElementGenerator:u,minusMenuElement:d,keyPath:f=[]}=this.props,p=l(e,o,r,i,c),m=null,h=null,g=s(e,o,r,i,c);if(n&&!g){let n=(0,Q.cloneElement)(u(x2,f,i,e,o,c),{ref:this.refInput,defaultValue:t,onKeyDown:this.onKeydown});m=Q.createElement(`span`,{className:`rejt-edit-form`,style:p.editForm},n),h=null}else{m=Q.createElement(`span`,{className:`rejt-value`,style:p.value,onClick:g?void 0:this.handleEditMode},t);let n=f.at(-1),r=d&&(0,Q.cloneElement)(d,{onClick:a,className:`rejt-minus-menu`,style:p.minus,"aria-label":`remove the function '${String(e)}'${String(n)?` from '${String(n)}'`:``}`});h=g?null:r}return Q.createElement(`li`,{className:`rejt-value-node`,style:p.li},Q.createElement(`span`,{className:`rejt-name`,style:p.name},e,` :`,` `),m,h)}};E2.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>{},cancelButtonElement:Q.createElement(`button`,null,`c`),minusMenuElement:Q.createElement(`span`,null,` - `)};var D2=class extends Q.Component{constructor(e){super(e),this.state={data:e.data,name:e.name,keyPath:e.keyPath??[],deep:e.deep??0}}static getDerivedStateFromProps(e,t){return e.data===t.data?null:{data:e.data}}render(){let{data:e,name:t,keyPath:n,deep:r}=this.state,{isCollapsed:i,handleRemove:a,handleUpdateValue:o,onUpdate:s,onDeltaUpdate:c,readOnly:l,getStyle:u,addButtonElement:d,cancelButtonElement:f,inputElementGenerator:p,textareaElementGenerator:m,minusMenuElement:h,plusMenuElement:g,beforeRemoveAction:_,beforeAddAction:v,beforeUpdateAction:y,logger:b,onSubmitValueParser:x}=this.props,S=()=>!0,C=S2(e);switch(C){case s2:return Q.createElement(O2,{data:e,name:t,isCollapsed:i,keyPath:n,deep:r,handleRemove:a,onUpdate:s,onDeltaUpdate:c,readOnly:S,dataType:C,getStyle:u,addButtonElement:d,cancelButtonElement:f,inputElementGenerator:p,textareaElementGenerator:m,minusMenuElement:h,plusMenuElement:g,beforeRemoveAction:_,beforeAddAction:v,beforeUpdateAction:y,logger:b,onSubmitValueParser:x});case c2:return Q.createElement(O2,{data:e,name:t,isCollapsed:i,keyPath:n,deep:r,handleRemove:a,onUpdate:s,onDeltaUpdate:c,readOnly:l,dataType:C,getStyle:u,addButtonElement:d,cancelButtonElement:f,inputElementGenerator:p,textareaElementGenerator:m,minusMenuElement:h,plusMenuElement:g,beforeRemoveAction:_,beforeAddAction:v,beforeUpdateAction:y,logger:b,onSubmitValueParser:x});case l2:return Q.createElement(T2,{data:e,name:t,isCollapsed:i,keyPath:n,deep:r,handleRemove:a,onUpdate:s,onDeltaUpdate:c,readOnly:l,dataType:C,getStyle:u,addButtonElement:d,cancelButtonElement:f,inputElementGenerator:p,textareaElementGenerator:m,minusMenuElement:h,plusMenuElement:g,beforeRemoveAction:_,beforeAddAction:v,beforeUpdateAction:y,logger:b,onSubmitValueParser:x});case u2:return Q.createElement(k2,{name:t,value:`"${e}"`,originalValue:e,keyPath:n,deep:r,handleRemove:a,handleUpdateValue:o,readOnly:l,dataType:C,getStyle:u,cancelButtonElement:f,inputElementGenerator:p,minusMenuElement:h,logger:b,onSubmitValueParser:x});case d2:return Q.createElement(k2,{name:t,value:e,originalValue:e,keyPath:n,deep:r,handleRemove:a,handleUpdateValue:o,readOnly:l,dataType:C,getStyle:u,cancelButtonElement:f,inputElementGenerator:p,minusMenuElement:h,logger:b,onSubmitValueParser:x});case f2:return Q.createElement(k2,{name:t,value:e?`true`:`false`,originalValue:e,keyPath:n,deep:r,handleRemove:a,handleUpdateValue:o,readOnly:l,dataType:C,getStyle:u,cancelButtonElement:f,inputElementGenerator:p,minusMenuElement:h,logger:b,onSubmitValueParser:x});case p2:return Q.createElement(k2,{name:t,value:e.toISOString(),originalValue:e,keyPath:n,deep:r,handleRemove:a,handleUpdateValue:o,readOnly:S,dataType:C,getStyle:u,cancelButtonElement:f,inputElementGenerator:p,minusMenuElement:h,logger:b,onSubmitValueParser:x});case m2:return Q.createElement(k2,{name:t,value:`null`,originalValue:`null`,keyPath:n,deep:r,handleRemove:a,handleUpdateValue:o,readOnly:l,dataType:C,getStyle:u,cancelButtonElement:f,inputElementGenerator:p,minusMenuElement:h,logger:b,onSubmitValueParser:x});case h2:return Q.createElement(k2,{name:t,value:`undefined`,originalValue:`undefined`,keyPath:n,deep:r,handleRemove:a,handleUpdateValue:o,readOnly:l,dataType:C,getStyle:u,cancelButtonElement:f,inputElementGenerator:p,minusMenuElement:h,logger:b,onSubmitValueParser:x});case g2:return Q.createElement(E2,{name:t,value:e.toString(),originalValue:e,keyPath:n,deep:r,handleRemove:a,handleUpdateValue:o,readOnly:l,dataType:C,getStyle:u,cancelButtonElement:f,textareaElementGenerator:m,minusMenuElement:h,logger:b,onSubmitValueParser:x});case _2:return Q.createElement(k2,{name:t,value:e.toString(),originalValue:e,keyPath:n,deep:r,handleRemove:a,handleUpdateValue:o,readOnly:S,dataType:C,getStyle:u,cancelButtonElement:f,inputElementGenerator:p,minusMenuElement:h,logger:b,onSubmitValueParser:x});default:return null}}};D2.defaultProps={keyPath:[],deep:0};var O2=class extends Q.Component{constructor(e){super(e);let t=e.deep===-1?[]:[...e.keyPath||[],e.name];this.state={name:e.name,data:e.data,keyPath:t??[],deep:e.deep??0,nextDeep:(e.deep??0)+1,collapsed:e.isCollapsed(t,e.deep??0,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveValue=this.handleRemoveValue.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data===t.data?null:{data:e.data}}onChildUpdate(e,t){let{data:n,keyPath:r=[]}=this.state;n[e]=t,this.setState({data:n});let{onUpdate:i}=this.props,a=r.length;i(r[a-1],n)}handleAddMode(){this.setState({addFormVisible:!0})}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleAddValueAdd({key:e,newValue:t}){let{data:n,keyPath:r=[],nextDeep:i}=this.state,{beforeAddAction:a,logger:o}=this.props;(a||Promise.resolve.bind(Promise))(e,r,i,t).then(()=>{n[e]=t,this.setState({data:n}),this.handleAddValueCancel();let{onUpdate:a,onDeltaUpdate:o}=this.props;a(r[r.length-1],n),o({type:v2,keyPath:r,deep:i,key:e,newValue:t})}).catch(o.error)}handleRemoveValue(e){return()=>{let{beforeRemoveAction:t,logger:n}=this.props,{data:r,keyPath:i=[],nextDeep:a}=this.state,o=r[e];(t||Promise.resolve.bind(Promise))(e,i,a,o).then(()=>{let t={keyPath:i,deep:a,key:e,oldValue:o,type:y2};delete r[e],this.setState({data:r});let{onUpdate:n,onDeltaUpdate:s}=this.props;n(i[i.length-1],r),s(t)}).catch(n.error)}}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleEditValue({key:e,value:t}){return new Promise((n,r)=>{let{beforeUpdateAction:i}=this.props,{data:a,keyPath:o=[],nextDeep:s}=this.state,c=a[e];(i||Promise.resolve.bind(Promise))(e,o,s,c,t).then(()=>{a[e]=t,this.setState({data:a});let{onUpdate:r,onDeltaUpdate:i}=this.props;r(o[o.length-1],a),i({type:b2,keyPath:o,deep:s,key:e,newValue:t,oldValue:c}),n()}).catch(r)})}renderCollapsed(){let{name:e,keyPath:t,deep:n,data:r}=this.state,{handleRemove:i,readOnly:a,dataType:o,getStyle:s,minusMenuElement:c}=this.props,{minus:l,collapsed:u}=s(e,r,t,n,o),d=Object.getOwnPropertyNames(r),f=a(e,r,t,n,o),p=c&&(0,Q.cloneElement)(c,{onClick:i,className:`rejt-minus-menu`,style:l,"aria-label":`remove the object '${String(e)}'`});return Q.createElement(Q.Fragment,null,Q.createElement(`span`,{style:u},`{...}`,` `,d.length,` `,d.length===1?`key`:`keys`),!f&&p)}renderNotCollapsed(){let{name:e,data:t,keyPath:n,deep:r,nextDeep:i,addFormVisible:a}=this.state,{isCollapsed:o,handleRemove:s,onDeltaUpdate:c,readOnly:l,getStyle:u,dataType:d,addButtonElement:f,cancelButtonElement:p,inputElementGenerator:m,textareaElementGenerator:h,minusMenuElement:g,plusMenuElement:_,beforeRemoveAction:v,beforeAddAction:y,beforeUpdateAction:b,logger:x,onSubmitValueParser:S}=this.props,{minus:C,plus:w,addForm:T,ul:E,delimiter:D}=u(e,t,n,r,d),O=Object.getOwnPropertyNames(t),k=l(e,t,n,r,d),A=_&&(0,Q.cloneElement)(_,{onClick:this.handleAddMode,className:`rejt-plus-menu`,style:w,"aria-label":`add a new property to the object '${String(e)}'`}),j=g&&(0,Q.cloneElement)(g,{onClick:s,className:`rejt-minus-menu`,style:C,"aria-label":`remove the object '${String(e)}'`}),M=O.map(e=>Q.createElement(D2,{key:e,name:e,data:t[e],keyPath:n,deep:i,isCollapsed:o,handleRemove:this.handleRemoveValue(e),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:c,readOnly:l,getStyle:u,addButtonElement:f,cancelButtonElement:p,inputElementGenerator:m,textareaElementGenerator:h,minusMenuElement:g,plusMenuElement:_,beforeRemoveAction:v,beforeAddAction:y,beforeUpdateAction:b,logger:x,onSubmitValueParser:S}));return Q.createElement(Q.Fragment,null,Q.createElement(`span`,{className:`rejt-not-collapsed-delimiter`,style:D},`{`),!k&&A,Q.createElement(`ul`,{className:`rejt-not-collapsed-list`,style:E},M),!k&&a&&Q.createElement(`div`,{className:`rejt-add-form`,style:T},Q.createElement(w2,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement:f,cancelButtonElement:p,inputElementGenerator:m,keyPath:n,deep:r,onSubmitValueParser:S})),Q.createElement(`span`,{className:`rejt-not-collapsed-delimiter`,style:D},`}`),!k&&j)}render(){let{name:e,collapsed:t,keyPath:n,deep:r=0}=this.state,i=t?this.renderCollapsed():this.renderNotCollapsed();return Q.createElement(o2,{name:e,collapsed:t,deep:r,keyPath:n,onClick:this.handleCollapseMode},i)}};O2.defaultProps={keyPath:[],deep:0,minusMenuElement:Q.createElement(`span`,null,` - `),plusMenuElement:Q.createElement(`span`,null,` + `)};var k2=class extends Q.Component{constructor(e){super(e);let t=[...e.keyPath||[],e.name];this.state={value:e.value,name:e.name,keyPath:t??[],deep:e.deep??0,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value===t.value?null:{value:e.value}}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:n,value:r,keyPath:i,deep:a}=this.state,{readOnly:o,dataType:s}=this.props,c=o(n,r,i,a,s);e&&!c&&typeof t.focus==`function`&&t.focus()}onKeydown(e){let{inputRef:t}=this.state;e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||t!==e.target||((e.code===`Enter`||e.key===`Enter`)&&(e.preventDefault(),this.handleEdit()),(e.code===`Escape`||e.key===`Escape`)&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:n,onSubmitValueParser:r,keyPath:i}=this.props,{inputRef:a,name:o,deep:s}=this.state;if(!a)return;let c=r(!0,i,s,o,a.value),l={value:c,key:o};(e||Promise.resolve.bind(Promise))(l).then(()=>{C2(t,c)||this.handleCancelEdit()}).catch(n.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:n,keyPath:r,deep:i}=this.state,{handleRemove:a,originalValue:o,readOnly:s,dataType:c,getStyle:l,inputElementGenerator:u,minusMenuElement:d,keyPath:f}=this.props,p=l(e,o,r,i,c),m=s(e,o,r,i,c),h=n&&!m,g=(0,Q.cloneElement)(u(x2,f,i,e,o,c),{ref:this.refInput,defaultValue:JSON.stringify(o),onKeyDown:this.onKeydown}),_=r.at(-2),v=d&&(0,Q.cloneElement)(d,{onClick:a,className:`rejt-minus-menu`,style:p.minus,"aria-label":`remove the property '${String(e)}' with value '${String(o)}'${String(_)?` from '${String(_)}'`:``}`});return Q.createElement(`li`,{className:`rejt-value-node`,style:p.li},Q.createElement(`span`,{className:`rejt-name`,style:p.name},e,` : `),h?Q.createElement(`span`,{className:`rejt-edit-form`,style:p.editForm},g):Q.createElement(`span`,{className:`rejt-value`,style:p.value,onClick:m?void 0:this.handleEditMode},String(t)),!m&&!h&&v)}};k2.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>Promise.resolve(),cancelButtonElement:Q.createElement(`button`,null,`c`),minusMenuElement:Q.createElement(`span`,null,` - `)};function A2(e){let t=e;if(t.indexOf(`function`)===0)return(0,eval)(`(${t})`);try{t=JSON.parse(e)}catch{}return t}var j2={minus:{color:`red`},plus:{color:`green`},collapsed:{color:`grey`},delimiter:{},ul:{padding:`0px`,margin:`0 0 0 25px`,listStyle:`none`},name:{color:`#2287CD`},addForm:{}},M2={minus:{color:`red`},plus:{color:`green`},collapsed:{color:`grey`},delimiter:{},ul:{padding:`0px`,margin:`0 0 0 25px`,listStyle:`none`},name:{color:`#2287CD`},addForm:{}},N2={minus:{color:`red`},editForm:{},value:{color:`#7bba3d`},li:{minHeight:`22px`,lineHeight:`22px`,outline:`0px`},name:{color:`#2287CD`}},P2=class extends Q.Component{constructor(e){super(e),this.state={data:e.data,rootName:e.rootName},this.onUpdate=this.onUpdate.bind(this),this.removeRoot=this.removeRoot.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data||e.rootName!==t.rootName?{data:e.data,rootName:e.rootName}:null}onUpdate(e,t){this.setState({data:t}),this.props.onFullyUpdate?.(t)}removeRoot(){this.onUpdate(null,null)}render(){let{data:e,rootName:t}=this.state,{isCollapsed:n,onDeltaUpdate:r,readOnly:i,getStyle:a,addButtonElement:o,cancelButtonElement:s,inputElement:c,textareaElement:l,minusMenuElement:u,plusMenuElement:d,beforeRemoveAction:f,beforeAddAction:p,beforeUpdateAction:m,logger:h,onSubmitValueParser:g,fallback:_=null}=this.props,v=S2(e),y=i;S2(i)===`Boolean`&&(y=()=>i);let b=c;c&&S2(c)!==`Function`&&(b=()=>c);let x=l;return l&&S2(l)!==`Function`&&(x=()=>l),v===`Object`||v===`Array`?Q.createElement(`div`,{className:`rejt-tree`},Q.createElement(D2,{data:e,name:t||`root`,deep:-1,isCollapsed:n??(()=>!1),onUpdate:this.onUpdate,onDeltaUpdate:r??(()=>{}),readOnly:y,getStyle:a??(()=>({})),addButtonElement:o,cancelButtonElement:s,inputElementGenerator:b,textareaElementGenerator:x,minusMenuElement:u,plusMenuElement:d,handleRemove:this.removeRoot,beforeRemoveAction:f,beforeAddAction:p,beforeUpdateAction:m,logger:h??{},onSubmitValueParser:g??(e=>e)})):_}};P2.defaultProps={rootName:`root`,isCollapsed:(e,t)=>t!==-1,getStyle:(e,t,n,r,i)=>{switch(i){case`Object`:case`Error`:return j2;case`Array`:return M2;default:return N2}},readOnly:()=>!1,onFullyUpdate:()=>{},onDeltaUpdate:()=>{},beforeRemoveAction:()=>Promise.resolve(),beforeAddAction:()=>Promise.resolve(),beforeUpdateAction:()=>Promise.resolve(),logger:{error:()=>{}},onSubmitValueParser:(e,t,n,r,i)=>A2(i),inputElement:()=>Q.createElement(`input`,null),textareaElement:()=>Q.createElement(`textarea`,null),fallback:null};var{window:F2}=globalThis,I2=I.div(({theme:e})=>({position:`relative`,display:`flex`,isolation:`isolate`,".rejt-tree":{marginLeft:`1rem`,fontSize:`13px`,listStyleType:`none`},".rejt-value-node:hover":{"& > button":{opacity:1}},".rejt-add-form":{marginLeft:10},".rejt-add-value-node":{display:`inline-flex`,alignItems:`center`},".rejt-name":{lineHeight:`22px`},".rejt-not-collapsed-delimiter":{lineHeight:`22px`},".rejt-value":{display:`inline-block`,border:`1px solid transparent`,borderRadius:4,margin:`1px 0`,padding:`0 4px`,cursor:`text`,color:e.color.defaultText},".rejt-value-node:hover > .rejt-value":{background:e.base===`light`?e.color.lighter:`hsl(0 0 100 / 0.02)`,borderColor:e.appBorderColor}})),L2=I.button(({theme:e,primary:t})=>({border:0,height:20,margin:1,borderRadius:4,background:t?e.color.secondary:`transparent`,color:t?e.color.lightest:e.color.dark,fontWeight:t?`bold`:`normal`,cursor:`pointer`})),R2=I.button(({theme:e})=>({background:`none`,border:0,display:`inline-flex`,verticalAlign:`middle`,padding:3,marginLeft:5,color:e.textMutedColor,opacity:0,transition:`opacity 0.2s`,cursor:`pointer`,position:`relative`,svg:{width:9,height:9},":disabled":{cursor:`not-allowed`},":hover, :focus-visible":{opacity:1},"&:hover:not(:disabled), &:focus-visible:not(:disabled)":{"&.rejt-plus-menu":{color:e.color.ancillary},"&.rejt-minus-menu":{color:e.color.negative}}})),z2=I.input(({theme:e,placeholder:t})=>({outline:0,margin:t?1:`1px 0`,padding:`3px 4px`,color:e.color.defaultText,background:e.background.app,border:`1px solid ${e.appBorderColor}`,borderRadius:4,lineHeight:`14px`,width:t===`Key`?80:120,"&:focus":{border:`1px solid ${e.color.secondary}`}})),B2=I(M)({position:`absolute`,zIndex:2,top:2,right:2}),V2=I(S.Textarea)(({theme:e})=>({flex:1,padding:`7px 6px`,fontFamily:e.typography.fonts.mono,fontSize:`12px`,lineHeight:`18px`,"&::placeholder":{fontFamily:e.typography.fonts.base,fontSize:`13px`},"&:placeholder-shown":{padding:`7px 10px`}})),H2={bubbles:!0,cancelable:!0,key:`Enter`,code:`Enter`,keyCode:13},U2=e=>{e.currentTarget.dispatchEvent(new F2.KeyboardEvent(`keydown`,H2))},W2=e=>{e.currentTarget.select()},G2=e=>()=>({name:{color:e.color.secondary},collapsed:{color:e.color.dark},ul:{listStyle:`none`,margin:`0 0 0 1rem`,padding:0},li:{outline:0}}),K2=({name:e,value:t,onChange:n,argType:r})=>{let i=de(),a=(0,Q.useMemo)(()=>t&&C$(t),[t]),o=a!=null,[s,c]=(0,Q.useState)(!o),[l,u]=(0,Q.useState)(null),d=!!r?.table?.readonly,f=(0,Q.useCallback)(e=>{try{e&&n(JSON.parse(e)),u(null)}catch(e){u(e)}},[n]),[p,m]=(0,Q.useState)(!1),h=(0,Q.useCallback)(()=>{n({}),m(!0)},[m]),_=(0,Q.useRef)(null);(0,Q.useEffect)(()=>{p&&_.current&&_.current.select()},[p]);let v=(0,Q.useMemo)(()=>JSON.stringify(a??``,null,2),[a]);if(!o)return Q.createElement(ie,{ariaLabel:!1,disabled:d,id:QY(e),onClick:h},`Set object`);let y=Q.createElement(V2,{ref:_,id:ZY(e),minRows:3,name:e,key:v,defaultValue:v,onBlur:e=>f(e.target.value),placeholder:`Edit JSON string...`,autoFocus:p,valid:l?`error`:void 0,readOnly:d}),b=Array.isArray(t)||typeof t==`object`&&t?.constructor===Object;return Q.createElement(I2,null,b&&Q.createElement(B2,{disabled:d,pressed:s,ariaLabel:`Edit the ${e} properties in JSON format`,onClick:e=>{e.preventDefault(),c(e=>!e)}},`Edit JSON`),s?y:Q.createElement(P2,{readOnly:d||!b,isCollapsed:b?void 0:()=>!0,data:a,rootName:e,onFullyUpdate:n,getStyle:G2(i),cancelButtonElement:Q.createElement(L2,{type:`button`},`Cancel`),addButtonElement:Q.createElement(L2,{type:`submit`,primary:!0},`Save`),plusMenuElement:Q.createElement(R2,{type:`button`},Q.createElement(g,null)),minusMenuElement:Q.createElement(R2,{type:`button`},Q.createElement(A,null)),inputElement:(e,t,n,r)=>r?Q.createElement(z2,{onFocus:W2,onBlur:U2}):Q.createElement(z2,null),fallback:y}))},q2=I.input(({theme:e,min:t,max:n,value:r,disabled:i})=>{let a={background:e.base===`light`?`linear-gradient(to right,
1112
- ${e.color.green} 0%, ${e.color.green} ${(r-t)/(n-t)*100}%,
1113
- ${wQ(.02,e.input.background)} ${(r-t)/(n-t)*100}%,
1114
- ${wQ(.02,e.input.background)} 100%)`:`linear-gradient(to right,
1115
- ${e.color.green} 0%, ${e.color.green} ${(r-t)/(n-t)*100}%,
1116
- ${DQ(.02,e.input.background)} ${(r-t)/(n-t)*100}%,
1117
- ${DQ(.02,e.input.background)} 100%)`,borderRadius:6,boxShadow:`${e.base==`dark`?`hsl(0 0 100 / 0.4)`:`hsl(0 0 0 / 0.44)`} 0 0 0 1px inset`,cursor:i?`not-allowed`:`pointer`,height:6,width:`100%`},o={borderColor:pQ(e.color.secondary,.4)},s={width:16,height:16,borderRadius:50,cursor:i?`not-allowed`:`grab`,background:e.input.background,border:`1px solid ${e.base==`dark`?`hsl(0 0 100 / 0.4)`:`hsl(0 0 0 / 0.44)`}`,boxShadow:e.base===`light`?`0 1px 3px 0px ${pQ(e.appBorderColor,.2)}`:`unset`,transition:`all 150ms ease-out`},c={background:`${wQ(.05,e.input.background)}`,transform:`scale3d(1.1, 1.1, 1.1) translateY(-1px)`,transition:`all 50ms ease-out`},l={background:`${e.input.background}`,transform:`scale3d(1, 1, 1) translateY(0px)`},u={borderColor:e.color.secondary,boxShadow:e.base===`light`?`0 0px 5px 0px ${e.color.secondary}`:`unset`};return{appearance:`none`,backgroundColor:`transparent`,width:`100%`,"&::-webkit-slider-runnable-track":a,"&::-moz-range-track":a,"&::-ms-track":{...a,color:`transparent`},"&::-moz-range-thumb":{...s,"&:hover":c,"&:active":l},"&::-webkit-slider-thumb":{...s,marginTop:`-6px`,appearance:`none`,"&:hover":c,"&:active":l},"&::-ms-thumb":{...s,marginTop:0,"&:hover":c,"&:active":l},"&:focus":{outline:`none`,"&::-webkit-slider-runnable-track":o,"&::-moz-range-track":o,"&::-ms-track":o,"&::-webkit-slider-thumb":u,"&::-moz-range-thumb":u,"&::-ms-thumb":u},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:`0`}}}}),J2=I.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:`nowrap`,fontFeatureSettings:`tnum`,fontVariantNumeric:`tabular-nums`}),Y2=I(J2)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:`right`,flexShrink:0})),X2=I.div(({readOnly:e})=>({display:`flex`,alignItems:`center`,width:`100%`,opacity:e?.5:1}));function Z2(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var Q2=({name:e,value:t,onChange:n,min:r=0,max:i=100,step:a=1,onBlur:o,onFocus:s,argType:c})=>{let l=e=>{n(j0(e.target.value))},u=t!==void 0,d=(0,Q.useMemo)(()=>Z2(a),[a]),f=!!c?.table?.readonly,p=ZY(e);return Q.createElement(X2,{readOnly:f},Q.createElement(`label`,{htmlFor:p,className:`sb-sr-only`},e),Q.createElement(J2,null,r),Q.createElement(q2,{id:p,type:`range`,disabled:f,onChange:l,name:e,min:r,max:i,step:a,onFocus:s,onBlur:o,value:t??r}),Q.createElement(Y2,{numberOFDecimalsPlaces:d,max:i},u?t.toFixed(d):`--`,` / `,i))},$2=I.label({display:`flex`}),e4=I.div(({isMaxed:e})=>({marginLeft:`0.75rem`,paddingTop:`0.35rem`,color:e?`red`:void 0})),t4=({name:e,value:t,onChange:n,onFocus:r,onBlur:i,maxLength:a,argType:o})=>{let s=e=>{n(e.target.value)},c=!!o?.table?.readonly,[l,u]=(0,Q.useState)(!1),d=(0,Q.useCallback)(()=>{n(``),u(!0)},[u]);if(t===void 0)return Q.createElement(ie,{ariaLabel:!1,variant:`outline`,size:`medium`,disabled:c,id:QY(e),onClick:d},`Set string`);let f=typeof t==`string`;return Q.createElement($2,null,Q.createElement(S.Textarea,{id:ZY(e),maxLength:a,onChange:s,disabled:c,size:`flex`,placeholder:`Edit string...`,autoFocus:l,valid:f?void 0:`error`,name:e,value:f?t:``,onFocus:r,onBlur:i}),a&&Q.createElement(e4,{isMaxed:t?.length===a},t?.length??0,` / `,a))},n4=I(S.Input)({padding:10});function r4(e){e.forEach(e=>{e.startsWith(`blob:`)&&URL.revokeObjectURL(e)})}var i4=({onChange:e,name:t,accept:n=`image/*`,value:r,argType:i})=>{let a=(0,Q.useRef)(null),o=i?.control?.readOnly;function s(t){t.target.files&&(e(Array.from(t.target.files).map(e=>URL.createObjectURL(e))),r4(r||[]))}(0,Q.useEffect)(()=>{r==null&&a.current&&(a.current.value=``)},[r,t]);let c=ZY(t);return Q.createElement(Q.Fragment,null,Q.createElement(`label`,{htmlFor:c,className:`sb-sr-only`},t),Q.createElement(n4,{ref:a,id:c,type:`file`,name:t,multiple:!0,disabled:o,onChange:s,accept:n,size:`flex`}))},a4=(0,Q.lazy)(()=>le(()=>import(`./Color-6BZIO3FS-s0pybgGT.js`),__vite__mapDeps([16,13,12,14]),import.meta.url)),o4={array:K2,object:K2,boolean:S0,color:e=>Q.createElement(Q.Suspense,{fallback:Q.createElement(`div`,null)},Q.createElement(a4,{...e})),date:k0,number:N0,check:n2,"inline-check":n2,radio:n2,"inline-radio":n2,select:n2,"multi-select":n2,range:Q2,text:t4,file:i4},s4=()=>Q.createElement(Q.Fragment,null,`-`),c4=({row:e,arg:t,updateArgs:n,isHovered:r})=>{let{key:i,control:a}=e,[o,s]=(0,Q.useState)(!1),[c,l]=(0,Q.useState)({value:t});(0,Q.useEffect)(()=>{o||l({value:t})},[o,t]);let u=(0,Q.useCallback)(e=>(l({value:e}),n({[i]:e}),e),[n,i]),d=(0,Q.useCallback)(()=>s(!1),[]),f=(0,Q.useCallback)(()=>s(!0),[]);if(!a||a.disable){let t=a?.disable!==!0&&e?.type?.name!==`function`;return r&&t?Q.createElement(w,{href:`https://storybook.js.org/docs/essentials/controls?ref=ui`,target:`_blank`,withArrow:!0},`Setup controls`):Q.createElement(s4,null)}let p={name:i,argType:e,value:c.value,onChange:u,onBlur:d,onFocus:f},m=o4[a.type]||s4;return Q.createElement(m,{...p,...a,controlType:a.type})},l4=I.table(({theme:e})=>({"&&":{borderCollapse:`collapse`,borderSpacing:0,border:`none`,tr:{border:`none !important`,background:`none`},"td, th":{padding:0,border:`none`,width:`auto!important`},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:`none`,border:`none`},code:x({theme:e}),div:{span:{fontWeight:`bold`}},"& code":{margin:0,display:`inline-block`,fontSize:e.typography.size.s1}}})),u4=({tags:e})=>{let t=(e.params||[]).filter(e=>e.description),n=t.length!==0,r=e.deprecated!=null,i=e.returns!=null&&e.returns.description!=null;return!n&&!i&&!r?null:Q.createElement(Q.Fragment,null,Q.createElement(l4,null,Q.createElement(`tbody`,null,r&&Q.createElement(`tr`,{key:`deprecated`},Q.createElement(`td`,{colSpan:2},Q.createElement(`strong`,null,`Deprecated`),`: `,e.deprecated?.toString())),n&&t.map(e=>Q.createElement(`tr`,{key:e.name},Q.createElement(`td`,null,Q.createElement(`code`,null,e.name)),Q.createElement(`td`,null,e.description))),i&&Q.createElement(`tr`,{key:`returns`},Q.createElement(`td`,null,Q.createElement(`code`,null,`Returns`)),Q.createElement(`td`,null,e.returns?.description)))))};function d4(e){return[...new Set(e)]}var f4=8,p4=I.div(({isExpanded:e})=>({display:`flex`,flexDirection:e?`column`:`row`,flexWrap:`wrap`,alignItems:`flex-start`,marginBottom:`-4px`,minWidth:100})),m4=I.details({display:`flex`,flexDirection:`column`,summary:{order:2},"summary::-webkit-details-marker":{display:`none`},"summary::marker":{content:`none`}}),h4=I.div({display:`flex`,flexDirection:`column`,flexWrap:`wrap`,alignItems:`flex-start`}),g4=I.span(x,({theme:e,simple:t=!1})=>({flex:`0 0 auto`,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,wordBreak:`break-word`,whiteSpace:`normal`,maxWidth:`100%`,margin:0,marginRight:`4px`,marginBottom:`4px`,paddingTop:`2px`,paddingBottom:`2px`,lineHeight:`13px`,...t&&{background:`transparent`,border:`0 none`,paddingLeft:0}})),_4=I.summary(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,cursor:`pointer`,lineHeight:`normal`,margin:`0 0 4px`,padding:`1px 6px`,background:`none`,border:`none`})),v4=I.button(x,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:`nowrap`,display:`flex`,alignItems:`center`,cursor:`pointer`,"&:hover":{border:e.base===`light`?`1px solid hsl(0 0 0 / 0.15)`:`1px solid hsl(0 0 100 / 0.15)`},"&:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:`2px`}})),y4=I.div(({theme:e})=>({minWidth:200,maxWidth:800,paddingRight:16,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:`content-box`,"& code":{padding:`0 !important`}})),b4=I(i)({marginLeft:4}),x4=I(_)({marginLeft:4}),S4=()=>Q.createElement(`span`,null,`-`),C4=({text:e,simple:t})=>Q.createElement(g4,{simple:t},e),w4=e=>e?d4(e.split(`|`).map(e=>e.trim())):[e],T4=e=>e.slice(0,f4).map(e=>Q.createElement(C4,{key:e,text:e===``?`""`:e})),E4=e=>e.slice(f4).map(e=>Q.createElement(C4,{key:e,text:e===``?`""`:e})),D4=({value:e,initialExpandedArgs:t})=>{let{summary:n,detail:r}=e,[i,a]=(0,Q.useState)(!1),[o,s]=(0,Q.useState)(t||!1);if(n==null)return null;let c=typeof n.toString==`function`?n.toString():n;if(r==null){if(/[(){}[\]<>]/.test(c))return Q.createElement(C4,{text:c});let e=w4(c),t=e.length;return t>f4?Q.createElement(p4,{isExpanded:o},T4(e),Q.createElement(m4,{open:o,onToggle:e=>s(e.currentTarget.open)},Q.createElement(h4,null,E4(e)),Q.createElement(_4,{role:`button`},o?`Show less...`:`Show ${t-f4} more...`))):Q.createElement(p4,null,T4(e))}return Q.createElement(ae,{placement:`bottom`,visible:i,onVisibleChange:e=>{a(e)},hasCloseButton:!0,popover:Q.createElement(y4,null,Q.createElement(E,{language:`jsx`,format:!1},r))},Q.createElement(v4,{className:`sbdocs-expandable`},Q.createElement(`span`,null,c),i?Q.createElement(b4,null):Q.createElement(x4,null)))},O4=({value:e,initialExpandedArgs:t})=>e==null?Q.createElement(S4,null):Q.createElement(D4,{value:e,initialExpandedArgs:t}),k4=I.span({fontWeight:`bold`}),A4=I.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:`help`})),j4=I.div(({theme:e})=>({"&&":{p:{margin:`0 0 10px 0`},a:{color:e.color.secondary}},code:{...x({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:`inline-block`},"& pre > code":{whiteSpace:`pre-wrap`}})),M4=I.div(({theme:e,hasDescription:t})=>({color:e.base===`light`?zQ(.1,e.color.defaultText):zQ(.2,e.color.defaultText),marginTop:t?4:0})),N4=I.div(({theme:e,hasDescription:t})=>({color:e.base===`light`?zQ(.1,e.color.defaultText):zQ(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),P4=I.td(({expandable:e})=>({paddingLeft:e?`40px !important`:`20px !important`})),F4=e=>e&&{summary:typeof e==`string`?e:e.name},I4=e=>{let[t,n]=(0,Q.useState)(!1),{row:r,updateArgs:i,compact:a,expandable:o,initialExpandedArgs:s}=e,{name:c,description:l}=r,u=r.table||{},d=u.type||F4(r.type),f=u.defaultValue||r.defaultValue,p=r.type?.required,m=l!=null&&l!==``;return Q.createElement(`tr`,{onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1)},Q.createElement(P4,{expandable:o??!1},Q.createElement(k4,null,c),p?Q.createElement(A4,{title:`Required`},`*`):null),a?null:Q.createElement(`td`,null,m&&Q.createElement(j4,null,Q.createElement(y0,null,l)),u.jsDocTags==null?Q.createElement(M4,{hasDescription:m},Q.createElement(O4,{value:d,initialExpandedArgs:s})):Q.createElement(Q.Fragment,null,Q.createElement(N4,{hasDescription:m},Q.createElement(O4,{value:d,initialExpandedArgs:s})),Q.createElement(u4,{tags:u.jsDocTags}))),a?null:Q.createElement(`td`,null,Q.createElement(O4,{value:f,initialExpandedArgs:s})),i?Q.createElement(`td`,null,Q.createElement(c4,{...e,isHovered:t})):null)},L4=I.div(({inAddonPanel:e,theme:t})=>({height:e?`100%`:`auto`,display:`flex`,border:e?`none`:`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:`center`,justifyContent:`center`,flexDirection:`column`,gap:15,background:t.background.content})),R4=I.div(({theme:e})=>({display:`flex`,fontSize:e.typography.size.s2-1,gap:25})),z4=({inAddonPanel:e})=>{let[t,n]=(0,Q.useState)(!0);return(0,Q.useEffect)(()=>{let e=setTimeout(()=>{n(!1)},100);return()=>clearTimeout(e)},[]),t?null:Q.createElement(L4,{inAddonPanel:e},Q.createElement(re,{title:e?`Interactive story playground`:`Args table with interactive controls couldn't be auto-generated`,description:Q.createElement(Q.Fragment,null,`Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically.`),footer:Q.createElement(R4,null,e&&Q.createElement(Q.Fragment,null,Q.createElement(w,{href:`https://storybook.js.org/docs/essentials/controls?ref=ui`,target:`_blank`,withArrow:!0},Q.createElement(r,null),` Read docs`)),!e&&Q.createElement(w,{href:`https://storybook.js.org/docs/essentials/controls?ref=ui`,target:`_blank`,withArrow:!0},Q.createElement(r,null),` Learn how to set that up`))}))},B4=I(n)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base===`light`?zQ(.25,e.color.defaultText):zQ(.3,e.color.defaultText),border:`none`,display:`inline-block`})),V4=I(F)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base===`light`?zQ(.25,e.color.defaultText):zQ(.3,e.color.defaultText),border:`none`,display:`inline-block`})),H4=I.span(({theme:e})=>({display:`flex`,lineHeight:`20px`,alignItems:`center`})),U4=I.td(({theme:e})=>({position:`relative`,letterSpacing:`0.35em`,textTransform:`uppercase`,fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:e.base===`light`?zQ(.4,e.color.defaultText):zQ(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),W4=I.td(({theme:e})=>({position:`relative`,fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),G4=I.td({position:`relative`}),K4=I.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${DQ(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:`row-resize`}})),q4=I.button({background:`none`,border:`none`,padding:`0`,font:`inherit`,position:`absolute`,top:0,bottom:0,left:0,right:0,height:`100%`,width:`100%`,color:`transparent`,cursor:`row-resize !important`}),J4=({level:e=`section`,label:t,children:n,initialExpanded:r=!0,colSpan:i=3})=>{let[a,o]=(0,Q.useState)(r),s=e===`subsection`?W4:U4,c=n?.length||0,l=e===`subsection`?`${c} item${c===1?``:`s`}`:``,u=`${a?`Hide`:`Show`} ${e===`subsection`?c:t} item${c===1?``:`s`}`;return Q.createElement(Q.Fragment,null,Q.createElement(K4,{title:u},Q.createElement(s,{colSpan:1},Q.createElement(q4,{onClick:e=>o(!a),tabIndex:0},u),Q.createElement(H4,null,a?Q.createElement(B4,null):Q.createElement(V4,null),t)),Q.createElement(G4,{colSpan:i-1},Q.createElement(q4,{onClick:e=>o(!a),tabIndex:-1,style:{outline:`none`}},u),a?null:l)),a?n:null)},Y4=I.div(({theme:e})=>({width:`100%`,borderSpacing:0,color:e.color.defaultText})),X4=I.div(({theme:e})=>({display:`flex`,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),Z4=I.div(({position:e,theme:t})=>{let n={display:`flex`,flexDirection:`column`,gap:5,padding:`10px 15px`,alignItems:`flex-start`};switch(e){case`first`:return{...n,width:`25%`,paddingLeft:20};case`second`:return{...n,width:`35%`};case`third`:return{...n,width:`15%`};case`last`:return{...n,width:`25%`,paddingRight:20}}}),Q4=I.div(({theme:e,width:t,height:n})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||`100%`,height:n||16,borderRadius:3})),$4=()=>Q.createElement(Y4,null,Q.createElement(X4,null,Q.createElement(Z4,{position:`first`},Q.createElement(Q4,{width:`60%`})),Q.createElement(Z4,{position:`second`},Q.createElement(Q4,{width:`30%`})),Q.createElement(Z4,{position:`third`},Q.createElement(Q4,{width:`60%`})),Q.createElement(Z4,{position:`last`},Q.createElement(Q4,{width:`60%`}))),Q.createElement(X4,null,Q.createElement(Z4,{position:`first`},Q.createElement(Q4,{width:`60%`})),Q.createElement(Z4,{position:`second`},Q.createElement(Q4,{width:`80%`}),Q.createElement(Q4,{width:`30%`})),Q.createElement(Z4,{position:`third`},Q.createElement(Q4,{width:`60%`})),Q.createElement(Z4,{position:`last`},Q.createElement(Q4,{width:`60%`}))),Q.createElement(X4,null,Q.createElement(Z4,{position:`first`},Q.createElement(Q4,{width:`60%`})),Q.createElement(Z4,{position:`second`},Q.createElement(Q4,{width:`80%`}),Q.createElement(Q4,{width:`30%`})),Q.createElement(Z4,{position:`third`},Q.createElement(Q4,{width:`60%`})),Q.createElement(Z4,{position:`last`},Q.createElement(Q4,{width:`60%`}))),Q.createElement(X4,null,Q.createElement(Z4,{position:`first`},Q.createElement(Q4,{width:`60%`})),Q.createElement(Z4,{position:`second`},Q.createElement(Q4,{width:`80%`}),Q.createElement(Q4,{width:`30%`})),Q.createElement(Z4,{position:`third`},Q.createElement(Q4,{width:`60%`})),Q.createElement(Z4,{position:`last`},Q.createElement(Q4,{width:`60%`})))),e3=I.table(({theme:e,compact:t,inAddonPanel:n,inTabPanel:r})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:`none`,verticalAlign:`top`,textOverflow:`ellipsis`},fontSize:e.typography.size.s2-1,lineHeight:`19px`,textAlign:`left`,width:`100%`,marginTop:n?0:25,marginBottom:n?0:40,"thead th:first-of-type, td:first-of-type":{width:`25%`},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:`35%`}},"td:nth-of-type(3)":{...t?null:{width:`15%`}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:`25%`}},th:{color:e.textMutedColor,paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:`10px`,paddingBottom:`10px`,"&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginInline:n||r?0:1,paddingInline:r?3:0,tbody:{...n?null:{filter:e.base===`light`?`drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))`:`drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))`},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...n?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}}}})),t3=I.div({position:`relative`}),n3=I.div({position:`absolute`,right:22,top:10}),r3=I(ie)({margin:`-4px -12px -4px 0`}),i3={alpha:(e,t)=>(e.name??``).localeCompare(t.name??``),requiredFirst:(e,t)=>!!t.type?.required-+!!e.type?.required||(e.name??``).localeCompare(t.name??``),none:null},a3=(e,t)=>{let n={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return n;Object.entries(e).forEach(([e,t])=>{let{category:r,subcategory:i}=t?.table||{};if(r){let a=n.sections[r]||{ungrouped:[],subsections:{}};if(!i)a.ungrouped.push({key:e,...t});else{let n=a.subsections[i]||[];n.push({key:e,...t}),a.subsections[i]=n}n.sections[r]=a}else if(i){let r=n.ungroupedSubsections[i]||[];r.push({key:e,...t}),n.ungroupedSubsections[i]=r}else n.ungrouped.push({key:e,...t})});let r=i3[t],i=e=>r?Object.keys(e).reduce((t,n)=>({...t,[n]:e[n].sort(r)}),{}):e;return{ungrouped:r?n.ungrouped.sort(r):n.ungrouped,ungroupedSubsections:i(n.ungroupedSubsections),sections:Object.keys(n.sections).reduce((e,t)=>({...e,[t]:{ungrouped:r?n.sections[t].ungrouped.sort(r):n.sections[t].ungrouped,subsections:i(n.sections[t].subsections)}}),{})}},o3=(e,t,n)=>{try{return c(e,t,n)}catch(e){return qQ.warn(e.message),!1}},s3=e=>{let{updateArgs:t,resetArgs:n,compact:i,inAddonPanel:a,inTabPanel:o,initialExpandedArgs:s,sort:c=`none`,isLoading:l}=e;if(`error`in e){let{error:t}=e;return Q.createElement(VQ,null,t,`\xA0`,Q.createElement(w,{href:`http://storybook.js.org/docs/?ref=ui`,target:`_blank`,withArrow:!0},Q.createElement(r,null),` Read the docs`))}if(l)return Q.createElement($4,null);let{rows:u,args:f,globals:p}=`rows`in e?e:{rows:void 0,args:void 0,globals:void 0},m=a3(w$(u||{},e=>!e?.table?.disable&&o3(e,f||{},p||{})),c),h=m.ungrouped.length===0,g=Object.entries(m.sections).length===0,_=Object.entries(m.ungroupedSubsections).length===0;if(h&&g&&_)return Q.createElement(z4,{inAddonPanel:a});let v=1;t&&(v+=1),i||(v+=2);let y=Object.keys(m.sections).length>0,b={updateArgs:t,compact:i,inAddonPanel:a,initialExpandedArgs:s};return Q.createElement(T,null,Q.createElement(t3,null,t&&!l&&n&&Q.createElement(n3,null,Q.createElement(r3,{variant:`ghost`,padding:`small`,onClick:()=>n(),ariaLabel:`Reset controls`},Q.createElement(d,null))),Q.createElement(e3,{compact:i,inAddonPanel:a,inTabPanel:o,className:`docblock-argstable sb-unstyled`},Q.createElement(`thead`,{className:`docblock-argstable-head`},Q.createElement(`tr`,null,Q.createElement(`th`,null,Q.createElement(`span`,null,`Name`)),i?null:Q.createElement(`th`,null,Q.createElement(`span`,null,`Description`)),i?null:Q.createElement(`th`,null,Q.createElement(`span`,null,`Default`)),t?Q.createElement(`th`,null,Q.createElement(`span`,null,`Control`)):null)),Q.createElement(`tbody`,{className:`docblock-argstable-body`},m.ungrouped.map(e=>Q.createElement(I4,{key:e.key,row:e,arg:f&&f[e.key],...b})),Object.entries(m.ungroupedSubsections).map(([e,t])=>Q.createElement(J4,{key:e,label:e,level:`subsection`,colSpan:v},t.map(e=>Q.createElement(I4,{key:e.key,row:e,arg:f&&f[e.key],expandable:y,...b})))),Object.entries(m.sections).map(([e,t])=>Q.createElement(J4,{key:e,label:e,level:`section`,colSpan:v},t.ungrouped.map(e=>Q.createElement(I4,{key:e.key,row:e,arg:f&&f[e.key],...b})),Object.entries(t.subsections).map(([e,t])=>Q.createElement(J4,{key:e,label:e,level:`subsection`,colSpan:v},t.map(e=>Q.createElement(I4,{key:e.key,row:e,arg:f&&f[e.key],expandable:y,...b}))))))))))},c3=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,l3=600,u3=I.h1(se,({theme:e})=>({color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:`32px`,[`@media (min-width: ${l3}px)`]:{fontSize:e.typography.size.l1,lineHeight:`36px`,marginBottom:`16px`}})),d3=I.h2(se,({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:`20px`,borderBottom:`none`,marginBottom:15,[`@media (min-width: ${l3}px)`]:{fontSize:e.typography.size.m1,lineHeight:`28px`,marginBottom:24},color:zQ(.25,e.color.defaultText)})),f3=I.div(({theme:e})=>{let t={fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:`antialiased`,MozOsxFontSmoothing:`grayscale`,WebkitTapHighlightColor:`rgba(0, 0, 0, 0)`,WebkitOverflowScrolling:`touch`},n={margin:`20px 0 8px`,padding:0,cursor:`text`,position:`relative`,color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:`none`},"& code":{fontSize:`inherit`}},r={lineHeight:1,margin:`0 2px`,padding:`3px 5px`,whiteSpace:`nowrap`,borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base===`light`?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base===`light`?zQ(.1,e.color.defaultText):zQ(.3,e.color.defaultText),backgroundColor:e.base===`light`?e.color.lighter:e.color.border};return{maxWidth:1e3,width:`100%`,minWidth:0,[c3(`a`)]:{...t,fontSize:`inherit`,lineHeight:`24px`,color:e.color.secondary,textDecoration:`none`,"&.absent":{color:`#cc0000`},"&.anchor":{display:`block`,paddingLeft:30,marginLeft:-30,cursor:`pointer`,position:`absolute`,top:0,left:0,bottom:0}},[c3(`blockquote`)]:{...t,margin:`16px 0`,borderLeft:`4px solid ${e.color.medium}`,padding:`0 15px`,color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[c3(`div`)]:t,[c3(`dl`)]:{...t,margin:`16px 0`,padding:0,"& dt":{fontSize:`14px`,fontWeight:`bold`,fontStyle:`italic`,padding:0,margin:`16px 0 4px`},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:`0 0 16px`,padding:`0 15px`},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[c3(`h1`)]:{...t,...n,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[c3(`h2`)]:{...t,...n,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[c3(`h3`)]:{...t,...n,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[c3(`h4`)]:{...t,...n,fontSize:`${e.typography.size.s3}px`},[c3(`h5`)]:{...t,...n,fontSize:`${e.typography.size.s2}px`},[c3(`h6`)]:{...t,...n,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[c3(`hr`)]:{border:`0 none`,borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[c3(`img`)]:{maxWidth:`100%`},[c3(`li`)]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:`24px`,"& + li":{marginTop:`.25em`},"& ul, & ol":{marginTop:`.25em`,marginBottom:0},"& code":r},[c3(`ol`)]:{...t,margin:`16px 0`,paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[c3(`p`)]:{...t,margin:`16px 0`,fontSize:e.typography.size.s2,lineHeight:`24px`,color:e.color.defaultText,"& code":r},[c3(`pre`)]:{...t,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:`antialiased`,MozOsxFontSmoothing:`grayscale`,lineHeight:`18px`,padding:`11px 1rem`,whiteSpace:`pre-wrap`,color:`inherit`,borderRadius:3,margin:`1rem 0`,"&:not(.prismjs)":{background:`transparent`,border:`none`,borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:`pre-wrap`,color:`inherit`,fontSize:`13px`,lineHeight:`19px`,code:{color:`inherit`,fontSize:`inherit`}},"& code":{whiteSpace:`pre`},"& code, & tt":{border:`none`}},[c3(`span`)]:{...t,"&.frame":{display:`block`,overflow:`hidden`,"& > span":{border:`1px solid ${e.color.medium}`,display:`block`,float:`left`,overflow:`hidden`,margin:`13px 0 0`,padding:7,width:`auto`},"& span img":{display:`block`,float:`left`},"& span span":{clear:`both`,color:e.color.darkest,display:`block`,padding:`5px 0 0`}},"&.align-center":{display:`block`,overflow:`hidden`,clear:`both`,"& > span":{display:`block`,overflow:`hidden`,margin:`13px auto 0`,textAlign:`center`},"& span img":{margin:`0 auto`,textAlign:`center`}},"&.align-right":{display:`block`,overflow:`hidden`,clear:`both`,"& > span":{display:`block`,overflow:`hidden`,margin:`13px 0 0`,textAlign:`right`},"& span img":{margin:0,textAlign:`right`}},"&.float-left":{display:`block`,marginRight:13,overflow:`hidden`,float:`left`,"& span":{margin:`13px 0 0`}},"&.float-right":{display:`block`,marginLeft:13,overflow:`hidden`,float:`right`,"& > span":{display:`block`,overflow:`hidden`,margin:`13px auto 0`,textAlign:`right`}}},[c3(`table`)]:{...t,margin:`16px 0`,fontSize:e.typography.size.s2,lineHeight:`24px`,padding:0,borderCollapse:`collapse`,"& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base===`dark`?e.color.darker:e.color.lighter},"& tr th":{fontWeight:`bold`,color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:`6px 13px`},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:`6px 13px`},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[c3(`ul`)]:{...t,margin:`16px 0`,paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:`disc`}}}),p3=I.div(({theme:e})=>({background:e.background.content,display:`flex`,flexDirection:`row-reverse`,justifyContent:`center`,padding:`4rem 20px`,minHeight:`100vh`,boxSizing:`border-box`,gap:`3rem`,[`@media (min-width: ${l3}px)`]:{}})),m3=({children:e,toc:t})=>Q.createElement(p3,{className:`sbdocs sbdocs-wrapper`},t,Q.createElement(f3,{className:`sbdocs sbdocs-content`},e));globalThis&&globalThis.__DOCS_CONTEXT__===void 0&&(globalThis.__DOCS_CONTEXT__=(0,Q.createContext)(null),globalThis.__DOCS_CONTEXT__.displayName=`DocsContext`);var h3=globalThis?globalThis.__DOCS_CONTEXT__:(0,Q.createContext)(null);function g3(e,t){let n=_3([e],t);return n&&n[0]}function _3(e,t){let[n,r]=(0,Q.useState)({});return(0,Q.useEffect)(()=>{Promise.all(e.map(async e=>{let n=await t.loadStory(e);r(t=>t[e]===n?t:{...t,[e]:n})}))}),e.map(e=>{if(n[e])return n[e];try{return t.storyById(e)}catch{return}})}var v3=(e,t)=>{let{of:n,meta:r}=e;if(`of`in e&&n===void 0)throw Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");return r&&t.referenceMeta(r,!1),t.resolveOf(n||`story`,[`story`]).story.id},y3=(e,t,n)=>{let{parameters:r={}}=t||{},{docs:i={}}=r,a=i.story||{};return i.disable?null:e.inline??a.inline??!1?{story:t,inline:!0,height:e.height??a.height,autoplay:e.autoplay??a.autoplay??!1,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:n.renderStoryToElement}:{story:t,inline:!1,height:e.height??a.height??a.iframeHeight??`100px`,primary:!!e.__primary}},b3=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=(0,Q.useContext)(h3),n=g3(v3(e,t),t);if(!n)return Q.createElement(j3,null);let r=y3(e,n,t);return r?Q.createElement(A3,{...r}):null},x3=e=>({borderRadius:e.appBorderRadius,background:e.background.content,boxShadow:e.base===`light`?`rgba(0, 0, 0, 0.10) 0 1px 3px 0`:`rgba(0, 0, 0, 0.20) 0 2px 5px 0`,border:`1px solid ${e.appBorderColor}`}),S3=(e,t={})=>{let[n,r]=(globalThis.PREVIEW_URL||`iframe.html`).split(`?`),i=new URLSearchParams(r||``);return Object.entries(t).forEach(([e,t])=>{i.set(e,t)}),i.set(`id`,e),`${n}?${i.toString()}`},{window:C3}=globalThis,w3=class extends Q.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=C3.document.getElementById(e)}shouldComponentUpdate(e){let{scale:t}=e;return t!==this.props.scale&&this.setIframeBodyStyle({width:`${t*100}%`,height:`${t*100}%`,transform:`scale(${1/t})`,transformOrigin:`top left`}),!1}setIframeBodyStyle(e){return Object.assign(this.iframe.contentDocument.body.style,e)}render(){let{id:e,title:t,src:n,allowFullScreen:r,scale:i,...a}=this.props;return Q.createElement(`iframe`,{id:e,title:t,src:n,...r?{allow:`fullscreen`}:{},loading:`lazy`,...a})}},T3=(0,Q.createContext)({scale:1}),E3=({story:e,primary:t})=>`story--${e.id}${t?`--primary`:``}`,D3=e=>{let t=(0,Q.useRef)(),[n,r]=(0,Q.useState)(!0),[i,a]=(0,Q.useState)(),{story:o,height:s,autoplay:c,forceInitialArgs:l,renderStoryToElement:u}=e;return(0,Q.useEffect)(()=>{if(!(o&&t.current))return()=>{};let e=t.current,n=u(o,e,{showMain:()=>{},showError:({title:e,description:t})=>a(Error(`${e} - ${t}`)),showException:e=>a(e)},{autoplay:c,forceInitialArgs:l});return r(!1),()=>{Promise.resolve().then(()=>n())}},[c,u,o]),i?Q.createElement(`pre`,null,Q.createElement(k,{error:i})):Q.createElement(Q.Fragment,null,s?Q.createElement(`style`,null,`#${E3(e)} { min-height: ${s}; transform: translateZ(0); overflow: auto }`):null,n&&Q.createElement(j3,null),Q.createElement(`div`,{ref:t,id:`${E3(e)}-inner`,"data-name":o.name}))},O3=({story:e,height:t=`500px`})=>Q.createElement(`div`,{style:{width:`100%`,height:t}},Q.createElement(T3.Consumer,null,({scale:t})=>Q.createElement(w3,{key:`iframe`,id:`iframe--${e.id}`,title:e.name,src:S3(e.id,{viewMode:`story`}),allowFullScreen:!0,scale:t,style:{width:`100%`,height:`100%`,border:`0 none`}}))),k3=I.strong(({theme:e})=>({color:e.color.orange})),A3=e=>{let{inline:t,story:n}=e;return t&&!e.autoplay&&n.usesMount?Q.createElement(k3,null,`This story mounts inside of play. Set`,` `,Q.createElement(`a`,{href:`https://storybook.js.org/docs/api/doc-blocks/doc-block-story?ref=ui#autoplay`},`autoplay`),` `,`to true to view this story.`):Q.createElement(`div`,{id:E3(e),className:`sb-story sb-unstyled`,"data-story-block":`true`},t?Q.createElement(D3,{...e}):Q.createElement(O3,{...e}))},j3=()=>Q.createElement(j,null),M3=I(O)({position:`absolute`,left:0,right:0,top:0,transition:`transform .2s linear`,display:`flex`,alignItems:`center`}),N3=I.div({display:`flex`,alignItems:`center`,gap:4}),P3=I.div(({theme:e})=>({width:14,height:14,borderRadius:2,margin:`0 7px`,backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),F3=({isLoading:t,storyId:n,zoom:r,resetZoom:i,...o})=>Q.createElement(M3,{innerStyle:{gap:4,paddingInline:7,justifyContent:`space-between`},...o},Q.createElement(N3,{key:`left`},t?[1,2,3].map(e=>Q.createElement(P3,{key:e})):Q.createElement(Q.Fragment,null,Q.createElement(ie,{padding:`small`,variant:`ghost`,key:`zoomin`,onClick:e=>{e.preventDefault(),r(.8)},ariaLabel:`Zoom in`},Q.createElement(f,null)),Q.createElement(ie,{padding:`small`,variant:`ghost`,key:`zoomout`,onClick:e=>{e.preventDefault(),r(1.25)},ariaLabel:`Zoom out`},Q.createElement(m,null)),Q.createElement(ie,{padding:`small`,variant:`ghost`,key:`zoomreset`,onClick:e=>{e.preventDefault(),i()},ariaLabel:`Reset zoom`},Q.createElement(a,null)))),t?Q.createElement(N3,{key:`right`},Q.createElement(P3,null)):n&&Q.createElement(N3,{key:`right`},Q.createElement(ie,{asChild:!0,padding:`small`,variant:`ghost`,key:`opener`,ariaLabel:`Open canvas in new tab`},Q.createElement(`a`,{href:S3(n),target:`_blank`,rel:`noopener noreferrer`},Q.createElement(e,null))))),I3=I.div(({isColumn:e,columns:t,layout:n})=>({display:e||!t?`block`:`flex`,position:`relative`,flexWrap:`wrap`,overflow:`auto`,flexDirection:e?`column`:`row`,"& .innerZoomElementWrapper > *":e?{width:n===`fullscreen`?`100%`:`calc(100% - 20px)`,display:`block`}:{maxWidth:n===`fullscreen`?`100%`:`calc(100% - 20px)`,display:`inline-block`}}),({layout:e=`padded`,inline:t})=>e===`centered`||e===`padded`?{padding:t?`32px 22px`:`0px`,"& .innerZoomElementWrapper > *":{width:`auto`,border:`8px solid transparent!important`}}:{},({layout:e=`padded`,inline:t})=>e===`centered`&&t?{display:`flex`,justifyContent:`center`,justifyItems:`center`,alignContent:`center`,alignItems:`center`}:{},({columns:e})=>e&&e>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${e} - 20px)`}}:{}),L3=I(KQ)(({theme:e})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:e.appBorderRadius,borderBottomRightRadius:e.appBorderRadius,border:`none`,background:e.base===`light`?`rgba(0, 0, 0, 0.85)`:wQ(.05,e.background.content),color:e.color.lightest,button:{background:e.base===`light`?`rgba(0, 0, 0, 0.85)`:wQ(.05,e.background.content)}})),R3=I.div(({theme:e,withSource:t,isExpanded:n})=>({position:`relative`,overflow:`hidden`,margin:`25px 0 40px`,...x3(e),borderBottomLeftRadius:t&&n&&0,borderBottomRightRadius:t&&n&&0,borderBottomWidth:n&&0,"h3 + &":{marginTop:`16px`}}),({withToolbar:e})=>e&&{paddingTop:40}),z3=(e,t,n)=>{switch(!0){case!!(e&&e.error):return{source:null,actionItem:{title:`No code available`,className:`docblock-code-toggle docblock-code-toggle--disabled`,disabled:!0,onClick:()=>n(!1)}};case t:return{source:Q.createElement(L3,{...e,dark:!0}),actionItem:{title:`Hide code`,className:`docblock-code-toggle docblock-code-toggle--expanded`,onClick:()=>n(!1)}};default:return{source:Q.createElement(L3,{...e,dark:!0}),actionItem:{title:`Show code`,className:`docblock-code-toggle`,onClick:()=>n(!0)}}}};function B3(e){if(Q.Children.count(e)===1){let t=e;if(t.props)return t.props}return null}var V3=I(F3)({position:`absolute`,top:0,left:0,right:0,height:40}),H3=I.div({overflow:`hidden`,position:`relative`}),U3=({isLoading:e,isColumn:t,columns:n,children:r,withSource:i,withToolbar:a=!1,isExpanded:o=!1,additionalActions:s,className:c,layout:l=`padded`,inline:u=!1,...d})=>{let[f,p]=(0,Q.useState)(o),{source:m,actionItem:h}=z3(i,f,p),[g,_]=(0,Q.useState)(1),v=[c,`sbdocs`,`sbdocs-preview`,`sb-unstyled`],y=i?[h]:[],[b,x]=(0,Q.useState)(s?[...s]:[]),S=[...y,...b],{window:C}=globalThis,w=(0,Q.useContext)(h3),T=(0,Q.useCallback)(async e=>{let{createCopyToClipboardFunction:t}=await le(async()=>{let{createCopyToClipboardFunction:e}=await import(`./components-BJbtgP_z.js`).then(e=>e.y);return{createCopyToClipboardFunction:e}},__vite__mapDeps([13,12,14]),import.meta.url);t()},[]),E=e=>{let t=C.getSelection();t&&t.type===`Range`||(e.preventDefault(),b.filter(e=>e.title===`Copied`).length===0&&T(m?.props.code??``).then(()=>{x([...b,{title:`Copied`,onClick:()=>{}}]),C.setTimeout(()=>x(b.filter(e=>e.title!==`Copied`)),1500)}))},O=B3(r);return Q.createElement(R3,{withSource:i,withToolbar:a,...d,className:v.join(` `)},a&&Q.createElement(V3,{isLoading:e,border:!0,zoom:e=>_(g*e),resetZoom:()=>_(1),storyId:!e&&O?v3(O,w):void 0}),Q.createElement(T3.Provider,{value:{scale:g}},Q.createElement(H3,{className:`docs-story`,onCopyCapture:i&&E},Q.createElement(I3,{isColumn:t||!Array.isArray(r),columns:n,layout:l,inline:u},Q.createElement(D.Element,{centered:l===`centered`,scale:u?g:1},Array.isArray(r)?r.map((e,t)=>Q.createElement(`div`,{key:t},e)):Q.createElement(`div`,null,r))),Q.createElement(lX,{actionItems:S}))),i&&f&&m)};I(U3)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));var W3=I(te)({height:`fit-content`}),G3=({tabs:e,...t})=>{let n=Object.entries(e);if(n.length===1)return Q.createElement(s3,{...n[0][1],...t});let r=n.map(([e,n],r)=>({id:`prop_table_div_${e}`,title:e,children:()=>{let i=r===0?t:{sort:t.sort};return Q.createElement(s3,{inTabPanel:!0,key:`prop_table_${e}`,...n,...i})}}));return Q.createElement(W3,{tabs:r})};I.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base===`light`?zQ(.4,e.color.defaultText):zQ(.6,e.color.defaultText)})),I.div({overflow:`hidden`,whiteSpace:`nowrap`,textOverflow:`ellipsis`}),I.div({display:`flex`,flexDirection:`row`,alignItems:`baseline`,"&:not(:last-child)":{marginBottom:`1rem`}}),I.div(se,({theme:e})=>({...x3(e),margin:`25px 0 40px`,padding:`30px 20px`})),I.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText})),I.div(({theme:e})=>({color:zQ(.3,e.color.defaultText)})),I.div({flex:`0 0 30%`,lineHeight:`20px`,marginTop:5}),I.div(({theme:e})=>({flex:1,textAlign:`center`,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:`hidden`,color:zQ(.3,e.color.defaultText),"> div":{display:`inline-block`,overflow:`hidden`,maxWidth:`100%`,textOverflow:`ellipsis`},span:{display:`block`,marginTop:2}})),I.div({display:`flex`,flexDirection:`row`}),I.div(({background:e})=>({position:`relative`,flex:1,"&::before":{position:`absolute`,top:0,left:0,width:`100%`,height:`100%`,background:e,content:`""`}})),I.div(({theme:e})=>({...x3(e),display:`flex`,flexDirection:`row`,height:50,marginBottom:5,overflow:`hidden`,backgroundColor:`white`,backgroundImage:`repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)`,backgroundClip:`padding-box`})),I.div({display:`flex`,flexDirection:`column`,flex:1,position:`relative`,marginBottom:30}),I.div({flex:1,display:`flex`,flexDirection:`row`}),I.div({display:`flex`,alignItems:`flex-start`}),I.div({flex:`0 0 30%`}),I.div({flex:1}),I.div(({theme:e})=>({display:`flex`,flexDirection:`row`,alignItems:`center`,paddingBottom:20,fontWeight:e.typography.weight.bold,color:zQ(.3,e.color.defaultText)})),I.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:`20px`,display:`flex`,flexDirection:`column`})),I.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s1,color:e.color.defaultText,marginLeft:10,lineHeight:1.2,display:`-webkit-box`,overflow:`hidden`,wordBreak:`break-word`,textOverflow:`ellipsis`,WebkitLineClamp:2,WebkitBoxOrient:`vertical`})),I.div(({theme:e})=>({...x3(e),overflow:`hidden`,height:40,width:40,display:`flex`,alignItems:`center`,justifyContent:`center`,flex:`none`,"> img, > svg":{width:20,height:20}})),I.div({display:`inline-flex`,flexDirection:`row`,alignItems:`center`,width:`100%`}),I.div({display:`grid`,gridTemplateColumns:`repeat(auto-fill, minmax(140px, 1fr))`,gridGap:`8px 16px`,gridAutoFlow:`row dense`,gridAutoRows:50});var{NAVIGATE_URL:K3}=__STORYBOOK_MODULE_CORE_EVENTS__;function q3(e){let t=[].forEach,n=[].some,r=typeof window<`u`&&document.body,i,a=!0,o=0;function s(e,t){let n=t.appendChild(l(e));if(e.children.length){let t=u(e.isCollapsed);e.children.forEach(e=>{s(e,t)}),n.appendChild(t)}}function c(e,t){let n=u(!1);if(t.forEach(e=>{s(e,n)}),i=e||i,i!==null)return i.firstChild&&i.removeChild(i.firstChild),t.length===0?i:i.appendChild(n)}function l(n){let r=document.createElement(`li`),i=document.createElement(`a`);return e.listItemClass&&r.setAttribute(`class`,e.listItemClass),e.onClick&&(i.onclick=e.onClick),e.includeTitleTags&&i.setAttribute(`title`,n.textContent),e.includeHtml&&n.childNodes.length?t.call(n.childNodes,e=>{i.appendChild(e.cloneNode(!0))}):i.textContent=n.textContent,i.setAttribute(`href`,`${e.basePath}#${n.id}`),i.setAttribute(`class`,`${e.linkClass+` `}node-name--${n.nodeName} ${e.extraLinkClasses}`),r.appendChild(i),r}function u(t){let n=e.orderedList?`ol`:`ul`,r=document.createElement(n),i=e.listClass+` `+e.extraListClasses;return t&&(i=i+` `+e.collapsibleClass,i=i+` `+e.isCollapsedClass),r.setAttribute(`class`,i),r}function d(){let t=S(),n=document.querySelector(e.positionFixedSelector);e.fixedSidebarOffset===`auto`&&(e.fixedSidebarOffset=i.offsetTop),t>e.fixedSidebarOffset?n.className.indexOf(e.positionFixedClass)===-1&&(n.className+=` `+e.positionFixedClass):n.className=n.className.replace(` `+e.positionFixedClass,``)}function f(t){let n=0;return t!==null&&(n=t.offsetTop,e.hasInnerContainers&&(n+=f(t.offsetParent))),n}function p(e,t){return e&&e.className!==t&&(e.className=t),e}function m(n,r){e.positionFixedSelector&&d();let s=n,c=r?.target?.getAttribute?r?.target?.getAttribute(`href`):null,l=c&&c.charAt(0)===`#`?y(c.replace(`#`,``)):!1,u=a||l;if(r&&o<5&&o++,u&&i&&s.length>0){let n=C(s),r=i.querySelector(`.${e.activeLinkClass}`),a=n.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,`\\$1`),u=window.location.hash.replace(`#`,``),d=a,f=b();c&&l?d=c.replace(`#`,``):u&&u!==a&&f&&(y(a)||o<=2)&&(d=u);let m=i.querySelector(`.${e.linkClass}[href="${e.basePath}#${d}"]`);if(r===m)return;let g=i.querySelectorAll(`.${e.linkClass}`);t.call(g,t=>{p(t,t.className.replace(` `+e.activeLinkClass,``))});let _=i.querySelectorAll(`.${e.listItemClass}`);t.call(_,t=>{p(t,t.className.replace(` `+e.activeListItemClass,``))}),m&&m.className.indexOf(e.activeLinkClass)===-1&&(m.className+=` `+e.activeLinkClass);let v=m?.parentNode;v&&v.className.indexOf(e.activeListItemClass)===-1&&(v.className+=` `+e.activeListItemClass);let x=i.querySelectorAll(`.${e.listClass}.${e.collapsibleClass}`);t.call(x,t=>{t.className.indexOf(e.isCollapsedClass)===-1&&(t.className+=` `+e.isCollapsedClass)}),m?.nextSibling&&m.nextSibling.className.indexOf(e.isCollapsedClass)!==-1&&p(m.nextSibling,m.nextSibling.className.replace(` `+e.isCollapsedClass,``)),h(m?.parentNode.parentNode)}}function h(t){return t&&t.className.indexOf(e.collapsibleClass)!==-1&&t.className.indexOf(e.isCollapsedClass)!==-1?(p(t,t.className.replace(` `+e.isCollapsedClass,``)),h(t.parentNode.parentNode)):t}function g(t){let n=t.target||t.srcElement;typeof n.className!=`string`||n.className.indexOf(e.linkClass)===-1||(a=!1)}function _(){a=!0}function v(){return a}function y(t){let n=x();return(document?.getElementById(t)).offsetTop>n.offsetHeight-n.clientHeight*1.4-e.bottomModeThreshold}function b(){let t=x(),n=t.scrollHeight>t.clientHeight,r=S()+t.clientHeight>t.offsetHeight-e.bottomModeThreshold;return n&&r}function x(){let t;return t=e.scrollContainer&&document.querySelector(e.scrollContainer)?document.querySelector(e.scrollContainer):document.documentElement||r,t}function S(){return x()?.scrollTop||0}function C(t,r=S()){let i;return n.call(t,(n,a)=>{if(f(n)>r+e.headingsOffset+10)return i=t[a===0?a:a-1],!0;if(a===t.length-1)return i=t[t.length-1],!0}),i}function w(e){let t=S(),n=C(e,t),r=b();if((!n||t<5)&&!r)window.location.hash===`#`||window.location.hash===``||window.history.pushState(null,null,`#`);else if(n&&!r){let e=`#${n.id}`;window.location.hash!==e&&window.history.pushState(null,null,e)}}return{enableTocAnimation:_,disableTocAnimation:g,render:c,updateToc:m,getCurrentlyHighlighting:v,getTopHeader:C,getScrollTop:S,updateUrlHashForHeader:w}}var J3={tocSelector:`.js-toc`,tocElement:null,contentSelector:`.js-toc-content`,contentElement:null,headingSelector:`h1, h2, h3`,ignoreSelector:`.js-toc-ignore`,hasInnerContainers:!1,linkClass:`toc-link`,extraLinkClasses:``,activeLinkClass:`is-active-link`,listClass:`toc-list`,extraListClasses:``,isCollapsedClass:`is-collapsed`,collapsibleClass:`is-collapsible`,listItemClass:`toc-list-item`,activeListItemClass:`is-active-li`,collapseDepth:0,scrollSmooth:!0,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(e){},headingsOffset:1,enableUrlHashUpdateOnScroll:!1,scrollHandlerType:`auto`,scrollHandlerTimeout:50,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:`is-position-fixed`,fixedSidebarOffset:`auto`,includeHtml:!1,includeTitleTags:!1,onClick:function(e){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:``,disableTocScrollSync:!1,tocScrollingWrapper:null,tocScrollOffset:30,bottomModeThreshold:30};function Y3(e){let t=[].reduce;function n(e){return e[e.length-1]}function r(e){return+e.nodeName.toUpperCase().replace(`H`,``)}function i(e){try{return e instanceof window.HTMLElement||e instanceof window.parent.HTMLElement}catch{return e instanceof window.HTMLElement}}function a(t){if(!i(t))return t;if(e.ignoreHiddenElements&&(!t.offsetHeight||!t.offsetParent))return null;let n=t.getAttribute(`data-heading-label`)||(e.headingLabelCallback?String(e.headingLabelCallback(t.innerText)):(t.innerText||t.textContent).trim()),a={id:t.id,children:[],nodeName:t.nodeName,headingLevel:r(t),textContent:n};return e.includeHtml&&(a.childNodes=t.childNodes),e.headingObjectCallback?e.headingObjectCallback(a,t):a}function o(t,r){let i=a(t),o=i.headingLevel,s=r,c=n(s),l=o-(c?c.headingLevel:0);for(;l>0&&(c=n(s),!(c&&o===c.headingLevel));)c&&c.children!==void 0&&(s=c.children),l--;return o>=e.collapseDepth&&(i.isCollapsed=!0),s.push(i),s}function s(t,n){let r=n;e.ignoreSelector&&(r=n.split(`,`).map(function(t){return`${t.trim()}:not(${e.ignoreSelector})`}));try{return t.querySelectorAll(r)}catch{return console.warn(`Headers not found with selector: ${r}`),null}}function c(e){return t.call(e,function(e,t){let n=a(t);return n&&o(n,e.nest),e},{nest:[]})}return{nestHeadingsArray:c,selectHeadings:s}}function X3(e){var t=e.duration,n=e.offset;if(typeof window>`u`||typeof location>`u`)return;var r=location.hash?o(location.href):location.href;i();function i(){document.body.addEventListener(`click`,r,!1);function r(r){!a(r.target)||r.target.className.indexOf(`no-smooth-scroll`)>-1||r.target.href.charAt(r.target.href.length-2)===`#`&&r.target.href.charAt(r.target.href.length-1)===`!`||r.target.className.indexOf(e.linkClass)===-1||Z3(r.target.hash,{duration:t,offset:n,callback:function(){s(r.target.hash)}})}}function a(e){return e.tagName.toLowerCase()===`a`&&(e.hash.length>0||e.href.charAt(e.href.length-1)===`#`)&&(o(e.href)===r||o(e.href)+`#`===r)}function o(e){return e.slice(0,e.lastIndexOf(`#`))}function s(e){var t=document.getElementById(e.substring(1));t&&(/^(?:a|select|input|button|textarea)$/i.test(t.tagName)||(t.tabIndex=-1),t.focus())}}function Z3(e,t){var n=window.pageYOffset,r={duration:t.duration,offset:t.offset||0,callback:t.callback,easing:t.easing||d},i=document.querySelector(`[id="`+decodeURI(e).split(`#`).join(``)+`"]`)||document.querySelector(`[id="`+e.split(`#`).join(``)+`"]`),a=typeof e==`string`?r.offset+(e?i&&i.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):e,o=typeof r.duration==`function`?r.duration(a):r.duration,s,c;requestAnimationFrame(function(e){s=e,l(e)});function l(e){c=e-s,window.scrollTo(0,r.easing(c,n,a,o)),c<o?requestAnimationFrame(l):u()}function u(){window.scrollTo(0,n+a),typeof r.callback==`function`&&r.callback()}function d(e,t,n,r){return e/=r/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)}}function Q3(e){let t=e.tocScrollingWrapper||e.tocElement||document.querySelector(e.tocSelector);if(t&&t.scrollHeight>t.clientHeight){let n=t.querySelector(`.${e.activeListItemClass}`);if(n){let r=n.offsetTop-e.tocScrollOffset;t.scrollTop=r>0?r:0}}}var $3={},e6,t6,n6,r6,i6;function a6(e){let t=!1;$3=l6(J3,e||{}),$3.scrollSmooth&&($3.duration=$3.scrollSmoothDuration,$3.offset=$3.scrollSmoothOffset,X3($3)),e6=q3($3),t6=Y3($3),o6();let n=p6($3);if(n===null)return;let r=m6($3);if(r===null||(n6=t6.selectHeadings(n,$3.headingSelector),n6===null))return;let i=t6.nestHeadingsArray(n6).nest;if(!$3.skipRendering)e6.render(r,i);else return this;let a=!1;r6=((e,t)=>f6(e,t,$3.scrollHandlerType))(e=>{e6.updateToc(n6,e),!$3.disableTocScrollSync&&!a&&Q3($3),$3.enableUrlHashUpdateOnScroll&&t&&e6.getCurrentlyHighlighting()&&e6.updateUrlHashForHeader(n6);let n=e?.target?.scrollingElement?.scrollTop===0;(e&&(e.eventPhase===0||e.currentTarget===null)||n)&&(e6.updateToc(n6),$3.scrollEndCallback?.(e))},$3.scrollHandlerTimeout||$3.throttleTimeout),t||=(r6(),!0),window.onhashchange=window.onscrollend=e=>{r6(e)},$3.scrollContainer&&document.querySelector($3.scrollContainer)?(document.querySelector($3.scrollContainer).addEventListener(`scroll`,r6,!1),document.querySelector($3.scrollContainer).addEventListener(`resize`,r6,!1)):(document.addEventListener(`scroll`,r6,!1),document.addEventListener(`resize`,r6,!1));let o=null;i6=u6(e=>{a=!0,$3.scrollSmooth&&e6.disableTocAnimation(e),e6.updateToc(n6,e),o&&clearTimeout(o),o=setTimeout(()=>{e6.enableTocAnimation()},$3.scrollSmoothDuration),setTimeout(()=>{a=!1},$3.scrollSmoothDuration+100)},$3.throttleTimeout),$3.scrollContainer&&document.querySelector($3.scrollContainer)?document.querySelector($3.scrollContainer).addEventListener(`click`,i6,!1):document.addEventListener(`click`,i6,!1)}function o6(){let e=m6($3);e!==null&&($3.skipRendering||e&&(e.innerHTML=``),$3.scrollContainer&&document.querySelector($3.scrollContainer)?(document.querySelector($3.scrollContainer).removeEventListener(`scroll`,r6,!1),document.querySelector($3.scrollContainer).removeEventListener(`resize`,r6,!1),e6&&document.querySelector($3.scrollContainer).removeEventListener(`click`,i6,!1)):(document.removeEventListener(`scroll`,r6,!1),document.removeEventListener(`resize`,r6,!1),e6&&document.removeEventListener(`click`,i6,!1)))}function s6(e){o6(),a6(e||$3)}var c6=Object.prototype.hasOwnProperty;function l6(...e){let t={};for(let n=0;n<e.length;n++){let r=e[n];for(let e in r)c6.call(r,e)&&(t[e]=r[e])}return t}function u6(e,t,n){t||=250;let r,i;return function(...a){let o=n||this,s=+new Date;r&&s<r+t?(clearTimeout(i),i=setTimeout(()=>{r=s,e.apply(o,a)},t)):(r=s,e.apply(o,a))}}function d6(e,t){let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>e.apply(this,r),t)}}function f6(e,t,n=`auto`){switch(n){case`debounce`:return d6(e,t);case`throttle`:return u6(e,t);default:return t<334?d6(e,t):u6(e,t)}}function p6(e){try{return e.contentElement||document.querySelector(e.contentSelector)}catch{return console.warn(`Contents element not found: ${e.contentSelector}`),null}}function m6(e){try{return e.tocElement||document.querySelector(e.tocSelector)}catch{return console.warn(`TOC element not found: ${e.tocSelector}`),null}}var h6={destroy:o6,init:a6,refresh:s6},g6=I.aside(()=>({width:`10rem`,"@media (max-width: 768px)":{display:`none`}})),_6=I.nav(({theme:e})=>({position:`fixed`,bottom:0,top:0,width:`10rem`,paddingTop:`4rem`,paddingBottom:`2rem`,overflowY:`auto`,fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,WebkitFontSmoothing:`antialiased`,MozOsxFontSmoothing:`grayscale`,WebkitTapHighlightColor:`rgba(0, 0, 0, 0)`,WebkitOverflowScrolling:`touch`,"& *":{boxSizing:`border-box`},"& > .toc-wrapper > .toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`}}},"& .toc-list-item":{position:`relative`,listStyleType:`none`,marginLeft:20,paddingTop:3,paddingBottom:3},"& .toc-list-item::before":{content:`""`,position:`absolute`,height:`100%`,top:0,left:0,transform:`translateX(calc(-2px - 20px))`,borderLeft:`solid 2px ${e.color.mediumdark}`,opacity:0,transition:`opacity 0.2s`},"& .toc-list-item.is-active-li::before":{opacity:1},"& .toc-list-item > a":{color:e.color.defaultText,textDecoration:`none`},"& .toc-list-item.is-active-li > a":{fontWeight:600,color:e.color.secondary,textDecoration:`none`}})),v6=I.p(({theme:e})=>({fontWeight:600,fontSize:`0.875em`,color:e.color.defaultText,textTransform:`uppercase`,marginBottom:10})),y6=({headingId:e,title:t})=>typeof t==`string`||!t?Q.createElement(v6,{as:`h2`,id:e,className:t?``:`sb-sr-only`},t||`Table of contents`):Q.createElement(`div`,{id:e},t),b6=({title:e,disable:t,headingSelector:n,contentsSelector:r,ignoreSelector:i,unsafeTocbotOptions:a,channel:o,className:s})=>{(0,Q.useEffect)(()=>{if(t)return()=>{};let e={tocSelector:`.toc-wrapper`,contentSelector:r??`.sbdocs-content`,headingSelector:n??`h3`,ignoreSelector:i??`.docs-story *, .skip-toc`,headingsOffset:40,scrollSmoothOffset:-40,orderedList:!1,onClick:e=>{if(e.preventDefault(),e.currentTarget instanceof HTMLAnchorElement){let[,t]=e.currentTarget.href.split(`#`);t&&o.emit(K3,`#${t}`)}},...a},s=setTimeout(()=>h6.init(e),100);return()=>{clearTimeout(s),h6.destroy()}},[o,t,i,r,n,a]);let c=`table-of-contents`;return Q.createElement(g6,{className:s},t?null:Q.createElement(_6,{"aria-labelledby":c},Q.createElement(y6,{headingId:c,title:e}),Q.createElement(`div`,{className:`toc-wrapper`})))},x6=e=>`anchor--${e}`,S6=({storyId:e,children:t})=>Q.createElement(`div`,{id:x6(e),className:`sb-anchor`},t),{filterArgTypes:C6}=__STORYBOOK_MODULE_PREVIEW_API__,w6=(e,t)=>(0,Q.useContext)(h3).resolveOf(e,t),T6=e=>e.split(`-`).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(``),E6=e=>{if(e)return typeof e==`string`?e.includes(`-`)?T6(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function D6(e,t=`start`){e.scrollIntoView({behavior:`smooth`,block:t,inline:`nearest`})}var O6=Object.create,k6=Object.defineProperty,A6=Object.getOwnPropertyDescriptor,j6=Object.getOwnPropertyNames,M6=Object.getPrototypeOf,N6=Object.prototype.hasOwnProperty,P6=(e,t)=>function(){return t||(0,e[j6(e)[0]])((t={exports:{}}).exports,t),t.exports},F6=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of j6(t))!N6.call(e,i)&&i!==n&&k6(e,i,{get:()=>t[i],enumerable:!(r=A6(t,i))||r.enumerable});return e},I6=(e,t,n)=>(n=e==null?{}:O6(M6(e)),F6(t||!e||!e.__esModule?k6(n,`default`,{value:e,enumerable:!0}):n,e)),L6=[`bubbles`,`cancelBubble`,`cancelable`,`composed`,`currentTarget`,`defaultPrevented`,`eventPhase`,`isTrusted`,`returnValue`,`srcElement`,`target`,`timeStamp`,`type`],R6=[`detail`];function z6(e){let t=L6.filter(t=>e[t]!==void 0).reduce((t,n)=>(t[n]=e[n],t),{});if(e instanceof CustomEvent)for(let n of R6.filter(t=>e[t]!==void 0))t[n]=e[n];return t}var B6=P6({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),V6=P6({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),H6=P6({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),U6=P6({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),W6=P6({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),G6=P6({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),K6=P6({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),q6=P6({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),J6=P6({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),Y6=P6({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),X6=P6({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),Z6=P6({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),Q6=P6({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),$6=P6({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),e8=P6({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(e,t){t.exports=Number.isNaN||function(e){return e!==e}}}),t8=P6({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var n=e8();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}}}),n8=P6({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),r8=P6({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var n=n8();if(n)try{n([],`length`)}catch{n=null}t.exports=n}}),i8=P6({"node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(e,t){var n=Object.defineProperty||!1;if(n)try{n({},`a`,{value:1})}catch{n=!1}t.exports=n}}),a8=P6({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if(typeof Symbol!=`function`||typeof Object.getOwnPropertySymbols!=`function`)return!1;if(typeof Symbol.iterator==`symbol`)return!0;var e={},t=Symbol(`test`),n=Object(t);if(typeof t==`string`||Object.prototype.toString.call(t)!==`[object Symbol]`||Object.prototype.toString.call(n)!==`[object Symbol]`)return!1;var r=42;for(var i in e[t]=r,e)return!1;if(typeof Object.keys==`function`&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0}}}),o8=P6({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var n=typeof Symbol<`u`&&Symbol,r=a8();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}}}),s8=P6({"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}}),c8=P6({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){t.exports=B6().getPrototypeOf||null}}),l8=P6({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(e,t){var n=`Function.prototype.bind called on incompatible `,r=Object.prototype.toString,i=Math.max,a=`[object Function]`,o=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},s=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},c=function(e,t){for(var n=``,r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};t.exports=function(e){var t=this;if(typeof t!=`function`||r.apply(t)!==a)throw TypeError(n+t);for(var l=s(arguments,1),u,d=function(){if(this instanceof u){var n=t.apply(this,o(l,arguments));return Object(n)===n?n:this}return t.apply(e,o(l,arguments))},f=i(0,t.length-l.length),p=[],m=0;m<f;m++)p[m]=`$`+m;if(u=Function(`binder`,`return function (`+c(p,`,`)+`){ return binder.apply(this,arguments); }`)(d),t.prototype){var h=function(){};h.prototype=t.prototype,u.prototype=new h,h.prototype=null}return u}}}),u8=P6({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var n=l8();t.exports=Function.prototype.bind||n}}),d8=P6({"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}}),f8=P6({"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}}),p8=P6({"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}}),m8=P6({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var n=u8(),r=f8(),i=d8();t.exports=p8()||n.call(i,r)}}),h8=P6({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var n=u8(),r=K6(),i=d8(),a=m8();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}}}),g8=P6({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var n=h8(),r=r8(),i;try{i=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var a=!!i&&r&&r(Object.prototype,`__proto__`),o=Object,s=o.getPrototypeOf;t.exports=a&&typeof a.get==`function`?n([a.get]):typeof s==`function`?(function(e){return s(e==null?e:o(e))}):!1}}),_8=P6({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var n=s8(),r=c8(),i=g8();t.exports=n?function(e){return n(e)}:r?function(e){if(!e||typeof e!=`object`&&typeof e!=`function`)throw TypeError(`getProto: not an object`);return r(e)}:i?function(e){return i(e)}:null}}),v8=P6({"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e,t){var n=Function.prototype.call,r=Object.prototype.hasOwnProperty;t.exports=u8().call(n,r)}}),y8=P6({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var n,r=B6(),i=V6(),a=H6(),o=U6(),s=W6(),c=G6(),l=K6(),u=q6(),d=J6(),f=Y6(),p=X6(),m=Z6(),h=Q6(),g=$6(),_=t8(),v=Function,y=function(e){try{return v(`"use strict"; return (`+e+`).constructor;`)()}catch{}},b=r8(),x=i8(),S=function(){throw new l},C=b?(function(){try{return arguments.callee,S}catch{try{return b(arguments,`callee`).get}catch{return S}}})():S,w=o8()(),T=_8(),E=c8(),D=s8(),O=f8(),k=d8(),A={},j=typeof Uint8Array>`u`||!T?n:T(Uint8Array),M={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?n:ArrayBuffer,"%ArrayIteratorPrototype%":w&&T?T([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":A,"%AsyncGenerator%":A,"%AsyncGeneratorFunction%":A,"%AsyncIteratorPrototype%":A,"%Atomics%":typeof Atomics>`u`?n:Atomics,"%BigInt%":typeof BigInt>`u`?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>`u`?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>`u`?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>`u`?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>`u`?n:Float16Array,"%Float32Array%":typeof Float32Array>`u`?n:Float32Array,"%Float64Array%":typeof Float64Array>`u`?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>`u`?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":A,"%Int8Array%":typeof Int8Array>`u`?n:Int8Array,"%Int16Array%":typeof Int16Array>`u`?n:Int16Array,"%Int32Array%":typeof Int32Array>`u`?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&T?T(T([][Symbol.iterator]())):n,"%JSON%":typeof JSON==`object`?JSON:n,"%Map%":typeof Map>`u`?n:Map,"%MapIteratorPrototype%":typeof Map>`u`||!w||!T?n:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?n:Promise,"%Proxy%":typeof Proxy>`u`?n:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":typeof Reflect>`u`?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?n:Set,"%SetIteratorPrototype%":typeof Set>`u`||!w||!T?n:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&T?T(``[Symbol.iterator]()):n,"%Symbol%":w?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":C,"%TypedArray%":j,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>`u`?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>`u`?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>`u`?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>`u`?n:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>`u`?n:WeakMap,"%WeakRef%":typeof WeakRef>`u`?n:WeakRef,"%WeakSet%":typeof WeakSet>`u`?n:WeakSet,"%Function.prototype.call%":k,"%Function.prototype.apply%":O,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":E,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":h,"%Math.round%":g,"%Math.sign%":_,"%Reflect.getPrototypeOf%":D};if(T)try{null.error}catch(e){ee=T(T(e)),M[`%Error.prototype%`]=ee}var ee,N=function e(t){var n;if(t===`%AsyncFunction%`)n=y(`async function () {}`);else if(t===`%GeneratorFunction%`)n=y(`function* () {}`);else if(t===`%AsyncGeneratorFunction%`)n=y(`async function* () {}`);else if(t===`%AsyncGenerator%`){var r=e(`%AsyncGeneratorFunction%`);r&&(n=r.prototype)}else if(t===`%AsyncIteratorPrototype%`){var i=e(`%AsyncGenerator%`);i&&T&&(n=T(i.prototype))}return M[t]=n,n},te={__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`]},ne=u8(),re=v8(),P=ne.call(k,Array.prototype.concat),ie=ne.call(O,Array.prototype.splice),ae=ne.call(k,String.prototype.replace),oe=ne.call(k,String.prototype.slice),F=ne.call(k,RegExp.prototype.exec),se=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ce=/\\(\\)?/g,le=function(e){var t=oe(e,0,1),n=oe(e,-1);if(t===`%`&&n!==`%`)throw new c("invalid intrinsic syntax, expected closing `%`");if(n===`%`&&t!==`%`)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return ae(e,se,function(e,t,n,i){r[r.length]=n?ae(i,ce,`$1`):t||e}),r},ue=function(e,t){var n=e,r;if(re(te,n)&&(r=te[n],n=`%`+r[0]+`%`),re(M,n)){var i=M[n];if(i===A&&(i=N(n)),typeof i>`u`&&!t)throw new l(`intrinsic `+e+` exists, but is not available. Please file an issue!`);return{alias:r,name:n,value:i}}throw new c(`intrinsic `+e+` does not exist!`)};t.exports=function(e,t){if(typeof e!=`string`||e.length===0)throw new l(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof t!=`boolean`)throw new l(`"allowMissing" argument must be a boolean`);if(F(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=le(e),r=n.length>0?n[0]:``,i=ue(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,u=i.alias;u&&(r=u[0],ie(n,P([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=oe(p,0,1),h=oe(p,-1);if((m===`"`||m===`'`||m==="`"||h===`"`||h===`'`||h==="`")&&m!==h)throw new c(`property names with quotes must have matching quotes`);if((p===`constructor`||!f)&&(s=!0),r+=`.`+p,a=`%`+r+`%`,re(M,a))o=M[a];else if(o!=null){if(!(p in o)){if(!t)throw new l(`base intrinsic for `+e+` exists, but the property is not available.`);return}if(b&&d+1>=n.length){var g=b(o,p);f=!!g,o=f&&`get`in g&&!(`originalValue`in g.get)?g.get:o[p]}else f=re(o,p),o=o[p];f&&!s&&(M[a]=o)}}return o}}}),b8=P6({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var n=y8(),r=h8(),i=r([n(`%String.prototype.indexOf%`)]);t.exports=function(e,t){var a=n(e,!!t);return typeof a==`function`&&i(e,`.prototype.`)>-1?r([a]):a}}}),x8=P6({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var n=a8();t.exports=function(){return n()&&!!Symbol.toStringTag}}}),S8=P6({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var n=b8(),r=x8()(),i=v8(),a=r8(),o;r?(s=n(`RegExp.prototype.exec`),c={},l=function(){throw c},u={toString:l,valueOf:l},typeof Symbol.toPrimitive==`symbol`&&(u[Symbol.toPrimitive]=l),o=function(e){if(!e||typeof e!=`object`)return!1;var t=a(e,`lastIndex`);if(!(t&&i(t,`value`)))return!1;try{s(e,u)}catch(e){return e===c}}):(d=n(`Object.prototype.toString`),f=`[object RegExp]`,o=function(e){return!e||typeof e!=`object`&&typeof e!=`function`?!1:d(e)===f});var s,c,l,u,d,f;t.exports=o}}),C8=P6({"node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js"(e,t){t.exports=r;var n=Object.prototype.toString;function r(e){if(!e)return!1;var t=n.call(e);return t===`[object Function]`||typeof e==`function`&&t!==`[object RegExp]`||typeof window<`u`&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)}}}),w8=P6({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var n=b8(),r=S8(),i=n(`RegExp.prototype.exec`),a=K6();t.exports=function(e){if(!r(e))throw new a("`regex` must be a RegExp");return function(t){return i(e,t)!==null}}}}),T8=P6({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var n=b8(),r=n(`Object.prototype.toString`),i=o8()(),a=w8();i?(o=n(`Symbol.prototype.toString`),s=a(/^Symbol\(.*\)$/),c=function(e){return typeof e.valueOf()==`symbol`?s(o(e)):!1},t.exports=function(e){if(typeof e==`symbol`)return!0;if(!e||typeof e!=`object`||r(e)!==`[object Symbol]`)return!1;try{return c(e)}catch{return!1}}):t.exports=function(e){return!1};var o,s,c}}),E8=I6(S8()),D8=I6(C8()),O8=I6(T8());function k8(e){return typeof e==`object`&&!!e&&Array.isArray(e)===!1}var A8=typeof global==`object`&&global&&global.Object===Object&&global,j8=typeof self==`object`&&self&&self.Object===Object&&self,M8=A8||j8||Function(`return this`)(),N8=M8.Symbol,P8=Object.prototype,F8=P8.hasOwnProperty,I8=P8.toString,L8=N8?N8.toStringTag:void 0;function R8(e){var t=F8.call(e,L8),n=e[L8];try{e[L8]=void 0;var r=!0}catch{}var i=I8.call(e);return r&&(t?e[L8]=n:delete e[L8]),i}var z8=R8,B8=Object.prototype.toString;function V8(e){return B8.call(e)}var H8=V8,U8=`[object Null]`,W8=`[object Undefined]`,G8=N8?N8.toStringTag:void 0;function K8(e){return e==null?e===void 0?W8:U8:G8&&G8 in Object(e)?z8(e):H8(e)}var q8=K8,J8=N8?N8.prototype:void 0;J8&&J8.toString;function Y8(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}var X8=Y8,Z8=`[object AsyncFunction]`,Q8=`[object Function]`,$8=`[object GeneratorFunction]`,e5=`[object Proxy]`;function t5(e){if(!X8(e))return!1;var t=q8(e);return t==Q8||t==$8||t==Z8||t==e5}var n5=t5,r5=M8[`__core-js_shared__`],i5=(function(){var e=/[^.]+$/.exec(r5&&r5.keys&&r5.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``})();function a5(e){return!!i5&&i5 in e}var o5=a5,s5=Function.prototype.toString;function c5(e){if(e!=null){try{return s5.call(e)}catch{}try{return e+``}catch{}}return``}var l5=c5,u5=/[\\^$.*+?()[\]{}|]/g,d5=/^\[object .+?Constructor\]$/,f5=Function.prototype,p5=Object.prototype,m5=f5.toString,h5=p5.hasOwnProperty,g5=RegExp(`^`+m5.call(h5).replace(u5,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function _5(e){return!X8(e)||o5(e)?!1:(n5(e)?g5:d5).test(l5(e))}var v5=_5;function y5(e,t){return e?.[t]}var b5=y5;function x5(e,t){var n=b5(e,t);return v5(n)?n:void 0}var S5=x5;function C5(e,t){return e===t||e!==e&&t!==t}var w5=C5,T5=S5(Object,`create`);function E5(){this.__data__=T5?T5(null):{},this.size=0}var D5=E5;function O5(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var k5=O5,A5=`__lodash_hash_undefined__`,j5=Object.prototype.hasOwnProperty;function M5(e){var t=this.__data__;if(T5){var n=t[e];return n===A5?void 0:n}return j5.call(t,e)?t[e]:void 0}var N5=M5,P5=Object.prototype.hasOwnProperty;function F5(e){var t=this.__data__;return T5?t[e]!==void 0:P5.call(t,e)}var I5=F5,L5=`__lodash_hash_undefined__`;function R5(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=T5&&t===void 0?L5:t,this}var z5=R5;function B5(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}B5.prototype.clear=D5,B5.prototype.delete=k5,B5.prototype.get=N5,B5.prototype.has=I5,B5.prototype.set=z5;var V5=B5;function H5(){this.__data__=[],this.size=0}var U5=H5;function W5(e,t){for(var n=e.length;n--;)if(w5(e[n][0],t))return n;return-1}var G5=W5,K5=Array.prototype.splice;function q5(e){var t=this.__data__,n=G5(t,e);return n<0?!1:(n==t.length-1?t.pop():K5.call(t,n,1),--this.size,!0)}var J5=q5;function Y5(e){var t=this.__data__,n=G5(t,e);return n<0?void 0:t[n][1]}var X5=Y5;function Z5(e){return G5(this.__data__,e)>-1}var Q5=Z5;function $5(e,t){var n=this.__data__,r=G5(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var e7=$5;function t7(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}t7.prototype.clear=U5,t7.prototype.delete=J5,t7.prototype.get=X5,t7.prototype.has=Q5,t7.prototype.set=e7;var n7=t7,r7=S5(M8,`Map`);function i7(){this.size=0,this.__data__={hash:new V5,map:new(r7||n7),string:new V5}}var a7=i7;function o7(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}var s7=o7;function c7(e,t){var n=e.__data__;return s7(t)?n[typeof t==`string`?`string`:`hash`]:n.map}var l7=c7;function u7(e){var t=l7(this,e).delete(e);return this.size-=t?1:0,t}var d7=u7;function f7(e){return l7(this,e).get(e)}var p7=f7;function m7(e){return l7(this,e).has(e)}var h7=m7;function g7(e,t){var n=l7(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var _7=g7;function v7(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}v7.prototype.clear=a7,v7.prototype.delete=d7,v7.prototype.get=p7,v7.prototype.has=h7,v7.prototype.set=_7;var y7=v7,b7=`Expected a function`;function x7(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(b7);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(x7.Cache||y7),n}x7.Cache=y7;var S7=x7,C7=500;function w7(e){var t=S7(e,function(e){return n.size===C7&&n.clear(),e}),n=t.cache;return t}var T7=w7,E7=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,D7=/\\(\\)?/g;T7(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(E7,function(e,n,r,i){t.push(r?i.replace(D7,`$1`):n||e)}),t});var O7=k8,k7=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/;function A7(e){if(!O7(e))return e;let t=e,n=!1;return typeof Event<`u`&&e instanceof Event&&(t=z6(t),n=!0),t=Object.keys(t).reduce((e,r)=>{try{t[r]&&t[r].toJSON,e[r]=t[r]}catch{n=!0}return e},{}),n?t:e}var j7=function(e){let t,n,r,i;return function(a,o){try{if(a===``)return i=[],t=new Map([[o,`[]`]]),n=new Map,r=[],o;let s=n.get(this)||this;for(;r.length&&s!==r[0];)r.shift(),i.pop();if(typeof o==`boolean`)return o;if(o===void 0)return e.allowUndefined?`_undefined_`:void 0;if(o===null)return null;if(typeof o==`number`)return o===-1/0?`_-Infinity_`:o===1/0?`_Infinity_`:Number.isNaN(o)?`_NaN_`:o;if(typeof o==`bigint`)return`_bigint_${o.toString()}`;if(typeof o==`string`)return k7.test(o)?e.allowDate?`_date_${o}`:void 0:o;if((0,E8.default)(o))return e.allowRegExp?`_regexp_${o.flags}|${o.source}`:void 0;if((0,D8.default)(o))return;if((0,O8.default)(o)){if(!e.allowSymbol)return;let t=Symbol.keyFor(o);return t===void 0?`_symbol_${o.toString().slice(7,-1)}`:`_gsymbol_${t}`}if(r.length>=e.maxDepth)return Array.isArray(o)?`[Array(${o.length})]`:`[Object]`;if(o===this)return`_duplicate_${JSON.stringify(i)}`;if(o instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...o.cause?{cause:o.cause}:{},...o,name:o.name,message:o.message,stack:o.stack,"_constructor-name_":o.constructor.name}};if(o?.constructor?.name&&o.constructor.name!==`Object`&&!Array.isArray(o)){let e=t.get(o);if(!e){let e={__isClassInstance__:!0,__className__:o.constructor.name,...Object.getOwnPropertyNames(o).reduce((e,t)=>{try{e[t]=o[t]}catch{}return e},{})};return i.push(a),r.unshift(e),t.set(o,JSON.stringify(i)),o!==e&&n.set(o,e),e}return`_duplicate_${e}`}let c=t.get(o);if(!c){let e=Array.isArray(o)?o:A7(o);return i.push(a),r.unshift(e),t.set(o,JSON.stringify(i)),o!==e&&n.set(o,e),e}return`_duplicate_${c}`}catch{return}}},M7={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},N7=(e,t={})=>{let n={...M7,...t};return JSON.stringify(A7(e),j7(n),t.space)};function P7(e){return N7(e,{maxDepth:50})}var F7=(0,Q.createContext)({sources:{}}),I7=`--unknown--`,L7=({children:e,channel:t})=>{let[n,r]=(0,Q.useState)({});return(0,Q.useEffect)(()=>{let e=(e,t=null,n=!1)=>{let{id:i,args:a=void 0,source:o,format:s}=typeof e==`string`?{id:e,source:t,format:n}:e,c=a?P7(a):I7;r(e=>({...e,[i]:{...e[i],[c]:{code:o||``,format:s}}}))};return t.on(u,e),()=>t.off(u,e)},[]),Q.createElement(F7.Provider,{value:{sources:n}},e)};function R7(e,t,n){let[r,i]=(0,Q.useState)(`Transforming...`),a=t?t?.(e,n):e;return(0,Q.useEffect)(()=>{async function e(){let e=await a;e!==r&&i(e)}e()}),typeof a==`object`&&typeof a.then==`function`?r:a}var z7=(e,t,n)=>{let{sources:r}=n,i=r?.[e];return i?.[P7(t)]||i?.[`--unknown--`]||{code:``}},B7=({snippet:e,storyContext:t,typeFromProps:n,transformFromProps:r})=>{let i=t.parameters??{},{__isArgsStory:a}=i,o=i.docs?.source||{},s=n||o.type||h.AUTO,c=s===h.DYNAMIC||s===h.AUTO&&e&&a?e:o.originalSource||``,l=r??o.transform,u=l?R7(c,l,t):c;return o.code===void 0?u:o.code},V7=(e,t,n)=>{let{of:r}=e,i=(0,Q.useMemo)(()=>{if(r)return t.resolveOf(r,[`story`]).story;try{return t.storyById()}catch{}},[t,r]),a=i?t.getStoryContext(i):{},o=e.__forceInitialArgs?a.initialArgs:a.unmappedArgs,s=i?z7(i.id,o,n):null,c=B7({snippet:s?s.code:``,storyContext:{...a,args:o},typeFromProps:e.type,transformFromProps:e.transform});if(`of`in e&&r===void 0)throw Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let l=i?.parameters?.docs?.source||{},u=e.format,d=e.language??l.language??`jsx`,f=e.dark??l.dark??!1;return!e.code&&!i?{error:`Oh no! The source is not available.`}:e.code?{code:e.code,format:u,language:d,dark:f}:(u=s?.format??!0,{code:c,format:u,language:d,dark:f})},H7=e=>{let t=(0,Q.useContext)(h3),n=(0,Q.useContext)(F7),{of:r,source:i}=e;if(`of`in e&&r===void 0)throw Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{story:a}=w6(r||`story`,[`story`]),o=V7({...i,...r&&{of:r}},t,n),s=e.layout??a.parameters.layout??a.parameters.docs?.canvas?.layout??`padded`,c=e.withToolbar??a.parameters.docs?.canvas?.withToolbar??!1,l=e.additionalActions??a.parameters.docs?.canvas?.additionalActions,u=e.sourceState??a.parameters.docs?.canvas?.sourceState??`hidden`,d=e.className??a.parameters.docs?.canvas?.className,f=e.story?.inline??a.parameters?.docs?.story?.inline??!1;return Q.createElement(U3,{withSource:u===`none`?void 0:o,isExpanded:u===`shown`,withToolbar:c,additionalActions:l,className:d,layout:s,inline:f},Q.createElement(b3,{of:r||a.moduleExport,meta:e.meta,...e.story}))},{filterArgTypes:U7}=__STORYBOOK_MODULE_PREVIEW_API__,{RESET_STORY_ARGS:W7,STORY_ARGS_UPDATED:G7,UPDATE_STORY_ARGS:K7}=__STORYBOOK_MODULE_CORE_EVENTS__,q7=(e,t)=>{let n=J7(e,t);if(!n)throw Error(`No result when story was defined`);return n},J7=(e,t)=>{let n=e?t.getStoryContext(e):{args:{}},{id:r}=e||{id:`none`},[i,a]=(0,Q.useState)(n.args);(0,Q.useEffect)(()=>{let e=e=>{e.storyId===r&&a(e.args)};return t.channel.on(G7,e),()=>t.channel.off(G7,e)},[r,t.channel]);let o=(0,Q.useCallback)(e=>t.channel.emit(K7,{storyId:r,updatedArgs:e}),[r,t.channel]),s=(0,Q.useCallback)(e=>t.channel.emit(W7,{storyId:r,argNames:e}),[r,t.channel]);return e&&[i,o,s]},{GLOBALS_UPDATED:Y7}=__STORYBOOK_MODULE_CORE_EVENTS__,X7=(e,t)=>{let[n,r]=(0,Q.useState)(t.getStoryContext(e).globals);return(0,Q.useEffect)(()=>{let e=e=>{r(e.globals)};return t.channel.on(Y7,e),()=>t.channel.off(Y7,e)},[t.channel]),[n]},{Tag:Z7}=__STORYBOOK_MODULE_PREVIEW_API__,Q7=()=>(0,Q.useContext)(h3).componentStories().find(e=>e.tags.includes(Z7.AUTODOCS));function $7(e,t){let{extractArgTypes:n}=t.docs||{};if(!n)throw Error(`Args unsupported. See Args documentation for your framework.`);return n(e)}var e9=e=>{let{of:t}=e,n=(0,Q.useContext)(h3),r=Q7(),i=t?n.resolveOf(t,[`story`]).story:r;if(!i)return null;let{parameters:a,argTypes:o,component:s,subcomponents:c}=i,l=a.docs?.controls||{},u=e.include??l.include,d=e.exclude??l.exclude,f=e.sort??l.sort,[p,m,h]=q7(i,n),[g]=X7(i,n),_=U7(o,u,d);if(!(c&&Object.keys(c||{}).length>0))return Object.keys(_).length>0||Object.keys(p).length>0?Q.createElement(s3,{rows:_,sort:f,args:p,globals:g,updateArgs:m,resetArgs:h}):null;let v=E6(s)||`Story`,y=Object.fromEntries(Object.entries(c||{}).map(([e,t])=>[e,{rows:U7($7(t,a),u,d),sort:f}])),b={[v]:{rows:_,sort:f},...y};return Q.createElement(G3,{tabs:b,sort:f,args:p,globals:g,updateArgs:m,resetArgs:h})},{NAVIGATE_URL:t9}=__STORYBOOK_MODULE_CORE_EVENTS__,{document:n9}=globalThis,r9=({className:e,children:t,...n})=>{if(typeof e!=`string`&&(typeof t!=`string`||!t.match(/[\n\r]/g)))return Q.createElement(ee,null,t);let r=e&&e.split(`-`);return Q.createElement(KQ,{language:r&&r[1]||`text`,format:!1,code:t,...n})};function i9(e,t){e.channel.emit(t9,t)}var a9=oe.a,o9=({hash:e,children:t})=>{let n=(0,Q.useContext)(h3);return Q.createElement(a9,{href:e,target:`_self`,onClick:t=>{let r=e.substring(1);n9.getElementById(r)&&i9(n,e)}},t)},s9=e=>{let{href:t,target:n,children:r,...i}=e,a=(0,Q.useContext)(h3);return!t||n===`_blank`||/^https?:\/\//.test(t)?Q.createElement(a9,{...e}):t.startsWith(`#`)?Q.createElement(o9,{hash:t},r):Q.createElement(a9,{href:t,onClick:e=>{e.button===0&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&(e.preventDefault(),i9(a,e.currentTarget.getAttribute(`href`)||``))},target:n,...i},r)},c9=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],l9=c9.reduce((e,t)=>({...e,[t]:I(t)({"& svg":{position:`relative`,top:`-0.1em`,visibility:`hidden`},"&:hover svg":{visibility:`visible`}})}),{}),u9=I.a(()=>({float:`left`,lineHeight:`inherit`,paddingRight:`10px`,marginLeft:`-24px`,color:`inherit`})),d9=({as:e,id:t,children:n,...r})=>{let i=(0,Q.useContext)(h3),a=l9[e],o=`#${t}`;return Q.createElement(a,{id:t,...r},Q.createElement(u9,{"aria-hidden":`true`,href:o,tabIndex:-1,target:`_self`,onClick:e=>{n9.getElementById(t)&&i9(i,o)}},Q.createElement(p,null)),n)},f9=e=>{let{as:t,id:n,children:r,...i}=e;if(n)return Q.createElement(d9,{as:t,id:n,...i},r);let a=t,{as:o,...s}=e;return Q.createElement(a,{...C(s,t)})},p9=c9.reduce((e,t)=>({...e,[t]:e=>Q.createElement(f9,{as:t,...e})}),{}),m9=e=>{if(!e.children)return null;if(typeof e.children!=`string`)throw Error(RY`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}'
1118
- This is often caused by not wrapping the child in a template string.
1119
-
1120
- This is invalid:
1121
- <Markdown>
1122
- # Some heading
1123
- A paragraph
1124
- </Markdown>
1125
-
1126
- Instead do:
1127
- <Markdown>
1128
- {\`
1129
- # Some heading
1130
- A paragraph
1131
- \`}
1132
- </Markdown>
1133
- `);return Q.createElement(y0,{...e,options:{forceBlock:!0,overrides:{code:r9,a:s9,...p9,...e?.options?.overrides},...e?.options}})},h9=(e=>(e.INFO=`info`,e.NOTES=`notes`,e.DOCGEN=`docgen`,e.AUTO=`auto`,e))(h9||{}),g9=e=>{switch(e.type){case`story`:return e.story.parameters.docs?.description?.story||null;case`meta`:{let{parameters:t,component:n}=e.preparedMeta;return t.docs?.description?.component||t.docs?.extractComponentDescription?.(n,{component:n,parameters:t})||null}case`component`:{let{component:t,projectAnnotations:{parameters:n}}=e;return n?.docs?.extractComponentDescription?.(t,{component:t,parameters:n})||null}default:throw Error(`Unrecognized module type resolved from 'useOf', got: ${e.type}`)}},_9=e=>{let{of:t}=e;if(`of`in e&&t===void 0)throw Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let n=g9(w6(t||`meta`));return n?Q.createElement(m9,null,n):null},{document:v9,window:y9}=globalThis,b9=({context:e,theme:t,children:n})=>{let r;try{r=e.resolveOf(`meta`,[`meta`]).preparedMeta.parameters?.docs?.toc}catch{r=e?.projectAnnotations?.parameters?.docs?.toc}return(0,Q.useEffect)(()=>{let e;try{if(e=new URL(y9.parent.location.toString()),e.hash){let t=v9.getElementById(decodeURIComponent(e.hash.substring(1)));t&&setTimeout(()=>{D6(t)},200)}}catch{}}),Q.createElement(h3.Provider,{value:e},Q.createElement(L7,{channel:e.channel},Q.createElement(he,{theme:me(t)},Q.createElement(m3,{toc:r?Q.createElement(b6,{className:`sbdocs sbdocs-toc--custom`,channel:e.channel,...r}):null},n))))},x9=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,S9=Object.hasOwnProperty,C9=class{constructor(){this.occurrences,this.reset()}slug(e,t){let n=this,r=w9(e,t===!0),i=r;for(;S9.call(n.occurrences,r);)n.occurrences[i]++,r=i+`-`+n.occurrences[i];return n.occurrences[r]=0,r}reset(){this.occurrences=Object.create(null)}};function w9(e,t){return typeof e==`string`?(t||(e=e.toLowerCase()),e.replace(x9,``).replace(/ /g,`-`)):``}var T9=new C9,E9=({children:e,disableAnchor:t,...n})=>{if(t||typeof e!=`string`)return Q.createElement(N,null,e);let r=T9.slug(e.toLowerCase());return Q.createElement(f9,{as:`h2`,id:r,...n},e)},D9=({children:e,disableAnchor:t})=>{if(t||typeof e!=`string`)return Q.createElement(P,null,e);let n=T9.slug(e.toLowerCase());return Q.createElement(f9,{as:`h3`,id:n},e)},O9=({of:e,expanded:t=!0,withToolbar:n=!1,__forceInitialArgs:r=!1,__primary:i=!1})=>{let{story:a}=w6(e||`story`,[`story`]),o=a.parameters.docs?.canvas?.withToolbar??n;return Q.createElement(S6,{storyId:i?`primary--${a.id}`:a.id},t&&Q.createElement(Q.Fragment,null,Q.createElement(D9,null,a.name),Q.createElement(_9,{of:e})),Q.createElement(H7,{of:e,withToolbar:o,story:{__forceInitialArgs:r,__primary:i},source:{__forceInitialArgs:r}}))},k9=()=>{let e=Q7();return e?Q.createElement(O9,{of:e.moduleExport,expanded:!1,__primary:!0,withToolbar:!0}):null},{Tag:A9}=__STORYBOOK_MODULE_PREVIEW_API__,j9=I(E9)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,fontWeight:e.typography.weight.bold,lineHeight:`16px`,letterSpacing:`0.35em`,textTransform:`uppercase`,color:e.textMutedColor,border:0,marginBottom:`12px`,"&:first-of-type":{marginTop:`56px`}})),M9=({title:e=`Stories`,includePrimary:t=!0})=>{let{componentStories:n,projectAnnotations:r,getStoryContext:i}=(0,Q.useContext)(h3),a=n(),{stories:{filter:o}={filter:void 0}}=r.parameters?.docs||{};return o&&(a=a.filter(e=>o(e,i(e)))),a.some(e=>e.tags?.includes(A9.AUTODOCS))&&(a=a.filter(e=>e.tags?.includes(A9.AUTODOCS)&&!e.usesMount)),t||(a=a.slice(1)),!a||a.length===0?null:Q.createElement(Q.Fragment,null,typeof e==`string`?Q.createElement(j9,null,e):e,a.map(e=>e&&Q.createElement(O9,{key:e.id,of:e.moduleExport,expanded:!0,__forceInitialArgs:!0})))},{deprecate:N9}=__STORYBOOK_MODULE_CLIENT_LOGGER__,P9=`https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#subtitle-block-and-parameterscomponentsubtitle`,F9=e=>{let{of:t,children:n}=e;if(`of`in e&&t===void 0)throw Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let r;try{r=w6(t||`meta`,[`meta`]).preparedMeta}catch(e){if(n&&!e.message.includes(`did you forget to use <Meta of={} />?`))throw e}let{componentSubtitle:i,docs:a}=r?.parameters||{};i&&N9(`Using 'parameters.componentSubtitle' property to subtitle stories is deprecated. See ${P9}`);let o=n||a?.subtitle||i;return o?Q.createElement(d3,{className:`sbdocs-subtitle sb-unstyled`},o):null},I9=/\s*\/\s*/,L9=e=>{let t=e.trim().split(I9);return t?.[t?.length-1]||e},R9=e=>{let{children:t,of:n}=e;if(`of`in e&&n===void 0)throw Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let r;try{r=w6(n||`meta`,[`meta`]).preparedMeta}catch(e){if(t&&e instanceof Error&&!e.message.includes(`did you forget to use <Meta of={} />?`))throw e}let i=t||L9(r?.title||``);return i?Q.createElement(u3,{className:`sbdocs-title sb-unstyled`},i):null},z9=()=>{let{stories:e}=w6(`meta`,[`meta`]).csfFile,t=Object.keys(e).length===1;return Q.createElement(Q.Fragment,null,Q.createElement(R9,null),Q.createElement(F9,null),Q.createElement(_9,{of:`meta`}),t?Q.createElement(_9,{of:`story`}):null,Q.createElement(k9,null),Q.createElement(e9,null),t?null:Q.createElement(M9,null))};function B9({context:e,docsParameter:t}){let n=t.container||b9,r=t.page||z9;return Q.createElement(n,{context:e,theme:t.theme},Q.createElement(r,null))}var{composeConfigs:V9}=__STORYBOOK_MODULE_PREVIEW_API__,{Channel:H9}=__STORYBOOK_MODULE_CHANNELS__,{Preview:U9,composeConfigs:W9}=__STORYBOOK_MODULE_PREVIEW_API__,{DocsContext:eee}=__STORYBOOK_MODULE_PREVIEW_API__,G9=Ce({decorators:()=>J9,parameters:()=>Y9,tags:()=>X9}),K9=YY({themes:{light:`default`,dark:`dark`},defaultTheme:`light`,attributeName:`data-theme`});function q9({children:e,...t}){let n=(t?.context?.globals?.theme??t?.context?.store?.userGlobals?.globals?.theme??`light`)===`dark`?pe.dark:pe.light;return(0,oX.jsx)(b9,{context:t.context,theme:n,children:e})}const J9=[K9],Y9={themes:{default:`light`,list:[{name:`light`,class:`default`,color:`#ffffff`},{name:`dark`,class:`dark`,color:`#1e1e1e`}]},docs:{container:q9}},X9=[`autodocs`];kW();var{composeConfigs:Z9,PreviewWeb:Q9}=__STORYBOOK_MODULE_PREVIEW_API__,$9=(e=[])=>Z9([e[0]??OG,e[1]??ZJ,e[2]??hY,e[3]??wY,e[4]??LY,e[5]??G9]);window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new Q9(qW,$9),window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;export{Ee as C,Ce as S,R as T,BW as _,MZ as a,Se as b,jZ as c,ZY as d,jY as f,WW as g,GW as h,p9 as i,iX as l,YW as m,r9 as n,lX as o,PY as p,B9 as r,TZ as s,s9 as t,nX as u,VW as v,Te as w,L as x,UW as y};