@v-miniapp/ui-react 1.0.41 → 1.0.45

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 (137) hide show
  1. package/README.md +1 -1
  2. package/dist/external/index.js +1993 -2004
  3. package/dist/index.js +1011 -1022
  4. package/dist-storybook/assets/ANIMATION-CUdn1GTK.js +99 -0
  5. package/dist-storybook/assets/APP_FRAMEWORK-ljbIOHYd.js +197 -0
  6. package/dist-storybook/assets/BOTTOM_TAB_BAR-DxCwCfBK.js +175 -0
  7. package/dist-storybook/assets/CUSTOM_ERROR_BOUNDARY-B4wTQNZc.js +250 -0
  8. package/dist-storybook/assets/Color-AVL7NMMY-1_8XTICv.js +1 -0
  9. package/dist-storybook/assets/DARK_MODE-CoHseCDO.js +57 -0
  10. package/dist-storybook/assets/DocsRenderer-PQXLIZUC-BO86igwd.js +2 -0
  11. package/dist-storybook/assets/GETTING_STARTED-H_vVi5cv.js +77 -0
  12. package/dist-storybook/assets/INFINITE_SCROLL-BtM3uoX0.js +111 -0
  13. package/dist-storybook/assets/KEEP_ALIVE-CL2au0al.js +126 -0
  14. package/dist-storybook/assets/LOCALE-XTCey55y.js +465 -0
  15. package/dist-storybook/assets/MIGRATION_GUIDE-2LONslE4.js +449 -0
  16. package/dist-storybook/assets/MOBILE_BEHAVIOURS-DZ6alKTX.js +177 -0
  17. package/dist-storybook/assets/PAGE_LAYOUT-BuOpN-1Y.js +192 -0
  18. package/dist-storybook/assets/ROUTING_NAVIGATION-BCPHXNto.js +335 -0
  19. package/dist-storybook/assets/TAILWIND_INTEGRATION-_T-VfvkM.js +87 -0
  20. package/dist-storybook/assets/_setToString-CbM921C9.js +1 -0
  21. package/dist-storybook/assets/alert-DLW8CoyB.js +1 -0
  22. package/dist-storybook/assets/alert.stories-B-vuojPh.js +110 -0
  23. package/dist-storybook/assets/avatar-GxcYPA1p.js +1 -0
  24. package/dist-storybook/assets/avatar.stories-KYFztAc8.js +136 -0
  25. package/dist-storybook/assets/axe-CmvD4WV5.js +20 -0
  26. package/dist-storybook/assets/badge-D_LzMVtw.js +1 -0
  27. package/dist-storybook/assets/badge.stories-Be2ItCmQ.js +262 -0
  28. package/dist-storybook/assets/blocks-BuaOUtiH.js +1243 -0
  29. package/dist-storybook/assets/bottom-tab-bar-CtcTAxuI.js +115 -0
  30. package/dist-storybook/assets/bottom-tab-bar.stories-CDmEve6z.js +186 -0
  31. package/dist-storybook/assets/button-CL7GeC23.js +1 -0
  32. package/dist-storybook/assets/button.stories-CaqLWQiY.js +287 -0
  33. package/dist-storybook/assets/calendar-dOCsjhVU.js +1 -0
  34. package/dist-storybook/assets/calendar.stories-DLWZldet.js +189 -0
  35. package/dist-storybook/assets/carousel-1Kww3hIz.js +37 -0
  36. package/dist-storybook/assets/carousel.stories-B8YbGOOr.js +217 -0
  37. package/dist-storybook/assets/checkbox-MGytNNRt.js +1 -0
  38. package/dist-storybook/assets/checkbox.stories-CLvfZPiw.js +201 -0
  39. package/dist-storybook/assets/chip-kG4p82WT.js +247 -0
  40. package/dist-storybook/assets/chip.stories-BbwJb5eD.js +442 -0
  41. package/dist-storybook/assets/classname-CUR_zgkh.js +1 -0
  42. package/dist-storybook/assets/colors-_6nFGM3e.js +1 -0
  43. package/dist-storybook/assets/date-Cg-Uk_pp.js +1 -0
  44. package/dist-storybook/assets/date-field.stories-Diptwqfv.js +129 -0
  45. package/dist-storybook/assets/date-picker-Dnq_-0Md.js +1 -0
  46. package/dist-storybook/assets/date-picker.stories-BuGWvzFL.js +123 -0
  47. package/dist-storybook/assets/default-error-BcnD8fFO.png +0 -0
  48. package/dist-storybook/assets/dialog.stories-DJ0WsSkA.js +212 -0
  49. package/dist-storybook/assets/dropdown.stories-D6JUYP73.js +200 -0
  50. package/dist-storybook/assets/embla-carousel-react.esm-BYjpaHZ9.js +1 -0
  51. package/dist-storybook/assets/en-Cs9O0XWn.js +15 -0
  52. package/dist-storybook/assets/icon-DdQsMyRa.js +1 -0
  53. package/dist-storybook/assets/icon.stories-B-ZvRzFf.js +365 -0
  54. package/dist-storybook/assets/iframe-CQAwSt4E.js +1071 -0
  55. package/dist-storybook/assets/iframe-yMKl6hJA.css +1 -0
  56. package/dist-storybook/assets/image-C3EsNRhz.js +9 -0
  57. package/dist-storybook/assets/image.stories-C4l8D3ju.js +255 -0
  58. package/dist-storybook/assets/index-B-Ksafg0.js +1 -0
  59. package/dist-storybook/assets/index-BV0AJWP6.js +1 -0
  60. package/dist-storybook/assets/index-CgMRTj-o.js +1 -0
  61. package/dist-storybook/assets/index-DHiZ-gXR.js +1 -0
  62. package/dist-storybook/assets/input-wrapper-BKHgnPy6.js +1 -0
  63. package/dist-storybook/assets/label-DV2iCDmN.js +27 -0
  64. package/dist-storybook/assets/label.stories-BwTIPFXX.js +138 -0
  65. package/dist-storybook/assets/matchers-7Z3WT2CE-Dw4MQV_s.js +14 -0
  66. package/dist-storybook/assets/navigation-bar-vI-FPasP.js +79 -0
  67. package/dist-storybook/assets/navigation-bar.stories-DYuFaJFD.js +73 -0
  68. package/dist-storybook/assets/number-field-CXKmnfKe.js +1 -0
  69. package/dist-storybook/assets/number-field.stories--fn26TJu.js +167 -0
  70. package/dist-storybook/assets/omit-Bsx5nTI0.js +1 -0
  71. package/dist-storybook/assets/option-item-LRh_OyV4.js +1 -0
  72. package/dist-storybook/assets/option-item.stories-snjAvgay.js +66 -0
  73. package/dist-storybook/assets/pagination-DZHoBs_4.js +1 -0
  74. package/dist-storybook/assets/pagination.stories-BoEs0jzS.js +91 -0
  75. package/dist-storybook/assets/pick-BhmhLmLe.js +1 -0
  76. package/dist-storybook/assets/preload-helper-PPVm8Dsz.js +1 -0
  77. package/dist-storybook/assets/radio-B5NJxG_l.js +1 -0
  78. package/dist-storybook/assets/radio.stories-DuN-Awi_.js +183 -0
  79. package/dist-storybook/assets/rating-BdXViYBv.js +1 -0
  80. package/dist-storybook/assets/rating.stories-BCcQjMEx.js +117 -0
  81. package/dist-storybook/assets/react-18-CNyWQ7je.js +9 -0
  82. package/dist-storybook/assets/react-hufnxGVs.js +1 -0
  83. package/dist-storybook/assets/search-field-CQqgFbfg.js +1 -0
  84. package/dist-storybook/assets/search-field.stories-DiCZbhng.js +79 -0
  85. package/dist-storybook/assets/section-content-DGNB4eLN.js +1 -0
  86. package/dist-storybook/assets/section.stories-C2I_kKhu.js +69 -0
  87. package/dist-storybook/assets/sheet.stories-wk1JaKU5.js +152 -0
  88. package/dist-storybook/assets/skeleton-C91JgehG.js +1 -0
  89. package/dist-storybook/assets/skeleton.stories-BCmX-VNr.js +139 -0
  90. package/dist-storybook/assets/store-CPumdfcU.js +1 -0
  91. package/dist-storybook/assets/store-D2RudmNr.js +18 -0
  92. package/dist-storybook/assets/switch-p-aXI-ev.js +1 -0
  93. package/dist-storybook/assets/switch.stories-BqPLNKB9.js +250 -0
  94. package/dist-storybook/assets/tab-bar-CSeCmtIZ.js +31 -0
  95. package/dist-storybook/assets/tab-bar.stories-Cb6v8H2w.js +136 -0
  96. package/dist-storybook/assets/text-area-DwSXyqOe.js +1 -0
  97. package/dist-storybook/assets/text-area.stories-By8bCfgc.js +87 -0
  98. package/dist-storybook/assets/text-field-jK6rpOo2.js +1 -0
  99. package/dist-storybook/assets/text-field.stories-CrWBAhvI.js +92 -0
  100. package/dist-storybook/assets/toast-provider-DurnMJhd.js +9 -0
  101. package/dist-storybook/assets/toast.stories-iWAToAZA.js +201 -0
  102. package/dist-storybook/assets/tooltip-QDdel5My.js +1 -0
  103. package/dist-storybook/assets/tooltip.stories-RC6SuPPD.js +153 -0
  104. package/dist-storybook/assets/typography-DEpAJl_i.js +1 -0
  105. package/dist-storybook/assets/typography.stories-Bu8qFugR.js +202 -0
  106. package/dist-storybook/assets/uploader.stories-B2wW9qVy.js +65 -0
  107. package/dist-storybook/assets/use-app-pause-B_tWHKJK.js +29 -0
  108. package/dist-storybook/assets/use-app-resume--900G-dV.js +29 -0
  109. package/dist-storybook/assets/use-custom-icon-event-3VExRzvC.js +29 -0
  110. package/dist-storybook/assets/use-did-hide-BUsL73ab.js +48 -0
  111. package/dist-storybook/assets/use-did-show-C1-VLDxi.js +49 -0
  112. package/dist-storybook/assets/use-histories-E4E2jJEY.js +50 -0
  113. package/dist-storybook/assets/use-history-o1im8IDj.js +67 -0
  114. package/dist-storybook/assets/use-location-CUEaBO4P.js +56 -0
  115. package/dist-storybook/assets/use-navigate-C4CTuFSZ.js +84 -0
  116. package/dist-storybook/assets/use-navigation-type-Dcz4hgKo.js +44 -0
  117. package/dist-storybook/assets/use-page-config-DSJBVQbq.js +48 -0
  118. package/dist-storybook/assets/use-page-scroll-dY-U1Vv4.js +69 -0
  119. package/dist-storybook/assets/use-page-state-CtNpwGPN.js +79 -0
  120. package/dist-storybook/assets/use-settings-changed-BBJwIHTE.js +29 -0
  121. package/dist-storybook/assets/v-mini-icon-Dn1BmJzb.woff2 +0 -0
  122. package/dist-storybook/assets/visibility-sensor-CwrzJO06.js +1 -0
  123. package/dist-storybook/iframe.html +670 -0
  124. package/dist-storybook/index.html +132 -0
  125. package/dist-storybook/index.json +1 -0
  126. package/dist-storybook/project.json +1 -0
  127. package/dist-storybook/sb-addons/a11y-2/manager-bundle.js +5 -0
  128. package/dist-storybook/sb-addons/docs-1/manager-bundle.js +151 -0
  129. package/dist-storybook/sb-addons/storybook-build-3/manager-bundle.js +3 -0
  130. package/dist-storybook/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +971 -0
  131. package/dist-storybook/sb-manager/globals-module-info.js +799 -0
  132. package/dist-storybook/sb-manager/globals-runtime.js +69791 -0
  133. package/dist-storybook/sb-manager/globals.js +34 -0
  134. package/dist-storybook/sb-manager/runtime.js +13198 -0
  135. package/dist-storybook/stories-data.json +374 -0
  136. package/dist-storybook/vite-inject-mocker-entry.js +2 -0
  137. package/package.json +1 -1
@@ -0,0 +1,1243 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Color-AVL7NMMY-1_8XTICv.js","./iframe-CQAwSt4E.js","./preload-helper-PPVm8Dsz.js","./iframe-yMKl6hJA.css","./index-DHiZ-gXR.js"])))=>i.map(i=>d[i]);
2
+ import{_ as rh}from"./preload-helper-PPVm8Dsz.js";import{r as b,g as MC,e as h,j as V,W as nh,h as kp,T as Tl}from"./iframe-CQAwSt4E.js";import{r as zC}from"./index-DHiZ-gXR.js";var HC=Object.defineProperty,O=(e,t)=>HC(e,"name",{value:t,configurable:!0});const{once:UC}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{FORCE_REMOUNT:Op,SET_CURRENT_STORY:WC,STORY_RENDER_PHASE_CHANGED:VC}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:dt}=__STORYBOOK_MODULE_GLOBAL__;var qC={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]},GC=Object.entries(qC);function Oi(e){return String(e)}O(Oi,"a");Oi.open="";Oi.close="";function oh(e=!1){let t=typeof process<"u"?process:void 0,r=t?.env||{},n=t?.argv||[];return!("NO_COLOR"in r||n.includes("--no-color"))&&("FORCE_COLOR"in r||n.includes("--color")||t?.platform==="win32"||e&&r.TERM!=="dumb"||"CI"in r)||typeof window<"u"&&!!window.chrome}O(oh,"C");function ah(e=!1){let t=oh(e),r=O((i,l,s,u)=>{let d="",p=0;do d+=i.substring(p,u)+s,p=u+l.length,u=i.indexOf(l,p);while(~u);return d+i.substring(p)},"i"),n=O((i,l,s=i)=>{let u=O(d=>{let p=String(d),c=p.indexOf(l,i.length);return~c?i+r(p,l,s,c)+l:i+p+l},"o");return u.open=i,u.close=l,u},"g"),o={isColorSupported:t},a=O(i=>`\x1B[${i}m`,"d");for(let[i,l]of GC)o[i]=t?n(a(l[0]),a(l[1]),l[2]):Oi;return o}O(ah,"p");var tr=ah();function cc(e,t){return t.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(n){if(n!=="default"&&!(n in e)){var o=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:O(function(){return r[n]},"get")})}})}),Object.freeze(e)}O(cc,"_mergeNamespaces");function ih(e,t){let r=Object.keys(e),n=t===null?r:r.sort(t);if(Object.getOwnPropertySymbols)for(let o of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,o).enumerable&&n.push(o);return n}O(ih,"getKeysOfEnumerableProperties");function oo(e,t,r,n,o,a,i=": "){let l="",s=0,u=e.next();if(!u.done){l+=t.spacingOuter;let d=r+t.indent;for(;!u.done;){if(l+=d,s++===t.maxWidth){l+="…";break}let p=a(u.value[0],t,d,n,o),c=a(u.value[1],t,d,n,o);l+=p+i+c,u=e.next(),u.done?t.min||(l+=","):l+=`,${t.spacingInner}`}l+=t.spacingOuter+r}return l}O(oo,"printIteratorEntries");function Fi(e,t,r,n,o,a){let i="",l=0,s=e.next();if(!s.done){i+=t.spacingOuter;let u=r+t.indent;for(;!s.done;){if(i+=u,l++===t.maxWidth){i+="…";break}i+=a(s.value,t,u,n,o),s=e.next(),s.done?t.min||(i+=","):i+=`,${t.spacingInner}`}i+=t.spacingOuter+r}return i}O(Fi,"printIteratorValues");function Vo(e,t,r,n,o,a){let i="";e=e instanceof ArrayBuffer?new DataView(e):e;let l=O(u=>u instanceof DataView,"isDataView"),s=l(e)?e.byteLength:e.length;if(s>0){i+=t.spacingOuter;let u=r+t.indent;for(let d=0;d<s;d++){if(i+=u,d===t.maxWidth){i+="…";break}(l(e)||d in e)&&(i+=a(l(e)?e.getInt8(d):e[d],t,u,n,o)),d<s-1?i+=`,${t.spacingInner}`:t.min||(i+=",")}i+=t.spacingOuter+r}return i}O(Vo,"printListItems");function _i(e,t,r,n,o,a){let i="",l=ih(e,t.compareKeys);if(l.length>0){i+=t.spacingOuter;let s=r+t.indent;for(let u=0;u<l.length;u++){let d=l[u],p=a(d,t,s,n,o),c=a(e[d],t,s,n,o);i+=`${s+p}: ${c}`,u<l.length-1?i+=`,${t.spacingInner}`:t.min||(i+=",")}i+=t.spacingOuter+r}return i}O(_i,"printObjectProperties");var YC=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,Rl=" ",KC=O((e,t,r,n,o,a)=>{let i=e.toString();if(i==="ArrayContaining"||i==="ArrayNotContaining")return++n>t.maxDepth?`[${i}]`:`${i+Rl}[${Vo(e.sample,t,r,n,o,a)}]`;if(i==="ObjectContaining"||i==="ObjectNotContaining")return++n>t.maxDepth?`[${i}]`:`${i+Rl}{${_i(e.sample,t,r,n,o,a)}}`;if(i==="StringMatching"||i==="StringNotMatching"||i==="StringContaining"||i==="StringNotContaining")return i+Rl+a(e.sample,t,r,n,o);if(typeof e.toAsymmetricMatcher!="function")throw new TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},"serialize$5"),XC=O(e=>e&&e.$$typeof===YC,"test$5"),ZC={serialize:KC,test:XC},JC=" ",lh=new Set(["DOMStringMap","NamedNodeMap"]),QC=/^(?:HTML\w*Collection|NodeList)$/;function sh(e){return lh.has(e)||QC.test(e)}O(sh,"testName");var e2=O(e=>e&&e.constructor&&!!e.constructor.name&&sh(e.constructor.name),"test$4");function uh(e){return e.constructor.name==="NamedNodeMap"}O(uh,"isNamedNodeMap");var t2=O((e,t,r,n,o,a)=>{let i=e.constructor.name;return++n>t.maxDepth?`[${i}]`:(t.min?"":i+JC)+(lh.has(i)?`{${_i(uh(e)?[...e].reduce((l,s)=>(l[s.name]=s.value,l),{}):{...e},t,r,n,o,a)}}`:`[${Vo([...e],t,r,n,o,a)}]`)},"serialize$4"),r2={serialize:t2,test:e2};function dc(e){return e.replaceAll("<","&lt;").replaceAll(">","&gt;")}O(dc,"escapeHTML");function Ti(e,t,r,n,o,a,i){let l=n+r.indent,s=r.colors;return e.map(u=>{let d=t[u],p=i(d,r,l,o,a);return typeof d!="string"&&(p.includes(`
3
+ `)&&(p=r.spacingOuter+l+p+r.spacingOuter+n),p=`{${p}}`),`${r.spacingInner+n+s.prop.open+u+s.prop.close}=${s.value.open}${p}${s.value.close}`}).join("")}O(Ti,"printProps");function Ri(e,t,r,n,o,a){return e.map(i=>t.spacingOuter+r+(typeof i=="string"?pc(i,t):a(i,t,r,n,o))).join("")}O(Ri,"printChildren");function pc(e,t){let r=t.colors.content;return r.open+dc(e)+r.close}O(pc,"printText");function ch(e,t){let r=t.colors.comment;return`${r.open}<!--${dc(e)}-->${r.close}`}O(ch,"printComment");function Pi(e,t,r,n,o){let a=n.colors.tag;return`${a.open}<${e}${t&&a.close+t+n.spacingOuter+o+a.open}${r?`>${a.close}${r}${n.spacingOuter}${o}${a.open}</${e}`:`${t&&!n.min?"":" "}/`}>${a.close}`}O(Pi,"printElement");function Ii(e,t){let r=t.colors.tag;return`${r.open}<${e}${r.close} …${r.open} />${r.close}`}O(Ii,"printElementAsLeaf");var n2=1,dh=3,ph=8,fh=11,o2=/^(?:(?:HTML|SVG)\w*)?Element$/;function gh(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return!1}}O(gh,"testHasAttribute");function mh(e){let t=e.constructor.name,{nodeType:r,tagName:n}=e,o=typeof n=="string"&&n.includes("-")||gh(e);return r===n2&&(o2.test(t)||o)||r===dh&&t==="Text"||r===ph&&t==="Comment"||r===fh&&t==="DocumentFragment"}O(mh,"testNode");var a2=O(e=>{var t;return(e==null||(t=e.constructor)===null||t===void 0?void 0:t.name)&&mh(e)},"test$3");function hh(e){return e.nodeType===dh}O(hh,"nodeIsText");function yh(e){return e.nodeType===ph}O(yh,"nodeIsComment");function Pa(e){return e.nodeType===fh}O(Pa,"nodeIsFragment");var i2=O((e,t,r,n,o,a)=>{if(hh(e))return pc(e.data,t);if(yh(e))return ch(e.data,t);let i=Pa(e)?"DocumentFragment":e.tagName.toLowerCase();return++n>t.maxDepth?Ii(i,t):Pi(i,Ti(Pa(e)?[]:Array.from(e.attributes,l=>l.name).sort(),Pa(e)?{}:[...e.attributes].reduce((l,s)=>(l[s.name]=s.value,l),{}),t,r+t.indent,n,o,a),Ri(Array.prototype.slice.call(e.childNodes||e.children),t,r+t.indent,n,o,a),t,r)},"serialize$3"),l2={serialize:i2,test:a2},s2="@@__IMMUTABLE_ITERABLE__@@",u2="@@__IMMUTABLE_LIST__@@",c2="@@__IMMUTABLE_KEYED__@@",d2="@@__IMMUTABLE_MAP__@@",Fp="@@__IMMUTABLE_ORDERED__@@",p2="@@__IMMUTABLE_RECORD__@@",f2="@@__IMMUTABLE_SEQ__@@",g2="@@__IMMUTABLE_SET__@@",m2="@@__IMMUTABLE_STACK__@@",In=O(e=>`Immutable.${e}`,"getImmutableName"),Li=O(e=>`[${e}]`,"printAsLeaf"),qo=" ",_p="…";function bh(e,t,r,n,o,a,i){return++n>t.maxDepth?Li(In(i)):`${In(i)+qo}{${oo(e.entries(),t,r,n,o,a)}}`}O(bh,"printImmutableEntries");function vh(e){let t=0;return{next(){if(t<e._keys.length){let r=e._keys[t++];return{done:!1,value:[r,e.get(r)]}}return{done:!0,value:void 0}}}}O(vh,"getRecordEntries");function xh(e,t,r,n,o,a){let i=In(e._name||"Record");return++n>t.maxDepth?Li(i):`${i+qo}{${oo(vh(e),t,r,n,o,a)}}`}O(xh,"printImmutableRecord");function Eh(e,t,r,n,o,a){let i=In("Seq");return++n>t.maxDepth?Li(i):e[c2]?`${i+qo}{${e._iter||e._object?oo(e.entries(),t,r,n,o,a):_p}}`:`${i+qo}[${e._iter||e._array||e._collection||e._iterable?Fi(e.values(),t,r,n,o,a):_p}]`}O(Eh,"printImmutableSeq");function Ia(e,t,r,n,o,a,i){return++n>t.maxDepth?Li(In(i)):`${In(i)+qo}[${Fi(e.values(),t,r,n,o,a)}]`}O(Ia,"printImmutableValues");var h2=O((e,t,r,n,o,a)=>e[d2]?bh(e,t,r,n,o,a,e[Fp]?"OrderedMap":"Map"):e[u2]?Ia(e,t,r,n,o,a,"List"):e[g2]?Ia(e,t,r,n,o,a,e[Fp]?"OrderedSet":"Set"):e[m2]?Ia(e,t,r,n,o,a,"Stack"):e[f2]?Eh(e,t,r,n,o,a):xh(e,t,r,n,o,a),"serialize$2"),y2=O(e=>e&&(e[s2]===!0||e[p2]===!0),"test$2"),b2={serialize:h2,test:y2};function fc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}O(fc,"getDefaultExportFromCjs");var Tp={exports:{}},ge={},Rp;function wh(){return Rp||(Rp=1,(function(){function e(y){if(typeof y=="object"&&y!==null){var x=y.$$typeof;switch(x){case t:switch(y=y.type,y){case n:case a:case o:case u:case d:case f:return y;default:switch(y=y&&y.$$typeof,y){case l:case s:case c:case p:return y;case i:return y;default:return x}}case r:return x}}}O(e,"typeOf");var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),l=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");ge.ContextConsumer=i,ge.ContextProvider=l,ge.Element=t,ge.ForwardRef=s,ge.Fragment=n,ge.Lazy=c,ge.Memo=p,ge.Portal=r,ge.Profiler=a,ge.StrictMode=o,ge.Suspense=u,ge.SuspenseList=d,ge.isContextConsumer=function(y){return e(y)===i},ge.isContextProvider=function(y){return e(y)===l},ge.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===t},ge.isForwardRef=function(y){return e(y)===s},ge.isFragment=function(y){return e(y)===n},ge.isLazy=function(y){return e(y)===c},ge.isMemo=function(y){return e(y)===p},ge.isPortal=function(y){return e(y)===r},ge.isProfiler=function(y){return e(y)===a},ge.isStrictMode=function(y){return e(y)===o},ge.isSuspense=function(y){return e(y)===u},ge.isSuspenseList=function(y){return e(y)===d},ge.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===n||y===a||y===o||y===u||y===d||typeof y=="object"&&y!==null&&(y.$$typeof===c||y.$$typeof===p||y.$$typeof===l||y.$$typeof===i||y.$$typeof===s||y.$$typeof===m||y.getModuleId!==void 0)},ge.typeOf=e})()),ge}O(wh,"requireReactIs_development$1");var Pp;function Sh(){return Pp||(Pp=1,Tp.exports=wh()),Tp.exports}O(Sh,"requireReactIs$1");var Ch=Sh(),v2=fc(Ch),x2=cc({__proto__:null,default:v2},[Ch]),Ip={exports:{}},pe={},Lp;function $h(){return Lp||(Lp=1,(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen"),m=!1,y=!1,x=!1,v=!1,C=!1,w;w=Symbol.for("react.module.reference");function E(U){return!!(typeof U=="string"||typeof U=="function"||U===r||U===o||C||U===n||U===u||U===d||v||U===f||m||y||x||typeof U=="object"&&U!==null&&(U.$$typeof===c||U.$$typeof===p||U.$$typeof===a||U.$$typeof===i||U.$$typeof===s||U.$$typeof===w||U.getModuleId!==void 0))}O(E,"isValidElementType");function $(U){if(typeof U=="object"&&U!==null){var fe=U.$$typeof;switch(fe){case e:var ke=U.type;switch(ke){case r:case o:case n:case u:case d:return ke;default:var be=ke&&ke.$$typeof;switch(be){case l:case i:case s:case c:case p:case a:return be;default:return fe}}case t:return fe}}}O($,"typeOf");var A=i,S=a,D=e,F=s,k=r,_=c,I=p,L=t,j=o,B=n,z=u,q=d,Y=!1,W=!1;function G(U){return Y||(Y=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}O(G,"isAsyncMode");function J(U){return W||(W=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}O(J,"isConcurrentMode");function Q(U){return $(U)===i}O(Q,"isContextConsumer");function re(U){return $(U)===a}O(re,"isContextProvider");function ie(U){return typeof U=="object"&&U!==null&&U.$$typeof===e}O(ie,"isElement");function H(U){return $(U)===s}O(H,"isForwardRef");function X(U){return $(U)===r}O(X,"isFragment");function Z(U){return $(U)===c}O(Z,"isLazy");function le(U){return $(U)===p}O(le,"isMemo");function me(U){return $(U)===t}O(me,"isPortal");function Re(U){return $(U)===o}O(Re,"isProfiler");function ne(U){return $(U)===n}O(ne,"isStrictMode");function de(U){return $(U)===u}O(de,"isSuspense");function M(U){return $(U)===d}O(M,"isSuspenseList"),pe.ContextConsumer=A,pe.ContextProvider=S,pe.Element=D,pe.ForwardRef=F,pe.Fragment=k,pe.Lazy=_,pe.Memo=I,pe.Portal=L,pe.Profiler=j,pe.StrictMode=B,pe.Suspense=z,pe.SuspenseList=q,pe.isAsyncMode=G,pe.isConcurrentMode=J,pe.isContextConsumer=Q,pe.isContextProvider=re,pe.isElement=ie,pe.isForwardRef=H,pe.isFragment=X,pe.isLazy=Z,pe.isMemo=le,pe.isPortal=me,pe.isProfiler=Re,pe.isStrictMode=ne,pe.isSuspense=de,pe.isSuspenseList=M,pe.isValidElementType=E,pe.typeOf=$})()),pe}O($h,"requireReactIs_development");var Bp;function Ah(){return Bp||(Bp=1,Ip.exports=$h()),Ip.exports}O(Ah,"requireReactIs");var Dh=Ah(),E2=fc(Dh),w2=cc({__proto__:null,default:E2},[Dh]),S2=["isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","isValidElementType"],jr=Object.fromEntries(S2.map(e=>[e,t=>w2[e](t)||x2[e](t)]));function gc(e,t=[]){if(Array.isArray(e))for(let r of e)gc(r,t);else e!=null&&e!==!1&&e!==""&&t.push(e);return t}O(gc,"getChildren");function Fs(e){let t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(jr.isFragment(e))return"React.Fragment";if(jr.isSuspense(e))return"React.Suspense";if(typeof t=="object"&&t!==null){if(jr.isContextProvider(e))return"Context.Provider";if(jr.isContextConsumer(e))return"Context.Consumer";if(jr.isForwardRef(e)){if(t.displayName)return t.displayName;let r=t.render.displayName||t.render.name||"";return r===""?"ForwardRef":`ForwardRef(${r})`}if(jr.isMemo(e)){let r=t.displayName||t.type.displayName||t.type.name||"";return r===""?"Memo":`Memo(${r})`}}return"UNDEFINED"}O(Fs,"getType");function kh(e){let{props:t}=e;return Object.keys(t).filter(r=>r!=="children"&&t[r]!==void 0).sort()}O(kh,"getPropKeys$1");var C2=O((e,t,r,n,o,a)=>++n>t.maxDepth?Ii(Fs(e),t):Pi(Fs(e),Ti(kh(e),e.props,t,r+t.indent,n,o,a),Ri(gc(e.props.children),t,r+t.indent,n,o,a),t,r),"serialize$1"),$2=O(e=>e!=null&&jr.isElement(e),"test$1"),A2={serialize:C2,test:$2},D2=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function Oh(e){let{props:t}=e;return t?Object.keys(t).filter(r=>t[r]!==void 0).sort():[]}O(Oh,"getPropKeys");var k2=O((e,t,r,n,o,a)=>++n>t.maxDepth?Ii(e.type,t):Pi(e.type,e.props?Ti(Oh(e),e.props,t,r+t.indent,n,o,a):"",e.children?Ri(e.children,t,r+t.indent,n,o,a):"",t,r),"serialize"),O2=O(e=>e&&e.$$typeof===D2,"test"),F2={serialize:k2,test:O2},Fh=Object.prototype.toString,_2=Date.prototype.toISOString,T2=Error.prototype.toString,Np=RegExp.prototype.toString;function Po(e){return typeof e.constructor=="function"&&e.constructor.name||"Object"}O(Po,"getConstructorName");function _h(e){return typeof window<"u"&&e===window}O(_h,"isWindow");var R2=/^Symbol\((.*)\)(.*)$/,P2=/\n/g,Th=class extends Error{constructor(t,r){super(t),this.stack=r,this.name=this.constructor.name}};O(Th,"PrettyFormatPluginError");var Rh=Th;function Ph(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]"}O(Ph,"isToStringedArrayType");function Ih(e){return Object.is(e,-0)?"-0":String(e)}O(Ih,"printNumber");function Lh(e){return`${e}n`}O(Lh,"printBigInt");function _s(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}O(_s,"printFunction");function Ts(e){return String(e).replace(R2,"Symbol($1)")}O(Ts,"printSymbol");function Rs(e){return`[${T2.call(e)}]`}O(Rs,"printError");function mc(e,t,r,n){if(e===!0||e===!1)return`${e}`;if(e===void 0)return"undefined";if(e===null)return"null";let o=typeof e;if(o==="number")return Ih(e);if(o==="bigint")return Lh(e);if(o==="string")return n?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if(o==="function")return _s(e,t);if(o==="symbol")return Ts(e);let a=Fh.call(e);return a==="[object WeakMap]"?"WeakMap {}":a==="[object WeakSet]"?"WeakSet {}":a==="[object Function]"||a==="[object GeneratorFunction]"?_s(e,t):a==="[object Symbol]"?Ts(e):a==="[object Date]"?Number.isNaN(+e)?"Date { NaN }":_2.call(e):a==="[object Error]"?Rs(e):a==="[object RegExp]"?r?Np.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):Np.call(e):e instanceof Error?Rs(e):null}O(mc,"printBasicValue");function hc(e,t,r,n,o,a){if(o.includes(e))return"[Circular]";o=[...o],o.push(e);let i=++n>t.maxDepth,l=t.min;if(t.callToJSON&&!i&&e.toJSON&&typeof e.toJSON=="function"&&!a)return Qt(e.toJSON(),t,r,n,o,!0);let s=Fh.call(e);return s==="[object Arguments]"?i?"[Arguments]":`${l?"":"Arguments "}[${Vo(e,t,r,n,o,Qt)}]`:Ph(s)?i?`[${e.constructor.name}]`:`${l||!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${Vo(e,t,r,n,o,Qt)}]`:s==="[object Map]"?i?"[Map]":`Map {${oo(e.entries(),t,r,n,o,Qt," => ")}}`:s==="[object Set]"?i?"[Set]":`Set {${Fi(e.values(),t,r,n,o,Qt)}}`:i||_h(e)?`[${Po(e)}]`:`${l||!t.printBasicPrototype&&Po(e)==="Object"?"":`${Po(e)} `}{${_i(e,t,r,n,o,Qt)}}`}O(hc,"printComplexValue");var I2={test:O(e=>e&&e instanceof Error,"test"),serialize(e,t,r,n,o,a){if(o.includes(e))return"[Circular]";o=[...o,e];let i=++n>t.maxDepth,{message:l,cause:s,...u}=e,d={message:l,...typeof s<"u"?{cause:s}:{},...e instanceof AggregateError?{errors:e.errors}:{},...u},p=e.name!=="Error"?e.name:Po(e);return i?`[${p}]`:`${p} {${oo(Object.entries(d).values(),t,r,n,o,a)}}`}};function Bh(e){return e.serialize!=null}O(Bh,"isNewPlugin");function yc(e,t,r,n,o,a){let i;try{i=Bh(e)?e.serialize(t,r,n,o,a,Qt):e.print(t,l=>Qt(l,r,n,o,a),l=>{let s=n+r.indent;return s+l.replaceAll(P2,`
4
+ ${s}`)},{edgeSpacing:r.spacingOuter,min:r.min,spacing:r.spacingInner},r.colors)}catch(l){throw new Rh(l.message,l.stack)}if(typeof i!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof i}".`);return i}O(yc,"printPlugin");function bc(e,t){for(let r of e)try{if(r.test(t))return r}catch(n){throw new Rh(n.message,n.stack)}return null}O(bc,"findPlugin");function Qt(e,t,r,n,o,a){let i=bc(t.plugins,e);if(i!==null)return yc(i,e,t,r,n,o);let l=mc(e,t.printFunctionName,t.escapeRegex,t.escapeString);return l!==null?l:hc(e,t,r,n,o,a)}O(Qt,"printer");var vc={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},Nh=Object.keys(vc),Et={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:Number.POSITIVE_INFINITY,maxWidth:Number.POSITIVE_INFINITY,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:vc};function jh(e){for(let t of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(Et,t))throw new Error(`pretty-format: Unknown option "${t}".`);if(e.min&&e.indent!==void 0&&e.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.')}O(jh,"validateOptions");function Mh(){return Nh.reduce((e,t)=>{let r=vc[t],n=r&&tr[r];if(n&&typeof n.close=="string"&&typeof n.open=="string")e[t]=n;else throw new Error(`pretty-format: Option "theme" has a key "${t}" whose value "${r}" is undefined in ansi-styles.`);return e},Object.create(null))}O(Mh,"getColorsHighlight");function zh(){return Nh.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}O(zh,"getColorsEmpty");function xc(e){return e?.printFunctionName??Et.printFunctionName}O(xc,"getPrintFunctionName");function Ec(e){return e?.escapeRegex??Et.escapeRegex}O(Ec,"getEscapeRegex");function wc(e){return e?.escapeString??Et.escapeString}O(wc,"getEscapeString");function Ps(e){return{callToJSON:e?.callToJSON??Et.callToJSON,colors:e?.highlight?Mh():zh(),compareKeys:typeof e?.compareKeys=="function"||e?.compareKeys===null?e.compareKeys:Et.compareKeys,escapeRegex:Ec(e),escapeString:wc(e),indent:e?.min?"":Hh(e?.indent??Et.indent),maxDepth:e?.maxDepth??Et.maxDepth,maxWidth:e?.maxWidth??Et.maxWidth,min:e?.min??Et.min,plugins:e?.plugins??Et.plugins,printBasicPrototype:e?.printBasicPrototype??!0,printFunctionName:xc(e),spacingInner:e?.min?" ":`
5
+ `,spacingOuter:e?.min?"":`
6
+ `}}O(Ps,"getConfig");function Hh(e){return Array.from({length:e+1}).join(" ")}O(Hh,"createIndent");function At(e,t){if(t&&(jh(t),t.plugins)){let n=bc(t.plugins,e);if(n!==null)return yc(n,e,Ps(t),"",0,[])}let r=mc(e,xc(t),Ec(t),wc(t));return r!==null?r:hc(e,Ps(t),"",0,[])}O(At,"format");var Sc={AsymmetricMatcher:ZC,DOMCollection:r2,DOMElement:l2,Immutable:b2,ReactElement:A2,ReactTestComponent:F2,Error:I2},jp={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"]},L2={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},Ln="…";function Uh(e,t){let r=jp[L2[t]]||jp[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}O(Uh,"colorise");function Wh({showHidden:e=!1,depth:t=2,colors:r=!1,customInspect:n=!0,showProxy:o=!1,maxArrayLength:a=1/0,breakLength:i=1/0,seen:l=[],truncate:s=1/0,stylize:u=String}={},d){let p={showHidden:!!e,depth:Number(t),colors:!!r,customInspect:!!n,showProxy:!!o,maxArrayLength:Number(a),breakLength:Number(i),truncate:Number(s),seen:l,inspect:d,stylize:u};return p.colors&&(p.stylize=Uh),p}O(Wh,"normaliseOptions");function Vh(e){return e>="\uD800"&&e<="\uDBFF"}O(Vh,"isHighSurrogate");function or(e,t,r=Ln){e=String(e);let n=r.length,o=e.length;if(n>t&&o>n)return r;if(o>t&&o>n){let a=t-n;return a>0&&Vh(e[a-1])&&(a=a-1),`${e.slice(0,a)}${r}`}return e}O(or,"truncate");function ft(e,t,r,n=", "){r=r||t.inspect;let o=e.length;if(o===0)return"";let a=t.truncate,i="",l="",s="";for(let u=0;u<o;u+=1){let d=u+1===e.length,p=u+2===e.length;s=`${Ln}(${e.length-u})`;let c=e[u];t.truncate=a-i.length-(d?0:n.length);let f=l||r(c,t)+(d?"":n),m=i.length+f.length,y=m+s.length;if(d&&m>a&&i.length+s.length<=a||!d&&!p&&y>a||(l=d?"":r(e[u+1],t)+(p?"":n),!d&&p&&y>a&&m+l.length>a))break;if(i+=f,!d&&!p&&m+l.length>=a){s=`${Ln}(${e.length-u-1})`;break}s=""}return`${i}${s}`}O(ft,"inspectList");function qh(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}O(qh,"quoteComplexKey");function Bn([e,t],r){return r.truncate-=2,typeof e=="string"?e=qh(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}O(Bn,"inspectProperty");function Gh(e,t){let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return"[]";t.truncate-=4;let n=ft(e,t);t.truncate-=n.length;let o="";return r.length&&(o=ft(r.map(a=>[a,e[a]]),t,Bn)),`[ ${n}${o?`, ${o}`:""} ]`}O(Gh,"inspectArray");var B2=O(e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,"getArrayName");function Bt(e,t){let r=B2(e);t.truncate-=r.length+4;let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return`${r}[]`;let o="";for(let i=0;i<e.length;i++){let l=`${t.stylize(or(e[i],t.truncate),"number")}${i===e.length-1?"":", "}`;if(t.truncate-=l.length,e[i]!==e.length&&t.truncate<=3){o+=`${Ln}(${e.length-e[i]+1})`;break}o+=l}let a="";return n.length&&(a=ft(n.map(i=>[i,e[i]]),t,Bn)),`${r}[ ${o}${a?`, ${a}`:""} ]`}O(Bt,"inspectTypedArray");function Yh(e,t){let r=e.toJSON();if(r===null)return"Invalid Date";let n=r.split("T"),o=n[0];return t.stylize(`${o}T${or(n[1],t.truncate-o.length-1)}`,"date")}O(Yh,"inspectDate");function Is(e,t){let r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${or(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}O(Is,"inspectFunction");function Kh([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}O(Kh,"inspectMapEntry");function Xh(e){let t=[];return e.forEach((r,n)=>{t.push([n,r])}),t}O(Xh,"mapToEntries");function Zh(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${ft(Xh(e),t,Kh)} }`)}O(Zh,"inspectMap");var N2=Number.isNaN||(e=>e!==e);function Ls(e,t){return N2(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(or(String(e),t.truncate),"number")}O(Ls,"inspectNumber");function Bs(e,t){let r=or(e.toString(),t.truncate-1);return r!==Ln&&(r+="n"),t.stylize(r,"bigint")}O(Bs,"inspectBigInt");function Jh(e,t){let r=e.toString().split("/")[2],n=t.truncate-(2+r.length),o=e.source;return t.stylize(`/${or(o,n)}/${r}`,"regexp")}O(Jh,"inspectRegExp");function Qh(e){let t=[];return e.forEach(r=>{t.push(r)}),t}O(Qh,"arrayFromSet");function e0(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${ft(Qh(e),t)} }`)}O(e0,"inspectSet");var Mp=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),j2={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},M2=16;function t0(e){return j2[e]||`\\u${`0000${e.charCodeAt(0).toString(M2)}`.slice(-4)}`}O(t0,"escape");function Ns(e,t){return Mp.test(e)&&(e=e.replace(Mp,t0)),t.stylize(`'${or(e,t.truncate-2)}'`,"string")}O(Ns,"inspectString");function js(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}O(js,"inspectSymbol");var r0=O(()=>"Promise{…}","getPromiseValue");try{let{getPromiseDetails:e,kPending:t,kRejected:r}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(r0=O((n,o)=>{let[a,i]=e(n);return a===t?"Promise{<pending>}":`Promise${a===r?"!":""}{${o.inspect(i,o)}}`},"getPromiseValue"))}catch{}var z2=r0;function Io(e,t){let r=Object.getOwnPropertyNames(e),n=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(r.length===0&&n.length===0)return"{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let o=ft(r.map(l=>[l,e[l]]),t,Bn),a=ft(n.map(l=>[l,e[l]]),t,Bn);t.seen.pop();let i="";return o&&a&&(i=", "),`{ ${o}${i}${a} }`}O(Io,"inspectObject");var Pl=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function n0(e,t){let r="";return Pl&&Pl in e&&(r=e[Pl]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${Io(e,t)}`}O(n0,"inspectClass");function o0(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${ft(e,t)} ]`)}O(o0,"inspectArguments");var H2=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function a0(e,t){let r=Object.getOwnPropertyNames(e).filter(i=>H2.indexOf(i)===-1),n=e.name;t.truncate-=n.length;let o="";if(typeof e.message=="string"?o=or(e.message,t.truncate):r.unshift("message"),o=o?`: ${o}`:"",t.truncate-=o.length+5,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let a=ft(r.map(i=>[i,e[i]]),t,Bn);return`${n}${o}${a?` { ${a} }`:""}`}O(a0,"inspectObject");function i0([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}O(i0,"inspectAttribute");function Za(e,t){return ft(e,t,l0,`
7
+ `)}O(Za,"inspectNodeCollection");function l0(e,t){switch(e.nodeType){case 1:return Cc(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}O(l0,"inspectNode");function Cc(e,t){let r=e.getAttributeNames(),n=e.tagName.toLowerCase(),o=t.stylize(`<${n}`,"special"),a=t.stylize(">","special"),i=t.stylize(`</${n}>`,"special");t.truncate-=n.length*2+5;let l="";r.length>0&&(l+=" ",l+=ft(r.map(d=>[d,e.getAttribute(d)]),t,i0," ")),t.truncate-=l.length;let s=t.truncate,u=Za(e.children,t);return u&&u.length>s&&(u=`${Ln}(${e.children.length})`),`${o}${l}${a}${u}${i}`}O(Cc,"inspectHTML");var U2=typeof Symbol=="function"&&typeof Symbol.for=="function",Il=U2?Symbol.for("chai/inspect"):"@@chai/inspect",Ll=Symbol.for("nodejs.util.inspect.custom"),zp=new WeakMap,Hp={},Up={undefined:O((e,t)=>t.stylize("undefined","undefined"),"undefined"),null:O((e,t)=>t.stylize("null","null"),"null"),boolean:O((e,t)=>t.stylize(String(e),"boolean"),"boolean"),Boolean:O((e,t)=>t.stylize(String(e),"boolean"),"Boolean"),number:Ls,Number:Ls,bigint:Bs,BigInt:Bs,string:Ns,String:Ns,function:Is,Function:Is,symbol:js,Symbol:js,Array:Gh,Date:Yh,Map:Zh,Set:e0,RegExp:Jh,Promise:z2,WeakSet:O((e,t)=>t.stylize("WeakSet{…}","special"),"WeakSet"),WeakMap:O((e,t)=>t.stylize("WeakMap{…}","special"),"WeakMap"),Arguments:o0,Int8Array:Bt,Uint8Array:Bt,Uint8ClampedArray:Bt,Int16Array:Bt,Uint16Array:Bt,Int32Array:Bt,Uint32Array:Bt,Float32Array:Bt,Float64Array:Bt,Generator:O(()=>"","Generator"),DataView:O(()=>"","DataView"),ArrayBuffer:O(()=>"","ArrayBuffer"),Error:a0,HTMLCollection:Za,NodeList:Za},W2=O((e,t,r)=>Il in e&&typeof e[Il]=="function"?e[Il](t):Ll in e&&typeof e[Ll]=="function"?e[Ll](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&zp.has(e.constructor)?zp.get(e.constructor)(e,t):Hp[r]?Hp[r](e,t):"","inspectCustom"),V2=Object.prototype.toString;function Ja(e,t={}){let r=Wh(t,Ja),{customInspect:n}=r,o=e===null?"null":typeof e;if(o==="object"&&(o=V2.call(e).slice(8,-1)),o in Up)return Up[o](e,r);if(n&&e){let i=W2(e,r,o);if(i)return typeof i=="string"?i:Ja(i,r)}let a=e?Object.getPrototypeOf(e):!1;return a===Object.prototype||a===null?Io(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?Cc(e,r):"constructor"in e?e.constructor!==Object?n0(e,r):Io(e,r):e===Object(e)?Io(e,r):r.stylize(String(e),o)}O(Ja,"inspect");var{AsymmetricMatcher:q2,DOMCollection:G2,DOMElement:Y2,Immutable:K2,ReactElement:X2,ReactTestComponent:Z2}=Sc,Wp=[Z2,X2,Y2,G2,K2,q2];function Nn(e,t=10,{maxLength:r,...n}={}){let o=r??1e4,a;try{a=At(e,{maxDepth:t,escapeString:!1,plugins:Wp,...n})}catch{a=At(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:Wp,...n})}return a.length>=o&&t>1?Nn(e,Math.floor(Math.min(t,Number.MAX_SAFE_INTEGER)/2),{maxLength:r,...n}):a}O(Nn,"stringify");var J2=/%[sdjifoOc%]/g;function s0(...e){if(typeof e[0]!="string"){let a=[];for(let i=0;i<e.length;i++)a.push(bn(e[i],{depth:0,colors:!1}));return a.join(" ")}let t=e.length,r=1,n=e[0],o=String(n).replace(J2,a=>{if(a==="%%")return"%";if(r>=t)return a;switch(a){case"%s":{let i=e[r++];return typeof i=="bigint"?`${i.toString()}n`:typeof i=="number"&&i===0&&1/i<0?"-0":typeof i=="object"&&i!==null?typeof i.toString=="function"&&i.toString!==Object.prototype.toString?i.toString():bn(i,{depth:0,colors:!1}):String(i)}case"%d":{let i=e[r++];return typeof i=="bigint"?`${i.toString()}n`:Number(i).toString()}case"%i":{let i=e[r++];return typeof i=="bigint"?`${i.toString()}n`:Number.parseInt(String(i)).toString()}case"%f":return Number.parseFloat(String(e[r++])).toString();case"%o":return bn(e[r++],{showHidden:!0,showProxy:!0});case"%O":return bn(e[r++]);case"%c":return r++,"";case"%j":try{return JSON.stringify(e[r++])}catch(i){let l=i.message;if(l.includes("circular structure")||l.includes("cyclic structures")||l.includes("cyclic object"))return"[Circular]";throw i}default:return a}});for(let a=e[r];r<t;a=e[++r])a===null||typeof a!="object"?o+=` ${a}`:o+=` ${bn(a)}`;return o}O(s0,"format");function bn(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),Ja(e,t)}O(bn,"inspect");function u0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}O(u0,"getDefaultExportFromCjs");function c0(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}O(c0,"isFinalObj");function Qa(e){return Object.prototype.toString.apply(e).slice(8,-1)}O(Qa,"getType");function d0(e,t){let r=typeof t=="function"?t:n=>t.add(n);Object.getOwnPropertyNames(e).forEach(r),Object.getOwnPropertySymbols(e).forEach(r)}O(d0,"collectOwnProperties");function $c(e){let t=new Set;return c0(e)?[]:(d0(e,t),Array.from(t))}O($c,"getOwnProperties");var p0={forceWritable:!1};function Ms(e,t=p0){return ei(e,new WeakMap,t)}O(Ms,"deepClone");function ei(e,t,r=p0){let n,o;if(t.has(e))return t.get(e);if(Array.isArray(e)){for(o=Array.from({length:n=e.length}),t.set(e,o);n--;)o[n]=ei(e[n],t,r);return o}if(Object.prototype.toString.call(e)==="[object Object]"){o=Object.create(Object.getPrototypeOf(e)),t.set(e,o);let a=$c(e);for(let i of a){let l=Object.getOwnPropertyDescriptor(e,i);if(!l)continue;let s=ei(e[i],t,r);r.forceWritable?Object.defineProperty(o,i,{enumerable:l.enumerable,configurable:!0,writable:!0,value:s}):"get"in l?Object.defineProperty(o,i,{...l,get(){return s}}):Object.defineProperty(o,i,{...l,value:s})}return o}return e}O(ei,"clone");var Ue=-1,Ne=1,Se=0,f0=class{0;1;constructor(t,r){this[0]=t,this[1]=r}};O(f0,"Diff");var Ee=f0;function g0(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let r=0,n=Math.min(e.length,t.length),o=n,a=0;for(;r<o;)e.substring(a,o)===t.substring(a,o)?(r=o,a=r):n=o,o=Math.floor((n-r)/2+r);return o}O(g0,"diff_commonPrefix");function Ac(e,t){if(!e||!t||e.charAt(e.length-1)!==t.charAt(t.length-1))return 0;let r=0,n=Math.min(e.length,t.length),o=n,a=0;for(;r<o;)e.substring(e.length-o,e.length-a)===t.substring(t.length-o,t.length-a)?(r=o,a=r):n=o,o=Math.floor((n-r)/2+r);return o}O(Ac,"diff_commonSuffix");function zs(e,t){let r=e.length,n=t.length;if(r===0||n===0)return 0;r>n?e=e.substring(r-n):r<n&&(t=t.substring(0,r));let o=Math.min(r,n);if(e===t)return o;let a=0,i=1;for(;;){let l=e.substring(o-i),s=t.indexOf(l);if(s===-1)return a;i+=s,(s===0||e.substring(o-i)===t.substring(0,i))&&(a=i,i++)}}O(zs,"diff_commonOverlap_");function m0(e){let t=!1,r=[],n=0,o=null,a=0,i=0,l=0,s=0,u=0;for(;a<e.length;)e[a][0]===Se?(r[n++]=a,i=s,l=u,s=0,u=0,o=e[a][1]):(e[a][0]===Ne?s+=e[a][1].length:u+=e[a][1].length,o&&o.length<=Math.max(i,l)&&o.length<=Math.max(s,u)&&(e.splice(r[n-1],0,new Ee(Ue,o)),e[r[n-1]+1][0]=Ne,n--,n--,a=n>0?r[n-1]:-1,i=0,l=0,s=0,u=0,o=null,t=!0)),a++;for(t&&Dc(e),h0(e),a=1;a<e.length;){if(e[a-1][0]===Ue&&e[a][0]===Ne){let d=e[a-1][1],p=e[a][1],c=zs(d,p),f=zs(p,d);c>=f?(c>=d.length/2||c>=p.length/2)&&(e.splice(a,0,new Ee(Se,p.substring(0,c))),e[a-1][1]=d.substring(0,d.length-c),e[a+1][1]=p.substring(c),a++):(f>=d.length/2||f>=p.length/2)&&(e.splice(a,0,new Ee(Se,d.substring(0,f))),e[a-1][0]=Ne,e[a-1][1]=p.substring(0,p.length-f),e[a+1][0]=Ue,e[a+1][1]=d.substring(f),a++),a++}a++}}O(m0,"diff_cleanupSemantic");var Vp=/[^a-z0-9]/i,qp=/\s/,Gp=/[\r\n]/,Q2=/\n\r?\n$/,e$=/^\r?\n\r?\n/;function h0(e){let t=1;for(;t<e.length-1;){if(e[t-1][0]===Se&&e[t+1][0]===Se){let r=e[t-1][1],n=e[t][1],o=e[t+1][1],a=Ac(r,n);if(a){let d=n.substring(n.length-a);r=r.substring(0,r.length-a),n=d+n.substring(0,n.length-a),o=d+o}let i=r,l=n,s=o,u=Do(r,n)+Do(n,o);for(;n.charAt(0)===o.charAt(0);){r+=n.charAt(0),n=n.substring(1)+o.charAt(0),o=o.substring(1);let d=Do(r,n)+Do(n,o);d>=u&&(u=d,i=r,l=n,s=o)}e[t-1][1]!==i&&(i?e[t-1][1]=i:(e.splice(t-1,1),t--),e[t][1]=l,s?e[t+1][1]=s:(e.splice(t+1,1),t--))}t++}}O(h0,"diff_cleanupSemanticLossless");function Dc(e){e.push(new Ee(Se,""));let t=0,r=0,n=0,o="",a="",i;for(;t<e.length;)switch(e[t][0]){case Ne:n++,a+=e[t][1],t++;break;case Ue:r++,o+=e[t][1],t++;break;case Se:r+n>1?(r!==0&&n!==0&&(i=g0(a,o),i!==0&&(t-r-n>0&&e[t-r-n-1][0]===Se?e[t-r-n-1][1]+=a.substring(0,i):(e.splice(0,0,new Ee(Se,a.substring(0,i))),t++),a=a.substring(i),o=o.substring(i)),i=Ac(a,o),i!==0&&(e[t][1]=a.substring(a.length-i)+e[t][1],a=a.substring(0,a.length-i),o=o.substring(0,o.length-i))),t-=r+n,e.splice(t,r+n),o.length&&(e.splice(t,0,new Ee(Ue,o)),t++),a.length&&(e.splice(t,0,new Ee(Ne,a)),t++),t++):t!==0&&e[t-1][0]===Se?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,n=0,r=0,o="",a="";break}e[e.length-1][1]===""&&e.pop();let l=!1;for(t=1;t<e.length-1;)e[t-1][0]===Se&&e[t+1][0]===Se&&(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),l=!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),l=!0)),t++;l&&Dc(e)}O(Dc,"diff_cleanupMerge");function Do(e,t){if(!e||!t)return 6;let r=e.charAt(e.length-1),n=t.charAt(0),o=r.match(Vp),a=n.match(Vp),i=o&&r.match(qp),l=a&&n.match(qp),s=i&&r.match(Gp),u=l&&n.match(Gp),d=s&&e.match(Q2),p=u&&t.match(e$);return d||p?5:s||u?4:o&&!i&&l?3:i||l?2:o||a?1:0}O(Do,"diff_cleanupSemanticScore_");var y0="Compared values have no visual difference.",t$="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",ga={},Yp;function b0(){if(Yp)return ga;Yp=1,Object.defineProperty(ga,"__esModule",{value:!0}),ga.default=c;let e="diff-sequences",t=0,r=O((f,m,y,x,v)=>{let C=0;for(;f<m&&y<x&&v(f,y);)f+=1,y+=1,C+=1;return C},"countCommonItemsF"),n=O((f,m,y,x,v)=>{let C=0;for(;f<=m&&y<=x&&v(m,x);)m-=1,x-=1,C+=1;return C},"countCommonItemsR"),o=O((f,m,y,x,v,C,w)=>{let E=0,$=-f,A=C[E],S=A;C[E]+=r(A+1,m,x+A-$+1,y,v);let D=f<w?f:w;for(E+=1,$+=2;E<=D;E+=1,$+=2){if(E!==f&&S<C[E])A=C[E];else if(A=S+1,m<=A)return E-1;S=C[E],C[E]=A+r(A+1,m,x+A-$+1,y,v)}return w},"extendPathsF"),a=O((f,m,y,x,v,C,w)=>{let E=0,$=f,A=C[E],S=A;C[E]-=n(m,A-1,y,x+A-$-1,v);let D=f<w?f:w;for(E+=1,$-=2;E<=D;E+=1,$-=2){if(E!==f&&C[E]<S)A=C[E];else if(A=S-1,A<m)return E-1;S=C[E],C[E]=A-n(m,A-1,y,x+A-$-1,v)}return w},"extendPathsR"),i=O((f,m,y,x,v,C,w,E,$,A,S)=>{let D=x-m,F=y-m,k=v-x-F,_=-k-(f-1),I=-k+(f-1),L=t,j=f<E?f:E;for(let B=0,z=-f;B<=j;B+=1,z+=2){let q=B===0||B!==f&&L<w[B],Y=q?w[B]:L,W=q?Y:Y+1,G=D+W-z,J=r(W+1,y,G+1,v,C),Q=W+J;if(L=w[B],w[B]=Q,_<=z&&z<=I){let re=(f-1-(z+k))/2;if(re<=A&&$[re]-1<=Q){let ie=D+Y-(q?z+1:z-1),H=n(m,Y,x,ie,C),X=Y-H,Z=ie-H,le=X+1,me=Z+1;S.nChangePreceding=f-1,f-1===le+me-m-x?(S.aEndPreceding=m,S.bEndPreceding=x):(S.aEndPreceding=le,S.bEndPreceding=me),S.nCommonPreceding=H,H!==0&&(S.aCommonPreceding=le,S.bCommonPreceding=me),S.nCommonFollowing=J,J!==0&&(S.aCommonFollowing=W+1,S.bCommonFollowing=G+1);let Re=Q+1,ne=G+J+1;return S.nChangeFollowing=f-1,f-1===y+v-Re-ne?(S.aStartFollowing=y,S.bStartFollowing=v):(S.aStartFollowing=Re,S.bStartFollowing=ne),!0}}}return!1},"extendOverlappablePathsF"),l=O((f,m,y,x,v,C,w,E,$,A,S)=>{let D=v-y,F=y-m,k=v-x-F,_=k-f,I=k+f,L=t,j=f<A?f:A;for(let B=0,z=f;B<=j;B+=1,z-=2){let q=B===0||B!==f&&$[B]<L,Y=q?$[B]:L,W=q?Y:Y-1,G=D+W-z,J=n(m,W-1,x,G-1,C),Q=W-J;if(L=$[B],$[B]=Q,_<=z&&z<=I){let re=(f+(z-k))/2;if(re<=E&&Q-1<=w[re]){let ie=G-J;if(S.nChangePreceding=f,f===Q+ie-m-x?(S.aEndPreceding=m,S.bEndPreceding=x):(S.aEndPreceding=Q,S.bEndPreceding=ie),S.nCommonPreceding=J,J!==0&&(S.aCommonPreceding=Q,S.bCommonPreceding=ie),S.nChangeFollowing=f-1,f===1)S.nCommonFollowing=0,S.aStartFollowing=y,S.bStartFollowing=v;else{let H=D+Y-(q?z-1:z+1),X=r(Y,y,H,v,C);S.nCommonFollowing=X,X!==0&&(S.aCommonFollowing=Y,S.bCommonFollowing=H);let Z=Y+X,le=H+X;f-1===y+v-Z-le?(S.aStartFollowing=y,S.bStartFollowing=v):(S.aStartFollowing=Z,S.bStartFollowing=le)}return!0}}}return!1},"extendOverlappablePathsR"),s=O((f,m,y,x,v,C,w,E,$)=>{let A=x-m,S=v-y,D=y-m,F=v-x,k=F-D,_=D,I=D;if(w[0]=m-1,E[0]=y,k%2===0){let L=(f||k)/2,j=(D+F)/2;for(let B=1;B<=j;B+=1)if(_=o(B,y,v,A,C,w,_),B<L)I=a(B,m,x,S,C,E,I);else if(l(B,m,y,x,v,C,w,_,E,I,$))return}else{let L=((f||k)+1)/2,j=(D+F+1)/2,B=1;for(_=o(B,y,v,A,C,w,_),B+=1;B<=j;B+=1)if(I=a(B-1,m,x,S,C,E,I),B<L)_=o(B,y,v,A,C,w,_);else if(i(B,m,y,x,v,C,w,_,E,I,$))return}throw new Error(`${e}: no overlap aStart=${m} aEnd=${y} bStart=${x} bEnd=${v}`)},"divide"),u=O((f,m,y,x,v,C,w,E,$,A)=>{if(v-x<y-m){if(C=!C,C&&w.length===1){let{foundSubsequence:re,isCommon:ie}=w[0];w[1]={foundSubsequence:O((H,X,Z)=>{re(H,Z,X)},"foundSubsequence"),isCommon:O((H,X)=>ie(X,H),"isCommon")}}let J=m,Q=y;m=x,y=v,x=J,v=Q}let{foundSubsequence:S,isCommon:D}=w[C?1:0];s(f,m,y,x,v,D,E,$,A);let{nChangePreceding:F,aEndPreceding:k,bEndPreceding:_,nCommonPreceding:I,aCommonPreceding:L,bCommonPreceding:j,nCommonFollowing:B,aCommonFollowing:z,bCommonFollowing:q,nChangeFollowing:Y,aStartFollowing:W,bStartFollowing:G}=A;m<k&&x<_&&u(F,m,k,x,_,C,w,E,$,A),I!==0&&S(I,L,j),B!==0&&S(B,z,q),W<y&&G<v&&u(Y,W,y,G,v,C,w,E,$,A)},"findSubsequences"),d=O((f,m)=>{if(typeof m!="number")throw new TypeError(`${e}: ${f} typeof ${typeof m} is not a number`);if(!Number.isSafeInteger(m))throw new RangeError(`${e}: ${f} value ${m} is not a safe integer`);if(m<0)throw new RangeError(`${e}: ${f} value ${m} is a negative integer`)},"validateLength"),p=O((f,m)=>{let y=typeof m;if(y!=="function")throw new TypeError(`${e}: ${f} typeof ${y} is not a function`)},"validateCallback");function c(f,m,y,x){d("aLength",f),d("bLength",m),p("isCommon",y),p("foundSubsequence",x);let v=r(0,f,0,m,y);if(v!==0&&x(v,0,0),f!==v||m!==v){let C=v,w=v,E=n(C,f-1,w,m-1,y),$=f-E,A=m-E,S=v+E;f!==S&&m!==S&&u(0,C,$,w,A,!1,[{foundSubsequence:x,isCommon:y}],[t],[t],{aCommonFollowing:t,aCommonPreceding:t,aEndPreceding:t,aStartFollowing:t,bCommonFollowing:t,bCommonPreceding:t,bEndPreceding:t,bStartFollowing:t,nChangeFollowing:t,nChangePreceding:t,nCommonFollowing:t,nCommonPreceding:t}),E!==0&&x(E,$,A)}}return O(c,"diffSequence"),ga}O(b0,"requireBuild");var r$=b0(),v0=u0(r$);function x0(e,t){return e.replace(/\s+$/,r=>t(r))}O(x0,"formatTrailingSpaces");function Bi(e,t,r,n,o,a){return e.length!==0?r(`${n} ${x0(e,o)}`):n!==" "?r(n):t&&a.length!==0?r(`${n} ${a}`):""}O(Bi,"printDiffLine");function kc(e,t,{aColor:r,aIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:a}){return Bi(e,t,r,n,o,a)}O(kc,"printDeleteLine");function Oc(e,t,{bColor:r,bIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:a}){return Bi(e,t,r,n,o,a)}O(Oc,"printInsertLine");function Fc(e,t,{commonColor:r,commonIndicator:n,commonLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:a}){return Bi(e,t,r,n,o,a)}O(Fc,"printCommonLine");function Hs(e,t,r,n,{patchColor:o}){return o(`@@ -${e+1},${t-e} +${r+1},${n-r} @@`)}O(Hs,"createPatchMark");function E0(e,t){let r=e.length,n=t.contextLines,o=n+n,a=r,i=!1,l=0,s=0;for(;s!==r;){let E=s;for(;s!==r&&e[s][0]===Se;)s+=1;if(E!==s)if(E===0)s>n&&(a-=s-n,i=!0);else if(s===r){let $=s-E;$>n&&(a-=$-n,i=!0)}else{let $=s-E;$>o&&(a-=$-o,l+=1)}for(;s!==r&&e[s][0]!==Se;)s+=1}let u=l!==0||i;l!==0?a+=l+1:i&&(a+=1);let d=a-1,p=[],c=0;u&&p.push("");let f=0,m=0,y=0,x=0,v=O(E=>{let $=p.length;p.push(Fc(E,$===0||$===d,t)),y+=1,x+=1},"pushCommonLine"),C=O(E=>{let $=p.length;p.push(kc(E,$===0||$===d,t)),y+=1},"pushDeleteLine"),w=O(E=>{let $=p.length;p.push(Oc(E,$===0||$===d,t)),x+=1},"pushInsertLine");for(s=0;s!==r;){let E=s;for(;s!==r&&e[s][0]===Se;)s+=1;if(E!==s)if(E===0){s>n&&(E=s-n,f=E,m=E,y=f,x=m);for(let $=E;$!==s;$+=1)v(e[$][1])}else if(s===r){let $=s-E>n?E+n:s;for(let A=E;A!==$;A+=1)v(e[A][1])}else{let $=s-E;if($>o){let A=E+n;for(let D=E;D!==A;D+=1)v(e[D][1]);p[c]=Hs(f,y,m,x,t),c=p.length,p.push("");let S=$-o;f=y+S,m=x+S,y=f,x=m;for(let D=s-n;D!==s;D+=1)v(e[D][1])}else for(let A=E;A!==s;A+=1)v(e[A][1])}for(;s!==r&&e[s][0]===Ue;)C(e[s][1]),s+=1;for(;s!==r&&e[s][0]===Ne;)w(e[s][1]),s+=1}return u&&(p[c]=Hs(f,y,m,x,t)),p.join(`
8
+ `)}O(E0,"joinAlignedDiffsNoExpand");function w0(e,t){return e.map((r,n,o)=>{let a=r[1],i=n===0||n===o.length-1;switch(r[0]){case Ue:return kc(a,i,t);case Ne:return Oc(a,i,t);default:return Fc(a,i,t)}}).join(`
9
+ `)}O(w0,"joinAlignedDiffsExpand");var Bl=O(e=>e,"noColor"),S0=5,n$=0;function C0(){return{aAnnotation:"Expected",aColor:tr.green,aIndicator:"-",bAnnotation:"Received",bColor:tr.red,bIndicator:"+",changeColor:tr.inverse,changeLineTrailingSpaceColor:Bl,commonColor:tr.dim,commonIndicator:" ",commonLineTrailingSpaceColor:Bl,compareKeys:void 0,contextLines:S0,emptyFirstOrLastLinePlaceholder:"",expand:!1,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:tr.yellow,printBasicPrototype:!1,truncateThreshold:n$,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:Bl}}O(C0,"getDefaultOptions");function $0(e){return e&&typeof e=="function"?e:void 0}O($0,"getCompareKeys");function A0(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0?e:S0}O(A0,"getContextLines");function kr(e={}){return{...C0(),...e,compareKeys:$0(e.compareKeys),contextLines:A0(e.contextLines)}}O(kr,"normalizeDiffOptions");function Wr(e){return e.length===1&&e[0].length===0}O(Wr,"isEmptyString");function D0(e){let t=0,r=0;return e.forEach(n=>{switch(n[0]){case Ue:t+=1;break;case Ne:r+=1;break}}),{a:t,b:r}}O(D0,"countChanges");function k0({aAnnotation:e,aColor:t,aIndicator:r,bAnnotation:n,bColor:o,bIndicator:a,includeChangeCounts:i,omitAnnotationLines:l},s){if(l)return"";let u="",d="";if(i){let f=String(s.a),m=String(s.b),y=n.length-e.length,x=" ".repeat(Math.max(0,y)),v=" ".repeat(Math.max(0,-y)),C=m.length-f.length,w=" ".repeat(Math.max(0,C)),E=" ".repeat(Math.max(0,-C));u=`${x} ${r} ${w}${f}`,d=`${v} ${a} ${E}${m}`}let p=`${r} ${e}${u}`,c=`${a} ${n}${d}`;return`${t(p)}
10
+ ${o(c)}
11
+
12
+ `}O(k0,"printAnnotation");function Ni(e,t,r){return k0(r,D0(e))+(r.expand?w0(e,r):E0(e,r))+(t?r.truncateAnnotationColor(`
13
+ ${r.truncateAnnotation}`):"")}O(Ni,"printDiffLines");function ta(e,t,r){let n=kr(r),[o,a]=_c(Wr(e)?[]:e,Wr(t)?[]:t,n);return Ni(o,a,n)}O(ta,"diffLinesUnified");function O0(e,t,r,n,o){if(Wr(e)&&Wr(r)&&(e=[],r=[]),Wr(t)&&Wr(n)&&(t=[],n=[]),e.length!==r.length||t.length!==n.length)return ta(e,t,o);let[a,i]=_c(r,n,o),l=0,s=0;return a.forEach(u=>{switch(u[0]){case Ue:u[1]=e[l],l+=1;break;case Ne:u[1]=t[s],s+=1;break;default:u[1]=t[s],l+=1,s+=1}}),Ni(a,i,kr(o))}O(O0,"diffLinesUnified2");function _c(e,t,r){let n=r?.truncateThreshold??!1,o=Math.max(Math.floor(r?.truncateThreshold??0),0),a=n?Math.min(e.length,o):e.length,i=n?Math.min(t.length,o):t.length,l=a!==e.length||i!==t.length,s=O((c,f)=>e[c]===t[f],"isCommon"),u=[],d=0,p=0;for(v0(a,i,s,O((c,f,m)=>{for(;d!==f;d+=1)u.push(new Ee(Ue,e[d]));for(;p!==m;p+=1)u.push(new Ee(Ne,t[p]));for(;c!==0;c-=1,d+=1,p+=1)u.push(new Ee(Se,t[p]))},"foundSubsequence"));d!==a;d+=1)u.push(new Ee(Ue,e[d]));for(;p!==i;p+=1)u.push(new Ee(Ne,t[p]));return[u,l]}O(_c,"diffLinesRaw");function Us(e){if(e===void 0)return"undefined";if(e===null)return"null";if(Array.isArray(e))return"array";if(typeof e=="boolean")return"boolean";if(typeof e=="function")return"function";if(typeof e=="number")return"number";if(typeof e=="string")return"string";if(typeof e=="bigint")return"bigint";if(typeof e=="object"){if(e!=null){if(e.constructor===RegExp)return"regexp";if(e.constructor===Map)return"map";if(e.constructor===Set)return"set";if(e.constructor===Date)return"date"}return"object"}else if(typeof e=="symbol")return"symbol";throw new Error(`value of unknown type: ${e}`)}O(Us,"getType");function Ws(e){return e.includes(`\r
14
+ `)?`\r
15
+ `:`
16
+ `}O(Ws,"getNewLineSymbol");function F0(e,t,r){let n=r?.truncateThreshold??!1,o=Math.max(Math.floor(r?.truncateThreshold??0),0),a=e.length,i=t.length;if(n){let c=e.includes(`
17
+ `),f=t.includes(`
18
+ `),m=Ws(e),y=Ws(t),x=c?`${e.split(m,o).join(m)}
19
+ `:e,v=f?`${t.split(y,o).join(y)}
20
+ `:t;a=x.length,i=v.length}let l=a!==e.length||i!==t.length,s=O((c,f)=>e[c]===t[f],"isCommon"),u=0,d=0,p=[];return v0(a,i,s,O((c,f,m)=>{u!==f&&p.push(new Ee(Ue,e.slice(u,f))),d!==m&&p.push(new Ee(Ne,t.slice(d,m))),u=f+c,d=m+c,p.push(new Ee(Se,t.slice(m,d)))},"foundSubsequence")),u!==a&&p.push(new Ee(Ue,e.slice(u))),d!==i&&p.push(new Ee(Ne,t.slice(d))),[p,l]}O(F0,"diffStrings");function _0(e,t,r){return t.reduce((n,o)=>n+(o[0]===Se?o[1]:o[0]===e&&o[1].length!==0?r(o[1]):""),"")}O(_0,"concatenateRelevantDiffs");var T0=class{op;line;lines;changeColor;constructor(t,r){this.op=t,this.line=[],this.lines=[],this.changeColor=r}pushSubstring(t){this.pushDiff(new Ee(this.op,t))}pushLine(){this.lines.push(this.line.length!==1?new Ee(this.op,_0(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new Ee(this.op,this.line[0][1])),this.line.length=0}isLineEmpty(){return this.line.length===0}pushDiff(t){this.line.push(t)}align(t){let r=t[1];if(r.includes(`
21
+ `)){let n=r.split(`
22
+ `),o=n.length-1;n.forEach((a,i)=>{i<o?(this.pushSubstring(a),this.pushLine()):a.length!==0&&this.pushSubstring(a)})}else this.pushDiff(t)}moveLinesTo(t){this.isLineEmpty()||this.pushLine(),t.push(...this.lines),this.lines.length=0}};O(T0,"ChangeBuffer");var Kp=T0,R0=class{deleteBuffer;insertBuffer;lines;constructor(t,r){this.deleteBuffer=t,this.insertBuffer=r,this.lines=[]}pushDiffCommonLine(t){this.lines.push(t)}pushDiffChangeLines(t){let r=t[1].length===0;(!r||this.deleteBuffer.isLineEmpty())&&this.deleteBuffer.pushDiff(t),(!r||this.insertBuffer.isLineEmpty())&&this.insertBuffer.pushDiff(t)}flushChangeLines(){this.deleteBuffer.moveLinesTo(this.lines),this.insertBuffer.moveLinesTo(this.lines)}align(t){let r=t[0],n=t[1];if(n.includes(`
23
+ `)){let o=n.split(`
24
+ `),a=o.length-1;o.forEach((i,l)=>{if(l===0){let s=new Ee(r,i);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(s)):(this.pushDiffChangeLines(s),this.flushChangeLines())}else l<a?this.pushDiffCommonLine(new Ee(r,i)):i.length!==0&&this.pushDiffChangeLines(new Ee(r,i))})}else this.pushDiffChangeLines(t)}getLines(){return this.flushChangeLines(),this.lines}};O(R0,"CommonBuffer");var o$=R0;function P0(e,t){let r=new Kp(Ue,t),n=new Kp(Ne,t),o=new o$(r,n);return e.forEach(a=>{switch(a[0]){case Ue:r.align(a);break;case Ne:n.align(a);break;default:o.align(a)}}),o.getLines()}O(P0,"getAlignedDiffs");function I0(e,t){if(t){let r=e.length-1;return e.some((n,o)=>n[0]===Se&&(o!==r||n[1]!==`
25
+ `))}return e.some(r=>r[0]===Se)}O(I0,"hasCommonDiff");function L0(e,t,r){if(e!==t&&e.length!==0&&t.length!==0){let n=e.includes(`
26
+ `)||t.includes(`
27
+ `),[o,a]=Tc(n?`${e}
28
+ `:e,n?`${t}
29
+ `:t,!0,r);if(I0(o,n)){let i=kr(r),l=P0(o,i.changeColor);return Ni(l,a,i)}}return ta(e.split(`
30
+ `),t.split(`
31
+ `),r)}O(L0,"diffStringsUnified");function Tc(e,t,r,n){let[o,a]=F0(e,t,n);return r&&m0(o),[o,a]}O(Tc,"diffStringsRaw");function ti(e,t){let{commonColor:r}=kr(t);return r(e)}O(ti,"getCommonMessage");var{AsymmetricMatcher:a$,DOMCollection:i$,DOMElement:l$,Immutable:s$,ReactElement:u$,ReactTestComponent:c$}=Sc,B0=[c$,u$,l$,i$,s$,a$,Sc.Error],Vs={maxDepth:20,plugins:B0},N0={callToJSON:!1,maxDepth:8,plugins:B0};function j0(e,t,r){if(Object.is(e,t))return"";let n=Us(e),o=n,a=!1;if(n==="object"&&typeof e.asymmetricMatch=="function"){if(e.$$typeof!==Symbol.for("jest.asymmetricMatcher")||typeof e.getExpectedType!="function")return;o=e.getExpectedType(),a=o==="string"}if(o!==Us(t)){let i=function(w){return w.length<=x?w:`${w.slice(0,x)}...`};O(i,"truncate");let{aAnnotation:l,aColor:s,aIndicator:u,bAnnotation:d,bColor:p,bIndicator:c}=kr(r),f=ri(N0,r),m=At(e,f),y=At(t,f),x=1e5;m=i(m),y=i(y);let v=`${s(`${u} ${l}:`)}
32
+ ${m}`,C=`${p(`${c} ${d}:`)}
33
+ ${y}`;return`${v}
34
+
35
+ ${C}`}if(!a)switch(n){case"string":return ta(e.split(`
36
+ `),t.split(`
37
+ `),r);case"boolean":case"number":return M0(e,t,r);case"map":return La(qs(e),qs(t),r);case"set":return La(Gs(e),Gs(t),r);default:return La(e,t,r)}}O(j0,"diff");function M0(e,t,r){let n=At(e,Vs),o=At(t,Vs);return n===o?"":ta(n.split(`
38
+ `),o.split(`
39
+ `),r)}O(M0,"comparePrimitive");function qs(e){return new Map(Array.from(e.entries()).sort())}O(qs,"sortMap");function Gs(e){return new Set(Array.from(e.values()).sort())}O(Gs,"sortSet");function La(e,t,r){let n,o=!1;try{let i=ri(Vs,r);n=Ys(e,t,i,r)}catch{o=!0}let a=ti(y0,r);if(n===void 0||n===a){let i=ri(N0,r);n=Ys(e,t,i,r),n!==a&&!o&&(n=`${ti(t$,r)}
40
+
41
+ ${n}`)}return n}O(La,"compareObjects");function ri(e,t){let{compareKeys:r,printBasicPrototype:n,maxDepth:o}=kr(t);return{...e,compareKeys:r,printBasicPrototype:n,maxDepth:o??e.maxDepth}}O(ri,"getFormatOptions");function Ys(e,t,r,n){let o={...r,indent:0},a=At(e,o),i=At(t,o);if(a===i)return ti(y0,n);{let l=At(e,r),s=At(t,r);return O0(l.split(`
42
+ `),s.split(`
43
+ `),a.split(`
44
+ `),i.split(`
45
+ `),n)}}O(Ys,"getObjectsDifference");var Xp=2e4;function Ks(e){return Qa(e)==="Object"&&typeof e.asymmetricMatch=="function"}O(Ks,"isAsymmetricMatcher");function Xs(e,t){let r=Qa(e),n=Qa(t);return r===n&&(r==="Object"||r==="Array")}O(Xs,"isReplaceable");function z0(e,t,r){let{aAnnotation:n,bAnnotation:o}=kr(r);if(typeof t=="string"&&typeof e=="string"&&t.length>0&&e.length>0&&t.length<=Xp&&e.length<=Xp&&t!==e){if(t.includes(`
46
+ `)||e.includes(`
47
+ `))return L0(t,e,r);let[u]=Tc(t,e,!0),d=u.some(m=>m[0]===Se),p=H0(n,o),c=p(n)+W0(Zs(u,Ue,d)),f=p(o)+U0(Zs(u,Ne,d));return`${c}
48
+ ${f}`}let a=Ms(t,{forceWritable:!0}),i=Ms(e,{forceWritable:!0}),{replacedExpected:l,replacedActual:s}=Rc(i,a);return j0(l,s,r)}O(z0,"printDiffOrStringify");function Rc(e,t,r=new WeakSet,n=new WeakSet){return e instanceof Error&&t instanceof Error&&typeof e.cause<"u"&&typeof t.cause>"u"?(delete e.cause,{replacedActual:e,replacedExpected:t}):Xs(e,t)?r.has(e)||n.has(t)?{replacedActual:e,replacedExpected:t}:(r.add(e),n.add(t),$c(t).forEach(o=>{let a=t[o],i=e[o];if(Ks(a))a.asymmetricMatch(i)&&(e[o]=a);else if(Ks(i))i.asymmetricMatch(a)&&(t[o]=i);else if(Xs(i,a)){let l=Rc(i,a,r,n);e[o]=l.replacedActual,t[o]=l.replacedExpected}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}O(Rc,"replaceAsymmetricMatcher");function H0(...e){let t=e.reduce((r,n)=>n.length>r?n.length:r,0);return r=>`${r}: ${" ".repeat(t-r.length)}`}O(H0,"getLabelPrinter");var d$="·";function Pc(e){return e.replace(/\s+$/gm,t=>d$.repeat(t.length))}O(Pc,"replaceTrailingSpaces");function U0(e){return tr.red(Pc(Nn(e)))}O(U0,"printReceived");function W0(e){return tr.green(Pc(Nn(e)))}O(W0,"printExpected");function Zs(e,t,r){return e.reduce((n,o)=>n+(o[0]===Se?o[1]:o[0]===t?r?tr.inverse(o[1]):o[1]:""),"")}O(Zs,"getCommonAndChangedSubstrings");var p$="@@__IMMUTABLE_RECORD__@@",f$="@@__IMMUTABLE_ITERABLE__@@";function V0(e){return e&&(e[f$]||e[p$])}O(V0,"isImmutable");var g$=Object.getPrototypeOf({});function Js(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e=="string"?`<unserializable>: ${e}`:"<unserializable>"}O(Js,"getUnserializableMessage");function er(e,t=new WeakMap){if(!e||typeof e=="string")return e;if(e instanceof Error&&"toJSON"in e&&typeof e.toJSON=="function"){let r=e.toJSON();return r&&r!==e&&typeof r=="object"&&(typeof e.message=="string"&&ko(()=>r.message??(r.message=e.message)),typeof e.stack=="string"&&ko(()=>r.stack??(r.stack=e.stack)),typeof e.name=="string"&&ko(()=>r.name??(r.name=e.name)),e.cause!=null&&ko(()=>r.cause??(r.cause=er(e.cause,t)))),er(r,t)}if(typeof e=="function")return`Function<${e.name||"anonymous"}>`;if(typeof e=="symbol")return e.toString();if(typeof e!="object")return e;if(typeof Buffer<"u"&&e instanceof Buffer)return`<Buffer(${e.length}) ...>`;if(typeof Uint8Array<"u"&&e instanceof Uint8Array)return`<Uint8Array(${e.length}) ...>`;if(V0(e))return er(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()} ${s0(e.sample)}`;if(typeof e.toJSON=="function")return er(e.toJSON(),t);if(t.has(e))return t.get(e);if(Array.isArray(e)){let r=new Array(e.length);return t.set(e,r),e.forEach((n,o)=>{try{r[o]=er(n,t)}catch(a){r[o]=Js(a)}}),r}else{let r=Object.create(null);t.set(e,r);let n=e;for(;n&&n!==g$;)Object.getOwnPropertyNames(n).forEach(o=>{if(!(o in r))try{r[o]=er(e[o],t)}catch(a){delete r[o],r[o]=Js(a)}}),n=Object.getPrototypeOf(n);return r}}O(er,"serializeValue");function ko(e){try{return e()}catch{}}O(ko,"safe");function q0(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}O(q0,"normalizeErrorMessage");function Ic(e,t,r=new WeakSet){if(!e||typeof e!="object")return{message:String(e)};let n=e;(n.showDiff||n.showDiff===void 0&&n.expected!==void 0&&n.actual!==void 0)&&(n.diff=z0(n.actual,n.expected,{...t,...n.diffOptions})),"expected"in n&&typeof n.expected!="string"&&(n.expected=Nn(n.expected,10)),"actual"in n&&typeof n.actual!="string"&&(n.actual=Nn(n.actual,10));try{typeof n.message=="string"&&(n.message=q0(n.message))}catch{}try{!r.has(n)&&typeof n.cause=="object"&&(r.add(n),n.cause=Ic(n.cause,t,r))}catch{}try{return er(n)}catch(o){return er(new Error(`Failed to fully serialize error: ${o?.message}
49
+ Inner error message: ${n?.message}`))}}O(Ic,"processError");var Gt={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"},Nl=globalThis.__STORYBOOK_ADDONS_PREVIEW,m$=new Error("This function ran after the play function completed. Did you forget to `await` it?"),Zp=O(e=>Object.prototype.toString.call(e)==="[object Object]","isObject"),h$=O(e=>Object.prototype.toString.call(e)==="[object Module]","isModule"),y$=O(e=>{if(!Zp(e)&&!h$(e))return!1;if(e.constructor===void 0)return!0;let t=e.constructor.prototype;return!!Zp(t)},"isInstrumentable"),b$=O(e=>{try{return new e.constructor}catch{return{}}},"construct"),jl=O(()=>({renderPhase:"preparing",isDebugging:!1,isPlaying:!1,isLocked:!1,cursor:0,calls:[],shadowCalls:[],callRefsByResult:new Map,chainedCallIds:new Set,ancestors:[],playUntil:void 0,resolvers:{},syncTimeout:void 0}),"getInitialState"),Jp=O((e,t=!1)=>{let r=(t?e.shadowCalls:e.calls).filter(o=>o.retain);if(!r.length)return;let n=new Map(Array.from(e.callRefsByResult.entries()).filter(([,o])=>o.retain));return{cursor:r.length,calls:r,callRefsByResult:n}},"getRetainedState"),G0=class{constructor(){this.detached=!1,this.initialized=!1,this.state={},this.loadParentWindowState=O(()=>{try{this.state=dt.window?.parent?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__||{}}catch{this.detached=!0}},"loadParentWindowState"),this.updateParentWindowState=O(()=>{try{dt.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state}catch{this.detached=!0}},"updateParentWindowState"),this.loadParentWindowState();let t=O(({storyId:s,renderPhase:u,isPlaying:d=!0,isDebugging:p=!1})=>{let c=this.getState(s);this.setState(s,{...jl(),...Jp(c,p),renderPhase:u||c.renderPhase,shadowCalls:p?c.shadowCalls:[],chainedCallIds:p?c.chainedCallIds:new Set,playUntil:p?c.playUntil:void 0,isPlaying:d,isDebugging:p}),this.sync(s)},"resetState"),r=O(s=>({storyId:u,playUntil:d})=>{this.getState(u).isDebugging||this.setState(u,({calls:c})=>({calls:[],shadowCalls:c.map(f=>({...f,status:"waiting"})),isDebugging:!0}));let p=this.getLog(u);this.setState(u,({shadowCalls:c})=>{if(d||!p.length)return{playUntil:d};let f=c.findIndex(m=>m.id===p[0].callId);return{playUntil:c.slice(0,f).filter(m=>m.interceptable&&!m.ancestors?.length).slice(-1)[0]?.id}}),s.emit(Op,{storyId:u,isDebugging:!0})},"start"),n=O(s=>({storyId:u})=>{let d=this.getLog(u).filter(c=>!c.ancestors?.length),p=d.reduceRight((c,f,m)=>c>=0||f.status==="waiting"?c:m,-1);r(s)({storyId:u,playUntil:d[p-1]?.callId})},"back"),o=O(s=>({storyId:u,callId:d})=>{let{calls:p,shadowCalls:c,resolvers:f}=this.getState(u),m=p.find(({id:x})=>x===d),y=c.find(({id:x})=>x===d);if(!m&&y&&Object.values(f).length>0){let x=this.getLog(u).find(v=>v.status==="waiting")?.callId;y.id!==x&&this.setState(u,{playUntil:y.id}),Object.values(f).forEach(v=>v())}else r(s)({storyId:u,playUntil:d})},"goto"),a=O(s=>({storyId:u})=>{let{resolvers:d}=this.getState(u);if(Object.values(d).length>0)Object.values(d).forEach(p=>p());else{let p=this.getLog(u).find(c=>c.status==="waiting")?.callId;p?r(s)({storyId:u,playUntil:p}):i({storyId:u})}},"next"),i=O(({storyId:s})=>{this.setState(s,{playUntil:void 0,isDebugging:!1}),Object.values(this.getState(s).resolvers).forEach(u=>u())},"end"),l=O(({storyId:s,newPhase:u})=>{let{isDebugging:d}=this.getState(s);if(u==="preparing"&&d)return t({storyId:s,renderPhase:u});if(u==="playing")return t({storyId:s,renderPhase:u,isDebugging:d});u==="played"?this.setState(s,{renderPhase:u,isLocked:!1,isPlaying:!1,isDebugging:!1}):u==="errored"?this.setState(s,{renderPhase:u,isLocked:!1,isPlaying:!1}):u==="aborted"?this.setState(s,{renderPhase:u,isLocked:!0,isPlaying:!1}):this.setState(s,{renderPhase:u}),this.sync(s)},"renderPhaseChanged");Nl&&Nl.ready().then(()=>{this.channel=Nl.getChannel(),this.channel.on(Op,t),this.channel.on(VC,l),this.channel.on(WC,()=>{this.initialized?this.cleanup():this.initialized=!0}),this.channel.on(Gt.START,r(this.channel)),this.channel.on(Gt.BACK,n(this.channel)),this.channel.on(Gt.GOTO,o(this.channel)),this.channel.on(Gt.NEXT,a(this.channel)),this.channel.on(Gt.END,i)})}getState(t){return this.state[t]||jl()}setState(t,r){if(t){let n=this.getState(t),o=typeof r=="function"?r(n):r;this.state={...this.state,[t]:{...n,...o}},this.updateParentWindowState()}}cleanup(){this.state=Object.entries(this.state).reduce((r,[n,o])=>{let a=Jp(o);return a&&(r[n]=Object.assign(jl(),a)),r},{});let t={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:[]};this.channel?.emit(Gt.SYNC,t),this.updateParentWindowState()}getLog(t){let{calls:r,shadowCalls:n}=this.getState(t),o=[...n];r.forEach((i,l)=>{o[l]=i});let a=new Set;return o.reduceRight((i,l)=>(l.args.forEach(s=>{s?.__callId__&&a.add(s.__callId__)}),l.path.forEach(s=>{s.__callId__&&a.add(s.__callId__)}),(l.interceptable||l.exception)&&!a.has(l.id)&&(i.unshift({callId:l.id,status:l.status,ancestors:l.ancestors}),a.add(l.id)),i),[])}instrument(t,r,n=0){if(!y$(t))return t;let{mutate:o=!1,path:a=[]}=r,i=r.getKeys?r.getKeys(t,n):Object.keys(t);return n+=1,i.reduce((l,s)=>{let u=Y0(t,s);if(typeof u?.get=="function"){if(u.configurable){let p=O(()=>u?.get?.bind(t)?.(),"getter");Object.defineProperty(l,s,{get:O(()=>this.instrument(p(),{...r,path:a.concat(s)},n),"get")})}return l}let d=t[s];return typeof d!="function"?(l[s]=this.instrument(d,{...r,path:a.concat(s)},n),l):"__originalFn__"in d&&typeof d.__originalFn__=="function"?(l[s]=d,l):(l[s]=(...p)=>this.track(s,d,t,p,r),l[s].__originalFn__=d,Object.defineProperty(l[s],"name",{value:s,writable:!1}),Object.keys(d).length>0&&Object.assign(l[s],this.instrument({...d},{...r,path:a.concat(s)},n)),l)},o?t:b$(t))}track(t,r,n,o,a){let i=o?.[0]?.__storyId__||dt.__STORYBOOK_PREVIEW__?.selectionStore?.selection?.storyId,{cursor:l,ancestors:s}=this.getState(i);this.setState(i,{cursor:l+1});let u=`${s.slice(-1)[0]||i} [${l}] ${t}`,{path:d=[],intercept:p=!1,retain:c=!1}=a,f=typeof p=="function"?p(t,d):p,m={id:u,cursor:l,storyId:i,ancestors:s,path:d,method:t,args:o,interceptable:f,retain:c},y=(f&&!s.length?this.intercept:this.invoke).call(this,r,n,m,a);return this.instrument(y,{...a,mutate:!0,path:[{__callId__:m.id}]})}intercept(t,r,n,o){let{chainedCallIds:a,isDebugging:i,playUntil:l}=this.getState(n.storyId),s=a.has(n.id);return!i||s||l?(l===n.id&&this.setState(n.storyId,{playUntil:void 0}),this.invoke(t,r,n,o)):new Promise(u=>{this.setState(n.storyId,({resolvers:d})=>({isLocked:!1,resolvers:{...d,[n.id]:u}}))}).then(()=>(this.setState(n.storyId,u=>{let{[n.id]:d,...p}=u.resolvers;return{isLocked:!0,resolvers:p}}),this.invoke(t,r,n,o)))}invoke(t,r,n,o){let{callRefsByResult:a,renderPhase:i}=this.getState(n.storyId),l=25,s=O((p,c,f)=>{if(f.includes(p))return"[Circular]";if(f=[...f,p],c>l)return"...";if(a.has(p))return a.get(p);if(p instanceof Array)return p.map(m=>s(m,++c,f));if(p instanceof Date)return{__date__:{value:p.toISOString()}};if(p instanceof Error){let{name:m,message:y,stack:x}=p;return{__error__:{name:m,message:y,stack:x}}}if(p instanceof RegExp){let{flags:m,source:y}=p;return{__regexp__:{flags:m,source:y}}}if(p instanceof dt.window?.HTMLElement){let{prefix:m,localName:y,id:x,classList:v,innerText:C}=p,w=Array.from(v);return{__element__:{prefix:m,localName:y,id:x,classNames:w,innerText:C}}}return typeof p=="function"?{__function__:{name:"getMockName"in p?p.getMockName():p.name}}:typeof p=="symbol"?{__symbol__:{description:p.description}}:typeof p=="object"&&p?.constructor?.name&&p?.constructor?.name!=="Object"?{__class__:{name:p.constructor.name}}:Object.prototype.toString.call(p)==="[object Object]"?Object.fromEntries(Object.entries(p).map(([m,y])=>[m,s(y,++c,f)])):p},"serializeValues"),u={...n,args:n.args.map(p=>s(p,0,[]))};n.path.forEach(p=>{p?.__callId__&&this.setState(n.storyId,({chainedCallIds:c})=>({chainedCallIds:new Set(Array.from(c).concat(p.__callId__))}))});let d=O(p=>{if(p instanceof Error){let{name:c,message:f,stack:m,callId:y=n.id}=p,{showDiff:x=void 0,diff:v=void 0,actual:C=void 0,expected:w=void 0}=p.name==="AssertionError"?Ic(p):p,E={name:c,message:f,stack:m,callId:y,showDiff:x,diff:v,actual:C,expected:w};if(this.update({...u,status:"error",exception:E}),this.setState(n.storyId,$=>({callRefsByResult:new Map([...Array.from($.callRefsByResult.entries()),[p,{__callId__:n.id,retain:n.retain}]])})),n.ancestors?.length)throw Object.prototype.hasOwnProperty.call(p,"callId")||Object.defineProperty(p,"callId",{value:n.id}),p}throw p},"handleException");try{if(i==="played"&&!n.retain)throw m$;let p=(o.getArgs?o.getArgs(n,this.getState(n.storyId)):n.args).map(f=>typeof f!="function"||K0(f)||Object.keys(f).length?f:(...m)=>{let{cursor:y,ancestors:x}=this.getState(n.storyId);this.setState(n.storyId,{cursor:0,ancestors:[...x,n.id]});let v=O(()=>this.setState(n.storyId,{cursor:y,ancestors:x}),"restore"),C=!1;try{let w=f(...m);return w instanceof Promise?(C=!0,w.finally(v)):w}finally{C||v()}}),c=t.apply(r,p);return c&&["object","function","symbol"].includes(typeof c)&&this.setState(n.storyId,f=>({callRefsByResult:new Map([...Array.from(f.callRefsByResult.entries()),[c,{__callId__:n.id,retain:n.retain}]])})),this.update({...u,status:c instanceof Promise?"active":"done"}),c instanceof Promise?c.then(f=>(this.update({...u,status:"done"}),f),d):c}catch(p){return d(p)}}update(t){this.channel?.emit(Gt.CALL,t),this.setState(t.storyId,({calls:r})=>{let n=r.concat(t).reduce((o,a)=>Object.assign(o,{[a.id]:a}),{});return{calls:Object.values(n).sort((o,a)=>o.id.localeCompare(a.id,void 0,{numeric:!0}))}}),this.sync(t.storyId)}sync(t){let r=O(()=>{let{isLocked:n,isPlaying:o}=this.getState(t),a=this.getLog(t),i=a.filter(({ancestors:d})=>!d.length).find(d=>d.status==="waiting")?.callId,l=a.some(d=>d.status==="active");if(this.detached||n||l||a.length===0){let d={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:a};this.channel?.emit(Gt.SYNC,d);return}let s=a.some(d=>d.status==="done"||d.status==="error"),u={controlStates:{detached:this.detached,start:s,back:s,goto:!0,next:o,end:o},logItems:a,pausedAt:i};this.channel?.emit(Gt.SYNC,u)},"synchronize");this.setState(t,({syncTimeout:n})=>(clearTimeout(n),{syncTimeout:setTimeout(r,0)}))}};O(G0,"Instrumenter");var v$=G0;function Lc(e,t={}){try{let r=!1,n=!1;return dt.window?.location?.search?.includes("instrument=true")?r=!0:dt.window?.location?.search?.includes("instrument=false")&&(n=!0),dt.window?.parent===dt.window&&!r||n?e:(dt.window&&!dt.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__&&(dt.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__=new v$),(dt.window?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(e,t))}catch(r){return UC.warn(r),e}}O(Lc,"instrument");function Y0(e,t){let r=e;for(;r!=null;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}O(Y0,"getPropertyDescriptor");function K0(e){if(typeof e!="function")return!1;let t=Object.getOwnPropertyDescriptor(e,"prototype");return t?!t.writable:!1}O(K0,"isClass");var x$=Object.create,ji=Object.defineProperty,E$=Object.getOwnPropertyDescriptor,w$=Object.getOwnPropertyNames,S$=Object.getPrototypeOf,C$=Object.prototype.hasOwnProperty,R=(e,t)=>ji(e,"name",{value:t,configurable:!0}),$$=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),X0=(e,t)=>{for(var r in t)ji(e,r,{get:t[r],enumerable:!0})},A$=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of w$(t))!C$.call(e,o)&&o!==r&&ji(e,o,{get:()=>t[o],enumerable:!(n=E$(t,o))||n.enumerable});return e},D$=(e,t,r)=>(r=e!=null?x$(S$(e)):{},A$(ji(r,"default",{value:e,enumerable:!0}),e)),k$=$$(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isEqual=(function(){var t=Object.prototype.toString,r=Object.getPrototypeOf,n=Object.getOwnPropertySymbols?function(o){return Object.keys(o).concat(Object.getOwnPropertySymbols(o))}:Object.keys;return function(o,a){return R(function i(l,s,u){var d,p,c,f=t.call(l),m=t.call(s);if(l===s)return!0;if(l==null||s==null)return!1;if(u.indexOf(l)>-1&&u.indexOf(s)>-1)return!0;if(u.push(l,s),f!=m||(d=n(l),p=n(s),d.length!=p.length||d.some(function(y){return!i(l[y],s[y],u)})))return!1;switch(f.slice(8,-1)){case"Symbol":return l.valueOf()==s.valueOf();case"Date":case"Number":return+l==+s||+l!=+l&&+s!=+s;case"RegExp":case"Function":case"String":case"Boolean":return""+l==""+s;case"Set":case"Map":d=l.entries(),p=s.entries();do if(!i((c=d.next()).value,p.next().value,u))return!1;while(!c.done);return!0;case"ArrayBuffer":l=new Uint8Array(l),s=new Uint8Array(s);case"DataView":l=new Uint8Array(l.buffer),s=new Uint8Array(s.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(l.length!=s.length)return!1;for(c=0;c<l.length;c++)if((c in l||c in s)&&(c in l!=c in s||!i(l[c],s[c],u)))return!1;return!0;case"Object":return i(r(l),r(s),u);default:return!1}},"n")(o,a,[])}})()});function Z0(e){return e.replace(/_/g," ").replace(/-/g," ").replace(/\./g," ").replace(/([^\n])([A-Z])([a-z])/g,(t,r,n,o)=>`${r} ${n}${o}`).replace(/([a-z])([A-Z])/g,(t,r,n)=>`${r} ${n}`).replace(/([a-z])([0-9])/gi,(t,r,n)=>`${r} ${n}`).replace(/([0-9])([a-z])/gi,(t,r,n)=>`${r} ${n}`).replace(/(\s|^)(\w)/g,(t,r,n)=>`${r}${n.toUpperCase()}`).replace(/ +/g," ").trim()}R(Z0,"toStartCaseStr");var Qp=D$(k$()),J0=R(e=>e.map(t=>typeof t<"u").filter(Boolean).length,"count"),O$=R((e,t)=>{let{exists:r,eq:n,neq:o,truthy:a}=e;if(J0([r,n,o,a])>1)throw new Error(`Invalid conditional test ${JSON.stringify({exists:r,eq:n,neq:o})}`);if(typeof n<"u")return(0,Qp.isEqual)(t,n);if(typeof o<"u")return!(0,Qp.isEqual)(t,o);if(typeof r<"u"){let i=typeof t<"u";return r?i:!i}return typeof a>"u"||a?!!t:!t},"testValue"),Q0=R((e,t,r)=>{if(!e.if)return!0;let{arg:n,global:o}=e.if;if(J0([n,o])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:n,global:o})}`);let a=n?t[n]:r[o];return O$(e.if,a)},"includeConditionalArg");const{global:Ml}=__STORYBOOK_MODULE_GLOBAL__,{Channel:F$}=__STORYBOOK_MODULE_CHANNELS__;function ey(){let e={setHandler:R(()=>{},"setHandler"),send:R(()=>{},"send")};return new F$({transport:e})}R(ey,"mockChannel");var ty=class{constructor(){this.getChannel=R(()=>{if(!this.channel){let t=ey();return this.setChannel(t),t}return this.channel},"getChannel"),this.ready=R(()=>this.promise,"ready"),this.hasChannel=R(()=>!!this.channel,"hasChannel"),this.setChannel=R(t=>{this.channel=t,this.resolve()},"setChannel"),this.promise=new Promise(t=>{this.resolve=()=>t(this.getChannel())})}};R(ty,"AddonStore");var _$=ty,zl="__STORYBOOK_ADDONS_PREVIEW";function ry(){return Ml[zl]||(Ml[zl]=new _$),Ml[zl]}R(ry,"getAddonsStore");var ef=ry();const{logger:RN}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{FORCE_RE_RENDER:PN,RESET_STORY_ARGS:IN,STORY_RENDERED:tf,UPDATE_GLOBALS:LN,UPDATE_STORY_ARGS:BN}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:Hl}=__STORYBOOK_MODULE_GLOBAL__;var ny=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=R(t=>{t===this.currentContext?.id&&(this.triggerEffects(),this.currentContext=null,this.removeRenderListeners())},"renderListener"),this.init()}init(){this.hookListsMap=new WeakMap,this.mountedDecorators=new Set,this.prevMountedDecorators=new Set,this.currentHooks=[],this.nextHookIndex=0,this.currentPhase="NONE",this.currentEffects=[],this.prevEffects=[],this.currentDecoratorName=null,this.hasUpdates=!1,this.currentContext=null}clean(){this.prevEffects.forEach(t=>{t.destroy&&t.destroy()}),this.init(),this.removeRenderListeners()}getNextHook(){let t=this.currentHooks[this.nextHookIndex];return this.nextHookIndex+=1,t}triggerEffects(){this.prevEffects.forEach(t=>{!this.currentEffects.includes(t)&&t.destroy&&t.destroy()}),this.currentEffects.forEach(t=>{this.prevEffects.includes(t)||(t.destroy=t.create())}),this.prevEffects=this.currentEffects,this.currentEffects=[]}addRenderListeners(){this.removeRenderListeners(),ef.getChannel().on(tf,this.renderListener)}removeRenderListeners(){ef.getChannel().removeListener(tf,this.renderListener)}};R(ny,"HooksContext");var T$=ny;function Qs(e){let t=R((...r)=>{let{hooks:n}=typeof r[0]=="function"?r[1]:r[0],o=n.currentPhase,a=n.currentHooks,i=n.nextHookIndex,l=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=Hl.STORYBOOK_HOOKS_CONTEXT;Hl.STORYBOOK_HOOKS_CONTEXT=n;let u=e(...r);if(Hl.STORYBOOK_HOOKS_CONTEXT=s,n.currentPhase==="UPDATE"&&n.getNextHook()!=null)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return n.currentPhase=o,n.currentHooks=a,n.nextHookIndex=i,n.currentDecoratorName=l,u},"hookified");return t.originalFn=e,t}R(Qs,"hookify");var Ul=0,R$=25,P$=R(e=>(t,r)=>{let n=e(Qs(t),r.map(o=>Qs(o)));return o=>{let{hooks:a}=o;a.prevMountedDecorators??=new Set,a.mountedDecorators=new Set([t,...r]),a.currentContext=o,a.hasUpdates=!1;let i=n(o);for(Ul=1;a.hasUpdates;)if(a.hasUpdates=!1,a.currentEffects=[],i=n(o),Ul+=1,Ul>R$)throw new Error("Too many re-renders. Storybook limits the number of renders to prevent an infinite loop.");return a.addRenderListeners(),i}},"applyHooks");function Ba(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}R(Ba,"isPlainObject");function jn(e,t){let r={},n=Object.keys(e);for(let o=0;o<n.length;o++){let a=n[o],i=e[a];r[a]=t(i,a,e)}return r}R(jn,"mapValues");function oy(e,t){let r={},n=Object.keys(e);for(let o=0;o<n.length;o++){let a=n[o],i=e[a];t(i,a)&&(r[a]=i)}return r}R(oy,"pickBy");const{once:jN}=__STORYBOOK_MODULE_CLIENT_LOGGER__;function Mi(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Array.from(typeof e=="string"?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var o=n.reduce(function(l,s){var u=s.match(/\n([\t ]+|(?!\s).)/g);return u?l.concat(u.map(function(d){var p,c;return(c=(p=d.match(/[\t ]/g))===null||p===void 0?void 0:p.length)!==null&&c!==void 0?c:0})):l},[]);if(o.length){var a=new RegExp(`
50
+ [ ]{`+Math.min.apply(Math,o)+"}","g");n=n.map(function(l){return l.replace(a,`
51
+ `)})}n[0]=n[0].replace(/^\r?\n/,"");var i=n[0];return t.forEach(function(l,s){var u=i.match(/(?:^|\n)( *)$/),d=u?u[1]:"",p=l;typeof l=="string"&&l.includes(`
52
+ `)&&(p=String(l).split(`
53
+ `).map(function(c,f){return f===0?c:""+d+c}).join(`
54
+ `)),i+=p+n[s+1]}),i}R(Mi,"dedent");var ay="UNTARGETED";function iy({args:e,argTypes:t}){let r={};return Object.entries(e).forEach(([n,o])=>{let{target:a=ay}=t[n]||{};r[a]=r[a]||{},r[a][n]=o}),r}R(iy,"groupArgsByTarget");var I$=R((e={})=>Object.entries(e).reduce((t,[r,{defaultValue:n}])=>(typeof n<"u"&&(t[r]=n),t),{}),"getValuesFromArgTypes"),L$=R(e=>typeof e=="string"?{name:e}:e,"normalizeType"),B$=R(e=>typeof e=="string"?{type:e}:e,"normalizeControl"),N$=R((e,t)=>{let{type:r,control:n,...o}=e,a={name:t,...o};return r&&(a.type=L$(r)),n?a.control=B$(n):n===!1&&(a.control={disable:!0}),a},"normalizeInputType"),ni=R(e=>jn(e,N$),"normalizeInputTypes");const{deprecate:j$,logger:M$}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var se=R(e=>Array.isArray(e)?e:e?[e]:[],"normalizeArrays"),z$=Mi`
55
+ CSF .story annotations deprecated; annotate story functions directly:
56
+ - StoryFn.story.name => StoryFn.storyName
57
+ - StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators)
58
+ See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod.
59
+ `;function ly(e,t,r){let n=t,o=typeof t=="function"?t:null,{story:a}=n;a&&(M$.debug("deprecated story",a),j$(z$));let i=y3(e),l=typeof n!="function"&&n.name||n.storyName||a?.name||i,s=[...se(n.decorators),...se(a?.decorators)],u={...a?.parameters,...n.parameters},d={...a?.args,...n.args},p={...a?.argTypes,...n.argTypes},c=[...se(n.loaders),...se(a?.loaders)],f=[...se(n.beforeEach),...se(a?.beforeEach)],m=[...se(n.afterEach),...se(a?.afterEach)],{render:y,play:x,tags:v=[],globals:C={}}=n,w=u.__id||h3(r.id,i);return{moduleExport:t,id:w,name:l,tags:v,decorators:s,parameters:u,args:d,argTypes:ni(p),loaders:c,beforeEach:f,afterEach:m,globals:C,...y&&{render:y},...o&&{userStoryFn:o},...x&&{play:x}}}R(ly,"normalizeStory");function sy(e,t=e.title,r){let{id:n,argTypes:o}=e;return{id:Vi(n||t),...e,title:t,...o&&{argTypes:ni(o)},parameters:{fileName:r,...e.parameters}}}R(sy,"normalizeComponentAnnotations");const{NoRenderFunctionError:H$}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{global:U$}=__STORYBOOK_MODULE_GLOBAL__,{global:W$}=__STORYBOOK_MODULE_GLOBAL__;function uy(e){return e!=null&&cy(e).includes("mount")}R(uy,"mountDestructured");function cy(e){let t=e.toString().match(/[^(]*\(([^)]*)/);if(!t)return[];let r=eu(t[1]);if(!r.length)return[];let n=r[0];return n.startsWith("{")&&n.endsWith("}")?eu(n.slice(1,-1).replace(/\s/g,"")).map(o=>o.replace(/:.*|=.*/g,"")):[]}R(cy,"getUsedProps");function eu(e){let t=[],r=[],n=0;for(let a=0;a<e.length;a++)if(e[a]==="{"||e[a]==="[")r.push(e[a]==="{"?"}":"]");else if(e[a]===r[r.length-1])r.pop();else if(!r.length&&e[a]===","){let i=e.substring(n,a).trim();i&&t.push(i),n=a+1}let o=e.substring(n).trim();return o&&t.push(o),t}R(eu,"splitByComma");function dy(e,t,r){let n=r(e);return o=>t(n,o)}R(dy,"decorateStory");function py({componentId:e,title:t,kind:r,id:n,name:o,story:a,parameters:i,initialArgs:l,argTypes:s,...u}={}){return u}R(py,"sanitizeStoryContextUpdate");function fy(e,t){let r={},n=R(a=>i=>{if(!r.value)throw new Error("Decorated function called without init");return r.value={...r.value,...py(i)},a(r.value)},"bindWithContext"),o=t.reduce((a,i)=>dy(a,i,n),e);return a=>(r.value=a,o(a))}R(fy,"defaultDecorateStory");var Ar=R((...e)=>{let t={},r=e.filter(Boolean),n=r.reduce((o,a)=>(Object.entries(a).forEach(([i,l])=>{let s=o[i];Array.isArray(l)||typeof s>"u"?o[i]=l:Ba(l)&&Ba(s)?t[i]=!0:typeof l<"u"&&(o[i]=l)}),o),{});return Object.keys(t).forEach(o=>{let a=r.filter(Boolean).map(i=>i[o]).filter(i=>typeof i<"u");a.every(i=>Ba(i))?n[o]=Ar(...a):n[o]=a[a.length-1]}),n},"combineParameters");function gy(e,t,r){let{moduleExport:n,id:o,name:a}=e||{},i=my(e,t,r),l=R(async A=>{let S={};for(let D of[se(r.loaders),se(t.loaders),se(e.loaders)]){if(A.abortSignal.aborted)return S;let F=await Promise.all(D.map(k=>k(A)));Object.assign(S,...F)}return S},"applyLoaders"),s=R(async A=>{let S=new Array;for(let D of[...se(r.beforeEach),...se(t.beforeEach),...se(e.beforeEach)]){if(A.abortSignal.aborted)return S;let F=await D(A);F&&S.push(F)}return S},"applyBeforeEach"),u=R(async A=>{let S=[...se(r.afterEach),...se(t.afterEach),...se(e.afterEach)].reverse();for(let D of S){if(A.abortSignal.aborted)return;await D(A)}},"applyAfterEach"),d=R(A=>A.originalStoryFn(A.args,A),"undecoratedStoryFn"),{applyDecorators:p=fy,runStep:c}=r,f=[...se(e?.decorators),...se(t?.decorators),...se(r?.decorators)],m=e?.userStoryFn||e?.render||t.render||r.render,y=P$(p)(d,f),x=R(A=>y(A),"unboundStoryFn"),v=e?.play??t?.play,C=uy(v);if(!m&&!C)throw new H$({id:o});let w=R(A=>async()=>(await A.renderToCanvas(),A.canvas),"defaultMount"),E=e.mount??t.mount??r.mount??w,$=r.testingLibraryRender;return{storyGlobals:{},...i,moduleExport:n,id:o,name:a,story:a,originalStoryFn:m,undecoratedStoryFn:d,unboundStoryFn:x,applyLoaders:l,applyBeforeEach:s,applyAfterEach:u,playFunction:v,runStep:c,mount:E,testingLibraryRender:$,renderToCanvas:r.renderToCanvas,usesMount:C}}R(gy,"prepareStory");function my(e,t,r){let n=["dev","test"],o=W$.DOCS_OPTIONS?.autodocs===!0?["autodocs"]:[],a=rb(...n,...o,...r.tags??[],...t.tags??[],...e?.tags??[]),i=Ar(r.parameters,t.parameters,e?.parameters),{argTypesEnhancers:l=[],argsEnhancers:s=[]}=r,u=Ar(r.argTypes,t.argTypes,e?.argTypes);if(e){let v=e?.userStoryFn||e?.render||t.render||r.render;i.__isArgsStory=v&&v.length>0}let d={...r.args,...t.args,...e?.args},p={...t.globals,...e?.globals},c={componentId:t.id,title:t.title,kind:t.title,id:e?.id||t.id,name:e?.name||"__meta",story:e?.name||"__meta",component:t.component,subcomponents:t.subcomponents,tags:a,parameters:i,initialArgs:d,argTypes:u,storyGlobals:p};c.argTypes=l.reduce((v,C)=>C({...c,argTypes:v}),c.argTypes);let f={...d};c.initialArgs=[...s].reduce((v,C)=>({...v,...C({...c,initialArgs:v})}),f);let{name:m,story:y,...x}=c;return x}R(my,"preparePartialAnnotations");function hy(e){let{args:t}=e,r={...e,allArgs:void 0,argsByTarget:void 0};if(U$.FEATURES?.argTypeTargetsV7){let a=iy(e);r={...e,allArgs:e.args,argsByTarget:a,args:a[ay]||{}}}let n=Object.entries(r.args).reduce((a,[i,l])=>{if(!r.argTypes[i]?.mapping)return a[i]=l,a;let s=R(u=>{let d=r.argTypes[i].mapping;return d&&u in d?d[u]:u},"mappingFn");return a[i]=Array.isArray(l)?l.map(s):s(l),a},{}),o=Object.entries(n).reduce((a,[i,l])=>{let s=r.argTypes[i]||{};return Q0(s,n,r.globals)&&(a[i]=l),a},{});return{...r,unmappedArgs:t,args:o}}R(hy,"prepareContext");const{logger:V$}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var tu=R((e,t,r)=>{let n=typeof e;switch(n){case"boolean":case"string":case"number":case"function":case"symbol":return{name:n}}return e?r.has(e)?(V$.warn(Mi`
60
+ We've detected a cycle in arg '${t}'. Args should be JSON-serializable.
61
+
62
+ Consider using the mapping feature or fully custom args:
63
+ - Mapping: https://storybook.js.org/docs/writing-stories/args#mapping-to-complex-arg-values
64
+ - Custom args: https://storybook.js.org/docs/essentials/controls#fully-custom-args
65
+ `),{name:"other",value:"cyclic object"}):(r.add(e),Array.isArray(e)?{name:"array",value:e.length>0?tu(e[0],t,new Set(r)):{name:"other",value:"unknown"}}:{name:"object",value:jn(e,o=>tu(o,t,new Set(r)))}):{name:"object",value:{}}},"inferType"),yy=R(e=>{let{id:t,argTypes:r={},initialArgs:n={}}=e,o=jn(n,(i,l)=>({name:l,type:tu(i,`${t}.${l}`,new Set)})),a=jn(r,(i,l)=>({name:l}));return Ar(o,a,r)},"inferArgTypes");yy.secondPass=!0;const{logger:q$}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var rf=R((e,t)=>Array.isArray(t)?t.includes(e):e.match(t),"matches"),G$=R((e,t,r)=>!t&&!r?e:e&&oy(e,(n,o)=>{let a=n.name||o.toString();return!!(!t||rf(a,t))&&(!r||!rf(a,r))}),"filterArgTypes"),Y$=R((e,t,r)=>{let{type:n,options:o}=e;if(n){if(r.color&&r.color.test(t)){let a=n.name;if(a==="string")return{control:{type:"color"}};a!=="enum"&&q$.warn(`Addon controls: Control of type color only supports string, received "${a}" instead`)}if(r.date&&r.date.test(t))return{control:{type:"date"}};switch(n.name){case"array":return{control:{type:"object"}};case"boolean":return{control:{type:"boolean"}};case"string":return{control:{type:"text"}};case"number":return{control:{type:"number"}};case"enum":{let{value:a}=n;return{control:{type:a?.length<=5?"radio":"select"},options:a}}case"function":case"symbol":return null;default:return{control:{type:o?"select":"object"}}}}},"inferControl"),by=R(e=>{let{argTypes:t,parameters:{__isArgsStory:r,controls:{include:n=null,exclude:o=null,matchers:a={}}={}}}=e;if(!r)return t;let i=G$(t,n,o),l=jn(i,(s,u)=>s?.type&&Y$(s,u.toString(),a));return Ar(l,i)},"inferControls");by.secondPass=!0;function Bc({argTypes:e,globalTypes:t,argTypesEnhancers:r,decorators:n,loaders:o,beforeEach:a,afterEach:i,initialGlobals:l,...s}){return{...e&&{argTypes:ni(e)},...t&&{globalTypes:ni(t)},decorators:se(n),loaders:se(o),beforeEach:se(a),afterEach:se(i),argTypesEnhancers:[...r||[],yy,by],initialGlobals:l,...s}}R(Bc,"normalizeProjectAnnotations");const{global:K$}=__STORYBOOK_MODULE_GLOBAL__;var X$=R(e=>async()=>{let t=[];for(let r of e){let n=await r();n&&t.unshift(n)}return async()=>{for(let r of t)await r()}},"composeBeforeAllHooks");function vy(e){return async(t,r,n)=>{await e.reduceRight((o,a)=>async()=>a(t,o,n),async()=>r(n))()}}R(vy,"composeStepRunners");function Mn(e,t){return e.map(r=>r.default?.[t]??r[t]).filter(Boolean)}R(Mn,"getField");function Zt(e,t,r={}){return Mn(e,t).reduce((n,o)=>{let a=se(o);return r.reverseFileOrder?[...a,...n]:[...n,...a]},[])}R(Zt,"getArrayField");function Oo(e,t){return Object.assign({},...Mn(e,t))}R(Oo,"getObjectField");function vn(e,t){return Mn(e,t).pop()}R(vn,"getSingletonField");function Nc(e){let t=Zt(e,"argTypesEnhancers"),r=Mn(e,"runStep"),n=Zt(e,"beforeAll");return{parameters:Ar(...Mn(e,"parameters")),decorators:Zt(e,"decorators",{reverseFileOrder:!(K$.FEATURES?.legacyDecoratorFileOrder??!1)}),args:Oo(e,"args"),argsEnhancers:Zt(e,"argsEnhancers"),argTypes:Oo(e,"argTypes"),argTypesEnhancers:[...t.filter(o=>!o.secondPass),...t.filter(o=>o.secondPass)],initialGlobals:Oo(e,"initialGlobals"),globalTypes:Oo(e,"globalTypes"),loaders:Zt(e,"loaders"),beforeAll:X$(n),beforeEach:Zt(e,"beforeEach"),afterEach:Zt(e,"afterEach"),render:vn(e,"render"),renderToCanvas:vn(e,"renderToCanvas"),applyDecorators:vn(e,"applyDecorators"),runStep:vy(r),tags:Zt(e,"tags"),mount:vn(e,"mount"),testingLibraryRender:vn(e,"testingLibraryRender")}}R(Nc,"composeConfigs");const{MountMustBeDestructuredError:Z$}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;function xy(){try{return!!globalThis.__vitest_browser__||!!globalThis.window?.navigator?.userAgent?.match(/StorybookTestRunner/)}catch{return!1}}R(xy,"isTestEnvironment");function Ey(e=!0){if(!("document"in globalThis&&"createElement"in globalThis.document))return()=>{};let t=document.createElement("style");t.textContent=`*, *:before, *:after {
66
+ animation: none !important;
67
+ }`,document.head.appendChild(t);let r=document.createElement("style");return r.textContent=`*, *:before, *:after {
68
+ animation-delay: 0s !important;
69
+ animation-direction: ${e?"reverse":"normal"} !important;
70
+ animation-play-state: paused !important;
71
+ transition: none !important;
72
+ }`,document.head.appendChild(r),document.body.clientHeight,document.head.removeChild(t),()=>{r.parentNode?.removeChild(r)}}R(Ey,"pauseAnimations");async function wy(e){if(!("document"in globalThis&&"getAnimations"in globalThis.document&&"querySelectorAll"in globalThis.document))return;let t=!1;await Promise.race([new Promise(r=>{setTimeout(()=>{let n=[globalThis.document,...jc(globalThis.document)],o=R(async()=>{if(t||e?.aborted)return;let a=n.flatMap(i=>i?.getAnimations?.()||[]).filter(i=>i.playState==="running"&&!Sy(i));a.length>0&&(await Promise.all(a.map(i=>i.finished)),await o())},"checkAnimationsFinished");o().then(r)},100)}),new Promise(r=>setTimeout(()=>{t=!0,r(void 0)},5e3))])}R(wy,"waitForAnimations");function jc(e){return[e,...e.querySelectorAll("*")].reduce((t,r)=>("shadowRoot"in r&&r.shadowRoot&&t.push(r.shadowRoot,...jc(r.shadowRoot)),t),[])}R(jc,"getShadowRoots");function Sy(e){if(e instanceof CSSAnimation&&e.effect instanceof KeyframeEffect&&e.effect.target){let t=getComputedStyle(e.effect.target,e.effect.pseudoElement),r=t.animationName?.split(", ").indexOf(e.animationName);return t.animationIterationCount.split(", ")[r]==="infinite"}return!1}R(Sy,"isInfiniteAnimation");var Cy=class{constructor(){this.reports=[]}async addReport(t){this.reports.push(t)}};R(Cy,"ReporterAPI");var J$=Cy,Q$="ComposedStory",eA="Unnamed Story",Sr=[];function $y(e,t,r,n,o){if(e===void 0)throw new Error("Expected a story but received undefined.");t.title=t.title??Q$;let a=sy(t),i=o||e.storyName||e.story?.name||e.name||eA,l=ly(i,e,a),s=Bc(Nc([n??globalThis.globalProjectAnnotations??{},r??{}])),u=gy(l,a,s),d={...I$(s.globalTypes),...s.initialGlobals,...u.storyGlobals},p=new J$,c=R(()=>{let v=hy({hooks:new T$,globals:d,args:{...u.initialArgs},viewMode:"story",reporting:p,loaded:{},abortSignal:new AbortController().signal,step:R((C,w)=>u.runStep(C,w,v),"step"),canvasElement:null,canvas:{},userEvent:{},globalTypes:s.globalTypes,...u,context:null,mount:null});return v.parameters.__isPortableStory=!0,v.context=v,u.renderToCanvas&&(v.renderToCanvas=async()=>{let C=await u.renderToCanvas?.({componentId:u.componentId,title:u.title,id:u.id,name:u.name,tags:u.tags,showMain:R(()=>{},"showMain"),showError:R(w=>{throw new Error(`${w.title}
73
+ ${w.description}`)},"showError"),showException:R(w=>{throw w},"showException"),forceRemount:!0,storyContext:v,storyFn:R(()=>u.unboundStoryFn(v),"storyFn"),unboundStoryFn:u.unboundStoryFn},v.canvasElement);C&&Sr.push(C)}),v.mount=u.mount(v),v},"initializeContext"),f,m=R(async v=>{let C=c();return C.canvasElement??=globalThis?.document?.body,f&&(C.loaded=f.loaded),Object.assign(C,v),u.playFunction(C)},"play"),y=R(v=>{let C=c();return Object.assign(C,v),Ay(u,C)},"run"),x=u.playFunction?m:void 0;return Object.assign(R(function(v){let C=c();return f&&(C.loaded=f.loaded),C.args={...C.initialArgs,...v},u.unboundStoryFn(C)},"storyFn"),{id:u.id,storyName:i,load:R(async()=>{for(let C of[...Sr].reverse())await C();Sr.length=0;let v=c();v.loaded=await u.applyLoaders(v),Sr.push(...(await u.applyBeforeEach(v)).filter(Boolean)),f=v},"load"),globals:d,args:u.initialArgs,parameters:u.parameters,argTypes:u.argTypes,play:x,run:y,reporting:p,tags:u.tags})}R($y,"composeStory");async function Ay(e,t){for(let a of[...Sr].reverse())await a();if(Sr.length=0,!t.canvasElement){let a=document.createElement("div");globalThis?.document?.body?.appendChild(a),t.canvasElement=a,Sr.push(()=>{globalThis?.document?.body?.contains(a)&&globalThis?.document?.body?.removeChild(a)})}if(t.loaded=await e.applyLoaders(t),t.abortSignal.aborted)return;Sr.push(...(await e.applyBeforeEach(t)).filter(Boolean));let r=e.playFunction,n=e.usesMount;if(n||await t.mount(),t.abortSignal.aborted)return;r&&(n||(t.mount=async()=>{throw new Z$({playFunction:r.toString()})}),await r(t));let o;xy()?o=Ey():await wy(t.abortSignal),await e.applyAfterEach(t),await o?.()}R(Ay,"runStory");var nf="Invariant failed";function oi(e,t){if(!e){var r=typeof t=="function"?t():t,n=r?"".concat(nf,": ").concat(r):nf;throw new Error(n)}}R(oi,"invariant");var Dy={};X0(Dy,{argsEnhancers:()=>cA});const{ImplicitActionsDuringRendering:tA}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{global:of}=__STORYBOOK_MODULE_GLOBAL__,{addons:rA}=__STORYBOOK_MODULE_PREVIEW_API__;var nA="storybook/actions",oA=`${nA}/action-event`,aA={depth:10,clearOnStoryChange:!0,limit:50},ky=R((e,t)=>{let r=Object.getPrototypeOf(e);return!r||t(r)?r:ky(r,t)},"findProto"),iA=R(e=>!!(typeof e=="object"&&e&&ky(e,t=>/^Synthetic(?:Base)?Event$/.test(t.constructor.name))&&typeof e.persist=="function"),"isReactSyntheticEvent"),lA=R(e=>{if(iA(e)){let t=Object.create(e.constructor.prototype,Object.getOwnPropertyDescriptors(e));t.persist();let r=Object.getOwnPropertyDescriptor(t,"view"),n=r?.value;return typeof n=="object"&&n?.constructor.name==="Window"&&Object.defineProperty(t,"view",{...r,value:Object.create(n.constructor.prototype)}),t}return e},"serializeArg");function zi(e,t={}){let r={...aA,...t},n=R(function(...o){if(t.implicit){let p=("__STORYBOOK_PREVIEW__"in of?of.__STORYBOOK_PREVIEW__:void 0)?.storyRenders.find(c=>c.phase==="playing"||c.phase==="rendering");if(p){let c=!globalThis?.FEATURES?.disallowImplicitActionsInRenderV8,f=new tA({phase:p.phase,name:e,deprecated:c});if(c)console.warn(f);else throw f}}let a=rA.getChannel(),i=Date.now().toString(36)+Math.random().toString(36).substring(2),l=5,s=o.map(lA),u=o.length>1?s:s[0],d={id:i,count:0,data:{name:e,args:u},options:{...r,maxDepth:l+(r.depth||3)}};a.emit(oA,d)},"actionHandler");return n.isAction=!0,n.implicit=t.implicit,n}R(zi,"action");var Oy=R((e,t)=>typeof t[e]>"u"&&!(e in t),"isInInitialArgs"),sA=R(e=>{let{initialArgs:t,argTypes:r,id:n,parameters:{actions:o}}=e;if(!o||o.disable||!o.argTypesRegex||!r)return{};let a=new RegExp(o.argTypesRegex);return Object.entries(r).filter(([i])=>!!a.test(i)).reduce((i,[l,s])=>(Oy(l,t)&&(i[l]=zi(l,{implicit:!0,id:n})),i),{})},"inferActionsFromArgTypesRegex"),uA=R(e=>{let{initialArgs:t,argTypes:r,parameters:{actions:n}}=e;return n?.disable||!r?{}:Object.entries(r).filter(([o,a])=>!!a.action).reduce((o,[a,i])=>(Oy(a,t)&&(o[a]=zi(typeof i.action=="string"?i.action:a)),o),{})},"addActionsFromArgTypes"),cA=[uA,sA],Fy={};X0(Fy,{loaders:()=>fA});const{onMockCall:dA}=__STORYBOOK_MODULE_TEST__;var af=!1,pA=R(e=>{let{parameters:t}=e;t?.actions?.disable||af||(dA((r,n)=>{let o=r.getMockName();o!=="spy"&&(!/^next\/.*::/.test(o)||["next/router::useRouter()","next/navigation::useRouter()","next/navigation::redirect","next/cache::","next/headers::cookies().set","next/headers::cookies().delete","next/headers::headers().set","next/headers::headers().delete"].some(a=>o.startsWith(a)))&&zi(o)(n)}),af=!0)},"logActionsWhenMockCalled"),fA=[pA],lf=R(()=>({...Dy,...Fy}),"default"),ai="backgrounds";const{useEffect:sf}=__STORYBOOK_MODULE_PREVIEW_API__;var gA={light:{name:"light",value:"#F8F8F8"},dark:{name:"dark",value:"#333"}},{document:$t}=globalThis,mA=R(()=>globalThis?.matchMedia?!!globalThis.matchMedia("(prefers-reduced-motion: reduce)")?.matches:!1,"isReduceMotionEnabled"),uf=R(e=>{(Array.isArray(e)?e:[e]).forEach(hA)},"clearStyles"),hA=R(e=>{if(!$t)return;let t=$t.getElementById(e);t&&t.parentElement&&t.parentElement.removeChild(t)},"clearStyle"),yA=R((e,t)=>{if(!$t)return;let r=$t.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let n=$t.createElement("style");n.setAttribute("id",e),n.innerHTML=t,$t.head.appendChild(n)}},"addGridStyle"),bA=R((e,t,r)=>{if(!$t)return;let n=$t.getElementById(e);if(n)n.innerHTML!==t&&(n.innerHTML=t);else{let o=$t.createElement("style");o.setAttribute("id",e),o.innerHTML=t;let a=`addon-backgrounds-grid${r?`-docs-${r}`:""}`,i=$t.getElementById(a);i?i.parentElement?.insertBefore(o,i):$t.head.appendChild(o)}},"addBackgroundStyle"),vA={cellSize:100,cellAmount:10,opacity:.8},cf="addon-backgrounds",df="addon-backgrounds-grid",xA=mA()?"":"transition: background-color 0.3s;",EA=R((e,t)=>{let{globals:r={},parameters:n={},viewMode:o,id:a}=t,{options:i=gA,disable:l,grid:s=vA}=n[ai]||{},u=r[ai]||{},d=typeof u=="string"?u:u?.value,p=d?i[d]:void 0,c=typeof p=="string"?p:p?.value||"transparent",f=typeof u=="string"?!1:u.grid||!1,m=!!p&&!l,y=o==="docs"?`#anchor--${a} .docs-story`:".sb-show-main",x=o==="docs"?`#anchor--${a} .docs-story`:".sb-show-main",v=n.layout===void 0||n.layout==="padded",C=o==="docs"?20:v?16:0,{cellAmount:w,cellSize:E,opacity:$,offsetX:A=C,offsetY:S=C}=s,D=o==="docs"?`${cf}-docs-${a}`:`${cf}-color`,F=o==="docs"?a:null;sf(()=>{let _=`
74
+ ${y} {
75
+ background: ${c} !important;
76
+ ${xA}
77
+ }`;if(!m){uf(D);return}bA(D,_,F)},[y,D,F,m,c]);let k=o==="docs"?`${df}-docs-${a}`:`${df}`;return sf(()=>{if(!f){uf(k);return}let _=[`${E*w}px ${E*w}px`,`${E*w}px ${E*w}px`,`${E}px ${E}px`,`${E}px ${E}px`].join(", "),I=`
78
+ ${x} {
79
+ background-size: ${_} !important;
80
+ background-position: ${A}px ${S}px, ${A}px ${S}px, ${A}px ${S}px, ${A}px ${S}px !important;
81
+ background-blend-mode: difference !important;
82
+ background-image: linear-gradient(rgba(130, 130, 130, ${$}) 1px, transparent 1px),
83
+ linear-gradient(90deg, rgba(130, 130, 130, ${$}) 1px, transparent 1px),
84
+ linear-gradient(rgba(130, 130, 130, ${$/2}) 1px, transparent 1px),
85
+ linear-gradient(90deg, rgba(130, 130, 130, ${$/2}) 1px, transparent 1px) !important;
86
+ }
87
+ `;yA(k,I)},[w,E,x,k,f,A,S,$]),e()},"withBackgroundAndGrid"),wA=globalThis.FEATURES?.backgrounds?[EA]:[],SA={[ai]:{grid:{cellSize:20,opacity:.5,cellAmount:5},disable:!1}},CA={[ai]:{value:void 0,grid:!1}},pf=R(()=>({decorators:wA,parameters:SA,initialGlobals:CA}),"default"),{step:$A}=Lc({step:R(async(e,t,r)=>t(r),"step")},{intercept:!0}),ff=R(()=>({parameters:{throwPlayFunctionExceptions:!1},runStep:$A}),"default");const{addons:gf}=__STORYBOOK_MODULE_PREVIEW_API__,{STORY_RENDER_PHASE_CHANGED:AA}=__STORYBOOK_MODULE_CORE_EVENTS__;var Hi="storybook/highlight",DA=`${Hi}/add`,kA=`${Hi}/remove`,OA=`${Hi}/reset`,FA=`${Hi}/scroll-into-view`,mf=2147483647,yr=28,hf={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"]},_A="svg,path,rect,circle,line,polyline,polygon,ellipse,text".split(","),_e=R((e,t={},r)=>{let n=_A.includes(e)?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return Object.entries(t).forEach(([o,a])=>{/[A-Z]/.test(o)?(o==="onClick"&&(n.addEventListener("click",a),n.addEventListener("keydown",i=>{(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),a())})),o==="onMouseEnter"&&n.addEventListener("mouseenter",a),o==="onMouseLeave"&&n.addEventListener("mouseleave",a)):n.setAttribute(o,a)}),r?.forEach(o=>{if(!(o==null||o===!1))try{n.appendChild(o)}catch{n.appendChild(document.createTextNode(String(o)))}}),n},"createElement"),ma=R(e=>hf[e]&&_e("svg",{width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},hf[e].map(t=>_e("path",{fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd",d:t}))),"createIcon"),TA=R(e=>{if("elements"in e){let{elements:n,color:o,style:a}=e;return{id:void 0,priority:0,selectors:n,styles:{outline:`2px ${a} ${o}`,outlineOffset:"2px",boxShadow:"0 0 0 6px rgba(255,255,255,0.6)"},menu:void 0}}let{menu:t,...r}=e;return{id:void 0,priority:0,styles:{outline:"2px dashed #029cfd"},...r,menu:Array.isArray(t)?t.every(Array.isArray)?t:[t]:void 0}},"normalizeOptions"),RA=R(e=>e instanceof Function,"isFunction"),bo=new Map,Lr=new Map,ha=new Map,Yt=R(e=>{let t=Symbol();return Lr.set(t,[]),bo.set(t,e),{get:R(()=>bo.get(t),"get"),set:R(r=>{let n=bo.get(t),o=RA(r)?r(n):r;o!==n&&(bo.set(t,o),Lr.get(t)?.forEach(a=>{ha.get(a)?.(),ha.set(a,a(o))}))},"set"),subscribe:R(r=>(Lr.get(t)?.push(r),()=>{let n=Lr.get(t);n&&Lr.set(t,n.filter(o=>o!==r))}),"subscribe"),teardown:R(()=>{Lr.get(t)?.forEach(r=>{ha.get(r)?.(),ha.delete(r)}),Lr.delete(t),bo.delete(t)},"teardown")}},"useStore"),yf=R(e=>{let t=document.getElementById("storybook-root"),r=new Map;for(let n of e){let{priority:o=0}=n;for(let a of n.selectors){let i=[...document.querySelectorAll(`:is(${a}):not([id^="storybook-"], [id^="storybook-"] *, [class^="sb-"], [class^="sb-"] *)`),...t?.querySelectorAll(a)||[]];for(let l of i){let s=r.get(l);(!s||s.priority<=o)&&r.set(l,{...n,priority:o,selectors:Array.from(new Set((s?.selectors||[]).concat(a)))})}}}return r},"mapElements"),PA=R(e=>Array.from(e.entries()).map(([t,{selectors:r,styles:n,hoverStyles:o,focusStyles:a,menu:i}])=>{let{top:l,left:s,width:u,height:d}=t.getBoundingClientRect(),{position:p}=getComputedStyle(t);return{element:t,selectors:r,styles:n,hoverStyles:o,focusStyles:a,menu:i,top:p==="fixed"?l:l+window.scrollY,left:p==="fixed"?s:s+window.scrollX,width:u,height:d}}).sort((t,r)=>r.width*r.height-t.width*t.height),"mapBoxes"),bf=R((e,t)=>{let r=e.getBoundingClientRect(),{x:n,y:o}=t;return r?.top&&r?.left&&n>=r.left&&n<=r.left+r.width&&o>=r.top&&o<=r.top+r.height},"isOverMenu"),vf=R((e,t,r)=>{if(!t||!r)return!1;let{left:n,top:o,width:a,height:i}=e;i<yr&&(o=o-Math.round((yr-i)/2),i=yr),a<yr&&(n=n-Math.round((yr-a)/2),a=yr),t.style.position==="fixed"&&(n+=window.scrollX,o+=window.scrollY);let{x:l,y:s}=r;return l>=n&&l<=n+a&&s>=o&&s<=o+i},"isTargeted"),IA=R((e,t,r={})=>{let{x:n,y:o}=t,{margin:a=5,topOffset:i=0,centered:l=!1}=r,{scrollX:s,scrollY:u,innerHeight:d,innerWidth:p}=window,c=Math.min(e.style.position==="fixed"?o-u:o,d-e.clientHeight-a-i+u),f=l?e.clientWidth/2:0,m=e.style.position==="fixed"?Math.max(Math.min(n-s,p-f-a),f+a):Math.max(Math.min(n,p-f-a+s),f+a+s);Object.assign(e.style,{...m!==n&&{left:`${m}px`},...c!==o&&{top:`${c}px`}})},"keepInViewport"),xf=R(e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.showPopover()},"showPopover"),LA=R(e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.hidePopover()},"hidePopover"),BA=R(e=>({top:e.top,left:e.left,width:e.width,height:e.height,selectors:e.selectors,element:{attributes:Object.fromEntries(Array.from(e.element.attributes).map(t=>[t.name,t.value])),localName:e.element.localName,tagName:e.element.tagName,outerHTML:e.element.outerHTML}}),"getEventDetails"),he="storybook-highlights-menu",Ef="storybook-highlights-root",NA="storybook-root",jA=R(e=>{if(globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED)return;globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED=!0;let{document:t}=globalThis,r=Yt([]),n=Yt(new Map),o=Yt([]),a=Yt(),i=Yt(),l=Yt([]),s=Yt([]),u=Yt(),d=Yt(),p=t.getElementById(Ef);r.subscribe(()=>{p||(p=_e("div",{id:Ef}),t.body.appendChild(p))}),r.subscribe(S=>{let D=t.getElementById(NA);if(!D)return;n.set(yf(S));let F=new MutationObserver(()=>n.set(yf(S)));return F.observe(D,{subtree:!0,childList:!0}),()=>{F.disconnect()}}),n.subscribe(S=>{let D=R(()=>requestAnimationFrame(()=>o.set(PA(S))),"updateBoxes"),F=new ResizeObserver(D);F.observe(t.body),Array.from(S.keys()).forEach(_=>F.observe(_));let k=Array.from(t.body.querySelectorAll("*")).filter(_=>{let{overflow:I,overflowX:L,overflowY:j}=window.getComputedStyle(_);return["auto","scroll"].some(B=>[I,L,j].includes(B))});return k.forEach(_=>_.addEventListener("scroll",D)),()=>{F.disconnect(),k.forEach(_=>_.removeEventListener("scroll",D))}}),n.subscribe(S=>{let D=Array.from(S.keys()).filter(({style:k})=>k.position==="sticky"),F=R(()=>requestAnimationFrame(()=>{o.set(k=>k.map(_=>{if(D.includes(_.element)){let{top:I,left:L}=_.element.getBoundingClientRect();return{..._,top:I+window.scrollY,left:L+window.scrollX}}return _}))}),"updateBoxes");return t.addEventListener("scroll",F),()=>t.removeEventListener("scroll",F)}),n.subscribe(S=>{l.set(D=>D.filter(({element:F})=>S.has(F)))}),l.subscribe(S=>{S.length?(d.set(D=>S.some(F=>F.element===D?.element)?D:void 0),u.set(D=>S.some(F=>F.element===D?.element)?D:void 0)):(d.set(void 0),u.set(void 0),a.set(void 0))});let c=new Map(new Map);r.subscribe(S=>{S.forEach(({keyframes:D})=>{if(D){let F=c.get(D);F||(F=t.createElement("style"),F.setAttribute("data-highlight","keyframes"),c.set(D,F),t.head.appendChild(F)),F.innerHTML=D}}),c.forEach((D,F)=>{S.some(k=>k.keyframes===F)||(D.remove(),c.delete(F))})});let f=new Map(new Map);o.subscribe(S=>{S.forEach(D=>{let F=f.get(D.element);if(p&&!F){let k={popover:"manual","data-highlight-dimensions":`w${D.width.toFixed(0)}h${D.height.toFixed(0)}`,"data-highlight-coordinates":`x${D.left.toFixed(0)}y${D.top.toFixed(0)}`};F=p.appendChild(_e("div",k,[_e("div")])),f.set(D.element,F)}}),f.forEach((D,F)=>{S.some(({element:k})=>k===F)||(D.remove(),f.delete(F))})}),o.subscribe(S=>{let D=S.filter(k=>k.menu);if(!D.length)return;let F=R(k=>{requestAnimationFrame(()=>{let _=t.getElementById(he),I={x:k.pageX,y:k.pageY};if(_&&!bf(_,I)){let L=D.filter(j=>{let B=f.get(j.element);return vf(j,B,I)});a.set(L.length?I:void 0),l.set(L)}})},"onClick");return t.addEventListener("click",F),()=>t.removeEventListener("click",F)});let m=R(()=>{let S=t.getElementById(he),D=i.get();!D||S&&bf(S,D)||s.set(F=>{let k=o.get().filter(j=>{let B=f.get(j.element);return vf(j,B,D)}),_=F.filter(j=>k.includes(j)),I=k.filter(j=>!F.includes(j)),L=F.length-_.length;return I.length||L?[..._,...I]:F})},"updateHovered");i.subscribe(m),o.subscribe(m);let y=R(()=>{let S=d.get(),D=S?[S]:l.get(),F=D.length===1?D[0]:u.get(),k=a.get()!==void 0;o.get().forEach(_=>{let I=f.get(_.element);if(I){let L=F===_,j=k?F?L:D.includes(_):s.get()?.includes(_);Object.assign(I.style,{animation:"none",background:"transparent",border:"none",boxSizing:"border-box",outline:"none",outlineOffset:"0px",..._.styles,...j?_.hoverStyles:{},...L?_.focusStyles:{},position:getComputedStyle(_.element).position==="fixed"?"fixed":"absolute",zIndex:mf-10,top:`${_.top}px`,left:`${_.left}px`,width:`${_.width}px`,height:`${_.height}px`,margin:0,padding:0,cursor:_.menu&&j?"pointer":"default",pointerEvents:_.menu?"auto":"none",display:"flex",alignItems:"center",justifyContent:"center",overflow:"visible"}),Object.assign(I.children[0].style,{width:"100%",height:"100%",minHeight:`${yr}px`,minWidth:`${yr}px`,boxSizing:"content-box",padding:I.style.outlineWidth||"0px"}),xf(I)}})},"updateBoxStyles");o.subscribe(y),l.subscribe(y),s.subscribe(y),u.subscribe(y),d.subscribe(y);let x=R(()=>{if(!p)return;let S=t.getElementById(he);if(S)S.innerHTML="";else{let _={id:he,popover:"manual"};S=p.appendChild(_e("div",_)),p.appendChild(_e("style",{},[`
88
+ #${he} {
89
+ position: absolute;
90
+ z-index: ${mf};
91
+ width: 300px;
92
+ padding: 0px;
93
+ margin: 15px 0 0 0;
94
+ transform: translateX(-50%);
95
+ font-family: "Nunito Sans", -apple-system, ".SFNSText-Regular", "San Francisco", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
96
+ font-size: 12px;
97
+ background: white;
98
+ border: none;
99
+ border-radius: 6px;
100
+ box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.05), 0 5px 15px 0 rgba(0, 0, 0, 0.1);
101
+ color: #2E3438;
102
+ }
103
+ #${he} ul {
104
+ list-style: none;
105
+ margin: 0;
106
+ padding: 0;
107
+ }
108
+ #${he} > ul {
109
+ max-height: 300px;
110
+ overflow-y: auto;
111
+ padding: 4px 0;
112
+ }
113
+ #${he} li {
114
+ padding: 0 4px;
115
+ margin: 0;
116
+ }
117
+ #${he} li > :not(ul) {
118
+ display: flex;
119
+ padding: 8px;
120
+ margin: 0;
121
+ align-items: center;
122
+ gap: 8px;
123
+ border-radius: 4px;
124
+ }
125
+ #${he} button {
126
+ width: 100%;
127
+ border: 0;
128
+ background: transparent;
129
+ color: inherit;
130
+ text-align: left;
131
+ font-family: inherit;
132
+ font-size: inherit;
133
+ }
134
+ #${he} button:focus-visible {
135
+ outline-color: #029CFD;
136
+ }
137
+ #${he} button:hover {
138
+ background: rgba(2, 156, 253, 0.07);
139
+ color: #029CFD;
140
+ cursor: pointer;
141
+ }
142
+ #${he} li code {
143
+ white-space: nowrap;
144
+ overflow: hidden;
145
+ text-overflow: ellipsis;
146
+ line-height: 16px;
147
+ font-size: 11px;
148
+ }
149
+ #${he} li svg {
150
+ flex-shrink: 0;
151
+ margin: 1px;
152
+ color: #73828C;
153
+ }
154
+ #${he} li > button:hover svg, #${he} li > button:focus-visible svg {
155
+ color: #029CFD;
156
+ }
157
+ #${he} .element-list li svg {
158
+ display: none;
159
+ }
160
+ #${he} li.selectable svg, #${he} li.selected svg {
161
+ display: block;
162
+ }
163
+ #${he} .menu-list {
164
+ border-top: 1px solid rgba(38, 85, 115, 0.15);
165
+ }
166
+ #${he} .menu-list > li:not(:last-child) {
167
+ padding-bottom: 4px;
168
+ margin-bottom: 4px;
169
+ border-bottom: 1px solid rgba(38, 85, 115, 0.15);
170
+ }
171
+ #${he} .menu-items, #${he} .menu-items li {
172
+ padding: 0;
173
+ }
174
+ #${he} .menu-item {
175
+ display: flex;
176
+ }
177
+ #${he} .menu-item-content {
178
+ display: flex;
179
+ flex-direction: column;
180
+ flex-grow: 1;
181
+ }
182
+ `]))}let D=d.get(),F=D?[D]:l.get();if(F.length&&(S.style.position=getComputedStyle(F[0].element).position==="fixed"?"fixed":"absolute",S.appendChild(_e("ul",{class:"element-list"},F.map(_=>{let I=F.length>1&&!!_.menu?.some(B=>B.some(z=>!z.selectors||z.selectors.some(q=>_.selectors.includes(q)))),L=I?{class:"selectable",onClick:R(()=>d.set(_),"onClick"),onMouseEnter:R(()=>u.set(_),"onMouseEnter"),onMouseLeave:R(()=>u.set(void 0),"onMouseLeave")}:D?{class:"selected",onClick:R(()=>d.set(void 0),"onClick")}:{},j=I||D;return _e("li",L,[_e(j?"button":"div",j?{type:"button"}:{},[D?ma("chevronLeft"):null,_e("code",{},[_.element.outerHTML]),I?ma("chevronRight"):null])])})))),d.get()||l.get().length===1){let _=d.get()||l.get()[0],I=_.menu?.filter(L=>L.some(j=>!j.selectors||j.selectors.some(B=>_.selectors.includes(B))));I?.length&&S.appendChild(_e("ul",{class:"menu-list"},I.map(L=>_e("li",{},[_e("ul",{class:"menu-items"},L.map(({id:j,title:B,description:z,iconLeft:q,iconRight:Y,clickEvent:W})=>{let G=W&&(()=>e.emit(W,j,BA(_)));return _e("li",{},[_e(G?"button":"div",G?{class:"menu-item",type:"button",onClick:G}:{class:"menu-item"},[q?ma(q):null,_e("div",{class:"menu-item-content"},[_e(z?"strong":"span",{},[B]),z&&_e("span",{},[z])]),Y?ma(Y):null])])}))]))))}let k=a.get();k?(Object.assign(S.style,{display:"block",left:`${S.style.position==="fixed"?k.x-window.scrollX:k.x}px`,top:`${S.style.position==="fixed"?k.y-window.scrollY:k.y}px`}),xf(S),requestAnimationFrame(()=>IA(S,k,{topOffset:15,centered:!0}))):(LA(S),Object.assign(S.style,{display:"none"}))},"renderMenu");l.subscribe(x),d.subscribe(x);let v=R(S=>{let D=TA(S);r.set(F=>{let k=D.id?F.filter(_=>_.id!==D.id):F;return D.selectors?.length?[...k,D]:k})},"addHighlight"),C=R(S=>{S&&r.set(D=>D.filter(F=>F.id!==S))},"removeHighlight"),w=R(()=>{r.set([]),n.set(new Map),o.set([]),a.set(void 0),i.set(void 0),l.set([]),s.set([]),u.set(void 0),d.set(void 0)},"resetState"),E,$=R((S,D)=>{let F="scrollIntoView-highlight";clearTimeout(E),C(F);let k=t.querySelector(S);if(!k){console.warn(`Cannot scroll into view: ${S} not found`);return}k.scrollIntoView({behavior:"smooth",block:"center",...D});let _=`kf-${Math.random().toString(36).substring(2,15)}`;r.set(I=>[...I,{id:F,priority:1e3,selectors:[S],styles:{outline:"2px solid #1EA7FD",outlineOffset:"-1px",animation:`${_} 3s linear forwards`},keyframes:`@keyframes ${_} {
183
+ 0% { outline: 2px solid #1EA7FD; }
184
+ 20% { outline: 2px solid #1EA7FD00; }
185
+ 40% { outline: 2px solid #1EA7FD; }
186
+ 60% { outline: 2px solid #1EA7FD00; }
187
+ 80% { outline: 2px solid #1EA7FD; }
188
+ 100% { outline: 2px solid #1EA7FD00; }
189
+ }`}]),E=setTimeout(()=>C(F),3500)},"scrollIntoView"),A=R(S=>{requestAnimationFrame(()=>i.set({x:S.pageX,y:S.pageY}))},"onMouseMove");t.body.addEventListener("mousemove",A),e.on(DA,v),e.on(kA,C),e.on(OA,w),e.on(FA,$),e.on(AA,({newPhase:S})=>{S==="loading"&&w()})},"useHighlights");globalThis?.FEATURES?.highlight&&gf?.ready&&gf.ready().then(jA);var wf=R(()=>({}),"default"),MA="measureEnabled";const{useEffect:Sf}=__STORYBOOK_MODULE_PREVIEW_API__,{global:ii}=__STORYBOOK_MODULE_GLOBAL__;function Mc(){let e=ii.document.documentElement,t=Math.max(e.scrollHeight,e.offsetHeight);return{width:Math.max(e.scrollWidth,e.offsetWidth),height:t}}R(Mc,"getDocumentWidthAndHeight");function _y(){let e=ii.document.createElement("canvas");e.id="storybook-addon-measure";let t=e.getContext("2d");oi(t!=null);let{width:r,height:n}=Mc();return li(e,t,{width:r,height:n}),e.style.position="absolute",e.style.left="0",e.style.top="0",e.style.zIndex="2147483647",e.style.pointerEvents="none",ii.document.body.appendChild(e),{canvas:e,context:t,width:r,height:n}}R(_y,"createCanvas");function li(e,t,{width:r,height:n}){e.style.width=`${r}px`,e.style.height=`${n}px`;let o=ii.window.devicePixelRatio;e.width=Math.floor(r*o),e.height=Math.floor(n*o),t.scale(o,o)}R(li,"setCanvasWidthAndHeight");var Te={};function Ty(){Te.canvas||(Te=_y())}R(Ty,"init");function zc(){Te.context&&Te.context.clearRect(0,0,Te.width??0,Te.height??0)}R(zc,"clear");function Ry(e){zc(),e(Te.context)}R(Ry,"draw");function Py(){oi(Te.canvas,"Canvas should exist in the state."),oi(Te.context,"Context should exist in the state."),li(Te.canvas,Te.context,{width:0,height:0});let{width:e,height:t}=Mc();li(Te.canvas,Te.context,{width:e,height:t}),Te.width=e,Te.height=t}R(Py,"rescale");function Iy(){Te.canvas&&(zc(),Te.canvas.parentNode?.removeChild(Te.canvas),Te={})}R(Iy,"destroy");const{global:St}=__STORYBOOK_MODULE_GLOBAL__;var fn={margin:"#f6b26b",border:"#ffe599",padding:"#93c47d",content:"#6fa8dc",text:"#232020"},rr=6;function ru(e,{x:t,y:r,w:n,h:o,r:a}){t=t-n/2,r=r-o/2,n<2*a&&(a=n/2),o<2*a&&(a=o/2),e.beginPath(),e.moveTo(t+a,r),e.arcTo(t+n,r,t+n,r+o,a),e.arcTo(t+n,r+o,t,r+o,a),e.arcTo(t,r+o,t,r,a),e.arcTo(t,r,t+n,r,a),e.closePath()}R(ru,"roundedRect");function Ly(e,{padding:t,border:r,width:n,height:o,top:a,left:i}){let l=n-r.left-r.right-t.left-t.right,s=o-t.top-t.bottom-r.top-r.bottom,u=i+r.left+t.left,d=a+r.top+t.top;return e==="top"?u+=l/2:e==="right"?(u+=l,d+=s/2):e==="bottom"?(u+=l/2,d+=s):e==="left"?d+=s/2:e==="center"&&(u+=l/2,d+=s/2),{x:u,y:d}}R(Ly,"positionCoordinate");function By(e,t,{margin:r,border:n,padding:o},a,i){let l=R(c=>0,"shift"),s=0,u=0,d=i?1:.5,p=i?a*2:0;return e==="padding"?l=R(c=>o[c]*d+p,"shift"):e==="border"?l=R(c=>o[c]+n[c]*d+p,"shift"):e==="margin"&&(l=R(c=>o[c]+n[c]+r[c]*d+p,"shift")),t==="top"?u=-l("top"):t==="right"?s=l("right"):t==="bottom"?u=l("bottom"):t==="left"&&(s=-l("left")),{offsetX:s,offsetY:u}}R(By,"offset");function Ny(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}R(Ny,"collide");function jy(e,t,r){return e==="top"?t.y=r.y-r.h-rr:e==="right"?t.x=r.x+r.w/2+rr+t.w/2:e==="bottom"?t.y=r.y+r.h+rr:e==="left"&&(t.x=r.x-r.w/2-rr-t.w/2),{x:t.x,y:t.y}}R(jy,"overlapAdjustment");function Hc(e,t,{x:r,y:n,w:o,h:a},i){return ru(e,{x:r,y:n,w:o,h:a,r:3}),e.fillStyle=`${fn[t]}dd`,e.fill(),e.strokeStyle=fn[t],e.stroke(),e.fillStyle=fn.text,e.fillText(i,r,n),ru(e,{x:r,y:n,w:o,h:a,r:3}),e.fillStyle=`${fn[t]}dd`,e.fill(),e.strokeStyle=fn[t],e.stroke(),e.fillStyle=fn.text,e.fillText(i,r,n),{x:r,y:n,w:o,h:a}}R(Hc,"textWithRect");function Uc(e,t){e.font="600 12px monospace",e.textBaseline="middle",e.textAlign="center";let r=e.measureText(t),n=r.actualBoundingBoxAscent+r.actualBoundingBoxDescent,o=r.width+rr*2,a=n+rr*2;return{w:o,h:a}}R(Uc,"configureText");function My(e,t,{type:r,position:n="center",text:o},a,i=!1){let{x:l,y:s}=Ly(n,t),{offsetX:u,offsetY:d}=By(r,n,t,rr+1,i);l+=u,s+=d;let{w:p,h:c}=Uc(e,o);if(a&&Ny({x:l,y:s,w:p,h:c},a)){let f=jy(n,{x:l,y:s,w:p},a);l=f.x,s=f.y}return Hc(e,r,{x:l,y:s,w:p,h:c},o)}R(My,"drawLabel");function zy(e,{w:t,h:r}){let n=t*.5+rr,o=r*.5+rr;return{offsetX:(e.x==="left"?-1:1)*n,offsetY:(e.y==="top"?-1:1)*o}}R(zy,"floatingOffset");function Hy(e,t,{type:r,text:n}){let{floatingAlignment:o,extremities:a}=t,i=a[o.x],l=a[o.y],{w:s,h:u}=Uc(e,n),{offsetX:d,offsetY:p}=zy(o,{w:s,h:u});return i+=d,l+=p,Hc(e,r,{x:i,y:l,w:s,h:u},n)}R(Hy,"drawFloatingLabel");function xn(e,t,r,n){let o=[];r.forEach((a,i)=>{let l=n&&a.position==="center"?Hy(e,t,a):My(e,t,a,o[i-1],n);o[i]=l})}R(xn,"drawStack");function Uy(e,t,r,n){let o=r.reduce((a,i)=>(Object.prototype.hasOwnProperty.call(a,i.position)||(a[i.position]=[]),a[i.position]?.push(i),a),{});o.top&&xn(e,t,o.top,n),o.right&&xn(e,t,o.right,n),o.bottom&&xn(e,t,o.bottom,n),o.left&&xn(e,t,o.left,n),o.center&&xn(e,t,o.center,n)}R(Uy,"labelStacks");var Ui={margin:"#f6b26ba8",border:"#ffe599a8",padding:"#93c47d8c",content:"#6fa8dca8"},Cf=30;function it(e){return parseInt(e.replace("px",""),10)}R(it,"pxToNumber");function Vr(e){return Number.isInteger(e)?e:e.toFixed(2)}R(Vr,"round");function Wi(e){return e.filter(t=>t.text!==0&&t.text!=="0")}R(Wi,"filterZeroValues");function Wy(e){let t={top:St.window.scrollY,bottom:St.window.scrollY+St.window.innerHeight,left:St.window.scrollX,right:St.window.scrollX+St.window.innerWidth},r={top:Math.abs(t.top-e.top),bottom:Math.abs(t.bottom-e.bottom),left:Math.abs(t.left-e.left),right:Math.abs(t.right-e.right)};return{x:r.left>r.right?"left":"right",y:r.top>r.bottom?"top":"bottom"}}R(Wy,"floatingAlignment");function Vy(e){let t=St.getComputedStyle(e),{top:r,left:n,right:o,bottom:a,width:i,height:l}=e.getBoundingClientRect(),{marginTop:s,marginBottom:u,marginLeft:d,marginRight:p,paddingTop:c,paddingBottom:f,paddingLeft:m,paddingRight:y,borderBottomWidth:x,borderTopWidth:v,borderLeftWidth:C,borderRightWidth:w}=t;r=r+St.window.scrollY,n=n+St.window.scrollX,a=a+St.window.scrollY,o=o+St.window.scrollX;let E={top:it(s),bottom:it(u),left:it(d),right:it(p)},$={top:it(c),bottom:it(f),left:it(m),right:it(y)},A={top:it(v),bottom:it(x),left:it(C),right:it(w)},S={top:r-E.top,bottom:a+E.bottom,left:n-E.left,right:o+E.right};return{margin:E,padding:$,border:A,top:r,left:n,bottom:a,right:o,width:i,height:l,extremities:S,floatingAlignment:Wy(S)}}R(Vy,"measureElement");function qy(e,{margin:t,width:r,height:n,top:o,left:a,bottom:i,right:l}){let s=n+t.bottom+t.top;e.fillStyle=Ui.margin,e.fillRect(a,o-t.top,r,t.top),e.fillRect(l,o-t.top,t.right,s),e.fillRect(a,i,r,t.bottom),e.fillRect(a-t.left,o-t.top,t.left,s);let u=[{type:"margin",text:Vr(t.top),position:"top"},{type:"margin",text:Vr(t.right),position:"right"},{type:"margin",text:Vr(t.bottom),position:"bottom"},{type:"margin",text:Vr(t.left),position:"left"}];return Wi(u)}R(qy,"drawMargin");function Gy(e,{padding:t,border:r,width:n,height:o,top:a,left:i,bottom:l,right:s}){let u=n-r.left-r.right,d=o-t.top-t.bottom-r.top-r.bottom;e.fillStyle=Ui.padding,e.fillRect(i+r.left,a+r.top,u,t.top),e.fillRect(s-t.right-r.right,a+t.top+r.top,t.right,d),e.fillRect(i+r.left,l-t.bottom-r.bottom,u,t.bottom),e.fillRect(i+r.left,a+t.top+r.top,t.left,d);let p=[{type:"padding",text:t.top,position:"top"},{type:"padding",text:t.right,position:"right"},{type:"padding",text:t.bottom,position:"bottom"},{type:"padding",text:t.left,position:"left"}];return Wi(p)}R(Gy,"drawPadding");function Yy(e,{border:t,width:r,height:n,top:o,left:a,bottom:i,right:l}){let s=n-t.top-t.bottom;e.fillStyle=Ui.border,e.fillRect(a,o,r,t.top),e.fillRect(a,i-t.bottom,r,t.bottom),e.fillRect(a,o+t.top,t.left,s),e.fillRect(l-t.right,o+t.top,t.right,s);let u=[{type:"border",text:t.top,position:"top"},{type:"border",text:t.right,position:"right"},{type:"border",text:t.bottom,position:"bottom"},{type:"border",text:t.left,position:"left"}];return Wi(u)}R(Yy,"drawBorder");function Ky(e,{padding:t,border:r,width:n,height:o,top:a,left:i}){let l=n-r.left-r.right-t.left-t.right,s=o-t.top-t.bottom-r.top-r.bottom;return e.fillStyle=Ui.content,e.fillRect(i+r.left+t.left,a+r.top+t.top,l,s),[{type:"content",position:"center",text:`${Vr(l)} x ${Vr(s)}`}]}R(Ky,"drawContent");function Xy(e){return t=>{if(e&&t){let r=Vy(e),n=qy(t,r),o=Gy(t,r),a=Yy(t,r),i=Ky(t,r),l=r.width<=Cf*3||r.height<=Cf;Uy(t,r,[...i,...o,...a,...n],l)}}}R(Xy,"drawBoxModel");function Zy(e){Ry(Xy(e))}R(Zy,"drawSelectedElement");const{global:zA}=__STORYBOOK_MODULE_GLOBAL__;var HA=R((e,t)=>{let r=zA.document.elementFromPoint(e,t),n=R(o=>{if(o&&o.shadowRoot){let a=o.shadowRoot.elementFromPoint(e,t);return o.isEqualNode(a)?o:a.shadowRoot?n(a):a}return o},"crawlShadows");return n(r)||r},"deepElementFromPoint"),$f,ya={x:0,y:0};function nu(e,t){$f=HA(e,t),Zy($f)}R(nu,"findAndDrawElement");var UA=R((e,t)=>{let{measureEnabled:r}=t.globals||{};return Sf(()=>{if(typeof globalThis.document>"u")return;let n=R(o=>{window.requestAnimationFrame(()=>{o.stopPropagation(),ya.x=o.clientX,ya.y=o.clientY})},"onPointerMove");return globalThis.document.addEventListener("pointermove",n),()=>{globalThis.document.removeEventListener("pointermove",n)}},[]),Sf(()=>{let n=R(a=>{window.requestAnimationFrame(()=>{a.stopPropagation(),nu(a.clientX,a.clientY)})},"onPointerOver"),o=R(()=>{window.requestAnimationFrame(()=>{Py()})},"onResize");return t.viewMode==="story"&&r&&(globalThis.document.addEventListener("pointerover",n),Ty(),globalThis.window.addEventListener("resize",o),nu(ya.x,ya.y)),()=>{globalThis.window.removeEventListener("resize",o),Iy()}},[r,t.viewMode]),e()},"withMeasure"),WA=globalThis.FEATURES?.measure?[UA]:[],VA={[MA]:!1},Af=R(()=>({decorators:WA,initialGlobals:VA}),"default"),Jy="outline";const{useEffect:qA,useMemo:GA}=__STORYBOOK_MODULE_PREVIEW_API__,{global:Na}=__STORYBOOK_MODULE_GLOBAL__;var Df=R(e=>{(Array.isArray(e)?e:[e]).forEach(YA)},"clearStyles"),YA=R(e=>{let t=typeof e=="string"?e:e.join(""),r=Na.document.getElementById(t);r&&r.parentElement&&r.parentElement.removeChild(r)},"clearStyle"),KA=R((e,t)=>{let r=Na.document.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let n=Na.document.createElement("style");n.setAttribute("id",e),n.innerHTML=t,Na.document.head.appendChild(n)}},"addOutlineStyles");function Qy(e){return Mi`
190
+ ${e} body {
191
+ outline: 1px solid #2980b9 !important;
192
+ }
193
+
194
+ ${e} article {
195
+ outline: 1px solid #3498db !important;
196
+ }
197
+
198
+ ${e} nav {
199
+ outline: 1px solid #0088c3 !important;
200
+ }
201
+
202
+ ${e} aside {
203
+ outline: 1px solid #33a0ce !important;
204
+ }
205
+
206
+ ${e} section {
207
+ outline: 1px solid #66b8da !important;
208
+ }
209
+
210
+ ${e} header {
211
+ outline: 1px solid #99cfe7 !important;
212
+ }
213
+
214
+ ${e} footer {
215
+ outline: 1px solid #cce7f3 !important;
216
+ }
217
+
218
+ ${e} h1 {
219
+ outline: 1px solid #162544 !important;
220
+ }
221
+
222
+ ${e} h2 {
223
+ outline: 1px solid #314e6e !important;
224
+ }
225
+
226
+ ${e} h3 {
227
+ outline: 1px solid #3e5e85 !important;
228
+ }
229
+
230
+ ${e} h4 {
231
+ outline: 1px solid #449baf !important;
232
+ }
233
+
234
+ ${e} h5 {
235
+ outline: 1px solid #c7d1cb !important;
236
+ }
237
+
238
+ ${e} h6 {
239
+ outline: 1px solid #4371d0 !important;
240
+ }
241
+
242
+ ${e} main {
243
+ outline: 1px solid #2f4f90 !important;
244
+ }
245
+
246
+ ${e} address {
247
+ outline: 1px solid #1a2c51 !important;
248
+ }
249
+
250
+ ${e} div {
251
+ outline: 1px solid #036cdb !important;
252
+ }
253
+
254
+ ${e} p {
255
+ outline: 1px solid #ac050b !important;
256
+ }
257
+
258
+ ${e} hr {
259
+ outline: 1px solid #ff063f !important;
260
+ }
261
+
262
+ ${e} pre {
263
+ outline: 1px solid #850440 !important;
264
+ }
265
+
266
+ ${e} blockquote {
267
+ outline: 1px solid #f1b8e7 !important;
268
+ }
269
+
270
+ ${e} ol {
271
+ outline: 1px solid #ff050c !important;
272
+ }
273
+
274
+ ${e} ul {
275
+ outline: 1px solid #d90416 !important;
276
+ }
277
+
278
+ ${e} li {
279
+ outline: 1px solid #d90416 !important;
280
+ }
281
+
282
+ ${e} dl {
283
+ outline: 1px solid #fd3427 !important;
284
+ }
285
+
286
+ ${e} dt {
287
+ outline: 1px solid #ff0043 !important;
288
+ }
289
+
290
+ ${e} dd {
291
+ outline: 1px solid #e80174 !important;
292
+ }
293
+
294
+ ${e} figure {
295
+ outline: 1px solid #ff00bb !important;
296
+ }
297
+
298
+ ${e} figcaption {
299
+ outline: 1px solid #bf0032 !important;
300
+ }
301
+
302
+ ${e} table {
303
+ outline: 1px solid #00cc99 !important;
304
+ }
305
+
306
+ ${e} caption {
307
+ outline: 1px solid #37ffc4 !important;
308
+ }
309
+
310
+ ${e} thead {
311
+ outline: 1px solid #98daca !important;
312
+ }
313
+
314
+ ${e} tbody {
315
+ outline: 1px solid #64a7a0 !important;
316
+ }
317
+
318
+ ${e} tfoot {
319
+ outline: 1px solid #22746b !important;
320
+ }
321
+
322
+ ${e} tr {
323
+ outline: 1px solid #86c0b2 !important;
324
+ }
325
+
326
+ ${e} th {
327
+ outline: 1px solid #a1e7d6 !important;
328
+ }
329
+
330
+ ${e} td {
331
+ outline: 1px solid #3f5a54 !important;
332
+ }
333
+
334
+ ${e} col {
335
+ outline: 1px solid #6c9a8f !important;
336
+ }
337
+
338
+ ${e} colgroup {
339
+ outline: 1px solid #6c9a9d !important;
340
+ }
341
+
342
+ ${e} button {
343
+ outline: 1px solid #da8301 !important;
344
+ }
345
+
346
+ ${e} datalist {
347
+ outline: 1px solid #c06000 !important;
348
+ }
349
+
350
+ ${e} fieldset {
351
+ outline: 1px solid #d95100 !important;
352
+ }
353
+
354
+ ${e} form {
355
+ outline: 1px solid #d23600 !important;
356
+ }
357
+
358
+ ${e} input {
359
+ outline: 1px solid #fca600 !important;
360
+ }
361
+
362
+ ${e} keygen {
363
+ outline: 1px solid #b31e00 !important;
364
+ }
365
+
366
+ ${e} label {
367
+ outline: 1px solid #ee8900 !important;
368
+ }
369
+
370
+ ${e} legend {
371
+ outline: 1px solid #de6d00 !important;
372
+ }
373
+
374
+ ${e} meter {
375
+ outline: 1px solid #e8630c !important;
376
+ }
377
+
378
+ ${e} optgroup {
379
+ outline: 1px solid #b33600 !important;
380
+ }
381
+
382
+ ${e} option {
383
+ outline: 1px solid #ff8a00 !important;
384
+ }
385
+
386
+ ${e} output {
387
+ outline: 1px solid #ff9619 !important;
388
+ }
389
+
390
+ ${e} progress {
391
+ outline: 1px solid #e57c00 !important;
392
+ }
393
+
394
+ ${e} select {
395
+ outline: 1px solid #e26e0f !important;
396
+ }
397
+
398
+ ${e} textarea {
399
+ outline: 1px solid #cc5400 !important;
400
+ }
401
+
402
+ ${e} details {
403
+ outline: 1px solid #33848f !important;
404
+ }
405
+
406
+ ${e} summary {
407
+ outline: 1px solid #60a1a6 !important;
408
+ }
409
+
410
+ ${e} command {
411
+ outline: 1px solid #438da1 !important;
412
+ }
413
+
414
+ ${e} menu {
415
+ outline: 1px solid #449da6 !important;
416
+ }
417
+
418
+ ${e} del {
419
+ outline: 1px solid #bf0000 !important;
420
+ }
421
+
422
+ ${e} ins {
423
+ outline: 1px solid #400000 !important;
424
+ }
425
+
426
+ ${e} img {
427
+ outline: 1px solid #22746b !important;
428
+ }
429
+
430
+ ${e} iframe {
431
+ outline: 1px solid #64a7a0 !important;
432
+ }
433
+
434
+ ${e} embed {
435
+ outline: 1px solid #98daca !important;
436
+ }
437
+
438
+ ${e} object {
439
+ outline: 1px solid #00cc99 !important;
440
+ }
441
+
442
+ ${e} param {
443
+ outline: 1px solid #37ffc4 !important;
444
+ }
445
+
446
+ ${e} video {
447
+ outline: 1px solid #6ee866 !important;
448
+ }
449
+
450
+ ${e} audio {
451
+ outline: 1px solid #027353 !important;
452
+ }
453
+
454
+ ${e} source {
455
+ outline: 1px solid #012426 !important;
456
+ }
457
+
458
+ ${e} canvas {
459
+ outline: 1px solid #a2f570 !important;
460
+ }
461
+
462
+ ${e} track {
463
+ outline: 1px solid #59a600 !important;
464
+ }
465
+
466
+ ${e} map {
467
+ outline: 1px solid #7be500 !important;
468
+ }
469
+
470
+ ${e} area {
471
+ outline: 1px solid #305900 !important;
472
+ }
473
+
474
+ ${e} a {
475
+ outline: 1px solid #ff62ab !important;
476
+ }
477
+
478
+ ${e} em {
479
+ outline: 1px solid #800b41 !important;
480
+ }
481
+
482
+ ${e} strong {
483
+ outline: 1px solid #ff1583 !important;
484
+ }
485
+
486
+ ${e} i {
487
+ outline: 1px solid #803156 !important;
488
+ }
489
+
490
+ ${e} b {
491
+ outline: 1px solid #cc1169 !important;
492
+ }
493
+
494
+ ${e} u {
495
+ outline: 1px solid #ff0430 !important;
496
+ }
497
+
498
+ ${e} s {
499
+ outline: 1px solid #f805e3 !important;
500
+ }
501
+
502
+ ${e} small {
503
+ outline: 1px solid #d107b2 !important;
504
+ }
505
+
506
+ ${e} abbr {
507
+ outline: 1px solid #4a0263 !important;
508
+ }
509
+
510
+ ${e} q {
511
+ outline: 1px solid #240018 !important;
512
+ }
513
+
514
+ ${e} cite {
515
+ outline: 1px solid #64003c !important;
516
+ }
517
+
518
+ ${e} dfn {
519
+ outline: 1px solid #b4005a !important;
520
+ }
521
+
522
+ ${e} sub {
523
+ outline: 1px solid #dba0c8 !important;
524
+ }
525
+
526
+ ${e} sup {
527
+ outline: 1px solid #cc0256 !important;
528
+ }
529
+
530
+ ${e} time {
531
+ outline: 1px solid #d6606d !important;
532
+ }
533
+
534
+ ${e} code {
535
+ outline: 1px solid #e04251 !important;
536
+ }
537
+
538
+ ${e} kbd {
539
+ outline: 1px solid #5e001f !important;
540
+ }
541
+
542
+ ${e} samp {
543
+ outline: 1px solid #9c0033 !important;
544
+ }
545
+
546
+ ${e} var {
547
+ outline: 1px solid #d90047 !important;
548
+ }
549
+
550
+ ${e} mark {
551
+ outline: 1px solid #ff0053 !important;
552
+ }
553
+
554
+ ${e} bdi {
555
+ outline: 1px solid #bf3668 !important;
556
+ }
557
+
558
+ ${e} bdo {
559
+ outline: 1px solid #6f1400 !important;
560
+ }
561
+
562
+ ${e} ruby {
563
+ outline: 1px solid #ff7b93 !important;
564
+ }
565
+
566
+ ${e} rt {
567
+ outline: 1px solid #ff2f54 !important;
568
+ }
569
+
570
+ ${e} rp {
571
+ outline: 1px solid #803e49 !important;
572
+ }
573
+
574
+ ${e} span {
575
+ outline: 1px solid #cc2643 !important;
576
+ }
577
+
578
+ ${e} br {
579
+ outline: 1px solid #db687d !important;
580
+ }
581
+
582
+ ${e} wbr {
583
+ outline: 1px solid #db175b !important;
584
+ }`}R(Qy,"outlineCSS");var XA=R((e,t)=>{let r=t.globals||{},n=[!0,"true"].includes(r[Jy]),o=t.viewMode==="docs",a=GA(()=>Qy(o?'[data-story-block="true"]':".sb-show-main"),[t]);return qA(()=>{let i=o?`addon-outline-docs-${t.id}`:"addon-outline";return n?KA(i,a):Df(i),()=>{Df(i)}},[n,a,t]),e()},"withOutline"),ZA=globalThis.FEATURES?.outline?[XA]:[],JA={[Jy]:!1},kf=R(()=>({decorators:ZA,initialGlobals:JA}),"default");const{clearAllMocks:QA,fn:e3,isMockFunction:t3,resetAllMocks:r3,restoreAllMocks:n3,uninstrumentedUserEvent:o3,within:a3}=__STORYBOOK_MODULE_TEST__;var i3=R(({parameters:e})=>{e?.test?.mockReset===!0?r3():e?.test?.clearMocks===!0?QA():e?.test?.restoreMocks!==!1&&n3()},"resetAllMocksLoader"),ou=R((e,t=0,r)=>{if(t>5||e==null)return e;if(t3(e))return r&&e.mockName(r),e;if(typeof e=="function"&&"isAction"in e&&e.isAction&&!("implicit"in e&&e.implicit)){let n=e3(e);return r&&n.mockName(r),n}if(Array.isArray(e)){t++;for(let n=0;n<e.length;n++)Object.getOwnPropertyDescriptor(e,n)?.writable&&(e[n]=ou(e[n],t));return e}if(typeof e=="object"&&e.constructor===Object){t++;for(let[n,o]of Object.entries(e))Object.getOwnPropertyDescriptor(e,n)?.writable&&(e[n]=ou(o,t,n));return e}return e},"traverseArgs"),l3=R(({initialArgs:e})=>{ou(e)},"nameSpiesAndWrapActionsInSpies"),Of=!1,s3=R(async e=>{globalThis.HTMLElement&&e.canvasElement instanceof globalThis.HTMLElement&&(e.canvas=a3(e.canvasElement));let t=globalThis.window?.navigator?.clipboard;if(t){e.userEvent=Lc({userEvent:o3.setup()},{intercept:!0,getKeys:R(n=>Object.keys(n).filter(o=>o!=="eventWrapper"),"getKeys")}).userEvent,Object.defineProperty(globalThis.window.navigator,"clipboard",{get:R(()=>t,"get"),configurable:!0});let r=HTMLElement.prototype.focus;Of||Object.defineProperties(HTMLElement.prototype,{focus:{configurable:!0,set:R(n=>{r=n,Of=!0},"set"),get:R(()=>r,"get")}})}},"enhanceContext"),Ff=R(()=>({loaders:[i3,l3,s3]}),"default"),u3="viewport",c3={[u3]:{value:void 0,isRotated:!1}},_f=R(()=>({initialGlobals:c3}),"default");function eb(){return[(Af.default??Af)(),(pf.default??pf)(),(wf.default??wf)(),(kf.default??kf)(),(_f.default??_f)(),(lf.default??lf)(),(ff.default??ff)(),(Ff.default??Ff)()]}R(eb,"getCoreAnnotations");function d3(e){let t,r={_tag:"Preview",input:e,get composed(){if(t)return t;let{addons:n,...o}=e;return t=Bc(Nc([...eb(),...n??[],o])),t},meta(n){return tb(n,this)}};return globalThis.globalProjectAnnotations=r.composed,r}R(d3,"definePreview");function p3(e){return e}R(p3,"definePreviewAddon");function f3(e){return e!=null&&typeof e=="object"&&"_tag"in e&&e?._tag==="Preview"}R(f3,"isPreview");function g3(e){return e!=null&&typeof e=="object"&&"_tag"in e&&e?._tag==="Meta"}R(g3,"isMeta");function tb(e,t){return{_tag:"Meta",input:e,preview:t,get composed(){throw new Error("Not implemented")},story(r={}){return Wc(typeof r=="function"?{render:r}:r,this)}}}R(tb,"defineMeta");function m3(e){return e!=null&&typeof e=="object"&&"_tag"in e&&e?._tag==="Story"}R(m3,"isStory");function Wc(e,t){let r,n=R(()=>(r||(r=$y(e,t.input,void 0,t.preview.composed)),r),"compose");return{_tag:"Story",input:e,meta:t,__compose:n,get composed(){let o=n(),{args:a,argTypes:i,parameters:l,id:s,tags:u,globals:d,storyName:p}=o;return{args:a,argTypes:i,parameters:l,id:s,tags:u,name:p,globals:d}},get play(){return e.play??t.input?.play??(async()=>{})},get run(){return n().run??(async()=>{})},extend(o){return Wc({...this.input,...o,args:{...this.input.args,...o.args},argTypes:Ar(this.input.argTypes,o.argTypes),afterEach:[...se(this.input?.afterEach??[]),...se(o.afterEach??[])],beforeEach:[...se(this.input?.beforeEach??[]),...se(o.beforeEach??[])],decorators:[...se(this.input?.decorators??[]),...se(o.decorators??[])],globals:{...this.input.globals,...o.globals},loaders:[...se(this.input?.loaders??[]),...se(o.loaders??[])],parameters:Ar(this.input.parameters,o.parameters),tags:rb(...this.input.tags??[],...o.tags??[])},this.meta)}}}R(Wc,"defineStory");var Vi=R(e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,""),"sanitize"),Tf=R((e,t)=>{let r=Vi(e);if(r==="")throw new Error(`Invalid ${t} '${e}', must include alphanumeric characters`);return r},"sanitizeSafe"),h3=R((e,t)=>`${Tf(e,"kind")}${t?`--${Tf(t,"name")}`:""}`,"toId"),y3=R(e=>Z0(e),"storyNameFromExport");function au(e,t){return Array.isArray(t)?t.includes(e):e.match(t)}R(au,"matches");function b3(e,{includeStories:t,excludeStories:r}){return e!=="__esModule"&&(!t||au(e,t))&&(!r||!au(e,r))}R(b3,"isExportStory");var rb=R((...e)=>{let t=e.reduce((r,n)=>(n.startsWith("!")?r.delete(n.slice(1)):r.add(n),r),new Set);return Array.from(t)},"combineTags");function v3(e,t,{signal:r,edges:n}={}){let o,a=null,i=n!=null&&n.includes("leading"),l=n==null||n.includes("trailing"),s=()=>{a!==null&&(e.apply(o,a),o=void 0,a=null)},u=()=>{l&&s(),f()},d=null,p=()=>{d!=null&&clearTimeout(d),d=setTimeout(()=>{d=null,u()},t)},c=()=>{d!==null&&(clearTimeout(d),d=null)},f=()=>{c(),o=void 0,a=null},m=()=>{c(),s()},y=function(...x){if(r?.aborted)return;o=this,a=x;let v=d==null;p(),i&&v&&s()};return y.schedule=p,y.cancel=f,y.flush=m,r?.addEventListener("abort",f,{once:!0}),y}function zN(e,t=0,r={}){typeof r!="object"&&(r={});let{signal:n,leading:o=!1,trailing:a=!0,maxWait:i}=r,l=Array(2);o&&(l[0]="leading"),a&&(l[1]="trailing");let s,u=null,d=v3(function(...f){s=e.apply(this,f),u=null},t,{signal:n,edges:l}),p=function(...f){if(i!=null){if(u===null)u=Date.now();else if(Date.now()-u>=i)return s=e.apply(this,f),u=Date.now(),d.cancel(),d.schedule(),s}return d.apply(this,f),s},c=()=>(d.flush(),s);return p.cancel=d.cancel,p.flush=c,p}function nb(e){return typeof e=="symbol"||e instanceof Symbol}function x3(e){return nb(e)?NaN:Number(e)}function E3(e){return e?(e=x3(e),e===1/0||e===-1/0?(e<0?-1:1)*Number.MAX_VALUE:e===e?e:0):e===0?e:0}function w3(e){let t=E3(e),r=t%1;return r?t-r:t}function S3(e){return Array.from(new Set(e))}function C3(e){return e==null||typeof e!="object"&&typeof e!="function"}function ob(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function ab(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function $3(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var A3="[object RegExp]",ib="[object String]",lb="[object Number]",sb="[object Boolean]",ub="[object Arguments]",D3="[object Symbol]",k3="[object Date]",O3="[object Map]",F3="[object Set]",_3="[object Array]",T3="[object ArrayBuffer]",R3="[object Object]",P3="[object DataView]",I3="[object Uint8Array]",L3="[object Uint8ClampedArray]",B3="[object Uint16Array]",N3="[object Uint32Array]",j3="[object Int8Array]",M3="[object Int16Array]",z3="[object Int32Array]",H3="[object Float32Array]",U3="[object Float64Array]";function W3(e,t){return An(e,void 0,e,new Map,t)}function An(e,t,r,n=new Map,o=void 0){let a=o?.(e,t,r,n);if(a!=null)return a;if(C3(e))return e;if(n.has(e))return n.get(e);if(Array.isArray(e)){let i=new Array(e.length);n.set(e,i);for(let l=0;l<e.length;l++)i[l]=An(e[l],l,r,n,o);return Object.hasOwn(e,"index")&&(i.index=e.index),Object.hasOwn(e,"input")&&(i.input=e.input),i}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let i=new RegExp(e.source,e.flags);return i.lastIndex=e.lastIndex,i}if(e instanceof Map){let i=new Map;n.set(e,i);for(let[l,s]of e)i.set(l,An(s,l,r,n,o));return i}if(e instanceof Set){let i=new Set;n.set(e,i);for(let l of e)i.add(An(l,void 0,r,n,o));return i}if(typeof Buffer<"u"&&Buffer.isBuffer(e))return e.subarray();if(ob(e)){let i=new(Object.getPrototypeOf(e)).constructor(e.length);n.set(e,i);for(let l=0;l<e.length;l++)i[l]=An(e[l],l,r,n,o);return i}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let i=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return n.set(e,i),Hr(i,e,r,n,o),i}if(typeof File<"u"&&e instanceof File){let i=new File([e],e.name,{type:e.type});return n.set(e,i),Hr(i,e,r,n,o),i}if(e instanceof Blob){let i=new Blob([e],{type:e.type});return n.set(e,i),Hr(i,e,r,n,o),i}if(e instanceof Error){let i=new e.constructor;return n.set(e,i),i.message=e.message,i.name=e.name,i.stack=e.stack,i.cause=e.cause,Hr(i,e,r,n,o),i}if(typeof e=="object"&&V3(e)){let i=Object.create(Object.getPrototypeOf(e));return n.set(e,i),Hr(i,e,r,n,o),i}return e}function Hr(e,t,r=e,n,o){let a=[...Object.keys(t),...ab(t)];for(let i=0;i<a.length;i++){let l=a[i],s=Object.getOwnPropertyDescriptor(e,l);(s==null||s.writable)&&(e[l]=An(t[l],l,r,n,o))}}function V3(e){switch($3(e)){case ub:case _3:case T3:case P3:case sb:case k3:case H3:case U3:case j3:case M3:case z3:case O3:case lb:case R3:case A3:case F3:case ib:case D3:case I3:case L3:case B3:case N3:return!0;default:return!1}}function q3(e){return Number.isSafeInteger(e)&&e>=0}function Vc(e){return e!=null&&typeof e!="function"&&q3(e.length)}function G3(e,t){return W3(e,(r,n,o,a)=>{if(typeof e=="object")switch(Object.prototype.toString.call(e)){case lb:case ib:case sb:{let i=new e.constructor(e?.valueOf());return Hr(i,e),i}case ub:{let i={};return Hr(i,e),i.length=e.length,i[Symbol.iterator]=e[Symbol.iterator],i}default:return}})}function Y3(e){return G3(e)}function K3(e,t,r=1){if(t==null&&(t=e,e=0),!Number.isInteger(r)||r===0)throw new Error("The step value must be a non-zero integer.");let n=Math.max(Math.ceil((t-e)/r),0),o=new Array(n);for(let a=0;a<n;a++)o[a]=e+a*r;return o}function X3(e){return Vc(e)?S3(Array.from(e)):[]}function Z3(e){return typeof Buffer<"u"&&Buffer.isBuffer(e)}function J3(e){let t=e?.constructor,r=typeof t=="function"?t.prototype:Object.prototype;return e===r}function Q3(e){return ob(e)}function eD(e,t){if(e=w3(e),e<1||!Number.isSafeInteger(e))return[];let r=new Array(e);for(let n=0;n<e;n++)r[n]=typeof t=="function"?t(n):n;return r}function tD(e){if(e==null)return[];switch(typeof e){case"object":case"function":return Vc(e)?nD(e):J3(e)?rD(e):si(e);default:return si(Object(e))}}function si(e){let t=[];for(let r in e)t.push(r);return t}function rD(e){return si(e).filter(t=>t!=="constructor")}function nD(e){let t=eD(e.length,n=>`${n}`),r=new Set(t);return Z3(e)&&(r.add("offset"),r.add("parent")),Q3(e)&&(r.add("buffer"),r.add("byteLength"),r.add("byteOffset")),[...t,...si(e).filter(n=>!r.has(n))]}function oD(e){let t=[];for(;e;)t.push(...ab(e)),e=Object.getPrototypeOf(e);return t}function aD(e,t){if(e==null)return{};let r={};if(t==null)return e;let n=Vc(e)?K3(0,e.length):[...tD(e),...oD(e)];for(let o=0;o<n.length;o++){let a=nb(n[o])?n[o]:n[o].toString(),i=e[a];t(i,a,e)&&(r[a]=i)}return r}var Ft=e=>`control-${e.replace(/\s+/g,"-")}`,qi=e=>`set-${e.replace(/\s+/g,"-")}`,iD=Object.create,cb=Object.defineProperty,lD=Object.getOwnPropertyDescriptor,db=Object.getOwnPropertyNames,sD=Object.getPrototypeOf,uD=Object.prototype.hasOwnProperty,ba=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),cD=(e,t)=>function(){return t||(0,e[db(e)[0]])((t={exports:{}}).exports,t),t.exports},dD=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of db(t))!uD.call(e,o)&&o!==r&&cb(e,o,{get:()=>t[o],enumerable:!(n=lD(t,o))||n.enumerable});return e},pD=(e,t,r)=>(r=e!=null?iD(sD(e)):{},dD(!e||!e.__esModule?cb(r,"default",{value:e,enumerable:!0}):r,e)),fD=Object.create,qc=Object.defineProperty,gD=Object.getOwnPropertyDescriptor,mD=Object.getOwnPropertyNames,hD=Object.getPrototypeOf,yD=Object.prototype.hasOwnProperty,P=(e,t)=>qc(e,"name",{value:t,configurable:!0}),va=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),Gi=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),bD=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of mD(t))!yD.call(e,o)&&o!==r&&qc(e,o,{get:()=>t[o],enumerable:!(n=gD(t,o))||n.enumerable});return e},Gc=(e,t,r)=>(r=e!=null?fD(hD(e)):{},bD(t||!e||!e.__esModule?qc(r,"default",{value:e,enumerable:!0}):r,e)),vD=Gi(e=>{(function(){var t=typeof Symbol=="function"&&Symbol.for,r=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,o=t?Symbol.for("react.fragment"):60107,a=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,l=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,d=t?Symbol.for("react.concurrent_mode"):60111,p=t?Symbol.for("react.forward_ref"):60112,c=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,m=t?Symbol.for("react.memo"):60115,y=t?Symbol.for("react.lazy"):60116,x=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,C=t?Symbol.for("react.responder"):60118,w=t?Symbol.for("react.scope"):60119;function E(M){return typeof M=="string"||typeof M=="function"||M===o||M===d||M===i||M===a||M===c||M===f||typeof M=="object"&&M!==null&&(M.$$typeof===y||M.$$typeof===m||M.$$typeof===l||M.$$typeof===s||M.$$typeof===p||M.$$typeof===v||M.$$typeof===C||M.$$typeof===w||M.$$typeof===x)}P(E,"isValidElementType");function $(M){if(typeof M=="object"&&M!==null){var U=M.$$typeof;switch(U){case r:var fe=M.type;switch(fe){case u:case d:case o:case i:case a:case c:return fe;default:var ke=fe&&fe.$$typeof;switch(ke){case s:case p:case y:case m:case l:return ke;default:return U}}case n:return U}}}P($,"typeOf");var A=u,S=d,D=s,F=l,k=r,_=p,I=o,L=y,j=m,B=n,z=i,q=a,Y=c,W=!1;function G(M){return W||(W=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),J(M)||$(M)===u}P(G,"isAsyncMode");function J(M){return $(M)===d}P(J,"isConcurrentMode");function Q(M){return $(M)===s}P(Q,"isContextConsumer");function re(M){return $(M)===l}P(re,"isContextProvider");function ie(M){return typeof M=="object"&&M!==null&&M.$$typeof===r}P(ie,"isElement");function H(M){return $(M)===p}P(H,"isForwardRef");function X(M){return $(M)===o}P(X,"isFragment");function Z(M){return $(M)===y}P(Z,"isLazy");function le(M){return $(M)===m}P(le,"isMemo");function me(M){return $(M)===n}P(me,"isPortal");function Re(M){return $(M)===i}P(Re,"isProfiler");function ne(M){return $(M)===a}P(ne,"isStrictMode");function de(M){return $(M)===c}P(de,"isSuspense"),e.AsyncMode=A,e.ConcurrentMode=S,e.ContextConsumer=D,e.ContextProvider=F,e.Element=k,e.ForwardRef=_,e.Fragment=I,e.Lazy=L,e.Memo=j,e.Portal=B,e.Profiler=z,e.StrictMode=q,e.Suspense=Y,e.isAsyncMode=G,e.isConcurrentMode=J,e.isContextConsumer=Q,e.isContextProvider=re,e.isElement=ie,e.isForwardRef=H,e.isFragment=X,e.isLazy=Z,e.isMemo=le,e.isPortal=me,e.isProfiler=Re,e.isStrictMode=ne,e.isSuspense=de,e.isValidElementType=E,e.typeOf=$})()}),xD=Gi((e,t)=>{t.exports=vD()}),pb=Gi((e,t)=>{var r=xD(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};l[r.ForwardRef]=a,l[r.Memo]=i;function s(x){return r.isMemo(x)?i:l[x.$$typeof]||n}P(s,"getStatics");var u=Object.defineProperty,d=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,m=Object.prototype;function y(x,v,C){if(typeof v!="string"){if(m){var w=f(v);w&&w!==m&&y(x,w,C)}var E=d(v);p&&(E=E.concat(p(v)));for(var $=s(x),A=s(v),S=0;S<E.length;++S){var D=E[S];if(!o[D]&&!(C&&C[D])&&!(A&&A[D])&&!($&&$[D])){var F=c(v,D);try{u(x,D,F)}catch{}}}}return x}P(y,"hoistNonReactStatics"),t.exports=y}),ED=Gi((e,t)=>{(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return P(function r(n,o,a){function i(u,d){if(!o[u]){if(!n[u]){var p=typeof va=="function"&&va;if(!d&&p)return p(u,!0);if(l)return l(u,!0);var c=new Error("Cannot find module '"+u+"'");throw c.code="MODULE_NOT_FOUND",c}var f=o[u]={exports:{}};n[u][0].call(f.exports,function(m){var y=n[u][1][m];return i(y||m)},f,f.exports,r,n,o,a)}return o[u].exports}P(i,"s");for(var l=typeof va=="function"&&va,s=0;s<a.length;s++)i(a[s]);return i},"e")({1:[function(r,n,o){n.exports=function(a){if(typeof Map!="function"||a){var i=r("./similar");return new i}else return new Map}},{"./similar":2}],2:[function(r,n,o){function a(){return this.list=[],this.lastItem=void 0,this.size=0,this}P(a,"Similar"),a.prototype.get=function(i){var l;if(this.lastItem&&this.isEqual(this.lastItem.key,i))return this.lastItem.val;if(l=this.indexOf(i),l>=0)return this.lastItem=this.list[l],this.list[l].val},a.prototype.set=function(i,l){var s;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=l,this):(s=this.indexOf(i),s>=0?(this.lastItem=this.list[s],this.list[s].val=l,this):(this.lastItem={key:i,val:l},this.list.push(this.lastItem),this.size++,this))},a.prototype.delete=function(i){var l;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),l=this.indexOf(i),l>=0)return this.size--,this.list.splice(l,1)[0]},a.prototype.has=function(i){var l;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(l=this.indexOf(i),l>=0?(this.lastItem=this.list[l],!0):!1)},a.prototype.forEach=function(i,l){var s;for(s=0;s<this.size;s++)i.call(l||this,this.list[s].val,this.list[s].key,this)},a.prototype.indexOf=function(i){var l;for(l=0;l<this.size;l++)if(this.isEqual(this.list[l].key,i))return l;return-1},a.prototype.isEqual=function(i,l){return i===l||i!==i&&l!==l},n.exports=a},{}],3:[function(r,n,o){var a=r("map-or-similar");n.exports=function(u){var d=new a(!1),p=[];return function(c){var f=P(function(){var m=d,y,x,v=arguments.length-1,C=Array(v+1),w=!0,E;if((f.numArgs||f.numArgs===0)&&f.numArgs!==v+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(E=0;E<v;E++){if(C[E]={cacheItem:m,arg:arguments[E]},m.has(arguments[E])){m=m.get(arguments[E]);continue}w=!1,y=new a(!1),m.set(arguments[E],y),m=y}return w&&(m.has(arguments[v])?x=m.get(arguments[v]):w=!1),w||(x=c.apply(null,arguments),m.set(arguments[v],x)),u>0&&(C[v]={cacheItem:m,arg:arguments[v]},w?i(p,C):p.push(C),p.length>u&&l(p.shift())),f.wasMemoized=w,f.numArgs=v+1,x},"memoizerific");return f.limit=u,f.wasMemoized=!1,f.cache=d,f.lru=p,f}};function i(u,d){var p=u.length,c=d.length,f,m,y;for(m=0;m<p;m++){for(f=!0,y=0;y<c;y++)if(!s(u[m][y].arg,d[y].arg)){f=!1;break}if(f)break}u.push(u.splice(m,1)[0])}P(i,"moveToMostRecentLru");function l(u){var d=u.length,p=u[d-1],c,f;for(p.cacheItem.delete(p.arg),f=d-2;f>=0&&(p=u[f],c=p.cacheItem.get(p.arg),!c||!c.size);f--)p.cacheItem.delete(p.arg)}P(l,"removeCachedResult");function s(u,d){return u===d||u!==u&&d!==d}P(s,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})});function Be(){return Be=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Be.apply(null,arguments)}P(Be,"_extends");function fb(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}P(fb,"sheetForTag");function gb(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}P(gb,"createStyleElement");var wD=(function(){function e(r){var n=this;this._insertTag=function(o){var a;n.tags.length===0?n.insertionPoint?a=n.insertionPoint.nextSibling:n.prepend?a=n.container.firstChild:a=n.before:a=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,a),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}P(e,"StyleSheet");var t=e.prototype;return t.hydrate=P(function(r){r.forEach(this._insertTag)},"hydrate"),t.insert=P(function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(gb(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var o=fb(n);try{o.insertRule(r,o.cssRules.length)}catch{}}else n.appendChild(document.createTextNode(r));this.ctr++},"insert"),t.flush=P(function(){this.tags.forEach(function(r){var n;return(n=r.parentNode)==null?void 0:n.removeChild(r)}),this.tags=[],this.ctr=0},"flush"),e})(),He="-ms-",ui="-moz-",ce="-webkit-",mb="comm",Yc="rule",Kc="decl",SD="@import",hb="@keyframes",CD="@layer",$D=Math.abs,Yi=String.fromCharCode,AD=Object.assign;function yb(e,t){return Le(e,0)^45?(((t<<2^Le(e,0))<<2^Le(e,1))<<2^Le(e,2))<<2^Le(e,3):0}P(yb,"hash");function Xc(e){return e.trim()}P(Xc,"trim");function bb(e,t){return(e=t.exec(e))?e[0]:e}P(bb,"match");function ue(e,t,r){return e.replace(t,r)}P(ue,"replace");function ci(e,t){return e.indexOf(t)}P(ci,"indexof");function Le(e,t){return e.charCodeAt(t)|0}P(Le,"charat");function zn(e,t,r){return e.slice(t,r)}P(zn,"substr");function Ct(e){return e.length}P(Ct,"strlen");function Ki(e){return e.length}P(Ki,"sizeof");function Fo(e,t){return t.push(e),e}P(Fo,"append");function vb(e,t){return e.map(t).join("")}P(vb,"combine");var Xi=1,Hn=1,xb=0,Je=0,De=0,ao="";function ra(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:Xi,column:Hn,length:i,return:""}}P(ra,"node");function En(e,t){return AD(ra("",null,null,"",null,null,0),e,{length:-e.length},t)}P(En,"copy");function Eb(){return De}P(Eb,"char");function wb(){return De=Je>0?Le(ao,--Je):0,Hn--,De===10&&(Hn=1,Xi--),De}P(wb,"prev");function Ze(){return De=Je<xb?Le(ao,Je++):0,Hn++,De===10&&(Hn=1,Xi++),De}P(Ze,"next");function Dt(){return Le(ao,Je)}P(Dt,"peek");function Lo(){return Je}P(Lo,"caret");function io(e,t){return zn(ao,e,t)}P(io,"slice");function Un(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}P(Un,"token");function Zc(e){return Xi=Hn=1,xb=Ct(ao=e),Je=0,[]}P(Zc,"alloc");function Jc(e){return ao="",e}P(Jc,"dealloc");function Bo(e){return Xc(io(Je-1,di(e===91?e+2:e===40?e+1:e)))}P(Bo,"delimit");function Sb(e){for(;(De=Dt())&&De<33;)Ze();return Un(e)>2||Un(De)>3?"":" "}P(Sb,"whitespace");function Cb(e,t){for(;--t&&Ze()&&!(De<48||De>102||De>57&&De<65||De>70&&De<97););return io(e,Lo()+(t<6&&Dt()==32&&Ze()==32))}P(Cb,"escaping");function di(e){for(;Ze();)switch(De){case e:return Je;case 34:case 39:e!==34&&e!==39&&di(De);break;case 40:e===41&&di(e);break;case 92:Ze();break}return Je}P(di,"delimiter");function $b(e,t){for(;Ze()&&e+De!==57&&!(e+De===84&&Dt()===47););return"/*"+io(t,Je-1)+"*"+Yi(e===47?e:Ze())}P($b,"commenter");function Ab(e){for(;!Un(Dt());)Ze();return io(e,Je)}P(Ab,"identifier");function Db(e){return Jc(No("",null,null,null,[""],e=Zc(e),0,[0],e))}P(Db,"compile");function No(e,t,r,n,o,a,i,l,s){for(var u=0,d=0,p=i,c=0,f=0,m=0,y=1,x=1,v=1,C=0,w="",E=o,$=a,A=n,S=w;x;)switch(m=C,C=Ze()){case 40:if(m!=108&&Le(S,p-1)==58){ci(S+=ue(Bo(C),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:S+=Bo(C);break;case 9:case 10:case 13:case 32:S+=Sb(m);break;case 92:S+=Cb(Lo()-1,7);continue;case 47:switch(Dt()){case 42:case 47:Fo(kb($b(Ze(),Lo()),t,r),s);break;default:S+="/"}break;case 123*y:l[u++]=Ct(S)*v;case 125*y:case 59:case 0:switch(C){case 0:case 125:x=0;case 59+d:v==-1&&(S=ue(S,/\f/g,"")),f>0&&Ct(S)-p&&Fo(f>32?lu(S+";",n,r,p-1):lu(ue(S," ","")+";",n,r,p-2),s);break;case 59:S+=";";default:if(Fo(A=iu(S,t,r,u,d,o,l,w,E=[],$=[],p),a),C===123)if(d===0)No(S,t,A,A,E,a,p,l,$);else switch(c===99&&Le(S,3)===110?100:c){case 100:case 108:case 109:case 115:No(e,A,A,n&&Fo(iu(e,A,A,0,0,o,l,w,o,E=[],p),$),o,$,p,l,n?E:$);break;default:No(S,A,A,A,[""],$,0,l,$)}}u=d=f=0,y=v=1,w=S="",p=i;break;case 58:p=1+Ct(S),f=m;default:if(y<1){if(C==123)--y;else if(C==125&&y++==0&&wb()==125)continue}switch(S+=Yi(C),C*y){case 38:v=d>0?1:(S+="\f",-1);break;case 44:l[u++]=(Ct(S)-1)*v,v=1;break;case 64:Dt()===45&&(S+=Bo(Ze())),c=Dt(),d=p=Ct(w=S+=Ab(Lo())),C++;break;case 45:m===45&&Ct(S)==2&&(y=0)}}return a}P(No,"parse");function iu(e,t,r,n,o,a,i,l,s,u,d){for(var p=o-1,c=o===0?a:[""],f=Ki(c),m=0,y=0,x=0;m<n;++m)for(var v=0,C=zn(e,p+1,p=$D(y=i[m])),w=e;v<f;++v)(w=Xc(y>0?c[v]+" "+C:ue(C,/&\f/g,c[v])))&&(s[x++]=w);return ra(e,t,r,o===0?Yc:l,s,u,d)}P(iu,"ruleset");function kb(e,t,r){return ra(e,t,r,mb,Yi(Eb()),zn(e,2,-2),0)}P(kb,"comment");function lu(e,t,r,n){return ra(e,t,r,Kc,zn(e,0,n),zn(e,n+1,-1),n)}P(lu,"declaration");function Yr(e,t){for(var r="",n=Ki(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}P(Yr,"serialize");function Ob(e,t,r,n){switch(e.type){case CD:if(e.children.length)break;case SD:case Kc:return e.return=e.return||e.value;case mb:return"";case hb:return e.return=e.value+"{"+Yr(e.children,n)+"}";case Yc:e.value=e.props.join(",")}return Ct(r=Yr(e.children,n))?e.return=e.value+"{"+r+"}":""}P(Ob,"stringify");function Fb(e){var t=Ki(e);return function(r,n,o,a){for(var i="",l=0;l<t;l++)i+=e[l](r,n,o,a)||"";return i}}P(Fb,"middleware");function _b(e){return function(t){t.root||(t=t.return)&&e(t)}}P(_b,"rulesheet");var Rf=P(function(e){var t=new WeakMap;return function(r){if(t.has(r))return t.get(r);var n=e(r);return t.set(r,n),n}},"weakMemoize");function Qc(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}P(Qc,"memoize");var DD=P(function(e,t,r){for(var n=0,o=0;n=o,o=Dt(),n===38&&o===12&&(t[r]=1),!Un(o);)Ze();return io(e,Je)},"identifierWithPointTracking"),kD=P(function(e,t){var r=-1,n=44;do switch(Un(n)){case 0:n===38&&Dt()===12&&(t[r]=1),e[r]+=DD(Je-1,t,r);break;case 2:e[r]+=Bo(n);break;case 4:if(n===44){e[++r]=Dt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Yi(n)}while(n=Ze());return e},"toRules"),OD=P(function(e,t){return Jc(kD(Zc(e),t))},"getRules"),Pf=new WeakMap,FD=P(function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!Pf.get(r))&&!n){Pf.set(e,!0);for(var o=[],a=OD(t,o),i=r.props,l=0,s=0;l<a.length;l++)for(var u=0;u<i.length;u++,s++)e.props[s]=o[l]?a[l].replace(/&\f/g,i[u]):i[u]+" "+a[l]}}},"compat"),_D=P(function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}},"removeLabel");function ed(e,t){switch(yb(e,t)){case 5103:return ce+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ce+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ce+e+ui+e+He+e+e;case 6828:case 4268:return ce+e+He+e+e;case 6165:return ce+e+He+"flex-"+e+e;case 5187:return ce+e+ue(e,/(\w+).+(:[^]+)/,ce+"box-$1$2"+He+"flex-$1$2")+e;case 5443:return ce+e+He+"flex-item-"+ue(e,/flex-|-self/,"")+e;case 4675:return ce+e+He+"flex-line-pack"+ue(e,/align-content|flex-|-self/,"")+e;case 5548:return ce+e+He+ue(e,"shrink","negative")+e;case 5292:return ce+e+He+ue(e,"basis","preferred-size")+e;case 6060:return ce+"box-"+ue(e,"-grow","")+ce+e+He+ue(e,"grow","positive")+e;case 4554:return ce+ue(e,/([^-])(transform)/g,"$1"+ce+"$2")+e;case 6187:return ue(ue(ue(e,/(zoom-|grab)/,ce+"$1"),/(image-set)/,ce+"$1"),e,"")+e;case 5495:case 3959:return ue(e,/(image-set\([^]*)/,ce+"$1$`$1");case 4968:return ue(ue(e,/(.+:)(flex-)?(.*)/,ce+"box-pack:$3"+He+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ce+e+e;case 4095:case 3583:case 4068:case 2532:return ue(e,/(.+)-inline(.+)/,ce+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ct(e)-1-t>6)switch(Le(e,t+1)){case 109:if(Le(e,t+4)!==45)break;case 102:return ue(e,/(.+:)(.+)-([^]+)/,"$1"+ce+"$2-$3$1"+ui+(Le(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ci(e,"stretch")?ed(ue(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Le(e,t+1)!==115)break;case 6444:switch(Le(e,Ct(e)-3-(~ci(e,"!important")&&10))){case 107:return ue(e,":",":"+ce)+e;case 101:return ue(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ce+(Le(e,14)===45?"inline-":"")+"box$3$1"+ce+"$2$3$1"+He+"$2box$3")+e}break;case 5936:switch(Le(e,t+11)){case 114:return ce+e+He+ue(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ce+e+He+ue(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ce+e+He+ue(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ce+e+He+e+e}return e}P(ed,"prefix");var TD=P(function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Kc:e.return=ed(e.value,e.length);break;case hb:return Yr([En(e,{value:ue(e.value,"@","@"+ce)})],n);case Yc:if(e.length)return vb(e.props,function(o){switch(bb(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Yr([En(e,{props:[ue(o,/:(read-\w+)/,":"+ui+"$1")]})],n);case"::placeholder":return Yr([En(e,{props:[ue(o,/:(plac\w+)/,":"+ce+"input-$1")]}),En(e,{props:[ue(o,/:(plac\w+)/,":"+ui+"$1")]}),En(e,{props:[ue(o,/:(plac\w+)/,He+"input-$1")]})],n)}return""})}},"prefixer"),RD=[TD],PD=P(function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var y=m.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||RD,o={},a,i=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var y=m.getAttribute("data-emotion").split(" "),x=1;x<y.length;x++)o[y[x]]=!0;i.push(m)});var l,s=[FD,_D];{var u,d=[Ob,_b(function(m){u.insert(m)})],p=Fb(s.concat(n,d)),c=P(function(m){return Yr(Db(m),p)},"stylis");l=P(function(m,y,x,v){u=x,c(m?m+"{"+y.styles+"}":y.styles),v&&(f.inserted[y.name]=!0)},"insert")}var f={key:t,sheet:new wD({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:l};return f.sheet.hydrate(i),f},"createCache"),ID=Gc(pb()),LD=P(function(e,t){return(0,ID.default)(e,t)},"hoistNonReactStatics"),BD=!0;function Zi(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}P(Zi,"getRegisteredStyles");var td=P(function(e,t,r){var n=e.key+"-"+t.name;(r===!1||BD===!1)&&e.registered[n]===void 0&&(e.registered[n]=t.styles)},"registerStyles"),Tb=P(function(e,t,r){td(e,t,r);var n=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var o=t;do e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}},"insertStyles");function Rb(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}P(Rb,"murmur2");var ND={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},jD=/[A-Z]|^ms/g,MD=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Pb=P(function(e){return e.charCodeAt(1)===45},"isCustomProperty"),If=P(function(e){return e!=null&&typeof e!="boolean"},"isProcessableValue"),Wl=Qc(function(e){return Pb(e)?e:e.replace(jD,"-$&").toLowerCase()}),Lf=P(function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(MD,function(r,n,o){return jt={name:n,styles:o,next:jt},n})}return ND[e]!==1&&!Pb(e)&&typeof t=="number"&&t!==0?t+"px":t},"processStyleValue");function Wn(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return jt={name:o.name,styles:o.styles,next:jt},o.name;var a=r;if(a.styles!==void 0){var i=a.next;if(i!==void 0)for(;i!==void 0;)jt={name:i.name,styles:i.styles,next:jt},i=i.next;var l=a.styles+";";return l}return Ib(e,t,r)}case"function":{if(e!==void 0){var s=jt,u=r(e);return jt=s,Wn(e,t,u)}break}}var d=r;if(t==null)return d;var p=t[d];return p!==void 0?p:d}P(Wn,"handleInterpolation");function Ib(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Wn(e,t,r[o])+";";else for(var a in r){var i=r[a];if(typeof i!="object"){var l=i;t!=null&&t[l]!==void 0?n+=a+"{"+t[l]+"}":If(l)&&(n+=Wl(a)+":"+Lf(a,l)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var s=0;s<i.length;s++)If(i[s])&&(n+=Wl(a)+":"+Lf(a,i[s])+";");else{var u=Wn(e,t,i);switch(a){case"animation":case"animationName":{n+=Wl(a)+":"+u+";";break}default:n+=a+"{"+u+"}"}}}return n}P(Ib,"createStringFromObject");var Bf=/label:\s*([^\s;{]+)\s*(;|$)/g,jt;function Ji(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";jt=void 0;var a=e[0];if(a==null||a.raw===void 0)n=!1,o+=Wn(r,t,a);else{var i=a;o+=i[0]}for(var l=1;l<e.length;l++)if(o+=Wn(r,t,e[l]),n){var s=a;o+=s[l]}Bf.lastIndex=0;for(var u="",d;(d=Bf.exec(o))!==null;)u+="-"+d[1];var p=Rb(o)+u;return{name:p,styles:o,next:jt}}P(Ji,"serializeStyles");var zD=P(function(e){return e()},"syncFallback"),HD=b.useInsertionEffect?b.useInsertionEffect:!1,Lb=HD||zD,Bb=b.createContext(typeof HTMLElement<"u"?PD({key:"css"}):null);Bb.Provider;var Nb=P(function(e){return b.forwardRef(function(t,r){var n=b.useContext(Bb);return e(t,n,r)})},"withEmotionCache"),Vn=b.createContext({}),jb=P(function(){return b.useContext(Vn)},"useTheme"),UD=P(function(e,t){if(typeof t=="function"){var r=t(e);return r}return Be({},e,t)},"getTheme"),WD=Rf(function(e){return Rf(function(t){return UD(e,t)})}),Mb=P(function(e){var t=b.useContext(Vn);return e.theme!==t&&(t=WD(t)(e.theme)),b.createElement(Vn.Provider,{value:t},e.children)},"ThemeProvider");function VD(e){var t=e.displayName||e.name||"Component",r=b.forwardRef(P(function(n,o){var a=b.useContext(Vn);return b.createElement(e,Be({theme:a,ref:o},n))},"render"));return r.displayName="WithTheme("+t+")",LD(r,e)}P(VD,"withTheme");var rd={}.hasOwnProperty,su="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",qD=P(function(e,t){var r={};for(var n in t)rd.call(t,n)&&(r[n]=t[n]);return r[su]=e,r},"createEmotionProps"),GD=P(function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return td(t,r,n),Lb(function(){return Tb(t,r,n)}),null},"Insertion"),YD=Nb(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[su],a=[n],i="";typeof e.className=="string"?i=Zi(t.registered,a,e.className):e.className!=null&&(i=e.className+" ");var l=Ji(a,void 0,b.useContext(Vn));i+=t.key+"-"+l.name;var s={};for(var u in e)rd.call(e,u)&&u!=="css"&&u!==su&&(s[u]=e[u]);return s.className=i,r&&(s.ref=r),b.createElement(b.Fragment,null,b.createElement(GD,{cache:t,serialized:l,isStringTag:typeof o=="string"}),b.createElement(o,s))}),KD=YD;Gc(pb());var Nf=P(function(e,t){var r=arguments;if(t==null||!rd.call(t,"css"))return b.createElement.apply(void 0,r);var n=r.length,o=new Array(n);o[0]=KD,o[1]=qD(e,t);for(var a=2;a<n;a++)o[a]=r[a];return b.createElement.apply(null,o)},"jsx");(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Nf||(Nf={}));function Qi(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Ji(t)}P(Qi,"css");function _t(){var e=Qi.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:P(function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"},"toString")}}P(_t,"keyframes");function XD(e,t,r){var n=[],o=Zi(e,n,r);return n.length<2?r:o+t(n)}P(XD,"merge");var ZD=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,nd=Qc(function(e){return ZD.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),JD=nd,QD=P(function(e){return e!=="theme"},"testOmitPropsOnComponent"),jf=P(function(e){return typeof e=="string"&&e.charCodeAt(0)>96?JD:QD},"getDefaultShouldForwardProp"),Mf=P(function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(a){return e.__emotion_forwardProp(a)&&o(a)}:o}return typeof n!="function"&&r&&(n=e.__emotion_forwardProp),n},"composeShouldForwardProps"),e5=P(function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return td(t,r,n),Lb(function(){return Tb(t,r,n)}),null},"Insertion"),t5=P(function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,a,i;r!==void 0&&(a=r.label,i=r.target);var l=Mf(t,r,n),s=l||jf(o),u=!s("as");return function(){var d=arguments,p=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&p.push("label:"+a+";"),d[0]==null||d[0].raw===void 0)p.push.apply(p,d);else{var c=d[0];p.push(c[0]);for(var f=d.length,m=1;m<f;m++)p.push(d[m],c[m])}var y=Nb(function(x,v,C){var w=u&&x.as||o,E="",$=[],A=x;if(x.theme==null){A={};for(var S in x)A[S]=x[S];A.theme=b.useContext(Vn)}typeof x.className=="string"?E=Zi(v.registered,$,x.className):x.className!=null&&(E=x.className+" ");var D=Ji(p.concat($),v.registered,A);E+=v.key+"-"+D.name,i!==void 0&&(E+=" "+i);var F=u&&l===void 0?jf(w):s,k={};for(var _ in x)u&&_==="as"||F(_)&&(k[_]=x[_]);return k.className=E,C&&(k.ref=C),b.createElement(b.Fragment,null,b.createElement(e5,{cache:v,serialized:D,isStringTag:typeof w=="string"}),b.createElement(w,k))});return y.displayName=a!==void 0?a:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=o,y.__emotion_styles=p,y.__emotion_forwardProp=l,Object.defineProperty(y,"toString",{value:P(function(){return"."+i},"value")}),y.withComponent=function(x,v){var C=e(x,Be({},r,v,{shouldForwardProp:Mf(y,v,!0)}));return C.apply(void 0,p)},y}},"createStyled"),r5=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","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","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],T=t5.bind(null);r5.forEach(function(e){T[e]=T(e)});function zb(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}P(zb,"_assertThisInitialized");function qn(e,t){return qn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},qn(e,t)}P(qn,"_setPrototypeOf");function Hb(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,qn(e,t)}P(Hb,"_inheritsLoose");function pi(e){return pi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},pi(e)}P(pi,"_getPrototypeOf");function Ub(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}P(Ub,"_isNativeFunction");function od(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(od=P(function(){return!!e},"_isNativeReflectConstruct"))()}P(od,"_isNativeReflectConstruct");function Wb(e,t,r){if(od())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&qn(o,r.prototype),o}P(Wb,"_construct");function fi(e){var t=typeof Map=="function"?new Map:void 0;return fi=P(function(r){if(r===null||!Ub(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,n)}function n(){return Wb(r,arguments,pi(this).constructor)}return P(n,"Wrapper"),n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),qn(n,r)},"_wrapNativeSuper"),fi(e)}P(fi,"_wrapNativeSuper");var n5={1:`Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).
585
+
586
+ `,2:`Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).
587
+
588
+ `,3:`Passed an incorrect argument to a color function, please pass a string representation of a color.
589
+
590
+ `,4:`Couldn't generate valid rgb string from %s, it returned %s.
591
+
592
+ `,5:`Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.
593
+
594
+ `,6:`Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).
595
+
596
+ `,7:`Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).
597
+
598
+ `,8:`Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.
599
+
600
+ `,9:`Please provide a number of steps to the modularScale helper.
601
+
602
+ `,10:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio.
603
+
604
+ `,11:`Invalid value passed as base to modularScale, expected number or em string but got "%s"
605
+
606
+ `,12:`Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead.
607
+
608
+ `,13:`Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead.
609
+
610
+ `,14:`Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12.
611
+
612
+ `,15:`Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12.
613
+
614
+ `,16:`You must provide a template to this method.
615
+
616
+ `,17:`You passed an unsupported selector state to this method.
617
+
618
+ `,18:`minScreen and maxScreen must be provided as stringified numbers with the same units.
619
+
620
+ `,19:`fromSize and toSize must be provided as stringified numbers with the same units.
621
+
622
+ `,20:`expects either an array of objects or a single object with the properties prop, fromSize, and toSize.
623
+
624
+ `,21:"expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",22:"expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",23:`fontFace expects a name of a font-family.
625
+
626
+ `,24:`fontFace expects either the path to the font file(s) or a name of a local copy.
627
+
628
+ `,25:`fontFace expects localFonts to be an array.
629
+
630
+ `,26:`fontFace expects fileFormats to be an array.
631
+
632
+ `,27:`radialGradient requries at least 2 color-stops to properly render.
633
+
634
+ `,28:`Please supply a filename to retinaImage() as the first argument.
635
+
636
+ `,29:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.
637
+
638
+ `,30:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",31:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation
639
+
640
+ `,32:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])
641
+ To pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')
642
+
643
+ `,33:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation
644
+
645
+ `,34:`borderRadius expects a radius value as a string or number as the second argument.
646
+
647
+ `,35:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.
648
+
649
+ `,36:`Property must be a string value.
650
+
651
+ `,37:`Syntax Error at %s.
652
+
653
+ `,38:`Formula contains a function that needs parentheses at %s.
654
+
655
+ `,39:`Formula is missing closing parenthesis at %s.
656
+
657
+ `,40:`Formula has too many closing parentheses at %s.
658
+
659
+ `,41:`All values in a formula must have the same unit or be unitless.
660
+
661
+ `,42:`Please provide a number of steps to the modularScale helper.
662
+
663
+ `,43:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio.
664
+
665
+ `,44:`Invalid value passed as base to modularScale, expected number or em/rem string but got %s.
666
+
667
+ `,45:`Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.
668
+
669
+ `,46:`Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.
670
+
671
+ `,47:`minScreen and maxScreen must be provided as stringified numbers with the same units.
672
+
673
+ `,48:`fromSize and toSize must be provided as stringified numbers with the same units.
674
+
675
+ `,49:`Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.
676
+
677
+ `,50:`Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.
678
+
679
+ `,51:`Expects the first argument object to have the properties prop, fromSize, and toSize.
680
+
681
+ `,52:`fontFace expects either the path to the font file(s) or a name of a local copy.
682
+
683
+ `,53:`fontFace expects localFonts to be an array.
684
+
685
+ `,54:`fontFace expects fileFormats to be an array.
686
+
687
+ `,55:`fontFace expects a name of a font-family.
688
+
689
+ `,56:`linearGradient requries at least 2 color-stops to properly render.
690
+
691
+ `,57:`radialGradient requries at least 2 color-stops to properly render.
692
+
693
+ `,58:`Please supply a filename to retinaImage() as the first argument.
694
+
695
+ `,59:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.
696
+
697
+ `,60:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",61:`Property must be a string value.
698
+
699
+ `,62:`borderRadius expects a radius value as a string or number as the second argument.
700
+
701
+ `,63:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.
702
+
703
+ `,64:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.
704
+
705
+ `,65:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s').
706
+
707
+ `,66:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.
708
+
709
+ `,67:`You must provide a template to this method.
710
+
711
+ `,68:`You passed an unsupported selector state to this method.
712
+
713
+ `,69:`Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead.
714
+
715
+ `,70:`Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead.
716
+
717
+ `,71:`Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12.
718
+
719
+ `,72:`Passed invalid base value %s to %s(), please pass a value like "12px" or 12.
720
+
721
+ `,73:`Please provide a valid CSS variable.
722
+
723
+ `,74:`CSS variable not found and no default was provided.
724
+
725
+ `,75:`important requires a valid style object, got a %s instead.
726
+
727
+ `,76:`fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.
728
+
729
+ `,77:`remToPx expects a value in "rem" but you provided it in "%s".
730
+
731
+ `,78:`base must be set in "px" or "%" but you set it in "%s".
732
+ `};function Vb(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],o=[],a;for(a=1;a<t.length;a+=1)o.push(t[a]);return o.forEach(function(i){n=n.replace(/%[a-z]/,i)}),n}P(Vb,"format");var Ke=(function(e){Hb(t,e);function t(r){for(var n,o=arguments.length,a=new Array(o>1?o-1:0),i=1;i<o;i++)a[i-1]=arguments[i];return n=e.call(this,Vb.apply(void 0,[n5[r]].concat(a)))||this,zb(n)}return P(t,"PolishedError"),t})(fi(Error));function uu(e,t){return e.substr(-t.length)===t}P(uu,"endsWith");var o5=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;function cu(e){if(typeof e!="string")return e;var t=e.match(o5);return t?parseFloat(e):e}P(cu,"stripUnit");var a5=P(function(e){return function(t,r){r===void 0&&(r="16px");var n=t,o=r;if(typeof t=="string"){if(!uu(t,"px"))throw new Ke(69,e,t);n=cu(t)}if(typeof r=="string"){if(!uu(r,"px"))throw new Ke(70,e,r);o=cu(r)}if(typeof n=="string")throw new Ke(71,t,e);if(typeof o=="string")throw new Ke(72,r,e);return""+n/o+e}},"pxtoFactory"),qb=a5;qb("em");qb("rem");function ja(e){return Math.round(e*255)}P(ja,"colorToInt");function Gb(e,t,r){return ja(e)+","+ja(t)+","+ja(r)}P(Gb,"convertToInt");function Gn(e,t,r,n){if(n===void 0&&(n=Gb),t===0)return n(r,r,r);var o=(e%360+360)%360/60,a=(1-Math.abs(2*r-1))*t,i=a*(1-Math.abs(o%2-1)),l=0,s=0,u=0;o>=0&&o<1?(l=a,s=i):o>=1&&o<2?(l=i,s=a):o>=2&&o<3?(s=a,u=i):o>=3&&o<4?(s=i,u=a):o>=4&&o<5?(l=i,u=a):o>=5&&o<6&&(l=a,u=i);var d=r-a/2,p=l+d,c=s+d,f=u+d;return n(p,c,f)}P(Gn,"hslToRgb");var zf={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 Yb(e){if(typeof e!="string")return e;var t=e.toLowerCase();return zf[t]?"#"+zf[t]:e}P(Yb,"nameToHex");var i5=/^#[a-fA-F0-9]{6}$/,l5=/^#[a-fA-F0-9]{8}$/,s5=/^#[a-fA-F0-9]{3}$/,u5=/^#[a-fA-F0-9]{4}$/,Vl=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,c5=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,d5=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,p5=/^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 Zr(e){if(typeof e!="string")throw new Ke(3);var t=Yb(e);if(t.match(i5))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(l5)){var r=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:r}}if(t.match(s5))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(u5)){var n=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:n}}var o=Vl.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=c5.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 i=d5.exec(t);if(i){var l=parseInt(""+i[1],10),s=parseInt(""+i[2],10)/100,u=parseInt(""+i[3],10)/100,d="rgb("+Gn(l,s,u)+")",p=Vl.exec(d);if(!p)throw new Ke(4,t,d);return{red:parseInt(""+p[1],10),green:parseInt(""+p[2],10),blue:parseInt(""+p[3],10)}}var c=p5.exec(t.substring(0,50));if(c){var f=parseInt(""+c[1],10),m=parseInt(""+c[2],10)/100,y=parseInt(""+c[3],10)/100,x="rgb("+Gn(f,m,y)+")",v=Vl.exec(x);if(!v)throw new Ke(4,t,x);return{red:parseInt(""+v[1],10),green:parseInt(""+v[2],10),blue:parseInt(""+v[3],10),alpha:parseFloat(""+c[4])>1?parseFloat(""+c[4])/100:parseFloat(""+c[4])}}throw new Ke(5)}P(Zr,"parseToRgb");function Kb(e){var t=e.red/255,r=e.green/255,n=e.blue/255,o=Math.max(t,r,n),a=Math.min(t,r,n),i=(o+a)/2;if(o===a)return e.alpha!==void 0?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var l,s=o-a,u=i>.5?s/(2-o-a):s/(o+a);switch(o){case t:l=(r-n)/s+(r<n?6:0);break;case r:l=(n-t)/s+2;break;default:l=(t-r)/s+4;break}return l*=60,e.alpha!==void 0?{hue:l,saturation:u,lightness:i,alpha:e.alpha}:{hue:l,saturation:u,lightness:i}}P(Kb,"rgbToHsl");function ar(e){return Kb(Zr(e))}P(ar,"parseToHsl");var f5=P(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},"reduceHexValue"),du=f5;function br(e){var t=e.toString(16);return t.length===1?"0"+t:t}P(br,"numberToHex");function Ma(e){return br(Math.round(e*255))}P(Ma,"colorToHex");function Xb(e,t,r){return du("#"+Ma(e)+Ma(t)+Ma(r))}P(Xb,"convertToHex");function Go(e,t,r){return Gn(e,t,r,Xb)}P(Go,"hslToHex");function Zb(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return Go(e,t,r);if(typeof e=="object"&&t===void 0&&r===void 0)return Go(e.hue,e.saturation,e.lightness);throw new Ke(1)}P(Zb,"hsl");function Jb(e,t,r,n){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?Go(e,t,r):"rgba("+Gn(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?Go(e.hue,e.saturation,e.lightness):"rgba("+Gn(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Ke(2)}P(Jb,"hsla");function gi(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return du("#"+br(e)+br(t)+br(r));if(typeof e=="object"&&t===void 0&&r===void 0)return du("#"+br(e.red)+br(e.green)+br(e.blue));throw new Ke(6)}P(gi,"rgb");function Jr(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var o=Zr(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?gi(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?gi(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new Ke(7)}P(Jr,"rgba");var g5=P(function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},"isRgb"),m5=P(function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},"isRgba"),h5=P(function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},"isHsl"),y5=P(function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"},"isHsla");function ir(e){if(typeof e!="object")throw new Ke(8);if(m5(e))return Jr(e);if(g5(e))return gi(e);if(y5(e))return Jb(e);if(h5(e))return Zb(e);throw new Ke(8)}P(ir,"toColorString");function ad(e,t,r){return P(function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):ad(e,t,n)},"fn")}P(ad,"curried");function tt(e){return ad(e,e.length,[])}P(tt,"curry");function Qb(e,t){if(t==="transparent")return t;var r=ar(t);return ir(Be({},r,{hue:r.hue+parseFloat(e)}))}P(Qb,"adjustHue");tt(Qb);function an(e,t,r){return Math.max(e,Math.min(t,r))}P(an,"guard");function e1(e,t){if(t==="transparent")return t;var r=ar(t);return ir(Be({},r,{lightness:an(0,1,r.lightness-parseFloat(e))}))}P(e1,"darken");var b5=tt(e1),v5=b5;function t1(e,t){if(t==="transparent")return t;var r=ar(t);return ir(Be({},r,{saturation:an(0,1,r.saturation-parseFloat(e))}))}P(t1,"desaturate");tt(t1);function r1(e,t){if(t==="transparent")return t;var r=ar(t);return ir(Be({},r,{lightness:an(0,1,r.lightness+parseFloat(e))}))}P(r1,"lighten");var x5=tt(r1),E5=x5;function n1(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var n=Zr(t),o=Be({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),a=Zr(r),i=Be({},a,{alpha:typeof a.alpha=="number"?a.alpha:1}),l=o.alpha-i.alpha,s=parseFloat(e)*2-1,u=s*l===-1?s:s+l,d=1+s*l,p=(u/d+1)/2,c=1-p,f={red:Math.floor(o.red*p+i.red*c),green:Math.floor(o.green*p+i.green*c),blue:Math.floor(o.blue*p+i.blue*c),alpha:o.alpha*parseFloat(e)+i.alpha*(1-parseFloat(e))};return Jr(f)}P(n1,"mix");var w5=tt(n1),o1=w5;function a1(e,t){if(t==="transparent")return t;var r=Zr(t),n=typeof r.alpha=="number"?r.alpha:1,o=Be({},r,{alpha:an(0,1,(n*100+parseFloat(e)*100)/100)});return Jr(o)}P(a1,"opacify");var S5=tt(a1),C5=S5;function i1(e,t){if(t==="transparent")return t;var r=ar(t);return ir(Be({},r,{saturation:an(0,1,r.saturation+parseFloat(e))}))}P(i1,"saturate");tt(i1);function l1(e,t){return t==="transparent"?t:ir(Be({},ar(t),{hue:parseFloat(e)}))}P(l1,"setHue");tt(l1);function s1(e,t){return t==="transparent"?t:ir(Be({},ar(t),{lightness:parseFloat(e)}))}P(s1,"setLightness");tt(s1);function u1(e,t){return t==="transparent"?t:ir(Be({},ar(t),{saturation:parseFloat(e)}))}P(u1,"setSaturation");tt(u1);function c1(e,t){return t==="transparent"?t:o1(parseFloat(e),"rgb(0, 0, 0)",t)}P(c1,"shade");tt(c1);function d1(e,t){return t==="transparent"?t:o1(parseFloat(e),"rgb(255, 255, 255)",t)}P(d1,"tint");tt(d1);function p1(e,t){if(t==="transparent")return t;var r=Zr(t),n=typeof r.alpha=="number"?r.alpha:1,o=Be({},r,{alpha:an(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return Jr(o)}P(p1,"transparentize");var $5=tt(p1),A5=$5,K={secondary:"#029CFD",tertiary:"#FAFBFC",ancillary:"#22a699",orange:"#FC521F",gold:"#FFAE00",green:"#66BF3C",seafoam:"#37D5D3",purple:"#6F2CAC",ultraviolet:"#2A0481",lightest:"#FFFFFF",lighter:"#F7FAFC",light:"#EEF3F6",mediumlight:"#ECF4F9",medium:"#D9E8F2",mediumdark:"#73828C",dark:"#5C6870",darker:"#454E54",darkest:"#2E3438",border:"hsla(203, 50%, 30%, 0.15)",positive:"#66BF3C",negative:"#FF4400",warning:"#E69D00",critical:"#FFFFFF",positiveText:"#448028",negativeText:"#D43900",warningText:"#A15C20"},vr={app:"#F6F9FC",gridCellSize:10,hoverable:A5(.9,K.secondary),positive:"#E1FFD4",negative:"#FEDED2",warning:"#FFF5CF",critical:"#FF4400"},Ht={fonts:{base:['"Nunito Sans"',"-apple-system",'".SFNSText-Regular"','"San Francisco"',"BlinkMacSystemFont",'"Segoe UI"','"Helvetica Neue"',"Helvetica","Arial","sans-serif"].join(", "),mono:["ui-monospace","Menlo","Monaco",'"Roboto Mono"','"Oxygen Mono"','"Ubuntu Monospace"','"Source Code Pro"','"Droid Sans Mono"','"Courier New"',"monospace"].join(", ")},weight:{regular:400,bold:700},size:{s1:12,s2:14,s3:16,m1:20,m2:24,m3:28,l1:32,l2:40,l3:48,code:90}},f1=Gc(ED(),1),D5=(0,f1.default)(1)(({typography:e})=>({body:{fontFamily:e.fonts.base,fontSize:e.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},"*":{boxSizing:"border-box"},"h1, h2, h3, h4, h5, h6":{fontWeight:e.weight.regular,margin:0,padding:0},"button, input, textarea, select":{fontFamily:"inherit",fontSize:"inherit",boxSizing:"border-box"},sub:{fontSize:"0.8em",bottom:"-0.2em"},sup:{fontSize:"0.8em",top:"-0.2em"},"b, strong":{fontWeight:e.weight.bold},hr:{border:"none",borderTop:"1px solid silver",clear:"both",marginBottom:"1.25rem"},code:{fontFamily:e.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"},pre:{fontFamily:e.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0"}}));(0,f1.default)(1)(({color:e,background:t,typography:r})=>{let n=D5({typography:r});return{...n,body:{...n.body,color:e.defaultText,background:t.app,overflow:"hidden"},hr:{...n.hr,borderTop:`1px solid ${e.border}`},".sb-sr-only, .sb-hidden-until-focus:not(:focus)":{position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",border:0},".sb-hidden-until-focus":{opacity:0,transition:"opacity 150ms ease-out"},".sb-hidden-until-focus:focus":{opacity:1}}});var k5={base:"dark",colorPrimary:"#FF4785",colorSecondary:"#029CFD",appBg:"#222425",appContentBg:"#1B1C1D",appPreviewBg:K.lightest,appBorderColor:"rgba(255,255,255,.1)",appBorderRadius:4,fontBase:Ht.fonts.base,fontCode:Ht.fonts.mono,textColor:"#C9CDCF",textInverseColor:"#222425",textMutedColor:"#798186",barTextColor:K.mediumdark,barHoverColor:K.secondary,barSelectedColor:K.secondary,barBg:"#292C2E",buttonBg:"#222425",buttonBorder:"rgba(255,255,255,.1)",booleanBg:"#222425",booleanSelectedBg:"#2E3438",inputBg:"#1B1C1D",inputBorder:"rgba(255,255,255,.1)",inputTextColor:K.lightest,inputBorderRadius:4},O5=k5,F5={base:"light",colorPrimary:"#FF4785",colorSecondary:"#029CFD",appBg:vr.app,appContentBg:K.lightest,appPreviewBg:K.lightest,appBorderColor:K.border,appBorderRadius:4,fontBase:Ht.fonts.base,fontCode:Ht.fonts.mono,textColor:K.darkest,textInverseColor:K.lightest,textMutedColor:K.dark,barTextColor:K.mediumdark,barHoverColor:K.secondary,barSelectedColor:K.secondary,barBg:K.lightest,buttonBg:vr.app,buttonBorder:K.medium,booleanBg:K.mediumlight,booleanSelectedBg:K.lightest,inputBg:K.lightest,inputBorder:K.border,inputTextColor:K.darkest,inputBorderRadius:4},mi=F5;const{logger:_5}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{global:T5}=__STORYBOOK_MODULE_GLOBAL__;var{window:ql}=T5,R5=P(e=>({color:e}),"mkColor"),P5=P(e=>typeof e!="string"?(_5.warn(`Color passed to theme object should be a string. Instead ${e}(${typeof e}) was passed.`),!1):!0,"isColorString"),I5=P(e=>!/(gradient|var|calc)/.test(e),"isValidColorForPolished"),L5=P((e,t)=>e==="darken"?Jr(`${v5(1,t)}`,.95):e==="lighten"?Jr(`${E5(1,t)}`,.95):t,"applyPolished"),g1=P(e=>t=>{if(!P5(t)||!I5(t))return t;try{return L5(e,t)}catch{return t}},"colorFactory"),wn=g1("lighten");g1("darken");var m1=P(()=>!ql||!ql.matchMedia?"light":ql.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light","getPreferredColorScheme"),pu={light:mi,dark:O5,normal:mi};m1();var B5={rubber:"cubic-bezier(0.175, 0.885, 0.335, 1.05)"},N5=_t`
733
+ from {
734
+ transform: rotate(0deg);
735
+ }
736
+ to {
737
+ transform: rotate(360deg);
738
+ }
739
+ `,h1=_t`
740
+ 0%, 100% { opacity: 1; }
741
+ 50% { opacity: .4; }
742
+ `,j5=_t`
743
+ 0% { transform: translateY(1px); }
744
+ 25% { transform: translateY(0px); }
745
+ 50% { transform: translateY(-3px); }
746
+ 100% { transform: translateY(1px); }
747
+ `,M5=_t`
748
+ 0%, 100% { transform:translate3d(0,0,0); }
749
+ 12.5%, 62.5% { transform:translate3d(-4px,0,0); }
750
+ 37.5%, 87.5% { transform: translate3d(4px,0,0); }
751
+ `,z5=Qi`
752
+ animation: ${h1} 1.5s ease-in-out infinite;
753
+ color: transparent;
754
+ cursor: progress;
755
+ `,H5=Qi`
756
+ transition: all 150ms ease-out;
757
+ transform: translate3d(0, 0, 0);
758
+
759
+ &:hover {
760
+ transform: translate3d(0, -2px, 0);
761
+ }
762
+
763
+ &:active {
764
+ transform: translate3d(0, 0, 0);
765
+ }
766
+ `,U5={rotate360:N5,glow:h1,float:j5,jiggle:M5,inlineGlow:z5,hoverable:H5},W5={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"rgb(36, 36, 36)",BASE_COLOR:"rgb(213, 213, 213)",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(227, 110, 236)",OBJECT_VALUE_NULL_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_REGEXP_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_STRING_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_NUMBER_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_BOOLEAN_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(85, 106, 242)",HTML_TAG_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(155, 187, 220)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(242, 151, 102)",HTML_COMMENT_COLOR:"rgb(137, 137, 137)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"rgb(145, 145, 145)",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"rgb(85, 85, 85)",TABLE_TH_BACKGROUND_COLOR:"rgb(44, 44, 44)",TABLE_TH_HOVER_COLOR:"rgb(48, 48, 48)",TABLE_SORT_ICON_COLOR:"black",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(51, 139, 255, 0.0980392) 50%, rgba(51, 139, 255, 0.0980392))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},V5={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"white",BASE_COLOR:"black",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(136, 19, 145)",OBJECT_VALUE_NULL_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_REGEXP_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_STRING_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_NUMBER_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_BOOLEAN_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(13, 34, 170)",HTML_TAG_COLOR:"rgb(168, 148, 166)",HTML_TAGNAME_COLOR:"rgb(136, 18, 128)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(153, 69, 0)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(26, 26, 166)",HTML_COMMENT_COLOR:"rgb(35, 110, 37)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"#6e6e6e",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"#aaa",TABLE_TH_BACKGROUND_COLOR:"#eee",TABLE_TH_HOVER_COLOR:"hsla(0, 0%, 90%, 1)",TABLE_SORT_ICON_COLOR:"#6e6e6e",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},q5=P(e=>Object.entries(e).reduce((t,[r,n])=>({...t,[r]:R5(n)}),{}),"convertColors"),G5=P(({colors:e,mono:t})=>{let r=q5(e);return{token:{fontFamily:t,WebkitFontSmoothing:"antialiased","&.tag":r.red3,"&.comment":{...r.green1,fontStyle:"italic"},"&.prolog":{...r.green1,fontStyle:"italic"},"&.doctype":{...r.green1,fontStyle:"italic"},"&.cdata":{...r.green1,fontStyle:"italic"},"&.string":r.red1,"&.url":r.cyan1,"&.symbol":r.cyan1,"&.number":r.cyan1,"&.boolean":r.cyan1,"&.variable":r.cyan1,"&.constant":r.cyan1,"&.inserted":r.cyan1,"&.atrule":r.blue1,"&.keyword":r.blue1,"&.attr-value":r.blue1,"&.punctuation":r.gray1,"&.operator":r.gray1,"&.function":r.gray1,"&.deleted":r.red2,"&.important":{fontWeight:"bold"},"&.bold":{fontWeight:"bold"},"&.italic":{fontStyle:"italic"},"&.class-name":r.cyan2,"&.selector":r.red3,"&.attr-name":r.red4,"&.property":r.red4,"&.regex":r.red4,"&.entity":r.red4,"&.directive.tag .tag":{background:"#ffff00",...r.gray1}},"language-json .token.boolean":r.blue1,"language-json .token.number":r.blue1,"language-json .token.property":r.cyan2,namespace:{opacity:.7}}},"create"),Y5={green1:"#008000",red1:"#A31515",red2:"#9a050f",red3:"#800000",red4:"#ff0000",gray1:"#393A34",cyan1:"#36acaa",cyan2:"#2B91AF",blue1:"#0000ff",blue2:"#00009f"},K5={green1:"#7C7C7C",red1:"#92C379",red2:"#9a050f",red3:"#A8FF60",red4:"#96CBFE",gray1:"#EDEDED",cyan1:"#C6C5FE",cyan2:"#FFFFB6",blue1:"#B474DD",blue2:"#00009f"},X5=P(e=>({primary:e.colorPrimary,secondary:e.colorSecondary,tertiary:K.tertiary,ancillary:K.ancillary,orange:K.orange,gold:K.gold,green:K.green,seafoam:K.seafoam,purple:K.purple,ultraviolet:K.ultraviolet,lightest:K.lightest,lighter:K.lighter,light:K.light,mediumlight:K.mediumlight,medium:K.medium,mediumdark:K.mediumdark,dark:K.dark,darker:K.darker,darkest:K.darkest,border:K.border,positive:K.positive,negative:K.negative,warning:K.warning,critical:K.critical,defaultText:e.textColor||K.darkest,inverseText:e.textInverseColor||K.lightest,positiveText:K.positiveText,negativeText:K.negativeText,warningText:K.warningText}),"createColors"),fu=P((e=pu[m1()])=>{let{base:t,colorPrimary:r,colorSecondary:n,appBg:o,appContentBg:a,appPreviewBg:i,appBorderColor:l,appBorderRadius:s,fontBase:u,fontCode:d,textColor:p,textInverseColor:c,barTextColor:f,barHoverColor:m,barSelectedColor:y,barBg:x,buttonBg:v,buttonBorder:C,booleanBg:w,booleanSelectedBg:E,inputBg:$,inputBorder:A,inputTextColor:S,inputBorderRadius:D,brandTitle:F,brandUrl:k,brandImage:_,brandTarget:I,gridCellSize:L,...j}=e;return{...j,base:t,color:X5(e),background:{app:o,bar:x,content:a,preview:i,gridCellSize:L||vr.gridCellSize,hoverable:vr.hoverable,positive:vr.positive,negative:vr.negative,warning:vr.warning,critical:vr.critical},typography:{fonts:{base:u,mono:d},weight:Ht.weight,size:Ht.size},animation:U5,easing:B5,input:{background:$,border:A,borderRadius:D,color:S},button:{background:v||$,border:C||A},boolean:{background:w||A,selectedBackground:E||$},layoutMargin:10,appBorderColor:l,appBorderRadius:s,barTextColor:f,barHoverColor:m||n,barSelectedColor:y||n,barBg:x,brand:{title:F,url:k,image:_||(F?null:void 0),target:I},code:G5({colors:t==="light"?Y5:K5,mono:d}),addonActionsTheme:{...t==="light"?V5:W5,BASE_FONT_FAMILY:d,BASE_FONT_SIZE:Ht.size.s2-1,BASE_LINE_HEIGHT:"18px",BASE_BACKGROUND_COLOR:"transparent",BASE_COLOR:p,ARROW_COLOR:C5(.2,l),ARROW_MARGIN_RIGHT:4,ARROW_FONT_SIZE:8,TREENODE_FONT_FAMILY:d,TREENODE_FONT_SIZE:Ht.size.s2-1,TREENODE_LINE_HEIGHT:"18px",TREENODE_PADDING_LEFT:12}}},"convert");const{logger:Z5}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var J5=P(e=>Object.keys(e).length===0,"isEmpty"),Gl=P(e=>e!=null&&typeof e=="object","isObject"),Q5=P((e,...t)=>Object.prototype.hasOwnProperty.call(e,...t),"hasOwnProperty"),ek=P(()=>Object.create(null),"makeObjectWithoutPrototype"),y1=P((e,t)=>e===t||!Gl(e)||!Gl(t)?{}:Object.keys(e).reduce((r,n)=>{if(Q5(t,n)){let o=y1(e[n],t[n]);return Gl(o)&&J5(o)||(r[n]=o),r}return r[n]=void 0,r},ek()),"deletedDiff"),tk=y1;function b1(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Array.from(typeof e=="string"?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var o=n.reduce(function(l,s){var u=s.match(/\n([\t ]+|(?!\s).)/g);return u?l.concat(u.map(function(d){var p,c;return(c=(p=d.match(/[\t ]/g))===null||p===void 0?void 0:p.length)!==null&&c!==void 0?c:0})):l},[]);if(o.length){var a=new RegExp(`
767
+ [ ]{`+Math.min.apply(Math,o)+"}","g");n=n.map(function(l){return l.replace(a,`
768
+ `)})}n[0]=n[0].replace(/^\r?\n/,"");var i=n[0];return t.forEach(function(l,s){var u=i.match(/(?:^|\n)( *)$/),d=u?u[1]:"",p=l;typeof l=="string"&&l.includes(`
769
+ `)&&(p=String(l).split(`
770
+ `).map(function(c,f){return f===0?c:""+d+c}).join(`
771
+ `)),i+=p+n[s+1]}),i}P(b1,"dedent");var rk=P(e=>{if(!e)return fu(mi);let t=tk(mi,e);return Object.keys(t).length&&Z5.warn(b1`
772
+ Your theme is missing properties, you should update your theme!
773
+
774
+ theme-data missing:
775
+ `,t),fu(e)},"ensure"),gu="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",el=zC();const v1=MC(el);var nk=Object.create,tl=Object.defineProperty,ok=Object.getOwnPropertyDescriptor,ak=Object.getOwnPropertyNames,ik=Object.getPrototypeOf,lk=Object.prototype.hasOwnProperty,g=(e,t)=>tl(e,"name",{value:t,configurable:!0}),xa=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),N=(e,t)=>()=>(e&&(t=e(e=0)),t),te=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),na=(e,t)=>{for(var r in t)tl(e,r,{get:t[r],enumerable:!0})},sk=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of ak(t))!lk.call(e,o)&&o!==r&&tl(e,o,{get:()=>t[o],enumerable:!(n=ok(t,o))||n.enumerable});return e},je=(e,t,r)=>(r=e!=null?nk(ik(e)):{},sk(t||!e||!e.__esModule?tl(r,"default",{value:e,enumerable:!0}):r,e));function xe(){return xe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xe.apply(null,arguments)}var rl=N(()=>{g(xe,"_extends")});function x1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var uk=N(()=>{g(x1,"_assertThisInitialized")});function Yn(e,t){return Yn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Yn(e,t)}var id=N(()=>{g(Yn,"_setPrototypeOf")});function hi(e){return hi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},hi(e)}var ck=N(()=>{g(hi,"_getPrototypeOf")}),nl=te((e,t)=>{(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return g(function r(n,o,a){function i(u,d){if(!o[u]){if(!n[u]){var p=typeof xa=="function"&&xa;if(!d&&p)return p(u,!0);if(l)return l(u,!0);var c=new Error("Cannot find module '"+u+"'");throw c.code="MODULE_NOT_FOUND",c}var f=o[u]={exports:{}};n[u][0].call(f.exports,function(m){var y=n[u][1][m];return i(y||m)},f,f.exports,r,n,o,a)}return o[u].exports}g(i,"s");for(var l=typeof xa=="function"&&xa,s=0;s<a.length;s++)i(a[s]);return i},"e")({1:[function(r,n,o){n.exports=function(a){if(typeof Map!="function"||a){var i=r("./similar");return new i}else return new Map}},{"./similar":2}],2:[function(r,n,o){function a(){return this.list=[],this.lastItem=void 0,this.size=0,this}g(a,"Similar"),a.prototype.get=function(i){var l;if(this.lastItem&&this.isEqual(this.lastItem.key,i))return this.lastItem.val;if(l=this.indexOf(i),l>=0)return this.lastItem=this.list[l],this.list[l].val},a.prototype.set=function(i,l){var s;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=l,this):(s=this.indexOf(i),s>=0?(this.lastItem=this.list[s],this.list[s].val=l,this):(this.lastItem={key:i,val:l},this.list.push(this.lastItem),this.size++,this))},a.prototype.delete=function(i){var l;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),l=this.indexOf(i),l>=0)return this.size--,this.list.splice(l,1)[0]},a.prototype.has=function(i){var l;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(l=this.indexOf(i),l>=0?(this.lastItem=this.list[l],!0):!1)},a.prototype.forEach=function(i,l){var s;for(s=0;s<this.size;s++)i.call(l||this,this.list[s].val,this.list[s].key,this)},a.prototype.indexOf=function(i){var l;for(l=0;l<this.size;l++)if(this.isEqual(this.list[l].key,i))return l;return-1},a.prototype.isEqual=function(i,l){return i===l||i!==i&&l!==l},n.exports=a},{}],3:[function(r,n,o){var a=r("map-or-similar");n.exports=function(u){var d=new a(!1),p=[];return function(c){var f=g(function(){var m=d,y,x,v=arguments.length-1,C=Array(v+1),w=!0,E;if((f.numArgs||f.numArgs===0)&&f.numArgs!==v+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(E=0;E<v;E++){if(C[E]={cacheItem:m,arg:arguments[E]},m.has(arguments[E])){m=m.get(arguments[E]);continue}w=!1,y=new a(!1),m.set(arguments[E],y),m=y}return w&&(m.has(arguments[v])?x=m.get(arguments[v]):w=!1),w||(x=c.apply(null,arguments),m.set(arguments[v],x)),u>0&&(C[v]={cacheItem:m,arg:arguments[v]},w?i(p,C):p.push(C),p.length>u&&l(p.shift())),f.wasMemoized=w,f.numArgs=v+1,x},"memoizerific");return f.limit=u,f.wasMemoized=!1,f.cache=d,f.lru=p,f}};function i(u,d){var p=u.length,c=d.length,f,m,y;for(m=0;m<p;m++){for(f=!0,y=0;y<c;y++)if(!s(u[m][y].arg,d[y].arg)){f=!1;break}if(f)break}u.push(u.splice(m,1)[0])}g(i,"moveToMostRecentLru");function l(u){var d=u.length,p=u[d-1],c,f;for(p.cacheItem.delete(p.arg),f=d-2;f>=0&&(p=u[f],c=p.cacheItem.get(p.arg),!c||!c.size);f--)p.cacheItem.delete(p.arg)}g(l,"removeCachedResult");function s(u,d){return u===d||u!==u&&d!==d}g(s,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})});function ol(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var ld=N(()=>{g(ol,"_objectWithoutPropertiesLoose")});function E1(e,t){if(e==null)return{};var r,n,o=ol(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var dk=N(()=>{ld(),g(E1,"_objectWithoutProperties")});function yi(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var w1=N(()=>{g(yi,"_arrayLikeToArray")});function S1(e){if(Array.isArray(e))return yi(e)}var pk=N(()=>{w1(),g(S1,"_arrayWithoutHoles")});function C1(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}var fk=N(()=>{g(C1,"_iterableToArray")});function $1(e,t){if(e){if(typeof e=="string")return yi(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?yi(e,t):void 0}}var gk=N(()=>{w1(),g($1,"_unsupportedIterableToArray")});function A1(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
776
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var mk=N(()=>{g(A1,"_nonIterableSpread")});function bi(e){return S1(e)||C1(e)||$1(e)||A1()}var hk=N(()=>{pk(),fk(),gk(),mk(),g(bi,"_toConsumableArray")});function Kn(e){"@babel/helpers - typeof";return Kn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kn(e)}var D1=N(()=>{g(Kn,"_typeof")});function k1(e,t){if(Kn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Kn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var yk=N(()=>{D1(),g(k1,"toPrimitive")});function O1(e){var t=k1(e,"string");return Kn(t)=="symbol"?t:t+""}var bk=N(()=>{D1(),yk(),g(O1,"toPropertyKey")});function sd(e,t,r){return(t=O1(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var F1=N(()=>{bk(),g(sd,"_defineProperty")});function mu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function qr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mu(Object(r),!0).forEach(function(n){sd(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mu(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _1(e){var t=e.length;if(t===0||t===1)return e;if(t===2)return[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])];if(t===3)return[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])];if(t>=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]}function T1(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return za[t]||(za[t]=_1(e)),za[t]}function R1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=e.filter(function(a){return a!=="token"}),o=T1(n);return o.reduce(function(a,i){return qr(qr({},a),r[i])},t)}function hu(e){return e.join(" ")}function P1(e,t){var r=0;return function(n){return r+=1,n.map(function(o,a){return al({node:o,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(r,"-").concat(a)})})}}function al(e){var t=e.node,r=e.stylesheet,n=e.style,o=n===void 0?{}:n,a=e.useInlineStyles,i=e.key,l=t.properties,s=t.type,u=t.tagName,d=t.value;if(s==="text")return d;if(u){var p=P1(r,a),c;if(!a)c=qr(qr({},l),{},{className:hu(l.className)});else{var f=Object.keys(r).reduce(function(v,C){return C.split(".").forEach(function(w){v.includes(w)||v.push(w)}),v},[]),m=l.className&&l.className.includes("token")?["token"]:[],y=l.className&&m.concat(l.className.filter(function(v){return!f.includes(v)}));c=qr(qr({},l),{},{className:hu(y)||void 0,style:R1(l.className,Object.assign({},l.style,o),r)})}var x=p(t.children);return h.createElement(u,xe({key:i},c),x)}}var za,I1=N(()=>{rl(),F1(),g(mu,"ownKeys"),g(qr,"_objectSpread"),g(_1,"powerSetPermutations"),za={},g(T1,"getClassNameCombinations"),g(R1,"createStyleObject"),g(hu,"createClassNameString"),g(P1,"createChildren"),g(al,"createElement")}),L1,vk=N(()=>{L1=g(function(e,t){var r=e.listLanguages();return r.indexOf(t)!==-1},"default")});function yu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function nr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yu(Object(r),!0).forEach(function(n){sd(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yu(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function B1(e){return e.match(q1)}function N1(e){var t=e.lines,r=e.startingLineNumber,n=e.style;return t.map(function(o,a){var i=a+r;return h.createElement("span",{key:"line-".concat(a),className:"react-syntax-highlighter-line-number",style:typeof n=="function"?n(i):n},"".concat(i,`
777
+ `))})}function j1(e){var t=e.codeString,r=e.codeStyle,n=e.containerStyle,o=n===void 0?{float:"left",paddingRight:"10px"}:n,a=e.numberStyle,i=a===void 0?{}:a,l=e.startingLineNumber;return h.createElement("code",{style:Object.assign({},r,o)},N1({lines:t.replace(/\n$/,"").split(`
778
+ `),style:i,startingLineNumber:l}))}function M1(e){return"".concat(e.toString().length,".25em")}function ud(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function cd(e,t,r){var n={display:"inline-block",minWidth:M1(r),paddingRight:"1em",textAlign:"right",userSelect:"none"},o=typeof e=="function"?e(t):e,a=nr(nr({},n),o);return a}function jo(e){var t=e.children,r=e.lineNumber,n=e.lineNumberStyle,o=e.largestLineNumber,a=e.showInlineLineNumbers,i=e.lineProps,l=i===void 0?{}:i,s=e.className,u=s===void 0?[]:s,d=e.showLineNumbers,p=e.wrapLongLines,c=e.wrapLines,f=c===void 0?!1:c,m=f?nr({},typeof l=="function"?l(r):l):{};if(m.className=m.className?[].concat(bi(m.className.trim().split(/\s+/)),bi(u)):u,r&&a){var y=cd(n,r,o);t.unshift(ud(r,y))}return p&d&&(m.style=nr({display:"flex"},m.style)),{type:"element",tagName:"span",properties:m,children:t}}function dd(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],n=0;n<e.length;n++){var o=e[n];if(o.type==="text")r.push(jo({children:[o],className:bi(new Set(t))}));else if(o.children){var a=t.concat(o.properties.className);dd(o.children,a).forEach(function(i){return r.push(i)})}}return r}function z1(e,t,r,n,o,a,i,l,s){var u,d=dd(e.value),p=[],c=-1,f=0;function m($,A){var S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return jo({children:$,lineNumber:A,lineNumberStyle:l,largestLineNumber:i,showInlineLineNumbers:o,lineProps:r,className:S,showLineNumbers:n,wrapLongLines:s,wrapLines:t})}g(m,"createWrappedLine");function y($,A){if(n&&A&&o){var S=cd(l,A,i);$.unshift(ud(A,S))}return $}g(y,"createUnwrappedLine");function x($,A){var S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||S.length>0?m($,A,S):y($,A)}g(x,"createLine");for(var v=g(function(){var $=d[f],A=$.children[0].value,S=B1(A);if(S){var D=A.split(`
779
+ `);D.forEach(function(F,k){var _=n&&p.length+a,I={type:"text",value:"".concat(F,`
780
+ `)};if(k===0){var L=d.slice(c+1,f).concat(jo({children:[I],className:$.properties.className})),j=x(L,_);p.push(j)}else if(k===D.length-1){var B=d[f+1]&&d[f+1].children&&d[f+1].children[0],z={type:"text",value:"".concat(F)};if(B){var q=jo({children:[z],className:$.properties.className});d.splice(f+1,0,q)}else{var Y=[z],W=x(Y,_,$.properties.className);p.push(W)}}else{var G=[I],J=x(G,_,$.properties.className);p.push(J)}}),c=f}f++},"_loop");f<d.length;)v();if(c!==d.length-1){var C=d.slice(c+1,d.length);if(C&&C.length){var w=n&&p.length+a,E=x(C,w);p.push(E)}}return t?p:(u=[]).concat.apply(u,p)}function H1(e){var t=e.rows,r=e.stylesheet,n=e.useInlineStyles;return t.map(function(o,a){return al({node:o,stylesheet:r,useInlineStyles:n,key:"code-segement".concat(a)})})}function pd(e){return e&&typeof e.highlightAuto<"u"}function U1(e){var t=e.astGenerator,r=e.language,n=e.code,o=e.defaultCodeValue;if(pd(t)){var a=L1(t,r);return r==="text"?{value:o,language:"text"}:a?t.highlight(r,n):t.highlightAuto(n)}try{return r&&r!=="text"?{value:t.highlight(n,r)}:{value:o}}catch{return{value:o}}}function W1(e,t){return g(function(r){var n=r.language,o=r.children,a=r.style,i=a===void 0?t:a,l=r.customStyle,s=l===void 0?{}:l,u=r.codeTagProps,d=u===void 0?{className:n?"language-".concat(n):void 0,style:nr(nr({},i['code[class*="language-"]']),i['code[class*="language-'.concat(n,'"]')])}:u,p=r.useInlineStyles,c=p===void 0?!0:p,f=r.showLineNumbers,m=f===void 0?!1:f,y=r.showInlineLineNumbers,x=y===void 0?!0:y,v=r.startingLineNumber,C=v===void 0?1:v,w=r.lineNumberContainerStyle,E=r.lineNumberStyle,$=E===void 0?{}:E,A=r.wrapLines,S=r.wrapLongLines,D=S===void 0?!1:S,F=r.lineProps,k=F===void 0?{}:F,_=r.renderer,I=r.PreTag,L=I===void 0?"pre":I,j=r.CodeTag,B=j===void 0?"code":j,z=r.code,q=z===void 0?(Array.isArray(o)?o[0]:o)||"":z,Y=r.astGenerator,W=E1(r,V1);Y=Y||e;var G=m?h.createElement(j1,{containerStyle:w,codeStyle:d.style||{},numberStyle:$,startingLineNumber:C,codeString:q}):null,J=i.hljs||i['pre[class*="language-"]']||{backgroundColor:"#fff"},Q=pd(Y)?"hljs":"prismjs",re=c?Object.assign({},W,{style:Object.assign({},J,s)}):Object.assign({},W,{className:W.className?"".concat(Q," ").concat(W.className):Q,style:Object.assign({},s)});if(D?d.style=nr({whiteSpace:"pre-wrap"},d.style):d.style=nr({whiteSpace:"pre"},d.style),!Y)return h.createElement(L,re,G,h.createElement(B,d,q));(A===void 0&&_||D)&&(A=!0),_=_||H1;var ie=[{type:"text",value:q}],H=U1({astGenerator:Y,language:n,code:q,defaultCodeValue:ie});H.language===null&&(H.value=ie);var X=H.value.length;X===1&&H.value[0].type==="text"&&(X=H.value[0].value.split(`
781
+ `).length);var Z=X+C,le=z1(H,A,k,m,x,C,Z,$,D);return h.createElement(L,re,h.createElement(B,d,!x&&G,_({rows:le,stylesheet:i,useInlineStyles:c})))},"SyntaxHighlighter")}var V1,q1,xk=N(()=>{dk(),hk(),F1(),I1(),vk(),V1=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"],g(yu,"ownKeys"),g(nr,"_objectSpread"),q1=/\n/g,g(B1,"getNewLines"),g(N1,"getAllLineNumbers"),g(j1,"AllLineNumbers"),g(M1,"getEmWidthOfNumber"),g(ud,"getInlineLineNumber"),g(cd,"assembleLineNumberStyles"),g(jo,"createLineElement"),g(dd,"flattenCodeTree"),g(z1,"processLines"),g(H1,"defaultRenderer"),g(pd,"isHighlightJs"),g(U1,"getCodeTree"),g(W1,"default")}),Ek=te((e,t)=>{t.exports=n;var r=Object.prototype.hasOwnProperty;function n(){for(var o={},a=0;a<arguments.length;a++){var i=arguments[a];for(var l in i)r.call(i,l)&&(o[l]=i[l])}return o}g(n,"extend")}),G1=te((e,t)=>{t.exports=n;var r=n.prototype;r.space=null,r.normal={},r.property={};function n(o,a,i){this.property=o,this.normal=a,i&&(this.space=i)}g(n,"Schema")}),wk=te((e,t)=>{var r=Ek(),n=G1();t.exports=o;function o(a){for(var i=a.length,l=[],s=[],u=-1,d,p;++u<i;)d=a[u],l.push(d.property),s.push(d.normal),p=d.space;return new n(r.apply(null,l),r.apply(null,s),p)}g(o,"merge")}),fd=te((e,t)=>{t.exports=r;function r(n){return n.toLowerCase()}g(r,"normalize")}),Y1=te((e,t)=>{t.exports=n;var r=n.prototype;r.space=null,r.attribute=null,r.property=null,r.boolean=!1,r.booleanish=!1,r.overloadedBoolean=!1,r.number=!1,r.commaSeparated=!1,r.spaceSeparated=!1,r.commaOrSpaceSeparated=!1,r.mustUseProperty=!1,r.defined=!1;function n(o,a){this.property=o,this.attribute=a}g(n,"Info")}),gd=te(e=>{var t=0;e.boolean=r(),e.booleanish=r(),e.overloadedBoolean=r(),e.number=r(),e.spaceSeparated=r(),e.commaSeparated=r(),e.commaOrSpaceSeparated=r();function r(){return Math.pow(2,++t)}g(r,"increment")}),K1=te((e,t)=>{var r=Y1(),n=gd();t.exports=i,i.prototype=new r,i.prototype.defined=!0;var o=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],a=o.length;function i(s,u,d,p){var c=-1,f;for(l(this,"space",p),r.call(this,s,u);++c<a;)f=o[c],l(this,f,(d&n[f])===n[f])}g(i,"DefinedInfo");function l(s,u,d){d&&(s[u]=d)}g(l,"mark")}),oa=te((e,t)=>{var r=fd(),n=G1(),o=K1();t.exports=a;function a(i){var l=i.space,s=i.mustUseProperty||[],u=i.attributes||{},d=i.properties,p=i.transform,c={},f={},m,y;for(m in d)y=new o(m,p(u,m),d[m],l),s.indexOf(m)!==-1&&(y.mustUseProperty=!0),c[m]=y,f[r(m)]=m,f[r(y.attribute)]=m;return new n(c,f,l)}g(a,"create")}),Sk=te((e,t)=>{var r=oa();t.exports=r({space:"xlink",transform:n,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function n(o,a){return"xlink:"+a.slice(5).toLowerCase()}g(n,"xlinkTransform")}),Ck=te((e,t)=>{var r=oa();t.exports=r({space:"xml",transform:n,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function n(o,a){return"xml:"+a.slice(3).toLowerCase()}g(n,"xmlTransform")}),$k=te((e,t)=>{t.exports=r;function r(n,o){return o in n?n[o]:o}g(r,"caseSensitiveTransform")}),X1=te((e,t)=>{var r=$k();t.exports=n;function n(o,a){return r(o,a.toLowerCase())}g(n,"caseInsensitiveTransform")}),Ak=te((e,t)=>{var r=oa(),n=X1();t.exports=r({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:n,properties:{xmlns:null,xmlnsXLink:null}})}),Dk=te((e,t)=>{var r=gd(),n=oa(),o=r.booleanish,a=r.number,i=r.spaceSeparated;t.exports=n({transform:l,properties:{ariaActiveDescendant:null,ariaAtomic:o,ariaAutoComplete:null,ariaBusy:o,ariaChecked:o,ariaColCount:a,ariaColIndex:a,ariaColSpan:a,ariaControls:i,ariaCurrent:null,ariaDescribedBy:i,ariaDetails:null,ariaDisabled:o,ariaDropEffect:i,ariaErrorMessage:null,ariaExpanded:o,ariaFlowTo:i,ariaGrabbed:o,ariaHasPopup:null,ariaHidden:o,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:i,ariaLevel:a,ariaLive:null,ariaModal:o,ariaMultiLine:o,ariaMultiSelectable:o,ariaOrientation:null,ariaOwns:i,ariaPlaceholder:null,ariaPosInSet:a,ariaPressed:o,ariaReadOnly:o,ariaRelevant:null,ariaRequired:o,ariaRoleDescription:i,ariaRowCount:a,ariaRowIndex:a,ariaRowSpan:a,ariaSelected:o,ariaSetSize:a,ariaSort:null,ariaValueMax:a,ariaValueMin:a,ariaValueNow:a,ariaValueText:null,role:null}});function l(s,u){return u==="role"?u:"aria-"+u.slice(4).toLowerCase()}g(l,"ariaTransform")}),kk=te((e,t)=>{var r=gd(),n=oa(),o=X1(),a=r.boolean,i=r.overloadedBoolean,l=r.booleanish,s=r.number,u=r.spaceSeparated,d=r.commaSeparated;t.exports=n({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:o,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:d,acceptCharset:u,accessKey:u,action:null,allow:null,allowFullScreen:a,allowPaymentRequest:a,allowUserMedia:a,alt:null,as:null,async:a,autoCapitalize:null,autoComplete:u,autoFocus:a,autoPlay:a,capture:a,charSet:null,checked:a,cite:null,className:u,cols:s,colSpan:null,content:null,contentEditable:l,controls:a,controlsList:u,coords:s|d,crossOrigin:null,data:null,dateTime:null,decoding:null,default:a,defer:a,dir:null,dirName:null,disabled:a,download:i,draggable:l,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:a,formTarget:null,headers:u,height:s,hidden:a,high:s,href:null,hrefLang:null,htmlFor:u,httpEquiv:u,id:null,imageSizes:null,imageSrcSet:d,inputMode:null,integrity:null,is:null,isMap:a,itemId:null,itemProp:u,itemRef:u,itemScope:a,itemType:u,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:a,low:s,manifest:null,max:null,maxLength:s,media:null,method:null,min:null,minLength:s,multiple:a,muted:a,name:null,nonce:null,noModule:a,noValidate:a,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:a,optimum:s,pattern:null,ping:u,placeholder:null,playsInline:a,poster:null,preload:null,readOnly:a,referrerPolicy:null,rel:u,required:a,reversed:a,rows:s,rowSpan:s,sandbox:u,scope:null,scoped:a,seamless:a,selected:a,shape:null,size:s,sizes:null,slot:null,span:s,spellCheck:l,src:null,srcDoc:null,srcLang:null,srcSet:d,start:s,step:null,style:null,tabIndex:s,target:null,title:null,translate:null,type:null,typeMustMatch:a,useMap:null,value:l,width:s,wrap:null,align:null,aLink:null,archive:u,axis:null,background:null,bgColor:null,border:s,borderColor:null,bottomMargin:s,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:a,declare:a,event:null,face:null,frame:null,frameBorder:null,hSpace:s,leftMargin:s,link:null,longDesc:null,lowSrc:null,marginHeight:s,marginWidth:s,noResize:a,noHref:a,noShade:a,noWrap:a,object:null,profile:null,prompt:null,rev:null,rightMargin:s,rules:null,scheme:null,scrolling:l,standby:null,summary:null,text:null,topMargin:s,valueType:null,version:null,vAlign:null,vLink:null,vSpace:s,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:a,disableRemotePlayback:a,prefix:null,property:null,results:s,security:null,unselectable:null}})}),Ok=te((e,t)=>{var r=wk(),n=Sk(),o=Ck(),a=Ak(),i=Dk(),l=kk();t.exports=r([o,n,a,i,l])}),Fk=te((e,t)=>{var r=fd(),n=K1(),o=Y1(),a="data";t.exports=u;var i=/^data[-\w.:]+$/i,l=/-[a-z]/g,s=/[A-Z]/g;function u(m,y){var x=r(y),v=y,C=o;return x in m.normal?m.property[m.normal[x]]:(x.length>4&&x.slice(0,4)===a&&i.test(y)&&(y.charAt(4)==="-"?v=d(y):y=p(y),C=n),new C(v,y))}g(u,"find");function d(m){var y=m.slice(5).replace(l,f);return a+y.charAt(0).toUpperCase()+y.slice(1)}g(d,"datasetToProperty");function p(m){var y=m.slice(4);return l.test(y)?m:(y=y.replace(s,c),y.charAt(0)!=="-"&&(y="-"+y),a+y)}g(p,"datasetToAttribute");function c(m){return"-"+m.toLowerCase()}g(c,"kebab");function f(m){return m.charAt(1).toUpperCase()}g(f,"camelcase")}),_k=te((e,t)=>{t.exports=n;var r=/[#.]/g;function n(o,a){for(var i=o||"",l=a||"div",s={},u=0,d,p,c;u<i.length;)r.lastIndex=u,c=r.exec(i),d=i.slice(u,c?c.index:i.length),d&&(p?p==="#"?s.id=d:s.className?s.className.push(d):s.className=[d]:l=d,u+=d.length),c&&(p=c[0],u++);return{type:"element",tagName:l,properties:s,children:[]}}g(n,"parse")}),Tk=te(e=>{e.parse=o,e.stringify=a;var t="",r=" ",n=/[ \t\n\r\f]+/g;function o(i){var l=String(i||t).trim();return l===t?[]:l.split(n)}g(o,"parse");function a(i){return i.join(r).trim()}g(a,"stringify")}),Rk=te(e=>{e.parse=o,e.stringify=a;var t=",",r=" ",n="";function o(i){for(var l=[],s=String(i||n),u=s.indexOf(t),d=0,p=!1,c;!p;)u===-1&&(u=s.length,p=!0),c=s.slice(d,u).trim(),(c||!p)&&l.push(c),d=u+1,u=s.indexOf(t,d);return l}g(o,"parse");function a(i,l){var s=l||{},u=s.padLeft===!1?n:r,d=s.padRight?r:n;return i[i.length-1]===n&&(i=i.concat(n)),i.join(d+t+u).trim()}g(a,"stringify")}),Pk=te((e,t)=>{var r=Fk(),n=fd(),o=_k(),a=Tk().parse,i=Rk().parse;t.exports=s;var l={}.hasOwnProperty;function s(x,v,C){var w=C?y(C):null;return E;function E(A,S){var D=o(A,v),F=Array.prototype.slice.call(arguments,2),k=D.tagName.toLowerCase(),_;if(D.tagName=w&&l.call(w,k)?w[k]:k,S&&u(S,D)&&(F.unshift(S),S=null),S)for(_ in S)$(D.properties,_,S[_]);return p(D.children,F),D.tagName==="template"&&(D.content={type:"root",children:D.children},D.children=[]),D}function $(A,S,D){var F,k,_;D==null||D!==D||(F=r(x,S),k=F.property,_=D,typeof _=="string"&&(F.spaceSeparated?_=a(_):F.commaSeparated?_=i(_):F.commaOrSpaceSeparated&&(_=a(i(_).join(" ")))),k==="style"&&typeof D!="string"&&(_=m(_)),k==="className"&&A.className&&(_=A.className.concat(_)),A[k]=c(F,k,_))}}g(s,"factory");function u(x,v){return typeof x=="string"||"length"in x||d(v.tagName,x)}g(u,"isChildren");function d(x,v){var C=v.type;return x==="input"||!C||typeof C!="string"?!1:typeof v.children=="object"&&"length"in v.children?!0:(C=C.toLowerCase(),x==="button"?C!=="menu"&&C!=="submit"&&C!=="reset"&&C!=="button":"value"in v)}g(d,"isNode");function p(x,v){var C,w;if(typeof v=="string"||typeof v=="number"){x.push({type:"text",value:String(v)});return}if(typeof v=="object"&&"length"in v){for(C=-1,w=v.length;++C<w;)p(x,v[C]);return}if(typeof v!="object"||!("type"in v))throw new Error("Expected node, nodes, or string, got `"+v+"`");x.push(v)}g(p,"addChild");function c(x,v,C){var w,E,$;if(typeof C!="object"||!("length"in C))return f(x,v,C);for(E=C.length,w=-1,$=[];++w<E;)$[w]=f(x,v,C[w]);return $}g(c,"parsePrimitives");function f(x,v,C){var w=C;return x.number||x.positiveNumber?!isNaN(w)&&w!==""&&(w=Number(w)):(x.boolean||x.overloadedBoolean)&&typeof w=="string"&&(w===""||n(C)===n(v))&&(w=!0),w}g(f,"parsePrimitive");function m(x){var v=[],C;for(C in x)v.push([C,x[C]].join(": "));return v.join("; ")}g(m,"style");function y(x){for(var v=x.length,C=-1,w={},E;++C<v;)E=x[C],w[E.toLowerCase()]=E;return w}g(y,"createAdjustMap")}),Ik=te((e,t)=>{var r=Ok(),n=Pk(),o=n(r,"div");o.displayName="html",t.exports=o}),Lk=te((e,t)=>{t.exports=Ik()}),Bk=te((e,t)=>{t.exports={AElig:"Æ",AMP:"&",Aacute:"Á",Acirc:"Â",Agrave:"À",Aring:"Å",Atilde:"Ã",Auml:"Ä",COPY:"©",Ccedil:"Ç",ETH:"Ð",Eacute:"É",Ecirc:"Ê",Egrave:"È",Euml:"Ë",GT:">",Iacute:"Í",Icirc:"Î",Igrave:"Ì",Iuml:"Ï",LT:"<",Ntilde:"Ñ",Oacute:"Ó",Ocirc:"Ô",Ograve:"Ò",Oslash:"Ø",Otilde:"Õ",Ouml:"Ö",QUOT:'"',REG:"®",THORN:"Þ",Uacute:"Ú",Ucirc:"Û",Ugrave:"Ù",Uuml:"Ü",Yacute:"Ý",aacute:"á",acirc:"â",acute:"´",aelig:"æ",agrave:"à",amp:"&",aring:"å",atilde:"ã",auml:"ä",brvbar:"¦",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",ecirc:"ê",egrave:"è",eth:"ð",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",iacute:"í",icirc:"î",iexcl:"¡",igrave:"ì",iquest:"¿",iuml:"ï",laquo:"«",lt:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",oacute:"ó",ocirc:"ô",ograve:"ò",ordf:"ª",ordm:"º",oslash:"ø",otilde:"õ",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',raquo:"»",reg:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",times:"×",uacute:"ú",ucirc:"û",ugrave:"ù",uml:"¨",uuml:"ü",yacute:"ý",yen:"¥",yuml:"ÿ"}}),Nk=te((e,t)=>{t.exports={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"}}),Z1=te((e,t)=>{t.exports=r;function r(n){var o=typeof n=="string"?n.charCodeAt(0):n;return o>=48&&o<=57}g(r,"decimal")}),jk=te((e,t)=>{t.exports=r;function r(n){var o=typeof n=="string"?n.charCodeAt(0):n;return o>=97&&o<=102||o>=65&&o<=70||o>=48&&o<=57}g(r,"hexadecimal")}),Mk=te((e,t)=>{t.exports=r;function r(n){var o=typeof n=="string"?n.charCodeAt(0):n;return o>=97&&o<=122||o>=65&&o<=90}g(r,"alphabetical")}),zk=te((e,t)=>{var r=Mk(),n=Z1();t.exports=o;function o(a){return r(a)||n(a)}g(o,"alphanumerical")}),Hk=te((e,t)=>{var r,n=59;t.exports=o;function o(a){var i="&"+a+";",l;return r=r||document.createElement("i"),r.innerHTML=i,l=r.textContent,l.charCodeAt(l.length-1)===n&&a!=="semi"||l===i?!1:l}g(o,"decodeEntity")}),Uk=te((e,t)=>{var r=Bk(),n=Nk(),o=Z1(),a=jk(),i=zk(),l=Hk();t.exports=J;var s={}.hasOwnProperty,u=String.fromCharCode,d=Function.prototype,p={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},c=9,f=10,m=12,y=32,x=38,v=59,C=60,w=61,E=35,$=88,A=120,S=65533,D="named",F="hexadecimal",k="decimal",_={};_[F]=16,_[k]=10;var I={};I[D]=i,I[k]=o,I[F]=a;var L=1,j=2,B=3,z=4,q=5,Y=6,W=7,G={};G[L]="Named character references must be terminated by a semicolon",G[j]="Numeric character references must be terminated by a semicolon",G[B]="Named character references cannot be empty",G[z]="Numeric character references cannot be empty",G[q]="Named character references must be known",G[Y]="Numeric character references cannot be disallowed",G[W]="Numeric character references cannot be outside the permissible Unicode range";function J(H,X){var Z={},le,me;X||(X={});for(me in p)le=X[me],Z[me]=le??p[me];return(Z.position.indent||Z.position.start)&&(Z.indent=Z.position.indent||[],Z.position=Z.position.start),Q(H,Z)}g(J,"parseEntities");function Q(H,X){var Z=X.additional,le=X.nonTerminated,me=X.text,Re=X.reference,ne=X.warning,de=X.textContext,M=X.referenceContext,U=X.warningContext,fe=X.position,ke=X.indent||[],be=H.length,We=0,pr=-1,Ce=fe.column||1,nt=fe.line||1,$e="",ht=[],Ve,yt,Pt,Me,bt,Pe,Ae,It,pa,Fl,Pr,mo,Ir,qt,Cp,ho,fa,Lt,Ie;for(typeof Z=="string"&&(Z=Z.charCodeAt(0)),ho=yo(),It=ne?jC:d,We--,be++;++We<be;)if(bt===f&&(Ce=ke[pr]||1),bt=H.charCodeAt(We),bt===x){if(Ae=H.charCodeAt(We+1),Ae===c||Ae===f||Ae===m||Ae===y||Ae===x||Ae===C||Ae!==Ae||Z&&Ae===Z){$e+=u(bt),Ce++;continue}for(Ir=We+1,mo=Ir,Ie=Ir,Ae===E?(Ie=++mo,Ae=H.charCodeAt(Ie),Ae===$||Ae===A?(qt=F,Ie=++mo):qt=k):qt=D,Ve="",Pr="",Me="",Cp=I[qt],Ie--;++Ie<be&&(Ae=H.charCodeAt(Ie),!!Cp(Ae));)Me+=u(Ae),qt===D&&s.call(r,Me)&&(Ve=Me,Pr=r[Me]);Pt=H.charCodeAt(Ie)===v,Pt&&(Ie++,yt=qt===D?l(Me):!1,yt&&(Ve=Me,Pr=yt)),Lt=1+Ie-Ir,!Pt&&!le||(Me?qt===D?(Pt&&!Pr?It(q,1):(Ve!==Me&&(Ie=mo+Ve.length,Lt=1+Ie-mo,Pt=!1),Pt||(pa=Ve?L:B,X.attribute?(Ae=H.charCodeAt(Ie),Ae===w?(It(pa,Lt),Pr=null):i(Ae)?Pr=null:It(pa,Lt)):It(pa,Lt))),Pe=Pr):(Pt||It(j,Lt),Pe=parseInt(Me,_[qt]),re(Pe)?(It(W,Lt),Pe=u(S)):Pe in n?(It(Y,Lt),Pe=n[Pe]):(Fl="",ie(Pe)&&It(Y,Lt),Pe>65535&&(Pe-=65536,Fl+=u(Pe>>>10|55296),Pe=56320|Pe&1023),Pe=Fl+u(Pe))):qt!==D&&It(z,Lt)),Pe?($p(),ho=yo(),We=Ie-1,Ce+=Ie-Ir+1,ht.push(Pe),fa=yo(),fa.offset++,Re&&Re.call(M,Pe,{start:ho,end:fa},H.slice(Ir-1,Ie)),ho=fa):(Me=H.slice(Ir-1,Ie),$e+=Me,Ce+=Me.length,We=Ie-1)}else bt===10&&(nt++,pr++,Ce=0),bt===bt?($e+=u(bt),Ce++):$p();return ht.join("");function yo(){return{line:nt,column:Ce,offset:We+(fe.offset||0)}}function jC(Ap,Dp){var _l=yo();_l.column+=Dp,_l.offset+=Dp,ne.call(U,G[Ap],_l,Ap)}function $p(){$e&&(ht.push($e),me&&me.call(de,$e,{start:ho,end:yo()}),$e="")}}g(Q,"parse");function re(H){return H>=55296&&H<=57343||H>1114111}g(re,"prohibited");function ie(H){return H>=1&&H<=8||H===11||H>=13&&H<=31||H>=127&&H<=159||H>=64976&&H<=65007||(H&65535)===65535||(H&65535)===65534}g(ie,"disallowed")}),Wk=te((e,t)=>{var r=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{},n=(function(o){var a=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,i=0,l={},s={manual:o.Prism&&o.Prism.manual,disableWorkerMessageHandler:o.Prism&&o.Prism.disableWorkerMessageHandler,util:{encode:g(function w(E){return E instanceof u?new u(E.type,w(E.content),E.alias):Array.isArray(E)?E.map(w):E.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},"encode"),type:g(function(w){return Object.prototype.toString.call(w).slice(8,-1)},"type"),objId:g(function(w){return w.__id||Object.defineProperty(w,"__id",{value:++i}),w.__id},"objId"),clone:g(function w(E,$){$=$||{};var A,S;switch(s.util.type(E)){case"Object":if(S=s.util.objId(E),$[S])return $[S];A={},$[S]=A;for(var D in E)E.hasOwnProperty(D)&&(A[D]=w(E[D],$));return A;case"Array":return S=s.util.objId(E),$[S]?$[S]:(A=[],$[S]=A,E.forEach(function(F,k){A[k]=w(F,$)}),A);default:return E}},"deepClone"),getLanguage:g(function(w){for(;w;){var E=a.exec(w.className);if(E)return E[1].toLowerCase();w=w.parentElement}return"none"},"getLanguage"),setLanguage:g(function(w,E){w.className=w.className.replace(RegExp(a,"gi"),""),w.classList.add("language-"+E)},"setLanguage"),currentScript:g(function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(A){var w=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(A.stack)||[])[1];if(w){var E=document.getElementsByTagName("script");for(var $ in E)if(E[$].src==w)return E[$]}return null}},"currentScript"),isActive:g(function(w,E,$){for(var A="no-"+E;w;){var S=w.classList;if(S.contains(E))return!0;if(S.contains(A))return!1;w=w.parentElement}return!!$},"isActive")},languages:{plain:l,plaintext:l,text:l,txt:l,extend:g(function(w,E){var $=s.util.clone(s.languages[w]);for(var A in E)$[A]=E[A];return $},"extend"),insertBefore:g(function(w,E,$,A){A=A||s.languages;var S=A[w],D={};for(var F in S)if(S.hasOwnProperty(F)){if(F==E)for(var k in $)$.hasOwnProperty(k)&&(D[k]=$[k]);$.hasOwnProperty(F)||(D[F]=S[F])}var _=A[w];return A[w]=D,s.languages.DFS(s.languages,function(I,L){L===_&&I!=w&&(this[I]=D)}),D},"insertBefore"),DFS:g(function w(E,$,A,S){S=S||{};var D=s.util.objId;for(var F in E)if(E.hasOwnProperty(F)){$.call(E,F,E[F],A||F);var k=E[F],_=s.util.type(k);_==="Object"&&!S[D(k)]?(S[D(k)]=!0,w(k,$,null,S)):_==="Array"&&!S[D(k)]&&(S[D(k)]=!0,w(k,$,F,S))}},"DFS")},plugins:{},highlightAll:g(function(w,E){s.highlightAllUnder(document,w,E)},"highlightAll"),highlightAllUnder:g(function(w,E,$){var A={callback:$,container:w,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",A),A.elements=Array.prototype.slice.apply(A.container.querySelectorAll(A.selector)),s.hooks.run("before-all-elements-highlight",A);for(var S=0,D;D=A.elements[S++];)s.highlightElement(D,E===!0,A.callback)},"highlightAllUnder"),highlightElement:g(function(w,E,$){var A=s.util.getLanguage(w),S=s.languages[A];s.util.setLanguage(w,A);var D=w.parentElement;D&&D.nodeName.toLowerCase()==="pre"&&s.util.setLanguage(D,A);var F=w.textContent,k={element:w,language:A,grammar:S,code:F};function _(L){k.highlightedCode=L,s.hooks.run("before-insert",k),k.element.innerHTML=k.highlightedCode,s.hooks.run("after-highlight",k),s.hooks.run("complete",k),$&&$.call(k.element)}if(g(_,"insertHighlightedCode"),s.hooks.run("before-sanity-check",k),D=k.element.parentElement,D&&D.nodeName.toLowerCase()==="pre"&&!D.hasAttribute("tabindex")&&D.setAttribute("tabindex","0"),!k.code){s.hooks.run("complete",k),$&&$.call(k.element);return}if(s.hooks.run("before-highlight",k),!k.grammar){_(s.util.encode(k.code));return}if(E&&o.Worker){var I=new Worker(s.filename);I.onmessage=function(L){_(L.data)},I.postMessage(JSON.stringify({language:k.language,code:k.code,immediateClose:!0}))}else _(s.highlight(k.code,k.grammar,k.language))},"highlightElement"),highlight:g(function(w,E,$){var A={code:w,grammar:E,language:$};if(s.hooks.run("before-tokenize",A),!A.grammar)throw new Error('The language "'+A.language+'" has no grammar.');return A.tokens=s.tokenize(A.code,A.grammar),s.hooks.run("after-tokenize",A),u.stringify(s.util.encode(A.tokens),A.language)},"highlight"),tokenize:g(function(w,E){var $=E.rest;if($){for(var A in $)E[A]=$[A];delete E.rest}var S=new c;return f(S,S.head,w),p(w,S,E,S.head,0),y(S)},"tokenize"),hooks:{all:{},add:g(function(w,E){var $=s.hooks.all;$[w]=$[w]||[],$[w].push(E)},"add"),run:g(function(w,E){var $=s.hooks.all[w];if(!(!$||!$.length))for(var A=0,S;S=$[A++];)S(E)},"run")},Token:u};o.Prism=s;function u(w,E,$,A){this.type=w,this.content=E,this.alias=$,this.length=(A||"").length|0}g(u,"Token"),u.stringify=g(function w(E,$){if(typeof E=="string")return E;if(Array.isArray(E)){var A="";return E.forEach(function(_){A+=w(_,$)}),A}var S={type:E.type,content:w(E.content,$),tag:"span",classes:["token",E.type],attributes:{},language:$},D=E.alias;D&&(Array.isArray(D)?Array.prototype.push.apply(S.classes,D):S.classes.push(D)),s.hooks.run("wrap",S);var F="";for(var k in S.attributes)F+=" "+k+'="'+(S.attributes[k]||"").replace(/"/g,"&quot;")+'"';return"<"+S.tag+' class="'+S.classes.join(" ")+'"'+F+">"+S.content+"</"+S.tag+">"},"stringify");function d(w,E,$,A){w.lastIndex=E;var S=w.exec($);if(S&&A&&S[1]){var D=S[1].length;S.index+=D,S[0]=S[0].slice(D)}return S}g(d,"matchPattern");function p(w,E,$,A,S,D){for(var F in $)if(!(!$.hasOwnProperty(F)||!$[F])){var k=$[F];k=Array.isArray(k)?k:[k];for(var _=0;_<k.length;++_){if(D&&D.cause==F+","+_)return;var I=k[_],L=I.inside,j=!!I.lookbehind,B=!!I.greedy,z=I.alias;if(B&&!I.pattern.global){var q=I.pattern.toString().match(/[imsuy]*$/)[0];I.pattern=RegExp(I.pattern.source,q+"g")}for(var Y=I.pattern||I,W=A.next,G=S;W!==E.tail&&!(D&&G>=D.reach);G+=W.value.length,W=W.next){var J=W.value;if(E.length>w.length)return;if(!(J instanceof u)){var Q=1,re;if(B){if(re=d(Y,G,w,j),!re||re.index>=w.length)break;var Z=re.index,ie=re.index+re[0].length,H=G;for(H+=W.value.length;Z>=H;)W=W.next,H+=W.value.length;if(H-=W.value.length,G=H,W.value instanceof u)continue;for(var X=W;X!==E.tail&&(H<ie||typeof X.value=="string");X=X.next)Q++,H+=X.value.length;Q--,J=w.slice(G,H),re.index-=G}else if(re=d(Y,0,J,j),!re)continue;var Z=re.index,le=re[0],me=J.slice(0,Z),Re=J.slice(Z+le.length),ne=G+J.length;D&&ne>D.reach&&(D.reach=ne);var de=W.prev;me&&(de=f(E,de,me),G+=me.length),m(E,de,Q);var M=new u(F,L?s.tokenize(le,L):le,z,le);if(W=f(E,de,M),Re&&f(E,W,Re),Q>1){var U={cause:F+","+_,reach:ne};p(w,E,$,W.prev,G,U),D&&U.reach>D.reach&&(D.reach=U.reach)}}}}}}g(p,"matchGrammar");function c(){var w={value:null,prev:null,next:null},E={value:null,prev:w,next:null};w.next=E,this.head=w,this.tail=E,this.length=0}g(c,"LinkedList");function f(w,E,$){var A=E.next,S={value:$,prev:E,next:A};return E.next=S,A.prev=S,w.length++,S}g(f,"addAfter");function m(w,E,$){for(var A=E.next,S=0;S<$&&A!==w.tail;S++)A=A.next;E.next=A,A.prev=E,w.length-=S}g(m,"removeRange");function y(w){for(var E=[],$=w.head.next;$!==w.tail;)E.push($.value),$=$.next;return E}if(g(y,"toArray"),!o.document)return o.addEventListener&&(s.disableWorkerMessageHandler||o.addEventListener("message",function(w){var E=JSON.parse(w.data),$=E.language,A=E.code,S=E.immediateClose;o.postMessage(s.highlight(A,s.languages[$],$)),S&&o.close()},!1)),s;var x=s.util.currentScript();x&&(s.filename=x.src,x.hasAttribute("data-manual")&&(s.manual=!0));function v(){s.manual||s.highlightAll()}if(g(v,"highlightAutomaticallyCallback"),!s.manual){var C=document.readyState;C==="loading"||C==="interactive"&&x&&x.defer?document.addEventListener("DOMContentLoaded",v):window.requestAnimationFrame?window.requestAnimationFrame(v):window.setTimeout(v,16)}return s})(r);typeof t<"u"&&t.exports&&(t.exports=n),typeof global<"u"&&(global.Prism=n)}),J1=te((e,t)=>{t.exports=r,r.displayName="markup",r.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function r(n){n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(o){o.type==="entity"&&(o.attributes.title=o.content.value.replace(/&amp;/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:g(function(o,a){var i={};i["language-"+a]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[a]},i.cdata=/^<!\[CDATA\[|\]\]>$/i;var l={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:i}};l["language-"+a]={pattern:/[\s\S]+/,inside:n.languages[a]};var s={};s[o]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return o}),"i"),lookbehind:!0,greedy:!0,inside:l},n.languages.insertBefore("markup","cdata",s)},"addInlined")}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:g(function(o,a){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+o+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[a,"language-"+a],inside:n.languages[a]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})},"value")}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml}g(r,"markup")}),Q1=te((e,t)=>{t.exports=r,r.displayName="css",r.aliases=[];function r(n){(function(o){var a=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;o.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+a.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+a.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+a.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:a,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},o.languages.css.atrule.inside.rest=o.languages.css;var i=o.languages.markup;i&&(i.tag.addInlined("style","css"),i.tag.addAttribute("style","css"))})(n)}g(r,"css")}),Vk=te((e,t)=>{t.exports=r,r.displayName="clike",r.aliases=[];function r(n){n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}g(r,"clike")}),qk=te((e,t)=>{t.exports=r,r.displayName="javascript",r.aliases=["js"];function r(n){n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript}g(r,"javascript")}),Gk=te((e,t)=>{var r=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},n=S();r.Prism={manual:!0,disableWorkerMessageHandler:!0};var o=Lk(),a=Uk(),i=Wk(),l=J1(),s=Q1(),u=Vk(),d=qk();n();var p={}.hasOwnProperty;function c(){}g(c,"Refractor"),c.prototype=i;var f=new c;t.exports=f,f.highlight=x,f.register=m,f.alias=y,f.registered=v,f.listLanguages=C,m(l),m(s),m(u),m(d),f.util.encode=$,f.Token.stringify=w;function m(D){if(typeof D!="function"||!D.displayName)throw new Error("Expected `function` for `grammar`, got `"+D+"`");f.languages[D.displayName]===void 0&&D(f)}g(m,"register");function y(D,F){var k=f.languages,_=D,I,L,j,B;F&&(_={},_[D]=F);for(I in _)for(L=_[I],L=typeof L=="string"?[L]:L,j=L.length,B=-1;++B<j;)k[L[B]]=k[I]}g(y,"alias");function x(D,F){var k=i.highlight,_;if(typeof D!="string")throw new Error("Expected `string` for `value`, got `"+D+"`");if(f.util.type(F)==="Object")_=F,F=null;else{if(typeof F!="string")throw new Error("Expected `string` for `name`, got `"+F+"`");if(p.call(f.languages,F))_=f.languages[F];else throw new Error("Unknown language: `"+F+"` is not registered")}return k.call(this,D,_,F)}g(x,"highlight");function v(D){if(typeof D!="string")throw new Error("Expected `string` for `language`, got `"+D+"`");return p.call(f.languages,D)}g(v,"registered");function C(){var D=f.languages,F=[],k;for(k in D)p.call(D,k)&&typeof D[k]=="object"&&F.push(k);return F}g(C,"listLanguages");function w(D,F,k){var _;return typeof D=="string"?{type:"text",value:D}:f.util.type(D)==="Array"?E(D,F):(_={type:D.type,content:f.Token.stringify(D.content,F,k),tag:"span",classes:["token",D.type],attributes:{},language:F,parent:k},D.alias&&(_.classes=_.classes.concat(D.alias)),f.hooks.run("wrap",_),o(_.tag+"."+_.classes.join("."),A(_.attributes),_.content))}g(w,"stringify");function E(D,F){for(var k=[],_=D.length,I=-1,L;++I<_;)L=D[I],L!==""&&L!==null&&L!==void 0&&k.push(L);for(I=-1,_=k.length;++I<_;)L=k[I],k[I]=f.Token.stringify(L,F,k);return k}g(E,"stringifyAll");function $(D){return D}g($,"encode");function A(D){var F;for(F in D)D[F]=a(D[F]);return D}g(A,"attributes");function S(){var D="Prism"in r,F=D?r.Prism:void 0;return k;function k(){D?r.Prism=F:delete r.Prism,D=void 0,F=void 0}}g(S,"capture")}),Ea,wa,Ha,Yk=N(()=>{xk(),Ea=je(Gk()),wa=W1(Ea.default,{}),wa.registerLanguage=function(e,t){return Ea.default.register(t)},wa.alias=function(e,t){return Ea.default.alias(e,t)},Ha=wa}),Kk=N(()=>{I1()}),Xk=te((e,t)=>{t.exports=r,r.displayName="bash",r.aliases=["shell"];function r(n){(function(o){var a="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",i={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},l={bash:i,environment:{pattern:RegExp("\\$"+a),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+a),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};o.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+a),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:l},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:i}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:l},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:l.entity}}],environment:{pattern:RegExp("\\$?"+a),alias:"constant"},variable:l.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},i.inside=o.languages.bash;for(var s=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],u=l.variable[1].inside,d=0;d<s.length;d++)u[s[d]]=o.languages.bash[s[d]];o.languages.shell=o.languages.bash})(n)}g(r,"bash")}),Hf,ev,Zk=N(()=>{Hf=je(Xk()),ev=Hf.default}),Uf,tv,Jk=N(()=>{Uf=je(Q1()),tv=Uf.default}),Qk=te((e,t)=>{t.exports=r,r.displayName="graphql",r.aliases=[];function r(n){n.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:n.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},n.hooks.add("after-tokenize",g(function(o){if(o.language!=="graphql")return;var a=o.tokens.filter(function(C){return typeof C!="string"&&C.type!=="comment"&&C.type!=="scalar"}),i=0;function l(C){return a[i+C]}g(l,"getToken");function s(C,w){w=w||0;for(var E=0;E<C.length;E++){var $=l(E+w);if(!$||$.type!==C[E])return!1}return!0}g(s,"isTokenType");function u(C,w){for(var E=1,$=i;$<a.length;$++){var A=a[$],S=A.content;if(A.type==="punctuation"&&typeof S=="string"){if(C.test(S))E++;else if(w.test(S)&&(E--,E===0))return $}}return-1}g(u,"findClosingBracket");function d(C,w){var E=C.alias;E?Array.isArray(E)||(C.alias=E=[E]):C.alias=E=[],E.push(w)}for(g(d,"addAlias");i<a.length;){var p=a[i++];if(p.type==="keyword"&&p.content==="mutation"){var c=[];if(s(["definition-mutation","punctuation"])&&l(1).content==="("){i+=2;var f=u(/^\($/,/^\)$/);if(f===-1)continue;for(;i<f;i++){var m=l(0);m.type==="variable"&&(d(m,"variable-input"),c.push(m.content))}i=f+1}if(s(["punctuation","property-query"])&&l(0).content==="{"&&(i++,d(l(0),"property-mutation"),c.length>0)){var y=u(/^\{$/,/^\}$/);if(y===-1)continue;for(var x=i;x<y;x++){var v=a[x];v.type==="variable"&&c.indexOf(v.content)>=0&&d(v,"variable-input")}}}}},"afterTokenizeGraphql"))}g(r,"graphql")}),Wf,rv,eO=N(()=>{Wf=je(Qk()),rv=Wf.default}),tO=te((e,t)=>{t.exports=r,r.displayName="jsExtras",r.aliases=[];function r(n){(function(o){o.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+o.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),o.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+o.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),o.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function a(p,c){return RegExp(p.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),c)}g(a,"withId"),o.languages.insertBefore("javascript","keyword",{imports:{pattern:a(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:o.languages.javascript},exports:{pattern:a(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:o.languages.javascript}}),o.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),o.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),o.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:a(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var i=["function","function-variable","method","method-variable","property-access"],l=0;l<i.length;l++){var s=i[l],u=o.languages.javascript[s];o.util.type(u)==="RegExp"&&(u=o.languages.javascript[s]={pattern:u});var d=u.inside||{};u.inside=d,d["maybe-class-name"]=/^[A-Z][\s\S]*/}})(n)}g(r,"jsExtras")}),Vf,nv,rO=N(()=>{Vf=je(tO()),nv=Vf.default}),nO=te((e,t)=>{t.exports=r,r.displayName="json",r.aliases=["webmanifest"];function r(n){n.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},n.languages.webmanifest=n.languages.json}g(r,"json")}),qf,ov,oO=N(()=>{qf=je(nO()),ov=qf.default}),av=te((e,t)=>{t.exports=r,r.displayName="jsx",r.aliases=[];function r(n){(function(o){var a=o.util.clone(o.languages.javascript),i=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,l=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,s=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function u(c,f){return c=c.replace(/<S>/g,function(){return i}).replace(/<BRACES>/g,function(){return l}).replace(/<SPREAD>/g,function(){return s}),RegExp(c,f)}g(u,"re"),s=u(s).source,o.languages.jsx=o.languages.extend("markup",a),o.languages.jsx.tag.pattern=u(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),o.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,o.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,o.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,o.languages.jsx.tag.inside.comment=a.comment,o.languages.insertBefore("inside","attr-name",{spread:{pattern:u(/<SPREAD>/.source),inside:o.languages.jsx}},o.languages.jsx.tag),o.languages.insertBefore("inside","special-attr",{script:{pattern:u(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:o.languages.jsx}}},o.languages.jsx.tag);var d=g(function(c){return c?typeof c=="string"?c:typeof c.content=="string"?c.content:c.content.map(d).join(""):""},"stringifyToken"),p=g(function(c){for(var f=[],m=0;m<c.length;m++){var y=c[m],x=!1;if(typeof y!="string"&&(y.type==="tag"&&y.content[0]&&y.content[0].type==="tag"?y.content[0].content[0].content==="</"?f.length>0&&f[f.length-1].tagName===d(y.content[0].content[1])&&f.pop():y.content[y.content.length-1].content==="/>"||f.push({tagName:d(y.content[0].content[1]),openedBraces:0}):f.length>0&&y.type==="punctuation"&&y.content==="{"?f[f.length-1].openedBraces++:f.length>0&&f[f.length-1].openedBraces>0&&y.type==="punctuation"&&y.content==="}"?f[f.length-1].openedBraces--:x=!0),(x||typeof y=="string")&&f.length>0&&f[f.length-1].openedBraces===0){var v=d(y);m<c.length-1&&(typeof c[m+1]=="string"||c[m+1].type==="plain-text")&&(v+=d(c[m+1]),c.splice(m+1,1)),m>0&&(typeof c[m-1]=="string"||c[m-1].type==="plain-text")&&(v=d(c[m-1])+v,c.splice(m-1,1),m--),c[m]=new o.Token("plain-text",v,null,v)}y.content&&typeof y.content!="string"&&p(y.content)}},"walkTokens");o.hooks.add("after-tokenize",function(c){c.language!=="jsx"&&c.language!=="tsx"||p(c.tokens)})})(n)}g(r,"jsx")}),Gf,iv,aO=N(()=>{Gf=je(av()),iv=Gf.default}),iO=te((e,t)=>{t.exports=r,r.displayName="markdown",r.aliases=["md"];function r(n){(function(o){var a=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function i(m){return m=m.replace(/<inner>/g,function(){return a}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+m+")")}g(i,"createInline");var l=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,s=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return l}),u=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;o.languages.markdown=o.languages.extend("markup",{}),o.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:o.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+s+u+"(?:"+s+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+s+u+")(?:"+s+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(l),inside:o.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+s+")"+u+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+s+"$"),inside:{"table-header":{pattern:RegExp(l),alias:"important",inside:o.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:i(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:i(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:i(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:i(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(m){["url","bold","italic","strike","code-snippet"].forEach(function(y){m!==y&&(o.languages.markdown[m].inside.content.inside[y]=o.languages.markdown[y])})}),o.hooks.add("after-tokenize",function(m){if(m.language!=="markdown"&&m.language!=="md")return;function y(x){if(!(!x||typeof x=="string"))for(var v=0,C=x.length;v<C;v++){var w=x[v];if(w.type!=="code"){y(w.content);continue}var E=w.content[1],$=w.content[3];if(E&&$&&E.type==="code-language"&&$.type==="code-block"&&typeof E.content=="string"){var A=E.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");A=(/[a-z][\w-]*/i.exec(A)||[""])[0].toLowerCase();var S="language-"+A;$.alias?typeof $.alias=="string"?$.alias=[$.alias,S]:$.alias.push(S):$.alias=[S]}}}g(y,"walkTokens"),y(m.tokens)}),o.hooks.add("wrap",function(m){if(m.type==="code-block"){for(var y="",x=0,v=m.classes.length;x<v;x++){var C=m.classes[x],w=/language-(.+)/.exec(C);if(w){y=w[1];break}}var E=o.languages[y];if(E)m.content=o.highlight(f(m.content.value),E,y);else if(y&&y!=="none"&&o.plugins.autoloader){var $="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);m.attributes.id=$,o.plugins.autoloader.loadLanguages(y,function(){var A=document.getElementById($);A&&(A.innerHTML=o.highlight(A.textContent,o.languages[y],y))})}}});var d=RegExp(o.languages.markup.tag.pattern.source,"gi"),p={amp:"&",lt:"<",gt:">",quot:'"'},c=String.fromCodePoint||String.fromCharCode;function f(m){var y=m.replace(d,"");return y=y.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(x,v){if(v=v.toLowerCase(),v[0]==="#"){var C;return v[1]==="x"?C=parseInt(v.slice(2),16):C=Number(v.slice(1)),c(C)}else{var w=p[v];return w||x}}),y}g(f,"textContent"),o.languages.md=o.languages.markdown})(n)}g(r,"markdown")}),Yf,lv,lO=N(()=>{Yf=je(iO()),lv=Yf.default}),Kf,sv,sO=N(()=>{Kf=je(J1()),sv=Kf.default}),uv=te((e,t)=>{t.exports=r,r.displayName="typescript",r.aliases=["ts"];function r(n){(function(o){o.languages.typescript=o.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),o.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete o.languages.typescript.parameter,delete o.languages.typescript["literal-property"];var a=o.languages.extend("typescript",{});delete a["class-name"],o.languages.typescript["class-name"].inside=a,o.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:a}}}}),o.languages.ts=o.languages.typescript})(n)}g(r,"typescript")}),uO=te((e,t)=>{var r=av(),n=uv();t.exports=o,o.displayName="tsx",o.aliases=[];function o(a){a.register(r),a.register(n),(function(i){var l=i.util.clone(i.languages.typescript);i.languages.tsx=i.languages.extend("jsx",l),delete i.languages.tsx.parameter,delete i.languages.tsx["literal-property"];var s=i.languages.tsx.tag;s.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+s.pattern.source+")",s.pattern.flags),s.lookbehind=!0})(a)}g(o,"tsx")}),Xf,cv,cO=N(()=>{Xf=je(uO()),cv=Xf.default}),Zf,dv,dO=N(()=>{Zf=je(uv()),dv=Zf.default}),pO=te((e,t)=>{t.exports=r,r.displayName="yaml",r.aliases=["yml"];function r(n){(function(o){var a=/[*&][^\s[\]{},]+/,i=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,l="(?:"+i.source+"(?:[ ]+"+a.source+")?|"+a.source+"(?:[ ]+"+i.source+")?)",s=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),u=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function d(p,c){c=(c||"").replace(/m/g,"")+"m";var f=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return l}).replace(/<<value>>/g,function(){return p});return RegExp(f,c)}g(d,"createValuePattern"),o.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return l})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return l}).replace(/<<key>>/g,function(){return"(?:"+s+"|"+u+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:d(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:d(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:d(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:d(u),lookbehind:!0,greedy:!0},number:{pattern:d(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:i,important:a,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},o.languages.yml=o.languages.yaml})(n)}g(r,"yaml")}),Jf,pv,fO=N(()=>{Jf=je(pO()),pv=Jf.default}),Qf,Yl,il,fv=N(()=>{Qf=T.div(({theme:e})=>({position:"absolute",bottom:0,right:0,maxWidth:"100%",display:"flex",background:e.background.content,zIndex:1})),Yl=T.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}),Yl.displayName="ActionButton",il=g(({actionItems:e,...t})=>h.createElement(Qf,{...t},e.map(({title:r,className:n,onClick:o,disabled:a},i)=>h.createElement(Yl,{key:i,className:n,onClick:o,disabled:!!a},r))),"ActionBar")});function gv(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function md(...e){return t=>e.forEach(r=>gv(r,t))}function xr(...e){return b.useCallback(md(...e),e)}var hd=N(()=>{g(gv,"setRef"),g(md,"composeRefs"),g(xr,"useComposedRefs")});function eg(e){return b.isValidElement(e)&&e.type===mv}function tg(e,t){let r={...t};for(let n in t){let o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...i)=>{a(...i),o(...i)}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function rg(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var bu,Sa,mv,gO=N(()=>{hd(),bu=b.forwardRef((e,t)=>{let{children:r,...n}=e,o=b.Children.toArray(r),a=o.find(eg);if(a){let i=a.props.children,l=o.map(s=>s===a?b.Children.count(i)>1?b.Children.only(null):b.isValidElement(i)?i.props.children:null:s);return V.jsx(Sa,{...n,ref:t,children:b.isValidElement(i)?b.cloneElement(i,void 0,l):null})}return V.jsx(Sa,{...n,ref:t,children:r})}),bu.displayName="Slot",Sa=b.forwardRef((e,t)=>{let{children:r,...n}=e;if(b.isValidElement(r)){let o=rg(r);return b.cloneElement(r,{...tg(n,r.props),ref:t?md(t,o):o})}return b.Children.count(r)>1?b.Children.only(null):null}),Sa.displayName="SlotClone",mv=g(({children:e})=>V.jsx(V.Fragment,{children:e}),"Slottable"),g(eg,"isSlottable"),g(tg,"mergeProps"),g(rg,"getElementRef")}),ng,Sn,mO=N(()=>{gO(),ng=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Sn=ng.reduce((e,t)=>{let r=b.forwardRef((n,o)=>{let{asChild:a,...i}=n,l=a?bu:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),V.jsx(l,{...i,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{})}),vi,hv=N(()=>{vi=globalThis?.document?b.useLayoutEffect:()=>{}});function yv(e,t){return b.useReducer((r,n)=>t[r][n]??r,e)}function og(e){let[t,r]=b.useState(),n=b.useRef({}),o=b.useRef(e),a=b.useRef("none"),i=e?"mounted":"unmounted",[l,s]=yv(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{let u=_o(n.current);a.current=l==="mounted"?u:"none"},[l]),vi(()=>{let u=n.current,d=o.current;if(d!==e){let p=a.current,c=_o(u);e?s("MOUNT"):c==="none"||u?.display==="none"?s("UNMOUNT"):s(d&&p!==c?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,s]),vi(()=>{if(t){let u=g(p=>{let c=_o(n.current).includes(p.animationName);p.target===t&&c&&el.flushSync(()=>s("ANIMATION_END"))},"handleAnimationEnd"),d=g(p=>{p.target===t&&(a.current=_o(n.current))},"handleAnimationStart");return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:b.useCallback(u=>{u&&(n.current=getComputedStyle(u)),r(u)},[])}}function _o(e){return e?.animationName||"none"}function ag(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Dn,hO=N(()=>{"use client";hd(),hv(),g(yv,"useStateMachine"),Dn=g(e=>{let{present:t,children:r}=e,n=og(t),o=typeof r=="function"?r({present:n.isPresent}):b.Children.only(r),a=xr(n.ref,ag(o));return typeof r=="function"||n.isPresent?b.cloneElement(o,{ref:a}):null},"Presence"),Dn.displayName="Presence",g(og,"usePresence"),g(_o,"getAnimationName"),g(ag,"getElementRef")});function bv(e,t=[]){let r=[];function n(a,i){let l=b.createContext(i),s=r.length;r=[...r,i];function u(p){let{scope:c,children:f,...m}=p,y=c?.[e][s]||l,x=b.useMemo(()=>m,Object.values(m));return V.jsx(y.Provider,{value:x,children:f})}g(u,"Provider");function d(p,c){let f=c?.[e][s]||l,m=b.useContext(f);if(m)return m;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${a}\``)}return g(d,"useContext2"),u.displayName=a+"Provider",[u,d]}g(n,"createContext3");let o=g(()=>{let a=r.map(i=>b.createContext(i));return g(function(i){let l=i?.[e]||a;return b.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])},"useScope")},"createScope");return o.scopeName=e,[n,vv(o,...t)]}function vv(...e){let t=e[0];if(e.length===1)return t;let r=g(()=>{let n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return g(function(o){let a=n.reduce((i,{useScope:l,scopeName:s})=>{let u=l(o)[`__scope${s}`];return{...i,...u}},{});return b.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])},"useComposedScopes")},"createScope");return r.scopeName=t.scopeName,r}var yO=N(()=>{g(bv,"createContextScope"),g(vv,"composeContextScopes")});function wr(e){let t=b.useRef(e);return b.useEffect(()=>{t.current=e}),b.useMemo(()=>(...r)=>t.current?.(...r),[])}var bO=N(()=>{g(wr,"useCallbackRef")});function xv(e){let t=b.useContext(Ev);return e||t||"ltr"}var Ev,vO=N(()=>{Ev=b.createContext(void 0),g(xv,"useDirection")});function wv(e,[t,r]){return Math.min(r,Math.max(t,e))}var xO=N(()=>{g(wv,"clamp")});function mr(e,t,{checkForDefaultPrevented:r=!0}={}){return g(function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)},"handleEvent")}var EO=N(()=>{g(mr,"composeEventHandlers")});function ig(e,t){return b.useReducer((r,n)=>t[r][n]??r,e)}function vo(e){return e?parseInt(e,10):0}function vu(e,t){let r=e/t;return isNaN(r)?0:r}function Mo(e){let t=vu(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function lg(e,t,r,n="ltr"){let o=Mo(r),a=o/2,i=t||a,l=o-i,s=r.scrollbar.paddingStart+i,u=r.scrollbar.size-r.scrollbar.paddingEnd-l,d=r.content-r.viewport,p=n==="ltr"?[0,d]:[d*-1,0];return yd([s,u],p)(e)}function Kl(e,t,r="ltr"){let n=Mo(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-o,i=t.content-t.viewport,l=a-n,s=r==="ltr"?[0,i]:[i*-1,0],u=wv(e,s);return yd([0,i],[0,l])(u)}function yd(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function Xl(e,t){return e>0&&e<t}function xo(e,t){let r=wr(e),n=b.useRef(0);return b.useEffect(()=>()=>window.clearTimeout(n.current),[]),b.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,t)},[r,t])}function Br(e,t){let r=wr(t);vi(()=>{let n=0;if(e){let o=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return o.observe(e),()=>{window.cancelAnimationFrame(n),o.unobserve(e)}}},[e,r])}function sg(e,t){let{asChild:r,children:n}=e;if(!r)return typeof t=="function"?t(n):t;let o=b.Children.only(n);return b.cloneElement(o,{children:typeof t=="function"?t(o.props.children):t})}var Ca,Zl,wO,ug,ot,Jl,Ql,es,vt,ts,cg,dg,rs,$a,pg,fg,gg,ns,os,Eo,as,mg,Aa,is,hg,yg,Sv,Cv,$v,Av,Dv,SO=N(()=>{"use client";mO(),hO(),yO(),hd(),bO(),vO(),hv(),xO(),EO(),g(ig,"useStateMachine"),Ca="ScrollArea",[Zl,wO]=bv(Ca),[ug,ot]=Zl(Ca),Jl=b.forwardRef((e,t)=>{let{__scopeScrollArea:r,type:n="hover",dir:o,scrollHideDelay:a=600,...i}=e,[l,s]=b.useState(null),[u,d]=b.useState(null),[p,c]=b.useState(null),[f,m]=b.useState(null),[y,x]=b.useState(null),[v,C]=b.useState(0),[w,E]=b.useState(0),[$,A]=b.useState(!1),[S,D]=b.useState(!1),F=xr(t,_=>s(_)),k=xv(o);return V.jsx(ug,{scope:r,type:n,dir:k,scrollHideDelay:a,scrollArea:l,viewport:u,onViewportChange:d,content:p,onContentChange:c,scrollbarX:f,onScrollbarXChange:m,scrollbarXEnabled:$,onScrollbarXEnabledChange:A,scrollbarY:y,onScrollbarYChange:x,scrollbarYEnabled:S,onScrollbarYEnabledChange:D,onCornerWidthChange:C,onCornerHeightChange:E,children:V.jsx(Sn.div,{dir:k,...i,ref:F,style:{position:"relative","--radix-scroll-area-corner-width":v+"px","--radix-scroll-area-corner-height":w+"px",...e.style}})})}),Jl.displayName=Ca,Ql="ScrollAreaViewport",es=b.forwardRef((e,t)=>{let{__scopeScrollArea:r,children:n,asChild:o,nonce:a,...i}=e,l=ot(Ql,r),s=b.useRef(null),u=xr(t,s,l.onViewportChange);return V.jsxs(V.Fragment,{children:[V.jsx("style",{dangerouslySetInnerHTML:{__html:`
782
+ [data-radix-scroll-area-viewport] {
783
+ scrollbar-width: none;
784
+ -ms-overflow-style: none;
785
+ -webkit-overflow-scrolling: touch;
786
+ }
787
+ [data-radix-scroll-area-viewport]::-webkit-scrollbar {
788
+ display: none;
789
+ }
790
+ :where([data-radix-scroll-area-viewport]) {
791
+ display: flex;
792
+ flex-direction: column;
793
+ align-items: stretch;
794
+ }
795
+ :where([data-radix-scroll-area-content]) {
796
+ flex-grow: 1;
797
+ }
798
+ `},nonce:a}),V.jsx(Sn.div,{"data-radix-scroll-area-viewport":"",...i,asChild:o,ref:u,style:{overflowX:l.scrollbarXEnabled?"scroll":"hidden",overflowY:l.scrollbarYEnabled?"scroll":"hidden",...e.style},children:sg({asChild:o,children:n},d=>V.jsx("div",{"data-radix-scroll-area-content":"",ref:l.onContentChange,style:{minWidth:l.scrollbarXEnabled?"fit-content":void 0},children:d}))})]})}),es.displayName=Ql,vt="ScrollAreaScrollbar",ts=b.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=ot(vt,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:i}=o,l=e.orientation==="horizontal";return b.useEffect(()=>(l?a(!0):i(!0),()=>{l?a(!1):i(!1)}),[l,a,i]),o.type==="hover"?V.jsx(cg,{...n,ref:t,forceMount:r}):o.type==="scroll"?V.jsx(dg,{...n,ref:t,forceMount:r}):o.type==="auto"?V.jsx(rs,{...n,ref:t,forceMount:r}):o.type==="always"?V.jsx($a,{...n,ref:t}):null}),ts.displayName=vt,cg=b.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=ot(vt,e.__scopeScrollArea),[a,i]=b.useState(!1);return b.useEffect(()=>{let l=o.scrollArea,s=0;if(l){let u=g(()=>{window.clearTimeout(s),i(!0)},"handlePointerEnter"),d=g(()=>{s=window.setTimeout(()=>i(!1),o.scrollHideDelay)},"handlePointerLeave");return l.addEventListener("pointerenter",u),l.addEventListener("pointerleave",d),()=>{window.clearTimeout(s),l.removeEventListener("pointerenter",u),l.removeEventListener("pointerleave",d)}}},[o.scrollArea,o.scrollHideDelay]),V.jsx(Dn,{present:r||a,children:V.jsx(rs,{"data-state":a?"visible":"hidden",...n,ref:t})})}),dg=b.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=ot(vt,e.__scopeScrollArea),a=e.orientation==="horizontal",i=xo(()=>s("SCROLL_END"),100),[l,s]=ig("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 b.useEffect(()=>{if(l==="idle"){let u=window.setTimeout(()=>s("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(u)}},[l,o.scrollHideDelay,s]),b.useEffect(()=>{let u=o.viewport,d=a?"scrollLeft":"scrollTop";if(u){let p=u[d],c=g(()=>{let f=u[d];p!==f&&(s("SCROLL"),i()),p=f},"handleScroll");return u.addEventListener("scroll",c),()=>u.removeEventListener("scroll",c)}},[o.viewport,a,s,i]),V.jsx(Dn,{present:r||l!=="hidden",children:V.jsx($a,{"data-state":l==="hidden"?"hidden":"visible",...n,ref:t,onPointerEnter:mr(e.onPointerEnter,()=>s("POINTER_ENTER")),onPointerLeave:mr(e.onPointerLeave,()=>s("POINTER_LEAVE"))})})}),rs=b.forwardRef((e,t)=>{let r=ot(vt,e.__scopeScrollArea),{forceMount:n,...o}=e,[a,i]=b.useState(!1),l=e.orientation==="horizontal",s=xo(()=>{if(r.viewport){let u=r.viewport.offsetWidth<r.viewport.scrollWidth,d=r.viewport.offsetHeight<r.viewport.scrollHeight;i(l?u:d)}},10);return Br(r.viewport,s),Br(r.content,s),V.jsx(Dn,{present:n||a,children:V.jsx($a,{"data-state":a?"visible":"hidden",...o,ref:t})})}),$a=b.forwardRef((e,t)=>{let{orientation:r="vertical",...n}=e,o=ot(vt,e.__scopeScrollArea),a=b.useRef(null),i=b.useRef(0),[l,s]=b.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=vu(l.viewport,l.content),d={...n,sizes:l,onSizesChange:s,hasThumb:u>0&&u<1,onThumbChange:g(c=>a.current=c,"onThumbChange"),onThumbPointerUp:g(()=>i.current=0,"onThumbPointerUp"),onThumbPointerDown:g(c=>i.current=c,"onThumbPointerDown")};function p(c,f){return lg(c,i.current,l,f)}return g(p,"getScrollPosition"),r==="horizontal"?V.jsx(pg,{...d,ref:t,onThumbPositionChange:g(()=>{if(o.viewport&&a.current){let c=o.viewport.scrollLeft,f=Kl(c,l,o.dir);a.current.style.transform=`translate3d(${f}px, 0, 0)`}},"onThumbPositionChange"),onWheelScroll:g(c=>{o.viewport&&(o.viewport.scrollLeft=c)},"onWheelScroll"),onDragScroll:g(c=>{o.viewport&&(o.viewport.scrollLeft=p(c,o.dir))},"onDragScroll")}):r==="vertical"?V.jsx(fg,{...d,ref:t,onThumbPositionChange:g(()=>{if(o.viewport&&a.current){let c=o.viewport.scrollTop,f=Kl(c,l);a.current.style.transform=`translate3d(0, ${f}px, 0)`}},"onThumbPositionChange"),onWheelScroll:g(c=>{o.viewport&&(o.viewport.scrollTop=c)},"onWheelScroll"),onDragScroll:g(c=>{o.viewport&&(o.viewport.scrollTop=p(c))},"onDragScroll")}):null}),pg=b.forwardRef((e,t)=>{let{sizes:r,onSizesChange:n,...o}=e,a=ot(vt,e.__scopeScrollArea),[i,l]=b.useState(),s=b.useRef(null),u=xr(t,s,a.onScrollbarXChange);return b.useEffect(()=>{s.current&&l(getComputedStyle(s.current))},[s]),V.jsx(os,{"data-orientation":"horizontal",...o,ref:u,sizes:r,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":Mo(r)+"px",...e.style},onThumbPointerDown:g(d=>e.onThumbPointerDown(d.x),"onThumbPointerDown"),onDragScroll:g(d=>e.onDragScroll(d.x),"onDragScroll"),onWheelScroll:g((d,p)=>{if(a.viewport){let c=a.viewport.scrollLeft+d.deltaX;e.onWheelScroll(c),Xl(c,p)&&d.preventDefault()}},"onWheelScroll"),onResize:g(()=>{s.current&&a.viewport&&i&&n({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:s.current.clientWidth,paddingStart:vo(i.paddingLeft),paddingEnd:vo(i.paddingRight)}})},"onResize")})}),fg=b.forwardRef((e,t)=>{let{sizes:r,onSizesChange:n,...o}=e,a=ot(vt,e.__scopeScrollArea),[i,l]=b.useState(),s=b.useRef(null),u=xr(t,s,a.onScrollbarYChange);return b.useEffect(()=>{s.current&&l(getComputedStyle(s.current))},[s]),V.jsx(os,{"data-orientation":"vertical",...o,ref:u,sizes:r,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":Mo(r)+"px",...e.style},onThumbPointerDown:g(d=>e.onThumbPointerDown(d.y),"onThumbPointerDown"),onDragScroll:g(d=>e.onDragScroll(d.y),"onDragScroll"),onWheelScroll:g((d,p)=>{if(a.viewport){let c=a.viewport.scrollTop+d.deltaY;e.onWheelScroll(c),Xl(c,p)&&d.preventDefault()}},"onWheelScroll"),onResize:g(()=>{s.current&&a.viewport&&i&&n({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:s.current.clientHeight,paddingStart:vo(i.paddingTop),paddingEnd:vo(i.paddingBottom)}})},"onResize")})}),[gg,ns]=Zl(vt),os=b.forwardRef((e,t)=>{let{__scopeScrollArea:r,sizes:n,hasThumb:o,onThumbChange:a,onThumbPointerUp:i,onThumbPointerDown:l,onThumbPositionChange:s,onDragScroll:u,onWheelScroll:d,onResize:p,...c}=e,f=ot(vt,r),[m,y]=b.useState(null),x=xr(t,F=>y(F)),v=b.useRef(null),C=b.useRef(""),w=f.viewport,E=n.content-n.viewport,$=wr(d),A=wr(s),S=xo(p,10);function D(F){if(v.current){let k=F.clientX-v.current.left,_=F.clientY-v.current.top;u({x:k,y:_})}}return g(D,"handleDragScroll"),b.useEffect(()=>{let F=g(k=>{let _=k.target;m?.contains(_)&&$(k,E)},"handleWheel");return document.addEventListener("wheel",F,{passive:!1}),()=>document.removeEventListener("wheel",F,{passive:!1})},[w,m,E,$]),b.useEffect(A,[n,A]),Br(m,S),Br(f.content,S),V.jsx(gg,{scope:r,scrollbar:m,hasThumb:o,onThumbChange:wr(a),onThumbPointerUp:wr(i),onThumbPositionChange:A,onThumbPointerDown:wr(l),children:V.jsx(Sn.div,{...c,ref:x,style:{position:"absolute",...c.style},onPointerDown:mr(e.onPointerDown,F=>{F.button===0&&(F.target.setPointerCapture(F.pointerId),v.current=m.getBoundingClientRect(),C.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",f.viewport&&(f.viewport.style.scrollBehavior="auto"),D(F))}),onPointerMove:mr(e.onPointerMove,D),onPointerUp:mr(e.onPointerUp,F=>{let k=F.target;k.hasPointerCapture(F.pointerId)&&k.releasePointerCapture(F.pointerId),document.body.style.webkitUserSelect=C.current,f.viewport&&(f.viewport.style.scrollBehavior=""),v.current=null})})})}),Eo="ScrollAreaThumb",as=b.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=ns(Eo,e.__scopeScrollArea);return V.jsx(Dn,{present:r||o.hasThumb,children:V.jsx(mg,{ref:t,...n})})}),mg=b.forwardRef((e,t)=>{let{__scopeScrollArea:r,style:n,...o}=e,a=ot(Eo,r),i=ns(Eo,r),{onThumbPositionChange:l}=i,s=xr(t,p=>i.onThumbChange(p)),u=b.useRef(),d=xo(()=>{u.current&&(u.current(),u.current=void 0)},100);return b.useEffect(()=>{let p=a.viewport;if(p){let c=g(()=>{if(d(),!u.current){let f=yg(p,l);u.current=f,l()}},"handleScroll");return l(),p.addEventListener("scroll",c),()=>p.removeEventListener("scroll",c)}},[a.viewport,d,l]),V.jsx(Sn.div,{"data-state":i.hasThumb?"visible":"hidden",...o,ref:s,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:mr(e.onPointerDownCapture,p=>{let c=p.target.getBoundingClientRect(),f=p.clientX-c.left,m=p.clientY-c.top;i.onThumbPointerDown({x:f,y:m})}),onPointerUp:mr(e.onPointerUp,i.onThumbPointerUp)})}),as.displayName=Eo,Aa="ScrollAreaCorner",is=b.forwardRef((e,t)=>{let r=ot(Aa,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?V.jsx(hg,{...e,ref:t}):null}),is.displayName=Aa,hg=b.forwardRef((e,t)=>{let{__scopeScrollArea:r,...n}=e,o=ot(Aa,r),[a,i]=b.useState(0),[l,s]=b.useState(0),u=!!(a&&l);return Br(o.scrollbarX,()=>{let d=o.scrollbarX?.offsetHeight||0;o.onCornerHeightChange(d),s(d)}),Br(o.scrollbarY,()=>{let d=o.scrollbarY?.offsetWidth||0;o.onCornerWidthChange(d),i(d)}),u?V.jsx(Sn.div,{...n,ref:t,style:{width:a,height:l,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null}),g(vo,"toInt"),g(vu,"getThumbRatio"),g(Mo,"getThumbSize"),g(lg,"getScrollPositionFromPointer"),g(Kl,"getThumbOffsetFromScroll"),g(yd,"linearScale"),g(Xl,"isScrollingWithinScrollbarBounds"),yg=g((e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return g(function o(){let a={left:e.scrollLeft,top:e.scrollTop},i=r.left!==a.left,l=r.top!==a.top;(i||l)&&t(),r=a,n=window.requestAnimationFrame(o)},"loop")(),()=>window.cancelAnimationFrame(n)},"addUnlinkedScrollListener"),g(xo,"useDebounceCallback"),g(Br,"useResizeObserver"),g(sg,"getSubtree"),Sv=Jl,Cv=es,$v=ts,Av=as,Dv=is}),bg,vg,ls,ss,Yo,bd=N(()=>{SO(),bg=T(Sv)(({scrollbarsize:e,offset:t})=>({width:"100%",height:"100%",overflow:"hidden","--scrollbar-size":`${e+t}px`,"--radix-scroll-area-thumb-width":`${e}px`})),vg=T(Cv)({width:"100%",height:"100%"}),ls=T($v)(({offset:e,horizontal:t,vertical:r})=>({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"&&r==="true"?0:e},'&[data-orientation="horizontal"]':{flexDirection:"column",height:"var(--scrollbar-size)",paddingBottom:e,marginLeft:e,marginRight:t==="true"&&r==="true"?0:e}})),ss=T(Av)(({theme:e})=>({flex:1,background:e.textMutedColor,opacity:.5,borderRadius:"var(--scrollbar-size)",position:"relative",transition:"opacity 0.2s ease-out","&:hover":{opacity:.8},"::before":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)",width:"100%",height:"100%"}})),Yo=b.forwardRef(({children:e,horizontal:t=!1,vertical:r=!1,offset:n=2,scrollbarSize:o=6,className:a},i)=>h.createElement(bg,{scrollbarsize:o,offset:n,className:a},h.createElement(vg,{ref:i},e),t&&h.createElement(ls,{orientation:"horizontal",offset:n,horizontal:t.toString(),vertical:r.toString()},h.createElement(ss,null)),r&&h.createElement(ls,{orientation:"vertical",offset:n,horizontal:t.toString(),vertical:r.toString()},h.createElement(ss,null)),t&&r&&h.createElement(Dv,null))),Yo.displayName="ScrollArea"}),vd={};na(vd,{SyntaxHighlighter:()=>Ho,createCopyToClipboardFunction:()=>xi,default:()=>kv,supportedLanguages:()=>xu});const{logger:CO}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{global:$O}=__STORYBOOK_MODULE_GLOBAL__;function xi(){return zo.navigator?.clipboard?async e=>{try{await zo.top?.navigator.clipboard.writeText(e)}catch{await zo.navigator.clipboard.writeText(e)}}:async e=>{let t=Cn.createElement("TEXTAREA"),r=Cn.activeElement;t.value=e,Cn.body.appendChild(t),t.select(),Cn.execCommand("copy"),Cn.body.removeChild(t),r.focus()}}var xg,Cn,zo,xu,Eg,wg,Sg,Cg,$g,Ag,Dg,us,kg,Og,Ho,kv,ll=N(()=>{xg=je(nl(),1),Kk(),Zk(),Jk(),eO(),rO(),oO(),aO(),lO(),sO(),cO(),dO(),fO(),Yk(),fv(),bd(),{document:Cn,window:zo}=$O,xu={jsextra:nv,jsx:iv,json:ov,yml:pv,md:lv,bash:ev,css:tv,html:sv,tsx:cv,typescript:dv,graphql:rv},Object.entries(xu).forEach(([e,t])=>{Ha.registerLanguage(e,t)}),Eg=(0,xg.default)(2)(e=>Object.entries(e.code||{}).reduce((t,[r,n])=>({...t,[`* .${r}`]:n}),{})),wg=xi(),g(xi,"createCopyToClipboardFunction"),Sg=T.div(({theme:e})=>({position:"relative",overflow:"hidden",color:e.color.defaultText}),({theme:e,bordered:t})=>t?{border:`1px solid ${e.appBorderColor}`,borderRadius:e.borderRadius,background:e.background.content}:{},({showLineNumbers:e})=>e?{".react-syntax-highlighter-line-number::before":{content:"attr(data-line-number)"}}:{}),Cg=g(({children:e,className:t})=>h.createElement(Yo,{horizontal:!0,vertical:!0,className:t},e),"UnstyledScroller"),$g=T(Cg)({position:"relative"},({theme:e})=>Eg(e)),Ag=T.pre(({theme:e,padded:t})=>({display:"flex",justifyContent:"flex-start",margin:0,padding:t?e.layoutMargin:0})),Dg=T.div(({theme:e})=>({flex:1,paddingLeft:2,paddingRight:e.layoutMargin,opacity:1,fontFamily:e.typography.fonts.mono})),us=g(e=>{let t=[...e.children],r=t[0],n=r.children[0].value,o={...r,children:[],properties:{...r.properties,"data-line-number":n,style:{...r.properties.style,userSelect:"auto"}}};return t[0]=o,{...e,children:t}},"processLineNumber"),kg=g(({rows:e,stylesheet:t,useInlineStyles:r})=>e.map((n,o)=>al({node:us(n),stylesheet:t,useInlineStyles:r,key:`code-segement${o}`})),"defaultRenderer"),Og=g((e,t)=>t?e?({rows:r,...n})=>e({rows:r.map(o=>us(o)),...n}):kg:e,"wrapRenderer"),Ho=g(({children:e,language:t="jsx",copyable:r=!1,bordered:n=!1,padded:o=!1,format:a=!0,formatter:i=void 0,className:l=void 0,showLineNumbers:s=!1,...u})=>{if(typeof e!="string"||!e.trim())return null;let[d,p]=b.useState("");b.useEffect(()=>{i?i(a,e).then(p):p(e.trim())},[e,a,i]);let[c,f]=b.useState(!1),m=b.useCallback(x=>{x.preventDefault(),wg(d).then(()=>{f(!0),zo.setTimeout(()=>f(!1),1500)}).catch(CO.error)},[d]),y=Og(u.renderer,s);return h.createElement(Sg,{bordered:n,padded:o,showLineNumbers:s,className:l},h.createElement($g,null,h.createElement(Ha,{padded:o||n,language:t,showLineNumbers:s,showInlineLineNumbers:s,useInlineStyles:!1,PreTag:Ag,CodeTag:Dg,lineNumberContainerStyle:{},...u,renderer:y},d)),r?h.createElement(il,{actionItems:[{title:c?"Copied":"Copy",onClick:m}]}):null)},"SyntaxHighlighter"),Ho.registerLanguage=(...e)=>Ha.registerLanguage(...e),kv=Ho});function Ov(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Array.from(typeof e=="string"?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var o=n.reduce(function(l,s){var u=s.match(/\n([\t ]+|(?!\s).)/g);return u?l.concat(u.map(function(d){var p,c;return(c=(p=d.match(/[\t ]/g))===null||p===void 0?void 0:p.length)!==null&&c!==void 0?c:0})):l},[]);if(o.length){var a=new RegExp(`
799
+ [ ]{`+Math.min.apply(Math,o)+"}","g");n=n.map(function(l){return l.replace(a,`
800
+ `)})}n[0]=n[0].replace(/^\r?\n/,"");var i=n[0];return t.forEach(function(l,s){var u=i.match(/(?:^|\n)( *)$/),d=u?u[1]:"",p=l;typeof l=="string"&&l.includes(`
801
+ `)&&(p=String(l).split(`
802
+ `).map(function(c,f){return f===0?c:""+d+c}).join(`
803
+ `)),i+=p+n[s+1]}),i}var AO=N(()=>{g(Ov,"dedent")}),Fv={};na(Fv,{formatter:()=>_v});var Fg,_v,DO=N(()=>{Fg=je(nl(),1),AO(),_v=(0,Fg.default)(2)(async(e,t)=>e===!1?t:Ov(t))}),Eu,wu,kO=N(()=>{Eu=g(function(e){return e.reduce(function(t,r){var n=r[0],o=r[1];return t[n]=o,t},{})},"fromEntries"),wu=typeof window<"u"&&window.document&&window.document.createElement?b.useLayoutEffect:b.useEffect}),Ge,st,ut,Ye,Ei,On,Kr,Fn,Tv,xd,$n,Rv,Su,Ed,_g,Tg,Rg,Pg,Ig,Lg,Bg,Ng,jg,Pv,gt=N(()=>{Ge="top",st="bottom",ut="right",Ye="left",Ei="auto",On=[Ge,st,ut,Ye],Kr="start",Fn="end",Tv="clippingParents",xd="viewport",$n="popper",Rv="reference",Su=On.reduce(function(e,t){return e.concat([t+"-"+Kr,t+"-"+Fn])},[]),Ed=[].concat(On,[Ei]).reduce(function(e,t){return e.concat([t,t+"-"+Kr,t+"-"+Fn])},[]),_g="beforeRead",Tg="read",Rg="afterRead",Pg="beforeMain",Ig="main",Lg="afterMain",Bg="beforeWrite",Ng="write",jg="afterWrite",Pv=[_g,Tg,Rg,Pg,Ig,Lg,Bg,Ng,jg]});function Ot(e){return e?(e.nodeName||"").toLowerCase():null}var ln=N(()=>{g(Ot,"getNodeName")});function Qe(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}var Vt=N(()=>{g(Qe,"getWindow")});function Dr(e){var t=Qe(e).Element;return e instanceof t||e instanceof Element}function lt(e){var t=Qe(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function sl(e){if(typeof ShadowRoot>"u")return!1;var t=Qe(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var mt=N(()=>{Vt(),g(Dr,"isElement"),g(lt,"isHTMLElement"),g(sl,"isShadowRoot")});function Mg(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},a=t.elements[r];!lt(a)||!Ot(a)||(Object.assign(a.style,n),Object.keys(o).forEach(function(i){var l=o[i];l===!1?a.removeAttribute(i):a.setAttribute(i,l===!0?"":l)}))})}function zg(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],a=t.attributes[n]||{},i=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),l=i.reduce(function(s,u){return s[u]="",s},{});!lt(o)||!Ot(o)||(Object.assign(o.style,l),Object.keys(a).forEach(function(s){o.removeAttribute(s)}))})}}var Iv,OO=N(()=>{ln(),mt(),g(Mg,"applyStyles"),g(zg,"effect"),Iv={name:"applyStyles",enabled:!0,phase:"write",fn:Mg,effect:zg,requires:["computeStyles"]}});function kt(e){return e.split("-")[0]}var sn=N(()=>{g(kt,"getBasePlacement")}),Cr,Ko,Qr,un=N(()=>{Cr=Math.max,Ko=Math.min,Qr=Math.round});function wi(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}var Lv=N(()=>{g(wi,"getUAString")});function wd(){return!/^((?!chrome|android).)*safari/i.test(wi())}var Bv=N(()=>{Lv(),g(wd,"isLayoutViewport")});function en(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,a=1;t&&lt(e)&&(o=e.offsetWidth>0&&Qr(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Qr(n.height)/e.offsetHeight||1);var i=Dr(e)?Qe(e):window,l=i.visualViewport,s=!wd()&&r,u=(n.left+(s&&l?l.offsetLeft:0))/o,d=(n.top+(s&&l?l.offsetTop:0))/a,p=n.width/o,c=n.height/a;return{width:p,height:c,top:d,right:u+p,bottom:d+c,left:u,x:u,y:d}}var aa=N(()=>{mt(),un(),Vt(),Bv(),g(en,"getBoundingClientRect")});function ul(e){var t=en(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}var Sd=N(()=>{aa(),g(ul,"getLayoutRect")});function Cd(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&sl(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}var Nv=N(()=>{mt(),g(Cd,"contains")});function Wt(e){return Qe(e).getComputedStyle(e)}var ia=N(()=>{Vt(),g(Wt,"getComputedStyle")});function jv(e){return["table","td","th"].indexOf(Ot(e))>=0}var FO=N(()=>{ln(),g(jv,"isTableElement")});function lr(e){return((Dr(e)?e.ownerDocument:e.document)||window.document).documentElement}var Or=N(()=>{mt(),g(lr,"getDocumentElement")});function la(e){return Ot(e)==="html"?e:e.assignedSlot||e.parentNode||(sl(e)?e.host:null)||lr(e)}var cl=N(()=>{ln(),Or(),mt(),g(la,"getParentNode")});function Cu(e){return!lt(e)||Wt(e).position==="fixed"?null:e.offsetParent}function Mv(e){var t=/firefox/i.test(wi()),r=/Trident/i.test(wi());if(r&&lt(e)){var n=Wt(e);if(n.position==="fixed")return null}var o=la(e);for(sl(o)&&(o=o.host);lt(o)&&["html","body"].indexOf(Ot(o))<0;){var a=Wt(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function lo(e){for(var t=Qe(e),r=Cu(e);r&&jv(r)&&Wt(r).position==="static";)r=Cu(r);return r&&(Ot(r)==="html"||Ot(r)==="body"&&Wt(r).position==="static")?t:r||Mv(e)||t}var sa=N(()=>{Vt(),ln(),ia(),mt(),FO(),cl(),Lv(),g(Cu,"getTrueOffsetParent"),g(Mv,"getContainingBlock"),g(lo,"getOffsetParent")});function dl(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}var $d=N(()=>{g(dl,"getMainAxisFromPlacement")});function _n(e,t,r){return Cr(e,Ko(t,r))}function zv(e,t,r){var n=_n(e,t,r);return n>r?r:n}var Hv=N(()=>{un(),g(_n,"within"),g(zv,"withinMaxClamp")});function Ad(){return{top:0,right:0,bottom:0,left:0}}var Uv=N(()=>{g(Ad,"getFreshSideObject")});function Dd(e){return Object.assign({},Ad(),e)}var Wv=N(()=>{Uv(),g(Dd,"mergePaddingObject")});function kd(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var Vv=N(()=>{g(kd,"expandToHashMap")});function Hg(e){var t,r=e.state,n=e.name,o=e.options,a=r.elements.arrow,i=r.modifiersData.popperOffsets,l=kt(r.placement),s=dl(l),u=[Ye,ut].indexOf(l)>=0,d=u?"height":"width";if(!(!a||!i)){var p=qv(o.padding,r),c=ul(a),f=s==="y"?Ge:Ye,m=s==="y"?st:ut,y=r.rects.reference[d]+r.rects.reference[s]-i[s]-r.rects.popper[d],x=i[s]-r.rects.reference[s],v=lo(a),C=v?s==="y"?v.clientHeight||0:v.clientWidth||0:0,w=y/2-x/2,E=p[f],$=C-c[d]-p[m],A=C/2-c[d]/2+w,S=_n(E,A,$),D=s;r.modifiersData[n]=(t={},t[D]=S,t.centerOffset=S-A,t)}}function Ug(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Cd(t.elements.popper,o)&&(t.elements.arrow=o))}var qv,Gv,_O=N(()=>{sn(),Sd(),Nv(),sa(),$d(),Hv(),Wv(),Vv(),gt(),qv=g(function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Dd(typeof e!="number"?e:kd(e,On))},"toPaddingObject"),g(Hg,"arrow"),g(Ug,"effect"),Gv={name:"arrow",enabled:!0,phase:"main",fn:Hg,effect:Ug,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}});function tn(e){return e.split("-")[1]}var ua=N(()=>{g(tn,"getVariation")});function Yv(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:Qr(r*o)/o||0,y:Qr(n*o)/o||0}}function $u(e){var t,r=e.popper,n=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,l=e.position,s=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,p=e.isFixed,c=i.x,f=c===void 0?0:c,m=i.y,y=m===void 0?0:m,x=typeof d=="function"?d({x:f,y}):{x:f,y};f=x.x,y=x.y;var v=i.hasOwnProperty("x"),C=i.hasOwnProperty("y"),w=Ye,E=Ge,$=window;if(u){var A=lo(r),S="clientHeight",D="clientWidth";if(A===Qe(r)&&(A=lr(r),Wt(A).position!=="static"&&l==="absolute"&&(S="scrollHeight",D="scrollWidth")),A=A,o===Ge||(o===Ye||o===ut)&&a===Fn){E=st;var F=p&&A===$&&$.visualViewport?$.visualViewport.height:A[S];y-=F-n.height,y*=s?1:-1}if(o===Ye||(o===Ge||o===st)&&a===Fn){w=ut;var k=p&&A===$&&$.visualViewport?$.visualViewport.width:A[D];f-=k-n.width,f*=s?1:-1}}var _=Object.assign({position:l},u&&Kv),I=d===!0?Yv({x:f,y},Qe(r)):{x:f,y};if(f=I.x,y=I.y,s){var L;return Object.assign({},_,(L={},L[E]=C?"0":"",L[w]=v?"0":"",L.transform=($.devicePixelRatio||1)<=1?"translate("+f+"px, "+y+"px)":"translate3d("+f+"px, "+y+"px, 0)",L))}return Object.assign({},_,(t={},t[E]=C?y+"px":"",t[w]=v?f+"px":"",t.transform="",t))}function Wg(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,a=r.adaptive,i=a===void 0?!0:a,l=r.roundOffsets,s=l===void 0?!0:l,u={placement:kt(t.placement),variation:tn(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,$u(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,$u(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Kv,Xv,TO=N(()=>{gt(),sa(),Vt(),Or(),ia(),sn(),ua(),un(),Kv={top:"auto",right:"auto",bottom:"auto",left:"auto"},g(Yv,"roundOffsetsByDPR"),g($u,"mapToStyles"),g(Wg,"computeStyles"),Xv={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Wg,data:{}}});function Vg(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,a=o===void 0?!0:o,i=n.resize,l=i===void 0?!0:i,s=Qe(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(d){d.addEventListener("scroll",r.update,To)}),l&&s.addEventListener("resize",r.update,To),function(){a&&u.forEach(function(d){d.removeEventListener("scroll",r.update,To)}),l&&s.removeEventListener("resize",r.update,To)}}var To,Zv,RO=N(()=>{Vt(),To={passive:!0},g(Vg,"effect"),Zv={name:"eventListeners",enabled:!0,phase:"write",fn:g(function(){},"fn"),effect:Vg,data:{}}});function Uo(e){return e.replace(/left|right|bottom|top/g,function(t){return Jv[t]})}var Jv,PO=N(()=>{Jv={left:"right",right:"left",bottom:"top",top:"bottom"},g(Uo,"getOppositePlacement")});function Au(e){return e.replace(/start|end/g,function(t){return Qv[t]})}var Qv,IO=N(()=>{Qv={start:"end",end:"start"},g(Au,"getOppositeVariationPlacement")});function pl(e){var t=Qe(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}var Od=N(()=>{Vt(),g(pl,"getWindowScroll")});function fl(e){return en(lr(e)).left+pl(e).scrollLeft}var Fd=N(()=>{aa(),Or(),Od(),g(fl,"getWindowScrollBarX")});function ex(e,t){var r=Qe(e),n=lr(e),o=r.visualViewport,a=n.clientWidth,i=n.clientHeight,l=0,s=0;if(o){a=o.width,i=o.height;var u=wd();(u||!u&&t==="fixed")&&(l=o.offsetLeft,s=o.offsetTop)}return{width:a,height:i,x:l+fl(e),y:s}}var LO=N(()=>{Vt(),Or(),Fd(),Bv(),g(ex,"getViewportRect")});function tx(e){var t,r=lr(e),n=pl(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Cr(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Cr(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-n.scrollLeft+fl(e),s=-n.scrollTop;return Wt(o||r).direction==="rtl"&&(l+=Cr(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:l,y:s}}var BO=N(()=>{Or(),ia(),Fd(),Od(),un(),g(tx,"getDocumentRect")});function gl(e){var t=Wt(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}var _d=N(()=>{ia(),g(gl,"isScrollParent")});function Td(e){return["html","body","#document"].indexOf(Ot(e))>=0?e.ownerDocument.body:lt(e)&&gl(e)?e:Td(la(e))}var NO=N(()=>{cl(),_d(),ln(),mt(),g(Td,"getScrollParent")});function Tn(e,t){var r;t===void 0&&(t=[]);var n=Td(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),a=Qe(n),i=o?[a].concat(a.visualViewport||[],gl(n)?n:[]):n,l=t.concat(i);return o?l:l.concat(Tn(la(i)))}var rx=N(()=>{NO(),cl(),Vt(),_d(),g(Tn,"listScrollParents")});function Si(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}var nx=N(()=>{g(Si,"rectToClientRect")});function ox(e,t){var r=en(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Du(e,t,r){return t===xd?Si(ex(e,r)):Dr(t)?ox(t,r):Si(tx(lr(e)))}function ax(e){var t=Tn(la(e)),r=["absolute","fixed"].indexOf(Wt(e).position)>=0,n=r&&lt(e)?lo(e):e;return Dr(n)?t.filter(function(o){return Dr(o)&&Cd(o,n)&&Ot(o)!=="body"}):[]}function ix(e,t,r,n){var o=t==="clippingParents"?ax(e):[].concat(t),a=[].concat(o,[r]),i=a[0],l=a.reduce(function(s,u){var d=Du(e,u,n);return s.top=Cr(d.top,s.top),s.right=Ko(d.right,s.right),s.bottom=Ko(d.bottom,s.bottom),s.left=Cr(d.left,s.left),s},Du(e,i,n));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}var jO=N(()=>{gt(),LO(),BO(),rx(),sa(),Or(),ia(),mt(),aa(),cl(),Nv(),ln(),nx(),un(),g(ox,"getInnerBoundingClientRect"),g(Du,"getClientRectFromMixedType"),g(ax,"getClippingParents"),g(ix,"getClippingRect")});function Rd(e){var t=e.reference,r=e.element,n=e.placement,o=n?kt(n):null,a=n?tn(n):null,i=t.x+t.width/2-r.width/2,l=t.y+t.height/2-r.height/2,s;switch(o){case Ge:s={x:i,y:t.y-r.height};break;case st:s={x:i,y:t.y+t.height};break;case ut:s={x:t.x+t.width,y:l};break;case Ye:s={x:t.x-r.width,y:l};break;default:s={x:t.x,y:t.y}}var u=o?dl(o):null;if(u!=null){var d=u==="y"?"height":"width";switch(a){case Kr:s[u]=s[u]-(t[d]/2-r[d]/2);break;case Fn:s[u]=s[u]+(t[d]/2-r[d]/2);break}}return s}var lx=N(()=>{sn(),ua(),$d(),gt(),g(Rd,"computeOffsets")});function Xn(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,a=r.strategy,i=a===void 0?e.strategy:a,l=r.boundary,s=l===void 0?Tv:l,u=r.rootBoundary,d=u===void 0?xd:u,p=r.elementContext,c=p===void 0?$n:p,f=r.altBoundary,m=f===void 0?!1:f,y=r.padding,x=y===void 0?0:y,v=Dd(typeof x!="number"?x:kd(x,On)),C=c===$n?Rv:$n,w=e.rects.popper,E=e.elements[m?C:c],$=ix(Dr(E)?E:E.contextElement||lr(e.elements.popper),s,d,i),A=en(e.elements.reference),S=Rd({reference:A,element:w,placement:o}),D=Si(Object.assign({},w,S)),F=c===$n?D:A,k={top:$.top-F.top+v.top,bottom:F.bottom-$.bottom+v.bottom,left:$.left-F.left+v.left,right:F.right-$.right+v.right},_=e.modifiersData.offset;if(c===$n&&_){var I=_[o];Object.keys(k).forEach(function(L){var j=[ut,st].indexOf(L)>=0?1:-1,B=[Ge,st].indexOf(L)>=0?"y":"x";k[L]+=I[B]*j})}return k}var ml=N(()=>{jO(),Or(),aa(),lx(),nx(),gt(),mt(),Wv(),Vv(),g(Xn,"detectOverflow")});function sx(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,i=r.padding,l=r.flipVariations,s=r.allowedAutoPlacements,u=s===void 0?Ed:s,d=tn(n),p=d?l?Su:Su.filter(function(m){return tn(m)===d}):On,c=p.filter(function(m){return u.indexOf(m)>=0});c.length===0&&(c=p);var f=c.reduce(function(m,y){return m[y]=Xn(e,{placement:y,boundary:o,rootBoundary:a,padding:i})[kt(y)],m},{});return Object.keys(f).sort(function(m,y){return f[m]-f[y]})}var MO=N(()=>{ua(),gt(),ml(),sn(),g(sx,"computeAutoPlacement")});function ux(e){if(kt(e)===Ei)return[];var t=Uo(e);return[Au(e),t,Au(t)]}function qg(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,a=o===void 0?!0:o,i=r.altAxis,l=i===void 0?!0:i,s=r.fallbackPlacements,u=r.padding,d=r.boundary,p=r.rootBoundary,c=r.altBoundary,f=r.flipVariations,m=f===void 0?!0:f,y=r.allowedAutoPlacements,x=t.options.placement,v=kt(x),C=v===x,w=s||(C||!m?[Uo(x)]:ux(x)),E=[x].concat(w).reduce(function(ie,H){return ie.concat(kt(H)===Ei?sx(t,{placement:H,boundary:d,rootBoundary:p,padding:u,flipVariations:m,allowedAutoPlacements:y}):H)},[]),$=t.rects.reference,A=t.rects.popper,S=new Map,D=!0,F=E[0],k=0;k<E.length;k++){var _=E[k],I=kt(_),L=tn(_)===Kr,j=[Ge,st].indexOf(I)>=0,B=j?"width":"height",z=Xn(t,{placement:_,boundary:d,rootBoundary:p,altBoundary:c,padding:u}),q=j?L?ut:Ye:L?st:Ge;$[B]>A[B]&&(q=Uo(q));var Y=Uo(q),W=[];if(a&&W.push(z[I]<=0),l&&W.push(z[q]<=0,z[Y]<=0),W.every(function(ie){return ie})){F=_,D=!1;break}S.set(_,W)}if(D)for(var G=m?3:1,J=g(function(ie){var H=E.find(function(X){var Z=S.get(X);if(Z)return Z.slice(0,ie).every(function(le){return le})});if(H)return F=H,"break"},"_loop"),Q=G;Q>0;Q--){var re=J(Q);if(re==="break")break}t.placement!==F&&(t.modifiersData[n]._skip=!0,t.placement=F,t.reset=!0)}}var cx,zO=N(()=>{PO(),sn(),IO(),ml(),MO(),gt(),ua(),g(ux,"getExpandedFallbackPlacements"),g(qg,"flip"),cx={name:"flip",enabled:!0,phase:"main",fn:qg,requiresIfExists:["offset"],data:{_skip:!1}}});function ku(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Ou(e){return[Ge,ut,st,Ye].some(function(t){return e[t]>=0})}function Gg(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=Xn(t,{elementContext:"reference"}),l=Xn(t,{altBoundary:!0}),s=ku(i,n),u=ku(l,o,a),d=Ou(s),p=Ou(u);t.modifiersData[r]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":p})}var dx,HO=N(()=>{gt(),ml(),g(ku,"getSideOffsets"),g(Ou,"isAnySideFullyClipped"),g(Gg,"hide"),dx={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Gg}});function px(e,t,r){var n=kt(e),o=[Ye,Ge].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,i=a[0],l=a[1];return i=i||0,l=(l||0)*o,[Ye,ut].indexOf(n)>=0?{x:l,y:i}:{x:i,y:l}}function Yg(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=o===void 0?[0,0]:o,i=Ed.reduce(function(d,p){return d[p]=px(p,t.rects,a),d},{}),l=i[t.placement],s=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=i}var fx,UO=N(()=>{sn(),gt(),g(px,"distanceAndSkiddingToXY"),g(Yg,"offset"),fx={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Yg}});function Kg(e){var t=e.state,r=e.name;t.modifiersData[r]=Rd({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var gx,WO=N(()=>{lx(),g(Kg,"popperOffsets"),gx={name:"popperOffsets",enabled:!0,phase:"read",fn:Kg,data:{}}});function mx(e){return e==="x"?"y":"x"}var VO=N(()=>{g(mx,"getAltAxis")});function Xg(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,a=o===void 0?!0:o,i=r.altAxis,l=i===void 0?!1:i,s=r.boundary,u=r.rootBoundary,d=r.altBoundary,p=r.padding,c=r.tether,f=c===void 0?!0:c,m=r.tetherOffset,y=m===void 0?0:m,x=Xn(t,{boundary:s,rootBoundary:u,padding:p,altBoundary:d}),v=kt(t.placement),C=tn(t.placement),w=!C,E=dl(v),$=mx(E),A=t.modifiersData.popperOffsets,S=t.rects.reference,D=t.rects.popper,F=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,k=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),_=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(A){if(a){var L,j=E==="y"?Ge:Ye,B=E==="y"?st:ut,z=E==="y"?"height":"width",q=A[E],Y=q+x[j],W=q-x[B],G=f?-D[z]/2:0,J=C===Kr?S[z]:D[z],Q=C===Kr?-D[z]:-S[z],re=t.elements.arrow,ie=f&&re?ul(re):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Ad(),X=H[j],Z=H[B],le=_n(0,S[z],ie[z]),me=w?S[z]/2-G-le-X-k.mainAxis:J-le-X-k.mainAxis,Re=w?-S[z]/2+G+le+Z+k.mainAxis:Q+le+Z+k.mainAxis,ne=t.elements.arrow&&lo(t.elements.arrow),de=ne?E==="y"?ne.clientTop||0:ne.clientLeft||0:0,M=(L=_?.[E])!=null?L:0,U=q+me-M-de,fe=q+Re-M,ke=_n(f?Ko(Y,U):Y,q,f?Cr(W,fe):W);A[E]=ke,I[E]=ke-q}if(l){var be,We=E==="x"?Ge:Ye,pr=E==="x"?st:ut,Ce=A[$],nt=$==="y"?"height":"width",$e=Ce+x[We],ht=Ce-x[pr],Ve=[Ge,Ye].indexOf(v)!==-1,yt=(be=_?.[$])!=null?be:0,Pt=Ve?$e:Ce-S[nt]-D[nt]-yt+k.altAxis,Me=Ve?Ce+S[nt]+D[nt]-yt-k.altAxis:ht,bt=f&&Ve?zv(Pt,Ce,Me):_n(f?Pt:$e,Ce,f?Me:ht);A[$]=bt,I[$]=bt-Ce}t.modifiersData[n]=I}}var hx,qO=N(()=>{gt(),sn(),$d(),VO(),Hv(),Sd(),sa(),ml(),ua(),Uv(),un(),g(Xg,"preventOverflow"),hx={name:"preventOverflow",enabled:!0,phase:"main",fn:Xg,requiresIfExists:["offset"]}}),yx=N(()=>{});function bx(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}var GO=N(()=>{g(bx,"getHTMLElementScroll")});function vx(e){return e===Qe(e)||!lt(e)?pl(e):bx(e)}var YO=N(()=>{Od(),Vt(),mt(),GO(),g(vx,"getNodeScroll")});function xx(e){var t=e.getBoundingClientRect(),r=Qr(t.width)/e.offsetWidth||1,n=Qr(t.height)/e.offsetHeight||1;return r!==1||n!==1}function Ex(e,t,r){r===void 0&&(r=!1);var n=lt(t),o=lt(t)&&xx(t),a=lr(t),i=en(e,o,r),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(n||!n&&!r)&&((Ot(t)!=="body"||gl(a))&&(l=vx(t)),lt(t)?(s=en(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):a&&(s.x=fl(a))),{x:i.left+l.scrollLeft-s.x,y:i.top+l.scrollTop-s.y,width:i.width,height:i.height}}var KO=N(()=>{aa(),YO(),ln(),mt(),Fd(),Or(),_d(),un(),g(xx,"isElementScaled"),g(Ex,"getCompositeRect")});function wx(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function o(a){r.add(a.name);var i=[].concat(a.requires||[],a.requiresIfExists||[]);i.forEach(function(l){if(!r.has(l)){var s=t.get(l);s&&o(s)}}),n.push(a)}return g(o,"sort"),e.forEach(function(a){r.has(a.name)||o(a)}),n}function Sx(e){var t=wx(e);return Pv.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}var XO=N(()=>{gt(),g(wx,"order"),g(Sx,"orderModifiers")});function Cx(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}var ZO=N(()=>{g(Cx,"debounce")});function $x(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var JO=N(()=>{g($x,"mergeByName")});function Fu(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function Ax(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,a=o===void 0?_u:o;return g(function(i,l,s){s===void 0&&(s=a);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},_u,a),modifiersData:{},elements:{reference:i,popper:l},attributes:{},styles:{}},d=[],p=!1,c={state:u,setOptions:g(function(y){var x=typeof y=="function"?y(u.options):y;m(),u.options=Object.assign({},a,u.options,x),u.scrollParents={reference:Dr(i)?Tn(i):i.contextElement?Tn(i.contextElement):[],popper:Tn(l)};var v=Sx($x([].concat(n,u.options.modifiers)));return u.orderedModifiers=v.filter(function(C){return C.enabled}),f(),c.update()},"setOptions"),forceUpdate:g(function(){if(!p){var y=u.elements,x=y.reference,v=y.popper;if(Fu(x,v)){u.rects={reference:Ex(x,lo(v),u.options.strategy==="fixed"),popper:ul(v)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(D){return u.modifiersData[D.name]=Object.assign({},D.data)});for(var C=0;C<u.orderedModifiers.length;C++){if(u.reset===!0){u.reset=!1,C=-1;continue}var w=u.orderedModifiers[C],E=w.fn,$=w.options,A=$===void 0?{}:$,S=w.name;typeof E=="function"&&(u=E({state:u,options:A,name:S,instance:c})||u)}}}},"forceUpdate"),update:Cx(function(){return new Promise(function(y){c.forceUpdate(),y(u)})}),destroy:g(function(){m(),p=!0},"destroy")};if(!Fu(i,l))return c;c.setOptions(s).then(function(y){!p&&s.onFirstUpdate&&s.onFirstUpdate(y)});function f(){u.orderedModifiers.forEach(function(y){var x=y.name,v=y.options,C=v===void 0?{}:v,w=y.effect;if(typeof w=="function"){var E=w({state:u,name:x,instance:c,options:C}),$=g(function(){},"noopFn");d.push(E||$)}})}g(f,"runModifierEffects");function m(){d.forEach(function(y){return y()}),d=[]}return g(m,"cleanupModifierEffects"),c},"createPopper")}var _u,QO=N(()=>{KO(),Sd(),rx(),sa(),XO(),ZO(),JO(),mt(),_u={placement:"bottom",modifiers:[],strategy:"absolute"},g(Fu,"areValidElements"),g(Ax,"popperGenerator")}),Zg,Dx,eF=N(()=>{QO(),RO(),WO(),TO(),OO(),UO(),zO(),qO(),_O(),HO(),yx(),Zg=[Zv,gx,Xv,Iv,fx,cx,hx,Gv,dx],Dx=Ax({defaultModifiers:Zg})}),tF=N(()=>{gt(),yx(),eF()}),rF=te((e,t)=>{var r=typeof Element<"u",n=typeof Map=="function",o=typeof Set=="function",a=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function i(l,s){if(l===s)return!0;if(l&&s&&typeof l=="object"&&typeof s=="object"){if(l.constructor!==s.constructor)return!1;var u,d,p;if(Array.isArray(l)){if(u=l.length,u!=s.length)return!1;for(d=u;d--!==0;)if(!i(l[d],s[d]))return!1;return!0}var c;if(n&&l instanceof Map&&s instanceof Map){if(l.size!==s.size)return!1;for(c=l.entries();!(d=c.next()).done;)if(!s.has(d.value[0]))return!1;for(c=l.entries();!(d=c.next()).done;)if(!i(d.value[1],s.get(d.value[0])))return!1;return!0}if(o&&l instanceof Set&&s instanceof Set){if(l.size!==s.size)return!1;for(c=l.entries();!(d=c.next()).done;)if(!s.has(d.value[0]))return!1;return!0}if(a&&ArrayBuffer.isView(l)&&ArrayBuffer.isView(s)){if(u=l.length,u!=s.length)return!1;for(d=u;d--!==0;)if(l[d]!==s[d])return!1;return!0}if(l.constructor===RegExp)return l.source===s.source&&l.flags===s.flags;if(l.valueOf!==Object.prototype.valueOf&&typeof l.valueOf=="function"&&typeof s.valueOf=="function")return l.valueOf()===s.valueOf();if(l.toString!==Object.prototype.toString&&typeof l.toString=="function"&&typeof s.toString=="function")return l.toString()===s.toString();if(p=Object.keys(l),u=p.length,u!==Object.keys(s).length)return!1;for(d=u;d--!==0;)if(!Object.prototype.hasOwnProperty.call(s,p[d]))return!1;if(r&&l instanceof Element)return!1;for(d=u;d--!==0;)if(!((p[d]==="_owner"||p[d]==="__v"||p[d]==="__o")&&l.$$typeof)&&!i(l[p[d]],s[p[d]]))return!1;return!0}return l!==l&&s!==s}g(i,"equal"),t.exports=g(function(l,s){try{return i(l,s)}catch(u){if((u.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw u}},"isEqual")}),Jg,Qg,kx,nF=N(()=>{tF(),Jg=je(rF()),kO(),Qg=[],kx=g(function(e,t,r){r===void 0&&(r={});var n=b.useRef(null),o={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||Qg},a=b.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),i=a[0],l=a[1],s=b.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:g(function(p){var c=p.state,f=Object.keys(c.elements);el.flushSync(function(){l({styles:Eu(f.map(function(m){return[m,c.styles[m]||{}]})),attributes:Eu(f.map(function(m){return[m,c.attributes[m]]}))})})},"fn"),requires:["computeStyles"]}},[]),u=b.useMemo(function(){var p={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[s,{name:"applyStyles",enabled:!1}])};return(0,Jg.default)(n.current,p)?n.current||p:(n.current=p,p)},[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,s]),d=b.useRef();return wu(function(){d.current&&d.current.setOptions(u)},[u]),wu(function(){if(!(e==null||t==null)){var p=r.createPopper||Dx,c=p(e,t,u);return d.current=c,function(){c.destroy(),d.current=null}}},[e,t,r.createPopper]),{state:d.current?d.current.state:null,styles:i.styles,attributes:i.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}},"usePopper")}),oF=N(()=>{nF()});function Pd(e){var t=b.useRef(e);return t.current=e,b.useCallback(function(){return t.current},[])}function Ox(e){var t=e.initial,r=e.value,n=e.onChange,o=n===void 0?_x:n;if(t===void 0&&r===void 0)throw new TypeError('Either "value" or "initial" variable must be set. Now both are undefined');var a=b.useState(t),i=a[0],l=a[1],s=Pd(i),u=b.useCallback(function(p){var c=s(),f=typeof p=="function"?p(c):p;typeof f.persist=="function"&&f.persist(),l(f),typeof o=="function"&&o(f)},[s,o]),d=r!==void 0;return[d?r:i,d?o:u]}function Tu(e,t){return e===void 0&&(e=0),t===void 0&&(t=0),function(){return{width:0,height:0,top:t,right:e,bottom:t,left:e,x:0,y:0,toJSON:g(function(){return null},"toJSON")}}}function Fx(e,t){var r,n,o;e===void 0&&(e={}),t===void 0&&(t={});var a=Object.keys(Pu).reduce(function(B,z){var q;return xe({},B,(q={},q[z]=B[z]!==void 0?B[z]:Pu[z],q))},e),i=b.useMemo(function(){return[{name:"offset",options:{offset:a.offset}}]},Array.isArray(a.offset)?a.offset:[]),l=xe({},t,{placement:t.placement||a.placement,modifiers:t.modifiers||i}),s=b.useState(null),u=s[0],d=s[1],p=b.useState(null),c=p[0],f=p[1],m=Ox({initial:a.defaultVisible,value:a.visible,onChange:a.onVisibleChange}),y=m[0],x=m[1],v=b.useRef();b.useEffect(function(){return function(){return clearTimeout(v.current)}},[]);var C=kx(a.followCursor?Ru:u,c,l),w=C.styles,E=C.attributes,$=ol(C,Tx),A=$.update,S=Pd({visible:y,triggerRef:u,tooltipRef:c,finalConfig:a}),D=b.useCallback(function(B){return Array.isArray(a.trigger)?a.trigger.includes(B):a.trigger===B},Array.isArray(a.trigger)?a.trigger:[a.trigger]),F=b.useCallback(function(){clearTimeout(v.current),v.current=window.setTimeout(function(){return x(!1)},a.delayHide)},[a.delayHide,x]),k=b.useCallback(function(){clearTimeout(v.current),v.current=window.setTimeout(function(){return x(!0)},a.delayShow)},[a.delayShow,x]),_=b.useCallback(function(){S().visible?F():k()},[S,F,k]);b.useEffect(function(){if(S().finalConfig.closeOnOutsideClick){var B=g(function(z){var q,Y=S(),W=Y.tooltipRef,G=Y.triggerRef,J=(z.composedPath==null||(q=z.composedPath())==null?void 0:q[0])||z.target;J instanceof Node&&W!=null&&G!=null&&!W.contains(J)&&!G.contains(J)&&F()},"handleClickOutside");return document.addEventListener("mousedown",B),function(){return document.removeEventListener("mousedown",B)}}},[S,F]),b.useEffect(function(){if(!(u==null||!D("click")))return u.addEventListener("click",_),function(){return u.removeEventListener("click",_)}},[u,D,_]),b.useEffect(function(){if(!(u==null||!D("double-click")))return u.addEventListener("dblclick",_),function(){return u.removeEventListener("dblclick",_)}},[u,D,_]),b.useEffect(function(){if(!(u==null||!D("right-click"))){var B=g(function(z){z.preventDefault(),_()},"preventDefaultAndToggle");return u.addEventListener("contextmenu",B),function(){return u.removeEventListener("contextmenu",B)}}},[u,D,_]),b.useEffect(function(){if(!(u==null||!D("focus")))return u.addEventListener("focus",k),u.addEventListener("blur",F),function(){u.removeEventListener("focus",k),u.removeEventListener("blur",F)}},[u,D,k,F]),b.useEffect(function(){if(!(u==null||!D("hover")))return u.addEventListener("mouseenter",k),u.addEventListener("mouseleave",F),function(){u.removeEventListener("mouseenter",k),u.removeEventListener("mouseleave",F)}},[u,D,k,F]),b.useEffect(function(){if(!(c==null||!D("hover")||!S().finalConfig.interactive))return c.addEventListener("mouseenter",k),c.addEventListener("mouseleave",F),function(){c.removeEventListener("mouseenter",k),c.removeEventListener("mouseleave",F)}},[c,D,k,F,S]);var I=$==null||(r=$.state)==null||(n=r.modifiersData)==null||(o=n.hide)==null?void 0:o.isReferenceHidden;b.useEffect(function(){a.closeOnTriggerHidden&&I&&F()},[a.closeOnTriggerHidden,F,I]),b.useEffect(function(){if(!a.followCursor||u==null)return;function B(z){var q=z.clientX,Y=z.clientY;Ru.getBoundingClientRect=Tu(q,Y),A?.()}return g(B,"setMousePosition"),u.addEventListener("mousemove",B),function(){return u.removeEventListener("mousemove",B)}},[a.followCursor,u,A]),b.useEffect(function(){if(!(c==null||A==null||a.mutationObserverOptions==null)){var B=new MutationObserver(A);return B.observe(c,a.mutationObserverOptions),function(){return B.disconnect()}}},[a.mutationObserverOptions,c,A]);var L=g(function(B){return B===void 0&&(B={}),xe({},B,{style:xe({},B.style,w.popper)},E.popper,{"data-popper-interactive":a.interactive})},"getTooltipProps"),j=g(function(B){return B===void 0&&(B={}),xe({},B,E.arrow,{style:xe({},B.style,w.arrow),"data-popper-arrow":!0})},"getArrowProps");return xe({getArrowProps:j,getTooltipProps:L,setTooltipRef:f,setTriggerRef:d,tooltipRef:c,triggerRef:u,visible:y},$)}var _x,Tx,Ru,Pu,aF=N(()=>{ld(),rl(),oF(),g(Pd,"useGetLatest"),_x=g(function(){},"noop"),g(Ox,"useControlledState"),g(Tu,"generateBoundingClientRect"),Tx=["styles","attributes"],Ru={getBoundingClientRect:Tu()},Pu={closeOnOutsideClick:!0,closeOnTriggerHidden:!1,defaultVisible:!1,delayHide:0,delayShow:0,followCursor:!1,interactive:!1,mutationObserverOptions:{attributes:!0,childList:!0,subtree:!0},offset:[0,6],trigger:"hover"},g(Fx,"usePopperTooltip")}),em,at,Kt,tm,rm,Iu,iF=N(()=>{em=je(nl(),1),at=(0,em.default)(1e3)((e,t,r,n=0)=>t.split("-")[0]===e?r:n),Kt=8,tm=T.div({position:"absolute",borderStyle:"solid"},({placement:e})=>{let t=0,r=0;switch(!0){case(e.startsWith("left")||e.startsWith("right")):{r=8;break}case(e.startsWith("top")||e.startsWith("bottom")):{t=8;break}}return{transform:`translate3d(${t}px, ${r}px, 0px)`}},({theme:e,color:t,placement:r})=>({bottom:`${at("top",r,`${Kt*-1}px`,"auto")}`,top:`${at("bottom",r,`${Kt*-1}px`,"auto")}`,right:`${at("left",r,`${Kt*-1}px`,"auto")}`,left:`${at("right",r,`${Kt*-1}px`,"auto")}`,borderBottomWidth:`${at("top",r,"0",Kt)}px`,borderTopWidth:`${at("bottom",r,"0",Kt)}px`,borderRightWidth:`${at("left",r,"0",Kt)}px`,borderLeftWidth:`${at("right",r,"0",Kt)}px`,borderTopColor:at("top",r,e.color[t]||t||e.base==="light"?wn(e.background.app):e.background.app,"transparent"),borderBottomColor:at("bottom",r,e.color[t]||t||e.base==="light"?wn(e.background.app):e.background.app,"transparent"),borderLeftColor:at("left",r,e.color[t]||t||e.base==="light"?wn(e.background.app):e.background.app,"transparent"),borderRightColor:at("right",r,e.color[t]||t||e.base==="light"?wn(e.background.app):e.background.app,"transparent")})),rm=T.div(({hidden:e})=>({display:e?"none":"inline-block",zIndex:2147483647,colorScheme:"light dark"}),({theme:e,color:t,hasChrome:r})=>r?{background:t&&e.color[t]||t||e.base==="light"?wn(e.background.app):e.background.app,filter:`
804
+ drop-shadow(0px 5px 5px rgba(0,0,0,0.05))
805
+ drop-shadow(0 1px 3px rgba(0,0,0,0.1))
806
+ `,borderRadius:e.appBorderRadius+2,fontSize:e.typography.size.s1}:{}),Iu=h.forwardRef(({placement:e="top",hasChrome:t=!0,children:r,arrowProps:n={},tooltipRef:o,color:a,withArrows:i,...l},s)=>h.createElement(rm,{"data-testid":"tooltip",hasChrome:t,ref:s,...l,color:a},t&&i&&h.createElement(tm,{placement:e,...n,color:a}),r)),Iu.displayName="Tooltip"}),Id={};na(Id,{WithToolTipState:()=>Ci,WithTooltip:()=>Ci,WithTooltipPure:()=>Lu});const{global:lF}=__STORYBOOK_MODULE_GLOBAL__;var wo,nm,om,Lu,Ci,Ld=N(()=>{aF(),iF(),{document:wo}=lF,nm=T.div`
807
+ display: inline-block;
808
+ cursor: ${e=>e.trigger==="hover"||e.trigger?.includes("hover")?"default":"pointer"};
809
+ `,om=T.g`
810
+ cursor: ${e=>e.trigger==="hover"||e.trigger?.includes("hover")?"default":"pointer"};
811
+ `,Lu=g(({svg:e=!1,trigger:t="click",closeOnOutsideClick:r=!1,placement:n="top",modifiers:o=[{name:"preventOverflow",options:{padding:8}},{name:"offset",options:{offset:[8,8]}},{name:"arrow",options:{padding:8}}],hasChrome:a=!0,defaultVisible:i=!1,withArrows:l,offset:s,tooltip:u,children:d,closeOnTriggerHidden:p,mutationObserverOptions:c,delayHide:f=t==="hover"?200:0,visible:m,interactive:y,delayShow:x=t==="hover"?400:0,strategy:v,followCursor:C,onVisibleChange:w,...E})=>{let $=e?om:nm,{getArrowProps:A,getTooltipProps:S,setTooltipRef:D,setTriggerRef:F,visible:k,state:_}=Fx({trigger:t,placement:n,defaultVisible:i,delayHide:f,interactive:y,closeOnOutsideClick:r,closeOnTriggerHidden:p,onVisibleChange:w,delayShow:x,followCursor:C,mutationObserverOptions:c,visible:m,offset:s},{modifiers:o,strategy:v}),I=k?h.createElement(Iu,{placement:_?.placement,ref:D,hasChrome:a,arrowProps:A(),withArrows:l,...S()},typeof u=="function"?u({onHide:g(()=>w(!1),"onHide")}):u):null;return h.createElement(h.Fragment,null,h.createElement($,{trigger:t,ref:F,...E},d),k&&v1.createPortal(I,wo.body))},"WithTooltipPure"),Ci=g(({startOpen:e=!1,onVisibleChange:t,...r})=>{let[n,o]=b.useState(e),a=b.useCallback(i=>{t&&t(i)===!1||o(i)},[t]);return b.useEffect(()=>{let i=g(()=>a(!1),"hide");wo.addEventListener("keydown",i,!1);let l=Array.from(wo.getElementsByTagName("iframe")),s=[];return l.forEach(u=>{let d=g(()=>{try{u.contentWindow.document&&(u.contentWindow.document.addEventListener("click",i),s.push(()=>{try{u.contentWindow.document.removeEventListener("click",i)}catch{}}))}catch{}},"bind");d(),u.addEventListener("load",d),s.push(()=>{u.removeEventListener("load",d)})}),()=>{wo.removeEventListener("keydown",i),s.forEach(u=>{u()})}}),h.createElement(Lu,{...r,visible:n,onVisibleChange:a})},"WithToolTipState")}),ve=g(({...e},t)=>{let r=[e.class,e.className];return delete e.class,e.className=["sbdocs",`sbdocs-${t}`,...r].filter(Boolean).join(" "),e},"nameSpaceClassNames");rl();uk();id();function Rx(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Yn(e,t)}g(Rx,"_inheritsLoose");ck();id();function Px(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}g(Px,"_isNativeFunction");function Bd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Bd=g(function(){return!!e},"_isNativeReflectConstruct"))()}g(Bd,"_isNativeReflectConstruct");id();function Ix(e,t,r){if(Bd())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&Yn(o,r.prototype),o}g(Ix,"_construct");function $i(e){var t=typeof Map=="function"?new Map:void 0;return $i=g(function(r){if(r===null||!Px(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,n)}function n(){return Ix(r,arguments,hi(this).constructor)}return g(n,"Wrapper"),n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Yn(n,r)},"_wrapNativeSuper"),$i(e)}g($i,"_wrapNativeSuper");var sF={1:`Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).
812
+
813
+ `,2:`Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).
814
+
815
+ `,3:`Passed an incorrect argument to a color function, please pass a string representation of a color.
816
+
817
+ `,4:`Couldn't generate valid rgb string from %s, it returned %s.
818
+
819
+ `,5:`Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.
820
+
821
+ `,6:`Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).
822
+
823
+ `,7:`Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).
824
+
825
+ `,8:`Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.
826
+
827
+ `,9:`Please provide a number of steps to the modularScale helper.
828
+
829
+ `,10:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio.
830
+
831
+ `,11:`Invalid value passed as base to modularScale, expected number or em string but got "%s"
832
+
833
+ `,12:`Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead.
834
+
835
+ `,13:`Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead.
836
+
837
+ `,14:`Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12.
838
+
839
+ `,15:`Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12.
840
+
841
+ `,16:`You must provide a template to this method.
842
+
843
+ `,17:`You passed an unsupported selector state to this method.
844
+
845
+ `,18:`minScreen and maxScreen must be provided as stringified numbers with the same units.
846
+
847
+ `,19:`fromSize and toSize must be provided as stringified numbers with the same units.
848
+
849
+ `,20:`expects either an array of objects or a single object with the properties prop, fromSize, and toSize.
850
+
851
+ `,21:"expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",22:"expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",23:`fontFace expects a name of a font-family.
852
+
853
+ `,24:`fontFace expects either the path to the font file(s) or a name of a local copy.
854
+
855
+ `,25:`fontFace expects localFonts to be an array.
856
+
857
+ `,26:`fontFace expects fileFormats to be an array.
858
+
859
+ `,27:`radialGradient requries at least 2 color-stops to properly render.
860
+
861
+ `,28:`Please supply a filename to retinaImage() as the first argument.
862
+
863
+ `,29:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.
864
+
865
+ `,30:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",31:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation
866
+
867
+ `,32:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])
868
+ To pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')
869
+
870
+ `,33:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation
871
+
872
+ `,34:`borderRadius expects a radius value as a string or number as the second argument.
873
+
874
+ `,35:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.
875
+
876
+ `,36:`Property must be a string value.
877
+
878
+ `,37:`Syntax Error at %s.
879
+
880
+ `,38:`Formula contains a function that needs parentheses at %s.
881
+
882
+ `,39:`Formula is missing closing parenthesis at %s.
883
+
884
+ `,40:`Formula has too many closing parentheses at %s.
885
+
886
+ `,41:`All values in a formula must have the same unit or be unitless.
887
+
888
+ `,42:`Please provide a number of steps to the modularScale helper.
889
+
890
+ `,43:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio.
891
+
892
+ `,44:`Invalid value passed as base to modularScale, expected number or em/rem string but got %s.
893
+
894
+ `,45:`Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.
895
+
896
+ `,46:`Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.
897
+
898
+ `,47:`minScreen and maxScreen must be provided as stringified numbers with the same units.
899
+
900
+ `,48:`fromSize and toSize must be provided as stringified numbers with the same units.
901
+
902
+ `,49:`Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.
903
+
904
+ `,50:`Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.
905
+
906
+ `,51:`Expects the first argument object to have the properties prop, fromSize, and toSize.
907
+
908
+ `,52:`fontFace expects either the path to the font file(s) or a name of a local copy.
909
+
910
+ `,53:`fontFace expects localFonts to be an array.
911
+
912
+ `,54:`fontFace expects fileFormats to be an array.
913
+
914
+ `,55:`fontFace expects a name of a font-family.
915
+
916
+ `,56:`linearGradient requries at least 2 color-stops to properly render.
917
+
918
+ `,57:`radialGradient requries at least 2 color-stops to properly render.
919
+
920
+ `,58:`Please supply a filename to retinaImage() as the first argument.
921
+
922
+ `,59:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.
923
+
924
+ `,60:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",61:`Property must be a string value.
925
+
926
+ `,62:`borderRadius expects a radius value as a string or number as the second argument.
927
+
928
+ `,63:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.
929
+
930
+ `,64:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.
931
+
932
+ `,65:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s').
933
+
934
+ `,66:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.
935
+
936
+ `,67:`You must provide a template to this method.
937
+
938
+ `,68:`You passed an unsupported selector state to this method.
939
+
940
+ `,69:`Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead.
941
+
942
+ `,70:`Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead.
943
+
944
+ `,71:`Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12.
945
+
946
+ `,72:`Passed invalid base value %s to %s(), please pass a value like "12px" or 12.
947
+
948
+ `,73:`Please provide a valid CSS variable.
949
+
950
+ `,74:`CSS variable not found and no default was provided.
951
+
952
+ `,75:`important requires a valid style object, got a %s instead.
953
+
954
+ `,76:`fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.
955
+
956
+ `,77:`remToPx expects a value in "rem" but you provided it in "%s".
957
+
958
+ `,78:`base must be set in "px" or "%" but you set it in "%s".
959
+ `};function Lx(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],o=[],a;for(a=1;a<t.length;a+=1)o.push(t[a]);return o.forEach(function(i){n=n.replace(/%[a-z]/,i)}),n}g(Lx,"format");var Xe=(function(e){Rx(t,e);function t(r){for(var n,o=arguments.length,a=new Array(o>1?o-1:0),i=1;i<o;i++)a[i-1]=arguments[i];return n=e.call(this,Lx.apply(void 0,[sF[r]].concat(a)))||this,x1(n)}return g(t,"PolishedError"),t})($i(Error));function Bu(e,t){return e.substr(-t.length)===t}g(Bu,"endsWith");var uF=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;function Nu(e){if(typeof e!="string")return e;var t=e.match(uF);return t?parseFloat(e):e}g(Nu,"stripUnit");var cF=g(function(e){return function(t,r){r===void 0&&(r="16px");var n=t,o=r;if(typeof t=="string"){if(!Bu(t,"px"))throw new Xe(69,e,t);n=Nu(t)}if(typeof r=="string"){if(!Bu(r,"px"))throw new Xe(70,e,r);o=Nu(r)}if(typeof n=="string")throw new Xe(71,t,e);if(typeof o=="string")throw new Xe(72,r,e);return""+n/o+e}},"pxtoFactory"),Bx=cF;Bx("em");Bx("rem");function Ua(e){return Math.round(e*255)}g(Ua,"colorToInt");function Nx(e,t,r){return Ua(e)+","+Ua(t)+","+Ua(r)}g(Nx,"convertToInt");function Zn(e,t,r,n){if(n===void 0&&(n=Nx),t===0)return n(r,r,r);var o=(e%360+360)%360/60,a=(1-Math.abs(2*r-1))*t,i=a*(1-Math.abs(o%2-1)),l=0,s=0,u=0;o>=0&&o<1?(l=a,s=i):o>=1&&o<2?(l=i,s=a):o>=2&&o<3?(s=a,u=i):o>=3&&o<4?(s=i,u=a):o>=4&&o<5?(l=i,u=a):o>=5&&o<6&&(l=a,u=i);var d=r-a/2,p=l+d,c=s+d,f=u+d;return n(p,c,f)}g(Zn,"hslToRgb");var am={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 jx(e){if(typeof e!="string")return e;var t=e.toLowerCase();return am[t]?"#"+am[t]:e}g(jx,"nameToHex");var dF=/^#[a-fA-F0-9]{6}$/,pF=/^#[a-fA-F0-9]{8}$/,fF=/^#[a-fA-F0-9]{3}$/,gF=/^#[a-fA-F0-9]{4}$/,cs=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,mF=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,hF=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,yF=/^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 rn(e){if(typeof e!="string")throw new Xe(3);var t=jx(e);if(t.match(dF))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(pF)){var r=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:r}}if(t.match(fF))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(gF)){var n=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:n}}var o=cs.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=mF.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 i=hF.exec(t);if(i){var l=parseInt(""+i[1],10),s=parseInt(""+i[2],10)/100,u=parseInt(""+i[3],10)/100,d="rgb("+Zn(l,s,u)+")",p=cs.exec(d);if(!p)throw new Xe(4,t,d);return{red:parseInt(""+p[1],10),green:parseInt(""+p[2],10),blue:parseInt(""+p[3],10)}}var c=yF.exec(t.substring(0,50));if(c){var f=parseInt(""+c[1],10),m=parseInt(""+c[2],10)/100,y=parseInt(""+c[3],10)/100,x="rgb("+Zn(f,m,y)+")",v=cs.exec(x);if(!v)throw new Xe(4,t,x);return{red:parseInt(""+v[1],10),green:parseInt(""+v[2],10),blue:parseInt(""+v[3],10),alpha:parseFloat(""+c[4])>1?parseFloat(""+c[4])/100:parseFloat(""+c[4])}}throw new Xe(5)}g(rn,"parseToRgb");function Mx(e){var t=e.red/255,r=e.green/255,n=e.blue/255,o=Math.max(t,r,n),a=Math.min(t,r,n),i=(o+a)/2;if(o===a)return e.alpha!==void 0?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var l,s=o-a,u=i>.5?s/(2-o-a):s/(o+a);switch(o){case t:l=(r-n)/s+(r<n?6:0);break;case r:l=(n-t)/s+2;break;default:l=(t-r)/s+4;break}return l*=60,e.alpha!==void 0?{hue:l,saturation:u,lightness:i,alpha:e.alpha}:{hue:l,saturation:u,lightness:i}}g(Mx,"rgbToHsl");function sr(e){return Mx(rn(e))}g(sr,"parseToHsl");var bF=g(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},"reduceHexValue"),ju=bF;function Er(e){var t=e.toString(16);return t.length===1?"0"+t:t}g(Er,"numberToHex");function Wa(e){return Er(Math.round(e*255))}g(Wa,"colorToHex");function zx(e,t,r){return ju("#"+Wa(e)+Wa(t)+Wa(r))}g(zx,"convertToHex");function Xo(e,t,r){return Zn(e,t,r,zx)}g(Xo,"hslToHex");function Hx(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return Xo(e,t,r);if(typeof e=="object"&&t===void 0&&r===void 0)return Xo(e.hue,e.saturation,e.lightness);throw new Xe(1)}g(Hx,"hsl");function Ux(e,t,r,n){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?Xo(e,t,r):"rgba("+Zn(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?Xo(e.hue,e.saturation,e.lightness):"rgba("+Zn(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Xe(2)}g(Ux,"hsla");function Ai(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return ju("#"+Er(e)+Er(t)+Er(r));if(typeof e=="object"&&t===void 0&&r===void 0)return ju("#"+Er(e.red)+Er(e.green)+Er(e.blue));throw new Xe(6)}g(Ai,"rgb");function nn(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var o=rn(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?Ai(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?Ai(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new Xe(7)}g(nn,"rgba");var vF=g(function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},"isRgb"),xF=g(function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},"isRgba"),EF=g(function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},"isHsl"),wF=g(function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"},"isHsla");function ur(e){if(typeof e!="object")throw new Xe(8);if(xF(e))return nn(e);if(vF(e))return Ai(e);if(wF(e))return Ux(e);if(EF(e))return Hx(e);throw new Xe(8)}g(ur,"toColorString");function Nd(e,t,r){return g(function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):Nd(e,t,n)},"fn")}g(Nd,"curried");function rt(e){return Nd(e,e.length,[])}g(rt,"curry");function Wx(e,t){if(t==="transparent")return t;var r=sr(t);return ur(xe({},r,{hue:r.hue+parseFloat(e)}))}g(Wx,"adjustHue");rt(Wx);function cn(e,t,r){return Math.max(e,Math.min(t,r))}g(cn,"guard");function Vx(e,t){if(t==="transparent")return t;var r=sr(t);return ur(xe({},r,{lightness:cn(0,1,r.lightness-parseFloat(e))}))}g(Vx,"darken");var SF=rt(Vx),kn=SF;function qx(e,t){if(t==="transparent")return t;var r=sr(t);return ur(xe({},r,{saturation:cn(0,1,r.saturation-parseFloat(e))}))}g(qx,"desaturate");rt(qx);function Gx(e,t){if(t==="transparent")return t;var r=sr(t);return ur(xe({},r,{lightness:cn(0,1,r.lightness+parseFloat(e))}))}g(Gx,"lighten");var CF=rt(Gx),im=CF;function Yx(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var n=rn(t),o=xe({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),a=rn(r),i=xe({},a,{alpha:typeof a.alpha=="number"?a.alpha:1}),l=o.alpha-i.alpha,s=parseFloat(e)*2-1,u=s*l===-1?s:s+l,d=1+s*l,p=(u/d+1)/2,c=1-p,f={red:Math.floor(o.red*p+i.red*c),green:Math.floor(o.green*p+i.green*c),blue:Math.floor(o.blue*p+i.blue*c),alpha:o.alpha*parseFloat(e)+i.alpha*(1-parseFloat(e))};return nn(f)}g(Yx,"mix");var $F=rt(Yx),Kx=$F;function Xx(e,t){if(t==="transparent")return t;var r=rn(t),n=typeof r.alpha=="number"?r.alpha:1,o=xe({},r,{alpha:cn(0,1,(n*100+parseFloat(e)*100)/100)});return nn(o)}g(Xx,"opacify");rt(Xx);function Zx(e,t){if(t==="transparent")return t;var r=sr(t);return ur(xe({},r,{saturation:cn(0,1,r.saturation+parseFloat(e))}))}g(Zx,"saturate");rt(Zx);function Jx(e,t){return t==="transparent"?t:ur(xe({},sr(t),{hue:parseFloat(e)}))}g(Jx,"setHue");rt(Jx);function Qx(e,t){return t==="transparent"?t:ur(xe({},sr(t),{lightness:parseFloat(e)}))}g(Qx,"setLightness");rt(Qx);function eE(e,t){return t==="transparent"?t:ur(xe({},sr(t),{saturation:parseFloat(e)}))}g(eE,"setSaturation");rt(eE);function tE(e,t){return t==="transparent"?t:Kx(parseFloat(e),"rgb(0, 0, 0)",t)}g(tE,"shade");rt(tE);function rE(e,t){return t==="transparent"?t:Kx(parseFloat(e),"rgb(255, 255, 255)",t)}g(rE,"tint");rt(rE);function nE(e,t){if(t==="transparent")return t;var r=rn(t),n=typeof r.alpha=="number"?r.alpha:1,o=xe({},r,{alpha:cn(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return nn(o)}g(nE,"transparentize");var AF=rt(nE),pt=AF,so=g(({theme:e})=>({margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}}),"headerCommon"),cr=g(({theme:e})=>({lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?pt(.1,e.color.defaultText):pt(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border}),"codeCommon"),we=g(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"}),"withReset"),dn={margin:"16px 0"},jd=T.div(we),DF=g(({href:e="",...t})=>{let r=/^\//.test(e)?`./?path=${e}`:e,n=/^#.*/.test(e)?"_self":"_top";return h.createElement("a",{href:r,target:n,...t})},"Link"),oE=T(DF)(we,({theme:e})=>({fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}})),aE=T.blockquote(we,dn,({theme:e})=>({borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}}));ll();var kF=g(e=>typeof e=="string","isReactChildString"),OF=/[\n\r]/g,FF=T.code(({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"}),cr),_F=T(Ho)(({theme:e})=>({fontFamily:e.typography.fonts.mono,fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),Md=g(({className:e,children:t,...r})=>{let n=(e||"").match(/lang-(\S+)/),o=b.Children.toArray(t);return o.filter(kF).some(a=>a.match(OF))?h.createElement(_F,{bordered:!0,copyable:!0,language:n?.[1]??"text",format:!1,...r},t):h.createElement(FF,{...r,className:e},o)},"Code"),iE=T.dl(we,dn,{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}}),lE=T.div(we),sE=T.h1(we,so,({theme:e})=>({fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold})),zd=T.h2(we,so,({theme:e})=>({fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`})),Hd=T.h3(we,so,({theme:e})=>({fontSize:`${e.typography.size.m1}px`})),uE=T.h4(we,so,({theme:e})=>({fontSize:`${e.typography.size.s3}px`})),cE=T.h5(we,so,({theme:e})=>({fontSize:`${e.typography.size.s2}px`})),dE=T.h6(we,so,({theme:e})=>({fontSize:`${e.typography.size.s2}px`,color:e.color.dark})),pE=T.hr(({theme:e})=>({border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0})),fE=T.img({maxWidth:"100%"}),gE=T.li(we,({theme:e})=>({fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":cr({theme:e})})),TF={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},mE=T.ol(we,dn,TF,{listStyle:"decimal"}),hE=T.p(we,dn,({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":cr({theme:e})})),yE=T.pre(we,dn,({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}})),bE=T.span(we,({theme:e})=>({"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}})),vE=T.title(cr),xE=T.table(we,dn,({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}})),RF={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},EE=T.ul(we,dn,RF,{listStyle:"disc"}),wE={h1:g(e=>h.createElement(sE,{...ve(e,"h1")}),"h1"),h2:g(e=>h.createElement(zd,{...ve(e,"h2")}),"h2"),h3:g(e=>h.createElement(Hd,{...ve(e,"h3")}),"h3"),h4:g(e=>h.createElement(uE,{...ve(e,"h4")}),"h4"),h5:g(e=>h.createElement(cE,{...ve(e,"h5")}),"h5"),h6:g(e=>h.createElement(dE,{...ve(e,"h6")}),"h6"),pre:g(e=>h.createElement(yE,{...ve(e,"pre")}),"pre"),a:g(e=>h.createElement(oE,{...ve(e,"a")}),"a"),hr:g(e=>h.createElement(pE,{...ve(e,"hr")}),"hr"),dl:g(e=>h.createElement(iE,{...ve(e,"dl")}),"dl"),blockquote:g(e=>h.createElement(aE,{...ve(e,"blockquote")}),"blockquote"),table:g(e=>h.createElement(xE,{...ve(e,"table")}),"table"),img:g(e=>h.createElement(fE,{...ve(e,"img")}),"img"),div:g(e=>h.createElement(lE,{...ve(e,"div")}),"div"),span:g(e=>h.createElement(bE,{...ve(e,"span")}),"span"),li:g(e=>h.createElement(gE,{...ve(e,"li")}),"li"),ul:g(e=>h.createElement(EE,{...ve(e,"ul")}),"ul"),ol:g(e=>h.createElement(mE,{...ve(e,"ol")}),"ol"),p:g(e=>h.createElement(hE,{...ve(e,"p")}),"p"),code:g(e=>h.createElement(Md,{...ve(e,"code")}),"code"),tt:g(e=>h.createElement(vE,{...ve(e,"tt")}),"tt"),resetwrapper:g(e=>h.createElement(jd,{...ve(e,"resetwrapper")}),"resetwrapper")},PF=T.div(({theme:e,compact:t})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:"12px",minWidth:20,borderRadius:20,padding:t?"4px 7px":"4px 10px"}),{svg:{height:12,width:12,marginRight:4,marginTop:-2,path:{fill:"currentColor"}}},({theme:e,status:t})=>{switch(t){case"critical":return{color:e.color.critical,background:e.background.critical};case"negative":return{color:e.color.negativeText,background:e.background.negative,boxShadow:e.base==="light"?`inset 0 0 0 1px ${pt(.9,e.color.negativeText)}`:"none"};case"warning":return{color:e.color.warningText,background:e.background.warning,boxShadow:e.base==="light"?`inset 0 0 0 1px ${pt(.9,e.color.warningText)}`:"none"};case"neutral":return{color:e.textMutedColor,background:e.base==="light"?e.background.app:e.barBg,boxShadow:`inset 0 0 0 1px ${pt(.8,e.textMutedColor)}`};case"positive":return{color:e.color.positiveText,background:e.background.positive,boxShadow:e.base==="light"?`inset 0 0 0 1px ${pt(.9,e.color.positiveText)}`:"none"};case"active":return{color:e.color.secondary,background:e.background.hoverable,boxShadow:`inset 0 0 0 1px ${pt(.9,e.color.secondary)}`};default:return{}}}),IF=g(({...e})=>h.createElement(PF,{...e}),"Badge"),LF=b.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>b.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},b.createElement("path",{d:"M10.139 8.725l1.36-1.323a.568.568 0 00.151-.54.534.534 0 00-.377-.396l-2.705-.708 2.22-4.976a.568.568 0 00-.15-.666.497.497 0 00-.648.008L5.464 4.05l.708.71 2.848-2.47-1.64 3.677.697.697 2.164.567-.81.787.708.708zM2.523 6.6a.566.566 0 00-.177.544.534.534 0 00.382.41l2.782.721-1.494 5.013a.563.563 0 00.217.627.496.496 0 00.629-.06l3.843-3.736-.708-.707-2.51 2.44 1.137-3.814-.685-.685-2.125-.55.844-.731-.71-.71L2.524 6.6zM1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.708-.708l-11-11z",fill:e}))),BF=b.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>b.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},b.createElement("path",{d:"M1.854 1.146a.5.5 0 10-.708.708L6.293 7l-5.147 5.146a.5.5 0 00.708.708L7 7.707l5.146 5.147a.5.5 0 00.708-.708L7.707 7l5.147-5.146a.5.5 0 00-.708-.708L7 6.293 1.854 1.146z",fill:e}))),NF=b.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>b.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},b.createElement("path",{d:"M11.104 7.354l-5.5 5.5a.5.5 0 01-.708-.708L10.043 7 4.896 1.854a.5.5 0 11.708-.708l5.5 5.5a.5.5 0 010 .708z",fill:e}))),jF=0,MF=g(e=>e.button===jF&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey,"isPlainLeftClick"),zF=g((e,t)=>{MF(e)&&(e.preventDefault(),t(e))},"cancelled"),HF=T.span(({withArrow:e})=>e?{"> svg:last-of-type":{height:"0.7em",width:"0.7em",marginRight:0,marginLeft:"0.25em",bottom:"auto",verticalAlign:"inherit"}}:{},({containsIcon:e})=>e?{svg:{height:"1em",width:"1em",verticalAlign:"middle",position:"relative",bottom:0,marginRight:0}}:{}),UF=T.a(({theme:e})=>({display:"inline-block",transition:"all 150ms ease-out",textDecoration:"none",color:e.color.secondary,"&:hover, &:focus":{cursor:"pointer",color:kn(.07,e.color.secondary),"svg path:not([fill])":{fill:kn(.07,e.color.secondary)}},"&:active":{color:kn(.1,e.color.secondary),"svg path:not([fill])":{fill:kn(.1,e.color.secondary)}},svg:{display:"inline-block",height:"1em",width:"1em",verticalAlign:"text-top",position:"relative",bottom:"-0.125em",marginRight:"0.4em","& path":{fill:e.color.secondary}}}),({theme:e,secondary:t,tertiary:r})=>{let n;return t&&(n=[e.textMutedColor,e.color.dark,e.color.darker]),r&&(n=[e.color.dark,e.color.darkest,e.textMutedColor]),n?{color:n[0],"svg path:not([fill])":{fill:n[0]},"&:hover":{color:n[1],"svg path:not([fill])":{fill:n[1]}},"&:active":{color:n[2],"svg path:not([fill])":{fill:n[2]}}}:{}},({nochrome:e})=>e?{color:"inherit","&:hover, &:active":{color:"inherit",textDecoration:"underline"}}:{},({theme:e,inverse:t})=>t?{color:e.color.lightest,":not([fill])":{fill:e.color.lightest},"&:hover":{color:e.color.lighter,"svg path:not([fill])":{fill:e.color.lighter}},"&:active":{color:e.color.light,"svg path:not([fill])":{fill:e.color.light}}}:{},({isButton:e})=>e?{border:0,borderRadius:0,background:"none",padding:0,fontSize:"inherit"}:{}),Jn=g(({cancel:e=!0,children:t,onClick:r=void 0,withArrow:n=!1,containsIcon:o=!1,className:a=void 0,style:i=void 0,...l})=>h.createElement(UF,{...l,onClick:r&&e?s=>zF(s,r):r,className:a},h.createElement(HF,{withArrow:n,containsIcon:o},t,n&&h.createElement(NF,null))),"Link"),WF=T.div(({theme:e})=>({fontSize:`${e.typography.size.s2}px`,lineHeight:"1.6",h1:{fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},h2:{fontSize:`${e.typography.size.m2}px`,borderBottom:`1px solid ${e.appBorderColor}`},h3:{fontSize:`${e.typography.size.m1}px`},h4:{fontSize:`${e.typography.size.s3}px`},h5:{fontSize:`${e.typography.size.s2}px`},h6:{fontSize:`${e.typography.size.s2}px`,color:e.color.dark},"pre:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"pre pre, pre.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px"},"pre pre code, pre.prismjs code":{color:"inherit",fontSize:"inherit"},"pre code":{margin:0,padding:0,whiteSpace:"pre",border:"none",background:"transparent"},"pre code, pre tt":{backgroundColor:"transparent",border:"none"},"body > *:first-of-type":{marginTop:"0 !important"},"body > *:last-child":{marginBottom:"0 !important"},a:{color:e.color.secondary,textDecoration:"none"},"a.absent":{color:"#cc0000"},"a.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0},"h1, h2, h3, h4, h5, h6":{margin:"20px 0 10px",padding:0,cursor:"text",position:"relative","&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}},"h1:first-of-type + h2":{marginTop:0,paddingTop:0},"p, blockquote, ul, ol, dl, li, table, pre":{margin:"15px 0"},hr:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},"body > h1:first-of-type, body > h2:first-of-type, body > h3:first-of-type, body > h4:first-of-type, body > h5:first-of-type, body > h6:first-of-type":{marginTop:0,paddingTop:0},"body > h1:first-of-type + h2":{marginTop:0,paddingTop:0},"a:first-of-type h1, a:first-of-type h2, a:first-of-type h3, a:first-of-type h4, a:first-of-type h5, a:first-of-type h6":{marginTop:0,paddingTop:0},"h1 p, h2 p, h3 p, h4 p, h5 p, h6 p":{marginTop:0},"li p.first":{display:"inline-block"},"ul, ol":{paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},dl:{padding:0},"dl dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",margin:"0 0 15px",padding:"0 15px","&:first-of-type":{padding:0},"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},blockquote:{borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},table:{padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:"white",margin:0,padding:0,"& th":{fontWeight:"bold",border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"& td":{border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"&:nth-of-type(2n)":{backgroundColor:e.color.lighter},"& th :first-of-type, & td :first-of-type":{marginTop:0},"& th :last-child, & td :last-child":{marginBottom:0}}},img:{maxWidth:"100%"},"span.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"span.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"span.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"span.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"span.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}},"code, tt":{margin:"0 2px",padding:"0 5px",whiteSpace:"nowrap",border:`1px solid ${e.color.mediumlight}`,backgroundColor:e.color.lighter,borderRadius:3,color:e.base==="dark"?e.color.darkest:e.color.dark}})),Xr=[],Qn=null,VF=b.lazy(async()=>{let{SyntaxHighlighter:e}=await Promise.resolve().then(()=>(ll(),vd));return Xr.length>0&&(Xr.forEach(t=>{e.registerLanguage(...t)}),Xr=[]),Qn===null&&(Qn=e),{default:g(t=>h.createElement(e,{...t}),"default")}}),qF=b.lazy(async()=>{let[{SyntaxHighlighter:e},{formatter:t}]=await Promise.all([Promise.resolve().then(()=>(ll(),vd)),Promise.resolve().then(()=>(DO(),Fv))]);return Xr.length>0&&(Xr.forEach(r=>{e.registerLanguage(...r)}),Xr=[]),Qn===null&&(Qn=e),{default:g(r=>h.createElement(e,{...r,formatter:t}),"default")}}),hl=g(e=>h.createElement(b.Suspense,{fallback:h.createElement("div",null)},e.format!==!1?h.createElement(qF,{...e}):h.createElement(VF,{...e})),"SyntaxHighlighter");hl.registerLanguage=(...e)=>{if(Qn!==null){Qn.registerLanguage(...e);return}Xr.push(e)};ll();fv();var SE={};na(SE,{Close:()=>Nw,Content:()=>Iw,Description:()=>Bw,Dialog:()=>qd,DialogClose:()=>tp,DialogContent:()=>Zd,DialogDescription:()=>ep,DialogOverlay:()=>Xd,DialogPortal:()=>Kd,DialogTitle:()=>Qd,DialogTrigger:()=>Gd,Overlay:()=>Pw,Portal:()=>Rw,Root:()=>Tw,Title:()=>Lw,Trigger:()=>q_,WarningProvider:()=>H_,createDialogScope:()=>I_});function Rn(e,t,{checkForDefaultPrevented:r=!0}={}){return g(function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)},"handleEvent")}g(Rn,"composeEventHandlers");function Mu(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}g(Mu,"setRef");function ca(...e){return t=>{let r=!1,n=e.map(o=>{let a=Mu(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){let a=n[o];typeof a=="function"?a():Mu(e[o],null)}}}}g(ca,"composeRefs");function Fr(...e){return b.useCallback(ca(...e),e)}g(Fr,"useComposedRefs");function CE(e,t){let r=b.createContext(t),n=g(a=>{let{children:i,...l}=a,s=b.useMemo(()=>l,Object.values(l));return V.jsx(r.Provider,{value:s,children:i})},"Provider");n.displayName=e+"Provider";function o(a){let i=b.useContext(r);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return g(o,"useContext2"),[n,o]}g(CE,"createContext2");function $E(e,t=[]){let r=[];function n(a,i){let l=b.createContext(i),s=r.length;r=[...r,i];let u=g(p=>{let{scope:c,children:f,...m}=p,y=c?.[e]?.[s]||l,x=b.useMemo(()=>m,Object.values(m));return V.jsx(y.Provider,{value:x,children:f})},"Provider");u.displayName=a+"Provider";function d(p,c){let f=c?.[e]?.[s]||l,m=b.useContext(f);if(m)return m;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${a}\``)}return g(d,"useContext2"),[u,d]}g(n,"createContext3");let o=g(()=>{let a=r.map(i=>b.createContext(i));return g(function(i){let l=i?.[e]||a;return b.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])},"useScope")},"createScope");return o.scopeName=e,[n,AE(o,...t)]}g($E,"createContextScope");function AE(...e){let t=e[0];if(e.length===1)return t;let r=g(()=>{let n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return g(function(o){let a=n.reduce((i,{useScope:l,scopeName:s})=>{let u=l(o)[`__scope${s}`];return{...i,...u}},{});return b.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])},"useComposedScopes")},"createScope");return r.scopeName=t.scopeName,r}g(AE,"composeContextScopes");var Zo=globalThis?.document?b.useLayoutEffect:()=>{},GF=nh[" useId ".trim().toString()]||(()=>{}),YF=0;function Va(e){let[t,r]=b.useState(GF());return Zo(()=>{e||r(n=>n??String(YF++))},[e]),e||(t?`radix-${t}`:"")}g(Va,"useId");var KF=nh[" useInsertionEffect ".trim().toString()]||Zo;function DE({prop:e,defaultProp:t,onChange:r=g(()=>{},"onChange"),caller:n}){let[o,a,i]=kE({defaultProp:t,onChange:r}),l=e!==void 0,s=l?e:o;{let d=b.useRef(e!==void 0);b.useEffect(()=>{let p=d.current;p!==l&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=l},[l,n])}let u=b.useCallback(d=>{if(l){let p=OE(d)?d(e):d;p!==e&&i.current?.(p)}else a(d)},[l,e,a,i]);return[s,u]}g(DE,"useControllableState");function kE({defaultProp:e,onChange:t}){let[r,n]=b.useState(e),o=b.useRef(r),a=b.useRef(t);return KF(()=>{a.current=t},[t]),b.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}g(kE,"useUncontrolledState");function OE(e){return typeof e=="function"}g(OE,"isFunction");function qa(e,t,{checkForDefaultPrevented:r=!0}={}){return g(function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)},"handleEvent")}g(qa,"composeEventHandlers");function FE(e){let t=_E(e),r=b.forwardRef((n,o)=>{let{children:a,...i}=n,l=b.Children.toArray(a),s=l.find(TE);if(s){let u=s.props.children,d=l.map(p=>p===s?b.Children.count(u)>1?b.Children.only(null):b.isValidElement(u)?u.props.children:null:p);return V.jsx(t,{...i,ref:o,children:b.isValidElement(u)?b.cloneElement(u,void 0,d):null})}return V.jsx(t,{...i,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}g(FE,"createSlot");function _E(e){let t=b.forwardRef((r,n)=>{let{children:o,...a}=r;if(b.isValidElement(o)){let i=PE(o),l=RE(a,o.props);return o.type!==b.Fragment&&(l.ref=n?ca(n,i):i),b.cloneElement(o,l)}return b.Children.count(o)>1?b.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}g(_E,"createSlotClone");var XF=Symbol("radix.slottable");function TE(e){return b.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===XF}g(TE,"isSlottable");function RE(e,t){let r={...t};for(let n in t){let o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...i)=>{a(...i),o(...i)}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}g(RE,"mergeProps");function PE(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}g(PE,"getElementRef");var ZF=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],dr=ZF.reduce((e,t)=>{let r=FE(`Primitive.${t}`),n=b.forwardRef((o,a)=>{let{asChild:i,...l}=o,s=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),V.jsx(s,{...l,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function IE(e,t){e&&el.flushSync(()=>e.dispatchEvent(t))}g(IE,"dispatchDiscreteCustomEvent");function eo(e){let t=b.useRef(e);return b.useEffect(()=>{t.current=e}),b.useMemo(()=>(...r)=>t.current?.(...r),[])}g(eo,"useCallbackRef");function LE(e,t=globalThis?.document){let r=eo(e);b.useEffect(()=>{let n=g(o=>{o.key==="Escape"&&r(o)},"handleKeyDown");return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}g(LE,"useEscapeKeydown");var JF="DismissableLayer",zu="dismissableLayer.update",QF="dismissableLayer.pointerDownOutside",e_="dismissableLayer.focusOutside",lm,BE=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),NE=b.forwardRef((e,t)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:l,...s}=e,u=b.useContext(BE),[d,p]=b.useState(null),c=d?.ownerDocument??globalThis?.document,[,f]=b.useState({}),m=Fr(t,S=>p(S)),y=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=y.indexOf(x),C=d?y.indexOf(d):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,E=C>=v,$=jE(S=>{let D=S.target,F=[...u.branches].some(k=>k.contains(D));!E||F||(o?.(S),i?.(S),S.defaultPrevented||l?.())},c),A=ME(S=>{let D=S.target;[...u.branches].some(F=>F.contains(D))||(a?.(S),i?.(S),S.defaultPrevented||l?.())},c);return LE(S=>{C===u.layers.size-1&&(n?.(S),!S.defaultPrevented&&l&&(S.preventDefault(),l()))},c),b.useEffect(()=>{if(d)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(lm=c.body.style.pointerEvents,c.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Hu(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(c.body.style.pointerEvents=lm)}},[d,c,r,u]),b.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Hu())},[d,u]),b.useEffect(()=>{let S=g(()=>f({}),"handleUpdate");return document.addEventListener(zu,S),()=>document.removeEventListener(zu,S)},[]),V.jsx(dr.div,{...s,ref:m,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:qa(e.onFocusCapture,A.onFocusCapture),onBlurCapture:qa(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:qa(e.onPointerDownCapture,$.onPointerDownCapture)})});NE.displayName=JF;var t_="DismissableLayerBranch",r_=b.forwardRef((e,t)=>{let r=b.useContext(BE),n=b.useRef(null),o=Fr(t,n);return b.useEffect(()=>{let a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),V.jsx(dr.div,{...e,ref:o})});r_.displayName=t_;function jE(e,t=globalThis?.document){let r=eo(e),n=b.useRef(!1),o=b.useRef(()=>{});return b.useEffect(()=>{let a=g(l=>{if(l.target&&!n.current){let s=g(function(){Ud(QF,r,u,{discrete:!0})},"handleAndDispatchPointerDownOutsideEvent2"),u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=s,t.addEventListener("click",o.current,{once:!0})):s()}else t.removeEventListener("click",o.current);n.current=!1},"handlePointerDown"),i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:g(()=>n.current=!0,"onPointerDownCapture")}}g(jE,"usePointerDownOutside");function ME(e,t=globalThis?.document){let r=eo(e),n=b.useRef(!1);return b.useEffect(()=>{let o=g(a=>{a.target&&!n.current&&Ud(e_,r,{originalEvent:a},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:g(()=>n.current=!0,"onFocusCapture"),onBlurCapture:g(()=>n.current=!1,"onBlurCapture")}}g(ME,"useFocusOutside");function Hu(){let e=new CustomEvent(zu);document.dispatchEvent(e)}g(Hu,"dispatchUpdate");function Ud(e,t,r,{discrete:n}){let o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?IE(o,a):o.dispatchEvent(a)}g(Ud,"handleAndDispatchCustomEvent");var ds="focusScope.autoFocusOnMount",ps="focusScope.autoFocusOnUnmount",sm={bubbles:!1,cancelable:!0},n_="FocusScope",zE=b.forwardRef((e,t)=>{let{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[l,s]=b.useState(null),u=eo(o),d=eo(a),p=b.useRef(null),c=Fr(t,y=>s(y)),f=b.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;b.useEffect(()=>{if(n){let y=g(function(w){if(f.paused||!l)return;let E=w.target;l.contains(E)?p.current=E:Jt(p.current,{select:!0})},"handleFocusIn2"),x=g(function(w){if(f.paused||!l)return;let E=w.relatedTarget;E!==null&&(l.contains(E)||Jt(p.current,{select:!0}))},"handleFocusOut2"),v=g(function(w){if(document.activeElement===document.body)for(let E of w)E.removedNodes.length>0&&Jt(l)},"handleMutations2");document.addEventListener("focusin",y),document.addEventListener("focusout",x);let C=new MutationObserver(v);return l&&C.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",x),C.disconnect()}}},[n,l,f.paused]),b.useEffect(()=>{if(l){um.add(f);let y=document.activeElement;if(!l.contains(y)){let x=new CustomEvent(ds,sm);l.addEventListener(ds,u),l.dispatchEvent(x),x.defaultPrevented||(HE(GE(Wd(l)),{select:!0}),document.activeElement===y&&Jt(l))}return()=>{l.removeEventListener(ds,u),setTimeout(()=>{let x=new CustomEvent(ps,sm);l.addEventListener(ps,d),l.dispatchEvent(x),x.defaultPrevented||Jt(y??document.body,{select:!0}),l.removeEventListener(ps,d),um.remove(f)},0)}}},[l,u,d,f]);let m=b.useCallback(y=>{if(!r&&!n||f.paused)return;let x=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,v=document.activeElement;if(x&&v){let C=y.currentTarget,[w,E]=UE(C);w&&E?!y.shiftKey&&v===E?(y.preventDefault(),r&&Jt(w,{select:!0})):y.shiftKey&&v===w&&(y.preventDefault(),r&&Jt(E,{select:!0})):v===C&&y.preventDefault()}},[r,n,f.paused]);return V.jsx(dr.div,{tabIndex:-1,...i,ref:c,onKeyDown:m})});zE.displayName=n_;function HE(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(Jt(n,{select:t}),document.activeElement!==r)return}g(HE,"focusFirst");function UE(e){let t=Wd(e),r=Uu(t,e),n=Uu(t.reverse(),e);return[r,n]}g(UE,"getTabbableEdges");function Wd(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:g(n=>{let o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;r.nextNode();)t.push(r.currentNode);return t}g(Wd,"getTabbableCandidates");function Uu(e,t){for(let r of e)if(!WE(r,{upTo:t}))return r}g(Uu,"findVisible");function WE(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}g(WE,"isHidden");function VE(e){return e instanceof HTMLInputElement&&"select"in e}g(VE,"isSelectableInput");function Jt(e,{select:t=!1}={}){if(e&&e.focus){let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&VE(e)&&t&&e.select()}}g(Jt,"focus");var um=qE();function qE(){let e=[];return{add(t){let r=e[0];t!==r&&r?.pause(),e=Wu(e,t),e.unshift(t)},remove(t){e=Wu(e,t),e[0]?.resume()}}}g(qE,"createFocusScopesStack");function Wu(e,t){let r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}g(Wu,"arrayRemove");function GE(e){return e.filter(t=>t.tagName!=="A")}g(GE,"removeLinks");var o_="Portal",YE=b.forwardRef((e,t)=>{let{container:r,...n}=e,[o,a]=b.useState(!1);Zo(()=>a(!0),[]);let i=r||o&&globalThis?.document?.body;return i?v1.createPortal(V.jsx(dr.div,{...n,ref:t}),i):null});YE.displayName=o_;function KE(e,t){return b.useReducer((r,n)=>t[r][n]??r,e)}g(KE,"useStateMachine");var yl=g(e=>{let{present:t,children:r}=e,n=XE(t),o=typeof r=="function"?r({present:n.isPresent}):b.Children.only(r),a=Fr(n.ref,ZE(o));return typeof r=="function"||n.isPresent?b.cloneElement(o,{ref:a}):null},"Presence");yl.displayName="Presence";function XE(e){let[t,r]=b.useState(),n=b.useRef(null),o=b.useRef(e),a=b.useRef("none"),i=e?"mounted":"unmounted",[l,s]=KE(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{let u=Ro(n.current);a.current=l==="mounted"?u:"none"},[l]),Zo(()=>{let u=n.current,d=o.current;if(d!==e){let p=a.current,c=Ro(u);e?s("MOUNT"):c==="none"||u?.display==="none"?s("UNMOUNT"):s(d&&p!==c?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,s]),Zo(()=>{if(t){let u,d=t.ownerDocument.defaultView??window,p=g(f=>{let m=Ro(n.current).includes(f.animationName);if(f.target===t&&m&&(s("ANIMATION_END"),!o.current)){let y=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},"handleAnimationEnd"),c=g(f=>{f.target===t&&(a.current=Ro(n.current))},"handleAnimationStart");return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:b.useCallback(u=>{n.current=u?getComputedStyle(u):null,r(u)},[])}}g(XE,"usePresence");function Ro(e){return e?.animationName||"none"}g(Ro,"getAnimationName");function ZE(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}g(ZE,"getElementRef");var fs=0;function JE(){b.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Vu()),document.body.insertAdjacentElement("beforeend",e[1]??Vu()),fs++,()=>{fs===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),fs--}},[])}g(JE,"useFocusGuards");function Vu(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}g(Vu,"createFocusGuard");var zt=g(function(){return zt=Object.assign||g(function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},"__assign"),zt.apply(this,arguments)},"__assign");function Vd(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}g(Vd,"__rest");function QE(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}g(QE,"__spreadArray");var Ga="right-scroll-bar-position",Ya="width-before-scroll-bar",a_="with-scroll-bars-hidden",i_="--removed-body-scroll-bar-size";function Ka(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}g(Ka,"assignRef");function ew(e,t){var r=b.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}g(ew,"useCallbackRef");var l_=typeof window<"u"?b.useLayoutEffect:b.useEffect,cm=new WeakMap;function tw(e,t){var r=ew(t||null,function(n){return e.forEach(function(o){return Ka(o,n)})});return l_(function(){var n=cm.get(r);if(n){var o=new Set(n),a=new Set(e),i=r.current;o.forEach(function(l){a.has(l)||Ka(l,null)}),a.forEach(function(l){o.has(l)||Ka(l,i)})}cm.set(r,e)},[e]),r}g(tw,"useMergeRefs");function rw(e){return e}g(rw,"ItoI");function nw(e,t){t===void 0&&(t=rw);var r=[],n=!1,o={read:g(function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},"read"),useMedium:g(function(a){var i=t(a,n);return r.push(i),function(){r=r.filter(function(l){return l!==i})}},"useMedium"),assignSyncMedium:g(function(a){for(n=!0;r.length;){var i=r;r=[],i.forEach(a)}r={push:g(function(l){return a(l)},"push"),filter:g(function(){return r},"filter")}},"assignSyncMedium"),assignMedium:g(function(a){n=!0;var i=[];if(r.length){var l=r;r=[],l.forEach(a),i=r}var s=g(function(){var d=i;i=[],d.forEach(a)},"executeQueue"),u=g(function(){return Promise.resolve().then(s)},"cycle");u(),r={push:g(function(d){i.push(d),u()},"push"),filter:g(function(d){return i=i.filter(d),r},"filter")}},"assignMedium")};return o}g(nw,"innerCreateMedium");function ow(e){e===void 0&&(e={});var t=nw(null);return t.options=zt({async:!0,ssr:!1},e),t}g(ow,"createSidecarMedium");var aw=g(function(e){var t=e.sideCar,r=Vd(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return b.createElement(n,zt({},r))},"SideCar");aw.isSideCarExport=!0;function iw(e,t){return e.useMedium(t),aw}g(iw,"exportSidecar");var lw=ow(),gs=g(function(){},"nothing"),bl=b.forwardRef(function(e,t){var r=b.useRef(null),n=b.useState({onScrollCapture:gs,onWheelCapture:gs,onTouchMoveCapture:gs}),o=n[0],a=n[1],i=e.forwardProps,l=e.children,s=e.className,u=e.removeScrollBar,d=e.enabled,p=e.shards,c=e.sideCar,f=e.noIsolation,m=e.inert,y=e.allowPinchZoom,x=e.as,v=x===void 0?"div":x,C=e.gapMode,w=Vd(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=c,$=tw([r,t]),A=zt(zt({},w),o);return b.createElement(b.Fragment,null,d&&b.createElement(E,{sideCar:lw,removeScrollBar:u,shards:p,noIsolation:f,inert:m,setCallbacks:a,allowPinchZoom:!!y,lockRef:r,gapMode:C}),i?b.cloneElement(b.Children.only(l),zt(zt({},A),{ref:$})):b.createElement(v,zt({},A,{className:s,ref:$}),l))});bl.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};bl.classNames={fullWidth:Ya,zeroRight:Ga};var s_=g(function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__},"getNonce");function sw(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=s_();return t&&e.setAttribute("nonce",t),e}g(sw,"makeStyleTag");function uw(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}g(uw,"injectStyles");function cw(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}g(cw,"insertStyleTag");var u_=g(function(){var e=0,t=null;return{add:g(function(r){e==0&&(t=sw())&&(uw(t,r),cw(t)),e++},"add"),remove:g(function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)},"remove")}},"stylesheetSingleton"),c_=g(function(){var e=u_();return function(t,r){b.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},"styleHookSingleton"),dw=g(function(){var e=c_(),t=g(function(r){var n=r.styles,o=r.dynamic;return e(n,o),null},"Sheet");return t},"styleSingleton"),d_={left:0,top:0,right:0,gap:0},ms=g(function(e){return parseInt(e||"",10)||0},"parse"),p_=g(function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[ms(r),ms(n),ms(o)]},"getOffset"),f_=g(function(e){if(e===void 0&&(e="margin"),typeof window>"u")return d_;var t=p_(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},"getGapWidth"),g_=dw(),Pn="data-scroll-locked",m_=g(function(e,t,r,n){var o=e.left,a=e.top,i=e.right,l=e.gap;return r===void 0&&(r="margin"),`
960
+ .`.concat(a_,` {
961
+ overflow: hidden `).concat(n,`;
962
+ padding-right: `).concat(l,"px ").concat(n,`;
963
+ }
964
+ body[`).concat(Pn,`] {
965
+ overflow: hidden `).concat(n,`;
966
+ overscroll-behavior: contain;
967
+ `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
968
+ padding-left: `.concat(o,`px;
969
+ padding-top: `).concat(a,`px;
970
+ padding-right: `).concat(i,`px;
971
+ margin-left:0;
972
+ margin-top:0;
973
+ margin-right: `).concat(l,"px ").concat(n,`;
974
+ `),r==="padding"&&"padding-right: ".concat(l,"px ").concat(n,";")].filter(Boolean).join(""),`
975
+ }
976
+
977
+ .`).concat(Ga,` {
978
+ right: `).concat(l,"px ").concat(n,`;
979
+ }
980
+
981
+ .`).concat(Ya,` {
982
+ margin-right: `).concat(l,"px ").concat(n,`;
983
+ }
984
+
985
+ .`).concat(Ga," .").concat(Ga,` {
986
+ right: 0 `).concat(n,`;
987
+ }
988
+
989
+ .`).concat(Ya," .").concat(Ya,` {
990
+ margin-right: 0 `).concat(n,`;
991
+ }
992
+
993
+ body[`).concat(Pn,`] {
994
+ `).concat(i_,": ").concat(l,`px;
995
+ }
996
+ `)},"getStyles"),dm=g(function(){var e=parseInt(document.body.getAttribute(Pn)||"0",10);return isFinite(e)?e:0},"getCurrentUseCounter"),h_=g(function(){b.useEffect(function(){return document.body.setAttribute(Pn,(dm()+1).toString()),function(){var e=dm()-1;e<=0?document.body.removeAttribute(Pn):document.body.setAttribute(Pn,e.toString())}},[])},"useLockAttribute"),y_=g(function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;h_();var a=b.useMemo(function(){return f_(o)},[o]);return b.createElement(g_,{styles:m_(a,!t,o,r?"":"!important")})},"RemoveScrollBar"),qu=!1;if(typeof window<"u")try{So=Object.defineProperty({},"passive",{get:g(function(){return qu=!0,!0},"get")}),window.addEventListener("test",So,So),window.removeEventListener("test",So,So)}catch{qu=!1}var So,gn=qu?{passive:!1}:!1,b_=g(function(e){return e.tagName==="TEXTAREA"},"alwaysContainsScroll"),pw=g(function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!b_(e)&&r[t]==="visible")},"elementCanBeScrolled"),v_=g(function(e){return pw(e,"overflowY")},"elementCouldBeVScrolled"),x_=g(function(e){return pw(e,"overflowX")},"elementCouldBeHScrolled"),pm=g(function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=fw(e,n);if(o){var a=gw(e,n),i=a[1],l=a[2];if(i>l)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},"locationCouldBeScrolled"),E_=g(function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},"getVScrollVariables"),w_=g(function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},"getHScrollVariables"),fw=g(function(e,t){return e==="v"?v_(t):x_(t)},"elementCouldBeScrolled"),gw=g(function(e,t){return e==="v"?E_(t):w_(t)},"getScrollVariables"),S_=g(function(e,t){return e==="h"&&t==="rtl"?-1:1},"getDirectionFactor"),C_=g(function(e,t,r,n,o){var a=S_(e,window.getComputedStyle(t).direction),i=a*n,l=r.target,s=t.contains(l),u=!1,d=i>0,p=0,c=0;do{var f=gw(e,l),m=f[0],y=f[1],x=f[2],v=y-x-a*m;(m||v)&&fw(e,l)&&(p+=v,c+=m),l instanceof ShadowRoot?l=l.host:l=l.parentNode}while(!s&&l!==document.body||s&&(t.contains(l)||t===l));return(d&&(o&&Math.abs(p)<1||!o&&i>p)||!d&&(o&&Math.abs(c)<1||!o&&-i>c))&&(u=!0),u},"handleScroll"),Da=g(function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},"getTouchXY"),fm=g(function(e){return[e.deltaX,e.deltaY]},"getDeltaXY"),gm=g(function(e){return e&&"current"in e?e.current:e},"extractRef"),$_=g(function(e,t){return e[0]===t[0]&&e[1]===t[1]},"deltaCompare"),A_=g(function(e){return`
997
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
998
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
999
+ `)},"generateStyle"),D_=0,mn=[];function mw(e){var t=b.useRef([]),r=b.useRef([0,0]),n=b.useRef(),o=b.useState(D_++)[0],a=b.useState(dw)[0],i=b.useRef(e);b.useEffect(function(){i.current=e},[e]),b.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var y=QE([e.lockRef.current],(e.shards||[]).map(gm),!0).filter(Boolean);return y.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),y.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=b.useCallback(function(y,x){if("touches"in y&&y.touches.length===2||y.type==="wheel"&&y.ctrlKey)return!i.current.allowPinchZoom;var v=Da(y),C=r.current,w="deltaX"in y?y.deltaX:C[0]-v[0],E="deltaY"in y?y.deltaY:C[1]-v[1],$,A=y.target,S=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in y&&S==="h"&&A.type==="range")return!1;var D=pm(S,A);if(!D)return!0;if(D?$=S:($=S==="v"?"h":"v",D=pm(S,A)),!D)return!1;if(!n.current&&"changedTouches"in y&&(w||E)&&(n.current=$),!$)return!0;var F=n.current||$;return C_(F,x,y,F==="h"?w:E,!0)},[]),s=b.useCallback(function(y){var x=y;if(!(!mn.length||mn[mn.length-1]!==a)){var v="deltaY"in x?fm(x):Da(x),C=t.current.filter(function($){return $.name===x.type&&($.target===x.target||x.target===$.shadowParent)&&$_($.delta,v)})[0];if(C&&C.should){x.cancelable&&x.preventDefault();return}if(!C){var w=(i.current.shards||[]).map(gm).filter(Boolean).filter(function($){return $.contains(x.target)}),E=w.length>0?l(x,w[0]):!i.current.noIsolation;E&&x.cancelable&&x.preventDefault()}}},[]),u=b.useCallback(function(y,x,v,C){var w={name:y,delta:x,target:v,should:C,shadowParent:hw(v)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),d=b.useCallback(function(y){r.current=Da(y),n.current=void 0},[]),p=b.useCallback(function(y){u(y.type,fm(y),y.target,l(y,e.lockRef.current))},[]),c=b.useCallback(function(y){u(y.type,Da(y),y.target,l(y,e.lockRef.current))},[]);b.useEffect(function(){return mn.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:c}),document.addEventListener("wheel",s,gn),document.addEventListener("touchmove",s,gn),document.addEventListener("touchstart",d,gn),function(){mn=mn.filter(function(y){return y!==a}),document.removeEventListener("wheel",s,gn),document.removeEventListener("touchmove",s,gn),document.removeEventListener("touchstart",d,gn)}},[]);var f=e.removeScrollBar,m=e.inert;return b.createElement(b.Fragment,null,m?b.createElement(a,{styles:A_(o)}):null,f?b.createElement(y_,{gapMode:e.gapMode}):null)}g(mw,"RemoveScrollSideCar");function hw(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}g(hw,"getOutermostShadowParent");var k_=iw(lw,mw),yw=b.forwardRef(function(e,t){return b.createElement(bl,zt({},e,{ref:t,sideCar:k_}))});yw.classNames=bl.classNames;var O_=yw,F_=g(function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},"getDefaultParent"),hn=new WeakMap,ka=new WeakMap,Oa={},hs=0,bw=g(function(e){return e&&(e.host||bw(e.parentNode))},"unwrapHost"),__=g(function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=bw(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},"correctTargets"),T_=g(function(e,t,r,n){var o=__(t,Array.isArray(e)?e:[e]);Oa[r]||(Oa[r]=new WeakMap);var a=Oa[r],i=[],l=new Set,s=new Set(o),u=g(function(p){!p||l.has(p)||(l.add(p),u(p.parentNode))},"keep");o.forEach(u);var d=g(function(p){!p||s.has(p)||Array.prototype.forEach.call(p.children,function(c){if(l.has(c))d(c);else try{var f=c.getAttribute(n),m=f!==null&&f!=="false",y=(hn.get(c)||0)+1,x=(a.get(c)||0)+1;hn.set(c,y),a.set(c,x),i.push(c),y===1&&m&&ka.set(c,!0),x===1&&c.setAttribute(r,"true"),m||c.setAttribute(n,"true")}catch(v){console.error("aria-hidden: cannot operate on ",c,v)}})},"deep");return d(t),l.clear(),hs++,function(){i.forEach(function(p){var c=hn.get(p)-1,f=a.get(p)-1;hn.set(p,c),a.set(p,f),c||(ka.has(p)||p.removeAttribute(n),ka.delete(p)),f||p.removeAttribute(r)}),hs--,hs||(hn=new WeakMap,hn=new WeakMap,ka=new WeakMap,Oa={})}},"applyAttributeToOthers"),R_=g(function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=t||F_(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live]"))),T_(n,o,r,"aria-hidden")):function(){return null}},"hideOthers");function vw(e){let t=xw(e),r=b.forwardRef((n,o)=>{let{children:a,...i}=n,l=b.Children.toArray(a),s=l.find(Ew);if(s){let u=s.props.children,d=l.map(p=>p===s?b.Children.count(u)>1?b.Children.only(null):b.isValidElement(u)?u.props.children:null:p);return V.jsx(t,{...i,ref:o,children:b.isValidElement(u)?b.cloneElement(u,void 0,d):null})}return V.jsx(t,{...i,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}g(vw,"createSlot");function xw(e){let t=b.forwardRef((r,n)=>{let{children:o,...a}=r;if(b.isValidElement(o)){let i=Sw(o),l=ww(a,o.props);return o.type!==b.Fragment&&(l.ref=n?ca(n,i):i),b.cloneElement(o,l)}return b.Children.count(o)>1?b.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}g(xw,"createSlotClone");var P_=Symbol("radix.slottable");function Ew(e){return b.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===P_}g(Ew,"isSlottable");function ww(e,t){let r={...t};for(let n in t){let o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...i)=>{a(...i),o(...i)}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}g(ww,"mergeProps");function Sw(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}g(Sw,"getElementRef");var vl="Dialog",[Cw,I_]=$E(vl),[L_,Tt]=Cw(vl),qd=g(e=>{let{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,l=b.useRef(null),s=b.useRef(null),[u,d]=DE({prop:n,defaultProp:o??!1,onChange:a,caller:vl});return V.jsx(L_,{scope:t,triggerRef:l,contentRef:s,contentId:Va(),titleId:Va(),descriptionId:Va(),open:u,onOpenChange:d,onOpenToggle:b.useCallback(()=>d(p=>!p),[d]),modal:i,children:r})},"Dialog");qd.displayName=vl;var $w="DialogTrigger",Gd=b.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=Tt($w,r),a=Fr(t,o.triggerRef);return V.jsx(dr.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":xl(o.open),...n,ref:a,onClick:Rn(e.onClick,o.onOpenToggle)})});Gd.displayName=$w;var Yd="DialogPortal",[B_,Aw]=Cw(Yd,{forceMount:void 0}),Kd=g(e=>{let{__scopeDialog:t,forceMount:r,children:n,container:o}=e,a=Tt(Yd,t);return V.jsx(B_,{scope:t,forceMount:r,children:b.Children.map(n,i=>V.jsx(yl,{present:r||a.open,children:V.jsx(YE,{asChild:!0,container:o,children:i})}))})},"DialogPortal");Kd.displayName=Yd;var Di="DialogOverlay",Xd=b.forwardRef((e,t)=>{let r=Aw(Di,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Tt(Di,e.__scopeDialog);return a.modal?V.jsx(yl,{present:n||a.open,children:V.jsx(j_,{...o,ref:t})}):null});Xd.displayName=Di;var N_=vw("DialogOverlay.RemoveScroll"),j_=b.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=Tt(Di,r);return V.jsx(O_,{as:N_,allowPinchZoom:!0,shards:[o.contentRef],children:V.jsx(dr.div,{"data-state":xl(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),on="DialogContent",Zd=b.forwardRef((e,t)=>{let r=Aw(on,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Tt(on,e.__scopeDialog);return V.jsx(yl,{present:n||a.open,children:a.modal?V.jsx(M_,{...o,ref:t}):V.jsx(z_,{...o,ref:t})})});Zd.displayName=on;var M_=b.forwardRef((e,t)=>{let r=Tt(on,e.__scopeDialog),n=b.useRef(null),o=Fr(t,r.contentRef,n);return b.useEffect(()=>{let a=n.current;if(a)return R_(a)},[]),V.jsx(Dw,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Rn(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:Rn(e.onPointerDownOutside,a=>{let i=a.detail.originalEvent,l=i.button===0&&i.ctrlKey===!0;(i.button===2||l)&&a.preventDefault()}),onFocusOutside:Rn(e.onFocusOutside,a=>a.preventDefault())})}),z_=b.forwardRef((e,t)=>{let r=Tt(on,e.__scopeDialog),n=b.useRef(!1),o=b.useRef(!1);return V.jsx(Dw,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:g(a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},"onCloseAutoFocus"),onInteractOutside:g(a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));let i=a.target;r.triggerRef.current?.contains(i)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()},"onInteractOutside")})}),Dw=b.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,l=Tt(on,r),s=b.useRef(null),u=Fr(t,s);return JE(),V.jsxs(V.Fragment,{children:[V.jsx(zE,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:V.jsx(NE,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":xl(l.open),...i,ref:u,onDismiss:g(()=>l.onOpenChange(!1),"onDismiss")})}),V.jsxs(V.Fragment,{children:[V.jsx(U_,{titleId:l.titleId}),V.jsx(V_,{contentRef:s,descriptionId:l.descriptionId})]})]})}),Jd="DialogTitle",Qd=b.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=Tt(Jd,r);return V.jsx(dr.h2,{id:o.titleId,...n,ref:t})});Qd.displayName=Jd;var kw="DialogDescription",ep=b.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=Tt(kw,r);return V.jsx(dr.p,{id:o.descriptionId,...n,ref:t})});ep.displayName=kw;var Ow="DialogClose",tp=b.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=Tt(Ow,r);return V.jsx(dr.button,{type:"button",...n,ref:t,onClick:Rn(e.onClick,()=>o.onOpenChange(!1))})});tp.displayName=Ow;function xl(e){return e?"open":"closed"}g(xl,"getState");var Fw="DialogTitleWarning",[H_,_w]=CE(Fw,{contentName:on,titleName:Jd,docsSlug:"dialog"}),U_=g(({titleId:e})=>{let t=_w(Fw),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
1000
+
1001
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
1002
+
1003
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return b.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},"TitleWarning"),W_="DialogDescriptionWarning",V_=g(({contentRef:e,descriptionId:t})=>{let r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${_w(W_).contentName}}.`;return b.useEffect(()=>{let n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},"DescriptionWarning"),Tw=qd,q_=Gd,Rw=Kd,Pw=Xd,Iw=Zd,Lw=Qd,Bw=ep,Nw=tp,jw={};na(jw,{Actions:()=>r4,CloseButton:()=>Yw,Col:()=>Xw,Container:()=>Gw,Content:()=>J_,Description:()=>t4,Error:()=>n4,ErrorWrapper:()=>Zw,Header:()=>Q_,Overlay:()=>qw,Row:()=>Kw,Title:()=>e4});function Mw(e){let t=zw(e),r=b.forwardRef((n,o)=>{let{children:a,...i}=n,l=b.Children.toArray(a),s=l.find(Hw);if(s){let u=s.props.children,d=l.map(p=>p===s?b.Children.count(u)>1?b.Children.only(null):b.isValidElement(u)?u.props.children:null:p);return V.jsx(t,{...i,ref:o,children:b.isValidElement(u)?b.cloneElement(u,void 0,d):null})}return V.jsx(t,{...i,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}g(Mw,"createSlot");var G_=Mw("Slot");function zw(e){let t=b.forwardRef((r,n)=>{let{children:o,...a}=r;if(b.isValidElement(o)){let i=Ww(o),l=Uw(a,o.props);return o.type!==b.Fragment&&(l.ref=n?ca(n,i):i),b.cloneElement(o,l)}return b.Children.count(o)>1?b.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}g(zw,"createSlotClone");var Y_=Symbol("radix.slottable");function Hw(e){return b.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Y_}g(Hw,"isSlottable");function Uw(e,t){let r={...t};for(let n in t){let o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...i)=>{let l=a(...i);return o(...i),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}g(Uw,"mergeProps");function Ww(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}g(Ww,"getElementRef");var _r=b.forwardRef(({asChild:e=!1,animation:t="none",size:r="small",variant:n="outline",padding:o="medium",disabled:a=!1,active:i=!1,onClick:l,...s},u)=>{let d="button";e&&(d=G_);let[p,c]=b.useState(!1),f=g(m=>{l&&l(m),t!=="none"&&c(!0)},"handleClick");return b.useEffect(()=>{let m=setTimeout(()=>{p&&c(!1)},1e3);return()=>clearTimeout(m)},[p]),h.createElement(K_,{as:d,ref:u,variant:n,size:r,padding:o,disabled:a,active:i,animating:p,animation:t,onClick:f,...s})});_r.displayName="Button";var K_=T("button",{shouldForwardProp:g(e=>nd(e),"shouldForwardProp")})(({theme:e,variant:t,size:r,disabled:n,active:o,animating:a,animation:i="none",padding:l})=>({border:0,cursor:n?"not-allowed":"pointer",display:"inline-flex",gap:"6px",alignItems:"center",justifyContent:"center",overflow:"hidden",padding:l==="none"?0:l==="small"&&r==="small"?"0 7px":l==="small"&&r==="medium"?"0 9px":r==="small"?"0 10px":r==="medium"?"0 12px":0,height:r==="small"?"28px":"32px",position:"relative",textAlign:"center",textDecoration:"none",transitionProperty:"background, box-shadow",transitionDuration:"150ms",transitionTimingFunction:"ease-out",verticalAlign:"top",whiteSpace:"nowrap",userSelect:"none",opacity:n?.5:1,margin:0,fontSize:`${e.typography.size.s1}px`,fontWeight:e.typography.weight.bold,lineHeight:"1",background:t==="solid"?e.color.secondary:t==="outline"?e.button.background:t==="ghost"&&o?e.background.hoverable:"transparent",...t==="ghost"?{".sb-bar &":{background:o?pt(.9,e.barTextColor):"transparent",color:o?e.barSelectedColor:e.barTextColor,"&:hover":{color:e.barHoverColor,background:pt(.86,e.barHoverColor)},"&:active":{color:e.barSelectedColor,background:pt(.9,e.barSelectedColor)},"&:focus":{boxShadow:`${nn(e.barHoverColor,1)} 0 0 0 1px inset`,outline:"none"}}}:{},color:t==="solid"?e.color.lightest:t==="outline"?e.input.color:t==="ghost"&&o?e.color.secondary:t==="ghost"?e.color.mediumdark:e.input.color,boxShadow:t==="outline"?`${e.button.border} 0 0 0 1px inset`:"none",borderRadius:e.input.borderRadius,flexShrink:0,"&:hover":{color:t==="ghost"?e.color.secondary:void 0,background:(()=>{let s=e.color.secondary;return t==="solid"&&(s=e.color.secondary),t==="outline"&&(s=e.button.background),t==="ghost"?pt(.86,e.color.secondary):e.base==="light"?kn(.02,s):im(.03,s)})()},"&:active":{color:t==="ghost"?e.color.secondary:void 0,background:(()=>{let s=e.color.secondary;return t==="solid"&&(s=e.color.secondary),t==="outline"&&(s=e.button.background),t==="ghost"?e.background.hoverable:e.base==="light"?kn(.02,s):im(.03,s)})()},"&:focus":{boxShadow:`${nn(e.color.secondary,1)} 0 0 0 1px inset`,outline:"none"},"> svg":{animation:a&&i!=="none"?`${e.animation[i]} 1000ms ease-out`:""}})),$r=b.forwardRef(({padding:e="small",variant:t="ghost",...r},n)=>h.createElement(_r,{padding:e,variant:t,ref:n,...r}));$r.displayName="IconButton";var Vw=_t({from:{opacity:0},to:{opacity:1}}),X_=_t({from:{maxHeight:0},to:{}}),Z_=_t({from:{opacity:0,transform:"translate(-50%, -50%) scale(0.9)"},to:{opacity:1,transform:"translate(-50%, -50%) scale(1)"}}),qw=T.div({backdropFilter:"blur(24px)",position:"fixed",inset:0,width:"100%",height:"100%",zIndex:10,animation:`${Vw} 200ms`}),Gw=T.div(({theme:e,width:t,height:r})=>({backgroundColor:e.background.bar,borderRadius:6,boxShadow:"0px 4px 67px 0px #00000040",position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:t??740,height:r??"auto",maxWidth:"calc(100% - 40px)",maxHeight:"85vh",overflow:"auto",zIndex:11,animation:`${Z_} 200ms`,"&:focus-visible":{outline:"none"}})),Yw=g(e=>h.createElement(Nw,{asChild:!0},h.createElement($r,{"aria-label":"Close",...e},h.createElement(BF,null))),"CloseButton"),J_=T.div({display:"flex",flexDirection:"column",margin:16,gap:16}),Kw=T.div({display:"flex",justifyContent:"space-between",gap:16}),Xw=T.div({display:"flex",flexDirection:"column",gap:4}),Q_=g(e=>h.createElement(Kw,null,h.createElement(Xw,{...e}),h.createElement(Yw,null)),"Header"),e4=T(Lw)(({theme:e})=>({margin:0,fontSize:e.typography.size.s3,fontWeight:e.typography.weight.bold})),t4=T(Bw)(({theme:e})=>({position:"relative",zIndex:1,margin:0,fontSize:e.typography.size.s2})),r4=T.div({display:"flex",flexDirection:"row-reverse",gap:8}),Zw=T.div(({theme:e})=>({maxHeight:100,overflow:"auto",animation:`${X_} 300ms, ${Vw} 300ms`,backgroundColor:e.background.critical,color:e.color.lightest,fontSize:e.typography.size.s2,"& > div":{position:"relative",padding:"8px 16px"}})),n4=g(({children:e,...t})=>h.createElement(Zw,{...t},h.createElement("div",null,e)),"Error");function Jw({children:e,width:t,height:r,onEscapeKeyDown:n,onInteractOutside:o=g(u=>u.preventDefault(),"onInteractOutside"),className:a,container:i,portalSelector:l,...s}){let u=i??(l?document.querySelector(l):null)??document.body;return h.createElement(Tw,{...s},h.createElement(Rw,{container:u},h.createElement(Pw,{asChild:!0},h.createElement(qw,null)),h.createElement(Iw,{asChild:!0,onInteractOutside:o,onEscapeKeyDown:n},h.createElement(Gw,{className:a,width:t,height:r},e))))}g(Jw,"BaseModal");var o4=Object.assign(Jw,jw,{Dialog:SE}),a4=g(e=>typeof e=="number"?e:Number(e),"toNumber"),i4=T.div(({theme:e,col:t,row:r=1})=>t?{display:"inline-block",verticalAlign:"inherit","& > *":{marginLeft:t*e.layoutMargin,verticalAlign:"inherit"},[`& > *:first-child${gu}`]:{marginLeft:0}}:{"& > *":{marginTop:r*e.layoutMargin},[`& > *:first-child${gu}`]:{marginTop:0}},({theme:e,outer:t,col:r,row:n})=>{switch(!0){case!!(t&&r):return{marginLeft:t*e.layoutMargin,marginRight:t*e.layoutMargin};case!!(t&&n):return{marginTop:t*e.layoutMargin,marginBottom:t*e.layoutMargin};default:return{}}}),l4=g(({col:e,row:t,outer:r,children:n,...o})=>{let a=a4(typeof r=="number"||!r?r:e||t);return h.createElement(i4,{col:e,row:t,outer:a,...o},n)},"Spaced"),s4=T.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),u4=T.div(),c4=T.div(({theme:e})=>({padding:30,textAlign:"center",color:e.color.defaultText,fontSize:e.typography.size.s2-1})),d4=g(({children:e,...t})=>{let[r,n]=b.Children.toArray(e);return h.createElement(c4,{...t},h.createElement(s4,null,r),n&&h.createElement(u4,null,n))},"Placeholder");bd();function Qw(e,t){var r=b.useRef(null),n=b.useRef(null);n.current=t;var o=b.useRef(null);b.useEffect(function(){a()});var a=b.useCallback(function(){var i=o.current,l=n.current,s=i||(l?l instanceof Element?l:l.current:null);r.current&&r.current.element===s&&r.current.subscriber===e||(r.current&&r.current.cleanup&&r.current.cleanup(),r.current={element:s,subscriber:e,cleanup:s?e(s):void 0})},[e]);return b.useEffect(function(){return function(){r.current&&r.current.cleanup&&(r.current.cleanup(),r.current=null)}},[]),b.useCallback(function(i){o.current=i,a()},[a])}g(Qw,"useResolvedElement");function Gu(e,t,r){return e[t]?e[t][0]?e[t][0][r]:e[t][r]:t==="contentBoxSize"?e.contentRect[r==="inlineSize"?"width":"height"]:void 0}g(Gu,"extractSize");function rp(e){e===void 0&&(e={});var t=e.onResize,r=b.useRef(void 0);r.current=t;var n=e.round||Math.round,o=b.useRef(),a=b.useState({width:void 0,height:void 0}),i=a[0],l=a[1],s=b.useRef(!1);b.useEffect(function(){return s.current=!1,function(){s.current=!0}},[]);var u=b.useRef({width:void 0,height:void 0}),d=Qw(b.useCallback(function(p){return(!o.current||o.current.box!==e.box||o.current.round!==n)&&(o.current={box:e.box,round:n,instance:new ResizeObserver(function(c){var f=c[0],m=e.box==="border-box"?"borderBoxSize":e.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",y=Gu(f,m,"inlineSize"),x=Gu(f,m,"blockSize"),v=y?n(y):void 0,C=x?n(x):void 0;if(u.current.width!==v||u.current.height!==C){var w={width:v,height:C};u.current.width=v,u.current.height=C,r.current?r.current(w):s.current||l(w)}})}),o.current.instance.observe(p,{box:e.box}),function(){o.current&&o.current.instance.unobserve(p)}},[e.box,n]),e.ref);return b.useMemo(function(){return{ref:d,width:i.width,height:i.height}},[d,i.width,i.height])}g(rp,"useResizeObserver");var p4=T.div(({centered:e=!1,scale:t=1,elementHeight:r})=>({height:r||"auto",transformOrigin:e?"center top":"left top",transform:`scale(${1/t})`}));function eS({centered:e,scale:t,children:r}){let n=b.useRef(null),[o,a]=b.useState(0),i=b.useCallback(({height:l})=>{l&&a(l/t)},[t]);return b.useEffect(()=>{n.current&&a(n.current.getBoundingClientRect().height)},[t]),rp({ref:n,onResize:i}),h.createElement(p4,{centered:e,scale:t,elementHeight:o},h.createElement("div",{ref:n,className:"innerZoomElementWrapper"},r))}g(eS,"ZoomElement");var tS=class extends b.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{iFrameRef:t}=this.props;this.iframe=t.current}shouldComponentUpdate(t){let{scale:r,active:n}=this.props;return r!==t.scale&&this.setIframeInnerZoom(t.scale),n!==t.active&&this.iframe.setAttribute("data-is-storybook",t.active?"true":"false"),t.children.props.src!==this.props.children.props.src}setIframeInnerZoom(t){try{Object.assign(this.iframe.contentDocument.body.style,{width:`${t*100}%`,height:`${t*100}%`,transform:`scale(${1/t})`,transformOrigin:"top left"})}catch{this.setIframeZoom(t)}}setIframeZoom(t){Object.assign(this.iframe.style,{width:`${t*100}%`,height:`${t*100}%`,transform:`scale(${1/t})`,transformOrigin:"top left"})}render(){let{children:t}=this.props;return h.createElement(h.Fragment,null,t)}};g(tS,"ZoomIFrame");var f4=tS,rS={Element:eS,IFrame:f4};const{global:g4}=__STORYBOOK_MODULE_GLOBAL__;var{document:m4}=g4,h4=T.strong(({theme:e})=>({color:e.color.orange})),y4=T.strong(({theme:e})=>({color:e.color.ancillary,textDecoration:"underline"})),mm=T.em(({theme:e})=>({color:e.textMutedColor})),b4=/(Error): (.*)\n/,v4=/at (?:(.*) )?\(?(.+)\)?/,x4=/([^@]+)?(?:\/<)?@(.+)?/,E4=/([^@]+)?@(.+)?/,nS=g(({error:e})=>{if(!e)return h.createElement(b.Fragment,null,"This error has no stack or message");if(!e.stack)return h.createElement(b.Fragment,null,e.message||"This error has no stack or message");let t=e.stack.toString();t&&e.message&&!t.includes(e.message)&&(t=`Error: ${e.message}
1004
+
1005
+ ${t}`);let r=t.match(b4);if(!r)return h.createElement(b.Fragment,null,t);let[,n,o]=r,a=t.split(/\n/).slice(1),[,...i]=a.map(l=>{let s=l.match(v4)||l.match(x4)||l.match(E4);return s?{name:(s[1]||"").replace("/<",""),location:s[2].replace(m4.location.origin,"")}:null}).filter(Boolean);return h.createElement(b.Fragment,null,h.createElement("span",null,n),": ",h.createElement(h4,null,o),h.createElement("br",null),i.map((l,s)=>l?.name?h.createElement(b.Fragment,{key:s}," ","at ",h.createElement(y4,null,l.name)," (",h.createElement(mm,null,l.location),")",h.createElement("br",null)):h.createElement(b.Fragment,{key:s}," ","at ",h.createElement(mm,null,l?.location),h.createElement("br",null))))},"ErrorFormatter"),w4=T.input({appearance:"none",display:"grid",placeContent:"center",width:14,height:14,flexShrink:0,margin:0,border:`1px solid ${K.border}`,borderRadius:2,backgroundColor:"white",transition:"background-color 0.1s","&:enabled":{cursor:"pointer"},"&:disabled":{backgroundColor:K.medium},"&:disabled:checked, &:disabled:indeterminate":{backgroundColor:K.mediumdark},"&:checked, &:indeterminate":{backgroundColor:K.secondary},"&:checked::before":{content:'""',width:14,height:14,background:`no-repeat center url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='m3 7 2.5 2.5L11 4'/%3E%3C/svg%3E")`},"&:indeterminate::before":{content:'""',width:8,height:2,background:"white"},"&:enabled:focus-visible":{outline:`1px solid ${K.secondary}`,outlineOffset:1}}),S4=g(e=>h.createElement(w4,{...e,type:"checkbox"}),"Checkbox"),C4=T.label(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,margin:"0 15px",padding:"8px 0","&:last-child":{marginBottom:"3rem"}})),$4=T.span(({theme:e})=>({minWidth:100,fontWeight:e.typography.weight.bold,marginRight:15,display:"flex",justifyContent:"flex-start",alignItems:"center",lineHeight:"16px"})),A4=g(({label:e,children:t,...r})=>h.createElement(C4,{...r},e?h.createElement($4,null,h.createElement("span",null,e)):null,t),"Field"),np=g(({size:e})=>{switch(e){case"100%":return{width:"100%"};case"flex":return{flex:1};case"auto":default:return{display:"inline"}}},"sizes"),oS=g(({align:e})=>{switch(e){case"end":return{textAlign:"right"};case"center":return{textAlign:"center"};case"start":default:return{textAlign:"left"}}},"alignment"),aS=g(({valid:e,theme:t})=>{switch(e){case"valid":return{boxShadow:`${t.color.positive} 0 0 0 1px inset !important`};case"error":return{boxShadow:`${t.color.negative} 0 0 0 1px inset !important`};case"warn":return{boxShadow:`${t.color.warning} 0 0 0 1px inset`};case void 0:case null:default:return{}}},"validation"),D4={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},iS=g(({theme:e})=>({...D4,transition:"box-shadow 200ms ease-out, opacity 200ms ease-out",color:e.input.color||"inherit",background:e.input.background,boxShadow:`${e.input.border} 0 0 0 1px inset`,borderRadius:e.input.borderRadius,fontSize:e.typography.size.s2-1,lineHeight:"20px",padding:"6px 10px",boxSizing:"border-box",height:32,'&[type="file"]':{height:"auto"},"&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none","@media (forced-colors: active)":{outline:"1px solid highlight"}},"&[disabled]":{cursor:"not-allowed",opacity:.5},"&:-webkit-autofill":{WebkitBoxShadow:`0 0 0 3em ${e.color.lightest} inset`},"&::placeholder":{color:e.textMutedColor,opacity:1}}),"styles"),k4=Object.assign(T(b.forwardRef(g(function({size:e,valid:t,align:r,...n},o){return h.createElement("input",{...n,ref:o})},"Input")))(iS,np,oS,aS,{minHeight:32}),{displayName:"Input"}),O4=T.input({appearance:"none",display:"grid",placeContent:"center",width:16,height:16,flexShrink:0,margin:-1,border:`1px solid ${K.border}`,borderRadius:8,backgroundColor:"white",transition:"background-color 0.1s","&:enabled":{cursor:"pointer"},"&:disabled":{backgroundColor:K.medium},"&:disabled:checked":{backgroundColor:K.mediumdark},"&:checked":{backgroundColor:K.secondary,boxShadow:"inset 0 0 0 2px white"},"&:enabled:focus-visible":{outline:`1px solid ${K.secondary}`,outlineOffset:1}}),F4=g(e=>h.createElement(O4,{...e,type:"radio"}),"Radio");function lS(){try{return!!globalThis.__vitest_browser__||!!globalThis.window?.navigator?.userAgent?.match(/StorybookTestRunner/)}catch{return!1}}g(lS,"isTestEnvironment");var _4=T.select(np,({theme:e})=>({appearance:"none",background:`calc(100% - 12px) center no-repeat url("data:image/svg+xml,%3Csvg width='8' height='4' viewBox='0 0 8 4' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.30303 0.196815C1.13566 0.0294472 0.864304 0.0294472 0.696937 0.196815C0.529569 0.364182 0.529569 0.635539 0.696937 0.802906L3.69694 3.80291C3.8643 3.97027 4.13566 3.97027 4.30303 3.80291L7.30303 0.802906C7.4704 0.635539 7.4704 0.364182 7.30303 0.196815C7.13566 0.0294473 6.8643 0.0294473 6.69694 0.196815L3.99998 2.89377L1.30303 0.196815Z' fill='%2373828C'/%3E%3C/svg%3E%0A")`,backgroundSize:10,padding:"6px 30px 6px 10px","@supports (appearance: base-select)":{appearance:"base-select",background:e.input.background,padding:"6px 10px"},transition:"box-shadow 200ms ease-out, opacity 200ms ease-out",color:e.input.color||"inherit",boxShadow:`${e.input.border} 0 0 0 1px inset`,borderRadius:e.input.borderRadius,fontSize:e.typography.size.s2-1,lineHeight:"20px",boxSizing:"border-box",border:"none",cursor:"pointer","& > button":{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",gap:8,"& > svg":{width:14,height:14,color:e.color.mediumdark}},"&:has(option:not([hidden]):checked)":{color:e.color.defaultText},"&:focus-visible, &:focus-within":{outline:"none",boxShadow:`${e.color.secondary} 0 0 0 1px inset`},"&::picker-icon":{display:"none"},"&::picker(select)":{appearance:"base-select",border:"1px solid #e4e4e7",padding:4,marginTop:4,background:e.base==="light"?wn(e.background.app):e.background.app,filter:`
1006
+ drop-shadow(0 5px 5px rgba(0,0,0,0.05))
1007
+ drop-shadow(0 0 3px rgba(0,0,0,0.1))
1008
+ `,borderRadius:e.appBorderRadius+2,fontSize:e.typography.size.s1,cursor:"default",transition:"opacity 100ms ease-in-out, transform 100ms ease-in-out",transformOrigin:"top",transform:"translateY(0)",opacity:1,"@starting-style":{transform:"translateY(-0.25rem) scale(0.95)",opacity:0}},"& optgroup label":{display:"block",padding:"3px 6px"},"& option":{lineHeight:"18px",padding:"7px 10px",borderRadius:4,outline:"none",cursor:"pointer",color:e.color.defaultText,"&::checkmark":{display:"none"},"&:hover, &:focus-visible":{backgroundColor:e.background.hoverable},"&:checked":{color:e.color.secondary,fontWeight:e.typography.weight.bold},"&:disabled":{backgroundColor:"transparent",cursor:"default",color:e.color.defaultText}}})),T4=g(({children:e,...t})=>h.createElement(_4,{...t},!lS()&&h.createElement("button",null,h.createElement("selectedcontent",null),h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true"},h.createElement("path",{d:"m6 9 6 6 6-6"}))),h.createElement("optgroup",null,e)),"Select");rl();ld();var R4=b.useLayoutEffect,P4=g(function(e){var t=h.useRef(e);return R4(function(){t.current=e}),t},"useLatest"),hm=g(function(e,t){if(typeof e=="function"){e(t);return}e.current=t},"updateRef"),I4=g(function(e,t){var r=h.useRef();return h.useCallback(function(n){e.current=n,r.current&&hm(r.current,null),r.current=t,t&&hm(t,n)},[t])},"useComposedRef"),ym={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},L4=g(function(e){Object.keys(ym).forEach(function(t){e.style.setProperty(t,ym[t],"important")})},"forceHiddenStyles"),bm=L4,qe=null,vm=g(function(e,t){var r=e.scrollHeight;return t.sizingStyle.boxSizing==="border-box"?r+t.borderSize:r-t.paddingSize},"getHeight");function sS(e,t,r,n){r===void 0&&(r=1),n===void 0&&(n=1/0),qe||(qe=document.createElement("textarea"),qe.setAttribute("tabindex","-1"),qe.setAttribute("aria-hidden","true"),bm(qe)),qe.parentNode===null&&document.body.appendChild(qe);var o=e.paddingSize,a=e.borderSize,i=e.sizingStyle,l=i.boxSizing;Object.keys(i).forEach(function(c){var f=c;qe.style[f]=i[f]}),bm(qe),qe.value=t;var s=vm(qe,e);qe.value=t,s=vm(qe,e),qe.value="x";var u=qe.scrollHeight-o,d=u*r;l==="border-box"&&(d=d+o+a),s=Math.max(d,s);var p=u*n;return l==="border-box"&&(p=p+o+a),s=Math.min(p,s),[s,u]}g(sS,"calculateNodeHeight");var xm=g(function(){},"noop"),B4=g(function(e,t){return e.reduce(function(r,n){return r[n]=t[n],r},{})},"pick"),N4=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],j4=!!document.documentElement.currentStyle,M4=g(function(e){var t=window.getComputedStyle(e);if(t===null)return null;var r=B4(N4,t),n=r.boxSizing;if(n==="")return null;j4&&n==="border-box"&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px");var o=parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),a=parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth);return{sizingStyle:r,paddingSize:o,borderSize:a}},"getSizingData"),z4=M4;function El(e,t,r){var n=P4(r);b.useLayoutEffect(function(){var o=g(function(a){return n.current(a)},"handler");if(e)return e.addEventListener(t,o),function(){return e.removeEventListener(t,o)}},[])}g(El,"useListener");var H4=g(function(e,t){El(document.body,"reset",function(r){e.current.form===r.target&&t(r)})},"useFormResetListener"),U4=g(function(e){El(window,"resize",e)},"useWindowResizeListener"),W4=g(function(e){El(document.fonts,"loadingdone",e)},"useFontsLoadedListener"),V4=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],q4=g(function(e,t){var r=e.cacheMeasurements,n=e.maxRows,o=e.minRows,a=e.onChange,i=a===void 0?xm:a,l=e.onHeightChange,s=l===void 0?xm:l,u=ol(e,V4),d=u.value!==void 0,p=b.useRef(null),c=I4(p,t),f=b.useRef(0),m=b.useRef(),y=g(function(){var v=p.current,C=r&&m.current?m.current:z4(v);if(C){m.current=C;var w=sS(C,v.value||v.placeholder||"x",o,n),E=w[0],$=w[1];f.current!==E&&(f.current=E,v.style.setProperty("height",E+"px","important"),s(E,{rowHeight:$}))}},"resizeTextarea"),x=g(function(v){d||y(),i(v)},"handleChange");return b.useLayoutEffect(y),H4(p,function(){if(!d){var v=p.current.value;requestAnimationFrame(function(){var C=p.current;C&&v!==C.value&&y()})}}),U4(y),W4(y),b.createElement("textarea",xe({},u,{onChange:x,ref:c}))},"TextareaAutosize"),G4=b.forwardRef(q4),Y4=Object.assign(T(b.forwardRef(g(function({size:e,valid:t,align:r,...n},o){return h.createElement(G4,{...n,ref:o})},"Textarea")))(iS,np,oS,aS,({height:e=400})=>({overflow:"visible",maxHeight:e})),{displayName:"Textarea"}),uo=Object.assign(T.form({boxSizing:"border-box",width:"100%"}),{Field:A4,Input:k4,Select:T4,Textarea:Y4,Button:_r,Checkbox:S4,Radio:F4}),K4=b.lazy(()=>Promise.resolve().then(()=>(Ld(),Id)).then(e=>({default:e.WithTooltip}))),X4=g(e=>h.createElement(b.Suspense,{fallback:h.createElement("div",null)},h.createElement(K4,{...e})),"WithTooltip"),Z4=b.lazy(()=>Promise.resolve().then(()=>(Ld(),Id)).then(e=>({default:e.WithTooltipPure}))),uS=g(e=>h.createElement(b.Suspense,{fallback:h.createElement("div",null)},h.createElement(Z4,{...e})),"WithTooltipPure"),J4=T.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),Q4=T.span(),eT=T.div(({theme:e})=>({marginTop:8,textAlign:"center","> *":{margin:"0 8px",fontWeight:e.typography.weight.bold}})),tT=T.div(({theme:e})=>({color:e.color.defaultText,lineHeight:"18px"})),rT=T.div({padding:15,width:280,boxSizing:"border-box"}),nT=g(({title:e,desc:t,links:r})=>h.createElement(rT,null,h.createElement(tT,null,e&&h.createElement(J4,null,e),t&&h.createElement(Q4,null,t)),r&&h.createElement(eT,null,r.map(({title:n,...o})=>h.createElement(Jn,{...o,key:n},n)))),"TooltipMessage"),oT=T.div(({theme:e})=>({padding:"2px 6px",lineHeight:"16px",fontSize:10,fontWeight:e.typography.weight.bold,color:e.color.lightest,boxShadow:"0 0 5px 0 rgba(0, 0, 0, 0.3)",borderRadius:4,whiteSpace:"nowrap",pointerEvents:"none",zIndex:-1,background:e.base==="light"?"rgba(60, 60, 60, 0.9)":"rgba(0, 0, 0, 0.95)",margin:6})),aT=g(({note:e,...t})=>h.createElement(oT,{...t},e),"TooltipNote"),iT=je(nl(),1),lT=T(({active:e,loading:t,disabled:r,...n})=>h.createElement("span",{...n}))(({theme:e})=>({color:e.color.defaultText,fontWeight:e.typography.weight.regular}),({active:e,theme:t})=>e?{color:t.color.secondary,fontWeight:t.typography.weight.bold}:{},({loading:e,theme:t})=>e?{display:"inline-block",flex:"none",...t.animation.inlineGlow}:{},({disabled:e,theme:t})=>e?{color:t.textMutedColor}:{}),sT=T.span({display:"flex","& svg":{height:12,width:12,margin:"3px 0",verticalAlign:"top"},"& path":{fill:"inherit"}}),uT=T.span({flex:1,textAlign:"left",display:"flex",flexDirection:"column"},({isIndented:e})=>e?{marginLeft:24}:{}),cT=T.span(({theme:e})=>({fontSize:"11px",lineHeight:"14px"}),({active:e,theme:t})=>e?{color:t.color.secondary}:{},({theme:e,disabled:t})=>t?{color:e.textMutedColor}:{}),dT=T.span(({active:e,theme:t})=>e?{color:t.color.secondary}:{},()=>({display:"flex",maxWidth:14})),pT=T.div(({theme:e})=>({width:"100%",border:"none",borderRadius:e.appBorderRadius,background:"none",fontSize:e.typography.size.s1,transition:"all 150ms ease-out",color:e.color.dark,textDecoration:"none",justifyContent:"space-between",lineHeight:"18px",padding:"7px 10px",display:"flex",alignItems:"center","& > * + *":{paddingLeft:10}}),({theme:e,href:t,onClick:r})=>(t||r)&&{cursor:"pointer","&:hover":{background:e.background.hoverable},"&:hover svg":{opacity:1}},({theme:e,as:t})=>t==="label"&&{"&:has(input:not(:disabled))":{cursor:"pointer","&:hover":{background:e.background.hoverable}}},({disabled:e})=>e&&{cursor:"not-allowed"}),fT=(0,iT.default)(100)(({onClick:e,input:t,href:r,LinkWrapper:n})=>({...e&&{as:"button",onClick:e},...t&&{as:"label"},...r&&{as:"a",href:r,...n&&{as:n,to:r}}})),gT=g(e=>{let{loading:t=!1,title:r=h.createElement("span",null,"Loading state"),center:n=null,right:o=null,active:a=!1,disabled:i=!1,isIndented:l=!1,href:s=void 0,onClick:u=void 0,icon:d,input:p,LinkWrapper:c=void 0,...f}=e,m={active:a,disabled:i},y=fT(e),x=d||p;return h.createElement(pT,{...f,...m,...y},h.createElement(h.Fragment,null,x&&h.createElement(dT,{...m},x),r||n?h.createElement(uT,{isIndented:l&&!x},r&&h.createElement(lT,{...m,loading:t},r),n&&h.createElement(cT,{...m},n)):null,o&&h.createElement(sT,{...m},o)))},"ListItem"),cS=gT,mT=T.div({minWidth:180,overflow:"hidden",overflowY:"auto",maxHeight:15.5*32+8},({theme:e})=>({borderRadius:e.appBorderRadius+2}),({theme:e})=>e.base==="dark"?{background:e.background.content}:{}),hT=T.div(({theme:e})=>({padding:4,"& + &":{borderTop:`1px solid ${e.appBorderColor}`}})),yT=g(({id:e,onClick:t,...r})=>{let{active:n,disabled:o,title:a,href:i}=r,l=b.useCallback(s=>t?.(s,{id:e,active:n,disabled:o,title:a,href:i}),[t,e,n,o,a,i]);return h.createElement(cS,{id:`list-item-${e}`,...r,...t&&{onClick:l}})},"Item"),dS=g(({links:e,LinkWrapper:t,...r})=>{let n=Array.isArray(e[0])?e:[e],o=n.some(a=>a.some(i=>"icon"in i&&i.icon||"input"in i&&i.input));return h.createElement(mT,{...r},n.filter(a=>a.length).map((a,i)=>h.createElement(hT,{key:a.map(l=>l.id).join(`~${i}~`)},a.map(l=>"content"in l?h.createElement(b.Fragment,{key:l.id},l.content):h.createElement(yT,{key:l.id,isIndented:o,LinkWrapper:t,...l})))))},"TooltipLinkList");bd();var Yu=T.div({display:"flex",whiteSpace:"nowrap",flexBasis:"auto",marginLeft:3,marginRight:10},({scrollable:e})=>e?{flexShrink:0}:{},({left:e})=>e?{"& > *":{marginLeft:4}}:{},({right:e})=>e?{gap:6}:{});Yu.displayName="Side";var bT=g(({children:e,className:t,scrollable:r})=>r?h.createElement(Yo,{vertical:!1,className:t},e):h.createElement("div",{className:t},e),"UnstyledBar"),op=T(bT)(({backgroundColor:e,theme:t,scrollable:r=!0})=>({color:t.barTextColor,width:"100%",minHeight:40,flexShrink:0,scrollbarColor:`${t.barTextColor} ${e||t.barBg}`,scrollbarWidth:"thin",overflow:r?"auto":"hidden",overflowY:"hidden"}),({theme:e,border:t=!1})=>t?{boxShadow:`${e.appBorderColor} 0 -1px 0 0 inset`,background:e.barBg}:{});op.displayName="Bar";var vT=T.div(({bgColor:e})=>({display:"flex",justifyContent:"space-between",position:"relative",flexWrap:"nowrap",flexShrink:0,height:40,backgroundColor:e||""})),wl=g(({children:e,backgroundColor:t,className:r,...n})=>{let[o,a]=b.Children.toArray(e);return h.createElement(op,{backgroundColor:t,className:`sb-bar ${r}`,...n},h.createElement(vT,{bgColor:t},h.createElement(Yu,{scrollable:n.scrollable,left:!0},o),a?h.createElement(Yu,{right:!0},a):null))},"FlexBar");wl.displayName="FlexBar";var xT=g(e=>typeof e.props.href=="string","isLink"),ET=g(e=>typeof e.props.href!="string","isButton");function pS({children:e,...t},r){let n={props:t,ref:r};if(xT(n))return h.createElement("a",{ref:n.ref,...n.props},e);if(ET(n))return h.createElement("button",{ref:n.ref,type:"button",...n.props},e);throw new Error("invalid props")}g(pS,"ForwardRefFunction");var fS=b.forwardRef(pS);fS.displayName="ButtonOrLink";var da=T(fS,{shouldForwardProp:nd})({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none","&:empty":{display:"none"},"&[hidden]":{display:"none"}},({theme:e})=>({padding:"0 15px",transition:"color 0.2s linear, border-bottom-color 0.2s linear",height:40,lineHeight:"12px",cursor:"pointer",background:"transparent",border:"0 solid transparent",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",fontWeight:"bold",fontSize:13,"&:focus":{outline:"0 none",borderBottomColor:e.barSelectedColor}}),({active:e,textColor:t,theme:r})=>e?{color:t||r.barSelectedColor,borderBottomColor:r.barSelectedColor}:{color:t||r.barTextColor,borderBottomColor:"transparent","&:hover":{color:r.barHoverColor}});da.displayName="TabButton";var wT=T.div(({theme:e})=>({height:"100%",display:"flex",padding:30,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:e.background.content})),ST=T.div({display:"flex",flexDirection:"column",gap:4,maxWidth:415}),CT=T.div(({theme:e})=>({fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.textColor})),$T=T.div(({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.textMutedColor})),Sl=g(({title:e,description:t,footer:r})=>h.createElement(wT,null,h.createElement(ST,null,h.createElement(CT,null,e),t&&h.createElement($T,null,t)),r),"EmptyTabContent"),gS=T.div(({active:e})=>e?{display:"block"}:{display:"none"}),AT=g(e=>b.Children.toArray(e).map(({props:{title:t,id:r,color:n,children:o}})=>{let a=Array.isArray(o)?o[0]:o;return{title:t,id:r,...n?{color:n}:{},render:typeof a=="function"?a:({active:i})=>h.createElement(gS,{active:i,role:"tabpanel"},a)}}),"childrenToList");Ld();var DT=T.span(({theme:e,isActive:t})=>({display:"inline-block",width:0,height:0,marginLeft:8,color:t?e.color.secondary:e.color.mediumdark,borderRight:"3px solid transparent",borderLeft:"3px solid transparent",borderTop:"3px solid",transition:"transform .1s ease-out"})),kT=T(da)(({active:e,theme:t,preActive:r})=>`
1009
+ color: ${r||e?t.barSelectedColor:t.barTextColor};
1010
+ .addon-collapsible-icon {
1011
+ color: ${r||e?t.barSelectedColor:t.barTextColor};
1012
+ }
1013
+ &:hover {
1014
+ color: ${t.barHoverColor};
1015
+ .addon-collapsible-icon {
1016
+ color: ${t.barHoverColor};
1017
+ }
1018
+ }
1019
+ `);function mS(e){let t=b.useRef(),r=b.useRef(),n=b.useRef(new Map),{width:o=1}=rp({ref:t}),[a,i]=b.useState(e),[l,s]=b.useState([]),u=b.useRef(e),d=b.useCallback(({menuName:c,actions:f})=>{let m=l.some(({active:v})=>v),[y,x]=b.useState(!1);return h.createElement(h.Fragment,null,h.createElement(Ci,{interactive:!0,visible:y,onVisibleChange:x,placement:"bottom",delayHide:100,tooltip:h.createElement(dS,{links:l.map(({title:v,id:C,color:w,active:E})=>({id:C,title:v,color:w,active:E,onClick:g($=>{$.preventDefault(),f.onSelect(C)},"onClick")}))})},h.createElement(kT,{id:"addons-menu-button",ref:r,active:m,preActive:y,style:{visibility:l.length?"visible":"hidden"},"aria-hidden":!l.length,className:"tabbutton",type:"button",role:"tab"},c,h.createElement(DT,{className:"addon-collapsible-icon",isActive:m||y}))),l.map(({title:v,id:C,color:w},E)=>{let $=`index-${E}`;return h.createElement(da,{id:`tabbutton-${Vi(C)??$}`,style:{visibility:"hidden"},"aria-hidden":!0,tabIndex:-1,ref:A=>{n.current.set(C,A)},className:"tabbutton",type:"button",key:C,textColor:w,role:"tab"},v)}))},[l]),p=b.useCallback(()=>{if(!t.current||!r.current)return;let{x:c,width:f}=t.current.getBoundingClientRect(),{width:m}=r.current.getBoundingClientRect(),y=l.length?c+f-m:c+f,x=[],v=0,C=e.filter(w=>{let{id:E}=w,$=n.current.get(E),{width:A=0}=$?.getBoundingClientRect()||{},S=c+v+A>y;return(!S||!$)&&x.push(w),v+=A,S});(x.length!==a.length||u.current!==e)&&(i(x),s(C),u.current=e)},[l.length,e,a]);return b.useLayoutEffect(p,[p,o]),{tabRefs:n,addonsRef:r,tabBarRef:t,visibleList:a,invisibleList:l,AddonTab:d}}g(mS,"useList");var OT="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",FT=T.div(({theme:e,bordered:t})=>t?{backgroundClip:"padding-box",border:`1px solid ${e.appBorderColor}`,borderRadius:e.appBorderRadius,overflow:"hidden",boxSizing:"border-box"}:{},({absolute:e})=>e?{width:"100%",height:"100%",boxSizing:"border-box",display:"flex",flexDirection:"column"}:{display:"block"}),ap=T.div({overflow:"hidden","&:first-of-type":{marginLeft:-3},whiteSpace:"nowrap",flexGrow:1});ap.displayName="TabBar";var _T=T.div({display:"block",position:"relative",container:"tab-content / inline-size"},({theme:e})=>({fontSize:e.typography.size.s2-1,background:e.background.content}),({bordered:e,theme:t})=>e?{borderRadius:`0 0 ${t.appBorderRadius-1}px ${t.appBorderRadius-1}px`}:{},({absolute:e,bordered:t})=>e?{height:`calc(100% - ${t?42:40}px)`,position:"absolute",left:0+(t?1:0),right:0+(t?1:0),bottom:0+(t?1:0),top:40+(t?1:0),overflow:"auto",[`& > *:first-child${OT}`]:{position:"absolute",left:0+(t?1:0),right:0+(t?1:0),bottom:0+(t?1:0),top:0+(t?1:0),height:`calc(100% - ${t?2:0}px)`,overflow:"auto"}}:{}),TT=g(({active:e,render:t,children:r})=>h.createElement(gS,{active:e},t?t():r),"TabWrapper"),hS=class extends b.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t,r){console.error("Error rendering addon panel"),console.error(t),console.error(r.componentStack)}render(){return this.state.hasError&&this.props.active?h.createElement(Sl,{title:"This addon has errors",description:"Check your browser logs and addon code to pinpoint what went wrong. This issue was not caused by Storybook."}):this.props.children}};g(hS,"TabErrorBoundary");var RT=hS,ip=b.memo(({children:e,selected:t=null,actions:r,absolute:n=!1,bordered:o=!1,tools:a=null,backgroundColor:i,id:l=null,menuName:s="Tabs",emptyState:u,showToolsWhenEmpty:d})=>{let p=b.useMemo(()=>AT(e).map((v,C)=>({...v,active:t?v.id===t:C===0})),[e,t]),{visibleList:c,tabBarRef:f,tabRefs:m,AddonTab:y}=mS(p),x=u??h.createElement(Sl,{title:"Nothing found"});return!d&&p.length===0?x:h.createElement(FT,{absolute:n,bordered:o,id:l},h.createElement(wl,{scrollable:!1,border:!0,backgroundColor:i},h.createElement(ap,{style:{whiteSpace:"normal"},ref:f,role:"tablist"},c.map(({title:v,id:C,active:w,color:E},$)=>{let A=`index-${$}`;return h.createElement(da,{id:`tabbutton-${Vi(C)??A}`,ref:S=>{m.current.set(C,S)},className:`tabbutton ${w?"tabbutton-active":""}`,type:"button",key:C,active:w,textColor:E,onClick:S=>{S.preventDefault(),r.onSelect(C)},role:"tab"},typeof v=="function"?h.createElement("title",null):v)}),h.createElement(y,{menuName:s,actions:r})),a),h.createElement(_T,{id:"panel-tab-content",bordered:o,absolute:n},p.length?p.map(({id:v,active:C,render:w})=>h.createElement(RT,{key:v,active:C},h.createElement(w,{active:C},null))):x))});ip.displayName="Tabs";var Ku=class extends b.Component{constructor(t){super(t),this.handlers={onSelect:g(r=>this.setState({selected:r}),"onSelect")},this.state={selected:t.initial}}render(){let{bordered:t=!1,absolute:r=!1,children:n,backgroundColor:o,menuName:a}=this.props,{selected:i}=this.state;return h.createElement(ip,{bordered:t,absolute:r,selected:i,backgroundColor:o,menuName:a,actions:this.handlers},n)}};g(Ku,"TabsState"),Ku.defaultProps={children:[],initial:null,absolute:!1,bordered:!1,backgroundColor:"",menuName:void 0};var yS=Ku,lp=T.span(({theme:e})=>({width:1,height:20,background:e.appBorderColor,marginLeft:2,marginRight:2}),({force:e})=>e?{}:{"& + &":{display:"none"}});lp.displayName="Separator";var PT=g(e=>e.reduce((t,r,n)=>r?h.createElement(b.Fragment,{key:r.id||r.key||`f-${n}`},t,n>0?h.createElement(lp,{key:`s-${n}`}):null,r.render()||r):t,null),"interleaveSeparators"),IT=g(e=>{let t=b.useRef();return b.useEffect(()=>{t.current=e},[e]),t.current},"usePrevious"),LT=g((e,t)=>{let r=IT(t);return e?t:r},"useUpdate"),BT=g(({active:e,children:t})=>h.createElement("div",{hidden:!e},LT(e,t)),"AddonPanel"),NT=g(({alt:e,...t})=>h.createElement("svg",{width:"200px",height:"40px",viewBox:"0 0 200 40",...t,role:"img"},e?h.createElement("title",null,e):null,h.createElement("defs",null,h.createElement("path",{d:"M1.2 36.9L0 3.9c0-1.1.8-2 1.9-2.1l28-1.8a2 2 0 0 1 2.2 1.9 2 2 0 0 1 0 .1v36a2 2 0 0 1-2 2 2 2 0 0 1-.1 0L3.2 38.8a2 2 0 0 1-2-2z",id:"a"})),h.createElement("g",{fill:"none",fillRule:"evenodd"},h.createElement("path",{d:"M53.3 31.7c-1.7 0-3.4-.3-5-.7-1.5-.5-2.8-1.1-3.9-2l1.6-3.5c2.2 1.5 4.6 2.3 7.3 2.3 1.5 0 2.5-.2 3.3-.7.7-.5 1.1-1 1.1-1.9 0-.7-.3-1.3-1-1.7s-2-.8-3.7-1.2c-2-.4-3.6-.9-4.8-1.5-1.1-.5-2-1.2-2.6-2-.5-1-.8-2-.8-3.2 0-1.4.4-2.6 1.2-3.6.7-1.1 1.8-2 3.2-2.6 1.3-.6 2.9-.9 4.7-.9 1.6 0 3.1.3 4.6.7 1.5.5 2.7 1.1 3.5 2l-1.6 3.5c-2-1.5-4.2-2.3-6.5-2.3-1.3 0-2.3.2-3 .8-.8.5-1.2 1.1-1.2 2 0 .5.2 1 .5 1.3.2.3.7.6 1.4.9l2.9.8c2.9.6 5 1.4 6.2 2.4a5 5 0 0 1 2 4.2 6 6 0 0 1-2.5 5c-1.7 1.2-4 1.9-7 1.9zm21-3.6l1.4-.1-.2 3.5-1.9.1c-2.4 0-4.1-.5-5.2-1.5-1.1-1-1.6-2.7-1.6-4.8v-6h-3v-3.6h3V11h4.8v4.6h4v3.6h-4v6c0 1.8.9 2.8 2.6 2.8zm11.1 3.5c-1.6 0-3-.3-4.3-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.3-1 1.7 0 3.2.3 4.4 1a7 7 0 0 1 3 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.4 1zm0-3.6c2.4 0 3.6-1.6 3.6-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.6-1c-2.3 0-3.5 1.4-3.5 4.4 0 3 1.2 4.6 3.5 4.6zm21.7-8.8l-2.7.3c-1.3.2-2.3.5-2.8 1.2-.6.6-.9 1.4-.9 2.5v8.2H96V15.7h4.6v2.6c.8-1.8 2.5-2.8 5-3h1.3l.3 4zm14-3.5h4.8L116.4 37h-4.9l3-6.6-6.4-14.8h5l4 10 4-10zm16-.4c1.4 0 2.6.3 3.6 1 1 .6 1.9 1.6 2.5 2.8.6 1.2.9 2.7.9 4.3 0 1.6-.3 3-1 4.3a6.9 6.9 0 0 1-2.4 2.9c-1 .7-2.2 1-3.6 1-1 0-2-.2-3-.7-.8-.4-1.5-1-2-1.9v2.4h-4.7V8.8h4.8v9c.5-.8 1.2-1.4 2-1.9.9-.4 1.8-.6 3-.6zM135.7 28c1.1 0 2-.4 2.6-1.2.6-.8 1-2 1-3.4 0-1.5-.4-2.5-1-3.3s-1.5-1.1-2.6-1.1-2 .3-2.6 1.1c-.6.8-1 2-1 3.3 0 1.5.4 2.6 1 3.4.6.8 1.5 1.2 2.6 1.2zm18.9 3.6c-1.7 0-3.2-.3-4.4-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.4-1 1.6 0 3 .3 4.3 1a7 7 0 0 1 3 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.3 1zm0-3.6c2.3 0 3.5-1.6 3.5-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.5-1c-2.4 0-3.6 1.4-3.6 4.4 0 3 1.2 4.6 3.6 4.6zm18 3.6c-1.7 0-3.2-.3-4.4-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.4-1 1.6 0 3 .3 4.4 1a7 7 0 0 1 2.9 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.3 1zm0-3.6c2.3 0 3.5-1.6 3.5-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.5-1c-2.4 0-3.6 1.4-3.6 4.4 0 3 1.2 4.6 3.6 4.6zm27.4 3.4h-6l-6-7v7h-4.8V8.8h4.9v13.6l5.8-6.7h5.7l-6.6 7.5 7 8.2z",fill:"currentColor"}),h.createElement("mask",{id:"b",fill:"#fff"},h.createElement("use",{xlinkHref:"#a"})),h.createElement("use",{fill:"#FF4785",fillRule:"nonzero",xlinkHref:"#a"}),h.createElement("path",{d:"M23.7 5L24 .2l3.9-.3.1 4.8a.3.3 0 0 1-.5.2L26 3.8l-1.7 1.4a.3.3 0 0 1-.5-.3zm-5 10c0 .9 5.3.5 6 0 0-5.4-2.8-8.2-8-8.2-5.3 0-8.2 2.8-8.2 7.1 0 7.4 10 7.6 10 11.6 0 1.2-.5 1.9-1.8 1.9-1.6 0-2.2-.9-2.1-3.6 0-.6-6.1-.8-6.3 0-.5 6.7 3.7 8.6 8.5 8.6 4.6 0 8.3-2.5 8.3-7 0-7.9-10.2-7.7-10.2-11.6 0-1.6 1.2-1.8 2-1.8.6 0 2 0 1.9 3z",fill:"#FFF",fillRule:"nonzero",mask:"url(#b)"}))),"StorybookLogo"),jT=g(e=>h.createElement("svg",{viewBox:"0 0 64 64",...e},h.createElement("title",null,"Storybook icon"),h.createElement("g",{id:"Artboard",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},h.createElement("path",{d:"M8.04798541,58.7875918 L6.07908839,6.32540407 C6.01406344,4.5927838 7.34257463,3.12440831 9.07303814,3.01625434 L53.6958037,0.227331489 C55.457209,0.117243658 56.974354,1.45590096 57.0844418,3.21730626 C57.0885895,3.28366922 57.0906648,3.35014546 57.0906648,3.41663791 L57.0906648,60.5834697 C57.0906648,62.3483119 55.6599776,63.7789992 53.8951354,63.7789992 C53.847325,63.7789992 53.7995207,63.7779262 53.7517585,63.775781 L11.0978899,61.8600599 C9.43669044,61.7854501 8.11034889,60.4492961 8.04798541,58.7875918 Z",id:"path-1",fill:"#FF4785",fillRule:"nonzero"}),h.createElement("path",{d:"M35.9095005,24.1768792 C35.9095005,25.420127 44.2838488,24.8242707 45.4080313,23.9509748 C45.4080313,15.4847538 40.8652557,11.0358878 32.5466666,11.0358878 C24.2280775,11.0358878 19.5673077,15.553972 19.5673077,22.3311017 C19.5673077,34.1346028 35.4965208,34.3605071 35.4965208,40.7987804 C35.4965208,42.606015 34.6115646,43.6790606 32.6646607,43.6790606 C30.127786,43.6790606 29.1248356,42.3834613 29.2428298,37.9783269 C29.2428298,37.0226907 19.5673077,36.7247626 19.2723223,37.9783269 C18.5211693,48.6535354 25.1720308,51.7326752 32.7826549,51.7326752 C40.1572906,51.7326752 45.939005,47.8018145 45.939005,40.6858282 C45.939005,28.035186 29.7738035,28.3740425 29.7738035,22.1051974 C29.7738035,19.5637737 31.6617103,19.2249173 32.7826549,19.2249173 C33.9625966,19.2249173 36.0864917,19.4328883 35.9095005,24.1768792 Z",id:"path9_fill-path",fill:"#FFFFFF",fillRule:"nonzero"}),h.createElement("path",{d:"M44.0461638,0.830433986 L50.1874092,0.446606143 L50.443532,7.7810017 C50.4527198,8.04410717 50.2468789,8.26484453 49.9837734,8.27403237 C49.871115,8.27796649 49.7607078,8.24184808 49.6721567,8.17209069 L47.3089847,6.3104681 L44.5110468,8.43287463 C44.3012992,8.591981 44.0022839,8.55092814 43.8431776,8.34118051 C43.7762017,8.25288717 43.742082,8.14401677 43.7466857,8.03329059 L44.0461638,0.830433986 Z",id:"Path",fill:"#FFFFFF"}))),"StorybookIcon"),MT=_t`
1020
+ from {
1021
+ transform: rotate(0deg);
1022
+ }
1023
+ to {
1024
+ transform: rotate(360deg);
1025
+ }
1026
+ `,zT=T.div(({size:e=32})=>({borderRadius:"50%",cursor:"progress",display:"inline-block",overflow:"hidden",position:"absolute",transition:"all 200ms ease-out",verticalAlign:"top",top:"50%",left:"50%",marginTop:-(e/2),marginLeft:-(e/2),height:e,width:e,zIndex:4,borderWidth:2,borderStyle:"solid",borderColor:"rgba(97, 97, 97, 0.29)",borderTopColor:"rgb(100,100,100)",animation:`${MT} 0.7s linear infinite`,mixBlendMode:"difference"})),Em=T.div({position:"absolute",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"}),HT=T.div(({theme:e})=>({position:"relative",width:"80%",marginBottom:"0.75rem",maxWidth:300,height:5,borderRadius:5,background:pt(.8,e.color.secondary),overflow:"hidden",cursor:"progress"})),UT=T.div(({theme:e})=>({position:"absolute",top:0,left:0,height:"100%",background:e.color.secondary})),wm=T.div(({theme:e})=>({minHeight:"2em",fontSize:`${e.typography.size.s1}px`,color:e.textMutedColor})),WT=T(LF)(({theme:e})=>({width:20,height:20,marginBottom:"0.5rem",color:e.textMutedColor})),VT=_t`
1027
+ from { content: "..." }
1028
+ 33% { content: "." }
1029
+ 66% { content: ".." }
1030
+ to { content: "..." }
1031
+ `,qT=T.span({"&::after":{content:"'...'",animation:`${VT} 1s linear infinite`,animationDelay:"1s",display:"inline-block",width:"1em",height:"auto"}}),bS=g(({progress:e,error:t,size:r,...n})=>{if(t)return h.createElement(Em,{"aria-label":t.toString(),"aria-live":"polite",role:"status",...n},h.createElement(WT,null),h.createElement(wm,null,t.message));if(e){let{value:o,modules:a}=e,{message:i}=e;return a&&(i+=` ${a.complete} / ${a.total} modules`),h.createElement(Em,{"aria-label":"Content is loading...","aria-live":"polite","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":o*100,"aria-valuetext":i,role:"progressbar",...n},h.createElement(HT,null,h.createElement(UT,{style:{width:`${o*100}%`}})),h.createElement(wm,null,i,o<1&&h.createElement(qT,{key:i})))}return h.createElement(zT,{"aria-label":"Content is loading...","aria-live":"polite",role:"status",size:r,...n})},"Loader"),ys="http://www.w3.org/2000/svg",GT=_t({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Sm=T.div(({size:e})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",minWidth:e,minHeight:e})),bs=T.svg(({size:e,width:t})=>({position:"absolute",width:`${e}px!important`,height:`${e}px!important`,transform:"rotate(-90deg)",circle:{r:(e-Math.ceil(t))/2,cx:e/2,cy:e/2,opacity:.15,fill:"transparent",stroke:"currentColor",strokeWidth:t,strokeLinecap:"round",strokeDasharray:Math.PI*(e-Math.ceil(t))}}),({progress:e})=>e&&{circle:{opacity:.75}},({spinner:e})=>e&&{animation:`${GT} 1s linear infinite`,circle:{opacity:.25}}),YT=g(({percentage:e=void 0,running:t=!0,size:r=24,width:n=1.5,children:o=null,...a})=>typeof e=="number"?h.createElement(Sm,{size:r,...a},o,h.createElement(bs,{size:r,width:n,xmlns:ys},h.createElement("circle",null)),t&&h.createElement(bs,{size:r,width:n,xmlns:ys,spinner:!0},h.createElement("circle",{strokeDashoffset:Math.PI*(r-Math.ceil(n))*(1-e/100)})),h.createElement(bs,{size:r,width:n,xmlns:ys,progress:!0},h.createElement("circle",{strokeDashoffset:Math.PI*(r-Math.ceil(n))*(1-e/100)}))):h.createElement(Sm,{size:r,...a},o),"ProgressSpinner");function vS(e){let t={},r=e.split("&");for(let n=0;n<r.length;n++){let o=r[n].split("=");t[decodeURIComponent(o[0])]=decodeURIComponent(o[1]||"")}return t}g(vS,"parseQuery");var xS=g((e,t,r={})=>{let[n,o]=e.split("?"),a=o?{...vS(o),...r,id:t}:{...r,id:t};return`${n}?${Object.entries(a).map(i=>`${i[0]}=${i[1]}`).join("&")}`},"getStoryHref"),KT=T.pre`
1032
+ line-height: 18px;
1033
+ padding: 11px 1rem;
1034
+ white-space: pre-wrap;
1035
+ background: rgba(0, 0, 0, 0.05);
1036
+ color: ${K.darkest};
1037
+ border-radius: 3px;
1038
+ margin: 1rem 0;
1039
+ width: 100%;
1040
+ display: block;
1041
+ overflow: hidden;
1042
+ font-family: ${Ht.fonts.mono};
1043
+ font-size: ${Ht.size.s2-1}px;
1044
+ `,XT=g(({code:e,...t})=>h.createElement(KT,{id:"clipboard-code",...t},e),"ClipboardCode"),ES=wE,wS={};Object.keys(wE).forEach(e=>{wS[e]=b.forwardRef((t,r)=>b.createElement(e,{...t,ref:r}))});const ZT=Object.freeze(Object.defineProperty({__proto__:null,A:oE,get ActionBar(){return il},AddonPanel:BT,Badge:IF,Bar:op,Blockquote:aE,Button:_r,ClipboardCode:XT,Code:Md,DL:iE,Div:lE,DocumentWrapper:WF,EmptyTabContent:Sl,ErrorFormatter:nS,FlexBar:wl,Form:uo,H1:sE,H2:zd,H3:Hd,H4:uE,H5:cE,H6:dE,HR:pE,IconButton:$r,Img:fE,LI:gE,Link:Jn,ListItem:cS,Loader:bS,Modal:o4,OL:mE,P:hE,Placeholder:d4,Pre:yE,ProgressSpinner:YT,ResetWrapper:jd,get ScrollArea(){return Yo},Separator:lp,Spaced:l4,Span:bE,StorybookIcon:jT,StorybookLogo:NT,SyntaxHighlighter:hl,TT:vE,TabBar:ap,TabButton:da,TabWrapper:TT,Table:xE,Tabs:ip,TabsState:yS,TooltipLinkList:dS,TooltipMessage:nT,TooltipNote:aT,UL:EE,WithTooltip:X4,WithTooltipPure:uS,Zoom:rS,codeCommon:cr,components:ES,createCopyToClipboardFunction:xi,getStoryHref:xS,interleaveSeparators:PT,nameSpaceClassNames:ve,resetComponents:wS,withReset:we},Symbol.toStringTag,{value:"Module"}));var JT=b.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>b.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},b.createElement("path",{d:"M6 3.5a.5.5 0 01.5.5v1.5H8a.5.5 0 010 1H6.5V8a.5.5 0 01-1 0V6.5H4a.5.5 0 010-1h1.5V4a.5.5 0 01.5-.5z",fill:e}),b.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.544 10.206a5.5 5.5 0 11.662-.662.5.5 0 01.148.102l3 3a.5.5 0 01-.708.708l-3-3a.5.5 0 01-.102-.148zM10.5 6a4.5 4.5 0 11-9 0 4.5 4.5 0 019 0z",fill:e}))),QT=b.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>b.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},b.createElement("path",{d:"M4 5.5a.5.5 0 000 1h4a.5.5 0 000-1H4z",fill:e}),b.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 11.5c1.35 0 2.587-.487 3.544-1.294a.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 106 11.5zm0-1a4.5 4.5 0 100-9 4.5 4.5 0 000 9z",fill:e}))),eR=b.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>b.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},b.createElement("path",{d:"M1.5 2.837V1.5a.5.5 0 00-1 0V4a.5.5 0 00.5.5h2.5a.5.5 0 000-1H2.258a4.5 4.5 0 11-.496 4.016.5.5 0 10-.942.337 5.502 5.502 0 008.724 2.353.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 101.5 2.837z",fill:e}))),tR=b.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>b.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},b.createElement("path",{d:"M7 9.5a2.5 2.5 0 100-5 2.5 2.5 0 000 5z",fill:e}),b.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7l-.21.293C13.669 7.465 10.739 11.5 7 11.5S.332 7.465.21 7.293L0 7l.21-.293C.331 6.536 3.261 2.5 7 2.5s6.668 4.036 6.79 4.207L14 7zM2.896 5.302A12.725 12.725 0 001.245 7c.296.37.874 1.04 1.65 1.698C4.043 9.67 5.482 10.5 7 10.5c1.518 0 2.958-.83 4.104-1.802A12.72 12.72 0 0012.755 7c-.297-.37-.875-1.04-1.65-1.698C9.957 4.33 8.517 3.5 7 3.5c-1.519 0-2.958.83-4.104 1.802z",fill:e}))),rR=b.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>b.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},b.createElement("path",{d:"M1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.708-.708l-11-11zM11.104 8.698c-.177.15-.362.298-.553.439l.714.714a13.25 13.25 0 002.526-2.558L14 7l-.21-.293C13.669 6.536 10.739 2.5 7 2.5c-.89 0-1.735.229-2.506.58l.764.763A4.859 4.859 0 017 3.5c1.518 0 2.958.83 4.104 1.802A12.724 12.724 0 0112.755 7a12.72 12.72 0 01-1.65 1.698zM.21 6.707c.069-.096 1.03-1.42 2.525-2.558l.714.714c-.191.141-.376.288-.553.439A12.725 12.725 0 001.245 7c.296.37.874 1.04 1.65 1.698C4.043 9.67 5.482 10.5 7 10.5a4.86 4.86 0 001.742-.344l.764.764c-.772.351-1.616.58-2.506.58C3.262 11.5.332 7.465.21 7.293L0 7l.21-.293z",fill:e}),b.createElement("path",{d:"M4.5 7c0-.322.061-.63.172-.914l3.242 3.242A2.5 2.5 0 014.5 7zM9.328 7.914L6.086 4.672a2.5 2.5 0 013.241 3.241z",fill:e}))),Xu=b.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>b.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},b.createElement("path",{d:"M4 5.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5zM4.5 7.5a.5.5 0 000 1h5a.5.5 0 000-1h-5zM4 10.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5z",fill:e}),b.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 0a.5.5 0 00-.5.5v13a.5.5 0 00.5.5h11a.5.5 0 00.5-.5V3.207a.5.5 0 00-.146-.353L10.146.146A.5.5 0 009.793 0H1.5zM2 1h7.5v2a.5.5 0 00.5.5h2V13H2V1z",fill:e}))),VN=b.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>b.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},b.createElement("path",{d:"M8.982 1.632a.5.5 0 00-.964-.263l-3 11a.5.5 0 10.964.263l3-11zM3.32 3.616a.5.5 0 01.064.704L1.151 7l2.233 2.68a.5.5 0 11-.768.64l-2.5-3a.5.5 0 010-.64l2.5-3a.5.5 0 01.704-.064zM10.68 3.616a.5.5 0 00-.064.704L12.849 7l-2.233 2.68a.5.5 0 00.768.64l2.5-3a.5.5 0 000-.64l-2.5-3a.5.5 0 00-.704-.064z",fill:e}))),nR=b.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>b.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},b.createElement("path",{d:"M7 3a.5.5 0 01.5.5v3h3a.5.5 0 010 1h-3v3a.5.5 0 01-1 0v-3h-3a.5.5 0 010-1h3v-3A.5.5 0 017 3z",fill:e}),b.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",fill:e}))),oR=b.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>b.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},b.createElement("path",{d:"M3.5 6.5a.5.5 0 000 1h7a.5.5 0 000-1h-7z",fill:e}),b.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",fill:e}))),aR=b.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>b.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},b.createElement("path",{d:"M11.841 2.159a2.25 2.25 0 00-3.182 0l-2.5 2.5a2.25 2.25 0 000 3.182.5.5 0 01-.707.707 3.25 3.25 0 010-4.596l2.5-2.5a3.25 3.25 0 014.596 4.596l-2.063 2.063a4.27 4.27 0 00-.094-1.32l1.45-1.45a2.25 2.25 0 000-3.182z",fill:e}),b.createElement("path",{d:"M3.61 7.21c-.1-.434-.132-.88-.095-1.321L1.452 7.952a3.25 3.25 0 104.596 4.596l2.5-2.5a3.25 3.25 0 000-4.596.5.5 0 00-.707.707 2.25 2.25 0 010 3.182l-2.5 2.5A2.25 2.25 0 112.159 8.66l1.45-1.45z",fill:e}))),iR=b.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>b.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},b.createElement("path",{d:"M1.146 4.604l5.5 5.5a.5.5 0 00.708 0l5.5-5.5a.5.5 0 00-.708-.708L7 9.043 1.854 3.896a.5.5 0 10-.708.708z",fill:e}))),lR=b.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>b.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},b.createElement("path",{d:"M11.104 7.354l-5.5 5.5a.5.5 0 01-.708-.708L10.043 7 4.896 1.854a.5.5 0 11.708-.708l5.5 5.5a.5.5 0 010 .708z",fill:e}))),sR=b.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>b.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},b.createElement("path",{d:"M3.854 9.104a.5.5 0 11-.708-.708l3.5-3.5a.5.5 0 01.708 0l3.5 3.5a.5.5 0 01-.708.708L7 5.957 3.854 9.104z",fill:e}))),SS=b.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>b.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},b.createElement("path",{d:"M3.854 4.896a.5.5 0 10-.708.708l3.5 3.5a.5.5 0 00.708 0l3.5-3.5a.5.5 0 00-.708-.708L7 8.043 3.854 4.896z",fill:e}))),uR=b.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>b.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},b.createElement("path",{d:"M1.146 3.854a.5.5 0 010-.708l2-2a.5.5 0 11.708.708L2.707 3h6.295A4 4 0 019 11H3a.5.5 0 010-1h6a3 3 0 100-6H2.707l1.147 1.146a.5.5 0 11-.708.708l-2-2z",fill:e})));function cR(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Array.from(typeof e=="string"?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var o=n.reduce(function(l,s){var u=s.match(/\n([\t ]+|(?!\s).)/g);return u?l.concat(u.map(function(d){var p,c;return(c=(p=d.match(/[\t ]/g))===null||p===void 0?void 0:p.length)!==null&&c!==void 0?c:0})):l},[]);if(o.length){var a=new RegExp(`
1045
+ [ ]{`+Math.min.apply(Math,o)+"}","g");n=n.map(function(l){return l.replace(a,`
1046
+ `)})}n[0]=n[0].replace(/^\r?\n/,"");var i=n[0];return t.forEach(function(l,s){var u=i.match(/(?:^|\n)( *)$/),d=u?u[1]:"",p=l;typeof l=="string"&&l.includes(`
1047
+ `)&&(p=String(l).split(`
1048
+ `).map(function(c,f){return f===0?c:""+d+c}).join(`
1049
+ `)),i+=p+n[s+1]}),i}const{deprecate:dR,once:pR,logger:sp}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{NAVIGATE_URL:CS,STORY_ARGS_UPDATED:Cm,UPDATE_STORY_ARGS:fR,RESET_STORY_ARGS:gR,GLOBALS_UPDATED:$m}=__STORYBOOK_MODULE_CORE_EVENTS__,{filterArgTypes:Am,composeConfigs:qN,Preview:GN,DocsContext:YN}=__STORYBOOK_MODULE_PREVIEW_API__,{Channel:KN}=__STORYBOOK_MODULE_CHANNELS__;var mR=cD({"../../node_modules/memoizerific/memoizerific.js"(e,t){(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return(function r(n,o,a){function i(u,d){if(!o[u]){if(!n[u]){var p=typeof ba=="function"&&ba;if(!d&&p)return p(u,!0);if(l)return l(u,!0);var c=new Error("Cannot find module '"+u+"'");throw c.code="MODULE_NOT_FOUND",c}var f=o[u]={exports:{}};n[u][0].call(f.exports,function(m){var y=n[u][1][m];return i(y||m)},f,f.exports,r,n,o,a)}return o[u].exports}for(var l=typeof ba=="function"&&ba,s=0;s<a.length;s++)i(a[s]);return i})({1:[function(r,n,o){n.exports=function(a){if(typeof Map!="function"||a){var i=r("./similar");return new i}else return new Map}},{"./similar":2}],2:[function(r,n,o){function a(){return this.list=[],this.lastItem=void 0,this.size=0,this}a.prototype.get=function(i){var l;if(this.lastItem&&this.isEqual(this.lastItem.key,i))return this.lastItem.val;if(l=this.indexOf(i),l>=0)return this.lastItem=this.list[l],this.list[l].val},a.prototype.set=function(i,l){var s;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=l,this):(s=this.indexOf(i),s>=0?(this.lastItem=this.list[s],this.list[s].val=l,this):(this.lastItem={key:i,val:l},this.list.push(this.lastItem),this.size++,this))},a.prototype.delete=function(i){var l;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),l=this.indexOf(i),l>=0)return this.size--,this.list.splice(l,1)[0]},a.prototype.has=function(i){var l;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(l=this.indexOf(i),l>=0?(this.lastItem=this.list[l],!0):!1)},a.prototype.forEach=function(i,l){var s;for(s=0;s<this.size;s++)i.call(l||this,this.list[s].val,this.list[s].key,this)},a.prototype.indexOf=function(i){var l;for(l=0;l<this.size;l++)if(this.isEqual(this.list[l].key,i))return l;return-1},a.prototype.isEqual=function(i,l){return i===l||i!==i&&l!==l},n.exports=a},{}],3:[function(r,n,o){var a=r("map-or-similar");n.exports=function(u){var d=new a(!1),p=[];return function(c){var f=function(){var m=d,y,x,v=arguments.length-1,C=Array(v+1),w=!0,E;if((f.numArgs||f.numArgs===0)&&f.numArgs!==v+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(E=0;E<v;E++){if(C[E]={cacheItem:m,arg:arguments[E]},m.has(arguments[E])){m=m.get(arguments[E]);continue}w=!1,y=new a(!1),m.set(arguments[E],y),m=y}return w&&(m.has(arguments[v])?x=m.get(arguments[v]):w=!1),w||(x=c.apply(null,arguments),m.set(arguments[v],x)),u>0&&(C[v]={cacheItem:m,arg:arguments[v]},w?i(p,C):p.push(C),p.length>u&&l(p.shift())),f.wasMemoized=w,f.numArgs=v+1,x};return f.limit=u,f.wasMemoized=!1,f.cache=d,f.lru=p,f}};function i(u,d){var p=u.length,c=d.length,f,m,y;for(m=0;m<p;m++){for(f=!0,y=0;y<c;y++)if(!s(u[m][y].arg,d[y].arg)){f=!1;break}if(f)break}u.push(u.splice(m,1)[0])}function l(u){var d=u.length,p=u[d-1],c,f;for(p.cacheItem.delete(p.arg),f=d-2;f>=0&&(p=u[f],c=p.cacheItem.get(p.arg),!c||!c.size);f--)p.cacheItem.delete(p.arg)}function s(u,d){return u===d||u!==u&&d!==d}},{"map-or-similar":1}]},{},[3])(3)})}});function et(){return et=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},et.apply(null,arguments)}function hR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Jo(e,t){return Jo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Jo(e,t)}function yR(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Jo(e,t)}function Zu(e){return Zu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Zu(e)}function bR(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function $S(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($S=function(){return!!e})()}function vR(e,t,r){if($S())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&Jo(o,r.prototype),o}function Ju(e){var t=typeof Map=="function"?new Map:void 0;return Ju=function(r){if(r===null||!bR(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,n)}function n(){return vR(r,arguments,Zu(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Jo(n,r)},Ju(e)}var xR={1:`Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).
1050
+
1051
+ `,2:`Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).
1052
+
1053
+ `,3:`Passed an incorrect argument to a color function, please pass a string representation of a color.
1054
+
1055
+ `,4:`Couldn't generate valid rgb string from %s, it returned %s.
1056
+
1057
+ `,5:`Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.
1058
+
1059
+ `,6:`Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).
1060
+
1061
+ `,7:`Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).
1062
+
1063
+ `,8:`Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.
1064
+
1065
+ `,9:`Please provide a number of steps to the modularScale helper.
1066
+
1067
+ `,10:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio.
1068
+
1069
+ `,11:`Invalid value passed as base to modularScale, expected number or em string but got "%s"
1070
+
1071
+ `,12:`Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead.
1072
+
1073
+ `,13:`Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead.
1074
+
1075
+ `,14:`Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12.
1076
+
1077
+ `,15:`Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12.
1078
+
1079
+ `,16:`You must provide a template to this method.
1080
+
1081
+ `,17:`You passed an unsupported selector state to this method.
1082
+
1083
+ `,18:`minScreen and maxScreen must be provided as stringified numbers with the same units.
1084
+
1085
+ `,19:`fromSize and toSize must be provided as stringified numbers with the same units.
1086
+
1087
+ `,20:`expects either an array of objects or a single object with the properties prop, fromSize, and toSize.
1088
+
1089
+ `,21:"expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",22:"expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",23:`fontFace expects a name of a font-family.
1090
+
1091
+ `,24:`fontFace expects either the path to the font file(s) or a name of a local copy.
1092
+
1093
+ `,25:`fontFace expects localFonts to be an array.
1094
+
1095
+ `,26:`fontFace expects fileFormats to be an array.
1096
+
1097
+ `,27:`radialGradient requries at least 2 color-stops to properly render.
1098
+
1099
+ `,28:`Please supply a filename to retinaImage() as the first argument.
1100
+
1101
+ `,29:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.
1102
+
1103
+ `,30:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",31:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation
1104
+
1105
+ `,32:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])
1106
+ To pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')
1107
+
1108
+ `,33:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation
1109
+
1110
+ `,34:`borderRadius expects a radius value as a string or number as the second argument.
1111
+
1112
+ `,35:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.
1113
+
1114
+ `,36:`Property must be a string value.
1115
+
1116
+ `,37:`Syntax Error at %s.
1117
+
1118
+ `,38:`Formula contains a function that needs parentheses at %s.
1119
+
1120
+ `,39:`Formula is missing closing parenthesis at %s.
1121
+
1122
+ `,40:`Formula has too many closing parentheses at %s.
1123
+
1124
+ `,41:`All values in a formula must have the same unit or be unitless.
1125
+
1126
+ `,42:`Please provide a number of steps to the modularScale helper.
1127
+
1128
+ `,43:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio.
1129
+
1130
+ `,44:`Invalid value passed as base to modularScale, expected number or em/rem string but got %s.
1131
+
1132
+ `,45:`Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.
1133
+
1134
+ `,46:`Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.
1135
+
1136
+ `,47:`minScreen and maxScreen must be provided as stringified numbers with the same units.
1137
+
1138
+ `,48:`fromSize and toSize must be provided as stringified numbers with the same units.
1139
+
1140
+ `,49:`Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.
1141
+
1142
+ `,50:`Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.
1143
+
1144
+ `,51:`Expects the first argument object to have the properties prop, fromSize, and toSize.
1145
+
1146
+ `,52:`fontFace expects either the path to the font file(s) or a name of a local copy.
1147
+
1148
+ `,53:`fontFace expects localFonts to be an array.
1149
+
1150
+ `,54:`fontFace expects fileFormats to be an array.
1151
+
1152
+ `,55:`fontFace expects a name of a font-family.
1153
+
1154
+ `,56:`linearGradient requries at least 2 color-stops to properly render.
1155
+
1156
+ `,57:`radialGradient requries at least 2 color-stops to properly render.
1157
+
1158
+ `,58:`Please supply a filename to retinaImage() as the first argument.
1159
+
1160
+ `,59:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.
1161
+
1162
+ `,60:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",61:`Property must be a string value.
1163
+
1164
+ `,62:`borderRadius expects a radius value as a string or number as the second argument.
1165
+
1166
+ `,63:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.
1167
+
1168
+ `,64:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.
1169
+
1170
+ `,65:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s').
1171
+
1172
+ `,66:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.
1173
+
1174
+ `,67:`You must provide a template to this method.
1175
+
1176
+ `,68:`You passed an unsupported selector state to this method.
1177
+
1178
+ `,69:`Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead.
1179
+
1180
+ `,70:`Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead.
1181
+
1182
+ `,71:`Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12.
1183
+
1184
+ `,72:`Passed invalid base value %s to %s(), please pass a value like "12px" or 12.
1185
+
1186
+ `,73:`Please provide a valid CSS variable.
1187
+
1188
+ `,74:`CSS variable not found and no default was provided.
1189
+
1190
+ `,75:`important requires a valid style object, got a %s instead.
1191
+
1192
+ `,76:`fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.
1193
+
1194
+ `,77:`remToPx expects a value in "rem" but you provided it in "%s".
1195
+
1196
+ `,78:`base must be set in "px" or "%" but you set it in "%s".
1197
+ `};function ER(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],o=[],a;for(a=1;a<t.length;a+=1)o.push(t[a]);return o.forEach(function(i){n=n.replace(/%[a-z]/,i)}),n}var Ut=(function(e){yR(t,e);function t(r){for(var n,o=arguments.length,a=new Array(o>1?o-1:0),i=1;i<o;i++)a[i-1]=arguments[i];return n=e.call(this,ER.apply(void 0,[xR[r]].concat(a)))||this,hR(n)}return t})(Ju(Error));function vs(e){return Math.round(e*255)}function wR(e,t,r){return vs(e)+","+vs(t)+","+vs(r)}function ki(e,t,r,n){if(n===void 0&&(n=wR),t===0)return n(r,r,r);var o=(e%360+360)%360/60,a=(1-Math.abs(2*r-1))*t,i=a*(1-Math.abs(o%2-1)),l=0,s=0,u=0;o>=0&&o<1?(l=a,s=i):o>=1&&o<2?(l=i,s=a):o>=2&&o<3?(s=a,u=i):o>=3&&o<4?(s=i,u=a):o>=4&&o<5?(l=i,u=a):o>=5&&o<6&&(l=a,u=i);var d=r-a/2,p=l+d,c=s+d,f=u+d;return n(p,c,f)}var Dm={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 SR(e){if(typeof e!="string")return e;var t=e.toLowerCase();return Dm[t]?"#"+Dm[t]:e}var CR=/^#[a-fA-F0-9]{6}$/,$R=/^#[a-fA-F0-9]{8}$/,AR=/^#[a-fA-F0-9]{3}$/,DR=/^#[a-fA-F0-9]{4}$/,xs=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,kR=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,OR=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,FR=/^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 to(e){if(typeof e!="string")throw new Ut(3);var t=SR(e);if(t.match(CR))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($R)){var r=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:r}}if(t.match(AR))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(DR)){var n=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:n}}var o=xs.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=kR.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 i=OR.exec(t);if(i){var l=parseInt(""+i[1],10),s=parseInt(""+i[2],10)/100,u=parseInt(""+i[3],10)/100,d="rgb("+ki(l,s,u)+")",p=xs.exec(d);if(!p)throw new Ut(4,t,d);return{red:parseInt(""+p[1],10),green:parseInt(""+p[2],10),blue:parseInt(""+p[3],10)}}var c=FR.exec(t.substring(0,50));if(c){var f=parseInt(""+c[1],10),m=parseInt(""+c[2],10)/100,y=parseInt(""+c[3],10)/100,x="rgb("+ki(f,m,y)+")",v=xs.exec(x);if(!v)throw new Ut(4,t,x);return{red:parseInt(""+v[1],10),green:parseInt(""+v[2],10),blue:parseInt(""+v[3],10),alpha:parseFloat(""+c[4])>1?parseFloat(""+c[4])/100:parseFloat(""+c[4])}}throw new Ut(5)}function _R(e){var t=e.red/255,r=e.green/255,n=e.blue/255,o=Math.max(t,r,n),a=Math.min(t,r,n),i=(o+a)/2;if(o===a)return e.alpha!==void 0?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var l,s=o-a,u=i>.5?s/(2-o-a):s/(o+a);switch(o){case t:l=(r-n)/s+(r<n?6:0);break;case r:l=(n-t)/s+2;break;default:l=(t-r)/s+4;break}return l*=60,e.alpha!==void 0?{hue:l,saturation:u,lightness:i,alpha:e.alpha}:{hue:l,saturation:u,lightness:i}}function Tr(e){return _R(to(e))}var TR=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},Qu=TR;function Mr(e){var t=e.toString(16);return t.length===1?"0"+t:t}function Es(e){return Mr(Math.round(e*255))}function RR(e,t,r){return Qu("#"+Es(e)+Es(t)+Es(r))}function AS(e,t,r){return ki(e,t,r,RR)}function PR(e,t,r){if(typeof e=="object"&&t===void 0&&r===void 0)return AS(e.hue,e.saturation,e.lightness);throw new Ut(1)}function IR(e,t,r,n){if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?AS(e.hue,e.saturation,e.lightness):"rgba("+ki(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Ut(2)}function DS(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return Qu("#"+Mr(e)+Mr(t)+Mr(r));if(typeof e=="object"&&t===void 0&&r===void 0)return Qu("#"+Mr(e.red)+Mr(e.green)+Mr(e.blue));throw new Ut(6)}function Mt(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var o=to(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}else if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?DS(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new Ut(7)}var LR=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},BR=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},NR=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},jR=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function Rr(e){if(typeof e!="object")throw new Ut(8);if(BR(e))return Mt(e);if(LR(e))return DS(e);if(jR(e))return IR(e);if(NR(e))return PR(e);throw new Ut(8)}function kS(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):kS(e,t,n)}}function ct(e){return kS(e,e.length,[])}function MR(e,t){if(t==="transparent")return t;var r=Tr(t);return Rr(et({},r,{hue:r.hue+parseFloat(e)}))}ct(MR);function co(e,t,r){return Math.max(e,Math.min(t,r))}function zR(e,t){if(t==="transparent")return t;var r=Tr(t);return Rr(et({},r,{lightness:co(0,1,r.lightness-parseFloat(e))}))}var HR=ct(zR),Nt=HR;function UR(e,t){if(t==="transparent")return t;var r=Tr(t);return Rr(et({},r,{saturation:co(0,1,r.saturation-parseFloat(e))}))}ct(UR);function WR(e,t){if(t==="transparent")return t;var r=Tr(t);return Rr(et({},r,{lightness:co(0,1,r.lightness+parseFloat(e))}))}var VR=ct(WR),zr=VR;function qR(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var n=to(t),o=et({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),a=to(r),i=et({},a,{alpha:typeof a.alpha=="number"?a.alpha:1}),l=o.alpha-i.alpha,s=parseFloat(e)*2-1,u=s*l===-1?s:s+l,d=1+s*l,p=(u/d+1)/2,c=1-p,f={red:Math.floor(o.red*p+i.red*c),green:Math.floor(o.green*p+i.green*c),blue:Math.floor(o.blue*p+i.blue*c),alpha:o.alpha*parseFloat(e)+i.alpha*(1-parseFloat(e))};return Mt(f)}var GR=ct(qR),OS=GR;function YR(e,t){if(t==="transparent")return t;var r=to(t),n=typeof r.alpha=="number"?r.alpha:1,o=et({},r,{alpha:co(0,1,(n*100+parseFloat(e)*100)/100)});return Mt(o)}var KR=ct(YR),Fa=KR;function XR(e,t){if(t==="transparent")return t;var r=Tr(t);return Rr(et({},r,{saturation:co(0,1,r.saturation+parseFloat(e))}))}ct(XR);function ZR(e,t){return t==="transparent"?t:Rr(et({},Tr(t),{hue:parseFloat(e)}))}ct(ZR);function JR(e,t){return t==="transparent"?t:Rr(et({},Tr(t),{lightness:parseFloat(e)}))}ct(JR);function QR(e,t){return t==="transparent"?t:Rr(et({},Tr(t),{saturation:parseFloat(e)}))}ct(QR);function e6(e,t){return t==="transparent"?t:OS(parseFloat(e),"rgb(0, 0, 0)",t)}ct(e6);function t6(e,t){return t==="transparent"?t:OS(parseFloat(e),"rgb(255, 255, 255)",t)}ct(t6);function r6(e,t){if(t==="transparent")return t;var r=to(t),n=typeof r.alpha=="number"?r.alpha:1,o=et({},r,{alpha:co(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return Mt(o)}var n6=ct(r6),ye=n6,o6=T.div(we,({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:ye(.3,e.color.defaultText),fontSize:e.typography.size.s2})),FS=e=>h.createElement(o6,{...e,className:"docblock-emptyblock sb-unstyled"}),a6=T(hl)(({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"}})),i6=T.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"})),_a=T.div(({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${gu}`]:{margin:0}})),l6=()=>h.createElement(i6,null,h.createElement(_a,null),h.createElement(_a,{style:{width:"80%"}}),h.createElement(_a,{style:{width:"30%"}}),h.createElement(_a,{style:{width:"80%"}})),_S=({isLoading:e,error:t,language:r,code:n,dark:o,format:a=!0,...i})=>{let{typography:l}=jb();if(e)return h.createElement(l6,null);if(t)return h.createElement(FS,null,t);let s=h.createElement(a6,{bordered:!0,copyable:!0,format:a,language:r??"jsx",className:"docblock-source sb-unstyled",...i},n);if(typeof o>"u")return s;let u=o?pu.dark:pu.light;return h.createElement(Mb,{theme:fu({...u,fontCode:l.fonts.mono,fontBase:l.fonts.base})},s)},Oe=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,up=600,s6=T.h1(we,({theme:e})=>({color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${up}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),u6=T.h2(we,({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${up}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:ye(.25,e.color.defaultText)})),c6=T.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"},r={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"}},n={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"?ye(.1,e.color.defaultText):ye(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",minWidth:0,[Oe("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}},[Oe("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}},[Oe("div")]:t,[Oe("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}},[Oe("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[Oe("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[Oe("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[Oe("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[Oe("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[Oe("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[Oe("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[Oe("img")]:{maxWidth:"100%"},[Oe("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[Oe("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[Oe("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[Oe("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"}},[Oe("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"}}},[Oe("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}},[Oe("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),d6=T.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: ${up}px)`]:{}})),p6=({children:e,toc:t})=>h.createElement(d6,{className:"sbdocs sbdocs-wrapper"},t,h.createElement(c6,{className:"sbdocs sbdocs-content"},e)),Cl=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}`}),{window:f6}=globalThis,g6=class extends b.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=f6.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:r,allowFullScreen:n,scale:o,...a}=this.props;return h.createElement("iframe",{id:e,title:t,src:r,...n?{allow:"fullscreen"}:{},loading:"lazy",...a})}},TS=b.createContext({scale:1}),{PREVIEW_URL:m6}=globalThis,h6=m6||"iframe.html",ec=({story:e,primary:t})=>`story--${e.id}${t?"--primary":""}`,y6=e=>{let t=b.useRef(),[r,n]=b.useState(!0),[o,a]=b.useState(),{story:i,height:l,autoplay:s,forceInitialArgs:u,renderStoryToElement:d}=e;return b.useEffect(()=>{if(!(i&&t.current))return()=>{};let p=t.current,c=d(i,p,{showMain:()=>{},showError:({title:f,description:m})=>a(new Error(`${f} - ${m}`)),showException:f=>a(f)},{autoplay:s,forceInitialArgs:u});return n(!1),()=>{Promise.resolve().then(()=>c())}},[s,d,i]),o?h.createElement("pre",null,h.createElement(nS,{error:o})):h.createElement(h.Fragment,null,l?h.createElement("style",null,`#${ec(e)} { min-height: ${l}; transform: translateZ(0); overflow: auto }`):null,r&&h.createElement(RS,null),h.createElement("div",{ref:t,id:`${ec(e)}-inner`,"data-name":i.name}))},b6=({story:e,height:t="500px"})=>h.createElement("div",{style:{width:"100%",height:t}},h.createElement(TS.Consumer,null,({scale:r})=>h.createElement(g6,{key:"iframe",id:`iframe--${e.id}`,title:e.name,src:xS(h6,e.id,{viewMode:"story"}),allowFullScreen:!0,scale:r,style:{width:"100%",height:"100%",border:"0 none"}}))),v6=T.strong(({theme:e})=>({color:e.color.orange})),x6=e=>{let{inline:t,story:r}=e;return t&&!e.autoplay&&r.usesMount?h.createElement(v6,null,"This story mounts inside of play. Set"," ",h.createElement("a",{href:"https://storybook.js.org/docs/api/doc-blocks/doc-block-story?ref=ui#autoplay"},"autoplay")," ","to true to view this story."):h.createElement("div",{id:ec(e),className:"sb-story sb-unstyled","data-story-block":"true"},t?h.createElement(y6,{...e}):h.createElement(b6,{...e}))},RS=()=>h.createElement(bS,null),E6=T(wl)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),w6=T.div({display:"flex",alignItems:"center",gap:4}),S6=T.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`})),C6=({isLoading:e,storyId:t,baseUrl:r,zoom:n,resetZoom:o,...a})=>h.createElement(E6,{...a},h.createElement(w6,{key:"left"},e?[1,2,3].map(i=>h.createElement(S6,{key:i})):h.createElement(h.Fragment,null,h.createElement($r,{key:"zoomin",onClick:i=>{i.preventDefault(),n(.8)},title:"Zoom in"},h.createElement(JT,null)),h.createElement($r,{key:"zoomout",onClick:i=>{i.preventDefault(),n(1.25)},title:"Zoom out"},h.createElement(QT,null)),h.createElement($r,{key:"zoomreset",onClick:i=>{i.preventDefault(),o()},title:"Reset zoom"},h.createElement(eR,null))))),$6=T.div(({isColumn:e,columns:t,layout:r})=>({display:e||!t?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:e?"column":"row","& .innerZoomElementWrapper > *":e?{width:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:r!=="fullscreen"?"calc(100% - 20px)":"100%",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)`}}:{}),km=T(_S)(({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)":Nt(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Nt(.05,e.background.content)}})),A6=T.div(({theme:e,withSource:t,isExpanded:r})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...Cl(e),borderBottomLeftRadius:t&&r&&0,borderBottomRightRadius:t&&r&&0,borderBottomWidth:r&&0,"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40}),D6=(e,t,r)=>{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:()=>r(!1)}};case t:return{source:h.createElement(km,{...e,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>r(!1)}};default:return{source:h.createElement(km,{...e,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>r(!0)}}}};function k6(e){if(b.Children.count(e)===1){let t=e;if(t.props)return t.props.id}return null}var O6=T(C6)({position:"absolute",top:0,left:0,right:0,height:40}),F6=T.div({overflow:"hidden",position:"relative"}),PS=({isLoading:e,isColumn:t,columns:r,children:n,withSource:o,withToolbar:a=!1,isExpanded:i=!1,additionalActions:l,className:s,layout:u="padded",inline:d=!1,...p})=>{let[c,f]=b.useState(i),{source:m,actionItem:y}=D6(o,c,f),[x,v]=b.useState(1),C=[s].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),w=o?[y]:[],[E,$]=b.useState(l?[...l]:[]),A=[...w,...E],{window:S}=globalThis,D=b.useCallback(async k=>{let{createCopyToClipboardFunction:_}=await rh(()=>Promise.resolve().then(()=>ZT),void 0,import.meta.url);_()},[]),F=k=>{let _=S.getSelection();_&&_.type==="Range"||(k.preventDefault(),E.filter(I=>I.title==="Copied").length===0&&D(m?.props.code??"").then(()=>{$([...E,{title:"Copied",onClick:()=>{}}]),S.setTimeout(()=>$(E.filter(I=>I.title!=="Copied")),1500)}))};return h.createElement(A6,{withSource:o,withToolbar:a,...p,className:C.join(" ")},a&&h.createElement(O6,{isLoading:e,border:!0,zoom:k=>v(x*k),resetZoom:()=>v(1),storyId:k6(n),baseUrl:"./iframe.html"}),h.createElement(TS.Provider,{value:{scale:x}},h.createElement(F6,{className:"docs-story",onCopyCapture:o&&F},h.createElement($6,{isColumn:t||!Array.isArray(n),columns:r,layout:u,inline:d},h.createElement(rS.Element,{centered:u==="centered",scale:d?x:1},Array.isArray(n)?n.map((k,_)=>h.createElement("div",{key:_},k)):h.createElement("div",null,n))),h.createElement(il,{actionItems:A}))),o&&c&&m)};T(PS)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));var _6=({tabs:e,...t})=>{let r=Object.entries(e);return r.length===1?h.createElement(lc,{...r[0][1],...t}):h.createElement(yS,null,r.map((n,o)=>{let[a,i]=n,l=`prop_table_div_${a}`,s="div",u=o===0?t:{sort:t.sort};return h.createElement(s,{key:l,id:l,title:a},({active:d})=>d?h.createElement(lc,{key:`prop_table_${a}`,...i,...u}):null)}))};T.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?ye(.4,e.color.defaultText):ye(.6,e.color.defaultText)}));T.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});T.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});T.div(we,({theme:e})=>({...Cl(e),margin:"25px 0 40px",padding:"30px 20px"}));T.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));T.div(({theme:e})=>({color:e.base==="light"?ye(.2,e.color.defaultText):ye(.6,e.color.defaultText)}));T.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});T.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:e.base==="light"?ye(.4,e.color.defaultText):ye(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));T.div({display:"flex",flexDirection:"row"});T.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));T.div(({theme:e})=>({...Cl(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"}));T.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});T.div({flex:1,display:"flex",flexDirection:"row"});T.div({display:"flex",alignItems:"flex-start"});T.div({flex:"0 0 30%"});T.div({flex:1});T.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:e.base==="light"?ye(.4,e.color.defaultText):ye(.6,e.color.defaultText)}));T.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));T.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"}));T.div(({theme:e})=>({...Cl(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));T.div({display:"inline-flex",flexDirection:"row",alignItems:"center",width:"100%"});T.div({display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(140px, 1fr))",gridGap:"8px 16px",gridAutoFlow:"row dense",gridAutoRows:50});function T6(e){let t=[].forEach,r=[].some,n=typeof window<"u"&&document.body,o=" ",a,i=!0,l=0;function s(k,_){let I=_.appendChild(d(k));if(k.children.length){let L=p(k.isCollapsed);k.children.forEach(j=>{s(j,L)}),I.appendChild(L)}}function u(k,_){let I=p(!1);if(_.forEach(L=>{s(L,I)}),a=k||a,a!==null)return a.firstChild&&a.removeChild(a.firstChild),_.length===0?a:a.appendChild(I)}function d(k){let _=document.createElement("li"),I=document.createElement("a");return e.listItemClass&&_.setAttribute("class",e.listItemClass),e.onClick&&(I.onclick=e.onClick),e.includeTitleTags&&I.setAttribute("title",k.textContent),e.includeHtml&&k.childNodes.length?t.call(k.childNodes,L=>{I.appendChild(L.cloneNode(!0))}):I.textContent=k.textContent,I.setAttribute("href",`${e.basePath}#${k.id}`),I.setAttribute("class",`${e.linkClass+o}node-name--${k.nodeName}${o}${e.extraLinkClasses}`),_.appendChild(I),_}function p(k){let _=e.orderedList?"ol":"ul",I=document.createElement(_),L=e.listClass+o+e.extraListClasses;return k&&(L=L+o+e.collapsibleClass,L=L+o+e.isCollapsedClass),I.setAttribute("class",L),I}function c(){let k=S(),_=document.querySelector(e.positionFixedSelector);e.fixedSidebarOffset==="auto"&&(e.fixedSidebarOffset=a.offsetTop),k>e.fixedSidebarOffset?_.className.indexOf(e.positionFixedClass)===-1&&(_.className+=o+e.positionFixedClass):_.className=_.className.replace(o+e.positionFixedClass,"")}function f(k){let _=0;return k!==null&&(_=k.offsetTop,e.hasInnerContainers&&(_+=f(k.offsetParent))),_}function m(k,_){return k&&k.className!==_&&(k.className=_),k}function y(k,_){e.positionFixedSelector&&c();let I=k,L=_?.target?.getAttribute?_?.target?.getAttribute("href"):null,j=L&&L.charAt(0)==="#"?E(L.replace("#","")):!1,B=i||j;if(_&&l<5&&l++,B&&a&&I.length>0){let z=D(I),q=a.querySelector(`.${e.activeLinkClass}`),Y=z.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1"),W=window.location.hash.replace("#",""),G=Y,J=$();L&&j?G=L.replace("#",""):W&&W!==Y&&J&&(E(Y)||l<=2)&&(G=W);let Q=a.querySelector(`.${e.linkClass}[href="${e.basePath}#${G}"]`);if(q===Q)return;let re=a.querySelectorAll(`.${e.linkClass}`);t.call(re,Z=>{m(Z,Z.className.replace(o+e.activeLinkClass,""))});let ie=a.querySelectorAll(`.${e.listItemClass}`);t.call(ie,Z=>{m(Z,Z.className.replace(o+e.activeListItemClass,""))}),Q&&Q.className.indexOf(e.activeLinkClass)===-1&&(Q.className+=o+e.activeLinkClass);let H=Q?.parentNode;H&&H.className.indexOf(e.activeListItemClass)===-1&&(H.className+=o+e.activeListItemClass);let X=a.querySelectorAll(`.${e.listClass}.${e.collapsibleClass}`);t.call(X,Z=>{Z.className.indexOf(e.isCollapsedClass)===-1&&(Z.className+=o+e.isCollapsedClass)}),Q?.nextSibling&&Q.nextSibling.className.indexOf(e.isCollapsedClass)!==-1&&m(Q.nextSibling,Q.nextSibling.className.replace(o+e.isCollapsedClass,"")),x(Q?.parentNode.parentNode)}}function x(k){return k&&k.className.indexOf(e.collapsibleClass)!==-1&&k.className.indexOf(e.isCollapsedClass)!==-1?(m(k,k.className.replace(o+e.isCollapsedClass,"")),x(k.parentNode.parentNode)):k}function v(k){let _=k.target||k.srcElement;typeof _.className!="string"||_.className.indexOf(e.linkClass)===-1||(i=!1)}function C(){i=!0}function w(){return i}function E(k){let _=A();return(document?.getElementById(k)).offsetTop>_.offsetHeight-_.clientHeight*1.4-e.bottomModeThreshold}function $(){let k=A(),_=k.scrollHeight>k.clientHeight,I=S()+k.clientHeight>k.offsetHeight-e.bottomModeThreshold;return _&&I}function A(){let k;return e.scrollContainer&&document.querySelector(e.scrollContainer)?k=document.querySelector(e.scrollContainer):k=document.documentElement||n,k}function S(){return A()?.scrollTop||0}function D(k,_=S()){let I;return r.call(k,(L,j)=>{if(f(L)>_+e.headingsOffset+10){let B=j===0?j:j-1;return I=k[B],!0}if(j===k.length-1)return I=k[k.length-1],!0}),I}function F(k){let _=S(),I=D(k,_),L=$();if((!I||_<5)&&!L)window.location.hash==="#"||window.location.hash===""||window.history.pushState(null,null,"#");else if(I&&!L){let j=`#${I.id}`;window.location.hash!==j&&window.history.pushState(null,null,j)}}return{enableTocAnimation:C,disableTocAnimation:v,render:u,updateToc:y,getCurrentlyHighlighting:w,getTopHeader:D,getScrollTop:S,updateUrlHashForHeader:F}}var R6={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 P6(e){let t=[].reduce;function r(u){return u[u.length-1]}function n(u){return+u.nodeName.toUpperCase().replace("H","")}function o(u){try{return u instanceof window.HTMLElement||u instanceof window.parent.HTMLElement}catch{return u instanceof window.HTMLElement}}function a(u){if(!o(u))return u;if(e.ignoreHiddenElements&&(!u.offsetHeight||!u.offsetParent))return null;let d=u.getAttribute("data-heading-label")||(e.headingLabelCallback?String(e.headingLabelCallback(u.innerText)):(u.innerText||u.textContent).trim()),p={id:u.id,children:[],nodeName:u.nodeName,headingLevel:n(u),textContent:d};return e.includeHtml&&(p.childNodes=u.childNodes),e.headingObjectCallback?e.headingObjectCallback(p,u):p}function i(u,d){let p=a(u),c=p.headingLevel,f=d,m=r(f),y=m?m.headingLevel:0,x=c-y;for(;x>0&&(m=r(f),!(m&&c===m.headingLevel));)m&&m.children!==void 0&&(f=m.children),x--;return c>=e.collapseDepth&&(p.isCollapsed=!0),f.push(p),f}function l(u,d){let p=d;e.ignoreSelector&&(p=d.split(",").map(function(c){return`${c.trim()}:not(${e.ignoreSelector})`}));try{return u.querySelectorAll(p)}catch{return console.warn(`Headers not found with selector: ${p}`),null}}function s(u){return t.call(u,function(d,p){let c=a(p);return c&&i(c,d.nest),d},{nest:[]})}return{nestHeadingsArray:s,selectHeadings:l}}function I6(e){var t=e.duration,r=e.offset;if(typeof window>"u"||typeof location>"u")return;var n=location.hash?i(location.href):location.href;o();function o(){document.body.addEventListener("click",s,!1);function s(u){!a(u.target)||u.target.className.indexOf("no-smooth-scroll")>-1||u.target.href.charAt(u.target.href.length-2)==="#"&&u.target.href.charAt(u.target.href.length-1)==="!"||u.target.className.indexOf(e.linkClass)===-1||L6(u.target.hash,{duration:t,offset:r,callback:function(){l(u.target.hash)}})}}function a(s){return s.tagName.toLowerCase()==="a"&&(s.hash.length>0||s.href.charAt(s.href.length-1)==="#")&&(i(s.href)===n||i(s.href)+"#"===n)}function i(s){return s.slice(0,s.lastIndexOf("#"))}function l(s){var u=document.getElementById(s.substring(1));u&&(/^(?:a|select|input|button|textarea)$/i.test(u.tagName)||(u.tabIndex=-1),u.focus())}}function L6(e,t){var r=window.pageYOffset,n={duration:t.duration,offset:t.offset||0,callback:t.callback,easing:t.easing||p},o=document.querySelector('[id="'+decodeURI(e).split("#").join("")+'"]')||document.querySelector('[id="'+e.split("#").join("")+'"]'),a=typeof e=="string"?n.offset+(e?o&&o.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):e,i=typeof n.duration=="function"?n.duration(a):n.duration,l,s;requestAnimationFrame(function(c){l=c,u(c)});function u(c){s=c-l,window.scrollTo(0,n.easing(s,r,a,i)),s<i?requestAnimationFrame(u):d()}function d(){window.scrollTo(0,r+a),typeof n.callback=="function"&&n.callback()}function p(c,f,m,y){return c/=y/2,c<1?m/2*c*c+f:(c--,-m/2*(c*(c-2)-1)+f)}}function B6(e){let t=e.tocScrollingWrapper||e.tocElement||document.querySelector(e.tocSelector);if(t&&t.scrollHeight>t.clientHeight){let r=t.querySelector(`.${e.activeListItemClass}`);if(r){let n=r.offsetTop-e.tocScrollOffset;t.scrollTop=n>0?n:0}}}var ae={},xt,ws,Nr,wt,Wo;function IS(e){let t=!1;ae=M6(R6,e||{}),ae.scrollSmooth&&(ae.duration=ae.scrollSmoothDuration,ae.offset=ae.scrollSmoothOffset,I6(ae)),xt=T6(ae),ws=P6(ae),cp();let r=H6(ae);if(r===null)return;let n=LS(ae);if(n===null||(Nr=ws.selectHeadings(r,ae.headingSelector),Nr===null))return;let o=ws.nestHeadingsArray(Nr).nest;if(!ae.skipRendering)xt.render(n,o);else return this;let a=!1,i=ae.scrollHandlerTimeout||ae.throttleTimeout;wt=((s,u)=>z6(s,u,ae.scrollHandlerType))(s=>{xt.updateToc(Nr,s),!ae.disableTocScrollSync&&!a&&B6(ae),ae.enableUrlHashUpdateOnScroll&&t&&xt.getCurrentlyHighlighting()&&xt.updateUrlHashForHeader(Nr);let u=s?.target?.scrollingElement?.scrollTop===0;(s&&(s.eventPhase===0||s.currentTarget===null)||u)&&(xt.updateToc(Nr),ae.scrollEndCallback?.(s))},i),t||(wt(),t=!0),window.onhashchange=window.onscrollend=s=>{wt(s)},ae.scrollContainer&&document.querySelector(ae.scrollContainer)?(document.querySelector(ae.scrollContainer).addEventListener("scroll",wt,!1),document.querySelector(ae.scrollContainer).addEventListener("resize",wt,!1)):(document.addEventListener("scroll",wt,!1),document.addEventListener("resize",wt,!1));let l=null;Wo=tc(s=>{a=!0,ae.scrollSmooth&&xt.disableTocAnimation(s),xt.updateToc(Nr,s),l&&clearTimeout(l),l=setTimeout(()=>{xt.enableTocAnimation()},ae.scrollSmoothDuration),setTimeout(()=>{a=!1},ae.scrollSmoothDuration+100)},ae.throttleTimeout),ae.scrollContainer&&document.querySelector(ae.scrollContainer)?document.querySelector(ae.scrollContainer).addEventListener("click",Wo,!1):document.addEventListener("click",Wo,!1)}function cp(){let e=LS(ae);e!==null&&(ae.skipRendering||e&&(e.innerHTML=""),ae.scrollContainer&&document.querySelector(ae.scrollContainer)?(document.querySelector(ae.scrollContainer).removeEventListener("scroll",wt,!1),document.querySelector(ae.scrollContainer).removeEventListener("resize",wt,!1),xt&&document.querySelector(ae.scrollContainer).removeEventListener("click",Wo,!1)):(document.removeEventListener("scroll",wt,!1),document.removeEventListener("resize",wt,!1),xt&&document.removeEventListener("click",Wo,!1)))}function N6(e){cp(),IS(e||ae)}var j6=Object.prototype.hasOwnProperty;function M6(...e){let t={};for(let r=0;r<e.length;r++){let n=e[r];for(let o in n)j6.call(n,o)&&(t[o]=n[o])}return t}function tc(e,t,r){t||(t=250);let n,o;return function(...a){let i=this,l=+new Date;n&&l<n+t?(clearTimeout(o),o=setTimeout(()=>{n=l,e.apply(i,a)},t)):(n=l,e.apply(i,a))}}function Om(e,t){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>e.apply(this,n),t)}}function z6(e,t,r="auto"){switch(r){case"debounce":return Om(e,t);case"throttle":return tc(e,t);default:return t<334?Om(e,t):tc(e,t)}}function H6(e){try{return e.contentElement||document.querySelector(e.contentSelector)}catch{return console.warn(`Contents element not found: ${e.contentSelector}`),null}}function LS(e){try{return e.tocElement||document.querySelector(e.tocSelector)}catch{return console.warn(`TOC element not found: ${e.tocSelector}`),null}}var U6={destroy:cp,init:IS,refresh:N6},Fm=U6,W6=T.aside(()=>({width:"10rem","@media (max-width: 768px)":{display:"none"}})),V6=T.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"}})),q6=T.p(({theme:e})=>({fontWeight:600,fontSize:"0.875em",color:e.textColor,textTransform:"uppercase",marginBottom:10})),G6=({headingId:e,title:t})=>typeof t=="string"||!t?h.createElement(q6,{as:"h2",id:e,className:t?"":"sb-sr-only"},t||"Table of contents"):h.createElement("div",{id:e},t),Y6=({title:e,disable:t,headingSelector:r,contentsSelector:n,ignoreSelector:o,unsafeTocbotOptions:a,channel:i,className:l})=>{b.useEffect(()=>{if(t)return()=>{};let u={tocSelector:".toc-wrapper",contentSelector:n??".sbdocs-content",headingSelector:r??"h3",ignoreSelector:o??".docs-story *, .skip-toc",headingsOffset:40,scrollSmoothOffset:-40,orderedList:!1,onClick:p=>{if(p.preventDefault(),p.currentTarget instanceof HTMLAnchorElement){let[,c]=p.currentTarget.href.split("#");c&&i.emit(CS,`#${c}`)}},...a},d=setTimeout(()=>Fm.init(u),100);return()=>{clearTimeout(d),Fm.destroy()}},[i,t,o,n,r,a]);let s=b.useId();return h.createElement(W6,{className:l},t?null:h.createElement(V6,{"aria-labelledby":s},h.createElement(G6,{headingId:s,title:e}),h.createElement("div",{className:"toc-wrapper"})))};function Ur(){return Ur=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ur.apply(this,arguments)}var K6=["children","options"],ee={blockQuote:"0",breakLine:"1",breakThematic:"2",codeBlock:"3",codeFenced:"4",codeInline:"5",footnote:"6",footnoteReference:"7",gfmTask:"8",heading:"9",headingSetext:"10",htmlBlock:"11",htmlComment:"12",htmlSelfClosing:"13",image:"14",link:"15",linkAngleBraceStyleDetector:"16",linkBareUrlDetector:"17",linkMailtoDetector:"18",newlineCoalescer:"19",orderedList:"20",paragraph:"21",ref:"22",refImage:"23",refLink:"24",table:"25",text:"27",textBolded:"28",textEmphasized:"29",textEscaped:"30",textMarked:"31",textStrikethroughed:"32",unorderedList:"33"},_m;(function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"})(_m||(_m={}));var Tm=["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"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{class:"className",for:"htmlFor"}),Rm={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},X6=["style","script"],Z6=["src","href","data","formAction","srcDoc","action"],J6=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,Q6=/mailto:/i,eP=/\n{2,}$/,BS=/^(\s*>[\s\S]*?)(?=\n\n|$)/,tP=/^ *> ?/gm,rP=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,nP=/^ {2,}\n/,oP=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,NS=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,jS=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,aP=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,iP=/^(?:\n *)*\n/,lP=/\r\n?/g,sP=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,uP=/^\[\^([^\]]+)]/,cP=/\f/g,dP=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,pP=/^\s*?\[(x|\s)\]/,MS=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,zS=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,HS=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,rc=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,fP=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,US=/^<!--[\s\S]*?(?:-->)/,gP=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,nc=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,mP=/^\{.*\}$/,hP=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,yP=/^<([^ >]+@[^ >]+)>/,bP=/^<([^ >]+:\/[^ >]+)>/,vP=/-([a-z])?/gi,WS=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,xP=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,EP=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,wP=/^\[([^\]]*)\] ?\[([^\]]*)\]/,SP=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,CP=/\t/g,$P=/(^ *\||\| *$)/g,AP=/^ *:-+: *$/,DP=/^ *:-+ *$/,kP=/^ *-+: *$/,$l="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",OP=new RegExp(`^([*_])\\1${$l}\\1\\1(?!\\1)`),FP=new RegExp(`^([*_])${$l}\\1(?!\\1)`),_P=new RegExp(`^(==)${$l}\\1`),TP=new RegExp(`^(~~)${$l}\\1`),RP=/^\\([^0-9A-Za-z\s])/,Pm=/\\([^0-9A-Za-z\s])/g,PP=/^([\s\S](?:(?! |[0-9]\.)[^=*_~\-\n<`\\\[!])*)/,IP=/^\n+/,LP=/^([ \t]*)/,BP=/\\([^\\])/g,NP=/(?:^|\n)( *)$/,dp="(?:\\d+\\.)",pp="(?:[*+-])";function VS(e){return"( *)("+(e===1?dp:pp)+") +"}var qS=VS(1),GS=VS(2);function YS(e){return new RegExp("^"+(e===1?qS:GS))}var jP=YS(1),MP=YS(2);function KS(e){return new RegExp("^"+(e===1?qS:GS)+"[^\\n]*(?:\\n(?!\\1"+(e===1?dp:pp)+" )[^\\n]*)*(\\n|$)","gm")}var zP=KS(1),HP=KS(2);function XS(e){let t=e===1?dp:pp;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}var ZS=XS(1),JS=XS(2);function Im(e,t){let r=t===1,n=r?ZS:JS,o=r?zP:HP,a=r?jP:MP;return{match:ro(function(i,l){let s=NP.exec(l.prevCapture);return s&&(l.list||!l.inline&&!l.simple)?n.exec(i=s[1]+i):null}),order:1,parse(i,l,s){let u=r?+i[2]:void 0,d=i[0].replace(eP,`
1198
+ `).match(o),p=!1;return{items:d.map(function(c,f){let m=a.exec(c)[0].length,y=new RegExp("^ {1,"+m+"}","gm"),x=c.replace(y,"").replace(a,""),v=f===d.length-1,C=x.indexOf(`
1199
+
1200
+ `)!==-1||v&&p;p=C;let w=s.inline,E=s.list,$;s.list=!0,C?(s.inline=!1,$=Qo(x)+`
1201
+
1202
+ `):(s.inline=!0,$=Qo(x));let A=l($,s);return s.inline=w,s.list=E,A}),ordered:r,start:u}},render:(i,l,s)=>e(i.ordered?"ol":"ul",{key:s.key,start:i.type===ee.orderedList?i.start:void 0},i.items.map(function(u,d){return e("li",{key:d},l(u,s))}))}}var UP=new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),WP=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,QS=[BS,NS,jS,MS,HS,zS,WS,ZS,JS],VP=[...QS,/^[^\n]+(?: \n|\n{2,})/,rc,US,nc];function Qo(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function Co(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 qP(e){return kP.test(e)?"right":AP.test(e)?"center":DP.test(e)?"left":null}function Lm(e,t,r,n){let o=r.inTable;r.inTable=!0;let a=[[]],i="";function l(){if(!i)return;let s=a[a.length-1];s.push.apply(s,t(i,r)),i=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((s,u,d)=>{s.trim()==="|"&&(l(),n)?u!==0&&u!==d.length-1&&a.push([]):i+=s}),l(),r.inTable=o,a}function GP(e,t,r){r.inline=!0;let n=e[2]?e[2].replace($P,"").split("|").map(qP):[],o=e[3]?(function(i,l,s){return i.trim().split(`
1203
+ `).map(function(u){return Lm(u,l,s,!0)})})(e[3],t,r):[],a=Lm(e[1],t,r,!!o.length);return r.inline=!1,o.length?{align:n,cells:o,header:a,type:ee.table}:{children:a,type:ee.paragraph}}function Bm(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function ro(e){return e.inline=1,e}function fr(e){return ro(function(t,r){return r.inline?e.exec(t):null})}function gr(e){return ro(function(t,r){return r.inline||r.simple?e.exec(t):null})}function Xt(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function $o(e){return ro(function(t){return e.exec(t)})}function YP(e,t){if(t.inline||t.simple)return null;let r="";e.split(`
1204
+ `).every(o=>(o+=`
1205
+ `,!QS.some(a=>a.test(o))&&(r+=o,!!o.trim())));let n=Qo(r);return n==""?null:[r,,n]}var KP=/(javascript|vbscript|data(?!:image)):/i;function XP(e){try{let t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(KP.test(t))return null}catch{return null}return e}function Nm(e){return e.replace(BP,"$1")}function Xa(e,t,r){let n=r.inline||!1,o=r.simple||!1;r.inline=!0,r.simple=!0;let a=e(t,r);return r.inline=n,r.simple=o,a}function ZP(e,t,r){let n=r.inline||!1,o=r.simple||!1;r.inline=!1,r.simple=!0;let a=e(t,r);return r.inline=n,r.simple=o,a}function JP(e,t,r){let n=r.inline||!1;r.inline=!1;let o=e(t,r);return r.inline=n,o}var Ss=(e,t,r)=>({children:Xa(t,e[2],r)});function Cs(){return{}}function $s(){return null}function QP(...e){return e.filter(Boolean).join(" ")}function As(e,t,r){let n=e,o=t.split(".");for(;o.length&&(n=n[o[0]],n!==void 0);)o.shift();return n||r}function e8(e="",t={}){function r(c,f,...m){let y=As(t.overrides,`${c}.props`,{});return t.createElement((function(x,v){let C=As(v,x);return C?typeof C=="function"||typeof C=="object"&&"render"in C?C:As(v,`${x}.component`,x):x})(c,t.overrides),Ur({},f,y,{className:QP(f?.className,y.className)||void 0}),...m)}function n(c){c=c.replace(dP,"");let f=!1;t.forceInline?f=!0:t.forceBlock||(f=SP.test(c)===!1);let m=u(s(f?c:`${Qo(c).replace(IP,"")}
1206
+
1207
+ `,{inline:f}));for(;typeof m[m.length-1]=="string"&&!m[m.length-1].trim();)m.pop();if(t.wrapper===null)return m;let y=t.wrapper||(f?"span":"div"),x;if(m.length>1||t.forceWrapper)x=m;else{if(m.length===1)return x=m[0],typeof x=="string"?r("span",{key:"outer"},x):x;x=null}return t.createElement(y,{key:"outer"},x)}function o(c,f){let m=f.match(J6);return m?m.reduce(function(y,x){let v=x.indexOf("=");if(v!==-1){let C=(function(A){return A.indexOf("-")!==-1&&A.match(gP)===null&&(A=A.replace(vP,function(S,D){return D.toUpperCase()})),A})(x.slice(0,v)).trim(),w=(function(A){let S=A[0];return(S==='"'||S==="'")&&A.length>=2&&A[A.length-1]===S?A.slice(1,-1):A})(x.slice(v+1).trim()),E=Tm[C]||C;if(E==="ref")return y;let $=y[E]=(function(A,S,D,F){return S==="style"?(function(k){let _=[],I="",L=!1,j=!1,B="";if(!k)return _;for(let q=0;q<k.length;q++){let Y=k[q];if(Y!=='"'&&Y!=="'"||L||(j?Y===B&&(j=!1,B=""):(j=!0,B=Y)),Y==="("&&I.endsWith("url")?L=!0:Y===")"&&L&&(L=!1),Y!==";"||j||L)I+=Y;else{let W=I.trim();if(W){let G=W.indexOf(":");if(G>0){let J=W.slice(0,G).trim(),Q=W.slice(G+1).trim();_.push([J,Q])}}I=""}}let z=I.trim();if(z){let q=z.indexOf(":");if(q>0){let Y=z.slice(0,q).trim(),W=z.slice(q+1).trim();_.push([Y,W])}}return _})(D).reduce(function(k,[_,I]){return k[_.replace(/(-[a-z])/g,L=>L[1].toUpperCase())]=F(I,A,_),k},{}):Z6.indexOf(S)!==-1?F(D,A,S):(D.match(mP)&&(D=D.slice(1,D.length-1)),D==="true"||D!=="false"&&D)})(c,C,w,t.sanitizer);typeof $=="string"&&(rc.test($)||nc.test($))&&(y[E]=n($.trim()))}else x!=="style"&&(y[Tm[x]||x]=!0);return y},{}):null}t.overrides=t.overrides||{},t.sanitizer=t.sanitizer||XP,t.slugify=t.slugify||Co,t.namedCodesToUnicode=t.namedCodesToUnicode?Ur({},Rm,t.namedCodesToUnicode):Rm,t.createElement=t.createElement||b.createElement;let a=[],i={},l={[ee.blockQuote]:{match:Xt(BS),order:1,parse(c,f,m){let[,y,x]=c[0].replace(tP,"").match(rP);return{alert:y,children:f(x,m)}},render(c,f,m){let y={key:m.key};return c.alert&&(y.className="markdown-alert-"+t.slugify(c.alert.toLowerCase(),Co),c.children.unshift({attrs:{},children:[{type:ee.text,text:c.alert}],noInnerParse:!0,type:ee.htmlBlock,tag:"header"})),r("blockquote",y,f(c.children,m))}},[ee.breakLine]:{match:$o(nP),order:1,parse:Cs,render:(c,f,m)=>r("br",{key:m.key})},[ee.breakThematic]:{match:Xt(oP),order:1,parse:Cs,render:(c,f,m)=>r("hr",{key:m.key})},[ee.codeBlock]:{match:Xt(jS),order:0,parse:c=>({lang:void 0,text:Qo(c[0].replace(/^ {4}/gm,"")).replace(Pm,"$1")}),render:(c,f,m)=>r("pre",{key:m.key},r("code",Ur({},c.attrs,{className:c.lang?`lang-${c.lang}`:""}),c.text))},[ee.codeFenced]:{match:Xt(NS),order:0,parse:c=>({attrs:o("code",c[3]||""),lang:c[2]||void 0,text:c[4],type:ee.codeBlock})},[ee.codeInline]:{match:gr(aP),order:3,parse:c=>({text:c[2].replace(Pm,"$1")}),render:(c,f,m)=>r("code",{key:m.key},c.text)},[ee.footnote]:{match:Xt(sP),order:0,parse:c=>(a.push({footnote:c[2],identifier:c[1]}),{}),render:$s},[ee.footnoteReference]:{match:fr(uP),order:1,parse:c=>({target:`#${t.slugify(c[1],Co)}`,text:c[1]}),render:(c,f,m)=>r("a",{key:m.key,href:t.sanitizer(c.target,"a","href")},r("sup",{key:m.key},c.text))},[ee.gfmTask]:{match:fr(pP),order:1,parse:c=>({completed:c[1].toLowerCase()==="x"}),render:(c,f,m)=>r("input",{checked:c.completed,key:m.key,readOnly:!0,type:"checkbox"})},[ee.heading]:{match:Xt(t.enforceAtxHeadings?zS:MS),order:1,parse:(c,f,m)=>({children:Xa(f,c[2],m),id:t.slugify(c[2],Co),level:c[1].length}),render:(c,f,m)=>r(`h${c.level}`,{id:c.id,key:m.key},f(c.children,m))},[ee.headingSetext]:{match:Xt(HS),order:0,parse:(c,f,m)=>({children:Xa(f,c[1],m),level:c[2]==="="?1:2,type:ee.heading})},[ee.htmlBlock]:{match:$o(rc),order:1,parse(c,f,m){let[,y]=c[3].match(LP),x=new RegExp(`^${y}`,"gm"),v=c[3].replace(x,""),C=(w=v,VP.some(D=>D.test(w))?JP:Xa);var w;let E=c[1].toLowerCase(),$=X6.indexOf(E)!==-1,A=($?E:c[1]).trim(),S={attrs:o(A,c[2]),noInnerParse:$,tag:A};return m.inAnchor=m.inAnchor||E==="a",$?S.text=c[3]:S.children=C(f,v,m),m.inAnchor=!1,S},render:(c,f,m)=>r(c.tag,Ur({key:m.key},c.attrs),c.text||(c.children?f(c.children,m):""))},[ee.htmlSelfClosing]:{match:$o(nc),order:1,parse(c){let f=c[1].trim();return{attrs:o(f,c[2]||""),tag:f}},render:(c,f,m)=>r(c.tag,Ur({},c.attrs,{key:m.key}))},[ee.htmlComment]:{match:$o(US),order:1,parse:()=>({}),render:$s},[ee.image]:{match:gr(WP),order:1,parse:c=>({alt:c[1],target:Nm(c[2]),title:c[3]}),render:(c,f,m)=>r("img",{key:m.key,alt:c.alt||void 0,title:c.title||void 0,src:t.sanitizer(c.target,"img","src")})},[ee.link]:{match:fr(UP),order:3,parse:(c,f,m)=>({children:ZP(f,c[1],m),target:Nm(c[2]),title:c[3]}),render:(c,f,m)=>r("a",{key:m.key,href:t.sanitizer(c.target,"a","href"),title:c.title},f(c.children,m))},[ee.linkAngleBraceStyleDetector]:{match:fr(bP),order:0,parse:c=>({children:[{text:c[1],type:ee.text}],target:c[1],type:ee.link})},[ee.linkBareUrlDetector]:{match:ro((c,f)=>f.inAnchor||t.disableAutoLink?null:fr(hP)(c,f)),order:0,parse:c=>({children:[{text:c[1],type:ee.text}],target:c[1],title:void 0,type:ee.link})},[ee.linkMailtoDetector]:{match:fr(yP),order:0,parse(c){let f=c[1],m=c[1];return Q6.test(m)||(m="mailto:"+m),{children:[{text:f.replace("mailto:",""),type:ee.text}],target:m,type:ee.link}}},[ee.orderedList]:Im(r,1),[ee.unorderedList]:Im(r,2),[ee.newlineCoalescer]:{match:Xt(iP),order:3,parse:Cs,render:()=>`
1208
+ `},[ee.paragraph]:{match:ro(YP),order:3,parse:Ss,render:(c,f,m)=>r("p",{key:m.key},f(c.children,m))},[ee.ref]:{match:fr(xP),order:0,parse:c=>(i[c[1]]={target:c[2],title:c[4]},{}),render:$s},[ee.refImage]:{match:gr(EP),order:0,parse:c=>({alt:c[1]||void 0,ref:c[2]}),render:(c,f,m)=>i[c.ref]?r("img",{key:m.key,alt:c.alt,src:t.sanitizer(i[c.ref].target,"img","src"),title:i[c.ref].title}):null},[ee.refLink]:{match:fr(wP),order:0,parse:(c,f,m)=>({children:f(c[1],m),fallbackChildren:c[0],ref:c[2]}),render:(c,f,m)=>i[c.ref]?r("a",{key:m.key,href:t.sanitizer(i[c.ref].target,"a","href"),title:i[c.ref].title},f(c.children,m)):r("span",{key:m.key},c.fallbackChildren)},[ee.table]:{match:Xt(WS),order:1,parse:GP,render(c,f,m){let y=c;return r("table",{key:m.key},r("thead",null,r("tr",null,y.header.map(function(x,v){return r("th",{key:v,style:Bm(y,v)},f(x,m))}))),r("tbody",null,y.cells.map(function(x,v){return r("tr",{key:v},x.map(function(C,w){return r("td",{key:w,style:Bm(y,w)},f(C,m))}))})))}},[ee.text]:{match:$o(PP),order:4,parse:c=>({text:c[0].replace(fP,(f,m)=>t.namedCodesToUnicode[m]?t.namedCodesToUnicode[m]:f)}),render:c=>c.text},[ee.textBolded]:{match:gr(OP),order:2,parse:(c,f,m)=>({children:f(c[2],m)}),render:(c,f,m)=>r("strong",{key:m.key},f(c.children,m))},[ee.textEmphasized]:{match:gr(FP),order:3,parse:(c,f,m)=>({children:f(c[2],m)}),render:(c,f,m)=>r("em",{key:m.key},f(c.children,m))},[ee.textEscaped]:{match:gr(RP),order:1,parse:c=>({text:c[1],type:ee.text})},[ee.textMarked]:{match:gr(_P),order:3,parse:Ss,render:(c,f,m)=>r("mark",{key:m.key},f(c.children,m))},[ee.textStrikethroughed]:{match:gr(TP),order:3,parse:Ss,render:(c,f,m)=>r("del",{key:m.key},f(c.children,m))}};t.disableParsingRawHTML===!0&&(delete l[ee.htmlBlock],delete l[ee.htmlSelfClosing]);let s=(function(c){let f=Object.keys(c);function m(y,x){let v,C,w=[],E="",$="";for(x.prevCapture=x.prevCapture||"";y;){let A=0;for(;A<f.length;){if(E=f[A],v=c[E],x.inline&&!v.match.inline){A++;continue}let S=v.match(y,x);if(S){$=S[0],x.prevCapture+=$,y=y.substring($.length),C=v.parse(S,m,x),C.type==null&&(C.type=E),w.push(C);break}A++}}return x.prevCapture="",w}return f.sort(function(y,x){let v=c[y].order,C=c[x].order;return v!==C?v-C:y<x?-1:1}),function(y,x){return m((function(v){return v.replace(lP,`
1209
+ `).replace(cP,"").replace(CP," ")})(y),x)}})(l),u=(d=(function(c,f){return function(m,y,x){let v=c[m.type].render;return f?f(()=>v(m,y,x),m,y,x):v(m,y,x)}})(l,t.renderRule),function c(f,m={}){if(Array.isArray(f)){let y=m.key,x=[],v=!1;for(let C=0;C<f.length;C++){m.key=C;let w=c(f[C],m),E=typeof w=="string";E&&v?x[x.length-1]+=w:w!==null&&x.push(w),v=E}return m.key=y,x}return d(f,c,m)});var d;let p=n(e);return a.length?r("div",null,p,r("footer",{key:"footer"},a.map(function(c){return r("div",{id:t.slugify(c.identifier,Co),key:c.identifier},c.identifier,u(s(c.footnote,{inline:!0})))}))):p}var eC=e=>{let{children:t="",options:r}=e,n=(function(o,a){if(o==null)return{};var i,l,s={},u=Object.keys(o);for(l=0;l<u.length;l++)a.indexOf(i=u[l])>=0||(s[i]=o[i]);return s})(e,K6);return b.cloneElement(e8(t,r),n)},t8=T.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:ye(.5,e.color.defaultText),background:"transparent","&:hover":{boxShadow:`${Fa(.3,e.appBorderColor)} 0 0 0 1px inset`},"&:active":{boxShadow:`${Fa(.05,e.appBorderColor)} 0 0 0 2px inset`,color:Fa(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"?`${Fa(.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"}}})),r8=e=>e==="true",n8=({name:e,value:t,onChange:r,onBlur:n,onFocus:o,argType:a})=>{let i=b.useCallback(()=>r(!1),[r]),l=!!a?.table?.readonly;if(t===void 0)return h.createElement(_r,{variant:"outline",size:"medium",id:qi(e),onClick:i,disabled:l},"Set boolean");let s=Ft(e),u=typeof t=="string"?r8(t):t;return h.createElement(t8,{"aria-disabled":l,htmlFor:s,"aria-label":e},h.createElement("input",{id:s,type:"checkbox",onChange:d=>r(d.target.checked),checked:u,role:"switch",disabled:l,name:e,onBlur:n,onFocus:o}),h.createElement("span",{"aria-hidden":"true"},"False"),h.createElement("span",{"aria-hidden":"true"},"True"))},o8=e=>{let[t,r,n]=e.split("-"),o=new Date;return o.setFullYear(parseInt(t,10),parseInt(r,10)-1,parseInt(n,10)),o},a8=e=>{let[t,r]=e.split(":"),n=new Date;return n.setHours(parseInt(t,10)),n.setMinutes(parseInt(r,10)),n},i8=e=>{let t=new Date(e),r=`000${t.getFullYear()}`.slice(-4),n=`0${t.getMonth()+1}`.slice(-2),o=`0${t.getDate()}`.slice(-2);return`${r}-${n}-${o}`},l8=e=>{let t=new Date(e),r=`0${t.getHours()}`.slice(-2),n=`0${t.getMinutes()}`.slice(-2);return`${r}:${n}`},jm=T(uo.Input)(({readOnly:e})=>({opacity:e?.5:1})),s8=T.div(({theme:e})=>({flex:1,display:"flex",input:{marginLeft:10,flex:1,height:32,"&::-webkit-calendar-picker-indicator":{opacity:.5,height:12,filter:e.base==="light"?void 0:"invert(1)"}},"input:first-of-type":{marginLeft:0,flexGrow:4},"input:last-of-type":{flexGrow:3}})),u8=({name:e,value:t,onChange:r,onFocus:n,onBlur:o,argType:a})=>{let[i,l]=b.useState(!0),s=b.useRef(),u=b.useRef(),d=!!a?.table?.readonly;b.useEffect(()=>{i!==!1&&(s&&s.current&&(s.current.value=t?i8(t):""),u&&u.current&&(u.current.value=t?l8(t):""))},[t]);let p=m=>{if(!m.target.value)return r();let y=o8(m.target.value),x=new Date(t??"");x.setFullYear(y.getFullYear(),y.getMonth(),y.getDate());let v=x.getTime();v&&r(v),l(!!v)},c=m=>{if(!m.target.value)return r();let y=a8(m.target.value),x=new Date(t??"");x.setHours(y.getHours()),x.setMinutes(y.getMinutes());let v=x.getTime();v&&r(v),l(!!v)},f=Ft(e);return h.createElement(s8,null,h.createElement(jm,{type:"date",max:"9999-12-31",ref:s,id:`${f}-date`,name:`${f}-date`,readOnly:d,onChange:p,onFocus:n,onBlur:o}),h.createElement(jm,{type:"time",id:`${f}-time`,name:`${f}-time`,ref:u,onChange:c,readOnly:d,onFocus:n,onBlur:o}),i?null:h.createElement("div",null,"invalid"))},c8=T.label({display:"flex"}),d8=e=>{let t=parseFloat(e);return Number.isNaN(t)?void 0:t},p8=T(uo.Input)(({readOnly:e})=>({opacity:e?.5:1})),f8=({name:e,value:t,onChange:r,min:n,max:o,step:a,onBlur:i,onFocus:l,argType:s})=>{let[u,d]=b.useState(typeof t=="number"?t:""),[p,c]=b.useState(!1),[f,m]=b.useState(null),y=!!s?.table?.readonly,x=b.useCallback(w=>{d(w.target.value);let E=parseFloat(w.target.value);Number.isNaN(E)?m(new Error(`'${w.target.value}' is not a number`)):(r(E),m(null))},[r,m]),v=b.useCallback(()=>{d("0"),r(0),c(!0)},[c]),C=b.useRef(null);return b.useEffect(()=>{p&&C.current&&C.current.select()},[p]),b.useEffect(()=>{let w=typeof t=="number"?t:"";u!==w&&d(w)},[t]),t===void 0?h.createElement(_r,{variant:"outline",size:"medium",id:qi(e),onClick:v,disabled:y},"Set number"):h.createElement(c8,null,h.createElement(p8,{ref:C,id:Ft(e),type:"number",onChange:x,size:"flex",placeholder:"Edit number...",value:u,valid:f?"error":void 0,autoFocus:p,readOnly:y,name:e,min:n,max:o,step:a,onFocus:l,onBlur:i}))},tC=(e,t)=>{let r=t&&Object.entries(t).find(([n,o])=>o===e);return r?r[0]:void 0},oc=(e,t)=>e&&t?Object.entries(t).filter(r=>e.includes(r[1])).map(r=>r[0]):[],rC=(e,t)=>e&&t&&e.map(r=>t[r]),g8=T.div(({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}},e=>{if(e["aria-readonly"]==="true")return{input:{cursor:"not-allowed"}}}),m8=T.span({"[aria-readonly=true] &":{opacity:.5}}),h8=T.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),Mm=({name:e,options:t,value:r,onChange:n,isInline:o,argType:a})=>{if(!t)return sp.warn(`Checkbox with no options: ${e}`),h.createElement(h.Fragment,null,"-");let i=oc(r||[],t),[l,s]=b.useState(i),u=!!a?.table?.readonly,d=c=>{let f=c.target.value,m=[...l];m.includes(f)?m.splice(m.indexOf(f),1):m.push(f),n(rC(m,t)),s(m)};b.useEffect(()=>{s(oc(r||[],t))},[r]);let p=Ft(e);return h.createElement(g8,{"aria-readonly":u,isInline:o},Object.keys(t).map((c,f)=>{let m=`${p}-${f}`;return h.createElement(h8,{key:m,htmlFor:m},h.createElement("input",{type:"checkbox",disabled:u,id:m,name:m,value:c,onChange:d,checked:l?.includes(c)}),h.createElement(m8,null,c))}))},y8=T.div(({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}},e=>{if(e["aria-readonly"]==="true")return{input:{cursor:"not-allowed"}}}),b8=T.span({"[aria-readonly=true] &":{opacity:.5}}),v8=T.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),zm=({name:e,options:t,value:r,onChange:n,isInline:o,argType:a})=>{if(!t)return sp.warn(`Radio with no options: ${e}`),h.createElement(h.Fragment,null,"-");let i=tC(r,t),l=Ft(e),s=!!a?.table?.readonly;return h.createElement(y8,{"aria-readonly":s,isInline:o},Object.keys(t).map((u,d)=>{let p=`${l}-${d}`;return h.createElement(v8,{key:p,htmlFor:p},h.createElement("input",{type:"radio",id:p,name:l,disabled:s,value:u,onChange:c=>n(t[c.currentTarget.value]),checked:u===i}),h.createElement(b8,null,u))}))},x8={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},nC=T.select(x8,({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}}})),oC=T.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}}})),Hm="Choose option...",E8=({name:e,value:t,options:r,onChange:n,argType:o})=>{let a=u=>{n(r[u.currentTarget.value])},i=tC(t,r)||Hm,l=Ft(e),s=!!o?.table?.readonly;return h.createElement(oC,null,h.createElement(SS,null),h.createElement(nC,{disabled:s,id:l,value:i,onChange:a},h.createElement("option",{key:"no-selection",disabled:!0},Hm),Object.keys(r).map(u=>h.createElement("option",{key:u,value:u},u))))},w8=({name:e,value:t,options:r,onChange:n,argType:o})=>{let a=u=>{let d=Array.from(u.currentTarget.options).filter(p=>p.selected).map(p=>p.value);n(rC(d,r))},i=oc(t,r),l=Ft(e),s=!!o?.table?.readonly;return h.createElement(oC,null,h.createElement(nC,{disabled:s,id:l,multiple:!0,value:i,onChange:a},Object.keys(r).map(u=>h.createElement("option",{key:u,value:u},u))))},Um=e=>{let{name:t,options:r}=e;return r?e.isMulti?h.createElement(w8,{...e}):h.createElement(E8,{...e}):(sp.warn(`Select with no options: ${t}`),h.createElement(h.Fragment,null,"-"))},S8=(e,t)=>Array.isArray(e)?e.reduce((r,n)=>(r[t?.[n]||String(n)]=n,r),{}):e,C8={check:Mm,"inline-check":Mm,radio:zm,"inline-radio":zm,select:Um,"multi-select":Um},yn=e=>{let{type:t="select",labels:r,argType:n}=e,o={...e,argType:n,options:n?S8(n.options,r):{},isInline:t.includes("inline"),isMulti:t.includes("multi")},a=C8[t];if(a)return h.createElement(a,{...o});throw new Error(`Unknown options type: ${t}`)},$8=T.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}}})),A8=T.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)"}})),D8=T.div({display:"inline"});function aC({children:e,name:t,collapsed:r,keyPath:n,deep:o,...a}){let i=`${n.at(-1)??"root"}-${t}-${o}`,l={trigger:`${i}-trigger`,region:`${i}-region`},s=n.length>0?"li":"div";return h.createElement($8,{as:s},h.createElement(A8,{type:"button","aria-expanded":!r,id:l.trigger,"aria-controls":l.region,className:"rejt-accordion-button",...a},t," :"),h.createElement(D8,{role:"region",id:l.region,"aria-labelledby":l.trigger,className:"rejt-accordion-region"},e))}var k8="Error",O8="Object",F8="Array",_8="String",T8="Number",R8="Boolean",P8="Date",I8="Null",L8="Undefined",B8="Function",N8="Symbol",iC="ADD_DELTA_TYPE",lC="REMOVE_DELTA_TYPE",sC="UPDATE_DELTA_TYPE",fp="value",j8="key";function Gr(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&typeof e[Symbol.iterator]=="function"?"Iterable":Object.prototype.toString.call(e).slice(8,-1)}function uC(e,t){let r=Gr(e),n=Gr(t);return(r==="Function"||n==="Function")&&n!==r}var gp=class extends b.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:r}=this.props;e&&typeof e.focus=="function"&&e.focus(),r&&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:r}=this.state,{addButtonElement:n,handleCancel:o}=this.props;[t,r,n].some(a=>a===e.target)&&((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.onSubmit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),o()))}onSubmit(){let{handleAdd:e,onlyValue:t,onSubmitValueParser:r,keyPath:n,deep:o}=this.props,{inputRefKey:a,inputRefValue:i}=this.state,l={};if(!t){if(!a.value)return;l.key=a.value}l.newValue=r(!1,n,o,l.key,i.value),e(l)}refInputKey(e){this.state.inputRefKey=e}refInputValue(e){this.state.inputRefValue=e}render(){let{handleCancel:e,onlyValue:t,addButtonElement:r,cancelButtonElement:n,inputElementGenerator:o,keyPath:a,deep:i}=this.props,l=r&&b.cloneElement(r,{onClick:this.onSubmit}),s=n&&b.cloneElement(n,{onClick:e}),u=o(fp,a,i),d=b.cloneElement(u,{placeholder:"Value",ref:this.refInputValue,onKeyDown:this.onKeydown}),p=null;if(!t){let c=o(j8,a,i);p=b.cloneElement(c,{placeholder:"Key",ref:this.refInputKey,onKeyDown:this.onKeydown})}return h.createElement("span",{className:"rejt-add-value-node"},p,d,l,s)}};gp.defaultProps={onlyValue:!1,addButtonElement:h.createElement("button",null,"+"),cancelButtonElement:h.createElement("button",null,"c")};var cC=class extends b.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?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n=[]}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:o}=this.props,a=n.length;o(n[a-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleRemoveItem(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:o,nextDeep:a}=this.state,i=n[e];(t||Promise.resolve.bind(Promise))(e,o,a,i).then(()=>{let l={keyPath:o,deep:a,key:e,oldValue:i,type:lC};n.splice(e,1),this.setState({data:n});let{onUpdate:s,onDeltaUpdate:u}=this.props;s(o[o.length-1],n),u(l)}).catch(r.error)}}handleAddValueAdd({key:e,newValue:t}){let{data:r,keyPath:n=[],nextDeep:o}=this.state,{beforeAddAction:a,logger:i}=this.props;(a||Promise.resolve.bind(Promise))(e,n,o,t).then(()=>{r[e]=t,this.setState({data:r}),this.handleAddValueCancel();let{onUpdate:l,onDeltaUpdate:s}=this.props;l(n[n.length-1],r),s({type:iC,keyPath:n,deep:o,key:e,newValue:t})}).catch(i.error)}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:o}=this.props,{data:a,keyPath:i,nextDeep:l}=this.state,s=a[e];(o||Promise.resolve.bind(Promise))(e,i,l,s,t).then(()=>{a[e]=t,this.setState({data:a});let{onUpdate:u,onDeltaUpdate:d}=this.props;u(i[i.length-1],a),d({type:sC,keyPath:i,deep:l,key:e,newValue:t,oldValue:s}),r(void 0)}).catch(n)})}renderCollapsed(){let{name:e,data:t,keyPath:r,deep:n}=this.state,{handleRemove:o,readOnly:a,getStyle:i,dataType:l,minusMenuElement:s}=this.props,{minus:u,collapsed:d}=i(e,t,r,n,l),p=a(e,t,r,n,l),c=s&&b.cloneElement(s,{onClick:o,className:"rejt-minus-menu",style:u,"aria-label":`remove the array '${String(e)}'`});return h.createElement(h.Fragment,null,h.createElement("span",{style:d},"[...] ",t.length," ",t.length===1?"item":"items"),!p&&c)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,addFormVisible:o,nextDeep:a}=this.state,{isCollapsed:i,handleRemove:l,onDeltaUpdate:s,readOnly:u,getStyle:d,dataType:p,addButtonElement:c,cancelButtonElement:f,inputElementGenerator:m,textareaElementGenerator:y,minusMenuElement:x,plusMenuElement:v,beforeRemoveAction:C,beforeAddAction:w,beforeUpdateAction:E,logger:$,onSubmitValueParser:A}=this.props,{minus:S,plus:D,delimiter:F,ul:k,addForm:_}=d(e,t,r,n,p),I=u(e,t,r,n,p),L=v&&b.cloneElement(v,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:D,"aria-label":`add a new item to the '${String(e)}' array`}),j=x&&b.cloneElement(x,{onClick:l,className:"rejt-minus-menu",style:S,"aria-label":`remove the array '${String(e)}'`});return h.createElement(h.Fragment,null,h.createElement("span",{className:"rejt-not-collapsed-delimiter",style:F},"["),!o&&L,h.createElement("ul",{className:"rejt-not-collapsed-list",style:k},t.map((B,z)=>h.createElement(Al,{key:z,name:z.toString(),data:B,keyPath:r,deep:a,isCollapsed:i,handleRemove:this.handleRemoveItem(z),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:s,readOnly:u,getStyle:d,addButtonElement:c,cancelButtonElement:f,inputElementGenerator:m,textareaElementGenerator:y,minusMenuElement:x,plusMenuElement:v,beforeRemoveAction:C,beforeAddAction:w,beforeUpdateAction:E,logger:$,onSubmitValueParser:A}))),!I&&o&&h.createElement("div",{className:"rejt-add-form",style:_},h.createElement(gp,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue:!0,addButtonElement:c,cancelButtonElement:f,inputElementGenerator:m,keyPath:r,deep:n,onSubmitValueParser:A})),h.createElement("span",{className:"rejt-not-collapsed-delimiter",style:F},"]"),!I&&j)}render(){let{name:e,collapsed:t,keyPath:r,deep:n}=this.state,o=t?this.renderCollapsed():this.renderNotCollapsed();return h.createElement(aC,{name:e,collapsed:t,deep:n,keyPath:r,onClick:this.handleCollapseMode},o)}};cC.defaultProps={keyPath:[],deep:0,minusMenuElement:h.createElement("span",null," - "),plusMenuElement:h.createElement("span",null," + ")};var dC=class extends b.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?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:o,deep:a}=this.state,{readOnly:i,dataType:l}=this.props,s=i(r,n,o,a,l);e&&!s&&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:r,onSubmitValueParser:n,keyPath:o}=this.props,{inputRef:a,name:i,deep:l}=this.state;if(!a)return;let s=n(!0,o,l,i,a.value),u={value:s,key:i};(e||Promise.resolve.bind(Promise))(u).then(()=>{uC(t,s)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:o}=this.state,{handleRemove:a,originalValue:i,readOnly:l,dataType:s,getStyle:u,textareaElementGenerator:d,minusMenuElement:p,keyPath:c=[]}=this.props,f=u(e,i,n,o,s),m=null,y=null,x=l(e,i,n,o,s);if(r&&!x){let v=d(fp,c,o,e,i,s),C=b.cloneElement(v,{ref:this.refInput,defaultValue:t,onKeyDown:this.onKeydown});m=h.createElement("span",{className:"rejt-edit-form",style:f.editForm},C),y=null}else{m=h.createElement("span",{className:"rejt-value",style:f.value,onClick:x?void 0:this.handleEditMode},t);let v=c.at(-1),C=p&&b.cloneElement(p,{onClick:a,className:"rejt-minus-menu",style:f.minus,"aria-label":`remove the function '${String(e)}'${String(v)?` from '${String(v)}'`:""}`});y=x?null:C}return h.createElement("li",{className:"rejt-value-node",style:f.li},h.createElement("span",{className:"rejt-name",style:f.name},e," :"," "),m,y)}};dC.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>{},cancelButtonElement:h.createElement("button",null,"c"),minusMenuElement:h.createElement("span",null," - ")};var Al=class extends b.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?{data:e.data}:null}render(){let{data:e,name:t,keyPath:r,deep:n}=this.state,{isCollapsed:o,handleRemove:a,handleUpdateValue:i,onUpdate:l,onDeltaUpdate:s,readOnly:u,getStyle:d,addButtonElement:p,cancelButtonElement:c,inputElementGenerator:f,textareaElementGenerator:m,minusMenuElement:y,plusMenuElement:x,beforeRemoveAction:v,beforeAddAction:C,beforeUpdateAction:w,logger:E,onSubmitValueParser:$}=this.props,A=()=>!0,S=Gr(e);switch(S){case k8:return h.createElement(ac,{data:e,name:t,isCollapsed:o,keyPath:r,deep:n,handleRemove:a,onUpdate:l,onDeltaUpdate:s,readOnly:A,dataType:S,getStyle:d,addButtonElement:p,cancelButtonElement:c,inputElementGenerator:f,textareaElementGenerator:m,minusMenuElement:y,plusMenuElement:x,beforeRemoveAction:v,beforeAddAction:C,beforeUpdateAction:w,logger:E,onSubmitValueParser:$});case O8:return h.createElement(ac,{data:e,name:t,isCollapsed:o,keyPath:r,deep:n,handleRemove:a,onUpdate:l,onDeltaUpdate:s,readOnly:u,dataType:S,getStyle:d,addButtonElement:p,cancelButtonElement:c,inputElementGenerator:f,textareaElementGenerator:m,minusMenuElement:y,plusMenuElement:x,beforeRemoveAction:v,beforeAddAction:C,beforeUpdateAction:w,logger:E,onSubmitValueParser:$});case F8:return h.createElement(cC,{data:e,name:t,isCollapsed:o,keyPath:r,deep:n,handleRemove:a,onUpdate:l,onDeltaUpdate:s,readOnly:u,dataType:S,getStyle:d,addButtonElement:p,cancelButtonElement:c,inputElementGenerator:f,textareaElementGenerator:m,minusMenuElement:y,plusMenuElement:x,beforeRemoveAction:v,beforeAddAction:C,beforeUpdateAction:w,logger:E,onSubmitValueParser:$});case _8:return h.createElement(hr,{name:t,value:`"${e}"`,originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:u,dataType:S,getStyle:d,cancelButtonElement:c,inputElementGenerator:f,minusMenuElement:y,logger:E,onSubmitValueParser:$});case T8:return h.createElement(hr,{name:t,value:e,originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:u,dataType:S,getStyle:d,cancelButtonElement:c,inputElementGenerator:f,minusMenuElement:y,logger:E,onSubmitValueParser:$});case R8:return h.createElement(hr,{name:t,value:e?"true":"false",originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:u,dataType:S,getStyle:d,cancelButtonElement:c,inputElementGenerator:f,minusMenuElement:y,logger:E,onSubmitValueParser:$});case P8:return h.createElement(hr,{name:t,value:e.toISOString(),originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:A,dataType:S,getStyle:d,cancelButtonElement:c,inputElementGenerator:f,minusMenuElement:y,logger:E,onSubmitValueParser:$});case I8:return h.createElement(hr,{name:t,value:"null",originalValue:"null",keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:u,dataType:S,getStyle:d,cancelButtonElement:c,inputElementGenerator:f,minusMenuElement:y,logger:E,onSubmitValueParser:$});case L8:return h.createElement(hr,{name:t,value:"undefined",originalValue:"undefined",keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:u,dataType:S,getStyle:d,cancelButtonElement:c,inputElementGenerator:f,minusMenuElement:y,logger:E,onSubmitValueParser:$});case B8:return h.createElement(dC,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:u,dataType:S,getStyle:d,cancelButtonElement:c,textareaElementGenerator:m,minusMenuElement:y,logger:E,onSubmitValueParser:$});case N8:return h.createElement(hr,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:A,dataType:S,getStyle:d,cancelButtonElement:c,inputElementGenerator:f,minusMenuElement:y,logger:E,onSubmitValueParser:$});default:return null}}};Al.defaultProps={keyPath:[],deep:0};var ac=class extends b.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?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n=[]}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:o}=this.props,a=n.length;o(n[a-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleAddValueAdd({key:e,newValue:t}){let{data:r,keyPath:n=[],nextDeep:o}=this.state,{beforeAddAction:a,logger:i}=this.props;(a||Promise.resolve.bind(Promise))(e,n,o,t).then(()=>{r[e]=t,this.setState({data:r}),this.handleAddValueCancel();let{onUpdate:l,onDeltaUpdate:s}=this.props;l(n[n.length-1],r),s({type:iC,keyPath:n,deep:o,key:e,newValue:t})}).catch(i.error)}handleRemoveValue(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:o=[],nextDeep:a}=this.state,i=n[e];(t||Promise.resolve.bind(Promise))(e,o,a,i).then(()=>{let l={keyPath:o,deep:a,key:e,oldValue:i,type:lC};delete n[e],this.setState({data:n});let{onUpdate:s,onDeltaUpdate:u}=this.props;s(o[o.length-1],n),u(l)}).catch(r.error)}}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:o}=this.props,{data:a,keyPath:i=[],nextDeep:l}=this.state,s=a[e];(o||Promise.resolve.bind(Promise))(e,i,l,s,t).then(()=>{a[e]=t,this.setState({data:a});let{onUpdate:u,onDeltaUpdate:d}=this.props;u(i[i.length-1],a),d({type:sC,keyPath:i,deep:l,key:e,newValue:t,oldValue:s}),r()}).catch(n)})}renderCollapsed(){let{name:e,keyPath:t,deep:r,data:n}=this.state,{handleRemove:o,readOnly:a,dataType:i,getStyle:l,minusMenuElement:s}=this.props,{minus:u,collapsed:d}=l(e,n,t,r,i),p=Object.getOwnPropertyNames(n),c=a(e,n,t,r,i),f=s&&b.cloneElement(s,{onClick:o,className:"rejt-minus-menu",style:u,"aria-label":`remove the object '${String(e)}'`});return h.createElement(h.Fragment,null,h.createElement("span",{style:d},"{...}"," ",p.length," ",p.length===1?"key":"keys"),!c&&f)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,nextDeep:o,addFormVisible:a}=this.state,{isCollapsed:i,handleRemove:l,onDeltaUpdate:s,readOnly:u,getStyle:d,dataType:p,addButtonElement:c,cancelButtonElement:f,inputElementGenerator:m,textareaElementGenerator:y,minusMenuElement:x,plusMenuElement:v,beforeRemoveAction:C,beforeAddAction:w,beforeUpdateAction:E,logger:$,onSubmitValueParser:A}=this.props,{minus:S,plus:D,addForm:F,ul:k,delimiter:_}=d(e,t,r,n,p),I=Object.getOwnPropertyNames(t),L=u(e,t,r,n,p),j=v&&b.cloneElement(v,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:D,"aria-label":`add a new property to the object '${String(e)}'`}),B=x&&b.cloneElement(x,{onClick:l,className:"rejt-minus-menu",style:S,"aria-label":`remove the object '${String(e)}'`}),z=I.map(q=>h.createElement(Al,{key:q,name:q,data:t[q],keyPath:r,deep:o,isCollapsed:i,handleRemove:this.handleRemoveValue(q),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:s,readOnly:u,getStyle:d,addButtonElement:c,cancelButtonElement:f,inputElementGenerator:m,textareaElementGenerator:y,minusMenuElement:x,plusMenuElement:v,beforeRemoveAction:C,beforeAddAction:w,beforeUpdateAction:E,logger:$,onSubmitValueParser:A}));return h.createElement(h.Fragment,null,h.createElement("span",{className:"rejt-not-collapsed-delimiter",style:_},"{"),!L&&j,h.createElement("ul",{className:"rejt-not-collapsed-list",style:k},z),!L&&a&&h.createElement("div",{className:"rejt-add-form",style:F},h.createElement(gp,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement:c,cancelButtonElement:f,inputElementGenerator:m,keyPath:r,deep:n,onSubmitValueParser:A})),h.createElement("span",{className:"rejt-not-collapsed-delimiter",style:_},"}"),!L&&B)}render(){let{name:e,collapsed:t,keyPath:r,deep:n=0}=this.state,o=t?this.renderCollapsed():this.renderNotCollapsed();return h.createElement(aC,{name:e,collapsed:t,deep:n,keyPath:r,onClick:this.handleCollapseMode},o)}};ac.defaultProps={keyPath:[],deep:0,minusMenuElement:h.createElement("span",null," - "),plusMenuElement:h.createElement("span",null," + ")};var hr=class extends b.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?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:o,deep:a}=this.state,{readOnly:i,dataType:l}=this.props,s=i(r,n,o,a,l);e&&!s&&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:r,onSubmitValueParser:n,keyPath:o}=this.props,{inputRef:a,name:i,deep:l}=this.state;if(!a)return;let s=n(!0,o,l,i,a.value),u={value:s,key:i};(e||Promise.resolve.bind(Promise))(u).then(()=>{uC(t,s)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:o}=this.state,{handleRemove:a,originalValue:i,readOnly:l,dataType:s,getStyle:u,inputElementGenerator:d,minusMenuElement:p,keyPath:c}=this.props,f=u(e,i,n,o,s),m=l(e,i,n,o,s),y=r&&!m,x=d(fp,c,o,e,i,s),v=b.cloneElement(x,{ref:this.refInput,defaultValue:JSON.stringify(i),onKeyDown:this.onKeydown}),C=n.at(-2),w=p&&b.cloneElement(p,{onClick:a,className:"rejt-minus-menu",style:f.minus,"aria-label":`remove the property '${String(e)}' with value '${String(i)}'${String(C)?` from '${String(C)}'`:""}`});return h.createElement("li",{className:"rejt-value-node",style:f.li},h.createElement("span",{className:"rejt-name",style:f.name},e," : "),y?h.createElement("span",{className:"rejt-edit-form",style:f.editForm},v):h.createElement("span",{className:"rejt-value",style:f.value,onClick:m?void 0:this.handleEditMode},String(t)),!m&&!y&&w)}};hr.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>Promise.resolve(),cancelButtonElement:h.createElement("button",null,"c"),minusMenuElement:h.createElement("span",null," - ")};function M8(e){let t=e;if(t.indexOf("function")===0)return(0,eval)(`(${t})`);try{t=JSON.parse(e)}catch{}return t}var z8={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},H8={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},U8={minus:{color:"red"},editForm:{},value:{color:"#7bba3d"},li:{minHeight:"22px",lineHeight:"22px",outline:"0px"},name:{color:"#2287CD"}},pC=class extends b.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:r,onDeltaUpdate:n,readOnly:o,getStyle:a,addButtonElement:i,cancelButtonElement:l,inputElement:s,textareaElement:u,minusMenuElement:d,plusMenuElement:p,beforeRemoveAction:c,beforeAddAction:f,beforeUpdateAction:m,logger:y,onSubmitValueParser:x,fallback:v=null}=this.props,C=Gr(e),w=o;Gr(o)==="Boolean"&&(w=()=>o);let E=s;s&&Gr(s)!=="Function"&&(E=()=>s);let $=u;return u&&Gr(u)!=="Function"&&($=()=>u),C==="Object"||C==="Array"?h.createElement("div",{className:"rejt-tree"},h.createElement(Al,{data:e,name:t||"root",deep:-1,isCollapsed:r??(()=>!1),onUpdate:this.onUpdate,onDeltaUpdate:n??(()=>{}),readOnly:w,getStyle:a??(()=>({})),addButtonElement:i,cancelButtonElement:l,inputElementGenerator:E,textareaElementGenerator:$,minusMenuElement:d,plusMenuElement:p,handleRemove:this.removeRoot,beforeRemoveAction:c,beforeAddAction:f,beforeUpdateAction:m,logger:y??{},onSubmitValueParser:x??(A=>A)})):v}};pC.defaultProps={rootName:"root",isCollapsed:(e,t)=>t!==-1,getStyle:(e,t,r,n,o)=>{switch(o){case"Object":case"Error":return z8;case"Array":return H8;default:return U8}},readOnly:()=>!1,onFullyUpdate:()=>{},onDeltaUpdate:()=>{},beforeRemoveAction:()=>Promise.resolve(),beforeAddAction:()=>Promise.resolve(),beforeUpdateAction:()=>Promise.resolve(),logger:{error:()=>{}},onSubmitValueParser:(e,t,r,n,o)=>M8(o),inputElement:()=>h.createElement("input",null),textareaElement:()=>h.createElement("textarea",null),fallback:null};var{window:W8}=globalThis,V8=T.div(({theme:e})=>({position:"relative",display:"flex",'&[aria-readonly="true"]':{opacity:.5},".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.color.lighter,borderColor:e.appBorderColor}})),Wm=T.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"})),Vm=T.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}}})),qm=T.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}`}})),q8=T($r)(({theme:e})=>({position:"absolute",zIndex:2,top:2,right:2,height:21,padding:"0 3px",background:e.background.bar,border:`1px solid ${e.appBorderColor}`,borderRadius:3,color:e.textMutedColor,fontSize:"9px",fontWeight:"bold",textDecoration:"none",span:{marginLeft:3,marginTop:1}})),G8=T(uo.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"}})),Y8={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},K8=e=>{e.currentTarget.dispatchEvent(new W8.KeyboardEvent("keydown",Y8))},X8=e=>{e.currentTarget.select()},Z8=e=>()=>({name:{color:e.color.secondary},collapsed:{color:e.color.dark},ul:{listStyle:"none",margin:"0 0 0 1rem",padding:0},li:{outline:0}}),Gm=({name:e,value:t,onChange:r,argType:n})=>{let o=jb(),a=b.useMemo(()=>t&&Y3(t),[t]),i=a!=null,[l,s]=b.useState(!i),[u,d]=b.useState(null),p=!!n?.table?.readonly,c=b.useCallback(w=>{try{w&&r(JSON.parse(w)),d(null)}catch(E){d(E)}},[r]),[f,m]=b.useState(!1),y=b.useCallback(()=>{r({}),m(!0)},[m]),x=b.useRef(null);if(b.useEffect(()=>{f&&x.current&&x.current.select()},[f]),!i)return h.createElement(_r,{disabled:p,id:qi(e),onClick:y},"Set object");let v=h.createElement(G8,{ref:x,id:Ft(e),name:e,defaultValue:t===null?"":JSON.stringify(t,null,2),onBlur:w=>c(w.target.value),placeholder:"Edit JSON string...",autoFocus:f,valid:u?"error":void 0,readOnly:p}),C=Array.isArray(t)||typeof t=="object"&&t?.constructor===Object;return h.createElement(V8,{"aria-readonly":p},C&&h.createElement(q8,{role:"switch","aria-checked":l,"aria-label":`Edit the ${e} properties in text format`,onClick:w=>{w.preventDefault(),s(E=>!E)}},l?h.createElement(rR,null):h.createElement(tR,null),h.createElement("span",null,"RAW")),l?v:h.createElement(pC,{readOnly:p||!C,isCollapsed:C?void 0:()=>!0,data:a,rootName:e,onFullyUpdate:r,getStyle:Z8(o),cancelButtonElement:h.createElement(Wm,{type:"button"},"Cancel"),addButtonElement:h.createElement(Wm,{type:"submit",primary:!0},"Save"),plusMenuElement:h.createElement(Vm,{type:"button"},h.createElement(nR,null)),minusMenuElement:h.createElement(Vm,{type:"button"},h.createElement(oR,null)),inputElement:(w,E,$,A)=>A?h.createElement(qm,{onFocus:X8,onBlur:K8}):h.createElement(qm,null),fallback:v}))},J8=T.input(({theme:e,min:t,max:r,value:n,disabled:o})=>({"&":{width:"100%",backgroundColor:"transparent",appearance:"none"},"&::-webkit-slider-runnable-track":{background:e.base==="light"?`linear-gradient(to right,
1210
+ ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
1211
+ ${Nt(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
1212
+ ${Nt(.02,e.input.background)} 100%)`:`linear-gradient(to right,
1213
+ ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
1214
+ ${zr(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
1215
+ ${zr(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:o?"not-allowed":"pointer"},"&::-webkit-slider-thumb":{marginTop:"-6px",width:16,height:16,border:`1px solid ${Mt(e.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${Mt(e.appBorderColor,.2)}`,cursor:o?"not-allowed":"grab",appearance:"none",background:`${e.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${Nt(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:o?"not-allowed":"grab"}},"&:focus":{outline:"none","&::-webkit-slider-runnable-track":{borderColor:Mt(e.color.secondary,.4)},"&::-webkit-slider-thumb":{borderColor:e.color.secondary,boxShadow:`0 0px 5px 0px ${e.color.secondary}`}},"&::-moz-range-track":{background:e.base==="light"?`linear-gradient(to right,
1216
+ ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
1217
+ ${Nt(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
1218
+ ${Nt(.02,e.input.background)} 100%)`:`linear-gradient(to right,
1219
+ ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
1220
+ ${zr(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
1221
+ ${zr(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:o?"not-allowed":"pointer",outline:"none"},"&::-moz-range-thumb":{width:16,height:16,border:`1px solid ${Mt(e.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${Mt(e.appBorderColor,.2)}`,cursor:o?"not-allowed":"grap",background:`${e.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${Nt(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:"grabbing"}},"&::-ms-track":{background:e.base==="light"?`linear-gradient(to right,
1222
+ ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
1223
+ ${Nt(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
1224
+ ${Nt(.02,e.input.background)} 100%)`:`linear-gradient(to right,
1225
+ ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
1226
+ ${zr(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
1227
+ ${zr(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:`${e.input.background}`,border:`1px solid ${Mt(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),fC=T.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums","[aria-readonly=true] &":{opacity:.5}}),Q8=T(fC)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),eI=T.div({display:"flex",alignItems:"center",width:"100%"});function tI(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 rI=({name:e,value:t,onChange:r,min:n=0,max:o=100,step:a=1,onBlur:i,onFocus:l,argType:s})=>{let u=f=>{r(d8(f.target.value))},d=t!==void 0,p=b.useMemo(()=>tI(a),[a]),c=!!s?.table?.readonly;return h.createElement(eI,{"aria-readonly":c},h.createElement(fC,null,n),h.createElement(J8,{id:Ft(e),type:"range",disabled:c,onChange:u,name:e,min:n,max:o,step:a,onFocus:l,onBlur:i,value:t??n}),h.createElement(Q8,{numberOFDecimalsPlaces:p,max:o},d?t.toFixed(p):"--"," / ",o))},nI=T.label({display:"flex"}),oI=T.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),aI=({name:e,value:t,onChange:r,onFocus:n,onBlur:o,maxLength:a,argType:i})=>{let l=f=>{r(f.target.value)},s=!!i?.table?.readonly,[u,d]=b.useState(!1),p=b.useCallback(()=>{r(""),d(!0)},[d]);if(t===void 0)return h.createElement(_r,{variant:"outline",size:"medium",disabled:s,id:qi(e),onClick:p},"Set string");let c=typeof t=="string";return h.createElement(nI,null,h.createElement(uo.Textarea,{id:Ft(e),maxLength:a,onChange:l,disabled:s,size:"flex",placeholder:"Edit string...",autoFocus:u,valid:c?void 0:"error",name:e,value:c?t:"",onFocus:n,onBlur:o}),a&&h.createElement(oI,{isMaxed:t?.length===a},t?.length??0," / ",a))},iI=T(uo.Input)({padding:10});function lI(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var sI=({onChange:e,name:t,accept:r="image/*",value:n,argType:o})=>{let a=b.useRef(null),i=o?.control?.readOnly;function l(s){if(!s.target.files)return;let u=Array.from(s.target.files).map(d=>URL.createObjectURL(d));e(u),lI(n||[])}return b.useEffect(()=>{n==null&&a.current&&(a.current.value="")},[n,t]),h.createElement(iI,{ref:a,id:Ft(t),type:"file",name:t,multiple:!0,disabled:i,onChange:l,accept:r,size:"flex"})},uI=b.lazy(()=>rh(()=>import("./Color-AVL7NMMY-1_8XTICv.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url)),cI=e=>h.createElement(b.Suspense,{fallback:h.createElement("div",null)},h.createElement(uI,{...e})),dI={array:Gm,object:Gm,boolean:n8,color:cI,date:u8,number:f8,check:yn,"inline-check":yn,radio:yn,"inline-radio":yn,select:yn,"multi-select":yn,range:rI,text:aI,file:sI},Ym=()=>h.createElement(h.Fragment,null,"-"),pI=({row:e,arg:t,updateArgs:r,isHovered:n})=>{let{key:o,control:a}=e,[i,l]=b.useState(!1),[s,u]=b.useState({value:t});b.useEffect(()=>{i||u({value:t})},[i,t]);let d=b.useCallback(y=>(u({value:y}),r({[o]:y}),y),[r,o]),p=b.useCallback(()=>l(!1),[]),c=b.useCallback(()=>l(!0),[]);if(!a||a.disable){let y=a?.disable!==!0&&e?.type?.name!=="function";return n&&y?h.createElement(Jn,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},"Setup controls"):h.createElement(Ym,null)}let f={name:o,argType:e,value:s.value,onChange:d,onBlur:p,onFocus:c},m=dI[a.type]||Ym;return h.createElement(m,{...f,...a,controlType:a.type})},fI=T.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:cr({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),gI=({tags:e})=>{let t=(e.params||[]).filter(a=>a.description),r=t.length!==0,n=e.deprecated!=null,o=e.returns!=null&&e.returns.description!=null;return!r&&!o&&!n?null:h.createElement(h.Fragment,null,h.createElement(fI,null,h.createElement("tbody",null,n&&h.createElement("tr",{key:"deprecated"},h.createElement("td",{colSpan:2},h.createElement("strong",null,"Deprecated"),": ",e.deprecated?.toString())),r&&t.map(a=>h.createElement("tr",{key:a.name},h.createElement("td",null,h.createElement("code",null,a.name)),h.createElement("td",null,a.description))),o&&h.createElement("tr",{key:"returns"},h.createElement("td",null,h.createElement("code",null,"Returns")),h.createElement("td",null,e.returns?.description)))))},mI=pD(mR()),ic=8,Km=T.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),hI=T.span(cr,({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}})),yI=T.button(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,marginBottom:"4px",background:"none",border:"none"})),bI=T.div(cr,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"})),vI=T.div(({theme:e,width:t})=>({width:t,minWidth:200,maxWidth:800,padding:15,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}})),xI=T(sR)({marginLeft:4}),EI=T(SS)({marginLeft:4}),wI=()=>h.createElement("span",null,"-"),gC=({text:e,simple:t})=>h.createElement(hI,{simple:t},e),SI=(0,mI.default)(1e3)(e=>{let t=e.split(/\r?\n/);return`${Math.max(...t.map(r=>r.length))}ch`}),CI=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return X3(t)},Xm=(e,t=!0)=>{let r=e;return t||(r=e.slice(0,ic)),r.map(n=>h.createElement(gC,{key:n,text:n===""?'""':n}))},$I=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[o,a]=b.useState(!1),[i,l]=b.useState(t||!1);if(r==null)return null;let s=typeof r.toString=="function"?r.toString():r;if(n==null){if(/[(){}[\]<>]/.test(s))return h.createElement(gC,{text:s});let u=CI(s),d=u.length;return d>ic?h.createElement(Km,{isExpanded:i},Xm(u,i),h.createElement(yI,{onClick:()=>l(!i)},i?"Show less...":`Show ${d-ic} more...`)):h.createElement(Km,null,Xm(u))}return h.createElement(uS,{closeOnOutsideClick:!0,placement:"bottom",visible:o,onVisibleChange:u=>{a(u)},tooltip:h.createElement(vI,{width:SI(n)},h.createElement(hl,{language:"jsx",format:!1},n))},h.createElement(bI,{className:"sbdocs-expandable"},h.createElement("span",null,s),o?h.createElement(xI,null):h.createElement(EI,null)))},Ds=({value:e,initialExpandedArgs:t})=>e==null?h.createElement(wI,null):h.createElement($I,{value:e,initialExpandedArgs:t}),AI=T.span({fontWeight:"bold"}),DI=T.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),kI=T.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...cr({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),OI=T.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?ye(.1,e.color.defaultText):ye(.2,e.color.defaultText),marginTop:t?4:0})),FI=T.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?ye(.1,e.color.defaultText):ye(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),_I=T.td(({expandable:e})=>({paddingLeft:e?"40px !important":"20px !important"})),TI=e=>e&&{summary:typeof e=="string"?e:e.name},Ta=e=>{let[t,r]=b.useState(!1),{row:n,updateArgs:o,compact:a,expandable:i,initialExpandedArgs:l}=e,{name:s,description:u}=n,d=n.table||{},p=d.type||TI(n.type),c=d.defaultValue||n.defaultValue,f=n.type?.required,m=u!=null&&u!=="";return h.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},h.createElement(_I,{expandable:i??!1},h.createElement(AI,null,s),f?h.createElement(DI,{title:"Required"},"*"):null),a?null:h.createElement("td",null,m&&h.createElement(kI,null,h.createElement(eC,null,u)),d.jsDocTags!=null?h.createElement(h.Fragment,null,h.createElement(FI,{hasDescription:m},h.createElement(Ds,{value:p,initialExpandedArgs:l})),h.createElement(gI,{tags:d.jsDocTags})):h.createElement(OI,{hasDescription:m},h.createElement(Ds,{value:p,initialExpandedArgs:l}))),a?null:h.createElement("td",null,h.createElement(Ds,{value:c,initialExpandedArgs:l})),o?h.createElement("td",null,h.createElement(pI,{...e,isHovered:t})):null)},RI=T.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})),PI=T.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),II=({inAddonPanel:e})=>{let[t,r]=b.useState(!0);return b.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:h.createElement(RI,{inAddonPanel:e},h.createElement(Sl,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:h.createElement(h.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:h.createElement(PI,null,e&&h.createElement(h.Fragment,null,h.createElement(Jn,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},h.createElement(Xu,null)," Read docs")),!e&&h.createElement(Jn,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},h.createElement(Xu,null)," Learn how to set that up"))}))},LI=T(iR)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?ye(.25,e.color.defaultText):ye(.3,e.color.defaultText),border:"none",display:"inline-block"})),BI=T(lR)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?ye(.25,e.color.defaultText):ye(.3,e.color.defaultText),border:"none",display:"inline-block"})),NI=T.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),jI=T.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"?ye(.4,e.color.defaultText):ye(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),MI=T.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),zI=T.td({position:"relative"}),HI=T.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${zr(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),Zm=T.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"}),ks=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:o=3})=>{let[a,i]=b.useState(n),l=e==="subsection"?MI:jI,s=r?.length||0,u=e==="subsection"?`${s} item${s!==1?"s":""}`:"",d=`${a?"Hide":"Show"} ${e==="subsection"?s:t} item${s!==1?"s":""}`;return h.createElement(h.Fragment,null,h.createElement(HI,{title:d},h.createElement(l,{colSpan:1},h.createElement(Zm,{onClick:p=>i(!a),tabIndex:0},d),h.createElement(NI,null,a?h.createElement(LI,null):h.createElement(BI,null),t)),h.createElement(zI,{colSpan:o-1},h.createElement(Zm,{onClick:p=>i(!a),tabIndex:-1,style:{outline:"none"}},d),a?null:u)),a?r:null)},UI=T.div(({theme:e})=>({width:"100%",borderSpacing:0,color:e.color.defaultText})),Ra=T.div(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),ze=T.div(({position:e,theme:t})=>{let r={display:"flex",flexDirection:"column",gap:5,padding:"10px 15px",alignItems:"flex-start"};switch(e){case"first":return{...r,width:"25%",paddingLeft:20};case"second":return{...r,width:"35%"};case"third":return{...r,width:"15%"};case"last":return{...r,width:"25%",paddingRight:20}}}),Fe=T.div(({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3})),WI=()=>h.createElement(UI,null,h.createElement(Ra,null,h.createElement(ze,{position:"first"},h.createElement(Fe,{width:"60%"})),h.createElement(ze,{position:"second"},h.createElement(Fe,{width:"30%"})),h.createElement(ze,{position:"third"},h.createElement(Fe,{width:"60%"})),h.createElement(ze,{position:"last"},h.createElement(Fe,{width:"60%"}))),h.createElement(Ra,null,h.createElement(ze,{position:"first"},h.createElement(Fe,{width:"60%"})),h.createElement(ze,{position:"second"},h.createElement(Fe,{width:"80%"}),h.createElement(Fe,{width:"30%"})),h.createElement(ze,{position:"third"},h.createElement(Fe,{width:"60%"})),h.createElement(ze,{position:"last"},h.createElement(Fe,{width:"60%"}))),h.createElement(Ra,null,h.createElement(ze,{position:"first"},h.createElement(Fe,{width:"60%"})),h.createElement(ze,{position:"second"},h.createElement(Fe,{width:"80%"}),h.createElement(Fe,{width:"30%"})),h.createElement(ze,{position:"third"},h.createElement(Fe,{width:"60%"})),h.createElement(ze,{position:"last"},h.createElement(Fe,{width:"60%"}))),h.createElement(Ra,null,h.createElement(ze,{position:"first"},h.createElement(Fe,{width:"60%"})),h.createElement(ze,{position:"second"},h.createElement(Fe,{width:"80%"}),h.createElement(Fe,{width:"30%"})),h.createElement(ze,{position:"third"},h.createElement(Fe,{width:"60%"})),h.createElement(ze,{position:"last"},h.createElement(Fe,{width:"60%"})))),VI=T.table(({theme:e,compact:t,inAddonPanel:r})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?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.base==="light"?ye(.25,e.color.defaultText):ye(.45,e.color.defaultText),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}},marginLeft:r?0:1,marginRight:r?0:1,tbody:{...r?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}`},...r?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}}}}})),qI=T.div({position:"relative"}),GI=T.div({position:"absolute",right:8,top:6}),YI={alpha:(e,t)=>(e.name??"").localeCompare(t.name??""),requiredFirst:(e,t)=>+!!t.type?.required-+!!e.type?.required||(e.name??"").localeCompare(t.name??""),none:null},KI=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([a,i])=>{let{category:l,subcategory:s}=i?.table||{};if(l){let u=r.sections[l]||{ungrouped:[],subsections:{}};if(!s)u.ungrouped.push({key:a,...i});else{let d=u.subsections[s]||[];d.push({key:a,...i}),u.subsections[s]=d}r.sections[l]=u}else if(s){let u=r.ungroupedSubsections[s]||[];u.push({key:a,...i}),r.ungroupedSubsections[s]=u}else r.ungrouped.push({key:a,...i})});let n=YI[t],o=a=>n?Object.keys(a).reduce((i,l)=>({...i,[l]:a[l].sort(n)}),{}):a;return{ungrouped:n?r.ungrouped.sort(n):r.ungrouped,ungroupedSubsections:o(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((a,i)=>({...a,[i]:{ungrouped:n?r.sections[i].ungrouped.sort(n):r.sections[i].ungrouped,subsections:o(r.sections[i].subsections)}}),{})}},XI=(e,t,r)=>{try{return Q0(e,t,r)}catch(n){return pR.warn(n.message),!1}},lc=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:o,initialExpandedArgs:a,sort:i="none",isLoading:l}=e;if("error"in e){let{error:C}=e;return h.createElement(FS,null,C," ",h.createElement(Jn,{href:"http://storybook.js.org/docs/?ref=ui",target:"_blank",withArrow:!0},h.createElement(Xu,null)," Read the docs"))}if(l)return h.createElement(WI,null);let{rows:s,args:u,globals:d}="rows"in e?e:{rows:void 0,args:void 0,globals:void 0},p=KI(aD(s||{},C=>!C?.table?.disable&&XI(C,u||{},d||{})),i),c=p.ungrouped.length===0,f=Object.entries(p.sections).length===0,m=Object.entries(p.ungroupedSubsections).length===0;if(c&&f&&m)return h.createElement(II,{inAddonPanel:o});let y=1;t&&(y+=1),n||(y+=2);let x=Object.keys(p.sections).length>0,v={updateArgs:t,compact:n,inAddonPanel:o,initialExpandedArgs:a};return h.createElement(jd,null,h.createElement(qI,null,t&&!l&&r&&h.createElement(GI,null,h.createElement($r,{onClick:()=>r(),"aria-label":"Reset controls",title:"Reset controls"},h.createElement(uR,null))),h.createElement(VI,{compact:n,inAddonPanel:o,className:"docblock-argstable sb-unstyled"},h.createElement("thead",{className:"docblock-argstable-head"},h.createElement("tr",null,h.createElement("th",null,h.createElement("span",null,"Name")),n?null:h.createElement("th",null,h.createElement("span",null,"Description")),n?null:h.createElement("th",null,h.createElement("span",null,"Default")),t?h.createElement("th",null,h.createElement("span",null,"Control")):null)),h.createElement("tbody",{className:"docblock-argstable-body"},p.ungrouped.map(C=>h.createElement(Ta,{key:C.key,row:C,arg:u&&u[C.key],...v})),Object.entries(p.ungroupedSubsections).map(([C,w])=>h.createElement(ks,{key:C,label:C,level:"subsection",colSpan:y},w.map(E=>h.createElement(Ta,{key:E.key,row:E,arg:u&&u[E.key],expandable:x,...v})))),Object.entries(p.sections).map(([C,w])=>h.createElement(ks,{key:C,label:C,level:"section",colSpan:y},w.ungrouped.map(E=>h.createElement(Ta,{key:E.key,row:E,arg:u&&u[E.key],...v})),Object.entries(w.subsections).map(([E,$])=>h.createElement(ks,{key:E,label:E,level:"subsection",colSpan:y},$.map(A=>h.createElement(Ta,{key:A.key,row:A,arg:u&&u[A.key],expandable:x,...v}))))))))))},ZI=e=>`anchor--${e}`,mC=({storyId:e,children:t})=>h.createElement("div",{id:ZI(e),className:"sb-anchor"},t);globalThis&&globalThis.__DOCS_CONTEXT__===void 0&&(globalThis.__DOCS_CONTEXT__=b.createContext(null),globalThis.__DOCS_CONTEXT__.displayName="DocsContext");var Rt=globalThis?globalThis.__DOCS_CONTEXT__:b.createContext(null),pn=(e,t)=>b.useContext(Rt).resolveOf(e,t),JI=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),QI=e=>{if(e)return typeof e=="string"?e.includes("-")?JI(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function e7(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}var t7=Object.create,hC=Object.defineProperty,r7=Object.getOwnPropertyDescriptor,yC=Object.getOwnPropertyNames,n7=Object.getPrototypeOf,o7=Object.prototype.hasOwnProperty,oe=(e,t)=>function(){return t||(0,e[yC(e)[0]])((t={exports:{}}).exports,t),t.exports},a7=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of yC(t))!o7.call(e,o)&&o!==r&&hC(e,o,{get:()=>t[o],enumerable:!(n=r7(t,o))||n.enumerable});return e},mp=(e,t,r)=>(r=e!=null?t7(n7(e)):{},a7(!e||!e.__esModule?hC(r,"default",{value:e,enumerable:!0}):r,e)),i7=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],l7=["detail"];function s7(e){let t=i7.filter(r=>e[r]!==void 0).reduce((r,n)=>(r[n]=e[n],r),{});if(e instanceof CustomEvent)for(let r of l7.filter(n=>e[n]!==void 0))t[r]=e[r];return t}var bC=oe({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),u7=oe({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),c7=oe({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),d7=oe({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),p7=oe({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),f7=oe({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),hp=oe({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),g7=oe({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),m7=oe({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),h7=oe({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),y7=oe({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),b7=oe({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),v7=oe({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),x7=oe({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),E7=oe({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(e,t){t.exports=Number.isNaN||function(r){return r!==r}}}),w7=oe({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var r=E7();t.exports=function(n){return r(n)||n===0?n:n<0?-1:1}}}),S7=oe({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),yp=oe({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var r=S7();if(r)try{r([],"length")}catch{r=null}t.exports=r}}),C7=oe({"node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(e,t){var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}t.exports=r}}),vC=oe({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),o=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var a=42;r[n]=a;for(var i in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var l=Object.getOwnPropertySymbols(r);if(l.length!==1||l[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(r,n);if(s.value!==a||s.enumerable!==!0)return!1}return!0}}}),xC=oe({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=vC();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),EC=oe({"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}}),wC=oe({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){var r=bC();t.exports=r.getPrototypeOf||null}}),$7=oe({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(e,t){var r="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,o=Math.max,a="[object Function]",i=function(u,d){for(var p=[],c=0;c<u.length;c+=1)p[c]=u[c];for(var f=0;f<d.length;f+=1)p[f+u.length]=d[f];return p},l=function(u,d){for(var p=[],c=d,f=0;c<u.length;c+=1,f+=1)p[f]=u[c];return p},s=function(u,d){for(var p="",c=0;c<u.length;c+=1)p+=u[c],c+1<u.length&&(p+=d);return p};t.exports=function(u){var d=this;if(typeof d!="function"||n.apply(d)!==a)throw new TypeError(r+d);for(var p=l(arguments,1),c,f=function(){if(this instanceof c){var C=d.apply(this,i(p,arguments));return Object(C)===C?C:this}return d.apply(u,i(p,arguments))},m=o(0,d.length-p.length),y=[],x=0;x<m;x++)y[x]="$"+x;if(c=Function("binder","return function ("+s(y,",")+"){ return binder.apply(this,arguments); }")(f),d.prototype){var v=function(){};v.prototype=d.prototype,c.prototype=new v,v.prototype=null}return c}}}),Dl=oe({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var r=$7();t.exports=Function.prototype.bind||r}}),bp=oe({"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}}),SC=oe({"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}}),A7=oe({"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}}),D7=oe({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var r=Dl(),n=SC(),o=bp(),a=A7();t.exports=a||r.call(o,n)}}),CC=oe({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var r=Dl(),n=hp(),o=bp(),a=D7();t.exports=function(i){if(i.length<1||typeof i[0]!="function")throw new n("a function is required");return a(r,o,i)}}}),k7=oe({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var r=CC(),n=yp(),o;try{o=[].__proto__===Array.prototype}catch(s){if(!s||typeof s!="object"||!("code"in s)||s.code!=="ERR_PROTO_ACCESS")throw s}var a=!!o&&n&&n(Object.prototype,"__proto__"),i=Object,l=i.getPrototypeOf;t.exports=a&&typeof a.get=="function"?r([a.get]):typeof l=="function"?function(s){return l(s==null?s:i(s))}:!1}}),O7=oe({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var r=EC(),n=wC(),o=k7();t.exports=r?function(a){return r(a)}:n?function(a){if(!a||typeof a!="object"&&typeof a!="function")throw new TypeError("getProto: not an object");return n(a)}:o?function(a){return o(a)}:null}}),$C=oe({"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e,t){var r=Function.prototype.call,n=Object.prototype.hasOwnProperty,o=Dl();t.exports=o.call(r,n)}}),F7=oe({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var r,n=bC(),o=u7(),a=c7(),i=d7(),l=p7(),s=f7(),u=hp(),d=g7(),p=m7(),c=h7(),f=y7(),m=b7(),y=v7(),x=x7(),v=w7(),C=Function,w=function(ne){try{return C('"use strict"; return ('+ne+").constructor;")()}catch{}},E=yp(),$=C7(),A=function(){throw new u},S=E?(function(){try{return arguments.callee,A}catch{try{return E(arguments,"callee").get}catch{return A}}})():A,D=xC()(),F=O7(),k=wC(),_=EC(),I=SC(),L=bp(),j={},B=typeof Uint8Array>"u"||!F?r:F(Uint8Array),z={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":D&&F?F([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":j,"%AsyncGenerator%":j,"%AsyncGeneratorFunction%":j,"%AsyncIteratorPrototype%":j,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":C,"%GeneratorFunction%":j,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":D&&F?F(F([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!D||!F?r:F(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":E,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":i,"%ReferenceError%":l,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!D||!F?r:F(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":D&&F?F(""[Symbol.iterator]()):r,"%Symbol%":D?Symbol:r,"%SyntaxError%":s,"%ThrowTypeError%":S,"%TypedArray%":B,"%TypeError%":u,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":d,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":L,"%Function.prototype.apply%":I,"%Object.defineProperty%":$,"%Object.getPrototypeOf%":k,"%Math.abs%":p,"%Math.floor%":c,"%Math.max%":f,"%Math.min%":m,"%Math.pow%":y,"%Math.round%":x,"%Math.sign%":v,"%Reflect.getPrototypeOf%":_};if(F)try{null.error}catch(ne){q=F(F(ne)),z["%Error.prototype%"]=q}var q,Y=function ne(de){var M;if(de==="%AsyncFunction%")M=w("async function () {}");else if(de==="%GeneratorFunction%")M=w("function* () {}");else if(de==="%AsyncGeneratorFunction%")M=w("async function* () {}");else if(de==="%AsyncGenerator%"){var U=ne("%AsyncGeneratorFunction%");U&&(M=U.prototype)}else if(de==="%AsyncIteratorPrototype%"){var fe=ne("%AsyncGenerator%");fe&&F&&(M=F(fe.prototype))}return z[de]=M,M},W={__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"]},G=Dl(),J=$C(),Q=G.call(L,Array.prototype.concat),re=G.call(I,Array.prototype.splice),ie=G.call(L,String.prototype.replace),H=G.call(L,String.prototype.slice),X=G.call(L,RegExp.prototype.exec),Z=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,le=/\\(\\)?/g,me=function(ne){var de=H(ne,0,1),M=H(ne,-1);if(de==="%"&&M!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(M==="%"&&de!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var U=[];return ie(ne,Z,function(fe,ke,be,We){U[U.length]=be?ie(We,le,"$1"):ke||fe}),U},Re=function(ne,de){var M=ne,U;if(J(W,M)&&(U=W[M],M="%"+U[0]+"%"),J(z,M)){var fe=z[M];if(fe===j&&(fe=Y(M)),typeof fe>"u"&&!de)throw new u("intrinsic "+ne+" exists, but is not available. Please file an issue!");return{alias:U,name:M,value:fe}}throw new s("intrinsic "+ne+" does not exist!")};t.exports=function(ne,de){if(typeof ne!="string"||ne.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof de!="boolean")throw new u('"allowMissing" argument must be a boolean');if(X(/^%?[^%]*%?$/,ne)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var M=me(ne),U=M.length>0?M[0]:"",fe=Re("%"+U+"%",de),ke=fe.name,be=fe.value,We=!1,pr=fe.alias;pr&&(U=pr[0],re(M,Q([0,1],pr)));for(var Ce=1,nt=!0;Ce<M.length;Ce+=1){var $e=M[Ce],ht=H($e,0,1),Ve=H($e,-1);if((ht==='"'||ht==="'"||ht==="`"||Ve==='"'||Ve==="'"||Ve==="`")&&ht!==Ve)throw new s("property names with quotes must have matching quotes");if(($e==="constructor"||!nt)&&(We=!0),U+="."+$e,ke="%"+U+"%",J(z,ke))be=z[ke];else if(be!=null){if(!($e in be)){if(!de)throw new u("base intrinsic for "+ne+" exists, but the property is not available.");return}if(E&&Ce+1>=M.length){var yt=E(be,$e);nt=!!yt,nt&&"get"in yt&&!("originalValue"in yt.get)?be=yt.get:be=be[$e]}else nt=J(be,$e),be=be[$e];nt&&!We&&(z[ke]=be)}}return be}}}),vp=oe({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var r=F7(),n=CC(),o=n([r("%String.prototype.indexOf%")]);t.exports=function(a,i){var l=r(a,!!i);return typeof l=="function"&&o(a,".prototype.")>-1?n([l]):l}}}),_7=oe({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var r=vC();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),AC=oe({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var r=vp(),n=_7()(),o=$C(),a=yp(),i;n?(l=r("RegExp.prototype.exec"),s={},u=function(){throw s},d={toString:u,valueOf:u},typeof Symbol.toPrimitive=="symbol"&&(d[Symbol.toPrimitive]=u),i=function(f){if(!f||typeof f!="object")return!1;var m=a(f,"lastIndex"),y=m&&o(m,"value");if(!y)return!1;try{l(f,d)}catch(x){return x===s}}):(p=r("Object.prototype.toString"),c="[object RegExp]",i=function(f){return!f||typeof f!="object"&&typeof f!="function"?!1:p(f)===c});var l,s,u,d,p,c;t.exports=i}}),T7=oe({"node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js"(e,t){t.exports=n;var r=Object.prototype.toString;function n(o){if(!o)return!1;var a=r.call(o);return a==="[object Function]"||typeof o=="function"&&a!=="[object RegExp]"||typeof window<"u"&&(o===window.setTimeout||o===window.alert||o===window.confirm||o===window.prompt)}}}),R7=oe({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var r=vp(),n=AC(),o=r("RegExp.prototype.exec"),a=hp();t.exports=function(i){if(!n(i))throw new a("`regex` must be a RegExp");return function(l){return o(i,l)!==null}}}}),P7=oe({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var r=vp(),n=r("Object.prototype.toString"),o=xC()(),a=R7();o?(i=r("Symbol.prototype.toString"),l=a(/^Symbol\(.*\)$/),s=function(u){return typeof u.valueOf()!="symbol"?!1:l(i(u))},t.exports=function(u){if(typeof u=="symbol")return!0;if(!u||typeof u!="object"||n(u)!=="[object Symbol]")return!1;try{return s(u)}catch{return!1}}):t.exports=function(u){return!1};var i,l,s}}),I7=mp(AC()),L7=mp(T7()),B7=mp(P7());function N7(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var j7=typeof global=="object"&&global&&global.Object===Object&&global,M7=j7,z7=typeof self=="object"&&self&&self.Object===Object&&self,H7=M7||z7||Function("return this")(),xp=H7,U7=xp.Symbol,no=U7,DC=Object.prototype,W7=DC.hasOwnProperty,V7=DC.toString,Ao=no?no.toStringTag:void 0;function q7(e){var t=W7.call(e,Ao),r=e[Ao];try{e[Ao]=void 0;var n=!0}catch{}var o=V7.call(e);return n&&(t?e[Ao]=r:delete e[Ao]),o}var G7=q7,Y7=Object.prototype,K7=Y7.toString;function X7(e){return K7.call(e)}var Z7=X7,J7="[object Null]",Q7="[object Undefined]",Jm=no?no.toStringTag:void 0;function eL(e){return e==null?e===void 0?Q7:J7:Jm&&Jm in Object(e)?G7(e):Z7(e)}var tL=eL,Qm=no?no.prototype:void 0;Qm&&Qm.toString;function rL(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var kC=rL,nL="[object AsyncFunction]",oL="[object Function]",aL="[object GeneratorFunction]",iL="[object Proxy]";function lL(e){if(!kC(e))return!1;var t=tL(e);return t==oL||t==aL||t==nL||t==iL}var sL=lL,uL=xp["__core-js_shared__"],Os=uL,eh=(function(){var e=/[^.]+$/.exec(Os&&Os.keys&&Os.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function cL(e){return!!eh&&eh in e}var dL=cL,pL=Function.prototype,fL=pL.toString;function gL(e){if(e!=null){try{return fL.call(e)}catch{}try{return e+""}catch{}}return""}var mL=gL,hL=/[\\^$.*+?()[\]{}|]/g,yL=/^\[object .+?Constructor\]$/,bL=Function.prototype,vL=Object.prototype,xL=bL.toString,EL=vL.hasOwnProperty,wL=RegExp("^"+xL.call(EL).replace(hL,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function SL(e){if(!kC(e)||dL(e))return!1;var t=sL(e)?wL:yL;return t.test(mL(e))}var CL=SL;function $L(e,t){return e?.[t]}var AL=$L;function DL(e,t){var r=AL(e,t);return CL(r)?r:void 0}var OC=DL;function kL(e,t){return e===t||e!==e&&t!==t}var OL=kL,FL=OC(Object,"create"),ea=FL;function _L(){this.__data__=ea?ea(null):{},this.size=0}var TL=_L;function RL(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var PL=RL,IL="__lodash_hash_undefined__",LL=Object.prototype,BL=LL.hasOwnProperty;function NL(e){var t=this.__data__;if(ea){var r=t[e];return r===IL?void 0:r}return BL.call(t,e)?t[e]:void 0}var jL=NL,ML=Object.prototype,zL=ML.hasOwnProperty;function HL(e){var t=this.__data__;return ea?t[e]!==void 0:zL.call(t,e)}var UL=HL,WL="__lodash_hash_undefined__";function VL(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ea&&t===void 0?WL:t,this}var qL=VL;function po(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}po.prototype.clear=TL;po.prototype.delete=PL;po.prototype.get=jL;po.prototype.has=UL;po.prototype.set=qL;var th=po;function GL(){this.__data__=[],this.size=0}var YL=GL;function KL(e,t){for(var r=e.length;r--;)if(OL(e[r][0],t))return r;return-1}var kl=KL,XL=Array.prototype,ZL=XL.splice;function JL(e){var t=this.__data__,r=kl(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():ZL.call(t,r,1),--this.size,!0}var QL=JL;function eB(e){var t=this.__data__,r=kl(t,e);return r<0?void 0:t[r][1]}var tB=eB;function rB(e){return kl(this.__data__,e)>-1}var nB=rB;function oB(e,t){var r=this.__data__,n=kl(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var aB=oB;function fo(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}fo.prototype.clear=YL;fo.prototype.delete=QL;fo.prototype.get=tB;fo.prototype.has=nB;fo.prototype.set=aB;var iB=fo,lB=OC(xp,"Map"),sB=lB;function uB(){this.size=0,this.__data__={hash:new th,map:new(sB||iB),string:new th}}var cB=uB;function dB(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var pB=dB;function fB(e,t){var r=e.__data__;return pB(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Ol=fB;function gB(e){var t=Ol(this,e).delete(e);return this.size-=t?1:0,t}var mB=gB;function hB(e){return Ol(this,e).get(e)}var yB=hB;function bB(e){return Ol(this,e).has(e)}var vB=bB;function xB(e,t){var r=Ol(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var EB=xB;function go(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}go.prototype.clear=cB;go.prototype.delete=mB;go.prototype.get=yB;go.prototype.has=vB;go.prototype.set=EB;var FC=go,wB="Expected a function";function Ep(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(wB);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(Ep.Cache||FC),r}Ep.Cache=FC;var SB=Ep,CB=500;function $B(e){var t=SB(e,function(n){return r.size===CB&&r.clear(),n}),r=t.cache;return t}var AB=$B,DB=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,kB=/\\(\\)?/g;AB(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(DB,function(r,n,o,a){t.push(o?a.replace(kB,"$1"):n||r)}),t});var OB=N7,FB=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/;function _C(e){if(!OB(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=s7(t),r=!0),t=Object.keys(t).reduce((n,o)=>{try{t[o]&&t[o].toJSON,n[o]=t[o]}catch{r=!0}return n},{}),r?t:e}var _B=function(e){let t,r,n,o;return function(a,i){try{if(a==="")return o=[],t=new Map([[i,"[]"]]),r=new Map,n=[],i;let l=r.get(this)||this;for(;n.length&&l!==n[0];)n.shift(),o.pop();if(typeof i=="boolean")return i;if(i===void 0)return e.allowUndefined?"_undefined_":void 0;if(i===null)return null;if(typeof i=="number")return i===Number.NEGATIVE_INFINITY?"_-Infinity_":i===Number.POSITIVE_INFINITY?"_Infinity_":Number.isNaN(i)?"_NaN_":i;if(typeof i=="bigint")return`_bigint_${i.toString()}`;if(typeof i=="string")return FB.test(i)?e.allowDate?`_date_${i}`:void 0:i;if((0,I7.default)(i))return e.allowRegExp?`_regexp_${i.flags}|${i.source}`:void 0;if((0,L7.default)(i))return;if((0,B7.default)(i)){if(!e.allowSymbol)return;let u=Symbol.keyFor(i);return u!==void 0?`_gsymbol_${u}`:`_symbol_${i.toString().slice(7,-1)}`}if(n.length>=e.maxDepth)return Array.isArray(i)?`[Array(${i.length})]`:"[Object]";if(i===this)return`_duplicate_${JSON.stringify(o)}`;if(i instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...i.cause?{cause:i.cause}:{},...i,name:i.name,message:i.message,stack:i.stack,"_constructor-name_":i.constructor.name}};if(i?.constructor?.name&&i.constructor.name!=="Object"&&!Array.isArray(i)){let u=t.get(i);if(!u){let d={__isClassInstance__:!0,__className__:i.constructor.name,...Object.getOwnPropertyNames(i).reduce((p,c)=>{try{p[c]=i[c]}catch{}return p},{})};return o.push(a),n.unshift(d),t.set(i,JSON.stringify(o)),i!==d&&r.set(i,d),d}return`_duplicate_${u}`}let s=t.get(i);if(!s){let u=Array.isArray(i)?i:_C(i);return o.push(a),n.unshift(u),t.set(i,JSON.stringify(o)),i!==u&&r.set(i,u),u}return`_duplicate_${s}`}catch{return}}},TB={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},RB=(e,t={})=>{let r={...TB,...t};return JSON.stringify(_C(e),_B(r),t.space)};function TC(e){return RB(e,{maxDepth:50})}var RC=b.createContext({sources:{}}),PC="--unknown--",PB=({children:e,channel:t})=>{let[r,n]=b.useState({});return b.useEffect(()=>{let o=(a,i=null,l=!1)=>{let{id:s,args:u=void 0,source:d,format:p}=typeof a=="string"?{id:a,source:i,format:l}:a,c=u?TC(u):PC;n(f=>({...f,[s]:{...f[s],[c]:{code:d||"",format:p}}}))};return t.on(kp,o),()=>t.off(kp,o)},[]),h.createElement(RC.Provider,{value:{sources:r}},e)};function IB(e,t,r){let[n,o]=b.useState("Transforming..."),a=t?t?.(e,r):e;return b.useEffect(()=>{async function i(){let l=await a;l!==n&&o(l)}i()}),typeof a=="object"&&typeof a.then=="function"?n:a}var LB=(e,t,r)=>{let{sources:n}=r,o=n?.[e];return o?.[TC(t)]||o?.[PC]||{code:""}},BB=({snippet:e,storyContext:t,typeFromProps:r,transformFromProps:n})=>{let o=t.parameters??{},{__isArgsStory:a}=o,i=o.docs?.source||{},l=r||i.type||Tl.AUTO,s=l===Tl.DYNAMIC||l===Tl.AUTO&&e&&a?e:i.originalSource||"",u=n??i.transform,d=u?IB(s,u,t):s;return i.code!==void 0?i.code:d},NB=(e,t,r)=>{let{of:n}=e,o=b.useMemo(()=>{if(n)return t.resolveOf(n,["story"]).story;try{return t.storyById()}catch{}},[t,n]),a=o?t.getStoryContext(o):{},i=e.__forceInitialArgs?a.initialArgs:a.unmappedArgs,l=o?LB(o.id,i,r):null,s=BB({snippet:l?l.code:"",storyContext:{...a,args:i},typeFromProps:e.type,transformFromProps:e.transform});if("of"in e&&n===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let u=o?.parameters?.docs?.source||{},d=e.format,p=e.language??u.language??"jsx",c=e.dark??u.dark??!1;return!e.code&&!o?{error:"Oh no! The source is not available."}:e.code?{code:e.code,format:d,language:p,dark:c}:(d=l?.format??!0,{code:s,format:d,language:p,dark:c})};function jB(e,t){let r=MB([e],t);return r&&r[0]}function MB(e,t){let[r,n]=b.useState({});return b.useEffect(()=>{Promise.all(e.map(async o=>{let a=await t.loadStory(o);n(i=>i[o]===a?i:{...i,[o]:a})}))}),e.map(o=>{if(r[o])return r[o];try{return t.storyById(o)}catch{return}})}var zB=(e,t)=>{let{of:r,meta:n}=e;if("of"in e&&r===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");return n&&t.referenceMeta(n,!1),t.resolveOf(r||"story",["story"]).story.id},HB=(e,t,r)=>{let{parameters:n={}}=t||{},{docs:o={}}=n,a=o.story||{};if(o.disable)return null;if(e.inline??a.inline??!1){let l=e.height??a.height,s=e.autoplay??a.autoplay??!1;return{story:t,inline:!0,height:l,autoplay:s,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:r.renderStoryToElement}}let i=e.height??a.height??a.iframeHeight??"100px";return{story:t,inline:!1,height:i,primary:!!e.__primary}},UB=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=b.useContext(Rt),r=zB(e,t),n=jB(r,t);if(!n)return h.createElement(RS,null);let o=HB(e,n,t);return o?h.createElement(x6,{...o}):null},WB=e=>{let t=b.useContext(Rt),r=b.useContext(RC),{of:n,source:o}=e;if("of"in e&&n===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{story:a}=pn(n||"story",["story"]),i=NB({...o,...n&&{of:n}},t,r),l=e.layout??a.parameters.layout??a.parameters.docs?.canvas?.layout??"padded",s=e.withToolbar??a.parameters.docs?.canvas?.withToolbar??!1,u=e.additionalActions??a.parameters.docs?.canvas?.additionalActions,d=e.sourceState??a.parameters.docs?.canvas?.sourceState??"hidden",p=e.className??a.parameters.docs?.canvas?.className,c=e.story?.inline??a.parameters?.docs?.story?.inline??!1;return h.createElement(PS,{withSource:d==="none"?void 0:i,isExpanded:d==="shown",withToolbar:s,additionalActions:u,className:p,layout:l,inline:c},h.createElement(UB,{of:n||a.moduleExport,meta:e.meta,...e.story}))},VB=(e,t)=>{let r=qB(e,t);if(!r)throw new Error("No result when story was defined");return r},qB=(e,t)=>{let r=e?t.getStoryContext(e):{args:{}},{id:n}=e||{id:"none"},[o,a]=b.useState(r.args);b.useEffect(()=>{let s=u=>{u.storyId===n&&a(u.args)};return t.channel.on(Cm,s),()=>t.channel.off(Cm,s)},[n,t.channel]);let i=b.useCallback(s=>t.channel.emit(fR,{storyId:n,updatedArgs:s}),[n,t.channel]),l=b.useCallback(s=>t.channel.emit(gR,{storyId:n,argNames:s}),[n,t.channel]);return e&&[o,i,l]},GB=(e,t)=>{let r=t.getStoryContext(e),[n,o]=b.useState(r.globals);return b.useEffect(()=>{let a=i=>{o(i.globals)};return t.channel.on($m,a),()=>t.channel.off($m,a)},[t.channel]),[n]};function YB(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}var KB=e=>{let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let r=b.useContext(Rt),{story:n}=r.resolveOf(t||"story",["story"]),{parameters:o,argTypes:a,component:i,subcomponents:l}=n,s=o.docs?.controls||{},u=e.include??s.include,d=e.exclude??s.exclude,p=e.sort??s.sort,[c,f,m]=VB(n,r),[y]=GB(n,r),x=Am(a,u,d);if(!(l&&Object.keys(l||{}).length>0))return Object.keys(x).length>0||Object.keys(c).length>0?h.createElement(lc,{rows:x,sort:p,args:c,globals:y,updateArgs:f,resetArgs:m}):null;let v=QI(i)||"Story",C=Object.fromEntries(Object.entries(l||{}).map(([E,$])=>[E,{rows:Am(YB($,o),u,d),sort:p}])),w={[v]:{rows:x,sort:p},...C};return h.createElement(_6,{tabs:w,sort:p,args:c,globals:y,updateArgs:f,resetArgs:m})},{document:IC}=globalThis,XB=({className:e,children:t,...r})=>{if(typeof e!="string"&&(typeof t!="string"||!t.match(/[\n\r]/g)))return h.createElement(Md,null,t);let n=e&&e.split("-");return h.createElement(_S,{language:n&&n[1]||"text",format:!1,code:t,...r})};function wp(e,t){e.channel.emit(CS,t)}var sc=ES.a,ZB=({hash:e,children:t})=>{let r=b.useContext(Rt);return h.createElement(sc,{href:e,target:"_self",onClick:n=>{let o=e.substring(1);IC.getElementById(o)&&wp(r,e)}},t)},JB=e=>{let{href:t,target:r,children:n,...o}=e,a=b.useContext(Rt);return!t||r==="_blank"||/^https?:\/\//.test(t)?h.createElement(sc,{...e}):t.startsWith("#")?h.createElement(ZB,{hash:t},n):h.createElement(sc,{href:t,onClick:i=>{i.button===0&&!i.altKey&&!i.ctrlKey&&!i.metaKey&&!i.shiftKey&&(i.preventDefault(),wp(a,i.currentTarget.getAttribute("href")||""))},target:r,...o},n)},LC=["h1","h2","h3","h4","h5","h6"],QB=LC.reduce((e,t)=>({...e,[t]:T(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),eN=T.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),tN=({as:e,id:t,children:r,...n})=>{let o=b.useContext(Rt),a=QB[e],i=`#${t}`;return h.createElement(a,{id:t,...n},h.createElement(eN,{"aria-hidden":"true",href:i,tabIndex:-1,target:"_self",onClick:l=>{IC.getElementById(t)&&wp(o,i)}},h.createElement(aR,null)),r)},Sp=e=>{let{as:t,id:r,children:n,...o}=e;if(r)return h.createElement(tN,{as:t,id:r,...o},n);let a=t,{as:i,...l}=e;return h.createElement(a,{...ve(l,t)})},rN=LC.reduce((e,t)=>({...e,[t]:r=>h.createElement(Sp,{as:t,...r})}),{}),nN=e=>{if(!e.children)return null;if(typeof e.children!="string")throw new Error(cR`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}'
1228
+ This is often caused by not wrapping the child in a template string.
1229
+
1230
+ This is invalid:
1231
+ <Markdown>
1232
+ # Some heading
1233
+ A paragraph
1234
+ </Markdown>
1235
+
1236
+ Instead do:
1237
+ <Markdown>
1238
+ {\`
1239
+ # Some heading
1240
+ A paragraph
1241
+ \`}
1242
+ </Markdown>
1243
+ `);return h.createElement(eC,{...e,options:{forceBlock:!0,overrides:{code:XB,a:JB,...rN,...e?.options?.overrides},...e?.options}})},oN=(e=>(e.INFO="info",e.NOTES="notes",e.DOCGEN="docgen",e.AUTO="auto",e))(oN||{}),aN=e=>{switch(e.type){case"story":return e.story.parameters.docs?.description?.story||null;case"meta":{let{parameters:t,component:r}=e.preparedMeta;return t.docs?.description?.component||t.docs?.extractComponentDescription?.(r,{component:r,parameters:t})||null}case"component":{let{component:t,projectAnnotations:{parameters:r}}=e;return r?.docs?.extractComponentDescription?.(t,{component:t,parameters:r})||null}default:throw new Error(`Unrecognized module type resolved from 'useOf', got: ${e.type}`)}},uc=e=>{let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let r=pn(t||"meta"),n=aN(r);return n?h.createElement(nN,null,n):null},{document:iN,window:lN}=globalThis,sN=({context:e,theme:t,children:r})=>{let n;try{n=e.resolveOf("meta",["meta"]).preparedMeta.parameters?.docs?.toc}catch{n=e?.projectAnnotations?.parameters?.docs?.toc}return b.useEffect(()=>{let o;try{if(o=new URL(lN.parent.location.toString()),o.hash){let a=iN.getElementById(decodeURIComponent(o.hash.substring(1)));a&&setTimeout(()=>{e7(a)},200)}}catch{}}),h.createElement(Rt.Provider,{value:e},h.createElement(PB,{channel:e.channel},h.createElement(Mb,{theme:rk(t)},h.createElement(p6,{toc:n?h.createElement(Y6,{className:"sbdocs sbdocs-toc--custom",channel:e.channel,...n}):null},r))))},uN=/[\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,cN=Object.hasOwnProperty,dN=class{constructor(){this.occurrences,this.reset()}slug(e,t){let r=this,n=pN(e,t===!0),o=n;for(;cN.call(r.occurrences,n);)r.occurrences[o]++,n=o+"-"+r.occurrences[o];return r.occurrences[n]=0,n}reset(){this.occurrences=Object.create(null)}};function pN(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(uN,"").replace(/ /g,"-"))}var BC=new dN,fN=({children:e,disableAnchor:t,...r})=>{if(t||typeof e!="string")return h.createElement(zd,null,e);let n=BC.slug(e.toLowerCase());return h.createElement(Sp,{as:"h2",id:n,...r},e)},gN=({children:e,disableAnchor:t})=>{if(t||typeof e!="string")return h.createElement(Hd,null,e);let r=BC.slug(e.toLowerCase());return h.createElement(Sp,{as:"h3",id:r},e)},NC=({of:e,expanded:t=!0,withToolbar:r=!1,__forceInitialArgs:n=!1,__primary:o=!1})=>{let{story:a}=pn(e||"story",["story"]),i=a.parameters.docs?.canvas?.withToolbar??r;return h.createElement(mC,{storyId:a.id},t&&h.createElement(h.Fragment,null,h.createElement(gN,null,a.name),h.createElement(uc,{of:e})),h.createElement(WB,{of:e,withToolbar:i,story:{__forceInitialArgs:n,__primary:o},source:{__forceInitialArgs:n}}))},mN=e=>{let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{csfFile:r}=pn(t||"meta",["meta"]),n=b.useContext(Rt).componentStoriesFromCSFFile(r)[0];return n?h.createElement(NC,{of:n.moduleExport,expanded:!1,__primary:!0,withToolbar:!0}):null},hN=T(fN)(({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"}})),yN=({title:e="Stories",includePrimary:t=!0})=>{let{componentStories:r,projectAnnotations:n,getStoryContext:o}=b.useContext(Rt),a=r(),{stories:{filter:i}={filter:void 0}}=n.parameters?.docs||{};return i&&(a=a.filter(l=>i(l,o(l)))),a.some(l=>l.tags?.includes("autodocs"))&&(a=a.filter(l=>l.tags?.includes("autodocs")&&!l.usesMount)),t||(a=a.slice(1)),!a||a.length===0?null:h.createElement(h.Fragment,null,typeof e=="string"?h.createElement(hN,null,e):e,a.map(l=>l&&h.createElement(NC,{key:l.id,of:l.moduleExport,expanded:!0,__forceInitialArgs:!0})))},bN="https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#subtitle-block-and-parameterscomponentsubtitle",vN=e=>{let{of:t,children:r}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let n;try{n=pn(t||"meta",["meta"]).preparedMeta}catch(l){if(r&&!l.message.includes("did you forget to use <Meta of={} />?"))throw l}let{componentSubtitle:o,docs:a}=n?.parameters||{};o&&dR(`Using 'parameters.componentSubtitle' property to subtitle stories is deprecated. See ${bN}`);let i=r||a?.subtitle||o;return i?h.createElement(u6,{className:"sbdocs-subtitle sb-unstyled"},i):null},xN=/\s*\/\s*/,EN=e=>{let t=e.trim().split(xN);return t?.[t?.length-1]||e},wN=e=>{let{children:t,of:r}=e;if("of"in e&&r===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let n;try{n=pn(r||"meta",["meta"]).preparedMeta}catch(a){if(t&&a instanceof Error&&!a.message.includes("did you forget to use <Meta of={} />?"))throw a}let o=t||EN(n?.title||"");return o?h.createElement(s6,{className:"sbdocs-title sb-unstyled"},o):null},SN=()=>{let e=pn("meta",["meta"]),{stories:t}=e.csfFile,r=Object.keys(t).length===1;return h.createElement(h.Fragment,null,h.createElement(wN,null),h.createElement(vN,null),h.createElement(uc,{of:"meta"}),r?h.createElement(uc,{of:"story"}):null,h.createElement(mN,null),h.createElement(KB,null),r?null:h.createElement(yN,null))};function XN({context:e,docsParameter:t}){let r=t.container||sN,n=t.page||SN;return h.createElement(r,{context:e,theme:t.theme},h.createElement(n,null))}var ZN=({of:e})=>{let t=b.useContext(Rt);e&&t.referenceMeta(e,!0);try{let r=t.storyById();return h.createElement(mC,{storyId:r.id})}catch{return null}};export{JB as A,XB as C,XN as D,rN as H,nN as M,mN as P,vN as S,wN as T,pD as _,yN as a,ZN as b,aT as c,zN as d,uo as e,VN as f,Ft as g,cD as h,el as r,X4 as u,T as x};