@worktango/ai-assistant 0.0.45 → 0.0.46

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 (170) hide show
  1. package/README.md +1 -5
  2. package/dist/{Absenteeism-CPgtVEHH.mjs → Absenteeism-CvkLNzNq.mjs} +1 -1
  3. package/dist/{ActivityFeed-DkVBkGMt.mjs → ActivityFeed-DIow5qe1.mjs} +1 -1
  4. package/dist/{AddUser-DqmB-_hD.mjs → AddUser-VCmMisxU.mjs} +1 -1
  5. package/dist/{Admin-cZHcfKlP.mjs → Admin-4l5CvQES.mjs} +1 -1
  6. package/dist/{Admin-vbFJRP5Q.mjs → Admin-DwJjsJ9Q.mjs} +1 -1
  7. package/dist/{AiGeneral-_ux0p7da.mjs → AiGeneral-dDDM5Hjc.mjs} +1 -1
  8. package/dist/{AiScoring-D8fMg9R5.mjs → AiScoring-cPvM1oV4.mjs} +1 -1
  9. package/dist/{AiText-32LdejFL.mjs → AiText-CwxNQcmP.mjs} +1 -1
  10. package/dist/{Anniversary-Bm-gm68X.mjs → Anniversary-Bn39toKH.mjs} +1 -1
  11. package/dist/{Appreciation-C-PcvbvC.mjs → Appreciation-H4ax7U7i.mjs} +1 -1
  12. package/dist/{ArrowDown-CYGnD9UH.mjs → ArrowDown-Bf2ENhiY.mjs} +1 -1
  13. package/dist/{ArrowLeft-Q0T5s_Ox.mjs → ArrowLeft-BuwlshL7.mjs} +1 -1
  14. package/dist/{ArrowRight-5aFHf-k0.mjs → ArrowRight-DZ2r0mgJ.mjs} +1 -1
  15. package/dist/{ArrowUp-CvaXv93u.mjs → ArrowUp-BdfAqKT8.mjs} +1 -1
  16. package/dist/{Attachment-OXVDsE8e.mjs → Attachment-BPlkpZIT.mjs} +1 -1
  17. package/dist/{BeQuickDontHurry-BNMo3LiP.mjs → BeQuickDontHurry-CNXbFb3w.mjs} +1 -1
  18. package/dist/{Birthday-DvvKw0Un.mjs → Birthday-Bv95VXwn.mjs} +1 -1
  19. package/dist/{BrandPromise-DZT_aoNR.mjs → BrandPromise-BusVAy16.mjs} +1 -1
  20. package/dist/{BrandVision-NzrazXSB.mjs → BrandVision-jPMMsYLb.mjs} +1 -1
  21. package/dist/{Calendar-BQHd7_6A.mjs → Calendar-SADKWAn7.mjs} +1 -1
  22. package/dist/{CaretDn-CPGjRhvT.mjs → CaretDn-C0iTSaPs.mjs} +1 -1
  23. package/dist/{CaretDown-D90l5BOf.mjs → CaretDown-BO7JJ0Rc.mjs} +1 -1
  24. package/dist/{CaretLeft-zaysoSbu.mjs → CaretLeft-CdPOE-PV.mjs} +1 -1
  25. package/dist/{CaretRight-BdZckqmY.mjs → CaretRight-BmskPlHc.mjs} +1 -1
  26. package/dist/{CaretUp-jF1ItwAP.mjs → CaretUp-S1ph3TCK.mjs} +1 -1
  27. package/dist/{ChallengeAccepted-CCO9R2OQ.mjs → ChallengeAccepted-VBMPdULe.mjs} +1 -1
  28. package/dist/{CheckIn-Cc4XyvBk.mjs → CheckIn-mP5lskTj.mjs} +1 -1
  29. package/dist/{CheckIns-BhEHWFz0.mjs → CheckIns-BwsuyiK4.mjs} +1 -1
  30. package/dist/{CheckSeal-MYtGYWZK.mjs → CheckSeal-2aolkq6s.mjs} +1 -1
  31. package/dist/{Checkmark-DxPZluua.mjs → Checkmark-allobjFP.mjs} +1 -1
  32. package/dist/{Clock-uOuMedhL.mjs → Clock-BobryLNP.mjs} +1 -1
  33. package/dist/{Close-CS8RwdEQ.mjs → Close-D-tr4sXI.mjs} +1 -1
  34. package/dist/{CloudDownload-Bcw6P7c6.mjs → CloudDownload-anJJAqcT.mjs} +1 -1
  35. package/dist/{Comment-CB4xTlge.mjs → Comment-Ci-aS5zP.mjs} +1 -1
  36. package/dist/{Comments-DQD5HI9J.mjs → Comments-DBUFuVZa.mjs} +1 -1
  37. package/dist/{Connections-1yG_ynem.mjs → Connections-CupzXktA.mjs} +1 -1
  38. package/dist/{Copy-wYk6yvMs.mjs → Copy-CI6-2rnX.mjs} +1 -1
  39. package/dist/{CustomQuestion-DXlBG63m.mjs → CustomQuestion-C6owhy97.mjs} +1 -1
  40. package/dist/{CustomerSuccess-AaCFxd0V.mjs → CustomerSuccess-BBhrFEqi.mjs} +1 -1
  41. package/dist/{DatePicker-B7f2aaDc.mjs → DatePicker-C1MsLMXs.mjs} +1 -1
  42. package/dist/{Dot-Cy8mIXH7.mjs → Dot-CVwjUqGj.mjs} +1 -1
  43. package/dist/{Download-uA7sUdcB.mjs → Download-CORTqEih.mjs} +1 -1
  44. package/dist/{Drag-MHHIT-gA.mjs → Drag-CjQPgAox.mjs} +1 -1
  45. package/dist/{Earn-D0-KaL1E.mjs → Earn-DoECilV2.mjs} +1 -1
  46. package/dist/{Email-CXU8ZFHd.mjs → Email-CWl0PZem.mjs} +1 -1
  47. package/dist/{EmojiDisplay-DEdhuyhr.mjs → EmojiDisplay-WWj-F4PA.mjs} +2 -2
  48. package/dist/{EmojiPicker-CIu-RpZL.mjs → EmojiPicker-BOHEi1Oc.mjs} +2 -2
  49. package/dist/{EnpsSurvey-CeB25OY9.mjs → EnpsSurvey-BJA0xabu.mjs} +1 -1
  50. package/dist/{Expired-b5d1F9x1.mjs → Expired-DWCHl1XV.mjs} +1 -1
  51. package/dist/{Eye-DvwFCXbp.mjs → Eye-CWl1L0T_.mjs} +1 -1
  52. package/dist/{Feedback-BUkuki3Z.mjs → Feedback-DXcUM3CQ.mjs} +1 -1
  53. package/dist/{Feedback-BQhuzEmc.mjs → Feedback-Day1FVgr.mjs} +1 -1
  54. package/dist/{Filter-Cey_SWJW.mjs → Filter-B1KkkaEk.mjs} +1 -1
  55. package/dist/{Flag-Cm4le5wU.mjs → Flag-CLmRE-_3.mjs} +1 -1
  56. package/dist/{Giphy-CoA_avc4.mjs → Giphy-kvKOt3pz.mjs} +1 -1
  57. package/dist/{GoalCount-Dgabcb8N.mjs → GoalCount-Vx7G85aC.mjs} +1 -1
  58. package/dist/{GoalPercent-qlteWByM.mjs → GoalPercent-CwOP7i8L.mjs} +1 -1
  59. package/dist/{GoalTask-BnLSvmOV.mjs → GoalTask-BzHbJLho.mjs} +1 -1
  60. package/dist/{GoalTask-DV_qnu_z.mjs → GoalTask-tNoPsC-S.mjs} +1 -1
  61. package/dist/{Goals-BZh_UBXv.mjs → Goals-BaQ9JgnO.mjs} +1 -1
  62. package/dist/{Goals-DHho1Q4T.mjs → Goals-Cs0WuySU.mjs} +1 -1
  63. package/dist/{Growth-Yn5j8jz9.mjs → Growth-DtHGPxFP.mjs} +1 -1
  64. package/dist/{Hamburger-Cp-sfRC7.mjs → Hamburger-DqF298_J.mjs} +1 -1
  65. package/dist/{Help-C0JHkCHb.mjs → Help-C8wGwN6q.mjs} +1 -1
  66. package/dist/{HighFive-DXxagdJi.mjs → HighFive-B3VMBSUY.mjs} +1 -1
  67. package/dist/{HighFive-BCDc_EVf.mjs → HighFive-BKbHcnkP.mjs} +1 -1
  68. package/dist/{Home-XIKB0aLh.mjs → Home-ByG4U43P.mjs} +1 -1
  69. package/dist/{Home-_pJBP4Ly.mjs → Home-m14JD1fd.mjs} +1 -1
  70. package/dist/{HorizontalLine-Bu2LBp25.mjs → HorizontalLine-DY1-uass.mjs} +1 -1
  71. package/dist/{Hourglass-an4b7cuQ.mjs → Hourglass-CobvUBvJ.mjs} +1 -1
  72. package/dist/{Image-CH05OWjI.mjs → Image-s4ei94dY.mjs} +1 -1
  73. package/dist/{ImageFile-B7vQHofA.mjs → ImageFile-YDCwSnxx.mjs} +1 -1
  74. package/dist/{InGoodCompany-BAZyx52-.mjs → InGoodCompany-Bne3E4Ba.mjs} +1 -1
  75. package/dist/{Incentives-YEfgTao9.mjs → Incentives-DTBRP7Jn.mjs} +1 -1
  76. package/dist/{Info-B_LjAqkr.mjs → Info-D8aOmm6J.mjs} +1 -1
  77. package/dist/{Insights-DYLU3aQf.mjs → Insights-CEkdwE-r.mjs} +1 -1
  78. package/dist/{Insights-79bckaAA.mjs → Insights-gNOVz5YC.mjs} +1 -1
  79. package/dist/{Integrations-BcDjMj7H.mjs → Integrations-tEO7RETu.mjs} +1 -1
  80. package/dist/{KazooLogo-Np9iDxhQ.mjs → KazooLogo-BzZidwVR.mjs} +1 -1
  81. package/dist/{KnowYourAudience-t7NsF563.mjs → KnowYourAudience-DRDarJFs.mjs} +1 -1
  82. package/dist/{Launch-BTDshh96.mjs → Launch-BNAyHthD.mjs} +1 -1
  83. package/dist/{Link-CjOXokRo.mjs → Link-BLMHZ1aQ.mjs} +1 -1
  84. package/dist/{LinkArrow-CoyYcLRc.mjs → LinkArrow-DaMrPk_k.mjs} +1 -1
  85. package/dist/{Loading-DqZuMJnF.mjs → Loading-D1kpkp4s.mjs} +1 -1
  86. package/dist/{Lock-DGMFif0X.mjs → Lock-CIbRhMpG.mjs} +1 -1
  87. package/dist/{Management-Dpytsey-.mjs → Management-HODDftuh.mjs} +1 -1
  88. package/dist/{MeatballMenu-CkHwKjdi.mjs → MeatballMenu-CFTTKd7G.mjs} +1 -1
  89. package/dist/{Messages-DbunxP0R.mjs → Messages-DLV26791.mjs} +1 -1
  90. package/dist/{Mobile-CiOFvpET.mjs → Mobile-CnBkNWNk.mjs} +1 -1
  91. package/dist/{Nomination-DvwuVg6Y.mjs → Nomination-sljnvc2J.mjs} +1 -1
  92. package/dist/{NominationsAndAwards-DGhjNeg7.mjs → NominationsAndAwards-hXGBSrd5.mjs} +1 -1
  93. package/dist/{Notification-ChgcA6QK.mjs → Notification-Cl3wHdO4.mjs} +1 -1
  94. package/dist/{Okrs-CHKnHH5T.mjs → Okrs-CLyZa7IW.mjs} +1 -1
  95. package/dist/{PeerToPeer-CXdCGT3d.mjs → PeerToPeer-FCN4AXXO.mjs} +1 -1
  96. package/dist/{Pencil-C18uX4jK.mjs → Pencil-CneSeEmL.mjs} +1 -1
  97. package/dist/{People-CTWDHqTM.mjs → People-CtU7XCdC.mjs} +1 -1
  98. package/dist/{PerformanceManagement-DcozxlEo.mjs → PerformanceManagement-DUvGX5qB.mjs} +1 -1
  99. package/dist/{Pin-CZLFnszq.mjs → Pin-D9HewXPN.mjs} +1 -1
  100. package/dist/{PinnedIconAward-CYiM-FTf.mjs → PinnedIconAward-CUsXfU8z.mjs} +1 -1
  101. package/dist/{PinnedIconBrightIdea-CZnzOCcj.mjs → PinnedIconBrightIdea-DXzfhKFd.mjs} +1 -1
  102. package/dist/{PinnedIconBullseye-DY5Ylquz.mjs → PinnedIconBullseye-6ycBoYF2.mjs} +1 -1
  103. package/dist/{PinnedIconChampagne-DlHMNvXd.mjs → PinnedIconChampagne-BbBUBGfx.mjs} +1 -1
  104. package/dist/{PinnedIconCheer-CNZUyGst.mjs → PinnedIconCheer-CqKctlgM.mjs} +1 -1
  105. package/dist/{PinnedIconCrown-H8ppWNR4.mjs → PinnedIconCrown-zHNhSgIf.mjs} +1 -1
  106. package/dist/{PinnedIconDiamond-DWKGYGUX.mjs → PinnedIconDiamond-7MKBo3Gk.mjs} +1 -1
  107. package/dist/{PinnedIconHoleInOne-CVKXCz6y.mjs → PinnedIconHoleInOne-qWltCe51.mjs} +1 -1
  108. package/dist/{PinnedIconMedal-BNQhrNDN.mjs → PinnedIconMedal-DHGWEcrM.mjs} +1 -1
  109. package/dist/{PinnedIconMetrics-DHsyGwFQ.mjs → PinnedIconMetrics-BJt09o9M.mjs} +1 -1
  110. package/dist/{PinnedIconPin-X8h9ND4b.mjs → PinnedIconPin-CEJ8A11h.mjs} +1 -1
  111. package/dist/{PinnedIconRockAndRoll-Dmy2xALK.mjs → PinnedIconRockAndRoll-nXKnAWfb.mjs} +1 -1
  112. package/dist/{PinnedIconRocket-Du1wl_qP.mjs → PinnedIconRocket-C1INPqe1.mjs} +1 -1
  113. package/dist/{PinnedIconStrength-BYXQPAxq.mjs → PinnedIconStrength-DhJFLRRB.mjs} +1 -1
  114. package/dist/{PinnedIconTeddyBear-DSmKm9bJ.mjs → PinnedIconTeddyBear-cKiWYZcJ.mjs} +1 -1
  115. package/dist/{PlatformLogo-BevFs8VX.mjs → PlatformLogo-n7qJo2n5.mjs} +1 -1
  116. package/dist/{Plus-DJmIfBM1.mjs → Plus-BZLLdprt.mjs} +1 -1
  117. package/dist/{Popper-C5rF9W6g.mjs → Popper-C_3Yx4Yg.mjs} +1 -1
  118. package/dist/{PrivateEye-DNfj7deQ.mjs → PrivateEye-CLepoxwH.mjs} +1 -1
  119. package/dist/{PrivatePushPin-DoFQmKGr.mjs → PrivatePushPin-RNMS0Y2x.mjs} +1 -1
  120. package/dist/{Processing-B5Bo7aur.mjs → Processing-BcCqHgXh.mjs} +1 -1
  121. package/dist/{Productivity-D_-yICwa.mjs → Productivity-BlclF6Yk.mjs} +1 -1
  122. package/dist/{ProgressCircle-CWL67MAT.mjs → ProgressCircle-BfCdpGrx.mjs} +1 -1
  123. package/dist/{PulseSurvey-CH5BjAho.mjs → PulseSurvey-DDsbcxX0.mjs} +1 -1
  124. package/dist/{PushPin-B7nPx5qH.mjs → PushPin-DuBtLOoY.mjs} +1 -1
  125. package/dist/{Recognition-Duu4sD1O.mjs → Recognition-DIb3kPPa.mjs} +1 -1
  126. package/dist/{Recognition-2IHK4vqb.mjs → Recognition-DmNJUBLd.mjs} +1 -1
  127. package/dist/{Retention-CrM1JrrD.mjs → Retention-C8NO-HUp.mjs} +1 -1
  128. package/dist/{Rewards-8vNOENxe.mjs → Rewards-CTqpr9fk.mjs} +1 -1
  129. package/dist/{Rewards-lz6Y-shl.mjs → Rewards-MZASWHAv.mjs} +1 -1
  130. package/dist/{RewardsCatalog-C0B-T02G.mjs → RewardsCatalog-ZZ-wC7pL.mjs} +1 -1
  131. package/dist/{Roadmap-B9pgMOnu.mjs → Roadmap-C6Zbn2AU.mjs} +1 -1
  132. package/dist/{Search-VqgLaCgs.mjs → Search-Dv4YtuiL.mjs} +1 -1
  133. package/dist/{Security-a-W6-vcn.mjs → Security-DBklTJ4X.mjs} +1 -1
  134. package/dist/{SendRecognition-DctQWJSR.mjs → SendRecognition-CM_zK-3k.mjs} +1 -1
  135. package/dist/{ShareLink-Ct-G9j9l.mjs → ShareLink-DD2wri3z.mjs} +1 -1
  136. package/dist/{Skill-CQMB2UAO.mjs → Skill-KE91LVmm.mjs} +1 -1
  137. package/dist/{Skills-prwdYtoL.mjs → Skills-CjuOxTBx.mjs} +1 -1
  138. package/dist/{Smiley-Bj-17C1v.mjs → Smiley-Cd_4L-ni.mjs} +1 -1
  139. package/dist/{Stop-BW3jgic8.mjs → Stop-B586iQGI.mjs} +1 -1
  140. package/dist/{Survey-ClrUFAE_.mjs → Survey-Bn-1dAHJ.mjs} +1 -1
  141. package/dist/{Surveys-DchdoBFY.mjs → Surveys-BYpbDOKY.mjs} +1 -1
  142. package/dist/{SyncUps-D94BPkKm.mjs → SyncUps-DL0eP4xk.mjs} +1 -1
  143. package/dist/{Syncs-DNLxrlOc.mjs → Syncs-DaoF3ZQ7.mjs} +1 -1
  144. package/dist/{TalentReview-Cqkvsf-G.mjs → TalentReview-Bj_vyX_3.mjs} +1 -1
  145. package/dist/{TalentReview-CL8Ip4yW.mjs → TalentReview-DobFepeB.mjs} +1 -1
  146. package/dist/{TalentReviewInsights-DcIV4Zwp.mjs → TalentReviewInsights-CN6vOcxE.mjs} +1 -1
  147. package/dist/{TaskCompleted-C91Wbawz.mjs → TaskCompleted-Dkxy3WPg.mjs} +1 -1
  148. package/dist/{Team-iFWNi1Cg.mjs → Team-CtlmJEOe.mjs} +1 -1
  149. package/dist/{Teams-GRDrTpZW.mjs → Teams-KVvlBIMP.mjs} +1 -1
  150. package/dist/{TextBold-BmernBrC.mjs → TextBold-DGuy2e33.mjs} +1 -1
  151. package/dist/{TextBulletList-B4qWbcjQ.mjs → TextBulletList-F_Q_FZOR.mjs} +1 -1
  152. package/dist/{TextInput-CjPn43Ux.mjs → TextInput-BBVsh9eL.mjs} +1 -1
  153. package/dist/{TextItalic-BmxIvzEj.mjs → TextItalic-DTgFk9o7.mjs} +1 -1
  154. package/dist/{TextNumberList-Bx2XuHY1.mjs → TextNumberList-CQFcuhmU.mjs} +1 -1
  155. package/dist/{TextUnderline-aCL7sVR3.mjs → TextUnderline-B30oCBtN.mjs} +1 -1
  156. package/dist/{Toggle-CbjAYTNx.mjs → Toggle-D7TGuYyE.mjs} +1 -1
  157. package/dist/{Trash-C8hxu31G.mjs → Trash-Cw2hVISv.mjs} +1 -1
  158. package/dist/{TrendDown-DKcVXx-A.mjs → TrendDown-Bx3nge4A.mjs} +1 -1
  159. package/dist/{TrendUp-CA-E_3kx.mjs → TrendUp-Cqi1s4Ye.mjs} +1 -1
  160. package/dist/{Unplugged-ntf1dR8f.mjs → Unplugged-BHwcgKTX.mjs} +1 -1
  161. package/dist/{UpDownCaret-DxRIE-qJ.mjs → UpDownCaret-DhVcnAaL.mjs} +1 -1
  162. package/dist/{VerticalLine-CQhCD5T6.mjs → VerticalLine-DuWBbj4Y.mjs} +1 -1
  163. package/dist/{Warning-WrKGlA3Y.mjs → Warning-CMbn6g8o.mjs} +1 -1
  164. package/dist/{WarningNoOutline-B_LqRPlW.mjs → WarningNoOutline-D6UyWpn1.mjs} +1 -1
  165. package/dist/{YesAnd-vxz23WAz.mjs → YesAnd-Dn4b9JDp.mjs} +1 -1
  166. package/dist/{emoji-BlGKfvLv.mjs → emoji-DNZYA9iw.mjs} +1 -1
  167. package/dist/react.es.js +1 -1
  168. package/dist/react.umd.js +1 -1
  169. package/dist/{reactComponent-yffmdVKM.mjs → reactComponent-CpBYpR-Y.mjs} +185 -185
  170. package/package.json +1 -1
package/dist/react.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A as a, s as t, q as i } from "./reactComponent-yffmdVKM.mjs";
1
+ import { A as a, s as t, q as i } from "./reactComponent-CpBYpR-Y.mjs";
2
2
  export {
3
3
  a as AiAssistant,
4
4
  t as config,
package/dist/react.umd.js CHANGED
@@ -87,7 +87,7 @@ Valid keys: `+JSON.stringify(Object.keys(h),null," "));var ae=le(Z,ee,T,G,W+"."
87
87
  `+JSON.stringify(I))}Object.defineProperty(r,"__esModule",{value:!0});var g=Object.assign||function(I){for(var U=1;U<arguments.length;U++){var Y=arguments[U];for(var O in Y)Object.prototype.hasOwnProperty.call(Y,O)&&(I[O]=Y[O])}return I},d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(I){return typeof I}:function(I){return I&&typeof Symbol=="function"&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I};r.default=_;var F=n(4),m=s(F),b=n(3),c=s(b),D=n(2),y=n(1),v="",B="none",q="object",S=typeof navigator<"u"&&/Android/i.test(navigator.userAgent),x=typeof requestAnimationFrame<"u"?requestAnimationFrame:setTimeout},function(i,r){function n(_){return function(){return _}}var s=function(){};s.thatReturns=n,s.thatReturnsFalse=n(!1),s.thatReturnsTrue=n(!0),s.thatReturnsNull=n(null),s.thatReturnsThis=function(){return this},s.thatReturnsArgument=function(_){return _},i.exports=s},function(i,r,n){function s(_,l,f,g,d,F,m,b){if(!_){var c;if(l===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var D=[f,g,d,F,m,b],y=0;c=new Error(l.replace(/%s/g,function(){return D[y++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}i.exports=s},function(i,r,n){var s=n(6),_=n(7),l=n(10);i.exports=function(){function f(F,m,b,c,D,y){y!==l&&_(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function g(){return f}f.isRequired=f;var d={array:f,bool:f,func:f,number:f,object:f,string:f,symbol:f,any:f,arrayOf:g,element:f,instanceOf:g,node:f,objectOf:g,oneOf:g,oneOfType:g,shape:g,exact:g};return d.checkPropTypes=s,d.PropTypes=d,d}},function(i,r,n){i.exports=n(8)()},function(i,r){var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";i.exports=n},function(i,r){i.exports=a}])})}(qo)),qo.exports}Jc();var So={exports:{}},Lu,ff;function Ou(){if(ff)return Lu;ff=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Lu=e,Lu}var Tu,gf;function Xc(){if(gf)return Tu;gf=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Ou(),a={};e=function(r){var n="Warning: "+r;typeof console<"u"&&console.error(n);try{throw new Error(n)}catch{}}}function i(r,n,s,_,l){if(process.env.NODE_ENV!=="production"){for(var f in r)if(r.hasOwnProperty(f)){var g;try{if(typeof r[f]!="function"){var d=Error((_||"React class")+": "+s+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[f]+"`.");throw d.name="Invariant Violation",d}g=r[f](n,f,_,s,null,t)}catch(m){g=m}if(g&&!(g instanceof Error)&&e((_||"React class")+": type specification of "+s+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof g+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),g instanceof Error&&!(g.message in a)){a[g.message]=!0;var F=l?l():"";e("Failed "+s+" type: "+g.message+(F??""))}}}}return Tu=i,Tu}var Pu,df;function Qc(){if(df)return Pu;df=1;var e=zn(),t=Ou(),a=Xc(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(n){var s="Warning: "+n;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}});function r(){return null}return Pu=function(n,s){var _=typeof Symbol=="function"&&Symbol.iterator,l="@@iterator";function f(u){var M=u&&(_&&u[_]||u[l]);if(typeof M=="function")return M}var g="<<anonymous>>",d={array:c("array"),bool:c("boolean"),func:c("function"),number:c("number"),object:c("object"),string:c("string"),symbol:c("symbol"),any:D(),arrayOf:y,element:v(),instanceOf:B,node:I(),objectOf:S,oneOf:q,oneOfType:x,shape:U,exact:Y};function F(u,M){return u===M?u!==0||1/u===1/M:u!==u&&M!==M}function m(u){this.message=u,this.stack=""}m.prototype=Error.prototype;function b(u){if(process.env.NODE_ENV!=="production")var M={},E=0;function R(C,A,p,T,G,W,Z){if(T=T||g,W=W||p,Z!==t){if(s){var Q=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Q.name="Invariant Violation",Q}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var X=T+":"+p;!M[X]&&E<3&&(i("You are manually calling a React.PropTypes validation function for the `"+W+"` prop on `"+T+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),M[X]=!0,E++)}}return A[p]==null?C?A[p]===null?new m("The "+G+" `"+W+"` is marked as required "+("in `"+T+"`, but its value is `null`.")):new m("The "+G+" `"+W+"` is marked as required in "+("`"+T+"`, but its value is `undefined`.")):null:u(A,p,T,G,W)}var h=R.bind(null,!1);return h.isRequired=R.bind(null,!0),h}function c(u){function M(E,R,h,C,A,p){var T=E[R],G=P(T);if(G!==u){var W=H(T);return new m("Invalid "+C+" `"+A+"` of type "+("`"+W+"` supplied to `"+h+"`, expected ")+("`"+u+"`."))}return null}return b(M)}function D(){return b(r)}function y(u){function M(E,R,h,C,A){if(typeof u!="function")return new m("Property `"+A+"` of component `"+h+"` has invalid PropType notation inside arrayOf.");var p=E[R];if(!Array.isArray(p)){var T=P(p);return new m("Invalid "+C+" `"+A+"` of type "+("`"+T+"` supplied to `"+h+"`, expected an array."))}for(var G=0;G<p.length;G++){var W=u(p,G,h,C,A+"["+G+"]",t);if(W instanceof Error)return W}return null}return b(M)}function v(){function u(M,E,R,h,C){var A=M[E];if(!n(A)){var p=P(A);return new m("Invalid "+h+" `"+C+"` of type "+("`"+p+"` supplied to `"+R+"`, expected a single ReactElement."))}return null}return b(u)}function B(u){function M(E,R,h,C,A){if(!(E[R]instanceof u)){var p=u.name||g,T=w(E[R]);return new m("Invalid "+C+" `"+A+"` of type "+("`"+T+"` supplied to `"+h+"`, expected ")+("instance of `"+p+"`."))}return null}return b(M)}function q(u){if(!Array.isArray(u))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOf, expected an instance of array."),r;function M(E,R,h,C,A){for(var p=E[R],T=0;T<u.length;T++)if(F(p,u[T]))return null;var G=JSON.stringify(u);return new m("Invalid "+C+" `"+A+"` of value `"+p+"` "+("supplied to `"+h+"`, expected one of "+G+"."))}return b(M)}function S(u){function M(E,R,h,C,A){if(typeof u!="function")return new m("Property `"+A+"` of component `"+h+"` has invalid PropType notation inside objectOf.");var p=E[R],T=P(p);if(T!=="object")return new m("Invalid "+C+" `"+A+"` of type "+("`"+T+"` supplied to `"+h+"`, expected an object."));for(var G in p)if(p.hasOwnProperty(G)){var W=u(p,G,h,C,A+"."+G,t);if(W instanceof Error)return W}return null}return b(M)}function x(u){if(!Array.isArray(u))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),r;for(var M=0;M<u.length;M++){var E=u[M];if(typeof E!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+k(E)+" at index "+M+"."),r}function R(h,C,A,p,T){for(var G=0;G<u.length;G++){var W=u[G];if(W(h,C,A,p,T,t)==null)return null}return new m("Invalid "+p+" `"+T+"` supplied to "+("`"+A+"`."))}return b(R)}function I(){function u(M,E,R,h,C){return O(M[E])?null:new m("Invalid "+h+" `"+C+"` supplied to "+("`"+R+"`, expected a ReactNode."))}return b(u)}function U(u){function M(E,R,h,C,A){var p=E[R],T=P(p);if(T!=="object")return new m("Invalid "+C+" `"+A+"` of type `"+T+"` "+("supplied to `"+h+"`, expected `object`."));for(var G in u){var W=u[G];if(W){var Z=W(p,G,h,C,A+"."+G,t);if(Z)return Z}}return null}return b(M)}function Y(u){function M(E,R,h,C,A){var p=E[R],T=P(p);if(T!=="object")return new m("Invalid "+C+" `"+A+"` of type `"+T+"` "+("supplied to `"+h+"`, expected `object`."));var G=e({},E[R],u);for(var W in G){var Z=u[W];if(!Z)return new m("Invalid "+C+" `"+A+"` key `"+W+"` supplied to `"+h+"`.\nBad object: "+JSON.stringify(E[R],null," ")+`
88
88
  Valid keys: `+JSON.stringify(Object.keys(u),null," "));var Q=Z(p,W,h,C,A+"."+W,t);if(Q)return Q}return null}return b(M)}function O(u){switch(typeof u){case"number":case"string":case"undefined":return!0;case"boolean":return!u;case"object":if(Array.isArray(u))return u.every(O);if(u===null||n(u))return!0;var M=f(u);if(M){var E=M.call(u),R;if(M!==u.entries){for(;!(R=E.next()).done;)if(!O(R.value))return!1}else for(;!(R=E.next()).done;){var h=R.value;if(h&&!O(h[1]))return!1}}else return!1;return!0;default:return!1}}function L(u,M){return u==="symbol"||M["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&M instanceof Symbol}function P(u){var M=typeof u;return Array.isArray(u)?"array":u instanceof RegExp?"object":L(M,u)?"symbol":M}function H(u){if(typeof u>"u"||u===null)return""+u;var M=P(u);if(M==="object"){if(u instanceof Date)return"date";if(u instanceof RegExp)return"regexp"}return M}function k(u){var M=H(u);switch(M){case"array":case"object":return"an "+M;case"boolean":case"date":case"regexp":return"a "+M;default:return M}}function w(u){return!u.constructor||!u.constructor.name?g:u.constructor.name}return d.checkPropTypes=a,d.PropTypes=d,d},Pu}var Iu,Ff;function e9(){if(Ff)return Iu;Ff=1;var e=Ou();function t(){}return Iu=function(){function a(n,s,_,l,f,g){if(g!==e){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}a.isRequired=a;function i(){return a}var r={array:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:i,element:a,instanceOf:i,node:a,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i};return r.checkPropTypes=t,r.PropTypes=r,r},Iu}var hf;function t9(){if(hf)return So.exports;if(hf=1,process.env.NODE_ENV!=="production"){var e=typeof Symbol=="function"&&Symbol.for&&Symbol.for("react.element")||60103,t=function(i){return typeof i=="object"&&i!==null&&i.$$typeof===e},a=!0;So.exports=Qc()(t,a)}else So.exports=e9()();return So.exports}var a9=t9();const se=ra(a9),Mo={"popper-wrapper":"Autocomplete-module_popper-wrapper_YE8zw","relative-wrapper":"Autocomplete-module_relative-wrapper_A73-W","full-width":"Autocomplete-module_full-width_Le2Fg","trigger-button-icon":"Autocomplete-module_trigger-button-icon_-UYTC"},i9=["blur","checkValidity","click","focus","select","setCustomValidity","setSelectionRange","setRangeText"];function r9(){return{x:window.scrollX,y:window.scrollY}}const cr=class cr extends $.Component{constructor(t){super(t),this.state={isOpen:!1,highlightedIndex:t.defaultHighlightedIndex||null},this.ensureHighlightedIndex=this.ensureHighlightedIndex.bind(this),this.exposeAPI=this.exposeAPI.bind(this),this.handleInputFocus=this.handleInputFocus.bind(this),this.handleInputBlur=this.handleInputBlur.bind(this),this.handleChange=this.handleChange.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleInputClick=this.handleInputClick.bind(this),this.maybeHighlightClosestMatch=this.maybeHighlightClosestMatch.bind(this),this._refs={},this._ignoreBlur=!1,this._ignoreFocus=!1,this._scrollOffset=null,this._scrollTimer=null,this._actionButtonEnabled=!0}componentWillUnmount(){clearTimeout(this._scrollTimer),this._scrollTimer=null}componentDidMount(){this.isOpen()&&this.setMenuPositions()}componentDidUpdate(t,a){(this.state.isOpen&&!a.isOpen||"open"in this.props&&this.props.open&&!t.open)&&this.setMenuPositions(),a.isOpen!==this.state.isOpen&&(this.props.onMenuVisibilityChange(this.state.isOpen),this.maybeHighlightClosestMatch()),this.ensureHighlightedIndex()}exposeAPI(t){this._refs.input=t,i9.forEach(a=>this[a]=t&&t[a]&&t[a].bind(t))}handleKeyDown(t){if(cr.keyDownHandlers[t.key])return cr.keyDownHandlers[t.key].call(this,t);this.isOpen()||this.setState({isOpen:!0}),this.maybeHighlightClosestMatch(),this.ensureHighlightedIndex()}handleChange(t){this.props.onChange(t,t.target.value)}scrollNodeIntoView(t){const a=this._refs.menu;if(!a)return;const i=a.scrollTop+a.clientHeight;if(t.offsetTop>=i){const r=t.offsetTop+t.offsetHeight;a.scrollTop+=r-i}t.offsetTop<a.scrollTop&&(a.scrollTop=t.offsetTop)}getFilteredItems(){let t=this.props.items;return this.props.shouldItemRender&&(t=t.filter(a=>this.props.shouldItemRender(a,this.props.value))),this.props.sortItems&&t.sort((a,i)=>this.props.sortItems(a,i,this.props.value)),t}maybeHighlightClosestMatch(){const{highlightedIndex:t}=this.state,{value:a,getItemValue:i}=this.props,r=this.getFilteredItems();if(a==="")return;let n=t;for(let s=0;s<r.length;s++){if(!this.props.isItemSelectable(r[s]))continue;if(i(r[s]).toLowerCase().indexOf(a.toLowerCase())===0){n=s;break}}return this.setState({highlightedIndex:n})}ensureHighlightedIndex(){this.state.highlightedIndex&&this.state.highlightedIndex>=this.getFilteredItems().length&&this.setState({highlightedIndex:null})}setMenuPositions(){const t=this._refs.input,a=t.getBoundingClientRect(),i=window.getComputedStyle(t),r=parseInt(i.marginBottom,10)||0,n=parseInt(i.marginLeft,10)||0,s=parseInt(i.marginRight,10)||0;this.setState({menuTop:a.bottom+r,menuLeft:a.left+n,menuWidth:a.width+n+s})}highlightItemFromMouse(t){this.setState({highlightedIndex:t})}selectItemFromMouse(t){const a=this.props.getItemValue(t);this._ignoreBlur=this.props.keepInputAfterSelection,this.setState({isOpen:this.props.keepInputAfterSelection,highlightedIndex:null},()=>{this.props.onSelect(a,t)})}renderMenu(){const t=this.getFilteredItems().map((r,n)=>{const s=this.props.renderItem(r,this.state.highlightedIndex===n,{cursor:"default",currentInputValue:this.props.value},n);let _;return this.props.skipEventHanders||(_={onMouseEnter:this.props.isItemSelectable(r)?()=>this.highlightItemFromMouse(n):null,onClick:this.props.isItemSelectable(r)?()=>this.selectItemFromMouse(r):null}),$.cloneElement(s,{..._,ref:l=>this._refs[`item-${n}`]=l})}),a={left:this.state.menuLeft,top:this.state.menuTop,minWidth:this.state.menuWidth},i=this.props.renderMenu(t,this.props.value,a);return $.cloneElement(i,{ref:r=>this._refs.menu=r,onTouchStart:()=>this._ignoreBlur=!0,onMouseEnter:()=>this._ignoreBlur=!0,onMouseLeave:()=>this._ignoreBlur=!1})}handleInputBlur(t){if(this._ignoreBlur){this._ignoreFocus=!0,this._scrollOffset=r9(),this._refs.input.focus();return}document.getElementById("multiselect-caret-btn")===(t==null?void 0:t.relatedTarget)&&(this._actionButtonEnabled=!1);let a;const{highlightedIndex:i}=this.state;if(this.props.selectOnBlur&&i!==null){const s=this.getFilteredItems()[i],_=this.props.getItemValue(s);a=()=>this.props.onSelect(_,s)}this.setState({isOpen:!1,highlightedIndex:null},a);const{onBlur:r}=this.props.inputProps;r&&r(t)}handleInputFocus(t){if(this._ignoreFocus){this._ignoreFocus=!1;const{x:i,y:r}=this._scrollOffset;this._scrollOffset=null,window.scrollTo(i,r),clearTimeout(this._scrollTimer),this._scrollTimer=setTimeout(()=>{this._scrollTimer=null,window.scrollTo(i,r)},0);return}this.setState({isOpen:!0});const{onFocus:a}=this.props.inputProps;a&&a(t)}isInputFocused(){const t=this._refs.input;return t.ownerDocument&&t===t.ownerDocument.activeElement}handleInputClick(){this.isInputFocused()&&!this.isOpen()&&this.setState({isOpen:!0})}composeEventHandlers(t,a){return a?i=>{t(i),i.defaultPrevented||a(i)}:t}isOpen(){return"open"in this.props?this.props.open:this.state.isOpen}renderButton(){const{isMultiSelect:t,buttonOpenLabel:a,buttonClosedLabel:i}=this.props;if(!t||this.props.hideInputCaret)return null;const r=this.isOpen()?"caret_up":"caret_dn",n=()=>{var s;this._actionButtonEnabled?(s=this._refs.input)==null||s.focus():this._actionButtonEnabled=!0};return o.jsx(La,{id:"multiselect-caret-btn","data-testid":"multiselect-caret-btn-test",type:"button",icon:r,size:"default",className:Mo["trigger-button-icon"],color:"#666",onClick:n,"aria-label":this.isOpen()?a:i,title:this.isOpen()?a:i})}render(){const{inputProps:t,renderInput:a,value:i,popperEnabled:r,wrapperStyle:n,wrapperProps:s}=this.props,_=this.isOpen();!_&&this._ignoreBlur&&(this._ignoreBlur=!1);const l=a({...t,"aria-autocomplete":"list",autoComplete:"off",ref:this.exposeAPI,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,onChange:this.handleChange,onKeyDown:this.composeEventHandlers(this.handleKeyDown,t.onKeyDown),onClick:this.composeEventHandlers(this.handleInputClick,t.onClick),highlightedIndex:this.state.highlightedIndex,value:i}),f=be(n,s,{[Mo["popper-wrapper"]]:r,[Mo["relative-wrapper"]]:!r});return r?o.jsx(o.Fragment,{children:o.jsx(Hn,{isOpen:_,parent:l,popoverComponent:this.renderMenu(),className:f,position:"bottom","data-testid":"meatBallMenu-popover",popperProps:{className:Mo["full-width"],sameWidth:!0}})}):o.jsxs("div",{className:f,children:[l,this.renderButton(),_&&this.renderMenu()]})}};si(cr,"displayName","Autocomplete"),si(cr,"propTypes",{defaultHighlightedIndex:se.number,items:se.array.isRequired,value:se.any,onChange:se.func,onSelect:se.func,shouldItemRender:se.func,isItemSelectable:se.func,sortItems:se.func,getItemValue:se.func.isRequired,renderItem:se.func.isRequired,renderMenu:se.func,menuStyle:se.object,renderInput:se.func,inputProps:se.object,wrapperProps:se.object,wrapperStyle:se.object,autoHighlight:se.bool,selectOnBlur:se.bool,onMenuVisibilityChange:se.func,open:se.bool,skipEventHanders:se.bool,keepInputAfterSelection:se.bool,maxSelections:se.number,popperEnabled:se.bool,isMultiSelect:se.bool,inputId:se.string,hideInputCaret:se.bool,buttonOpenLabel:se.string,buttonClosedLabel:se.string}),si(cr,"defaultProps",{value:"",wrapperProps:{},wrapperStyle:{display:"inline-block"},inputProps:{},renderInput({highlightedIndex:t,...a}){return o.jsx("input",{...a})},onChange(){},onSelect(){},isItemSelectable(){return!0},renderMenu(t,a,i){return o.jsx("div",{style:{...i,...this.menuStyle},"data-testid":"autocomplete-menu",children:t})},menuStyle:{borderRadius:"3px",boxShadow:"0 2px 12px rgba(0, 0, 0, 0.1)",background:"rgba(255, 255, 255, 0.9)",padding:"2px 0",fontSize:"90%",position:"fixed",overflow:"auto",maxHeight:"50%"},autoHighlight:!0,selectOnBlur:!1,onMenuVisibilityChange(){},keepInputAfterSelection:!1,skipEventHanders:!1,popperEnabled:!1,hideInputCaret:!1,buttonOpenLabel:"Open",buttonClosedLabel:"Closed"}),si(cr,"keyDownHandlers",{ArrowDown(t){t.preventDefault();const a=this.getFilteredItems();if(!a.length)return;const{highlightedIndex:i}=this.state;let r=i===null?-1:i;for(let n=0;n<a.length;n++){const s=(r+n+1)%a.length;if(this.props.isItemSelectable(a[s])){r=s;break}}if(r>-1&&r!==i){const n=this._refs[`item-${r}`];this.scrollNodeIntoView(n),this.setState({highlightedIndex:r,isOpen:!0})}},ArrowUp(t){t.preventDefault();const a=this.getFilteredItems();if(!a.length)return;const{highlightedIndex:i}=this.state;if(i===0){this.setState({highlightedIndex:null});return}let r=i===null?a.length:i;for(let n=0;n<a.length;n++){const s=(r-(1+n)+a.length)%a.length;if(this.props.isItemSelectable(a[s])){r=s;break}}if(r!==a.length){const n=this._refs[`item-${r}`];this.scrollNodeIntoView(n),this.setState({highlightedIndex:r,isOpen:!0})}},Enter(t){if(t.keyCode===13)if(this._ignoreBlur=!1,this.isOpen())if(this.state.highlightedIndex==null)this.setState({isOpen:!1},()=>{this._refs.input.select()});else{t.preventDefault();const a=this.getFilteredItems()[this.state.highlightedIndex],i=this.props.getItemValue(a);this.setState({isOpen:this.props.keepInputAfterSelection,highlightedIndex:null},()=>{this._refs.input.focus(),this._refs.input.setSelectionRange(i.length,i.length),this.props.onSelect(i,a)})}else return},Escape(){this._ignoreBlur=!1,this.setState({highlightedIndex:null,isOpen:!1})},Tab(){this._ignoreBlur=!1}});let mf=cr;const la={"checkbox-divider":"MultiSelect-module_checkbox-divider_2-Cda","suggestion-row":"MultiSelect-module_suggestion-row_J4flX","suggestion-row--highlighted":"MultiSelect-module_suggestion-row--highlighted_HALBl","suggestion-row--checkbox":"MultiSelect-module_suggestion-row--checkbox_0yRpl","suggestion-row--border-bottom":"MultiSelect-module_suggestion-row--border-bottom_FnBAf","checkbox-wrapper":"MultiSelect-module_checkbox-wrapper_KjJSO","person-checkbox-wrapper":"MultiSelect-module_person-checkbox-wrapper_EeXPP","checkbox-pill":"MultiSelect-module_checkbox-pill_KCchB","list-caret":"MultiSelect-module_list-caret_UBdYz","check-box-disabled":"MultiSelect-module_check-box-disabled_-0Mfp","disabled-pill":"MultiSelect-module_disabled-pill_Meew1","suggestion-container":"MultiSelect-module_suggestion-container_k6AtW","suggestion-text":"MultiSelect-module_suggestion-text_DPeu4","suggestion-helper-text":"MultiSelect-module_suggestion-helper-text_gnWBG"};var Ru,cf;function n9(){if(cf)return Ru;cf=1;var e=200,t="__lodash_hash_undefined__",a=9007199254740991,i="[object Arguments]",r="[object Function]",n="[object GeneratorFunction]",s="[object Symbol]",_=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,f=/^(?:0|[1-9]\d*)$/,g=typeof Ji=="object"&&Ji&&Ji.Object===Object&&Ji,d=typeof self=="object"&&self&&self.Object===Object&&self,F=g||d||Function("return this")();function m(z,te,re){switch(re.length){case 0:return z.call(te);case 1:return z.call(te,re[0]);case 2:return z.call(te,re[0],re[1]);case 3:return z.call(te,re[0],re[1],re[2])}return z.apply(te,re)}function b(z,te){var re=z?z.length:0;return!!re&&v(z,te,0)>-1}function c(z,te){for(var re=-1,ke=z?z.length:0,Le=Array(ke);++re<ke;)Le[re]=te(z[re],re,z);return Le}function D(z,te){for(var re=-1,ke=te.length,Le=z.length;++re<ke;)z[Le+re]=te[re];return z}function y(z,te,re,ke){for(var Le=z.length,_t=re+-1;++_t<Le;)if(te(z[_t],_t,z))return _t;return-1}function v(z,te,re){if(te!==te)return y(z,B,re);for(var ke=re-1,Le=z.length;++ke<Le;)if(z[ke]===te)return ke;return-1}function B(z){return z!==z}function q(z,te){for(var re=-1,ke=Array(z);++re<z;)ke[re]=te(re);return ke}function S(z,te){return z.has(te)}function x(z,te){return z==null?void 0:z[te]}function I(z){var te=!1;if(z!=null&&typeof z.toString!="function")try{te=!!(z+"")}catch{}return te}function U(z,te){return function(re){return z(te(re))}}var Y=Array.prototype,O=Function.prototype,L=Object.prototype,P=F["__core-js_shared__"],H=function(){var z=/[^.]+$/.exec(P&&P.keys&&P.keys.IE_PROTO||"");return z?"Symbol(src)_1."+z:""}(),k=O.toString,w=L.hasOwnProperty,u=L.toString,M=RegExp("^"+k.call(w).replace(_,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),E=F.Symbol,R=U(Object.getPrototypeOf,Object),h=L.propertyIsEnumerable,C=Y.splice,A=E?E.isConcatSpreadable:void 0,p=Object.getOwnPropertySymbols,T=Math.max,G=aa(F,"Map"),W=aa(Object,"create");function Z(z){var te=-1,re=z?z.length:0;for(this.clear();++te<re;){var ke=z[te];this.set(ke[0],ke[1])}}function Q(){this.__data__=W?W(null):{}}function X(z){return this.has(z)&&delete this.__data__[z]}function ee(z){var te=this.__data__;if(W){var re=te[z];return re===t?void 0:re}return w.call(te,z)?te[z]:void 0}function le(z){var te=this.__data__;return W?te[z]!==void 0:w.call(te,z)}function ae(z,te){var re=this.__data__;return re[z]=W&&te===void 0?t:te,this}Z.prototype.clear=Q,Z.prototype.delete=X,Z.prototype.get=ee,Z.prototype.has=le,Z.prototype.set=ae;function Fe(z){var te=-1,re=z?z.length:0;for(this.clear();++te<re;){var ke=z[te];this.set(ke[0],ke[1])}}function tt(){this.__data__=[]}function $e(z){var te=this.__data__,re=Pe(te,z);if(re<0)return!1;var ke=te.length-1;return re==ke?te.pop():C.call(te,re,1),!0}function Oe(z){var te=this.__data__,re=Pe(te,z);return re<0?void 0:te[re][1]}function Xe(z){return Pe(this.__data__,z)>-1}function at(z,te){var re=this.__data__,ke=Pe(re,z);return ke<0?re.push([z,te]):re[ke][1]=te,this}Fe.prototype.clear=tt,Fe.prototype.delete=$e,Fe.prototype.get=Oe,Fe.prototype.has=Xe,Fe.prototype.set=at;function Ae(z){var te=-1,re=z?z.length:0;for(this.clear();++te<re;){var ke=z[te];this.set(ke[0],ke[1])}}function dt(){this.__data__={hash:new Z,map:new(G||Fe),string:new Z}}function At(z){return zt(this,z).delete(z)}function Da(z){return zt(this,z).get(z)}function ta(z){return zt(this,z).has(z)}function Nt(z,te){return zt(this,z).set(z,te),this}Ae.prototype.clear=dt,Ae.prototype.delete=At,Ae.prototype.get=Da,Ae.prototype.has=ta,Ae.prototype.set=Nt;function $t(z){var te=-1,re=z?z.length:0;for(this.__data__=new Ae;++te<re;)this.add(z[te])}function Ca(z){return this.__data__.set(z,t),this}function Ht(z){return this.__data__.has(z)}$t.prototype.add=$t.prototype.push=Ca,$t.prototype.has=Ht;function ge(z,te){var re=Sa(z)||xi(z)?q(z.length,String):[],ke=re.length,Le=!!ke;for(var _t in z)Le&&(_t=="length"||kr(_t,ke))||re.push(_t);return re}function Pe(z,te){for(var re=z.length;re--;)if(St(z[re][0],te))return re;return-1}function Ft(z,te,re,ke){var Le=-1,_t=b,ft=!0,j=z.length,N=[],J=te.length;if(!j)return N;te.length>=e&&(_t=S,ft=!1,te=new $t(te));e:for(;++Le<j;){var oe=z[Le],me=oe;if(oe=oe!==0?oe:0,ft&&me===me){for(var de=J;de--;)if(te[de]===me)continue e;N.push(oe)}else _t(te,me,ke)||N.push(oe)}return N}function Ci(z,te,re,ke,Le){var _t=-1,ft=z.length;for(re||(re=br),Le||(Le=[]);++_t<ft;){var j=z[_t];re(j)?D(Le,j):Le[Le.length]=j}return Le}function wi(z,te,re){var ke=te(z);return Sa(z)?ke:D(ke,re(z))}function pr(z){if(!pe(z)||De(z))return!1;var te=V(z)||I(z)?M:l;return te.test(ia(z))}function Yr(z){if(!pe(z))return qt(z);var te=ht(z),re=[];for(var ke in z)ke=="constructor"&&(te||!w.call(z,ke))||re.push(ke);return re}function Jr(z,te){return z=Object(z),ni(z,te,function(re,ke){return ke in z})}function ni(z,te,re){for(var ke=-1,Le=te.length,_t={};++ke<Le;){var ft=te[ke],j=z[ft];re(j,ft)&&(_t[ft]=j)}return _t}function Vi(z,te){return te=T(te===void 0?z.length-1:te,0),function(){for(var re=arguments,ke=-1,Le=T(re.length-te,0),_t=Array(Le);++ke<Le;)_t[ke]=re[te+ke];ke=-1;for(var ft=Array(te+1);++ke<te;)ft[ke]=re[ke];return ft[te]=_t,m(z,this,ft)}}function Za(z){return wi(z,Ke,oi)}function zt(z,te){var re=z.__data__;return fe(te)?re[typeof te=="string"?"string":"hash"]:re.map}function aa(z,te){var re=x(z,te);return pr(re)?re:void 0}var Ei=p?U(p,Object):Se,oi=p?function(z){for(var te=[];z;)D(te,Ei(z)),z=R(z);return te}:Se;function br(z){return Sa(z)||xi(z)||!!(A&&z&&z[A])}function kr(z,te){return te=te??a,!!te&&(typeof z=="number"||f.test(z))&&z>-1&&z%1==0&&z<te}function fe(z){var te=typeof z;return te=="string"||te=="number"||te=="symbol"||te=="boolean"?z!=="__proto__":z===null}function De(z){return!!H&&H in z}function ht(z){var te=z&&z.constructor,re=typeof te=="function"&&te.prototype||L;return z===re}function qt(z){var te=[];if(z!=null)for(var re in Object(z))te.push(re);return te}function jt(z){if(typeof z=="string"||Ue(z))return z;var te=z+"";return te=="0"&&1/z==-1/0?"-0":te}function ia(z){if(z!=null){try{return k.call(z)}catch{}try{return z+""}catch{}}return""}function St(z,te){return z===te||z!==z&&te!==te}function xi(z){return Pn(z)&&w.call(z,"callee")&&(!h.call(z,"callee")||u.call(z)==i)}var Sa=Array.isArray;function Ui(z){return z!=null&&_e(z.length)&&!V(z)}function Pn(z){return xe(z)&&Ui(z)}function V(z){var te=pe(z)?u.call(z):"";return te==r||te==n}function _e(z){return typeof z=="number"&&z>-1&&z%1==0&&z<=a}function pe(z){var te=typeof z;return!!z&&(te=="object"||te=="function")}function xe(z){return!!z&&typeof z=="object"}function Ue(z){return typeof z=="symbol"||xe(z)&&u.call(z)==s}function Ke(z){return Ui(z)?ge(z):Yr(z)}var Ce=Vi(function(z,te){return z==null?{}:(te=c(Ci(te),jt),Jr(z,Ft(Za(z),te)))});function Se(){return[]}return Ru=Ce,Ru}n9();const Ao=se.shape({id:se.string.isRequired,text:se.string.isRequired,pillText:se.string,freeform:se.bool});se.func,se.func,se.shape({placeholder:se.string,disabled:se.bool,error:se.oneOfType([se.bool,se.string])}),se.number,se.arrayOf(Ao),se.func,se.func,se.bool,se.bool;function pf({icon:e,className:t="",variant:a="gray",size:i="large",text:r,listShowable:n,hoverContent:s,users:_=[],onClose:l,onClick:f,avatarUser:g,tabIndex:d,onKeyPress:F,...m}){const[b,c]=$.useState(!1),D=m["data-testid"],y=`pill--${a}`,v=!!(n||f),B=Ma(li[y],y),q=Ma(li[`${y}-has-hover`],`${y}-has-hover`),S=be(t,{[li.pill]:!0,[B]:!0,[li[i]]:!0,[li["has-hover"]]:v,[`${y}-has-hover`]:v,[q]:v}),I=a==="primary"||a==="secondary"?`${y}-color`:y,[U,Y]=$.useState(!1),[O,L]=Zc(()=>{Y(!1),k(!1)}),P=()=>{Y(!0),L()},[H,k]=$.useState(!1),w=E=>{E.key==="Enter"&&k(!H)};let u={onClick:f};n&&(u={role:"button",tabIndex:0,onClick:()=>k(!H),onKeyDown:w,onFocus:P,onBlur:O});const M=o.jsxs("div",{role:f?"button":"",tabIndex:d,onKeyPress:F,"data-testid":D,className:S,onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),...u,children:[g&&o.jsx("div",{"data-testid":"pill-avatar",className:li["pill-avatar"],children:o.jsx(go,{dimensions:24,size:"small",user:g})}),e&&o.jsx("div",{"data-testid":`${Ma(D,"pill")}-icon-wrapper`,className:li.icon,children:o.jsx(Zt,{icon:e,size:12,className:I,variant:"thin"})}),o.jsx("div",{"data-testid":"pill-text",children:r}),l&&o.jsx("div",{"data-testid":"pill-close-icon",className:li["pill-close"],children:o.jsx("div",{onClick:l,children:o.jsx(Zt,{className:I,size:8,icon:"close",variant:"thin"})})})]});return o.jsxs(o.Fragment,{children:[!!n&&o.jsx(Hn,{parent:M,isOpen:H&&U,popoverComponent:o.jsx(Gc,{employees:_}),position:"bottom-start",className:li["list-card"]}),!!s&&o.jsx(Hn,{parent:M,isOpen:b,popoverComponent:s,position:"top-start",className:li["pill-hover-content"]}),!n&&!s&&M]})}Ao.isRequired,se.func,se.string;function o9(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const s9=$.forwardRef(({item:e,originalItems:t,selectedItems:a,onSelectionChange:i,expandedItems:r,onItemExpanded:n,isParentSelected:s,nestedData:_,behaveAsAFilter:l,...f},g)=>{const d=P=>P._parent===void 0?void 0:t[P._parent],F=P=>c(P).some(k=>a.some(w=>w.id===k.id)),m=P=>{let H=d(P);for(;H!==void 0&&!a.some(k=>k.id===H.id);)H=d(H);return H},b=P=>{const H=[];let k=P;do H.push(k._parent),k=d(k);while(k._parent!==void 0);return H},c=P=>{let H=[],k=[];for(k.push(P);k.length>0;){const w=k.pop();w.children&&(k=[...k,...w.children],H=[...H,...w.children])}return H},D=()=>{if(v){if(O&&l){c(y).filter(H=>a.map(k=>k.id).includes(H.id)).forEach(H=>{i(H)}),i(y);return}if(S&&l){const P=m(y),H=[...b(y)];if(P){let u=!1;i(P);for(let M=H.length-1;M>=0;M--){const E=H[M];if(P.id===t[E].id||u){u=!0;const R=M===0?y.id:t[H[M-1]].id;t[E].children.filter(h=>h.id!==R).forEach(h=>i(h))}}return}const k=[];let w=[];for(let u=0;u<H.length;u++){const M=H[u],E=t[M],R=u===0?y.id:t[H[u-1]].id;if(E.children.filter(C=>a.some(A=>A.id===C.id)).length+1===E.children.length&&!a.some(C=>C.id===y.id))k.push(...E.children.filter(C=>C.id!==R)),w=[E];else break}if(k.length>0||w.length>0){k.forEach(u=>i(u)),w.forEach(u=>i(u));return}}i(y)}},y=_?t.filter(P=>P.id===e.id)[0]:e,v=e._isItemSelectable!==void 0?e._isItemSelectable:!0;if(!_||y._parent===void 0&&y.children===void 0){const P=a.some(H=>H.id===y.id);return $.createElement(bf,{...f,onChange:()=>i(y),key:y.id,item:y,isSelected:P,isItemSelectable:v,hasChildren:!1,ref:g})}const B=()=>!x||Y&&!l?!1:U<y.children.length&&U>0?!0:F(y),q=()=>a.some(P=>P.id===y.id)?!0:l?x&&y.children.length===U?!0:!!s:!1,S=d(y),x=y.children&&y.children.length>0,I=x?r.some(P=>P===e.id):!1,U=x?y.children.filter(P=>a.some(H=>H.id===P.id)).length:0,Y=q(),O=B();let L;return I&&(L=e.children.map(P=>$.createElement(s9,{...f,key:P.id,item:P,originalItems:t,selectedItems:a,onSelectionChange:i,expandedItems:r,onItemExpanded:n,isParentSelected:Y,nestedData:_,behaveAsAFilter:l}))),o.jsxs("div",{children:[$.createElement(bf,{...f,item:y,isSelected:Y,key:e.id,isIndeterminate:O,isItemSelectable:v,displayChildren:I,hasChildren:x,onDisplayChildrenChange:n,onChange:D,nestedData:_}),L]})});function xr(e,t){if(!e)return"";const a=new RegExp(o9(t),"ig"),i=e.match(a);let r=-1;return!t||!(i!=null&&i.length)?e:e.split(a).reduce((n,s)=>{r++;const _=i[r]?o.jsx("b",{children:i[r]},`multi-select-${r}`):"";return[...n,_,s]})}const u9={BASIC:"basic"},bf=$.forwardRef(({item:e,isHighlighted:t,isSelected:a,currentInputValue:i,indeterminate:r,displayChildren:n,isItemSelectable:s,checkbox:_,onDisplayChildrenChange:l,onChange:f,hasChildren:g,isIndeterminate:d,nestedData:F,variant:m=u9.BASIC,listId:b,index:c,...D},y)=>{const B=Eo(b)(c),q=be(la["checkbox-pill"],{[la["disabled-pill"]]:!s});function S(I){return o.jsxs(o.Fragment,{children:[o.jsx(_f,{className:la["checkbox-divider"]}),o.jsxs("div",{className:e.user?la["person-checkbox-wrapper"]:la["checkbox-wrapper"],style:{marginLeft:`${e._treeLevel*7}px`},children:[I,e.pillText&&o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"screen-reader-only",children:","}),o.jsx(pf,{"data-testid":"checkbox-pill",text:e.pillText,size:"small",className:q})]})]})]})}const x=()=>{if(m==="system")return o.jsx($.Fragment,{children:o.jsxs("div",{className:la["suggestion-container"],children:[o.jsx("div",{className:la["suggestion-text"],children:o.jsxs("span",{children:[" ",xr(e.text,i)]})}),o.jsxs("div",{className:la["suggestion-helper-text"],children:[o.jsx("span",{className:"screen-reader-only",children:","}),o.jsxs("span",{children:[" ",xr(e.helperText,i)]})]})]})});if(!_&&!F)return e.pillText?xr(e.pillText,i):xr(e.text,i);let I,U=o.jsx(Xi,{"data-testid":"multiselect-item-caret-test",className:la["list-caret"],icon:n?"caret_up":"caret_dn",iconVariant:"regular",onClick:Y=>{Y.stopPropagation(),s&&l(e)},system:!1,type:"button"},`Icon-${e.id}`);return!_&&F?I=o.jsxs("div",{children:[xr(e.text,i),g&&U]}):I=o.jsx(Oc,{id:e.id,indeterminate:d,onIndeterminateChange:f,"data-testid":"multiselect-checkbox-item-test",checked:a,disabled:!s,className:s?"":la["check-box-disabled"],label:[xr(e.text,i),g&&U],helperText:o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"screen-reader-only",children:","}),xr(e.helperText||" ",i)]}),onChange:f,user:e.user}),S(I)};return o.jsx("li",{className:be(la["suggestion-row"],{[la["suggestion-row--highlighted"]]:t,[la["suggestion-row--checkbox"]]:_,[la["suggestion-row--border-bottom"]]:m==="system"}),id:B,role:"option","aria-selected":t,ref:y,onClick:s&&!r?f:null,onKeyDown:()=>{},"data-testid":"multiselect-list-item-test",...D,children:x()},e.id)});se.string,se.arrayOf(Ao),se.arrayOf(Ao),se.bool,se.string,se.func,se.func,se.func,se.func,se.bool,se.number,se.func,se.func,se.bool,se.array,se.func,se.bool,se.bool,se.bool;var Lo={exports:{}},_9=Lo.exports,kf;function l9(){return kf||(kf=1,function(e,t){(function(a,i){e.exports=i()})(_9,function(){return function(a,i,r){i.prototype.isToday=function(){var n="YYYY-MM-DD",s=r();return this.format(n)===s.format(n)}}})}(Lo)),Lo.exports}var f9=l9();const g9=ra(f9);Vt.extend(au),Vt.extend(g9),Vt.extend(ao);function d9({amLabel:e,pmLabel:t}){var a=18e5;const i=new Date;i.setMinutes(i.getMinutes()+30);var r=new Date(Math.round(i.getTime()/a)*a);let n=r.getHours(),s=r.getMinutes(),_=e;return n>12&&(n-=12,_=t),n===0&&(n=12),s=s<=9?`0${s}`:s,n=n<=9?`0${n}`:n,`${n}:${s} ${_}`}d9({amLabel:"AM",pmLabel:"PM"});const Nu={toastOverlay:"Toast-module_toastOverlay_lb2Vi",toast:"Toast-module_toast_KdaTa",going:"Toast-module_going_rPoCP"};function Oo({variant:e="info",text:t,content:a,className:i,dismiss:r,going:n=!1,...s}){return o.jsx("div",{"data-testid":"toast",role:"status",className:be(Nu.toast,i,{[Nu.going]:n}),...s,children:o.jsx(V6,{variant:e,onDismiss:r,text:t,children:a})})}function F9(e){return o.jsx("div",{...e,id:"toast-overlay","data-testid":"toast-overlay",className:Nu.toastOverlay})}let h9=0;const m9=5e3,vr={ERROR:0,INFO:1,SUCCESS:2,WARNING:3};function c9(){const e=document.querySelectorAll(":hover");for(let t=0;t<e.length;t++)if(e[t].getAttribute("id")==="toast-overlay")return!0;return!1}function p9(e){if(!ji())return $.createContext(e);window.kazoo||(window.kazoo={});const t=window.kazoo.toastContext;return t||(window.kazoo.toastContext=$.createContext(e),window.kazoo.toastContext)}const To=()=>{throw new Error("You tried to call a Toast placeholder function, meaning the Toast hasn't been set in the context. Did you forget to setup the Toast provider? Or maybe you meant to mock this function?")},yf=p9({error:To,info:To,success:To,warning:To}),b9=()=>$.useContext(yf);function Po(e,t,a,i){t(r=>[...r,{id:h9++,type:e,content:a,timeout:i,going:!1,shownTime:Date.now()}])}function k9(e,t){e(a=>a.filter(i=>i.id!==t))}function y9(e,t,a){Po(vr.SUCCESS,e,t,a)}function D9(e,t){Po(vr.WARNING,e,t)}function C9(e,t){Po(vr.ERROR,e,t)}function w9(e,t,a){Po(vr.INFO,e,t,a)}function E9({children:e,defaultTimeout:t=m9,text:a=void 0}){const[i,r]=$.useState([]);$.useEffect(()=>{if(!ji())return;const g=setInterval(()=>{const d=Date.now(),F=c9();let m=!1;const b=i.filter(c=>!c.going).map(c=>(F||c.timeout&&d-c.shownTime>c.timeout&&(c.going=!0,m=!0),c));F&&b.forEach((c,D)=>b[D].shownTime+=600),(m||b.length!==i.length)&&r(b)},500);return()=>{clearInterval(g)}},[i]);const n=$.useCallback(g=>C9(r,g),[r]),s=$.useCallback((g,d=t)=>w9(r,g,d),[r,t]),_=$.useCallback((g,d=t)=>y9(r,g,d),[r,t]),l=$.useCallback(g=>D9(r,g),[r]),f=$.useMemo(()=>({error:n,info:s,success:_,warning:l}),[n,s,_,l]);return o.jsxs(yf.Provider,{value:f,children:[o.jsx(F9,{children:i.map(g=>{const d={content:g.content,text:a,dismiss:()=>k9(r,g.id),going:g.going,key:g.id,timeout:g.timeout,type:g.type};switch(g.type){case vr.ERROR:return o.jsx(Oo,{variant:"warning",...d});case vr.SUCCESS:return o.jsx(Oo,{variant:"success",...d});case vr.WARNING:return o.jsx(Oo,{variant:"warning",...d});default:return o.jsx(Oo,{variant:"info",...d})}})}),e]})}$.createContext(null);var $u="http://www.w3.org/1999/xhtml";const Df={svg:"http://www.w3.org/2000/svg",xhtml:$u,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Io(e){var t=e+="",a=t.indexOf(":");return a>=0&&(t=e.slice(0,a))!=="xmlns"&&(e=e.slice(a+1)),Df.hasOwnProperty(t)?{space:Df[t],local:e}:e}function x9(e){return function(){var t=this.ownerDocument,a=this.namespaceURI;return a===$u&&t.documentElement.namespaceURI===$u?t.createElement(e):t.createElementNS(a,e)}}function v9(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Cf(e){var t=Io(e);return(t.local?v9:x9)(t)}function j9(){}function Hu(e){return e==null?j9:function(){return this.querySelector(e)}}function B9(e){typeof e!="function"&&(e=Hu(e));for(var t=this._groups,a=t.length,i=new Array(a),r=0;r<a;++r)for(var n=t[r],s=n.length,_=i[r]=new Array(s),l,f,g=0;g<s;++g)(l=n[g])&&(f=e.call(l,l.__data__,g,n))&&("__data__"in l&&(f.__data__=l.__data__),_[g]=f);return new Ta(i,this._parents)}function wf(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function q9(){return[]}function Ef(e){return e==null?q9:function(){return this.querySelectorAll(e)}}function S9(e){return function(){var t=e.apply(this,arguments);return t==null?[]:wf(t)}}function M9(e){typeof e=="function"?e=S9(e):e=Ef(e);for(var t=this._groups,a=t.length,i=[],r=[],n=0;n<a;++n)for(var s=t[n],_=s.length,l,f=0;f<_;++f)(l=s[f])&&(i.push(e.call(l,l.__data__,f,s)),r.push(l));return new Ta(i,r)}function xf(e){return function(){return this.matches(e)}}function vf(e){return function(t){return t.matches(e)}}var A9=Array.prototype.find;function L9(e){return function(){return A9.call(this.children,e)}}function O9(){return this.firstElementChild}function T9(e){return this.select(e==null?O9:L9(typeof e=="function"?e:vf(e)))}var P9=Array.prototype.filter;function I9(){return this.children}function R9(e){return function(){return P9.call(this.children,e)}}function N9(e){return this.selectAll(e==null?I9:R9(typeof e=="function"?e:vf(e)))}function $9(e){typeof e!="function"&&(e=xf(e));for(var t=this._groups,a=t.length,i=new Array(a),r=0;r<a;++r)for(var n=t[r],s=n.length,_=i[r]=[],l,f=0;f<s;++f)(l=n[f])&&e.call(l,l.__data__,f,n)&&_.push(l);return new Ta(i,this._parents)}function jf(e){return new Array(e.length)}function H9(){return new Ta(this._enter||this._groups.map(jf),this._parents)}function Ro(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Ro.prototype={constructor:Ro,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function z9(e){return function(){return e}}function W9(e,t,a,i,r,n){for(var s=0,_,l=t.length,f=n.length;s<f;++s)(_=t[s])?(_.__data__=n[s],i[s]=_):a[s]=new Ro(e,n[s]);for(;s<l;++s)(_=t[s])&&(r[s]=_)}function V9(e,t,a,i,r,n,s){var _,l,f=new Map,g=t.length,d=n.length,F=new Array(g),m;for(_=0;_<g;++_)(l=t[_])&&(F[_]=m=s.call(l,l.__data__,_,t)+"",f.has(m)?r[_]=l:f.set(m,l));for(_=0;_<d;++_)m=s.call(e,n[_],_,n)+"",(l=f.get(m))?(i[_]=l,l.__data__=n[_],f.delete(m)):a[_]=new Ro(e,n[_]);for(_=0;_<g;++_)(l=t[_])&&f.get(F[_])===l&&(r[_]=l)}function U9(e){return e.__data__}function G9(e,t){if(!arguments.length)return Array.from(this,U9);var a=t?V9:W9,i=this._parents,r=this._groups;typeof e!="function"&&(e=z9(e));for(var n=r.length,s=new Array(n),_=new Array(n),l=new Array(n),f=0;f<n;++f){var g=i[f],d=r[f],F=d.length,m=wf(e.call(g,g&&g.__data__,f,i)),b=m.length,c=_[f]=new Array(b),D=s[f]=new Array(b),y=l[f]=new Array(F);a(g,d,c,D,y,m,t);for(var v=0,B=0,q,S;v<b;++v)if(q=c[v]){for(v>=B&&(B=v+1);!(S=D[B])&&++B<b;);q._next=S||null}}return s=new Ta(s,i),s._enter=_,s._exit=l,s}function Z9(){return new Ta(this._exit||this._groups.map(jf),this._parents)}function K9(e,t,a){var i=this.enter(),r=this,n=this.exit();return i=typeof e=="function"?e(i):i.append(e+""),t!=null&&(r=t(r)),a==null?n.remove():a(n),i&&r?i.merge(r).order():r}function Y9(e){if(!(e instanceof Ta))throw new Error("invalid merge");for(var t=this._groups,a=e._groups,i=t.length,r=a.length,n=Math.min(i,r),s=new Array(i),_=0;_<n;++_)for(var l=t[_],f=a[_],g=l.length,d=s[_]=new Array(g),F,m=0;m<g;++m)(F=l[m]||f[m])&&(d[m]=F);for(;_<i;++_)s[_]=t[_];return new Ta(s,this._parents)}function J9(){for(var e=this._groups,t=-1,a=e.length;++t<a;)for(var i=e[t],r=i.length-1,n=i[r],s;--r>=0;)(s=i[r])&&(n&&s.compareDocumentPosition(n)^4&&n.parentNode.insertBefore(s,n),n=s);return this}function X9(e){e||(e=Q9);function t(d,F){return d&&F?e(d.__data__,F.__data__):!d-!F}for(var a=this._groups,i=a.length,r=new Array(i),n=0;n<i;++n){for(var s=a[n],_=s.length,l=r[n]=new Array(_),f,g=0;g<_;++g)(f=s[g])&&(l[g]=f);l.sort(t)}return new Ta(r,this._parents).order()}function Q9(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function e5(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function t5(){return Array.from(this)}function a5(){for(var e=this._groups,t=0,a=e.length;t<a;++t)for(var i=e[t],r=0,n=i.length;r<n;++r){var s=i[r];if(s)return s}return null}function i5(){let e=0;for(const t of this)++e;return e}function r5(){return!this.node()}function n5(e){for(var t=this._groups,a=0,i=t.length;a<i;++a)for(var r=t[a],n=0,s=r.length,_;n<s;++n)(_=r[n])&&e.call(_,_.__data__,n,r);return this}function o5(e){return function(){this.removeAttribute(e)}}function s5(e){return function(){this.removeAttributeNS(e.space,e.local)}}function u5(e,t){return function(){this.setAttribute(e,t)}}function _5(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function l5(e,t){return function(){var a=t.apply(this,arguments);a==null?this.removeAttribute(e):this.setAttribute(e,a)}}function f5(e,t){return function(){var a=t.apply(this,arguments);a==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,a)}}function g5(e,t){var a=Io(e);if(arguments.length<2){var i=this.node();return a.local?i.getAttributeNS(a.space,a.local):i.getAttribute(a)}return this.each((t==null?a.local?s5:o5:typeof t=="function"?a.local?f5:l5:a.local?_5:u5)(a,t))}function Bf(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function d5(e){return function(){this.style.removeProperty(e)}}function F5(e,t,a){return function(){this.style.setProperty(e,t,a)}}function h5(e,t,a){return function(){var i=t.apply(this,arguments);i==null?this.style.removeProperty(e):this.style.setProperty(e,i,a)}}function m5(e,t,a){return arguments.length>1?this.each((t==null?d5:typeof t=="function"?h5:F5)(e,t,a??"")):ln(this.node(),e)}function ln(e,t){return e.style.getPropertyValue(t)||Bf(e).getComputedStyle(e,null).getPropertyValue(t)}function c5(e){return function(){delete this[e]}}function p5(e,t){return function(){this[e]=t}}function b5(e,t){return function(){var a=t.apply(this,arguments);a==null?delete this[e]:this[e]=a}}function k5(e,t){return arguments.length>1?this.each((t==null?c5:typeof t=="function"?b5:p5)(e,t)):this.node()[e]}function qf(e){return e.trim().split(/^|\s+/)}function zu(e){return e.classList||new Sf(e)}function Sf(e){this._node=e,this._names=qf(e.getAttribute("class")||"")}Sf.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Mf(e,t){for(var a=zu(e),i=-1,r=t.length;++i<r;)a.add(t[i])}function Af(e,t){for(var a=zu(e),i=-1,r=t.length;++i<r;)a.remove(t[i])}function y5(e){return function(){Mf(this,e)}}function D5(e){return function(){Af(this,e)}}function C5(e,t){return function(){(t.apply(this,arguments)?Mf:Af)(this,e)}}function w5(e,t){var a=qf(e+"");if(arguments.length<2){for(var i=zu(this.node()),r=-1,n=a.length;++r<n;)if(!i.contains(a[r]))return!1;return!0}return this.each((typeof t=="function"?C5:t?y5:D5)(a,t))}function E5(){this.textContent=""}function x5(e){return function(){this.textContent=e}}function v5(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function j5(e){return arguments.length?this.each(e==null?E5:(typeof e=="function"?v5:x5)(e)):this.node().textContent}function B5(){this.innerHTML=""}function q5(e){return function(){this.innerHTML=e}}function S5(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function M5(e){return arguments.length?this.each(e==null?B5:(typeof e=="function"?S5:q5)(e)):this.node().innerHTML}function A5(){this.nextSibling&&this.parentNode.appendChild(this)}function L5(){return this.each(A5)}function O5(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function T5(){return this.each(O5)}function P5(e){var t=typeof e=="function"?e:Cf(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function I5(){return null}function R5(e,t){var a=typeof e=="function"?e:Cf(e),i=t==null?I5:typeof t=="function"?t:Hu(t);return this.select(function(){return this.insertBefore(a.apply(this,arguments),i.apply(this,arguments)||null)})}function N5(){var e=this.parentNode;e&&e.removeChild(this)}function $5(){return this.each(N5)}function H5(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function z5(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function W5(e){return this.select(e?z5:H5)}function V5(e){return arguments.length?this.property("__data__",e):this.node().__data__}function U5(e){return function(t){e.call(this,t,this.__data__)}}function G5(e){return e.trim().split(/^|\s+/).map(function(t){var a="",i=t.indexOf(".");return i>=0&&(a=t.slice(i+1),t=t.slice(0,i)),{type:t,name:a}})}function Z5(e){return function(){var t=this.__on;if(t){for(var a=0,i=-1,r=t.length,n;a<r;++a)n=t[a],(!e.type||n.type===e.type)&&n.name===e.name?this.removeEventListener(n.type,n.listener,n.options):t[++i]=n;++i?t.length=i:delete this.__on}}}function K5(e,t,a){return function(){var i=this.__on,r,n=U5(t);if(i){for(var s=0,_=i.length;s<_;++s)if((r=i[s]).type===e.type&&r.name===e.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=n,r.options=a),r.value=t;return}}this.addEventListener(e.type,n,a),r={type:e.type,name:e.name,value:t,listener:n,options:a},i?i.push(r):this.__on=[r]}}function Y5(e,t,a){var i=G5(e+""),r,n=i.length,s;if(arguments.length<2){var _=this.node().__on;if(_){for(var l=0,f=_.length,g;l<f;++l)for(r=0,g=_[l];r<n;++r)if((s=i[r]).type===g.type&&s.name===g.name)return g.value}return}for(_=t?K5:Z5,r=0;r<n;++r)this.each(_(i[r],t,a));return this}function Lf(e,t,a){var i=Bf(e),r=i.CustomEvent;typeof r=="function"?r=new r(t,a):(r=i.document.createEvent("Event"),a?(r.initEvent(t,a.bubbles,a.cancelable),r.detail=a.detail):r.initEvent(t,!1,!1)),e.dispatchEvent(r)}function J5(e,t){return function(){return Lf(this,e,t)}}function X5(e,t){return function(){return Lf(this,e,t.apply(this,arguments))}}function Q5(e,t){return this.each((typeof t=="function"?X5:J5)(e,t))}function*ep(){for(var e=this._groups,t=0,a=e.length;t<a;++t)for(var i=e[t],r=0,n=i.length,s;r<n;++r)(s=i[r])&&(yield s)}var tp=[null];function Ta(e,t){this._groups=e,this._parents=t}function Jn(){return new Ta([[document.documentElement]],tp)}function ap(){return this}Ta.prototype=Jn.prototype={constructor:Ta,select:B9,selectAll:M9,selectChild:T9,selectChildren:N9,filter:$9,data:G9,enter:H9,exit:Z9,join:K9,merge:Y9,selection:ap,order:J9,sort:X9,call:e5,nodes:t5,node:a5,size:i5,empty:r5,each:n5,attr:g5,style:m5,property:k5,classed:w5,text:j5,html:M5,raise:L5,lower:T5,append:P5,insert:R5,remove:$5,clone:W5,datum:V5,on:Y5,dispatch:Q5,[Symbol.iterator]:ep};function Wu(e,t,a){e.prototype=t.prototype=a,a.constructor=e}function Of(e,t){var a=Object.create(e.prototype);for(var i in t)a[i]=t[i];return a}function Xn(){}var Qn=.7,No=1/Qn,fn="\\s*([+-]?\\d+)\\s*",e1="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Fi="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ip=/^#([0-9a-f]{3,8})$/,rp=new RegExp("^rgb\\("+[fn,fn,fn]+"\\)$"),np=new RegExp("^rgb\\("+[Fi,Fi,Fi]+"\\)$"),op=new RegExp("^rgba\\("+[fn,fn,fn,e1]+"\\)$"),sp=new RegExp("^rgba\\("+[Fi,Fi,Fi,e1]+"\\)$"),up=new RegExp("^hsl\\("+[e1,Fi,Fi]+"\\)$"),_p=new RegExp("^hsla\\("+[e1,Fi,Fi,e1]+"\\)$"),Tf={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Wu(Xn,t1,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:Pf,formatHex:Pf,formatHsl:lp,formatRgb:If,toString:If});function Pf(){return this.rgb().formatHex()}function lp(){return zf(this).formatHsl()}function If(){return this.rgb().formatRgb()}function t1(e){var t,a;return e=(e+"").trim().toLowerCase(),(t=ip.exec(e))?(a=t[1].length,t=parseInt(t[1],16),a===6?Rf(t):a===3?new xa(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):a===8?$o(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):a===4?$o(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=rp.exec(e))?new xa(t[1],t[2],t[3],1):(t=np.exec(e))?new xa(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=op.exec(e))?$o(t[1],t[2],t[3],t[4]):(t=sp.exec(e))?$o(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=up.exec(e))?Hf(t[1],t[2]/100,t[3]/100,1):(t=_p.exec(e))?Hf(t[1],t[2]/100,t[3]/100,t[4]):Tf.hasOwnProperty(e)?Rf(Tf[e]):e==="transparent"?new xa(NaN,NaN,NaN,0):null}function Rf(e){return new xa(e>>16&255,e>>8&255,e&255,1)}function $o(e,t,a,i){return i<=0&&(e=t=a=NaN),new xa(e,t,a,i)}function fp(e){return e instanceof Xn||(e=t1(e)),e?(e=e.rgb(),new xa(e.r,e.g,e.b,e.opacity)):new xa}function Vu(e,t,a,i){return arguments.length===1?fp(e):new xa(e,t,a,i??1)}function xa(e,t,a,i){this.r=+e,this.g=+t,this.b=+a,this.opacity=+i}Wu(xa,Vu,Of(Xn,{brighter:function(e){return e=e==null?No:Math.pow(No,e),new xa(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?Qn:Math.pow(Qn,e),new xa(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Nf,formatHex:Nf,formatRgb:$f,toString:$f}));function Nf(){return"#"+Uu(this.r)+Uu(this.g)+Uu(this.b)}function $f(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?")":", "+e+")")}function Uu(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function Hf(e,t,a,i){return i<=0?e=t=a=NaN:a<=0||a>=1?e=t=NaN:t<=0&&(e=NaN),new hi(e,t,a,i)}function zf(e){if(e instanceof hi)return new hi(e.h,e.s,e.l,e.opacity);if(e instanceof Xn||(e=t1(e)),!e)return new hi;if(e instanceof hi)return e;e=e.rgb();var t=e.r/255,a=e.g/255,i=e.b/255,r=Math.min(t,a,i),n=Math.max(t,a,i),s=NaN,_=n-r,l=(n+r)/2;return _?(t===n?s=(a-i)/_+(a<i)*6:a===n?s=(i-t)/_+2:s=(t-a)/_+4,_/=l<.5?n+r:2-n-r,s*=60):_=l>0&&l<1?0:s,new hi(s,_,l,e.opacity)}function gp(e,t,a,i){return arguments.length===1?zf(e):new hi(e,t,a,i??1)}function hi(e,t,a,i){this.h=+e,this.s=+t,this.l=+a,this.opacity=+i}Wu(hi,gp,Of(Xn,{brighter:function(e){return e=e==null?No:Math.pow(No,e),new hi(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?Qn:Math.pow(Qn,e),new hi(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,a=this.l,i=a+(a<.5?a:1-a)*t,r=2*a-i;return new xa(Gu(e>=240?e-240:e+120,r,i),Gu(e,r,i),Gu(e<120?e+240:e-120,r,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function Gu(e,t,a){return(e<60?t+(a-t)*e/60:e<180?a:e<240?t+(a-t)*(240-e)/60:t)*255}const Wf=e=>()=>e;function dp(e,t){return function(a){return e+a*t}}function Fp(e,t,a){return e=Math.pow(e,a),t=Math.pow(t,a)-e,a=1/a,function(i){return Math.pow(e+i*t,a)}}function hp(e){return(e=+e)==1?Vf:function(t,a){return a-t?Fp(t,a,e):Wf(isNaN(t)?a:t)}}function Vf(e,t){var a=t-e;return a?dp(e,a):Wf(isNaN(e)?t:e)}const Uf=function e(t){var a=hp(t);function i(r,n){var s=a((r=Vu(r)).r,(n=Vu(n)).r),_=a(r.g,n.g),l=a(r.b,n.b),f=Vf(r.opacity,n.opacity);return function(g){return r.r=s(g),r.g=_(g),r.b=l(g),r.opacity=f(g),r+""}}return i.gamma=e,i}(1);function ir(e,t){return e=+e,t=+t,function(a){return e*(1-a)+t*a}}var Zu=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ku=new RegExp(Zu.source,"g");function mp(e){return function(){return e}}function cp(e){return function(t){return e(t)+""}}function pp(e,t){var a=Zu.lastIndex=Ku.lastIndex=0,i,r,n,s=-1,_=[],l=[];for(e=e+"",t=t+"";(i=Zu.exec(e))&&(r=Ku.exec(t));)(n=r.index)>a&&(n=t.slice(a,n),_[s]?_[s]+=n:_[++s]=n),(i=i[0])===(r=r[0])?_[s]?_[s]+=r:_[++s]=r:(_[++s]=null,l.push({i:s,x:ir(i,r)})),a=Ku.lastIndex;return a<t.length&&(n=t.slice(a),_[s]?_[s]+=n:_[++s]=n),_.length<2?l[0]?cp(l[0].x):mp(t):(t=l.length,function(f){for(var g=0,d;g<t;++g)_[(d=l[g]).i]=d.x(f);return _.join("")})}var Gf=180/Math.PI,Yu={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Zf(e,t,a,i,r,n){var s,_,l;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(l=e*a+t*i)&&(a-=e*l,i-=t*l),(_=Math.sqrt(a*a+i*i))&&(a/=_,i/=_,l/=_),e*i<t*a&&(e=-e,t=-t,l=-l,s=-s),{translateX:r,translateY:n,rotate:Math.atan2(t,e)*Gf,skewX:Math.atan(l)*Gf,scaleX:s,scaleY:_}}var Ho;function bp(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Yu:Zf(t.a,t.b,t.c,t.d,t.e,t.f)}function kp(e){return e==null||(Ho||(Ho=document.createElementNS("http://www.w3.org/2000/svg","g")),Ho.setAttribute("transform",e),!(e=Ho.transform.baseVal.consolidate()))?Yu:(e=e.matrix,Zf(e.a,e.b,e.c,e.d,e.e,e.f))}function Kf(e,t,a,i){function r(f){return f.length?f.pop()+" ":""}function n(f,g,d,F,m,b){if(f!==d||g!==F){var c=m.push("translate(",null,t,null,a);b.push({i:c-4,x:ir(f,d)},{i:c-2,x:ir(g,F)})}else(d||F)&&m.push("translate("+d+t+F+a)}function s(f,g,d,F){f!==g?(f-g>180?g+=360:g-f>180&&(f+=360),F.push({i:d.push(r(d)+"rotate(",null,i)-2,x:ir(f,g)})):g&&d.push(r(d)+"rotate("+g+i)}function _(f,g,d,F){f!==g?F.push({i:d.push(r(d)+"skewX(",null,i)-2,x:ir(f,g)}):g&&d.push(r(d)+"skewX("+g+i)}function l(f,g,d,F,m,b){if(f!==d||g!==F){var c=m.push(r(m)+"scale(",null,",",null,")");b.push({i:c-4,x:ir(f,d)},{i:c-2,x:ir(g,F)})}else(d!==1||F!==1)&&m.push(r(m)+"scale("+d+","+F+")")}return function(f,g){var d=[],F=[];return f=e(f),g=e(g),n(f.translateX,f.translateY,g.translateX,g.translateY,d,F),s(f.rotate,g.rotate,d,F),_(f.skewX,g.skewX,d,F),l(f.scaleX,f.scaleY,g.scaleX,g.scaleY,d,F),f=g=null,function(m){for(var b=-1,c=F.length,D;++b<c;)d[(D=F[b]).i]=D.x(m);return d.join("")}}}var yp=Kf(bp,"px, ","px)","deg)"),Dp=Kf(kp,", ",")",")"),Cp={value:()=>{}};function Yf(){for(var e=0,t=arguments.length,a={},i;e<t;++e){if(!(i=arguments[e]+"")||i in a||/[\s.]/.test(i))throw new Error("illegal type: "+i);a[i]=[]}return new zo(a)}function zo(e){this._=e}function wp(e,t){return e.trim().split(/^|\s+/).map(function(a){var i="",r=a.indexOf(".");if(r>=0&&(i=a.slice(r+1),a=a.slice(0,r)),a&&!t.hasOwnProperty(a))throw new Error("unknown type: "+a);return{type:a,name:i}})}zo.prototype=Yf.prototype={constructor:zo,on:function(e,t){var a=this._,i=wp(e+"",a),r,n=-1,s=i.length;if(arguments.length<2){for(;++n<s;)if((r=(e=i[n]).type)&&(r=Ep(a[r],e.name)))return r;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++n<s;)if(r=(e=i[n]).type)a[r]=Jf(a[r],e.name,t);else if(t==null)for(r in a)a[r]=Jf(a[r],e.name,null);return this},copy:function(){var e={},t=this._;for(var a in t)e[a]=t[a].slice();return new zo(e)},call:function(e,t){if((r=arguments.length-2)>0)for(var a=new Array(r),i=0,r,n;i<r;++i)a[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(n=this._[e],i=0,r=n.length;i<r;++i)n[i].value.apply(t,a)},apply:function(e,t,a){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],r=0,n=i.length;r<n;++r)i[r].value.apply(t,a)}};function Ep(e,t){for(var a=0,i=e.length,r;a<i;++a)if((r=e[a]).name===t)return r.value}function Jf(e,t,a){for(var i=0,r=e.length;i<r;++i)if(e[i].name===t){e[i]=Cp,e=e.slice(0,i).concat(e.slice(i+1));break}return a!=null&&e.push({name:t,value:a}),e}var gn=0,a1=0,i1=0,Xf=1e3,Wo,r1,Vo=0,jr=0,Uo=0,n1=typeof performance=="object"&&performance.now?performance:Date,Qf=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Ju(){return jr||(Qf(xp),jr=n1.now()+Uo)}function xp(){jr=0}function Go(){this._call=this._time=this._next=null}Go.prototype=e3.prototype={constructor:Go,restart:function(e,t,a){if(typeof e!="function")throw new TypeError("callback is not a function");a=(a==null?Ju():+a)+(t==null?0:+t),!this._next&&r1!==this&&(r1?r1._next=this:Wo=this,r1=this),this._call=e,this._time=a,Xu()},stop:function(){this._call&&(this._call=null,this._time=1/0,Xu())}};function e3(e,t,a){var i=new Go;return i.restart(e,t,a),i}function vp(){Ju(),++gn;for(var e=Wo,t;e;)(t=jr-e._time)>=0&&e._call.call(null,t),e=e._next;--gn}function t3(){jr=(Vo=n1.now())+Uo,gn=a1=0;try{vp()}finally{gn=0,Bp(),jr=0}}function jp(){var e=n1.now(),t=e-Vo;t>Xf&&(Uo-=t,Vo=e)}function Bp(){for(var e,t=Wo,a,i=1/0;t;)t._call?(i>t._time&&(i=t._time),e=t,t=t._next):(a=t._next,t._next=null,t=e?e._next=a:Wo=a);r1=e,Xu(i)}function Xu(e){if(!gn){a1&&(a1=clearTimeout(a1));var t=e-jr;t>24?(e<1/0&&(a1=setTimeout(t3,e-n1.now()-Uo)),i1&&(i1=clearInterval(i1))):(i1||(Vo=n1.now(),i1=setInterval(jp,Xf)),gn=1,Qf(t3))}}function a3(e,t,a){var i=new Go;return t=t==null?0:+t,i.restart(r=>{i.stop(),e(r+t)},t,a),i}var qp=Yf("start","end","cancel","interrupt"),Sp=[],i3=0,r3=1,Qu=2,Zo=3,n3=4,e_=5,Ko=6;function Yo(e,t,a,i,r,n){var s=e.__transition;if(!s)e.__transition={};else if(a in s)return;Mp(e,a,{name:t,index:i,group:r,on:qp,tween:Sp,time:n.time,delay:n.delay,duration:n.duration,ease:n.ease,timer:null,state:i3})}function t_(e,t){var a=Xa(e,t);if(a.state>i3)throw new Error("too late; already scheduled");return a}function mi(e,t){var a=Xa(e,t);if(a.state>Zo)throw new Error("too late; already running");return a}function Xa(e,t){var a=e.__transition;if(!a||!(a=a[t]))throw new Error("transition not found");return a}function Mp(e,t,a){var i=e.__transition,r;i[t]=a,a.timer=e3(n,0,a.time);function n(f){a.state=r3,a.timer.restart(s,a.delay,a.time),a.delay<=f&&s(f-a.delay)}function s(f){var g,d,F,m;if(a.state!==r3)return l();for(g in i)if(m=i[g],m.name===a.name){if(m.state===Zo)return a3(s);m.state===n3?(m.state=Ko,m.timer.stop(),m.on.call("interrupt",e,e.__data__,m.index,m.group),delete i[g]):+g<t&&(m.state=Ko,m.timer.stop(),m.on.call("cancel",e,e.__data__,m.index,m.group),delete i[g])}if(a3(function(){a.state===Zo&&(a.state=n3,a.timer.restart(_,a.delay,a.time),_(f))}),a.state=Qu,a.on.call("start",e,e.__data__,a.index,a.group),a.state===Qu){for(a.state=Zo,r=new Array(F=a.tween.length),g=0,d=-1;g<F;++g)(m=a.tween[g].value.call(e,e.__data__,a.index,a.group))&&(r[++d]=m);r.length=d+1}}function _(f){for(var g=f<a.duration?a.ease.call(null,f/a.duration):(a.timer.restart(l),a.state=e_,1),d=-1,F=r.length;++d<F;)r[d].call(e,g);a.state===e_&&(a.on.call("end",e,e.__data__,a.index,a.group),l())}function l(){a.state=Ko,a.timer.stop(),delete i[t];for(var f in i)return;delete e.__transition}}function Ap(e,t){var a=e.__transition,i,r,n=!0,s;if(a){t=t==null?null:t+"";for(s in a){if((i=a[s]).name!==t){n=!1;continue}r=i.state>Qu&&i.state<e_,i.state=Ko,i.timer.stop(),i.on.call(r?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete a[s]}n&&delete e.__transition}}function Lp(e){return this.each(function(){Ap(this,e)})}function Op(e,t){var a,i;return function(){var r=mi(this,e),n=r.tween;if(n!==a){i=a=n;for(var s=0,_=i.length;s<_;++s)if(i[s].name===t){i=i.slice(),i.splice(s,1);break}}r.tween=i}}function Tp(e,t,a){var i,r;if(typeof a!="function")throw new Error;return function(){var n=mi(this,e),s=n.tween;if(s!==i){r=(i=s).slice();for(var _={name:t,value:a},l=0,f=r.length;l<f;++l)if(r[l].name===t){r[l]=_;break}l===f&&r.push(_)}n.tween=r}}function Pp(e,t){var a=this._id;if(e+="",arguments.length<2){for(var i=Xa(this.node(),a).tween,r=0,n=i.length,s;r<n;++r)if((s=i[r]).name===e)return s.value;return null}return this.each((t==null?Op:Tp)(a,e,t))}function a_(e,t,a){var i=e._id;return e.each(function(){var r=mi(this,i);(r.value||(r.value={}))[t]=a.apply(this,arguments)}),function(r){return Xa(r,i).value[t]}}function o3(e,t){var a;return(typeof t=="number"?ir:t instanceof t1?Uf:(a=t1(t))?(t=a,Uf):pp)(e,t)}function Ip(e){return function(){this.removeAttribute(e)}}function Rp(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Np(e,t,a){var i,r=a+"",n;return function(){var s=this.getAttribute(e);return s===r?null:s===i?n:n=t(i=s,a)}}function $p(e,t,a){var i,r=a+"",n;return function(){var s=this.getAttributeNS(e.space,e.local);return s===r?null:s===i?n:n=t(i=s,a)}}function Hp(e,t,a){var i,r,n;return function(){var s,_=a(this),l;return _==null?void this.removeAttribute(e):(s=this.getAttribute(e),l=_+"",s===l?null:s===i&&l===r?n:(r=l,n=t(i=s,_)))}}function zp(e,t,a){var i,r,n;return function(){var s,_=a(this),l;return _==null?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local),l=_+"",s===l?null:s===i&&l===r?n:(r=l,n=t(i=s,_)))}}function Wp(e,t){var a=Io(e),i=a==="transform"?Dp:o3;return this.attrTween(e,typeof t=="function"?(a.local?zp:Hp)(a,i,a_(this,"attr."+e,t)):t==null?(a.local?Rp:Ip)(a):(a.local?$p:Np)(a,i,t))}function Vp(e,t){return function(a){this.setAttribute(e,t.call(this,a))}}function Up(e,t){return function(a){this.setAttributeNS(e.space,e.local,t.call(this,a))}}function Gp(e,t){var a,i;function r(){var n=t.apply(this,arguments);return n!==i&&(a=(i=n)&&Up(e,n)),a}return r._value=t,r}function Zp(e,t){var a,i;function r(){var n=t.apply(this,arguments);return n!==i&&(a=(i=n)&&Vp(e,n)),a}return r._value=t,r}function Kp(e,t){var a="attr."+e;if(arguments.length<2)return(a=this.tween(a))&&a._value;if(t==null)return this.tween(a,null);if(typeof t!="function")throw new Error;var i=Io(e);return this.tween(a,(i.local?Gp:Zp)(i,t))}function Yp(e,t){return function(){t_(this,e).delay=+t.apply(this,arguments)}}function Jp(e,t){return t=+t,function(){t_(this,e).delay=t}}function Xp(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Yp:Jp)(t,e)):Xa(this.node(),t).delay}function Qp(e,t){return function(){mi(this,e).duration=+t.apply(this,arguments)}}function e7(e,t){return t=+t,function(){mi(this,e).duration=t}}function t7(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Qp:e7)(t,e)):Xa(this.node(),t).duration}function a7(e,t){if(typeof t!="function")throw new Error;return function(){mi(this,e).ease=t}}function i7(e){var t=this._id;return arguments.length?this.each(a7(t,e)):Xa(this.node(),t).ease}function r7(e,t){return function(){var a=t.apply(this,arguments);if(typeof a!="function")throw new Error;mi(this,e).ease=a}}function n7(e){if(typeof e!="function")throw new Error;return this.each(r7(this._id,e))}function o7(e){typeof e!="function"&&(e=xf(e));for(var t=this._groups,a=t.length,i=new Array(a),r=0;r<a;++r)for(var n=t[r],s=n.length,_=i[r]=[],l,f=0;f<s;++f)(l=n[f])&&e.call(l,l.__data__,f,n)&&_.push(l);return new Si(i,this._parents,this._name,this._id)}function s7(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,a=e._groups,i=t.length,r=a.length,n=Math.min(i,r),s=new Array(i),_=0;_<n;++_)for(var l=t[_],f=a[_],g=l.length,d=s[_]=new Array(g),F,m=0;m<g;++m)(F=l[m]||f[m])&&(d[m]=F);for(;_<i;++_)s[_]=t[_];return new Si(s,this._parents,this._name,this._id)}function u7(e){return(e+"").trim().split(/^|\s+/).every(function(t){var a=t.indexOf(".");return a>=0&&(t=t.slice(0,a)),!t||t==="start"})}function _7(e,t,a){var i,r,n=u7(t)?t_:mi;return function(){var s=n(this,e),_=s.on;_!==i&&(r=(i=_).copy()).on(t,a),s.on=r}}function l7(e,t){var a=this._id;return arguments.length<2?Xa(this.node(),a).on.on(e):this.each(_7(a,e,t))}function f7(e){return function(){var t=this.parentNode;for(var a in this.__transition)if(+a!==e)return;t&&t.removeChild(this)}}function g7(){return this.on("end.remove",f7(this._id))}function d7(e){var t=this._name,a=this._id;typeof e!="function"&&(e=Hu(e));for(var i=this._groups,r=i.length,n=new Array(r),s=0;s<r;++s)for(var _=i[s],l=_.length,f=n[s]=new Array(l),g,d,F=0;F<l;++F)(g=_[F])&&(d=e.call(g,g.__data__,F,_))&&("__data__"in g&&(d.__data__=g.__data__),f[F]=d,Yo(f[F],t,a,F,f,Xa(g,a)));return new Si(n,this._parents,t,a)}function F7(e){var t=this._name,a=this._id;typeof e!="function"&&(e=Ef(e));for(var i=this._groups,r=i.length,n=[],s=[],_=0;_<r;++_)for(var l=i[_],f=l.length,g,d=0;d<f;++d)if(g=l[d]){for(var F=e.call(g,g.__data__,d,l),m,b=Xa(g,a),c=0,D=F.length;c<D;++c)(m=F[c])&&Yo(m,t,a,c,F,b);n.push(F),s.push(g)}return new Si(n,s,t,a)}var h7=Jn.prototype.constructor;function m7(){return new h7(this._groups,this._parents)}function c7(e,t){var a,i,r;return function(){var n=ln(this,e),s=(this.style.removeProperty(e),ln(this,e));return n===s?null:n===a&&s===i?r:r=t(a=n,i=s)}}function s3(e){return function(){this.style.removeProperty(e)}}function p7(e,t,a){var i,r=a+"",n;return function(){var s=ln(this,e);return s===r?null:s===i?n:n=t(i=s,a)}}function b7(e,t,a){var i,r,n;return function(){var s=ln(this,e),_=a(this),l=_+"";return _==null&&(l=_=(this.style.removeProperty(e),ln(this,e))),s===l?null:s===i&&l===r?n:(r=l,n=t(i=s,_))}}function k7(e,t){var a,i,r,n="style."+t,s="end."+n,_;return function(){var l=mi(this,e),f=l.on,g=l.value[n]==null?_||(_=s3(t)):void 0;(f!==a||r!==g)&&(i=(a=f).copy()).on(s,r=g),l.on=i}}function y7(e,t,a){var i=(e+="")=="transform"?yp:o3;return t==null?this.styleTween(e,c7(e,i)).on("end.style."+e,s3(e)):typeof t=="function"?this.styleTween(e,b7(e,i,a_(this,"style."+e,t))).each(k7(this._id,e)):this.styleTween(e,p7(e,i,t),a).on("end.style."+e,null)}function D7(e,t,a){return function(i){this.style.setProperty(e,t.call(this,i),a)}}function C7(e,t,a){var i,r;function n(){var s=t.apply(this,arguments);return s!==r&&(i=(r=s)&&D7(e,s,a)),i}return n._value=t,n}function w7(e,t,a){var i="style."+(e+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(t==null)return this.tween(i,null);if(typeof t!="function")throw new Error;return this.tween(i,C7(e,t,a??""))}function E7(e){return function(){this.textContent=e}}function x7(e){return function(){var t=e(this);this.textContent=t??""}}function v7(e){return this.tween("text",typeof e=="function"?x7(a_(this,"text",e)):E7(e==null?"":e+""))}function j7(e){return function(t){this.textContent=e.call(this,t)}}function B7(e){var t,a;function i(){var r=e.apply(this,arguments);return r!==a&&(t=(a=r)&&j7(r)),t}return i._value=e,i}function q7(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,B7(e))}function S7(){for(var e=this._name,t=this._id,a=u3(),i=this._groups,r=i.length,n=0;n<r;++n)for(var s=i[n],_=s.length,l,f=0;f<_;++f)if(l=s[f]){var g=Xa(l,t);Yo(l,e,a,f,s,{time:g.time+g.delay+g.duration,delay:0,duration:g.duration,ease:g.ease})}return new Si(i,this._parents,e,a)}function M7(){var e,t,a=this,i=a._id,r=a.size();return new Promise(function(n,s){var _={value:s},l={value:function(){--r===0&&n()}};a.each(function(){var f=mi(this,i),g=f.on;g!==e&&(t=(e=g).copy(),t._.cancel.push(_),t._.interrupt.push(_),t._.end.push(l)),f.on=t}),r===0&&n()})}var A7=0;function Si(e,t,a,i){this._groups=e,this._parents=t,this._name=a,this._id=i}function u3(){return++A7}var Br=Jn.prototype;Si.prototype={constructor:Si,select:d7,selectAll:F7,filter:o7,merge:s7,selection:m7,transition:S7,call:Br.call,nodes:Br.nodes,node:Br.node,size:Br.size,empty:Br.empty,each:Br.each,on:l7,attr:Wp,attrTween:Kp,style:y7,styleTween:w7,text:v7,textTween:q7,remove:g7,tween:Pp,delay:Xp,duration:t7,ease:i7,easeVarying:n7,end:M7,[Symbol.iterator]:Br[Symbol.iterator]};function L7(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var O7={time:null,delay:0,duration:250,ease:L7};function T7(e,t){for(var a;!(a=e.__transition)||!(a=a[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return a}function P7(e){var t,a;e instanceof Si?(t=e._id,e=e._name):(t=u3(),(a=O7).time=Ju(),e=e==null?null:e+"");for(var i=this._groups,r=i.length,n=0;n<r;++n)for(var s=i[n],_=s.length,l,f=0;f<_;++f)(l=s[f])&&Yo(l,e,t,f,s,a||T7(l,t));return new Si(i,this._parents,e,t)}Jn.prototype.interrupt=Lp,Jn.prototype.transition=P7,$.createContext({data:[],chartDescription:"",yAxisLabel:"",margin:{top:0,right:0,bottom:0,left:0},dimensions:{width:0,height:0},svgRef:{current:null}});const qr={tabs:"Tabs-module_tabs_kOc8X","tabs-filled":"Tabs-module_tabs-filled_FSlrb",enableResponsiveSelect:"Tabs-module_enableResponsiveSelect_ujx-m",embeddedInCard:"Tabs-module_embeddedInCard_THXGW",tabs_select:"Tabs-module_tabs_select_V0sry",tabs_select_trigger:"Tabs-module_tabs_select_trigger_TY1OK",tabs_select_menu:"Tabs-module_tabs_select_menu_Guz9G"};function I7({children:e,value:t,className:a,responsiveDropdown:i=!0,responsiveDropdownClassName:r,style:n="default",embeddedInCard:s=!1,onChange:_}){const l=D=>{_==null||_(D)},f=({value:D})=>{_==null||_(D)},g=be(a,{[qr.tabs]:n==="compact"||n==="default",[qr["tabs-filled"]]:n==="filled",[qr.enableResponsiveSelect]:i}),d=be(a,{[qr.tabs_select]:!0,[qr.embeddedInCard]:s}),F=be(a,qr.tabs_select_trigger,r),m=be(a,qr.tabs_select_menu),b=$.Children.map(e,D=>{if($.isValidElement(D))return $.cloneElement(D,{onClick:l,active:t===D.props.value,style:n})}),c=$.Children.map(e,D=>{if($.isValidElement(D)){const{children:y,value:v,disabled:B}=D.props;return{label:y,value:v,disabled:B}}});return o.jsxs(o.Fragment,{children:[o.jsx("div",{className:g,role:"tablist","aria-orientation":"horizontal",children:b}),i&&o.jsx("div",{className:d,role:"tablist",children:o.jsx(Wc,{"data-testid":"tabs-select",options:Ma(c,[]),onChange:f,selectedOptionValue:t,triggerClassName:F,menuClassName:m})})]})}const o1={tab:"Tab-module_tab_Gs-G1","tab--compact":"Tab-module_tab--compact_KFjXU","tab--active":"Tab-module_tab--active_4hYQV","tab-filled":"Tab-module_tab-filled_PQeOI","tab-filled--active":"Tab-module_tab-filled--active_tsKdF"};function _3({active:e=!1,children:t,disabled:a=!1,href:i,onClick:r=Xr,value:n,style:s="default","data-testid":_}){const l=()=>{r(n)},f=i&&!a?"a":"button",g=s==="compact"||s==="default"?be(o1.tab,{[o1["tab--active"]]:e,[o1["tab--compact"]]:s==="compact"}):be(o1["tab-filled"],{[o1["tab-filled--active"]]:e});return o.jsx(f,{"aria-selected":e,className:g,disabled:a,href:i,onClick:l,role:"tab","data-testid":_,children:t})}function Pa(e){"@babel/helpers - typeof";return Pa=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},Pa(e)}function R7(e,t){if(Pa(e)!=="object"||e===null)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var i=a.call(e,t);if(Pa(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function l3(e){var t=R7(e,"string");return Pa(t)==="symbol"?t:String(t)}function rr(e,t,a){return t=l3(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}class N7{static parse(t){return t.trim().split(`
89
89
  `).map(i=>JSON.parse(i))}static stringify(t){return t.map(a=>JSON.stringify(a)).join(`
90
- `)}}const nr={kazooUrlStrategy:e=>e,llmCallUrlStrategy:e=>e,pulseUrlStrategy:e=>e,pulseBearerTokenStrategy:()=>null};function f3(){return nr.llmCallUrlStrategy("/api/api-ai-assistant/v1/chat")}function g3(e){return nr.kazooUrlStrategy(e)}function $7(e){return nr.pulseUrlStrategy(e)}function i_(){return nr.pulseBearerTokenStrategy()}function H7(e){nr.kazooUrlStrategy=e}function z7(e){nr.llmCallUrlStrategy=e}function W7(e){nr.pulseUrlStrategy=e}function V7(e){nr.pulseBearerTokenStrategy=e}const U7=Object.freeze(Object.defineProperty({__proto__:null,getKazooUrl:g3,getLlmCallUrl:f3,getPulseBearerToken:i_,getPulseUrl:$7,setKazooUrlStrategy:H7,setLlmCallUrlStrategy:z7,setPulseBearerTokenStrategy:V7,setPulseUrlStrategy:W7},Symbol.toStringTag,{value:"Module"}));async function d3({requestBody:e,onChunk:t,onError:a,onComplete:i}){var n;const r=i_();try{const s=await fetch(f3(),{method:"POST",body:JSON.stringify(e),credentials:"include",headers:{"Content-Type":"application/json",Accept:e.stream?"text/event-stream":"application/json",...r?{Authorization:`Bearer ${r}`}:{}}});if(!s||!s.ok)throw new Error("Unable to connect to LLM API. Please try again.");if(e.stream){const l=(n=s.body)==null?void 0:n.getReader();if(!l)throw new Error("Unexpected client error. Response body reader not available.");const f=new TextDecoder,g=[],d=t||(m=>{g.push(m)}),F=1e4;for(;F>0;){const{done:m,value:b}=await l.read();if(m)break;const c=f.decode(b),D=N7.parse(c);for(const y of D)d(y);i==null||i()}return g}return(await s.json()).parts}catch(s){const _=s instanceof Error?s:new Error("Unexpected error calling LLM API");throw a==null||a(_),_}}function G7({model:e,initialMessages:t,temperature:a,onAfterLlmCall:i,onBeforeLlmCall:r,onError:n,tools:s,onChunkAdded:_}={}){const[l,f]=$.useState(!1),[g,d]=$.useState(()=>(t==null?void 0:t.map(y=>({...y,timestamp:Ma(y.timestamp,new Date)})))??[]),F=$.useRef([]),m=$.useRef({onAfterLlmCall:i,onBeforeLlmCall:r,onError:n,tools:s}),b=$.useCallback(async y=>{try{m.current.onBeforeLlmCall&&(F.current.push({time:new Date,message:"Calling onBeforeLlmCall",level:"info"}),m.current.onBeforeLlmCall())}catch(B){F.current.push({time:new Date,message:"Error calling onBeforeLlmCall",data:B,level:"error"})}const v={model:e,temperature:a,stream:!0,messages:y.filter(B=>!B.filterFromApiCalls),tools:s};f(!0),F.current.push({time:new Date,message:"Calling LLM API",data:v,level:"info"});try{const B={type:"text",text:""},q=[],S=[...y];return d(S),await d3({requestBody:v,onChunk:x=>{F.current.push({time:new Date,message:"Received chunk",data:x,level:"info"}),x.type==="text"?B.text+=x.text:x.type==="toolCall"&&q.push(x),d(I=>{var Y;const U=[...I];return((Y=U[U.length-1])==null?void 0:Y.role)!=="model"&&U.push({role:"model",parts:[],timestamp:new Date}),U[U.length-1].parts=[...q,...B.text?[B]:[]],_&&_(),U})},onError:x=>{var I,U;F.current.push({time:new Date,message:"Error calling LLM API",data:x,level:"error"}),(U=(I=m.current).onError)==null||U.call(I,x)},onComplete:()=>{F.current.push({time:new Date,message:"Completed streaming response",level:"info",data:{chatDataText:B,toolCalls:q}});try{m.current.onAfterLlmCall&&(F.current.push({time:new Date,message:"Calling onAfterLlmCall",level:"info"}),m.current.onAfterLlmCall(S))}catch(x){F.current.push({time:new Date,message:"Error calling onAfterLlmCall",data:x,level:"error"})}finally{Z7({toolCalls:q,setMessages:d,sendMessages:b,propRefs:m,debugInfo:F})}}}),!0}catch{return!1}finally{f(!1)}},[e,a]),c=$.useCallback(async y=>{const v=[...g],B={role:"user",parts:[{type:"text",text:y}],timestamp:new Date};D(B),await b([...v,B])||(F.current.push({time:new Date,message:"Error sending message. Reverting to original messages",data:v,level:"error"}),d(v))},[g]),D=$.useCallback(y=>{d([...g,y])},[g]);return{isLoading:l,messages:g,setMessages:d,debugInfo:F.current,addMessage:D,sendUserMessage:c}}async function Z7({toolCalls:e,sendMessages:t,setMessages:a,propRefs:i,debugInfo:r}){var _,l,f;if(e.length===0)return;const n=[];for(const g of e){const d=(_=i.current.tools)==null?void 0:_.find(m=>m.name===g.toolName);if(!d){(f=(l=i.current).onError)==null||f.call(l,new Error(`Tool ${g.toolName} not found`)),r.current.push({time:new Date,message:`Tool ${g.toolName} not found`,data:{toolCall:g,tools:i.current.tools},level:"error"});continue}const F=`${Date.now()}-${Math.random()}`;try{a(D=>{const y=[...D];return y.push({role:"tool",parts:[g],id:F,timestamp:new Date,isPending:!0,filterFromApiCalls:!0}),y});const m=Date.now();r.current.push({time:new Date,level:"info",message:"Fulfilling tool call",data:{toolCall:g}});const b=await d.fulfill(g.args);n.push({type:"toolResult",toolName:g.toolName,result:b});const c=Date.now();r.current.push({time:new Date,level:"info",message:"Tool call fulfilled",data:{toolCall:g,durationMs:c-m}})}catch(m){r.current.push({time:new Date,message:"Error calling tool",level:"error",data:{toolCall:g,error:{message:m.message,stack:m.stack}}}),n.push({type:"toolResult",toolName:g.toolName,result:{error:{message:m.message,stack:m.stack}}})}finally{a(m=>m.map(b=>b.id===F?{...b,isPending:!1}:b))}}const s={role:"tool",parts:n};a(g=>{const d=[...g,s];return t(d),d})}const Kt={"ai-assistant-textarea":"AiAssistantComponent-module_ai-assistant-textarea_dJrtB","ai-assistant-popup-container":"AiAssistantComponent-module_ai-assistant-popup-container_OH04M","ai-assistant-chat-history-header":"AiAssistantComponent-module_ai-assistant-chat-history-header_aR6OI","ai-assistant-chat-history-button":"AiAssistantComponent-module_ai-assistant-chat-history-button_Q34D6","ai-assistant-chat-history-button-text":"AiAssistantComponent-module_ai-assistant-chat-history-button-text_cAi5Q"};function K7(e){return e?"arrow_up":"arrow_down"}function Y7(e){return e.level==="error"?"warning_no_outline":"info"}function J7(e){return e.level==="warn"?"yellow":"gray"}function X7(e){return e.level==="error"?"red":"transparent"}function Q7({debugInfo:e}){const[,t]=$.useState(0),a=$.useCallback(()=>t(l=>l+1),[]),i=$.useRef([]),r=$.useCallback(l=>{i.current.push(l),a()},[]),n=$.useCallback(l=>{i.current=i.current.filter(f=>f!==l),a()},[]),s=$.useCallback(l=>{i.current.includes(l)?n(l):r(l)},[r,n]),_=$.useCallback(l=>i.current.includes(l),[]);return o.jsx(pt,{direction:"column",gap:"8px","test-id":"debug-data",children:e.map((l,f)=>o.jsx($n,{style:{borderTop:`1px solid ${X7(l)}`},children:o.jsxs(pt,{direction:"column",gap:"8px",children:[o.jsxs(pt,{gap:"12px",alignItems:"center",justifyContent:"space-between",children:[o.jsx("div",{children:o.jsx(Zt,{icon:Y7(l),color:J7(l)})}),o.jsxs(R6,{grow:1,children:[o.jsx("div",{children:l.message}),l.time?o.jsx(su,{size:"extraSmall",children:l.time.toLocaleString()}):null]}),o.jsx("div",{children:o.jsx(La,{variant:"primary_inverted",size:"small",icon:K7(_(f)),onClick:U4(s,f),children:_(f)?"Collapse":"Expand"})})]}),_(f)&&o.jsx("textarea",{value:JSON.stringify(l,null,2),readOnly:!0,"data-testid":"debug-textarea",style:{minWidth:"100%",height:"100%",minHeight:"200px",maxWidth:"100%"}})]})},f))})}const F3=document.createElement("i");function h3(e){const t="&"+e+";";F3.innerHTML=t;const a=F3.textContent;return a.charCodeAt(a.length-1)===59&&e!=="semi"||a===t?!1:a}function ci(e,t,a,i){const r=e.length;let n=0,s;if(t<0?t=-t>r?0:r+t:t=t>r?r:t,a=a>0?a:0,i.length<1e4)s=Array.from(i),s.unshift(t,a),e.splice(...s);else for(a&&e.splice(t,a);n<i.length;)s=i.slice(n,n+1e4),s.unshift(t,0),e.splice(...s),n+=1e4,t+=1e4}function Yt(e,t){return e.length>0?(ci(e,e.length,0,t),e):t}const r_={}.hasOwnProperty;function e8(e){const t={};let a=-1;for(;++a<e.length;)t8(t,e[a]);return t}function t8(e,t){let a;for(a in t){const r=(r_.call(e,a)?e[a]:void 0)||(e[a]={}),n=t[a];let s;if(n)for(s in n){r_.call(r,s)||(r[s]=[]);const _=n[s];a8(r[s],Array.isArray(_)?_:_?[_]:[])}}}function a8(e,t){let a=-1;const i=[];for(;++a<t.length;)(t[a].add==="after"?e:i).push(t[a]);ci(e,0,0,i)}function i8(e){const t={};let a=-1;for(;++a<e.length;)r8(t,e[a]);return t}function r8(e,t){let a;for(a in t){const r=(r_.call(e,a)?e[a]:void 0)||(e[a]={}),n=t[a];let s;if(n)for(s in n)r[s]=n[s]}}function n8(e,t){const a=Number.parseInt(e,t);return a<9||a===11||a>13&&a<32||a>126&&a<160||a>55295&&a<57344||a>64975&&a<65008||(a&65535)===65535||(a&65535)===65534||a>1114111?"�":String.fromCodePoint(a)}const o8={'"':"quot","&":"amp","<":"lt",">":"gt"};function m3(e){return e.replace(/["&<>]/g,t);function t(a){return"&"+o8[a]+";"}}function s1(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const pi=or(/[A-Za-z]/),va=or(/[\dA-Za-z]/),s8=or(/[#-'*+\--9=?A-Z^-~]/);function n_(e){return e!==null&&(e<32||e===127)}const o_=or(/\d/),u8=or(/[\dA-Fa-f]/),_8=or(/[!-/:-@[-`{-~]/);function Be(e){return e!==null&&e<-2}function fa(e){return e!==null&&(e<0||e===32)}function Ze(e){return e===-2||e===-1||e===32}const l8=or(new RegExp("\\p{P}|\\p{S}","u")),f8=or(/\s/);function or(e){return t;function t(a){return a!==null&&a>-1&&e.test(String.fromCharCode(a))}}function Jo(e,t){const a=m3(g8(e||""));if(!t)return a;const i=a.indexOf(":"),r=a.indexOf("?"),n=a.indexOf("#"),s=a.indexOf("/");return i<0||s>-1&&i>s||r>-1&&i>r||n>-1&&i>n||t.test(a.slice(0,i))?a:""}function g8(e){const t=[];let a=-1,i=0,r=0;for(;++a<e.length;){const n=e.charCodeAt(a);let s="";if(n===37&&va(e.charCodeAt(a+1))&&va(e.charCodeAt(a+2)))r=2;else if(n<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(n))||(s=String.fromCharCode(n));else if(n>55295&&n<57344){const _=e.charCodeAt(a+1);n<56320&&_>56319&&_<57344?(s=String.fromCharCode(n,_),r=1):s="�"}else s=String.fromCharCode(n);s&&(t.push(e.slice(i,a),encodeURIComponent(s)),i=a+r+1,s=""),r&&(a+=r,r=0)}return t.join("")+e.slice(i)}const c3={}.hasOwnProperty,p3=/^(https?|ircs?|mailto|xmpp)$/i,d8=/^https?$/i;function F8(e){const t=e||{};let a=!0;const i={},r=[[]],n=[],s=[],l=i8([{enter:{blockQuote:w,codeFenced:R,codeFencedFenceInfo:D,codeFencedFenceMeta:D,codeIndented:A,codeText:ni,content:dt,definition:tt,definitionDestinationString:Oe,definitionLabelString:D,definitionTitleString:D,emphasis:Yr,htmlFlow:Ci,htmlText:pr,image:T,label:D,link:G,listItemMarker:L,listItemValue:O,listOrdered:U,listUnordered:Y,paragraph:M,reference:D,resource:X,resourceDestinationString:ee,resourceTitleString:D,setextHeading:Da,strong:Jr},exit:{atxHeading:Nt,atxHeadingSequence:At,autolinkEmail:kr,autolinkProtocol:br,blockQuote:u,characterEscapeValue:Ht,characterReferenceMarkerHexadecimal:Ei,characterReferenceMarkerNumeric:Ei,characterReferenceValue:oi,codeFenced:p,codeFencedFence:C,codeFencedFenceInfo:h,codeFencedFenceMeta:I,codeFlowValue:Pe,codeIndented:p,codeText:Vi,codeTextData:Ht,data:Ht,definition:Ae,definitionDestinationString:Xe,definitionLabelString:$e,definitionTitleString:at,emphasis:Za,hardBreakEscape:Ft,hardBreakTrailing:Ft,htmlFlow:wi,htmlFlowData:Ht,htmlText:wi,htmlTextData:Ht,image:Fe,label:Z,labelText:W,lineEnding:ge,link:Fe,listOrdered:P,listUnordered:H,paragraph:E,reference:I,referenceString:Q,resource:I,resourceDestinationString:le,resourceTitleString:ae,setextHeading:Ca,setextHeadingLineSequence:$t,setextHeadingText:ta,strong:zt,thematicBreak:aa}},...t.htmlExtensions||[]]),f={definitions:i,tightStack:s},g={buffer:D,encode:x,getData:c,lineEndingIfNeeded:S,options:t,raw:B,resume:y,setData:b,tag:v};let d=t.defaultLineEnding;return F;function F(fe){let De=-1,ht=0;const qt=[];let jt=[],ia=[];for(;++De<fe.length;)!d&&(fe[De][1].type==="lineEnding"||fe[De][1].type==="lineEndingBlank")&&(d=fe[De][2].sliceSerialize(fe[De][1])),(fe[De][1].type==="listOrdered"||fe[De][1].type==="listUnordered")&&(fe[De][0]==="enter"?qt.push(De):m(fe.slice(qt.pop(),De))),fe[De][1].type==="definition"&&(fe[De][0]==="enter"?(ia=Yt(ia,fe.slice(ht,De)),ht=De):(jt=Yt(jt,fe.slice(ht,De+1)),ht=De+1));jt=Yt(jt,ia),jt=Yt(jt,fe.slice(ht)),De=-1;const St=jt;for(l.enter.null&&l.enter.null.call(g);++De<fe.length;){const xi=l[St[De][0]],Sa=St[De][1].type,Ui=xi[Sa];c3.call(xi,Sa)&&Ui&&Ui.call({sliceSerialize:St[De][2].sliceSerialize,...g},St[De][1])}return l.exit.null&&l.exit.null.call(g),r[0].join("")}function m(fe){const De=fe.length;let ht=0,qt=0,jt=!1,ia;for(;++ht<De;){const St=fe[ht];if(St[1]._container)ia=void 0,St[0]==="enter"?qt++:qt--;else switch(St[1].type){case"listItemPrefix":{St[0]==="exit"&&(ia=!0);break}case"linePrefix":break;case"lineEndingBlank":{St[0]==="enter"&&!qt&&(ia?ia=void 0:jt=!0);break}default:ia=void 0}}fe[0][1]._loose=jt}function b(fe,De){f[fe]=De}function c(fe){return f[fe]}function D(){r.push([])}function y(){return r.pop().join("")}function v(fe){a&&(b("lastWasTag",!0),r[r.length-1].push(fe))}function B(fe){b("lastWasTag"),r[r.length-1].push(fe)}function q(){B(d||`
90
+ `)}}const nr={kazooUrlStrategy:e=>e,llmCallUrlStrategy:e=>e,pulseUrlStrategy:e=>e,pulseBearerTokenStrategy:()=>null};function f3(){return nr.llmCallUrlStrategy("/api/api-ai-assistant/v1/chat")}function g3(e){return nr.kazooUrlStrategy(e)}function $7(e){return nr.pulseUrlStrategy(e)}function i_(){return nr.pulseBearerTokenStrategy()}function H7(e){nr.kazooUrlStrategy=e}function z7(e){nr.llmCallUrlStrategy=e}function W7(e){nr.pulseUrlStrategy=e}function V7(e){nr.pulseBearerTokenStrategy=e}const U7=Object.freeze(Object.defineProperty({__proto__:null,getKazooUrl:g3,getLlmCallUrl:f3,getPulseBearerToken:i_,getPulseUrl:$7,setKazooUrlStrategy:H7,setLlmCallUrlStrategy:z7,setPulseBearerTokenStrategy:V7,setPulseUrlStrategy:W7},Symbol.toStringTag,{value:"Module"}));async function d3({requestBody:e,onChunk:t,onError:a,onComplete:i}){var n;const r=i_();try{const s=await fetch(f3(),{method:"POST",body:JSON.stringify(e),credentials:r?void 0:"include",headers:{"Content-Type":"application/json",Accept:e.stream?"text/event-stream":"application/json",...r?{Authorization:`Bearer ${r}`}:{}}});if(!s||!s.ok)throw new Error("Unable to connect to LLM API. Please try again.");if(e.stream){const l=(n=s.body)==null?void 0:n.getReader();if(!l)throw new Error("Unexpected client error. Response body reader not available.");const f=new TextDecoder,g=[],d=t||(m=>{g.push(m)}),F=1e4;for(;F>0;){const{done:m,value:b}=await l.read();if(m)break;const c=f.decode(b),D=N7.parse(c);for(const y of D)d(y);i==null||i()}return g}return(await s.json()).parts}catch(s){const _=s instanceof Error?s:new Error("Unexpected error calling LLM API");throw a==null||a(_),_}}function G7({model:e,initialMessages:t,temperature:a,onAfterLlmCall:i,onBeforeLlmCall:r,onError:n,tools:s,onChunkAdded:_}={}){const[l,f]=$.useState(!1),[g,d]=$.useState(()=>(t==null?void 0:t.map(y=>({...y,timestamp:Ma(y.timestamp,new Date)})))??[]),F=$.useRef([]),m=$.useRef({onAfterLlmCall:i,onBeforeLlmCall:r,onError:n,tools:s}),b=$.useCallback(async y=>{try{m.current.onBeforeLlmCall&&(F.current.push({time:new Date,message:"Calling onBeforeLlmCall",level:"info"}),m.current.onBeforeLlmCall())}catch(B){F.current.push({time:new Date,message:"Error calling onBeforeLlmCall",data:B,level:"error"})}const v={model:e,temperature:a,stream:!0,messages:y.filter(B=>!B.filterFromApiCalls),tools:s};f(!0),F.current.push({time:new Date,message:"Calling LLM API",data:v,level:"info"});try{const B={type:"text",text:""},q=[],S=[...y];return d(S),await d3({requestBody:v,onChunk:x=>{F.current.push({time:new Date,message:"Received chunk",data:x,level:"info"}),x.type==="text"?B.text+=x.text:x.type==="toolCall"&&q.push(x),d(I=>{var Y;const U=[...I];return((Y=U[U.length-1])==null?void 0:Y.role)!=="model"&&U.push({role:"model",parts:[],timestamp:new Date}),U[U.length-1].parts=[...q,...B.text?[B]:[]],_&&_(),U})},onError:x=>{var I,U;F.current.push({time:new Date,message:"Error calling LLM API",data:x,level:"error"}),(U=(I=m.current).onError)==null||U.call(I,x)},onComplete:()=>{F.current.push({time:new Date,message:"Completed streaming response",level:"info",data:{chatDataText:B,toolCalls:q}});try{m.current.onAfterLlmCall&&(F.current.push({time:new Date,message:"Calling onAfterLlmCall",level:"info"}),m.current.onAfterLlmCall(S))}catch(x){F.current.push({time:new Date,message:"Error calling onAfterLlmCall",data:x,level:"error"})}finally{Z7({toolCalls:q,setMessages:d,sendMessages:b,propRefs:m,debugInfo:F})}}}),!0}catch{return!1}finally{f(!1)}},[e,a]),c=$.useCallback(async y=>{const v=[...g],B={role:"user",parts:[{type:"text",text:y}],timestamp:new Date};D(B),await b([...v,B])||(F.current.push({time:new Date,message:"Error sending message. Reverting to original messages",data:v,level:"error"}),d(v))},[g]),D=$.useCallback(y=>{d([...g,y])},[g]);return{isLoading:l,messages:g,setMessages:d,debugInfo:F.current,addMessage:D,sendUserMessage:c}}async function Z7({toolCalls:e,sendMessages:t,setMessages:a,propRefs:i,debugInfo:r}){var _,l,f;if(e.length===0)return;const n=[];for(const g of e){const d=(_=i.current.tools)==null?void 0:_.find(m=>m.name===g.toolName);if(!d){(f=(l=i.current).onError)==null||f.call(l,new Error(`Tool ${g.toolName} not found`)),r.current.push({time:new Date,message:`Tool ${g.toolName} not found`,data:{toolCall:g,tools:i.current.tools},level:"error"});continue}const F=`${Date.now()}-${Math.random()}`;try{a(D=>{const y=[...D];return y.push({role:"tool",parts:[g],id:F,timestamp:new Date,isPending:!0,filterFromApiCalls:!0}),y});const m=Date.now();r.current.push({time:new Date,level:"info",message:"Fulfilling tool call",data:{toolCall:g}});const b=await d.fulfill(g.args);n.push({type:"toolResult",toolName:g.toolName,result:b});const c=Date.now();r.current.push({time:new Date,level:"info",message:"Tool call fulfilled",data:{toolCall:g,durationMs:c-m}})}catch(m){r.current.push({time:new Date,message:"Error calling tool",level:"error",data:{toolCall:g,error:{message:m.message,stack:m.stack}}}),n.push({type:"toolResult",toolName:g.toolName,result:{error:{message:m.message,stack:m.stack}}})}finally{a(m=>m.map(b=>b.id===F?{...b,isPending:!1}:b))}}const s={role:"tool",parts:n};a(g=>{const d=[...g,s];return t(d),d})}const Kt={"ai-assistant-textarea":"AiAssistantComponent-module_ai-assistant-textarea_dJrtB","ai-assistant-popup-container":"AiAssistantComponent-module_ai-assistant-popup-container_OH04M","ai-assistant-chat-history-header":"AiAssistantComponent-module_ai-assistant-chat-history-header_aR6OI","ai-assistant-chat-history-button":"AiAssistantComponent-module_ai-assistant-chat-history-button_Q34D6","ai-assistant-chat-history-button-text":"AiAssistantComponent-module_ai-assistant-chat-history-button-text_cAi5Q"};function K7(e){return e?"arrow_up":"arrow_down"}function Y7(e){return e.level==="error"?"warning_no_outline":"info"}function J7(e){return e.level==="warn"?"yellow":"gray"}function X7(e){return e.level==="error"?"red":"transparent"}function Q7({debugInfo:e}){const[,t]=$.useState(0),a=$.useCallback(()=>t(l=>l+1),[]),i=$.useRef([]),r=$.useCallback(l=>{i.current.push(l),a()},[]),n=$.useCallback(l=>{i.current=i.current.filter(f=>f!==l),a()},[]),s=$.useCallback(l=>{i.current.includes(l)?n(l):r(l)},[r,n]),_=$.useCallback(l=>i.current.includes(l),[]);return o.jsx(pt,{direction:"column",gap:"8px","test-id":"debug-data",children:e.map((l,f)=>o.jsx($n,{style:{borderTop:`1px solid ${X7(l)}`},children:o.jsxs(pt,{direction:"column",gap:"8px",children:[o.jsxs(pt,{gap:"12px",alignItems:"center",justifyContent:"space-between",children:[o.jsx("div",{children:o.jsx(Zt,{icon:Y7(l),color:J7(l)})}),o.jsxs(R6,{grow:1,children:[o.jsx("div",{children:l.message}),l.time?o.jsx(su,{size:"extraSmall",children:l.time.toLocaleString()}):null]}),o.jsx("div",{children:o.jsx(La,{variant:"primary_inverted",size:"small",icon:K7(_(f)),onClick:U4(s,f),children:_(f)?"Collapse":"Expand"})})]}),_(f)&&o.jsx("textarea",{value:JSON.stringify(l,null,2),readOnly:!0,"data-testid":"debug-textarea",style:{minWidth:"100%",height:"100%",minHeight:"200px",maxWidth:"100%"}})]})},f))})}const F3=document.createElement("i");function h3(e){const t="&"+e+";";F3.innerHTML=t;const a=F3.textContent;return a.charCodeAt(a.length-1)===59&&e!=="semi"||a===t?!1:a}function ci(e,t,a,i){const r=e.length;let n=0,s;if(t<0?t=-t>r?0:r+t:t=t>r?r:t,a=a>0?a:0,i.length<1e4)s=Array.from(i),s.unshift(t,a),e.splice(...s);else for(a&&e.splice(t,a);n<i.length;)s=i.slice(n,n+1e4),s.unshift(t,0),e.splice(...s),n+=1e4,t+=1e4}function Yt(e,t){return e.length>0?(ci(e,e.length,0,t),e):t}const r_={}.hasOwnProperty;function e8(e){const t={};let a=-1;for(;++a<e.length;)t8(t,e[a]);return t}function t8(e,t){let a;for(a in t){const r=(r_.call(e,a)?e[a]:void 0)||(e[a]={}),n=t[a];let s;if(n)for(s in n){r_.call(r,s)||(r[s]=[]);const _=n[s];a8(r[s],Array.isArray(_)?_:_?[_]:[])}}}function a8(e,t){let a=-1;const i=[];for(;++a<t.length;)(t[a].add==="after"?e:i).push(t[a]);ci(e,0,0,i)}function i8(e){const t={};let a=-1;for(;++a<e.length;)r8(t,e[a]);return t}function r8(e,t){let a;for(a in t){const r=(r_.call(e,a)?e[a]:void 0)||(e[a]={}),n=t[a];let s;if(n)for(s in n)r[s]=n[s]}}function n8(e,t){const a=Number.parseInt(e,t);return a<9||a===11||a>13&&a<32||a>126&&a<160||a>55295&&a<57344||a>64975&&a<65008||(a&65535)===65535||(a&65535)===65534||a>1114111?"�":String.fromCodePoint(a)}const o8={'"':"quot","&":"amp","<":"lt",">":"gt"};function m3(e){return e.replace(/["&<>]/g,t);function t(a){return"&"+o8[a]+";"}}function s1(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const pi=or(/[A-Za-z]/),va=or(/[\dA-Za-z]/),s8=or(/[#-'*+\--9=?A-Z^-~]/);function n_(e){return e!==null&&(e<32||e===127)}const o_=or(/\d/),u8=or(/[\dA-Fa-f]/),_8=or(/[!-/:-@[-`{-~]/);function Be(e){return e!==null&&e<-2}function fa(e){return e!==null&&(e<0||e===32)}function Ze(e){return e===-2||e===-1||e===32}const l8=or(new RegExp("\\p{P}|\\p{S}","u")),f8=or(/\s/);function or(e){return t;function t(a){return a!==null&&a>-1&&e.test(String.fromCharCode(a))}}function Jo(e,t){const a=m3(g8(e||""));if(!t)return a;const i=a.indexOf(":"),r=a.indexOf("?"),n=a.indexOf("#"),s=a.indexOf("/");return i<0||s>-1&&i>s||r>-1&&i>r||n>-1&&i>n||t.test(a.slice(0,i))?a:""}function g8(e){const t=[];let a=-1,i=0,r=0;for(;++a<e.length;){const n=e.charCodeAt(a);let s="";if(n===37&&va(e.charCodeAt(a+1))&&va(e.charCodeAt(a+2)))r=2;else if(n<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(n))||(s=String.fromCharCode(n));else if(n>55295&&n<57344){const _=e.charCodeAt(a+1);n<56320&&_>56319&&_<57344?(s=String.fromCharCode(n,_),r=1):s="�"}else s=String.fromCharCode(n);s&&(t.push(e.slice(i,a),encodeURIComponent(s)),i=a+r+1,s=""),r&&(a+=r,r=0)}return t.join("")+e.slice(i)}const c3={}.hasOwnProperty,p3=/^(https?|ircs?|mailto|xmpp)$/i,d8=/^https?$/i;function F8(e){const t=e||{};let a=!0;const i={},r=[[]],n=[],s=[],l=i8([{enter:{blockQuote:w,codeFenced:R,codeFencedFenceInfo:D,codeFencedFenceMeta:D,codeIndented:A,codeText:ni,content:dt,definition:tt,definitionDestinationString:Oe,definitionLabelString:D,definitionTitleString:D,emphasis:Yr,htmlFlow:Ci,htmlText:pr,image:T,label:D,link:G,listItemMarker:L,listItemValue:O,listOrdered:U,listUnordered:Y,paragraph:M,reference:D,resource:X,resourceDestinationString:ee,resourceTitleString:D,setextHeading:Da,strong:Jr},exit:{atxHeading:Nt,atxHeadingSequence:At,autolinkEmail:kr,autolinkProtocol:br,blockQuote:u,characterEscapeValue:Ht,characterReferenceMarkerHexadecimal:Ei,characterReferenceMarkerNumeric:Ei,characterReferenceValue:oi,codeFenced:p,codeFencedFence:C,codeFencedFenceInfo:h,codeFencedFenceMeta:I,codeFlowValue:Pe,codeIndented:p,codeText:Vi,codeTextData:Ht,data:Ht,definition:Ae,definitionDestinationString:Xe,definitionLabelString:$e,definitionTitleString:at,emphasis:Za,hardBreakEscape:Ft,hardBreakTrailing:Ft,htmlFlow:wi,htmlFlowData:Ht,htmlText:wi,htmlTextData:Ht,image:Fe,label:Z,labelText:W,lineEnding:ge,link:Fe,listOrdered:P,listUnordered:H,paragraph:E,reference:I,referenceString:Q,resource:I,resourceDestinationString:le,resourceTitleString:ae,setextHeading:Ca,setextHeadingLineSequence:$t,setextHeadingText:ta,strong:zt,thematicBreak:aa}},...t.htmlExtensions||[]]),f={definitions:i,tightStack:s},g={buffer:D,encode:x,getData:c,lineEndingIfNeeded:S,options:t,raw:B,resume:y,setData:b,tag:v};let d=t.defaultLineEnding;return F;function F(fe){let De=-1,ht=0;const qt=[];let jt=[],ia=[];for(;++De<fe.length;)!d&&(fe[De][1].type==="lineEnding"||fe[De][1].type==="lineEndingBlank")&&(d=fe[De][2].sliceSerialize(fe[De][1])),(fe[De][1].type==="listOrdered"||fe[De][1].type==="listUnordered")&&(fe[De][0]==="enter"?qt.push(De):m(fe.slice(qt.pop(),De))),fe[De][1].type==="definition"&&(fe[De][0]==="enter"?(ia=Yt(ia,fe.slice(ht,De)),ht=De):(jt=Yt(jt,fe.slice(ht,De+1)),ht=De+1));jt=Yt(jt,ia),jt=Yt(jt,fe.slice(ht)),De=-1;const St=jt;for(l.enter.null&&l.enter.null.call(g);++De<fe.length;){const xi=l[St[De][0]],Sa=St[De][1].type,Ui=xi[Sa];c3.call(xi,Sa)&&Ui&&Ui.call({sliceSerialize:St[De][2].sliceSerialize,...g},St[De][1])}return l.exit.null&&l.exit.null.call(g),r[0].join("")}function m(fe){const De=fe.length;let ht=0,qt=0,jt=!1,ia;for(;++ht<De;){const St=fe[ht];if(St[1]._container)ia=void 0,St[0]==="enter"?qt++:qt--;else switch(St[1].type){case"listItemPrefix":{St[0]==="exit"&&(ia=!0);break}case"linePrefix":break;case"lineEndingBlank":{St[0]==="enter"&&!qt&&(ia?ia=void 0:jt=!0);break}default:ia=void 0}}fe[0][1]._loose=jt}function b(fe,De){f[fe]=De}function c(fe){return f[fe]}function D(){r.push([])}function y(){return r.pop().join("")}function v(fe){a&&(b("lastWasTag",!0),r[r.length-1].push(fe))}function B(fe){b("lastWasTag"),r[r.length-1].push(fe)}function q(){B(d||`
91
91
  `)}function S(){const fe=r[r.length-1],De=fe[fe.length-1],ht=De?De.charCodeAt(De.length-1):null;ht===10||ht===13||ht===null||q()}function x(fe){return c("ignoreEncode")?fe:m3(fe)}function I(){y()}function U(fe){s.push(!fe._loose),S(),v("<ol"),b("expectFirstItem",!0)}function Y(fe){s.push(!fe._loose),S(),v("<ul"),b("expectFirstItem",!0)}function O(fe){if(c("expectFirstItem")){const De=Number.parseInt(this.sliceSerialize(fe),10);De!==1&&v(' start="'+x(String(De))+'"')}}function L(){c("expectFirstItem")?v(">"):k(),S(),v("<li>"),b("expectFirstItem"),b("lastWasTag")}function P(){k(),s.pop(),q(),v("</ol>")}function H(){k(),s.pop(),q(),v("</ul>")}function k(){c("lastWasTag")&&!c("slurpAllLineEndings")&&S(),v("</li>"),b("slurpAllLineEndings")}function w(){s.push(!1),S(),v("<blockquote>")}function u(){s.pop(),S(),v("</blockquote>"),b("slurpAllLineEndings")}function M(){s[s.length-1]||(S(),v("<p>")),b("slurpAllLineEndings")}function E(){s[s.length-1]?b("slurpAllLineEndings",!0):v("</p>")}function R(){S(),v("<pre><code"),b("fencesCount",0)}function h(){const fe=y();v(' class="language-'+fe+'"')}function C(){const fe=c("fencesCount")||0;fe||(v(">"),b("slurpOneLineEnding",!0)),b("fencesCount",fe+1)}function A(){S(),v("<pre><code>")}function p(){const fe=c("fencesCount");fe!==void 0&&fe<2&&f.tightStack.length>0&&!c("lastWasTag")&&q(),c("flowCodeSeenData")&&S(),v("</code></pre>"),fe!==void 0&&fe<2&&S(),b("flowCodeSeenData"),b("fencesCount"),b("slurpOneLineEnding")}function T(){n.push({image:!0}),a=void 0}function G(){n.push({})}function W(fe){n[n.length-1].labelId=this.sliceSerialize(fe)}function Z(){n[n.length-1].label=y()}function Q(fe){n[n.length-1].referenceId=this.sliceSerialize(fe)}function X(){D(),n[n.length-1].destination=""}function ee(){D(),b("ignoreEncode",!0)}function le(){n[n.length-1].destination=y(),b("ignoreEncode")}function ae(){n[n.length-1].title=y()}function Fe(){let fe=n.length-1;const De=n[fe],ht=De.referenceId||De.labelId,qt=De.destination===void 0?i[s1(ht)]:De;for(a=!0;fe--;)if(n[fe].image){a=void 0;break}De.image?(v('<img src="'+Jo(qt.destination,t.allowDangerousProtocol?void 0:d8)+'" alt="'),B(De.label),v('"')):v('<a href="'+Jo(qt.destination,t.allowDangerousProtocol?void 0:p3)+'"'),v(qt.title?' title="'+qt.title+'"':""),De.image?v(" />"):(v(">"),B(De.label),v("</a>")),n.pop()}function tt(){D(),n.push({})}function $e(fe){y(),n[n.length-1].labelId=this.sliceSerialize(fe)}function Oe(){D(),b("ignoreEncode",!0)}function Xe(){n[n.length-1].destination=y(),b("ignoreEncode")}function at(){n[n.length-1].title=y()}function Ae(){const fe=n[n.length-1],De=s1(fe.labelId);y(),c3.call(i,De)||(i[De]=n[n.length-1]),n.pop()}function dt(){b("slurpAllLineEndings",!0)}function At(fe){c("headingRank")||(b("headingRank",this.sliceSerialize(fe).length),S(),v("<h"+c("headingRank")+">"))}function Da(){D(),b("slurpAllLineEndings")}function ta(){b("slurpAllLineEndings",!0)}function Nt(){v("</h"+c("headingRank")+">"),b("headingRank")}function $t(fe){b("headingRank",this.sliceSerialize(fe).charCodeAt(0)===61?1:2)}function Ca(){const fe=y();S(),v("<h"+c("headingRank")+">"),B(fe),v("</h"+c("headingRank")+">"),b("slurpAllLineEndings"),b("headingRank")}function Ht(fe){B(x(this.sliceSerialize(fe)))}function ge(fe){if(!c("slurpAllLineEndings")){if(c("slurpOneLineEnding")){b("slurpOneLineEnding");return}if(c("inCodeText")){B(" ");return}B(x(this.sliceSerialize(fe)))}}function Pe(fe){B(x(this.sliceSerialize(fe))),b("flowCodeSeenData",!0)}function Ft(){v("<br />")}function Ci(){S(),pr()}function wi(){b("ignoreEncode")}function pr(){t.allowDangerousHtml&&b("ignoreEncode",!0)}function Yr(){v("<em>")}function Jr(){v("<strong>")}function ni(){b("inCodeText",!0),v("<code>")}function Vi(){b("inCodeText"),v("</code>")}function Za(){v("</em>")}function zt(){v("</strong>")}function aa(){S(),v("<hr />")}function Ei(fe){b("characterReferenceType",fe.type)}function oi(fe){const De=this.sliceSerialize(fe),ht=c("characterReferenceType")?n8(De,c("characterReferenceType")==="characterReferenceMarkerNumeric"?10:16):h3(De);B(x(ht)),b("characterReferenceType")}function br(fe){const De=this.sliceSerialize(fe);v('<a href="'+Jo(De,t.allowDangerousProtocol?void 0:p3)+'">'),B(x(De)),v("</a>")}function kr(fe){const De=this.sliceSerialize(fe);v('<a href="'+Jo("mailto:"+De)+'">'),B(x(De)),v("</a>")}}function rt(e,t,a,i){const r=i?i-1:Number.POSITIVE_INFINITY;let n=0;return s;function s(l){return Ze(l)?(e.enter(a),_(l)):t(l)}function _(l){return Ze(l)&&n++<r?(e.consume(l),_):(e.exit(a),t(l))}}const h8={tokenize:m8};function m8(e){const t=e.attempt(this.parser.constructs.contentInitial,i,r);let a;return t;function i(_){if(_===null){e.consume(_);return}return e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),rt(e,t,"linePrefix")}function r(_){return e.enter("paragraph"),n(_)}function n(_){const l=e.enter("chunkText",{contentType:"text",previous:a});return a&&(a.next=l),a=l,s(_)}function s(_){if(_===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(_);return}return Be(_)?(e.consume(_),e.exit("chunkText"),n):(e.consume(_),s)}}const c8={tokenize:p8},b3={tokenize:b8};function p8(e){const t=this,a=[];let i=0,r,n,s;return _;function _(B){if(i<a.length){const q=a[i];return t.containerState=q[1],e.attempt(q[0].continuation,l,f)(B)}return f(B)}function l(B){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&v();const q=t.events.length;let S=q,x;for(;S--;)if(t.events[S][0]==="exit"&&t.events[S][1].type==="chunkFlow"){x=t.events[S][1].end;break}y(i);let I=q;for(;I<t.events.length;)t.events[I][1].end={...x},I++;return ci(t.events,S+1,0,t.events.slice(q)),t.events.length=I,f(B)}return _(B)}function f(B){if(i===a.length){if(!r)return F(B);if(r.currentConstruct&&r.currentConstruct.concrete)return b(B);t.interrupt=!!(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(b3,g,d)(B)}function g(B){return r&&v(),y(i),F(B)}function d(B){return t.parser.lazy[t.now().line]=i!==a.length,s=t.now().offset,b(B)}function F(B){return t.containerState={},e.attempt(b3,m,b)(B)}function m(B){return i++,a.push([t.currentConstruct,t.containerState]),F(B)}function b(B){if(B===null){r&&v(),y(0),e.consume(B);return}return r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:n}),c(B)}function c(B){if(B===null){D(e.exit("chunkFlow"),!0),y(0),e.consume(B);return}return Be(B)?(e.consume(B),D(e.exit("chunkFlow")),i=0,t.interrupt=void 0,_):(e.consume(B),c)}function D(B,q){const S=t.sliceStream(B);if(q&&S.push(null),B.previous=n,n&&(n.next=B),n=B,r.defineSkip(B.start),r.write(S),t.parser.lazy[B.start.line]){let x=r.events.length;for(;x--;)if(r.events[x][1].start.offset<s&&(!r.events[x][1].end||r.events[x][1].end.offset>s))return;const I=t.events.length;let U=I,Y,O;for(;U--;)if(t.events[U][0]==="exit"&&t.events[U][1].type==="chunkFlow"){if(Y){O=t.events[U][1].end;break}Y=!0}for(y(i),x=I;x<t.events.length;)t.events[x][1].end={...O},x++;ci(t.events,U+1,0,t.events.slice(I)),t.events.length=x}}function y(B){let q=a.length;for(;q-- >B;){const S=a[q];t.containerState=S[1],S[0].exit.call(t,e)}a.length=B}function v(){r.write([null]),n=void 0,r=void 0,t.containerState._closeFlow=void 0}}function b8(e,t,a){return rt(e,e.attempt(this.parser.constructs.document,t,a),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function k3(e){if(e===null||fa(e)||f8(e))return 1;if(l8(e))return 2}function s_(e,t,a){const i=[];let r=-1;for(;++r<e.length;){const n=e[r].resolveAll;n&&!i.includes(n)&&(t=n(t,a),i.push(n))}return t}const u_={name:"attention",resolveAll:k8,tokenize:y8};function k8(e,t){let a=-1,i,r,n,s,_,l,f,g;for(;++a<e.length;)if(e[a][0]==="enter"&&e[a][1].type==="attentionSequence"&&e[a][1]._close){for(i=a;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[a][1]).charCodeAt(0)){if((e[i][1]._close||e[a][1]._open)&&(e[a][1].end.offset-e[a][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[a][1].end.offset-e[a][1].start.offset)%3))continue;l=e[i][1].end.offset-e[i][1].start.offset>1&&e[a][1].end.offset-e[a][1].start.offset>1?2:1;const d={...e[i][1].end},F={...e[a][1].start};y3(d,-l),y3(F,l),s={type:l>1?"strongSequence":"emphasisSequence",start:d,end:{...e[i][1].end}},_={type:l>1?"strongSequence":"emphasisSequence",start:{...e[a][1].start},end:F},n={type:l>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[a][1].start}},r={type:l>1?"strong":"emphasis",start:{...s.start},end:{..._.end}},e[i][1].end={...s.start},e[a][1].start={..._.end},f=[],e[i][1].end.offset-e[i][1].start.offset&&(f=Yt(f,[["enter",e[i][1],t],["exit",e[i][1],t]])),f=Yt(f,[["enter",r,t],["enter",s,t],["exit",s,t],["enter",n,t]]),f=Yt(f,s_(t.parser.constructs.insideSpan.null,e.slice(i+1,a),t)),f=Yt(f,[["exit",n,t],["enter",_,t],["exit",_,t],["exit",r,t]]),e[a][1].end.offset-e[a][1].start.offset?(g=2,f=Yt(f,[["enter",e[a][1],t],["exit",e[a][1],t]])):g=0,ci(e,i-1,a-i+3,f),a=i+f.length-g-2;break}}for(a=-1;++a<e.length;)e[a][1].type==="attentionSequence"&&(e[a][1].type="data");return e}function y8(e,t){const a=this.parser.constructs.attentionMarkers.null,i=this.previous,r=k3(i);let n;return s;function s(l){return n=l,e.enter("attentionSequence"),_(l)}function _(l){if(l===n)return e.consume(l),_;const f=e.exit("attentionSequence"),g=k3(l),d=!g||g===2&&r||a.includes(l),F=!r||r===2&&g||a.includes(i);return f._open=!!(n===42?d:d&&(r||!F)),f._close=!!(n===42?F:F&&(g||!d)),t(l)}}function y3(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const D8={name:"autolink",tokenize:C8};function C8(e,t,a){let i=0;return r;function r(m){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),n}function n(m){return pi(m)?(e.consume(m),s):m===64?a(m):f(m)}function s(m){return m===43||m===45||m===46||va(m)?(i=1,_(m)):f(m)}function _(m){return m===58?(e.consume(m),i=0,l):(m===43||m===45||m===46||va(m))&&i++<32?(e.consume(m),_):(i=0,f(m))}function l(m){return m===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):m===null||m===32||m===60||n_(m)?a(m):(e.consume(m),l)}function f(m){return m===64?(e.consume(m),g):s8(m)?(e.consume(m),f):a(m)}function g(m){return va(m)?d(m):a(m)}function d(m){return m===46?(e.consume(m),i=0,g):m===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):F(m)}function F(m){if((m===45||va(m))&&i++<63){const b=m===45?F:d;return e.consume(m),b}return a(m)}}const Xo={partial:!0,tokenize:w8};function w8(e,t,a){return i;function i(n){return Ze(n)?rt(e,r,"linePrefix")(n):r(n)}function r(n){return n===null||Be(n)?t(n):a(n)}}const D3={continuation:{tokenize:x8},exit:v8,name:"blockQuote",tokenize:E8};function E8(e,t,a){const i=this;return r;function r(s){if(s===62){const _=i.containerState;return _.open||(e.enter("blockQuote",{_container:!0}),_.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),n}return a(s)}function n(s){return Ze(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function x8(e,t,a){const i=this;return r;function r(s){return Ze(s)?rt(e,n,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):n(s)}function n(s){return e.attempt(D3,t,a)(s)}}function v8(e){e.exit("blockQuote")}const C3={name:"characterEscape",tokenize:j8};function j8(e,t,a){return i;function i(n){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(n),e.exit("escapeMarker"),r}function r(n){return _8(n)?(e.enter("characterEscapeValue"),e.consume(n),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):a(n)}}const w3={name:"characterReference",tokenize:B8};function B8(e,t,a){const i=this;let r=0,n,s;return _;function _(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),l}function l(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),f):(e.enter("characterReferenceValue"),n=31,s=va,g(d))}function f(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),n=6,s=u8,g):(e.enter("characterReferenceValue"),n=7,s=o_,g(d))}function g(d){if(d===59&&r){const F=e.exit("characterReferenceValue");return s===va&&!h3(i.sliceSerialize(F))?a(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(d)&&r++<n?(e.consume(d),g):a(d)}}const E3={partial:!0,tokenize:S8},x3={concrete:!0,name:"codeFenced",tokenize:q8};function q8(e,t,a){const i=this,r={partial:!0,tokenize:S};let n=0,s=0,_;return l;function l(x){return f(x)}function f(x){const I=i.events[i.events.length-1];return n=I&&I[1].type==="linePrefix"?I[2].sliceSerialize(I[1],!0).length:0,_=x,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),g(x)}function g(x){return x===_?(s++,e.consume(x),g):s<3?a(x):(e.exit("codeFencedFenceSequence"),Ze(x)?rt(e,d,"whitespace")(x):d(x))}function d(x){return x===null||Be(x)?(e.exit("codeFencedFence"),i.interrupt?t(x):e.check(E3,c,q)(x)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),F(x))}function F(x){return x===null||Be(x)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(x)):Ze(x)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),rt(e,m,"whitespace")(x)):x===96&&x===_?a(x):(e.consume(x),F)}function m(x){return x===null||Be(x)?d(x):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(x))}function b(x){return x===null||Be(x)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(x)):x===96&&x===_?a(x):(e.consume(x),b)}function c(x){return e.attempt(r,q,D)(x)}function D(x){return e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),y}function y(x){return n>0&&Ze(x)?rt(e,v,"linePrefix",n+1)(x):v(x)}function v(x){return x===null||Be(x)?e.check(E3,c,q)(x):(e.enter("codeFlowValue"),B(x))}function B(x){return x===null||Be(x)?(e.exit("codeFlowValue"),v(x)):(e.consume(x),B)}function q(x){return e.exit("codeFenced"),t(x)}function S(x,I,U){let Y=0;return O;function O(w){return x.enter("lineEnding"),x.consume(w),x.exit("lineEnding"),L}function L(w){return x.enter("codeFencedFence"),Ze(w)?rt(x,P,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):P(w)}function P(w){return w===_?(x.enter("codeFencedFenceSequence"),H(w)):U(w)}function H(w){return w===_?(Y++,x.consume(w),H):Y>=s?(x.exit("codeFencedFenceSequence"),Ze(w)?rt(x,k,"whitespace")(w):k(w)):U(w)}function k(w){return w===null||Be(w)?(x.exit("codeFencedFence"),I(w)):U(w)}}}function S8(e,t,a){const i=this;return r;function r(s){return s===null?a(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n)}function n(s){return i.parser.lazy[i.now().line]?a(s):t(s)}}const __={name:"codeIndented",tokenize:A8},M8={partial:!0,tokenize:L8};function A8(e,t,a){const i=this;return r;function r(f){return e.enter("codeIndented"),rt(e,n,"linePrefix",5)(f)}function n(f){const g=i.events[i.events.length-1];return g&&g[1].type==="linePrefix"&&g[2].sliceSerialize(g[1],!0).length>=4?s(f):a(f)}function s(f){return f===null?l(f):Be(f)?e.attempt(M8,s,l)(f):(e.enter("codeFlowValue"),_(f))}function _(f){return f===null||Be(f)?(e.exit("codeFlowValue"),s(f)):(e.consume(f),_)}function l(f){return e.exit("codeIndented"),t(f)}}function L8(e,t,a){const i=this;return r;function r(s){return i.parser.lazy[i.now().line]?a(s):Be(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),r):rt(e,n,"linePrefix",5)(s)}function n(s){const _=i.events[i.events.length-1];return _&&_[1].type==="linePrefix"&&_[2].sliceSerialize(_[1],!0).length>=4?t(s):Be(s)?r(s):a(s)}}const O8={name:"codeText",previous:P8,resolve:T8,tokenize:I8};function T8(e){let t=e.length-4,a=3,i,r;if((e[a][1].type==="lineEnding"||e[a][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=a;++i<t;)if(e[i][1].type==="codeTextData"){e[a][1].type="codeTextPadding",e[t][1].type="codeTextPadding",a+=2,t-=2;break}}for(i=a-1,t++;++i<=t;)r===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(r=i):(i===t||e[i][1].type==="lineEnding")&&(e[r][1].type="codeTextData",i!==r+2&&(e[r][1].end=e[i-1][1].end,e.splice(r+2,i-r-2),t-=i-r-2,i=r+2),r=void 0);return e}function P8(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function I8(e,t,a){let i=0,r,n;return s;function s(d){return e.enter("codeText"),e.enter("codeTextSequence"),_(d)}function _(d){return d===96?(e.consume(d),i++,_):(e.exit("codeTextSequence"),l(d))}function l(d){return d===null?a(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),l):d===96?(n=e.enter("codeTextSequence"),r=0,g(d)):Be(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),l):(e.enter("codeTextData"),f(d))}function f(d){return d===null||d===32||d===96||Be(d)?(e.exit("codeTextData"),l(d)):(e.consume(d),f)}function g(d){return d===96?(e.consume(d),r++,g):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(n.type="codeTextData",f(d))}}class R8{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,a){const i=a??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,a,i){const r=a||0;this.setCursor(Math.trunc(t));const n=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return i&&u1(this.left,i),n.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),u1(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),u1(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const a=this.left.splice(t,Number.POSITIVE_INFINITY);u1(this.right,a.reverse())}else{const a=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);u1(this.left,a.reverse())}}}function u1(e,t){let a=0;if(t.length<1e4)e.push(...t);else for(;a<t.length;)e.push(...t.slice(a,a+1e4)),a+=1e4}function v3(e){const t={};let a=-1,i,r,n,s,_,l,f;const g=new R8(e);for(;++a<g.length;){for(;a in t;)a=t[a];if(i=g.get(a),a&&i[1].type==="chunkFlow"&&g.get(a-1)[1].type==="listItemPrefix"&&(l=i[1]._tokenizer.events,n=0,n<l.length&&l[n][1].type==="lineEndingBlank"&&(n+=2),n<l.length&&l[n][1].type==="content"))for(;++n<l.length&&l[n][1].type!=="content";)l[n][1].type==="chunkText"&&(l[n][1]._isInFirstContentOfListItem=!0,n++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,N8(g,a)),a=t[a],f=!0);else if(i[1]._container){for(n=a,r=void 0;n--;)if(s=g.get(n),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(r&&(g.get(r)[1].type="lineEndingBlank"),s[1].type="lineEnding",r=n);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;r&&(i[1].end={...g.get(r)[1].start},_=g.slice(r,a),_.unshift(i),g.splice(r,a-r+1,_))}}return ci(e,0,Number.POSITIVE_INFINITY,g.slice(0)),!f}function N8(e,t){const a=e.get(t)[1],i=e.get(t)[2];let r=t-1;const n=[];let s=a._tokenizer;s||(s=i.parser[a.contentType](a.start),a._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const _=s.events,l=[],f={};let g,d,F=-1,m=a,b=0,c=0;const D=[c];for(;m;){for(;e.get(++r)[1]!==m;);n.push(r),m._tokenizer||(g=i.sliceStream(m),m.next||g.push(null),d&&s.defineSkip(m.start),m._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(g),m._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),d=m,m=m.next}for(m=a;++F<_.length;)_[F][0]==="exit"&&_[F-1][0]==="enter"&&_[F][1].type===_[F-1][1].type&&_[F][1].start.line!==_[F][1].end.line&&(c=F+1,D.push(c),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(s.events=[],m?(m._tokenizer=void 0,m.previous=void 0):D.pop(),F=D.length;F--;){const y=_.slice(D[F],D[F+1]),v=n.pop();l.push([v,v+y.length-1]),e.splice(v,2,y)}for(l.reverse(),F=-1;++F<l.length;)f[b+l[F][0]]=b+l[F][1],b+=l[F][1]-l[F][0]-1;return f}const $8={resolve:z8,tokenize:W8},H8={partial:!0,tokenize:V8};function z8(e){return v3(e),e}function W8(e,t){let a;return i;function i(_){return e.enter("content"),a=e.enter("chunkContent",{contentType:"content"}),r(_)}function r(_){return _===null?n(_):Be(_)?e.check(H8,s,n)(_):(e.consume(_),r)}function n(_){return e.exit("chunkContent"),e.exit("content"),t(_)}function s(_){return e.consume(_),e.exit("chunkContent"),a.next=e.enter("chunkContent",{contentType:"content",previous:a}),a=a.next,r}}function V8(e,t,a){const i=this;return r;function r(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),rt(e,n,"linePrefix")}function n(s){if(s===null||Be(s))return a(s);const _=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&_&&_[1].type==="linePrefix"&&_[2].sliceSerialize(_[1],!0).length>=4?t(s):e.interrupt(i.parser.constructs.flow,a,t)(s)}}function j3(e,t,a,i,r,n,s,_,l){const f=l||Number.POSITIVE_INFINITY;let g=0;return d;function d(y){return y===60?(e.enter(i),e.enter(r),e.enter(n),e.consume(y),e.exit(n),F):y===null||y===32||y===41||n_(y)?a(y):(e.enter(i),e.enter(s),e.enter(_),e.enter("chunkString",{contentType:"string"}),c(y))}function F(y){return y===62?(e.enter(n),e.consume(y),e.exit(n),e.exit(r),e.exit(i),t):(e.enter(_),e.enter("chunkString",{contentType:"string"}),m(y))}function m(y){return y===62?(e.exit("chunkString"),e.exit(_),F(y)):y===null||y===60||Be(y)?a(y):(e.consume(y),y===92?b:m)}function b(y){return y===60||y===62||y===92?(e.consume(y),m):m(y)}function c(y){return!g&&(y===null||y===41||fa(y))?(e.exit("chunkString"),e.exit(_),e.exit(s),e.exit(i),t(y)):g<f&&y===40?(e.consume(y),g++,c):y===41?(e.consume(y),g--,c):y===null||y===32||y===40||n_(y)?a(y):(e.consume(y),y===92?D:c)}function D(y){return y===40||y===41||y===92?(e.consume(y),c):c(y)}}function B3(e,t,a,i,r,n){const s=this;let _=0,l;return f;function f(m){return e.enter(i),e.enter(r),e.consume(m),e.exit(r),e.enter(n),g}function g(m){return _>999||m===null||m===91||m===93&&!l||m===94&&!_&&"_hiddenFootnoteSupport"in s.parser.constructs?a(m):m===93?(e.exit(n),e.enter(r),e.consume(m),e.exit(r),e.exit(i),t):Be(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),g):(e.enter("chunkString",{contentType:"string"}),d(m))}function d(m){return m===null||m===91||m===93||Be(m)||_++>999?(e.exit("chunkString"),g(m)):(e.consume(m),l||(l=!Ze(m)),m===92?F:d)}function F(m){return m===91||m===92||m===93?(e.consume(m),_++,d):d(m)}}function q3(e,t,a,i,r,n){let s;return _;function _(F){return F===34||F===39||F===40?(e.enter(i),e.enter(r),e.consume(F),e.exit(r),s=F===40?41:F,l):a(F)}function l(F){return F===s?(e.enter(r),e.consume(F),e.exit(r),e.exit(i),t):(e.enter(n),f(F))}function f(F){return F===s?(e.exit(n),l(s)):F===null?a(F):Be(F)?(e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),rt(e,f,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),g(F))}function g(F){return F===s||F===null||Be(F)?(e.exit("chunkString"),f(F)):(e.consume(F),F===92?d:g)}function d(F){return F===s||F===92?(e.consume(F),g):g(F)}}function _1(e,t){let a;return i;function i(r){return Be(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),a=!0,i):Ze(r)?rt(e,i,a?"linePrefix":"lineSuffix")(r):t(r)}}const U8={name:"definition",tokenize:Z8},G8={partial:!0,tokenize:K8};function Z8(e,t,a){const i=this;let r;return n;function n(m){return e.enter("definition"),s(m)}function s(m){return B3.call(i,e,_,a,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function _(m){return r=s1(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),l):a(m)}function l(m){return fa(m)?_1(e,f)(m):f(m)}function f(m){return j3(e,g,a,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function g(m){return e.attempt(G8,d,d)(m)}function d(m){return Ze(m)?rt(e,F,"whitespace")(m):F(m)}function F(m){return m===null||Be(m)?(e.exit("definition"),i.parser.defined.push(r),t(m)):a(m)}}function K8(e,t,a){return i;function i(_){return fa(_)?_1(e,r)(_):a(_)}function r(_){return q3(e,n,a,"definitionTitle","definitionTitleMarker","definitionTitleString")(_)}function n(_){return Ze(_)?rt(e,s,"whitespace")(_):s(_)}function s(_){return _===null||Be(_)?t(_):a(_)}}const Y8={name:"hardBreakEscape",tokenize:J8};function J8(e,t,a){return i;function i(n){return e.enter("hardBreakEscape"),e.consume(n),r}function r(n){return Be(n)?(e.exit("hardBreakEscape"),t(n)):a(n)}}const X8={name:"headingAtx",resolve:Q8,tokenize:eb};function Q8(e,t){let a=e.length-2,i=3,r,n;return e[i][1].type==="whitespace"&&(i+=2),a-2>i&&e[a][1].type==="whitespace"&&(a-=2),e[a][1].type==="atxHeadingSequence"&&(i===a-1||a-4>i&&e[a-2][1].type==="whitespace")&&(a-=i+1===a?2:4),a>i&&(r={type:"atxHeadingText",start:e[i][1].start,end:e[a][1].end},n={type:"chunkText",start:e[i][1].start,end:e[a][1].end,contentType:"text"},ci(e,i,a-i+1,[["enter",r,t],["enter",n,t],["exit",n,t],["exit",r,t]])),e}function eb(e,t,a){let i=0;return r;function r(g){return e.enter("atxHeading"),n(g)}function n(g){return e.enter("atxHeadingSequence"),s(g)}function s(g){return g===35&&i++<6?(e.consume(g),s):g===null||fa(g)?(e.exit("atxHeadingSequence"),_(g)):a(g)}function _(g){return g===35?(e.enter("atxHeadingSequence"),l(g)):g===null||Be(g)?(e.exit("atxHeading"),t(g)):Ze(g)?rt(e,_,"whitespace")(g):(e.enter("atxHeadingText"),f(g))}function l(g){return g===35?(e.consume(g),l):(e.exit("atxHeadingSequence"),_(g))}function f(g){return g===null||g===35||fa(g)?(e.exit("atxHeadingText"),_(g)):(e.consume(g),f)}}const tb=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],S3=["pre","script","style","textarea"],ab={concrete:!0,name:"htmlFlow",resolveTo:nb,tokenize:ob},ib={partial:!0,tokenize:ub},rb={partial:!0,tokenize:sb};function nb(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function ob(e,t,a){const i=this;let r,n,s,_,l;return f;function f(p){return g(p)}function g(p){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(p),d}function d(p){return p===33?(e.consume(p),F):p===47?(e.consume(p),n=!0,c):p===63?(e.consume(p),r=3,i.interrupt?t:h):pi(p)?(e.consume(p),s=String.fromCharCode(p),D):a(p)}function F(p){return p===45?(e.consume(p),r=2,m):p===91?(e.consume(p),r=5,_=0,b):pi(p)?(e.consume(p),r=4,i.interrupt?t:h):a(p)}function m(p){return p===45?(e.consume(p),i.interrupt?t:h):a(p)}function b(p){const T="CDATA[";return p===T.charCodeAt(_++)?(e.consume(p),_===T.length?i.interrupt?t:P:b):a(p)}function c(p){return pi(p)?(e.consume(p),s=String.fromCharCode(p),D):a(p)}function D(p){if(p===null||p===47||p===62||fa(p)){const T=p===47,G=s.toLowerCase();return!T&&!n&&S3.includes(G)?(r=1,i.interrupt?t(p):P(p)):tb.includes(s.toLowerCase())?(r=6,T?(e.consume(p),y):i.interrupt?t(p):P(p)):(r=7,i.interrupt&&!i.parser.lazy[i.now().line]?a(p):n?v(p):B(p))}return p===45||va(p)?(e.consume(p),s+=String.fromCharCode(p),D):a(p)}function y(p){return p===62?(e.consume(p),i.interrupt?t:P):a(p)}function v(p){return Ze(p)?(e.consume(p),v):O(p)}function B(p){return p===47?(e.consume(p),O):p===58||p===95||pi(p)?(e.consume(p),q):Ze(p)?(e.consume(p),B):O(p)}function q(p){return p===45||p===46||p===58||p===95||va(p)?(e.consume(p),q):S(p)}function S(p){return p===61?(e.consume(p),x):Ze(p)?(e.consume(p),S):B(p)}function x(p){return p===null||p===60||p===61||p===62||p===96?a(p):p===34||p===39?(e.consume(p),l=p,I):Ze(p)?(e.consume(p),x):U(p)}function I(p){return p===l?(e.consume(p),l=null,Y):p===null||Be(p)?a(p):(e.consume(p),I)}function U(p){return p===null||p===34||p===39||p===47||p===60||p===61||p===62||p===96||fa(p)?S(p):(e.consume(p),U)}function Y(p){return p===47||p===62||Ze(p)?B(p):a(p)}function O(p){return p===62?(e.consume(p),L):a(p)}function L(p){return p===null||Be(p)?P(p):Ze(p)?(e.consume(p),L):a(p)}function P(p){return p===45&&r===2?(e.consume(p),u):p===60&&r===1?(e.consume(p),M):p===62&&r===4?(e.consume(p),C):p===63&&r===3?(e.consume(p),h):p===93&&r===5?(e.consume(p),R):Be(p)&&(r===6||r===7)?(e.exit("htmlFlowData"),e.check(ib,A,H)(p)):p===null||Be(p)?(e.exit("htmlFlowData"),H(p)):(e.consume(p),P)}function H(p){return e.check(rb,k,A)(p)}function k(p){return e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),w}function w(p){return p===null||Be(p)?H(p):(e.enter("htmlFlowData"),P(p))}function u(p){return p===45?(e.consume(p),h):P(p)}function M(p){return p===47?(e.consume(p),s="",E):P(p)}function E(p){if(p===62){const T=s.toLowerCase();return S3.includes(T)?(e.consume(p),C):P(p)}return pi(p)&&s.length<8?(e.consume(p),s+=String.fromCharCode(p),E):P(p)}function R(p){return p===93?(e.consume(p),h):P(p)}function h(p){return p===62?(e.consume(p),C):p===45&&r===2?(e.consume(p),h):P(p)}function C(p){return p===null||Be(p)?(e.exit("htmlFlowData"),A(p)):(e.consume(p),C)}function A(p){return e.exit("htmlFlow"),t(p)}}function sb(e,t,a){const i=this;return r;function r(s){return Be(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n):a(s)}function n(s){return i.parser.lazy[i.now().line]?a(s):t(s)}}function ub(e,t,a){return i;function i(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Xo,t,a)}}const _b={name:"htmlText",tokenize:lb};function lb(e,t,a){const i=this;let r,n,s;return _;function _(h){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(h),l}function l(h){return h===33?(e.consume(h),f):h===47?(e.consume(h),S):h===63?(e.consume(h),B):pi(h)?(e.consume(h),U):a(h)}function f(h){return h===45?(e.consume(h),g):h===91?(e.consume(h),n=0,b):pi(h)?(e.consume(h),v):a(h)}function g(h){return h===45?(e.consume(h),m):a(h)}function d(h){return h===null?a(h):h===45?(e.consume(h),F):Be(h)?(s=d,M(h)):(e.consume(h),d)}function F(h){return h===45?(e.consume(h),m):d(h)}function m(h){return h===62?u(h):h===45?F(h):d(h)}function b(h){const C="CDATA[";return h===C.charCodeAt(n++)?(e.consume(h),n===C.length?c:b):a(h)}function c(h){return h===null?a(h):h===93?(e.consume(h),D):Be(h)?(s=c,M(h)):(e.consume(h),c)}function D(h){return h===93?(e.consume(h),y):c(h)}function y(h){return h===62?u(h):h===93?(e.consume(h),y):c(h)}function v(h){return h===null||h===62?u(h):Be(h)?(s=v,M(h)):(e.consume(h),v)}function B(h){return h===null?a(h):h===63?(e.consume(h),q):Be(h)?(s=B,M(h)):(e.consume(h),B)}function q(h){return h===62?u(h):B(h)}function S(h){return pi(h)?(e.consume(h),x):a(h)}function x(h){return h===45||va(h)?(e.consume(h),x):I(h)}function I(h){return Be(h)?(s=I,M(h)):Ze(h)?(e.consume(h),I):u(h)}function U(h){return h===45||va(h)?(e.consume(h),U):h===47||h===62||fa(h)?Y(h):a(h)}function Y(h){return h===47?(e.consume(h),u):h===58||h===95||pi(h)?(e.consume(h),O):Be(h)?(s=Y,M(h)):Ze(h)?(e.consume(h),Y):u(h)}function O(h){return h===45||h===46||h===58||h===95||va(h)?(e.consume(h),O):L(h)}function L(h){return h===61?(e.consume(h),P):Be(h)?(s=L,M(h)):Ze(h)?(e.consume(h),L):Y(h)}function P(h){return h===null||h===60||h===61||h===62||h===96?a(h):h===34||h===39?(e.consume(h),r=h,H):Be(h)?(s=P,M(h)):Ze(h)?(e.consume(h),P):(e.consume(h),k)}function H(h){return h===r?(e.consume(h),r=void 0,w):h===null?a(h):Be(h)?(s=H,M(h)):(e.consume(h),H)}function k(h){return h===null||h===34||h===39||h===60||h===61||h===96?a(h):h===47||h===62||fa(h)?Y(h):(e.consume(h),k)}function w(h){return h===47||h===62||fa(h)?Y(h):a(h)}function u(h){return h===62?(e.consume(h),e.exit("htmlTextData"),e.exit("htmlText"),t):a(h)}function M(h){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),E}function E(h){return Ze(h)?rt(e,R,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(h):R(h)}function R(h){return e.enter("htmlTextData"),s(h)}}const l_={name:"labelEnd",resolveAll:Fb,resolveTo:hb,tokenize:mb},fb={tokenize:cb},gb={tokenize:pb},db={tokenize:bb};function Fb(e){let t=-1;const a=[];for(;++t<e.length;){const i=e[t][1];if(a.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const r=i.type==="labelImage"?4:2;i.type="data",t+=r}}return e.length!==a.length&&ci(e,0,e.length,a),e}function hb(e,t){let a=e.length,i=0,r,n,s,_;for(;a--;)if(r=e[a][1],n){if(r.type==="link"||r.type==="labelLink"&&r._inactive)break;e[a][0]==="enter"&&r.type==="labelLink"&&(r._inactive=!0)}else if(s){if(e[a][0]==="enter"&&(r.type==="labelImage"||r.type==="labelLink")&&!r._balanced&&(n=a,r.type!=="labelLink")){i=2;break}}else r.type==="labelEnd"&&(s=a);const l={type:e[n][1].type==="labelLink"?"link":"image",start:{...e[n][1].start},end:{...e[e.length-1][1].end}},f={type:"label",start:{...e[n][1].start},end:{...e[s][1].end}},g={type:"labelText",start:{...e[n+i+2][1].end},end:{...e[s-2][1].start}};return _=[["enter",l,t],["enter",f,t]],_=Yt(_,e.slice(n+1,n+i+3)),_=Yt(_,[["enter",g,t]]),_=Yt(_,s_(t.parser.constructs.insideSpan.null,e.slice(n+i+4,s-3),t)),_=Yt(_,[["exit",g,t],e[s-2],e[s-1],["exit",f,t]]),_=Yt(_,e.slice(s+1)),_=Yt(_,[["exit",l,t]]),ci(e,n,e.length,_),e}function mb(e,t,a){const i=this;let r=i.events.length,n,s;for(;r--;)if((i.events[r][1].type==="labelImage"||i.events[r][1].type==="labelLink")&&!i.events[r][1]._balanced){n=i.events[r][1];break}return _;function _(F){return n?n._inactive?d(F):(s=i.parser.defined.includes(s1(i.sliceSerialize({start:n.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(F),e.exit("labelMarker"),e.exit("labelEnd"),l):a(F)}function l(F){return F===40?e.attempt(fb,g,s?g:d)(F):F===91?e.attempt(gb,g,s?f:d)(F):s?g(F):d(F)}function f(F){return e.attempt(db,g,d)(F)}function g(F){return t(F)}function d(F){return n._balanced=!0,a(F)}}function cb(e,t,a){return i;function i(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),r}function r(d){return fa(d)?_1(e,n)(d):n(d)}function n(d){return d===41?g(d):j3(e,s,_,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function s(d){return fa(d)?_1(e,l)(d):g(d)}function _(d){return a(d)}function l(d){return d===34||d===39||d===40?q3(e,f,a,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):g(d)}function f(d){return fa(d)?_1(e,g)(d):g(d)}function g(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):a(d)}}function pb(e,t,a){const i=this;return r;function r(_){return B3.call(i,e,n,s,"reference","referenceMarker","referenceString")(_)}function n(_){return i.parser.defined.includes(s1(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(_):a(_)}function s(_){return a(_)}}function bb(e,t,a){return i;function i(n){return e.enter("reference"),e.enter("referenceMarker"),e.consume(n),e.exit("referenceMarker"),r}function r(n){return n===93?(e.enter("referenceMarker"),e.consume(n),e.exit("referenceMarker"),e.exit("reference"),t):a(n)}}const kb={name:"labelStartImage",resolveAll:l_.resolveAll,tokenize:yb};function yb(e,t,a){const i=this;return r;function r(_){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(_),e.exit("labelImageMarker"),n}function n(_){return _===91?(e.enter("labelMarker"),e.consume(_),e.exit("labelMarker"),e.exit("labelImage"),s):a(_)}function s(_){return _===94&&"_hiddenFootnoteSupport"in i.parser.constructs?a(_):t(_)}}const Db={name:"labelStartLink",resolveAll:l_.resolveAll,tokenize:Cb};function Cb(e,t,a){const i=this;return r;function r(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),n}function n(s){return s===94&&"_hiddenFootnoteSupport"in i.parser.constructs?a(s):t(s)}}const f_={name:"lineEnding",tokenize:wb};function wb(e,t){return a;function a(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),rt(e,t,"linePrefix")}}const Qo={name:"thematicBreak",tokenize:Eb};function Eb(e,t,a){let i=0,r;return n;function n(f){return e.enter("thematicBreak"),s(f)}function s(f){return r=f,_(f)}function _(f){return f===r?(e.enter("thematicBreakSequence"),l(f)):i>=3&&(f===null||Be(f))?(e.exit("thematicBreak"),t(f)):a(f)}function l(f){return f===r?(e.consume(f),i++,l):(e.exit("thematicBreakSequence"),Ze(f)?rt(e,_,"whitespace")(f):_(f))}}const ga={continuation:{tokenize:Bb},exit:Sb,name:"list",tokenize:jb},xb={partial:!0,tokenize:Mb},vb={partial:!0,tokenize:qb};function jb(e,t,a){const i=this,r=i.events[i.events.length-1];let n=r&&r[1].type==="linePrefix"?r[2].sliceSerialize(r[1],!0).length:0,s=0;return _;function _(m){const b=i.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!i.containerState.marker||m===i.containerState.marker:o_(m)){if(i.containerState.type||(i.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),m===42||m===45?e.check(Qo,a,f)(m):f(m);if(!i.interrupt||m===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(m)}return a(m)}function l(m){return o_(m)&&++s<10?(e.consume(m),l):(!i.interrupt||s<2)&&(i.containerState.marker?m===i.containerState.marker:m===41||m===46)?(e.exit("listItemValue"),f(m)):a(m)}function f(m){return e.enter("listItemMarker"),e.consume(m),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||m,e.check(Xo,i.interrupt?a:g,e.attempt(xb,F,d))}function g(m){return i.containerState.initialBlankLine=!0,n++,F(m)}function d(m){return Ze(m)?(e.enter("listItemPrefixWhitespace"),e.consume(m),e.exit("listItemPrefixWhitespace"),F):a(m)}function F(m){return i.containerState.size=n+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(m)}}function Bb(e,t,a){const i=this;return i.containerState._closeFlow=void 0,e.check(Xo,r,n);function r(_){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,rt(e,t,"listItemIndent",i.containerState.size+1)(_)}function n(_){return i.containerState.furtherBlankLines||!Ze(_)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,s(_)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(vb,t,s)(_))}function s(_){return i.containerState._closeFlow=!0,i.interrupt=void 0,rt(e,e.attempt(ga,t,a),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(_)}}function qb(e,t,a){const i=this;return rt(e,r,"listItemIndent",i.containerState.size+1);function r(n){const s=i.events[i.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===i.containerState.size?t(n):a(n)}}function Sb(e){e.exit(this.containerState.type)}function Mb(e,t,a){const i=this;return rt(e,r,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function r(n){const s=i.events[i.events.length-1];return!Ze(n)&&s&&s[1].type==="listItemPrefixWhitespace"?t(n):a(n)}}const M3={name:"setextUnderline",resolveTo:Ab,tokenize:Lb};function Ab(e,t){let a=e.length,i,r,n;for(;a--;)if(e[a][0]==="enter"){if(e[a][1].type==="content"){i=a;break}e[a][1].type==="paragraph"&&(r=a)}else e[a][1].type==="content"&&e.splice(a,1),!n&&e[a][1].type==="definition"&&(n=a);const s={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",n?(e.splice(r,0,["enter",s,t]),e.splice(n+1,0,["exit",e[i][1],t]),e[i][1].end={...e[n][1].end}):e[i][1]=s,e.push(["exit",s,t]),e}function Lb(e,t,a){const i=this;let r;return n;function n(f){let g=i.events.length,d;for(;g--;)if(i.events[g][1].type!=="lineEnding"&&i.events[g][1].type!=="linePrefix"&&i.events[g][1].type!=="content"){d=i.events[g][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||d)?(e.enter("setextHeadingLine"),r=f,s(f)):a(f)}function s(f){return e.enter("setextHeadingLineSequence"),_(f)}function _(f){return f===r?(e.consume(f),_):(e.exit("setextHeadingLineSequence"),Ze(f)?rt(e,l,"lineSuffix")(f):l(f))}function l(f){return f===null||Be(f)?(e.exit("setextHeadingLine"),t(f)):a(f)}}const Ob={tokenize:Tb};function Tb(e){const t=this,a=e.attempt(Xo,i,e.attempt(this.parser.constructs.flowInitial,r,rt(e,e.attempt(this.parser.constructs.flow,r,e.attempt($8,r)),"linePrefix")));return a;function i(n){if(n===null){e.consume(n);return}return e.enter("lineEndingBlank"),e.consume(n),e.exit("lineEndingBlank"),t.currentConstruct=void 0,a}function r(n){if(n===null){e.consume(n);return}return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),t.currentConstruct=void 0,a}}const Pb={resolveAll:L3()},Ib=A3("string"),Rb=A3("text");function A3(e){return{resolveAll:L3(e==="text"?Nb:void 0),tokenize:t};function t(a){const i=this,r=this.parser.constructs[e],n=a.attempt(r,s,_);return s;function s(g){return f(g)?n(g):_(g)}function _(g){if(g===null){a.consume(g);return}return a.enter("data"),a.consume(g),l}function l(g){return f(g)?(a.exit("data"),n(g)):(a.consume(g),l)}function f(g){if(g===null)return!0;const d=r[g];let F=-1;if(d)for(;++F<d.length;){const m=d[F];if(!m.previous||m.previous.call(i,i.previous))return!0}return!1}}}function L3(e){return t;function t(a,i){let r=-1,n;for(;++r<=a.length;)n===void 0?a[r]&&a[r][1].type==="data"&&(n=r,r++):(!a[r]||a[r][1].type!=="data")&&(r!==n+2&&(a[n][1].end=a[r-1][1].end,a.splice(n+2,r-n-2),r=n+2),n=void 0);return e?e(a,i):a}}function Nb(e,t){let a=0;for(;++a<=e.length;)if((a===e.length||e[a][1].type==="lineEnding")&&e[a-1][1].type==="data"){const i=e[a-1][1],r=t.sliceStream(i);let n=r.length,s=-1,_=0,l;for(;n--;){const f=r[n];if(typeof f=="string"){for(s=f.length;f.charCodeAt(s-1)===32;)_++,s--;if(s)break;s=-1}else if(f===-2)l=!0,_++;else if(f!==-1){n++;break}}if(t._contentTypeTextTrailing&&a===e.length&&(_=0),_){const f={type:a===e.length||l||_<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:n?s:i.start._bufferIndex+s,_index:i.start._index+n,line:i.end.line,column:i.end.column-_,offset:i.end.offset-_},end:{...i.end}};i.end={...f.start},i.start.offset===i.end.offset?Object.assign(i,f):(e.splice(a,0,["enter",f,t],["exit",f,t]),a+=2)}a++}return e}const $b=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:U8},disable:{null:[]},document:{42:ga,43:ga,45:ga,48:ga,49:ga,50:ga,51:ga,52:ga,53:ga,54:ga,55:ga,56:ga,57:ga,62:D3},flow:{35:X8,42:Qo,45:[M3,Qo],60:ab,61:M3,95:Qo,96:x3,126:x3},flowInitial:{[-2]:__,[-1]:__,32:__},insideSpan:{null:[u_,Pb]},string:{38:w3,92:C3},text:{[-5]:f_,[-4]:f_,[-3]:f_,33:kb,38:w3,42:u_,60:[D8,_b],91:Db,92:[Y8,C3],93:l_,95:u_,96:O8}},Symbol.toStringTag,{value:"Module"}));function Hb(e,t,a){let i={_bufferIndex:-1,_index:0,line:a&&a.line||1,column:a&&a.column||1,offset:a&&a.offset||0};const r={},n=[];let s=[],_=[];const l={attempt:I(S),check:I(x),consume:v,enter:B,exit:q,interrupt:I(x,{interrupt:!0})},f={code:null,containerState:{},defineSkip:c,events:[],now:b,parser:e,previous:null,sliceSerialize:F,sliceStream:m,write:d};let g=t.tokenize.call(f,l);return t.resolveAll&&n.push(t),f;function d(L){return s=Yt(s,L),D(),s[s.length-1]!==null?[]:(U(t,0),f.events=s_(n,f.events,f),f.events)}function F(L,P){return Wb(m(L),P)}function m(L){return zb(s,L)}function b(){const{_bufferIndex:L,_index:P,line:H,column:k,offset:w}=i;return{_bufferIndex:L,_index:P,line:H,column:k,offset:w}}function c(L){r[L.line]=L.column,O()}function D(){let L;for(;i._index<s.length;){const P=s[i._index];if(typeof P=="string")for(L=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===L&&i._bufferIndex<P.length;)y(P.charCodeAt(i._bufferIndex));else y(P)}}function y(L){g=g(L)}function v(L){Be(L)?(i.line++,i.column=1,i.offset+=L===-3?2:1,O()):L!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===s[i._index].length&&(i._bufferIndex=-1,i._index++)),f.previous=L}function B(L,P){const H=P||{};return H.type=L,H.start=b(),f.events.push(["enter",H,f]),_.push(H),H}function q(L){const P=_.pop();return P.end=b(),f.events.push(["exit",P,f]),P}function S(L,P){U(L,P.from)}function x(L,P){P.restore()}function I(L,P){return H;function H(k,w,u){let M,E,R,h;return Array.isArray(k)?A(k):"tokenize"in k?A([k]):C(k);function C(W){return Z;function Z(Q){const X=Q!==null&&W[Q],ee=Q!==null&&W.null,le=[...Array.isArray(X)?X:X?[X]:[],...Array.isArray(ee)?ee:ee?[ee]:[]];return A(le)(Q)}}function A(W){return M=W,E=0,W.length===0?u:p(W[E])}function p(W){return Z;function Z(Q){return h=Y(),R=W,W.partial||(f.currentConstruct=W),W.name&&f.parser.constructs.disable.null.includes(W.name)?G():W.tokenize.call(P?Object.assign(Object.create(f),P):f,l,T,G)(Q)}}function T(W){return L(R,h),w}function G(W){return h.restore(),++E<M.length?p(M[E]):u}}}function U(L,P){L.resolveAll&&!n.includes(L)&&n.push(L),L.resolve&&ci(f.events,P,f.events.length-P,L.resolve(f.events.slice(P),f)),L.resolveTo&&(f.events=L.resolveTo(f.events,f))}function Y(){const L=b(),P=f.previous,H=f.currentConstruct,k=f.events.length,w=Array.from(_);return{from:k,restore:u};function u(){i=L,f.previous=P,f.currentConstruct=H,f.events.length=k,_=w,O()}}function O(){i.line in r&&i.column<2&&(i.column=r[i.line],i.offset+=r[i.line]-1)}}function zb(e,t){const a=t.start._index,i=t.start._bufferIndex,r=t.end._index,n=t.end._bufferIndex;let s;if(a===r)s=[e[a].slice(i,n)];else{if(s=e.slice(a,r),i>-1){const _=s[0];typeof _=="string"?s[0]=_.slice(i):s.shift()}n>0&&s.push(e[r].slice(0,n))}return s}function Wb(e,t){let a=-1;const i=[];let r;for(;++a<e.length;){const n=e[a];let s;if(typeof n=="string")s=n;else switch(n){case-5:{s="\r";break}case-4:{s=`
92
92
  `;break}case-3:{s=`\r
93
93
  `;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&r)continue;s=" ";break}default:s=String.fromCharCode(n)}r=n===-2,i.push(s)}return i.join("")}function Vb(e){const i={constructs:e8([$b,...(e||{}).extensions||[]]),content:r(h8),defined:[],document:r(c8),flow:r(Ob),lazy:{},string:r(Ib),text:r(Rb)};return i;function r(n){return s;function s(_){return Hb(i,n,_)}}}function Ub(e){for(;!v3(e););return e}const O3=/[\0\t\n\r]/g;function Gb(){let e=1,t="",a=!0,i;return r;function r(n,s,_){const l=[];let f,g,d,F,m;for(n=t+(typeof n=="string"?n.toString():new TextDecoder(s||void 0).decode(n)),d=0,t="",a&&(n.charCodeAt(0)===65279&&d++,a=void 0);d<n.length;){if(O3.lastIndex=d,f=O3.exec(n),F=f&&f.index!==void 0?f.index:n.length,m=n.charCodeAt(F),!f){t=n.slice(d);break}if(m===10&&d===F&&i)l.push(-3),i=void 0;else switch(i&&(l.push(-5),i=void 0),d<F&&(l.push(n.slice(d,F)),e+=F-d),m){case 0:{l.push(65533),e++;break}case 9:{for(g=Math.ceil(e/4)*4,l.push(-2);e++<g;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:i=!0,e=1}d=F+1}return _&&(i&&l.push(-5),t&&l.push(t),l.push(null)),l}}function T3(e,t,a){return typeof t!="string"&&(a=t,t=void 0),F8(a)(Ub(Vb(a).document().write(Gb()(e,t,!0))))}function Zb({message:e}){var n;const t=e.parts.filter(s=>s.type==="text").map(s=>s.text).join(""),a=$.useRef(null),i=$.useRef(null),r=[];return $.useEffect(()=>{if(i.current&&a.current){const s=i.current.clientHeight;a.current.style.height=`${s}px`}},[t]),t&&r.push(o.jsx("div",{ref:a,className:"streaming-text-resizing-container",children:o.jsx("div",{ref:i,children:o.jsxs(Y0,{children:[o.jsxs(pt,{gap:"16px",alignItems:"center",children:[o.jsx(Zt,{icon:"teams"}),o.jsx(yr,{bold:!0,size:"small",children:"assistant"}),o.jsx(su,{size:"extraSmall",children:(n=e.timestamp)==null?void 0:n.toLocaleString()})]}),o.jsx(Dr,{}),o.jsx("div",{className:"markdown",dangerouslySetInnerHTML:{__html:T3(t)}})]})})},"text")),r.length===0?null:o.jsx(o.Fragment,{children:r})}function Kb({message:e,showDebugInfo:t=!1}){const[a,i]=$.useState(!1),r=e.parts.filter(s=>s.type==="toolCall"),n=[];return r.length>0&&n.push(o.jsx("div",{children:r.map(s=>{const _=o.jsxs(pt,{gap:"8px",alignItems:"center",children:[e.isPending?o.jsx(Zt,{icon:"loading"}):null,o.jsx(pf,{icon:"info",size:"large",text:e.isPending?"Fetching data...":"Fetched data",variant:"outline",onClick:Qr(i,!a)})]});return o.jsx("div",{title:`Tool call: ${s.toolName}`,style:{display:"inline-block"},children:t?o.jsx(Hn,{parent:_,isOpen:a,onSetOpen:i,popoverComponent:o.jsx("textarea",{value:JSON.stringify(s,null,2),readOnly:!0,style:{width:"300px",height:"100px",resize:"none"}})}):_},s.toolName)})},"tools")),n.length===0?null:o.jsx(Y0,{children:o.jsx(pt,{gap:"16px",justifyContent:"flex-end",children:n})})}function Yb({message:e}){var i;const t=e.parts.filter(r=>r.type==="text").map(r=>r.text).join(""),a=[];return t&&a.push(o.jsxs($n,{noShadow:!0,withBorder:!0,children:[o.jsxs(pt,{gap:"16px",alignItems:"center",children:[o.jsx(Zt,{icon:"feedback"}),o.jsx(yr,{bold:!0,size:"small",children:"you"}),o.jsx(su,{size:"extraSmall",children:(i=e.timestamp)==null?void 0:i.toLocaleString()})]}),o.jsx(Dr,{}),o.jsx("div",{className:"markdown",dangerouslySetInnerHTML:{__html:T3(t)}})]},"text")),a.length===0?null:o.jsx(o.Fragment,{children:a})}const Jb='This is a test! Give me a "Hello world! From <your model>". Then, use your tool calls to tell me about myself. Be comprehensive in your answer. Finally, tell me how long I have been working at this company! Start from 12pm on my start day.',Xb={small:"160px",default:"160px",large:"200px",full:"240px"},Qb={small:"480px",default:"720px",large:"960px",full:"100%"};function ek({tools:e,enableDebug:t,onClose:a}){var H;const{error:i}=b9(),[r,n]=$.useState(!1),[s,_]=$.useState(Jb),l=$.useRef(null),f=$.useRef(null),g=$.useCallback(()=>{setTimeout(()=>{f.current&&(f.current.scrollTop=f.current.scrollHeight)},10)},[]),[d,F]=$.useState("default"),[m,b]=$.useState(!0),{messages:c,sendUserMessage:D,isLoading:y,debugInfo:v,setMessages:B}=G7({onBeforeLlmCall:g,onAfterLlmCall:Mh(Qr(_,""),g,(H=l.current)==null?void 0:H.focus),onError:k=>i(k.message),onChunkAdded:g,tools:e}),[q,S]=$.useState("messages");$.useEffect(()=>{if(l.current){const k=w=>{w.ctrlKey&&w.key==="Enter"&&(w.preventDefault(),D(s))};return l.current.addEventListener("keydown",k),()=>{var w;(w=l.current)==null||w.removeEventListener("keydown",k)}}},[s,D]);const x=s.trim().length>5,I=()=>{a(),n(!1),F("default"),B([])},U=()=>{F(k=>{switch(k){case"small":return"default";case"default":return"large";case"large":return"full";case"full":return"small"}})},Y=()=>{n(!r),S("messages")},O=()=>{B([])},L=()=>{b(k=>!k)},P=()=>{D(s),_("")};return o.jsxs(pt,{direction:"column",gap:"24px",className:Kt["ai-assistant-popup-container"],style:{width:Qb[d]},children:[o.jsx("span",{"data-testid":"ai-assistant-size-data","data-chat-size":d,style:{display:"none"}}),o.jsx("style",{type:"text/css",children:`