dorkos 0.126.2 → 0.126.3

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 (304) hide show
  1. package/dist/bin/cli.js +133 -38
  2. package/dist/browser/native/package-manifest.json +1 -1
  3. package/dist/browser/source-manifest.json +1 -1
  4. package/dist/client/assets/{AboutPage-BQ66xWcJ.js → AboutPage-ycWTfXI8.js} +1 -1
  5. package/dist/client/assets/{ActivityErrorState-CPbfgXjw.js → ActivityErrorState-DBecAo4-.js} +1 -1
  6. package/dist/client/assets/{ActivityPage-CesljfZn.js → ActivityPage-CGuIeDGm.js} +1 -1
  7. package/dist/client/assets/{ActivityRow-DzhwE0ht.js → ActivityRow-BRiUvjHA.js} +1 -1
  8. package/dist/client/assets/{AdapterIcon-BXJkyF5g.js → AdapterIcon-z6z9LKwd.js} +1 -1
  9. package/dist/client/assets/{AdapterSetupWizard-CwKYl1vG.js → AdapterSetupWizard-Cp56Zx24.js} +1 -1
  10. package/dist/client/assets/{AgentOptionRow-0VdNzXCF.js → AgentOptionRow-BLuSwpNh.js} +1 -1
  11. package/dist/client/assets/{AgentPicker-Ldh64iOA.js → AgentPicker-DazquIgR.js} +1 -1
  12. package/dist/client/assets/{AgentRequestCard-CmAlDGTr.js → AgentRequestCard-BoRmxLKy.js} +1 -1
  13. package/dist/client/assets/{AppearancePage-DmsZPHst.js → AppearancePage-BMiVpe48.js} +1 -1
  14. package/dist/client/assets/{ApplyToOverridesDialog-Ct1W283T.js → ApplyToOverridesDialog-BHIrnfPf.js} +1 -1
  15. package/dist/client/assets/{AttentionSignalRow-B7gezgzA.js → AttentionSignalRow-CjN8lCWI.js} +1 -1
  16. package/dist/client/assets/{BaseTanStackRouterDevtoolsPanel-B-iktbLX-Nqvr65_g.js → BaseTanStackRouterDevtoolsPanel-B-iktbLX-BMBnO0fv.js} +1 -1
  17. package/dist/client/assets/{BindingDialog-CpBZoSZU.js → BindingDialog-Bw55sMTh.js} +1 -1
  18. package/dist/client/assets/{BlintzCanvas-BCtfZPrs.js → BlintzCanvas-Dd3bC9vw.js} +3 -3
  19. package/dist/client/assets/{CanvasCsvContent-DYksqzaf.js → CanvasCsvContent-B2S75f6B.js} +1 -1
  20. package/dist/client/assets/{CanvasFileContent-CqEqSxuJ.js → CanvasFileContent-CVSfg4MO.js} +2 -2
  21. package/dist/client/assets/{CanvasModel3dContent-vR6ze4IR.js → CanvasModel3dContent-CNmJsBTS.js} +2 -2
  22. package/dist/client/assets/{ChannelComposer-BVACOdph.js → ChannelComposer-7KpffyFv.js} +3 -3
  23. package/dist/client/assets/{ChatAppsOff-VsPP2Hye.js → ChatAppsOff-D7anOG3n.js} +1 -1
  24. package/dist/client/assets/{CodeMirrorDiff-CmKjH03N.js → CodeMirrorDiff-CfOmRCky.js} +1 -1
  25. package/dist/client/assets/{CodeMirrorEditor-BtNgazuc.js → CodeMirrorEditor-Cyz227_1.js} +1 -1
  26. package/dist/client/assets/{CommitmentList-D9I-CmNy.js → CommitmentList-DKo1Fb1A.js} +1 -1
  27. package/dist/client/assets/{CommitmentsPage-BORMYDZb.js → CommitmentsPage-DIcEZ2ka.js} +1 -1
  28. package/dist/client/assets/{ComputerResourceView-BZ9BxgOi.js → ComputerResourceView-Ck7rJ-SP.js} +1 -1
  29. package/dist/client/assets/{ComputerViewer-CbuU9tXK.js → ComputerViewer-Dw_VpNjD.js} +1 -1
  30. package/dist/client/assets/{ConnectionAccessLists-uE-Fzp6Y.js → ConnectionAccessLists-CETLVH7o.js} +1 -1
  31. package/dist/client/assets/{ConnectionsPage-D7QTHeQQ.js → ConnectionsPage-ZVWDffcl.js} +1 -1
  32. package/dist/client/assets/{ConventionPage-PS2WWCyB.js → ConventionPage-DkJ91wrN.js} +1 -1
  33. package/dist/client/assets/{ExtensionPageRoute-Cn7bYxGB.js → ExtensionPageRoute-FbJo1Qc0.js} +1 -1
  34. package/dist/client/assets/{FloatingTanStackRouterDevtools-CqogiFob-DKGNSXVz.js → FloatingTanStackRouterDevtools-CqogiFob-DCLR3iKw.js} +1 -1
  35. package/dist/client/assets/{ForwardConsentHost-CLIHtWwq.js → ForwardConsentHost-Buy5XlH7.js} +1 -1
  36. package/dist/client/assets/HandlePage-CByGC3B8.js +1 -0
  37. package/dist/client/assets/{HeartbeatPage-7MTowke-.js → HeartbeatPage-GXBEcZoJ.js} +1 -1
  38. package/dist/client/assets/{KeyEntry-Cf7D0Oo6.js → KeyEntry-g2VQ33KW.js} +1 -1
  39. package/dist/client/assets/{LexicalField-DqvzeMr3.js → LexicalField-CLd77PuB.js} +1 -1
  40. package/dist/client/assets/{ManagesPage-DxR4zWMf.js → ManagesPage-qCwzJ4Cx.js} +1 -1
  41. package/dist/client/assets/{Marketplace-V_92jKOn.js → Marketplace-DdkdIVPQ.js} +1 -1
  42. package/dist/client/assets/{MarketplaceSourcesView-CjCVMP_d.js → MarketplaceSourcesView-D44G21ff.js} +1 -1
  43. package/dist/client/assets/{McpAppFrame-4JDJsrmg.js → McpAppFrame-DVNWJHrn.js} +1 -1
  44. package/dist/client/assets/{McpSigninBody-DG1XX7XT.js → McpSigninBody-BO0OkvOw.js} +1 -1
  45. package/dist/client/assets/{Model3dViewer-DedBFHsl.js → Model3dViewer-Cvcyx2yv.js} +1 -1
  46. package/dist/client/assets/NamePage-5VUtswMH.js +1 -0
  47. package/dist/client/assets/{NewDirectMessageMenu-C8t7x-sB.js → NewDirectMessageMenu-C_hXtliM.js} +1 -1
  48. package/dist/client/assets/{NotificationsPage-DwGFE3F6.js → NotificationsPage-DP4HAVMA.js} +1 -1
  49. package/dist/client/assets/{OpenMeshSwitch-DPmTA9eg.js → OpenMeshSwitch-0Mkl8abo.js} +1 -1
  50. package/dist/client/assets/{OperatorIdentityForm-Cu0h8Xqy.js → OperatorIdentityForm-BRftJqRq.js} +1 -1
  51. package/dist/client/assets/{PermissionHistory-zD6ksrl2.js → PermissionHistory-Czl5PWN3.js} +1 -1
  52. package/dist/client/assets/{PermissionsPage-Durcnmie.js → PermissionsPage-DAsbrl6Q.js} +1 -1
  53. package/dist/client/assets/{PersonalityPopover-DuRjJuLj.js → PersonalityPopover-liTJ0Lns.js} +1 -1
  54. package/dist/client/assets/PhotoPage-DDcbiGjb.js +1 -0
  55. package/dist/client/assets/{PreviewRefusedNotice-hlYrFDQM.js → PreviewRefusedNotice-DcD1EY2c.js} +1 -1
  56. package/dist/client/assets/{ProfileFields-x-x8vgNo.js → ProfileFields-Bi_AfHOE.js} +1 -1
  57. package/dist/client/assets/{ProfilePanelContainer-8WxopRj2.js → ProfilePanelContainer-BIbOulLu.js} +1 -1
  58. package/dist/client/assets/{ProfileRolePicker-BfciiNpr.js → ProfileRolePicker-BadkFi4V.js} +1 -1
  59. package/dist/client/assets/{PromptSuggestionChips-D34Zeaq_.js → PromptSuggestionChips-C653MlaU.js} +1 -1
  60. package/dist/client/assets/{ReportsToPopover-BhqA5qXi.js → ReportsToPopover-dIbt6aes.js} +1 -1
  61. package/dist/client/assets/{RoomSurface-BlMNuQsT.js → RoomSurface-CssMcozl.js} +1 -1
  62. package/dist/client/assets/{RoomsPage-C52AOHIE.js → RoomsPage-CxwTRRNu.js} +1 -1
  63. package/dist/client/assets/{RunsOnPopover-DLhEKwXF.js → RunsOnPopover-lp8n4lgI.js} +1 -1
  64. package/dist/client/assets/{RuntimeConnectFlow-D3H5Fpkc.js → RuntimeConnectFlow-BAqkzthF.js} +1 -1
  65. package/dist/client/assets/{RuntimeSetupDialog-DPU4QIY9.js → RuntimeSetupDialog-E6f7Rd2W.js} +1 -1
  66. package/dist/client/assets/{SeenDevices-CDSHTsL7.js → SeenDevices-xdR3YQNr.js} +1 -1
  67. package/dist/client/assets/{SessionsPage-Crh3D3Jj.js → SessionsPage-BNZTufty.js} +1 -1
  68. package/dist/client/assets/{SettingsDialog-D0Oh-ku1.js → SettingsDialog-d7SQTDNy.js} +1 -1
  69. package/dist/client/assets/{SkillsPage-BPexZwnJ.js → SkillsPage-DiqUOZup.js} +1 -1
  70. package/dist/client/assets/{TaskDialogWrapper-D6RB8E59.js → TaskDialogWrapper-5gb-f-Uo.js} +1 -1
  71. package/dist/client/assets/{TasksEmptyState-Di3SbhJM.js → TasksEmptyState-g-CavcMv.js} +1 -1
  72. package/dist/client/assets/{TasksPage-CDLsY1Ww.js → TasksPage-BexV_pxB.js} +1 -1
  73. package/dist/client/assets/{TeamComputerEntry-B_q-oVSs.js → TeamComputerEntry-BFYqGL-G.js} +1 -1
  74. package/dist/client/assets/{ToolsPage-gvIVTnwf.js → ToolsPage-Dxt6qOdF.js} +1 -1
  75. package/dist/client/assets/{TopologyGraph-Bp8aL_qw.js → TopologyGraph-Cx_6gdbV.js} +1 -1
  76. package/dist/client/assets/{TourHost-Cg8EHvod.js → TourHost-DvAjpsug.js} +1 -1
  77. package/dist/client/assets/{UnlinkDialog-Ddd1Yxfk.js → UnlinkDialog-fgubvOUd.js} +1 -1
  78. package/dist/client/assets/{UnreadDivider-LL4_YtF0.js → UnreadDivider-BoLcTO_Z.js} +1 -1
  79. package/dist/client/assets/{WidgetErrorCard-BA3P7hNv.js → WidgetErrorCard-CgRMeAEO.js} +1 -1
  80. package/dist/client/assets/{WithheldExtensionsNotice-quqWNbus.js → WithheldExtensionsNotice-CFHBDyIh.js} +1 -1
  81. package/dist/client/assets/{WorkView-C_h8sclU.js → WorkView-5jzcnod5.js} +1 -1
  82. package/dist/client/assets/{_shell-D9q8zLfr.js → _shell-DFfXd1ys.js} +1 -1
  83. package/dist/client/assets/{_shell._home-CrTxBB3h.js → _shell._home-D2GJeGbi.js} +1 -1
  84. package/dist/client/assets/{_shell._home.activity-2M0BJkbQ.js → _shell._home.activity-DRXBBtAq.js} +1 -1
  85. package/dist/client/assets/{_shell._home.index-BTJhhEWN.js → _shell._home.index-CA_GnaUK.js} +1 -1
  86. package/dist/client/assets/{_shell._home.tasks-Dfrqv2nl.js → _shell._home.tasks-Cr4gak8T.js} +1 -1
  87. package/dist/client/assets/{_shell._home.workspaces-DPLQXDdH.js → _shell._home.workspaces-DbWciI1g.js} +1 -1
  88. package/dist/client/assets/{_shell.channels-CJqfUTZ1.js → _shell.channels-C31Txlqh.js} +1 -1
  89. package/dist/client/assets/{_shell.connections-Cpe1hru3.js → _shell.connections-gfevZyC-.js} +1 -1
  90. package/dist/client/assets/{_shell.feedback-requests-BeWCqScf.js → _shell.feedback-requests-CQc7aVrV.js} +1 -1
  91. package/dist/client/assets/_shell.marketplace-BepG1fJe.js +1 -0
  92. package/dist/client/assets/_shell.marketplace_.sources-BBQESbqU.js +1 -0
  93. package/dist/client/assets/_shell.session-DzeI9YIK.js +1 -0
  94. package/dist/client/assets/{_shell.team-EPvcS7RS.js → _shell.team-BlLU5BMC.js} +3 -3
  95. package/dist/client/assets/{_shell.threads-NJDzq9dv.js → _shell.threads-YmF9dQnZ.js} +1 -1
  96. package/dist/client/assets/_shell.x._extensionId-ByRocZjS.js +1 -0
  97. package/dist/client/assets/_shell.x._extensionId_._-ByRocZjS.js +1 -0
  98. package/dist/client/assets/{abnfDiagram-WEYOIA3C-DUHshdrR.js → abnfDiagram-WEYOIA3C-DLiXaMmC.js} +1 -1
  99. package/dist/client/assets/{access-copy-DHfPjN3G.js → access-copy-xWnaUps1.js} +1 -1
  100. package/dist/client/assets/{arc-sP6zNsGB.js → arc-AndXXvZc.js} +1 -1
  101. package/dist/client/assets/{architectureDiagram-ZHVYKT53-C8PTjsPx.js → architectureDiagram-ZHVYKT53-CM4tGveM.js} +1 -1
  102. package/dist/client/assets/{banner-CVrzHqOT.js → banner-BH1gXPTc.js} +1 -1
  103. package/dist/client/assets/{blockDiagram-RJAE7QA3-Cydde2fz.js → blockDiagram-RJAE7QA3-DenkdFXV.js} +1 -1
  104. package/dist/client/assets/{c4Diagram-XDPPPE54-DbM6KAK7.js → c4Diagram-XDPPPE54-DMAlFuoX.js} +1 -1
  105. package/dist/client/assets/{card-DA_Z-FYX.js → card-TbpEl6EH.js} +1 -1
  106. package/dist/client/assets/channel-5-dQamNX.js +1 -0
  107. package/dist/client/assets/{chunk-2E7WHVMD-CEbspaNh.js → chunk-2E7WHVMD-u0q5vCEc.js} +1 -1
  108. package/dist/client/assets/{chunk-2Q5K7J3B-DDP1SiE0.js → chunk-2Q5K7J3B-DBTggfjR.js} +1 -1
  109. package/dist/client/assets/{chunk-4EMNKR2T-BFjozJqd.js → chunk-4EMNKR2T-zu55wq-c.js} +1 -1
  110. package/dist/client/assets/{chunk-55XCU76K-0JSp6acZ.js → chunk-55XCU76K-XLIA3Qss.js} +1 -1
  111. package/dist/client/assets/{chunk-5VM5RSS4-DswTXnmp.js → chunk-5VM5RSS4-DmGjbtZg.js} +1 -1
  112. package/dist/client/assets/{chunk-JWPE2WC7-D0PYncYV.js → chunk-JWPE2WC7-ikMrk6md.js} +1 -1
  113. package/dist/client/assets/{chunk-VQ5W62QI-r5T-ZVBs.js → chunk-VQ5W62QI-cfwin8SC.js} +1 -1
  114. package/dist/client/assets/{chunk-XXDRQBXY-D8kkjktE.js → chunk-XXDRQBXY-Cn3e0QEQ.js} +1 -1
  115. package/dist/client/assets/{chunk-ZCHMQSOR-D6XtRzln.js → chunk-ZCHMQSOR-7RkBP94K.js} +2 -2
  116. package/dist/client/assets/{classDiagram-v2-4MYWR3UA-DUPDMGfm.js → classDiagram-v2-4MYWR3UA-CqVol7t8.js} +1 -1
  117. package/dist/client/assets/{command-BvXBgZfv.js → command-2pl_Cn7b.js} +1 -1
  118. package/dist/client/assets/{cose-bilkent-JH36ORCC-tiQpE-Q8.js → cose-bilkent-JH36ORCC-m0tmlDnx.js} +1 -1
  119. package/dist/client/assets/{cpu-mx7zDf7k.js → cpu-CdCfSlSR.js} +1 -1
  120. package/dist/client/assets/{cynefin-EF2NZ3EQ-BjAUxFfb.js → cynefin-EF2NZ3EQ-Cf7ajLou.js} +1 -1
  121. package/dist/client/assets/{cynefinDiagram-WF24UDRP-PmlyltXR.js → cynefinDiagram-WF24UDRP-Dl8GJr0l.js} +1 -1
  122. package/dist/client/assets/{dagre-NK4GIZVX-DDePjPkn.js → dagre-NK4GIZVX-2yAF6nW_.js} +1 -1
  123. package/dist/client/assets/{diagram-CBK3MWTC-D7N3T4Fx.js → diagram-CBK3MWTC-DaBb9JFm.js} +1 -1
  124. package/dist/client/assets/{diagram-I5XIIV2D-BfZHSbR2.js → diagram-I5XIIV2D-BMeCfhD1.js} +1 -1
  125. package/dist/client/assets/{diagram-ODIL2UCW-sXAa9bzN.js → diagram-ODIL2UCW-ClVKCieB.js} +1 -1
  126. package/dist/client/assets/{diagram-PFBEJUXE-Dfd_61WO.js → diagram-PFBEJUXE-DFIKk-tB.js} +1 -1
  127. package/dist/client/assets/{diagram-RJA3I4VV-BCzdEfnM.js → diagram-RJA3I4VV-DzC_xtYu.js} +1 -1
  128. package/dist/client/assets/{diagram-TYUNFSNR-BMqtz6sZ.js → diagram-TYUNFSNR-BroMVHm2.js} +1 -1
  129. package/dist/client/assets/{ebnfDiagram-V4P3TTPT-CyWj1615.js → ebnfDiagram-V4P3TTPT-GMsyIh86.js} +1 -1
  130. package/dist/client/assets/{elk-QONTBCTQ-BkQMBXse.js → elk-QONTBCTQ-DIpw6SW5.js} +1 -1
  131. package/dist/client/assets/{empty-state-Dv5iV4jb.js → empty-state-B7ufhAFk.js} +1 -1
  132. package/dist/client/assets/{erDiagram-KYQIGQAA-DiPsX7uU.js → erDiagram-KYQIGQAA-CsezeWpx.js} +1 -1
  133. package/dist/client/assets/{execution-config-Bej0Ot8e.js → execution-config-DRqIsff0.js} +1 -1
  134. package/dist/client/assets/{file-DXbyb23e.js → file-DHPgnMgj.js} +1 -1
  135. package/dist/client/assets/{file-exclamation-point-C8XqHyzY.js → file-exclamation-point-DtjBa2XX.js} +1 -1
  136. package/dist/client/assets/{file-text-CRTgqqkn.js → file-text-wmrSy3Io.js} +1 -1
  137. package/dist/client/assets/{find-latest-widget-fence-D1i7qNny.js → find-latest-widget-fence-Bv9D10ve.js} +1 -1
  138. package/dist/client/assets/{flowDiagram-IUGLLWBU-BSM44aJP.js → flowDiagram-IUGLLWBU-BGwNqglr.js} +1 -1
  139. package/dist/client/assets/{form-DYSiVEri.js → form-CA_eiUg-.js} +1 -1
  140. package/dist/client/assets/{format-cron-DYYwmo-o.js → format-cron-YPhIy57w.js} +1 -1
  141. package/dist/client/assets/{ganttDiagram-R7GPNTJY-BWCjYexX.js → ganttDiagram-R7GPNTJY-4IlzTCzA.js} +1 -1
  142. package/dist/client/assets/{git-branch-1zYKSuur.js → git-branch-BLIYLcM4.js} +1 -1
  143. package/dist/client/assets/{gitGraphDiagram-PDYL7XHY-ULC7Zunc.js → gitGraphDiagram-PDYL7XHY-HeaC8vlP.js} +1 -1
  144. package/dist/client/assets/{graph-BsZzo5TN.js → graph-Ch9lnHSS.js} +1 -1
  145. package/dist/client/assets/{heart-C4CSHUW7.js → heart-D4fTvM5q.js} +1 -1
  146. package/dist/client/assets/{highlighted-body-KPVGNVTW-CFECg7iB.js → highlighted-body-KPVGNVTW-KPma22SA.js} +1 -1
  147. package/dist/client/assets/{image-lightbox-M9t3Wulc.js → image-lightbox-DI18fB2Q.js} +1 -1
  148. package/dist/client/assets/{image-off-c01kxBAm.js → image-off-DRgXXpgv.js} +1 -1
  149. package/dist/client/assets/{index-BScgHCO_.js → index--2mMmier.js} +1 -1
  150. package/dist/client/assets/{index-DG13Cp5o.js → index-2J89pJxF.js} +1 -1
  151. package/dist/client/assets/{index-C1XazYWZ.js → index-3UGWygRZ.js} +1 -1
  152. package/dist/client/assets/{index-Dt7RONID.js → index-B-4XmK5Q.js} +1 -1
  153. package/dist/client/assets/index-B9X2-pzp.js +1 -0
  154. package/dist/client/assets/{index-Du4HX97h.js → index-BAd8jUzo.js} +2 -2
  155. package/dist/client/assets/{index-UJq1qaku.js → index-BMYGo6Ki.js} +1 -1
  156. package/dist/client/assets/{index-B3xeyV6n.js → index-BY0SKYuc.js} +1 -1
  157. package/dist/client/assets/{index-DIDUjTkq.js → index-B_56Srtt.js} +1 -1
  158. package/dist/client/assets/{index-uLbyd6YP.js → index-BmlBYrxT.js} +1 -1
  159. package/dist/client/assets/{index-Br35Gqfz.js → index-BtRM2yox.js} +1 -1
  160. package/dist/client/assets/{index-DyN65ufd.js → index-ButY6gKr.js} +1 -1
  161. package/dist/client/assets/{index-BYY8HEOz.js → index-C-X6jaVm.js} +1 -1
  162. package/dist/client/assets/{index-XEE1k4cl.js → index-C3IsCAxA.js} +1 -1
  163. package/dist/client/assets/{index-BTGRc0hC.js → index-COoO8dzi.js} +1 -1
  164. package/dist/client/assets/{index-BIVIHPoe.js → index-CRCfkwyN.js} +1 -1
  165. package/dist/client/assets/{index-BRH6C3LJ.js → index-CTTaeOCw.js} +1 -1
  166. package/dist/client/assets/index-CgpRBcA4.js +1 -0
  167. package/dist/client/assets/{index-DrENuQdJ.js → index-ClbMjgcZ.js} +1 -1
  168. package/dist/client/assets/{index-CnltS8ym.js → index-CucieFDK.js} +1 -1
  169. package/dist/client/assets/{index-DQTTC52E.js → index-D0cIffaH.js} +1 -1
  170. package/dist/client/assets/{index-B-7P1Q9s.js → index-D9w0FBQG.js} +1 -1
  171. package/dist/client/assets/{index-BqwCOIbF.js → index-DHZS9Lod.js} +1 -1
  172. package/dist/client/assets/{index-DsasLE1l.js → index-DSIdPh8G.js} +1 -1
  173. package/dist/client/assets/{index-CAAsqmfP.js → index-DTRAR0KK.js} +1 -1
  174. package/dist/client/assets/{index-LpaxG4VS.js → index-DbV3-jog.js} +1 -1
  175. package/dist/client/assets/{index-JG_0k1NX.js → index-Dbujw1c2.js} +1 -1
  176. package/dist/client/assets/{index-C3swXqWW.js → index-DpvGUFpV.js} +1 -1
  177. package/dist/client/assets/{index-CAjKQnAd.js → index-DuvW22xi.js} +1 -1
  178. package/dist/client/assets/{index-D847rJXW.js → index-Dy9bWvna.js} +1 -1
  179. package/dist/client/assets/{index-B_he44rF.js → index-EDXuyCOT.js} +1 -1
  180. package/dist/client/assets/{index-FwAvbbet.js → index-Ix2nCAz0.js} +1 -1
  181. package/dist/client/assets/{index-BSxkprTm.js → index-JoxvTUfo.js} +3 -3
  182. package/dist/client/assets/{index-YXyEu3Ia.js → index-QSo53dH-.js} +1 -1
  183. package/dist/client/assets/{index-DhkfALZp.js → index-bzM-k5lI.js} +1 -1
  184. package/dist/client/assets/{index-Ce3HZQem.js → index-jk2K24il.js} +1 -1
  185. package/dist/client/assets/{index-DzHj8lCz.js → index-mRMaqxu5.js} +9 -9
  186. package/dist/client/assets/{index-B6Scr7KJ.js → index-p3WivF1M.js} +226 -226
  187. package/dist/client/assets/{index-DrQqkQq_.js → index-qEI7Rsr1.js} +1 -1
  188. package/dist/client/assets/{index-DhoaVQXu.js → index-rPJ8b_DO.js} +1 -1
  189. package/dist/client/assets/{index-jLIoULQt.js → index-uG06zgQo.js} +1 -1
  190. package/dist/client/assets/{index-DhYnXLRT.js → index-uy36h8lC.js} +1 -1
  191. package/dist/client/assets/{index-BnXWm8Db.js → index-zvAbU6ah.js} +1 -1
  192. package/dist/client/assets/{index.esm-CZ68Qd2t.js → index.esm-CxXuMuQv.js} +1 -1
  193. package/dist/client/assets/{infoDiagram-MVDRKAX5-BCjhXqIT.js → infoDiagram-MVDRKAX5-g9EeD2xH.js} +1 -1
  194. package/dist/client/assets/{inline-code-BKPMIXZR.js → inline-code-14c1Gacs.js} +1 -1
  195. package/dist/client/assets/{ishikawaDiagram-HPEHV2GE-C9rsv2nh.js → ishikawaDiagram-HPEHV2GE-Zv5DrRnv.js} +1 -1
  196. package/dist/client/assets/{journeyDiagram-BOSHW7O7-BRYr1XL1.js → journeyDiagram-BOSHW7O7-COiWWTez.js} +1 -1
  197. package/dist/client/assets/{kanban-definition-FNSA4HC5-2ey8FXEn.js → kanban-definition-FNSA4HC5-DnQa8qXB.js} +1 -1
  198. package/dist/client/assets/{layers-DE3wjQuk.js → layers-D_NEJsnH.js} +1 -1
  199. package/dist/client/assets/{lightbulb-BXJIRUdm.js → lightbulb-EadQi_Lr.js} +1 -1
  200. package/dist/client/assets/{link-2-DzWm9OxA.js → link-2-DugR2HHU.js} +1 -1
  201. package/dist/client/assets/{list-runtime-types-BhkZkTrB.js → list-runtime-types-iJaKcim4.js} +1 -1
  202. package/dist/client/assets/{markdown-content-Bk9lCksw.js → markdown-content-BFHUHPgi.js} +1 -1
  203. package/dist/client/assets/{mention-pill-os_7QQu2.js → mention-pill-DXBno6EY.js} +1 -1
  204. package/dist/client/assets/{mermaid.core-BcRUBvZd.js → mermaid.core-C6ckWvkG.js} +4 -4
  205. package/dist/client/assets/{message-square-off-DuOiETNI.js → message-square-off-BH8wbm2a.js} +1 -1
  206. package/dist/client/assets/{mindmap-definition-6OY57UG3-DBhXkS2i.js → mindmap-definition-6OY57UG3-DV4PNLc-.js} +1 -1
  207. package/dist/client/assets/{more-details-Bt9nlPmS.js → more-details-DhdX4DGU.js} +1 -1
  208. package/dist/client/assets/{owner-notice-4ZSBxa2K.js → owner-notice-FMj3k7-f.js} +1 -1
  209. package/dist/client/assets/{package-BmOMrNwc.js → package-0mI7-RiJ.js} +1 -1
  210. package/dist/client/assets/{page-container-LomhzyuS.js → page-container-DRyYoDkA.js} +1 -1
  211. package/dist/client/assets/{pane-resize-handle-BOtzx5Q4.js → pane-resize-handle-OBc3uYxQ.js} +1 -1
  212. package/dist/client/assets/{paperclip-C1tkiT74.js → paperclip-BsTJpkyE.js} +1 -1
  213. package/dist/client/assets/{path-input-JHTlL97W.js → path-input-CFm1b1pk.js} +1 -1
  214. package/dist/client/assets/{pegDiagram-ECIUJNBX-B01fb3t0.js → pegDiagram-ECIUJNBX-Cboo0f6B.js} +1 -1
  215. package/dist/client/assets/{pieDiagram-GNMPY74T-BJ7JYrTk.js → pieDiagram-GNMPY74T-CiihSor1.js} +1 -1
  216. package/dist/client/assets/{plug-CsqfQsYq.js → plug-BdnJAo1j.js} +1 -1
  217. package/dist/client/assets/{primer-trigger-DLdK7lVr.js → primer-trigger-BV4xZfFz.js} +1 -1
  218. package/dist/client/assets/{profile-errors-CpvSy5wY.js → profile-errors-B08zStmk.js} +1 -1
  219. package/dist/client/assets/{progress-qB87L0zJ.js → progress-CpiQE0rv.js} +1 -1
  220. package/dist/client/assets/{quadrantDiagram-D57K4MC3-mJYGGmOV.js → quadrantDiagram-D57K4MC3-dF0oKeMn.js} +1 -1
  221. package/dist/client/assets/{query-error-state-MyJ1ivia.js → query-error-state-B0RUeb10.js} +1 -1
  222. package/dist/client/assets/{radio-DJV7l0fv.js → radio-CAGXbJK_.js} +1 -1
  223. package/dist/client/assets/{railroadDiagram-Y72NRBL7-BlXWwQe2.js → railroadDiagram-Y72NRBL7-ClkFJVq1.js} +1 -1
  224. package/dist/client/assets/{registry-tJrGs7kB.js → registry-Cog_2xvt.js} +4 -4
  225. package/dist/client/assets/registry-DLWJMbtY.js +1 -0
  226. package/dist/client/assets/{relay-trace-schemas-TH0-GYCB.js → relay-trace-schemas-CNDSmhcJ.js} +1 -1
  227. package/dist/client/assets/{repeat-CBnopqBr.js → repeat-Dag80z5v.js} +1 -1
  228. package/dist/client/assets/{requirementDiagram-EQYSW5RA-Dqr1Y74x.js → requirementDiagram-EQYSW5RA-Cey6FmFd.js} +1 -1
  229. package/dist/client/assets/{room-files-source-BFo0FEUP.js → room-files-source-BKUFMU_b.js} +1 -1
  230. package/dist/client/assets/{rotate-ccw-clock-D9XRHj5E.js → rotate-ccw-clock-egrvXlKX.js} +1 -1
  231. package/dist/client/assets/{rotate-cw-DNa7ENG3.js → rotate-cw-Po-L3HFe.js} +1 -1
  232. package/dist/client/assets/{sankeyDiagram-SY24JHO5-DGYZs_kW.js → sankeyDiagram-SY24JHO5-BsIuHjbJ.js} +1 -1
  233. package/dist/client/assets/{scroll-area-Bf6IGziJ.js → scroll-area-C7vKp2H4.js} +1 -1
  234. package/dist/client/assets/{search-x-DFBBEouE.js → search-x-C_BEqIuX.js} +1 -1
  235. package/dist/client/assets/{sequenceDiagram-BLEHNHQU-BW3u4L9y.js → sequenceDiagram-BLEHNHQU-BJZXJxwu.js} +1 -1
  236. package/dist/client/assets/{shield-x-WGxwrtNV.js → shield-x-hHpT8rAA.js} +1 -1
  237. package/dist/client/assets/{signed-in-eV4_EXuv.js → signed-in-BhArfIJC.js} +1 -1
  238. package/dist/client/assets/{sizeCapture-INFHLROL-C1TpueOu.js → sizeCapture-INFHLROL-DYCQyn7S.js} +1 -1
  239. package/dist/client/assets/{soul-file-e1iYX9IV.js → soul-file-Doekkv7n.js} +1 -1
  240. package/dist/client/assets/{stateDiagram-v2-A6IESKWZ-DvrHUauN.js → stateDiagram-v2-A6IESKWZ-C6bUDAO7.js} +1 -1
  241. package/dist/client/assets/{swimlanes-B3ENRKFQ-BUbTcoId.js → swimlanes-B3ENRKFQ-DGyTrJBT.js} +1 -1
  242. package/dist/client/assets/swimlanesDiagram-AYQRV4AK-DrZ99xGr.js +8 -0
  243. package/dist/client/assets/{table-DsxLk3Gx.js → table-9KRGRv_s.js} +1 -1
  244. package/dist/client/assets/{timeline-definition-JXYKGLGB-CzbVpGxn.js → timeline-definition-JXYKGLGB-CHAJwSq6.js} +1 -1
  245. package/dist/client/assets/{trust-posture-Blofy7eE.js → trust-posture-BQE9NSf_.js} +1 -1
  246. package/dist/client/assets/{unplug-B6dUhqA7.js → unplug-CklGWwz7.js} +1 -1
  247. package/dist/client/assets/untrusted-text-BDygHCRk.js +1 -0
  248. package/dist/client/assets/{unverified-catalog-notice-6pwZtIjx.js → unverified-catalog-notice-9mykZSlO.js} +1 -1
  249. package/dist/client/assets/{use-adapter-catalog-J43bUHJu.js → use-adapter-catalog-CDxy08u_.js} +1 -1
  250. package/dist/client/assets/{use-bindings-BgXZ0D7k.js → use-bindings-CPbqKyo6.js} +1 -1
  251. package/dist/client/assets/{use-composer-prefs--zO2mm_M.js → use-composer-prefs-C7v03Xx_.js} +1 -1
  252. package/dist/client/assets/{use-connector-management-9Q7wHb06.js → use-connector-management-COqWo76Y.js} +1 -1
  253. package/dist/client/assets/{use-deep-link-scroll-CXqwdwGr.js → use-deep-link-scroll-BuYR3PaO.js} +1 -1
  254. package/dist/client/assets/{use-delete-binding-BBQNMtUY.js → use-delete-binding-Dfz8BlLn.js} +1 -1
  255. package/dist/client/assets/{use-dev-links-C643CCcq.js → use-dev-links-Cu2JmM-_.js} +1 -1
  256. package/dist/client/assets/{use-direct-message-panel-BD_daG2E.js → use-direct-message-panel-DobIp_O4.js} +1 -1
  257. package/dist/client/assets/{use-external-adapter-catalog-BjbC1V6t.js → use-external-adapter-catalog-OLn4l20Q.js} +1 -1
  258. package/dist/client/assets/{use-full-activity-feed-DUH8r8jx.js → use-full-activity-feed-DNrhQueu.js} +1 -1
  259. package/dist/client/assets/use-is-below-desktop-7gY1n-47.js +1 -0
  260. package/dist/client/assets/{use-local-browser-P93oA-F5.js → use-local-browser-DPdkgs06.js} +1 -1
  261. package/dist/client/assets/{use-mesh-topology-B0k0gLoW.js → use-mesh-topology-Ci7r-pAi.js} +1 -1
  262. package/dist/client/assets/{use-mounted-ref-DE7EQsBF.js → use-mounted-ref-CWXhSyZ8.js} +1 -1
  263. package/dist/client/assets/{use-notification-prefs-B8JtshQ0.js → use-notification-prefs-GJ2coibL.js} +1 -1
  264. package/dist/client/assets/use-pending-read-DcVJ8fZb.js +1 -0
  265. package/dist/client/assets/{use-personality-commit-Dh5Sejj_.js → use-personality-commit-Da2BJ_58.js} +1 -1
  266. package/dist/client/assets/{use-promo-activation-C9FWA7ru.js → use-promo-activation-D4PAd7pd.js} +1 -1
  267. package/dist/client/assets/{use-promo-dismissals-BIfafj9f.js → use-promo-dismissals-BCBu0s3k.js} +1 -1
  268. package/dist/client/assets/{use-pulse-freshness-CxzVMmVK.js → use-pulse-freshness-CHLSUL-h.js} +1 -1
  269. package/dist/client/assets/{use-relay-config-DQE3dmJ2.js → use-relay-config-C6rPlEud.js} +1 -1
  270. package/dist/client/assets/{use-room-follow-claim-B1QPFaUb.js → use-room-follow-claim-BSijPV3c.js} +1 -1
  271. package/dist/client/assets/{use-room-sessions-CdjzO67_.js → use-room-sessions-CNqHgLVa.js} +1 -1
  272. package/dist/client/assets/{use-roving-tab-list-Nu-MIapD.js → use-roving-tab-list-EsqX22Ik.js} +1 -1
  273. package/dist/client/assets/use-session-canvas-DAGOz8a6.js +27 -0
  274. package/dist/client/assets/{use-status-budget-DgeTxC3h.js → use-status-budget-CHln-8aP.js} +1 -1
  275. package/dist/client/assets/{use-transform-CiJqtMBf.js → use-transform-BmyqpcvO.js} +1 -1
  276. package/dist/client/assets/{use-unclaimed-chats-Blkq6U4D.js → use-unclaimed-chats-9Clj_rwl.js} +1 -1
  277. package/dist/client/assets/use-update-config-T78vOnRy.js +1 -0
  278. package/dist/client/assets/{useMutationState-lbcdmnfE.js → useMutationState-B61VoWtY.js} +1 -1
  279. package/dist/client/assets/{usecaseDiagram-WPOLBNNX-BM36oESm.js → usecaseDiagram-WPOLBNNX-BUqj8rIH.js} +1 -1
  280. package/dist/client/assets/{vennDiagram-Q3Y3IDCW-Zrybcs91.js → vennDiagram-Q3Y3IDCW-B09oli-Z.js} +1 -1
  281. package/dist/client/assets/{wardleyDiagram-IVAIDKWA-CO4pzGG0.js → wardleyDiagram-IVAIDKWA-BE7gzLdw.js} +1 -1
  282. package/dist/client/assets/{xychartDiagram-4URNHDU4-pi_wF1CM.js → xychartDiagram-4URNHDU4-CbGKfmuW.js} +1 -1
  283. package/dist/client/index.html +1 -1
  284. package/dist/server/index.js +5692 -4710
  285. package/dist/server/index.js.map +2 -2
  286. package/package.json +4 -4
  287. package/dist/client/assets/HandlePage-BjlcYr_l.js +0 -1
  288. package/dist/client/assets/NamePage-A8X09lY7.js +0 -1
  289. package/dist/client/assets/PhotoPage-DP5WoeFd.js +0 -1
  290. package/dist/client/assets/_shell.marketplace-CzLqm8iR.js +0 -1
  291. package/dist/client/assets/_shell.marketplace_.sources-DtraxnMx.js +0 -1
  292. package/dist/client/assets/_shell.session-72JEfodU.js +0 -1
  293. package/dist/client/assets/_shell.x._extensionId-CcJi8pKR.js +0 -1
  294. package/dist/client/assets/_shell.x._extensionId_._-CcJi8pKR.js +0 -1
  295. package/dist/client/assets/channel-DMgpNBDz.js +0 -1
  296. package/dist/client/assets/index-e6oawwKv.js +0 -1
  297. package/dist/client/assets/index-j30EyYIU.js +0 -1
  298. package/dist/client/assets/registry-BrjQCdmG.js +0 -1
  299. package/dist/client/assets/swimlanesDiagram-AYQRV4AK-wkooBe_N.js +0 -8
  300. package/dist/client/assets/untrusted-text-pHjcUwfI.js +0 -1
  301. package/dist/client/assets/use-is-below-desktop-DAZnwJGB.js +0 -1
  302. package/dist/client/assets/use-pending-read-DeGO1wGC.js +0 -1
  303. package/dist/client/assets/use-session-canvas-BfKGOpNy.js +0 -27
  304. package/dist/client/assets/use-update-config-BFFW_6Mc.js +0 -1
@@ -1,4 +1,4 @@
1
- import{R as ni,r as Y,j as L}from"./index-B6Scr7KJ.js";var R=function(i,n){return Number(i.toFixed(n))},pe=function(i,n){return typeof i=="number"?i:n},P=function(i,n,e){e&&typeof e=="function"&&e(i,n)},fe=function(i){return-Math.cos(i*Math.PI)/2+.5},me=function(i){return i},he=function(i){return i*i},ce=function(i){return i*(2-i)},ge=function(i){return i<.5?2*i*i:-1+(4-2*i)*i},we=function(i){return i*i*i},ye=function(i){return--i*i*i+1},be=function(i){return i<.5?4*i*i*i:(i-1)*(2*i-2)*(2*i-2)+1},Pe=function(i){return i*i*i*i},Se=function(i){return 1- --i*i*i*i},Ce=function(i){return i<.5?8*i*i*i*i:1-8*--i*i*i*i},Te=function(i){return i*i*i*i*i},Ae=function(i){return 1+--i*i*i*i*i},Ye=function(i){return i<.5?16*i*i*i*i*i:1+16*--i*i*i*i*i},Bi={easeOut:fe,linear:me,easeInQuad:he,easeOutQuad:ce,easeInOutQuad:ge,easeInCubic:we,easeOutCubic:ye,easeInOutCubic:be,easeInQuart:Pe,easeOutQuart:Se,easeInOutQuart:Ce,easeInQuint:Te,easeOutQuint:Ae,easeInOutQuint:Ye},Xe=function(i){var n=i.animationResolve;i.animationResolve=null,n==null||n()},_=function(i){i.animationFrame!==null&&cancelAnimationFrame(i.animationFrame),i.animationFrame=null,i.isAnimating=!1,i.animation=null,i.velocity=null,Xe(i)};function Li(i,n,e,r,o){if(!i.mounted){o==null||o();return}var a=new Date().getTime(),t=1;_(i);var l=function(){if(!(!i.mounted||i.animation!==l)){var s=new Date().getTime()-a,d=s/e,u=Bi[n],v=u(d);if(s>=e){i.animation=null,i.animationFrame=null;var p=i.animationResolve;i.animationResolve=null,r(t),p==null||p(),i.flushResizeAlignment()}else r(v),i.animationFrame=requestAnimationFrame(l)}};i.animation=l,i.animationResolve=o??null,i.animationFrame=requestAnimationFrame(l)}function Ee(i){var n=i.scale,e=i.positionX,r=i.positionY;return!(Number.isNaN(n)||Number.isNaN(e)||Number.isNaN(r))}function H(i,n,e,r){var o=Ee(n);if(!i.mounted||!o)return Promise.resolve();var a=i.setState,t=i.state,l=t.scale,s=t.positionX,d=t.positionY,u=n.scale-l,v=n.positionX-s,p=n.positionY-d;return e===0?(a(n.scale,n.positionX,n.positionY),Promise.resolve()):new Promise(function(m){Li(i,r,e,function(f){f!==1?i.isAnimating=!0:i.isAnimating=!1;var h=l+u*f,g=s+v*f,c=d+p*f;a(h,g,c)},m)})}function ze(i,n,e){var r=i.clientWidth,o=i.clientHeight,a=n.offsetWidth,t=n.offsetHeight,l=a*e,s=t*e,d=r-l,u=o-s;return{wrapperWidth:r,wrapperHeight:o,newContentWidth:l,newDiffWidth:d,newContentHeight:s,newDiffHeight:u}}var _e=function(i,n,e,r,o,a,t){var l=i>n?e*(t?.5:1):0,s=r>o?a*(t?.5:1):0,d=i-n-l,u=l,v=r-o-s,p=s;return{minPositionX:d,maxPositionX:u,minPositionY:v,maxPositionY:p,scaleWidthFactor:l,scaleHeightFactor:s}},bi=function(i,n){var e=i.wrapperComponent,r=i.contentComponent,o=i.setup,a=o.centerZoomedOut,t=o.disablePadding;if(!e||!r)throw new Error("Components are not mounted");var l=ze(e,r,n),s=l.wrapperWidth,d=l.wrapperHeight,u=l.newContentWidth,v=l.newContentHeight,p=l.newDiffWidth,m=l.newDiffHeight,f=_e(s,u,p,d,v,m,!!a),h=s>=u&&d>=v;t&&h&&!a&&(f.minPositionX=0,f.maxPositionX=0,f.minPositionY=0,f.maxPositionY=0);var g=i.setup,c=g.minPositionX,y=g.maxPositionX,w=g.minPositionY,S=g.maxPositionY;return c!=null&&(f.minPositionX=s*(1-n)+c*n),y!=null&&(f.maxPositionX=y*n),w!=null&&(f.minPositionY=d*(1-n)+w*n),S!=null&&(f.maxPositionY=S*n),f},G=function(i,n,e,r){return r?i<n?R(n,2):i>e?R(e,2):R(i,2):R(i,2)},k=function(i,n){var e=bi(i,n);return i.bounds=e,e};function F(i,n,e,r,o,a,t){var l=e.minPositionX,s=e.minPositionY,d=e.maxPositionX,u=e.maxPositionY,v=0,p=0;t&&(v=o,p=a);var m=G(i,l-v,d+v,r),f=G(n,s-p,u+p,r);return{x:m,y:f}}function oi(i,n,e,r,o,a){var t=i.state,l=t.scale,s=t.positionX,d=t.positionY,u=r-l;if(!Number.isFinite(n)||!Number.isFinite(e))return console.error("Mouse X and Y position were not provided!"),{x:s,y:d};var v=s-n*u,p=d-e*u,m=F(v,p,o,a,0,0,null);return m}var _i=1e-7;function V(i,n,e,r,o){var a=o?r:0,t=Math.max(n-a,_i),l=e+a;return!Number.isNaN(e)&&i>=l?l:!Number.isNaN(n)&&i<=t?t:Math.max(i,_i)}var ki=function(i,n){var e=i.setup.panning.excluded,r=i.isInitialized,o=i.wrapperComponent,a=n.target,t=function(u){return!!u&&typeof u=="object"&&u.nodeType===1&&typeof u.contains=="function"},l=typeof n.composedPath=="function"?n.composedPath().some(function(u){return t(u)&&!!(o!=null&&o.contains(u))}):!!(o!=null&&o.contains(a)),s=r&&a&&l;if(!s)return!1;var d=j(a,e);return!(d||ur(a)||Ci(a))},Wi=function(i){var n=i.isInitialized,e=i.isPanning,r=i.setup,o=r.panning.disabled,a=n&&e&&!o;return!!a},ke=function(i,n){var e=i.state,r=e.positionX,o=e.positionY;i.isPanning=!0;var a=n.clientX,t=n.clientY;i.startCoords={x:a-r,y:t-o}},We=function(i,n){var e=n.touches,r=i.state,o=r.positionX,a=r.positionY;i.isPanning=!0;var t=e.length===1;if(t){var l=e[0].clientX,s=e[0].clientY;i.startCoords={x:l-o,y:s-a}}};function Oe(i){var n=i.state,e=n.positionX,r=n.positionY,o=n.scale,a=i.setup,t=a.disabled,l=a.limitToBounds,s=a.centerZoomedOut,d=i.wrapperComponent;if(!(t||!d||!i.bounds)){var u=i.bounds,v=u.maxPositionX,p=u.minPositionX,m=u.maxPositionY,f=u.minPositionY,h=e>v||e<p,g=r>m||r<f,c=e>v?d.clientWidth:i.setup.minPositionX||0,y=r>m?d.clientHeight:i.setup.minPositionY||0,w=oi(i,c,y,o,i.bounds,l||s),S=w.x,X=w.y;return{scale:o,positionX:h?S:e,positionY:g?X:r}}}function Ki(i,n,e,r,o){var a=i.setup.limitToBounds,t=i.wrapperComponent,l=i.bounds,s=i.state,d=s.scale,u=s.positionX,v=s.positionY;if(!(t===null||l===null||n===u&&e===v)){var p=F(n,e,l,a,r,o,t),m=p.x,f=p.y;i.setState(d,m,f)}}var Me=function(i,n,e){var r=i.startCoords,o=i.state,a=i.setup.panning,t=a.lockAxisX,l=a.lockAxisY,s=o.positionX,d=o.positionY;if(!r)return{x:s,y:d};var u=n-r.x,v=e-r.y,p=t?s:u,m=l?d:v;return{x:p,y:m}},K=function(i,n,e){var r=i.setup,o=i.state,a=r.minScale,t=r.disablePadding,l=r.centerZoomedOut,s=e??o.scale;return n>0&&s>=a&&!t&&!l?n:0},B;(function(i){i.TRACK_PAD="track_pad",i.MOUSE="mouse",i.TOUCH="touch"})(B||(B={}));var De=function(i){var n=i.mounted,e=i.wrapperComponent,r=i.contentComponent,o=i.setup,a=o.disabled,t=o.velocityAnimation,l=o.limitToBounds,s=i.state.scale,d=t.disabled;if(d||a||!n||!e||!r)return!1;if(!l)return!0;var u=e.clientWidth<r.offsetWidth*s||e.clientHeight<r.offsetHeight*s;return u},Ne=function(i){var n=i.mounted,e=i.velocity,r=i.bounds,o=i.setup,a=o.disabled,t=o.velocityAnimation,l=t.disabled,s=!l&&!a&&n;return!(!s||!e||!r)};function Re(i,n){var e=i.setup.velocityAnimation,r=e.animationTime,o=e.maxAnimationTime,a=e.inertia;return Math.min(r*Math.max(1,Math.abs(n/a)),o)}function Oi(i,n,e,r,o,a,t,l,s,d){if(o){if(n>t&&e>t){var u=t+(i-t)*d;return u>s?s:u<t?t:u}if(n<a&&e<a){var u=a+(i-a)*d;return u<l?l:u>a?a:u}}return r?n:G(i,a,t,o)}function Be(i){var n=1,e=i.clientWidth/window.innerWidth;return Number.isNaN(e)?n:Math.min(n,e)}var fi=function(i,n,e){var r=0,o=i*e;return Number.isNaN(o)?r:i<0?Math.max(o,-n):Math.min(o,n)};function Le(i,n,e){var r,o,a=De(i);if(a){var t=i.lastMousePosition,l=i.velocityTime,s=i.setup,d=i.wrapperComponent,u=s.velocityAnimation,v=u.maxStrengthMouse,p=u.maxStrengthTouch,m=u.sensitivityTouch,f=u.sensitivityMouse,h=Date.now();if(t&&l&&d){var g=Be(d),c=(r={},r[B.TOUCH]=m,r[B.MOUSE]=f,r)[e],y=(o={},o[B.TOUCH]=p,o[B.MOUSE]=v,o)[e],w=n.x-t.x,S=n.y-t.y,X=fi(w/g,y,c),T=fi(S/g,y,c),C=h-l,E=w*w+S*S,A=fi(Math.sqrt(E)/C,y,c);i.velocity={velocityX:X,velocityY:T,total:A}}i.lastMousePosition=n,i.velocityTime=h}}function Ke(i){var n=i.velocity,e=i.bounds,r=i.setup,o=i.wrapperComponent,a=Ne(i);if(!(!a||!n||!e||!o)){var t=n.velocityX,l=n.velocityY,s=n.total,d=e.maxPositionX,u=e.minPositionX,v=e.maxPositionY,p=e.minPositionY,m=r.limitToBounds,f=r.autoAlignment,h=r.zoomAnimation,g=r.panning,c=g.lockAxisY,y=g.lockAxisX,w=h.animationType,S=f.sizeX,X=f.sizeY,T=f.velocityAlignmentTime,C=T,E=Re(i,s),A=Math.max(E,C),M=K(i,S),z=K(i,X),D=M*o.clientWidth/100,W=z*o.clientHeight/100,N=d+D,U=u-D,li=v+W,si=p-W,I=i.state,ui=new Date().getTime();Li(i,w,A,function(ii){var Q=i.state,di=Q.scale,vi=Q.positionX,pi=Q.positionY,le=new Date().getTime()-ui,se=le/C,ue=Bi[f.animationType],Ai=1-ue(Math.min(1,se)),Yi=1-ii,Xi=vi+t*Yi,Ei=pi+l*Yi,de=Oi(Xi,I.positionX,vi,y,m,u,d,U,N,Ai),ve=Oi(Ei,I.positionY,pi,c,m,p,v,si,li,Ai);if(vi!==Xi||pi!==Ei){i.setState(di,de,ve);var zi=i.props.onPanning;zi&&zi(b(i),{})}})}}function Mi(i,n){var e=i.state,r=e.scale,o=e.positionX,a=e.positionY;i.panStartPosition={x:o,y:a},_(i),k(i,r),"touches"in n?We(i,n):ke(i,n)}function Hi(i,n){var e=i.state.scale,r=i.setup,o=r.minScale,a=r.autoAlignment,t=a.disabled,l=a.sizeX,s=a.sizeY,d=a.animationTime,u=a.animationType,v=t||e<o||!l&&!s;if(!v){i.isResizeAlignmentPending&&k(i,e);var p=Oe(i);if(p){var m=i.state,f=m.positionX,h=m.positionY,g=p.positionX===f&&p.positionY===h;g||H(i,p,d,u)}}}function Di(i,n,e,r){var o=i.startCoords,a=i.setup,t=a.autoAlignment,l=t.sizeX,s=t.sizeY;if(o){var d=Me(i,n,e),u=d.x,v=d.y,p=K(i,l),m=K(i,s);Le(i,{x:u,y:v},r),Ki(i,u,v,p,m)}}function He(i,n){if(i.isPanning){var e=i.velocity,r=i.wrapperComponent,o=i.contentComponent;i.isPanning=!1;var a=i.state,t=a.positionX,l=a.positionY,s=a.scale,d=i.panStartPosition;if(i.panStartPosition=null,d){var u=t-d.x,v=l-d.y;if(u*u+v*v<=25)return}i.isAnimating=!1,i.animation=null,i.isResizeAlignmentPending&&k(i,s);var p=(r==null?void 0:r.clientWidth)||0,m=(r==null?void 0:r.clientHeight)||0,f=((o==null?void 0:o.offsetWidth)||0)*s,h=((o==null?void 0:o.offsetHeight)||0)*s,g=!i.setup.limitToBounds||p<f||m<h,c=!n&&e&&e.total>.1&&g;c?Ke(i):Hi(i)}}function ai(i,n,e,r){var o=i.setup,a=o.minScale,t=o.maxScale,l=o.limitToBounds,s=V(R(n,2),a,t,0,!1),d=k(i,s),u=oi(i,e,r,s,d,l),v=u.x,p=u.y;return{scale:s,positionX:v,positionY:p}}function Pi(i,n,e){var r=i.state.scale,o=i.wrapperComponent,a=i.setup,t=a.minScale,l=a.maxScale,s=a.limitToBounds,d=a.zoomAnimation,u=d.disabled,v=d.animationTime,p=d.animationType,m=r>=t&&r<=l,f=u||m;if((r>=1||s)&&Hi(i),!(f||!o||!i.mounted)){var h=n||o.clientWidth/2,g=e||o.clientHeight/2,c=r<t?t:l,y=ai(i,c,h,g);y&&H(i,y,v,p)}}var O=function(){return O=Object.assign||function(n){for(var e,r=1,o=arguments.length;r<o;r++){e=arguments[r];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a])}return n},O.apply(this,arguments)};function Ni(i,n,e){for(var r=0,o=n.length,a;r<o;r++)(a||!(r in n))&&(a||(a=Array.prototype.slice.call(n,0,r)),a[r]=n[r]);return i.concat(a||Array.prototype.slice.call(n))}var mi={scale:1,positionX:0,positionY:0},Z={disabled:!1,minPositionX:null,maxPositionX:null,minPositionY:null,maxPositionY:null,minScale:1,maxScale:8,limitToBounds:!0,centerZoomedOut:!1,centerOnInit:!1,fitOnInit:!1,disablePadding:!1,smooth:!0,detached:!1,wheel:{step:.015,disabled:!1,wheelDisabled:!1,touchPadDisabled:!1,activationKeys:[],excluded:[]},trackPadPanning:{disabled:!0,velocityDisabled:!1,lockAxisX:!1,lockAxisY:!1,activationKeys:[],excluded:[]},panning:{disabled:!1,velocityDisabled:!1,lockAxisX:!1,lockAxisY:!1,allowLeftClickPan:!0,allowMiddleClickPan:!0,allowRightClickPan:!0,activationKeys:[],excluded:[]},pinch:{step:5,disabled:!1,allowPanning:!0,excluded:[]},keyboard:{disabled:!0,panStep:50,zoomStep:.25,animationTime:100,animationType:"easeOut",excluded:[]},doubleClick:{disabled:!1,step:.7,mode:"zoomIn",animationType:"easeOut",animationTime:200,excluded:[]},zoomAnimation:{disabled:!1,size:.4,animationTime:200,animationType:"easeOut"},autoAlignment:{disabled:!1,sizeX:100,sizeY:100,animationTime:200,velocityAlignmentTime:400,animationType:"easeOut"},velocityAnimation:{disabled:!1,sensitivityMouse:1,sensitivityTouch:1.2,maxStrengthMouse:20,maxStrengthTouch:40,inertia:1,animationTime:300,maxAnimationTime:800,animationType:"easeOut"}},gi={wrapperClass:"react-transform-wrapper",contentClass:"react-transform-component"},Zi=function(i){var n,e,r,o,a,t,l,s,d,u=Math.max((n=i.minScale)!==null&&n!==void 0?n:Z.minScale,1e-7),v=(e=i.maxScale)!==null&&e!==void 0?e:Z.maxScale,p=(r=i.initialScale)!==null&&r!==void 0?r:mi.scale,m=Math.min(Math.max(p,u),v),f=G((o=i.initialPositionX)!==null&&o!==void 0?o:mi.positionX,(a=i.minPositionX)!==null&&a!==void 0?a:-1/0,(t=i.maxPositionX)!==null&&t!==void 0?t:1/0,i.minPositionX!=null||i.maxPositionX!=null),h=G((l=i.initialPositionY)!==null&&l!==void 0?l:mi.positionY,(s=i.minPositionY)!==null&&s!==void 0?s:-1/0,(d=i.maxPositionY)!==null&&d!==void 0?d:1/0,i.minPositionY!=null||i.maxPositionY!=null);return{previousScale:m,scale:m,positionX:f,positionY:h}},Ri=function(i){var n=O({},Z);return Object.keys(i).forEach(function(e){var r=e,o=typeof i[r]<"u",a=typeof Z[r]<"u";if(a&&o){var t=Object.prototype.toString.call(Z[r]),l=t==="[object Object]",s=t==="[object Array]";l?n[r]=O(O({},Z[r]),i[r]):s?n[r]=Ni(Ni([],Z[r],!0),i[r]):n[r]=i[r]}}),n.minScale<=0&&(n.minScale=1e-7),n},Fi=function(i,n,e){var r=i.state.scale,o=i.wrapperComponent,a=i.setup,t=a.maxScale,l=a.minScale,s=a.zoomAnimation,d=s.size;if(!o)throw new Error("Wrapper is not mounted");var u=r+n*e,v=V(R(u,3),l,t,d,!1);return v};function q(i,n,e,r){var o,a,t=i.wrapperComponent,l=i.props,s=l.onZoomStart,d=l.onZoom,u=l.onZoomStop,v=new MouseEvent("mousemove",{bubbles:!0}),p=b(i);P(p,v,s),P(p,v,d);var m=H(i,n,e,r),f=(a=(o=t==null?void 0:t.ownerDocument)===null||o===void 0?void 0:o.defaultView)!==null&&a!==void 0?a:typeof window<"u"?window:null;return f&&f.setTimeout(function(){i.mounted&&P(b(i),v,u)},e),m}function Vi(i,n,e,r,o){var a=i.wrapperComponent,t=i.state,l=t.scale,s=t.positionX,d=t.positionY,u=i.setup.zoomAnimation;if(!a)return console.error("No WrapperComponent found"),Promise.resolve();var v=u.disabled?0:r,p=a.clientWidth,m=a.clientHeight,f=(p/2-s)/l,h=(m/2-d)/l,g=Fi(i,n,e),c=ai(i,g,f,h);return c?q(i,c,v,o):(console.error("Error during zoom event. New transformation state was not calculated."),Promise.resolve())}function Ze(i,n,e,r){var o,a,t=i.wrapperComponent,l=i.props,s=l.onPanningStart,d=l.onPanning,u=l.onPanningStop,v=new MouseEvent("mousemove",{bubbles:!0}),p=b(i);P(p,v,s),P(p,v,d);var m=H(i,n,e,r),f=(a=(o=t==null?void 0:t.ownerDocument)===null||o===void 0?void 0:o.defaultView)!==null&&a!==void 0?a:typeof window<"u"?window:null;return f&&f.setTimeout(function(){i.mounted&&P(b(i),v,u)},e),m}function Si(i,n,e,r){n===void 0&&(n="contain");var o=i.wrapperComponent,a=i.contentComponent,t=i.setup;if(!o||!a)return null;var l=a.offsetWidth,s=a.offsetHeight,d=o.clientWidth,u=o.clientHeight;if(!l||!s||!d||!u)return null;var v=d/l,p=u/s,m=n==="cover"?Math.max(v,p):Math.min(v,p);return r!==void 0&&(m=Math.min(m,r)),e!==void 0&&(m=Math.max(m,e)),m=V(m,t.minScale,t.maxScale,0,!1),ti(m,o,a)}function ji(i,n,e,r){var o=i.setup,a=i.wrapperComponent,t=i.contentComponent,l=o.limitToBounds,s=o.centerOnInit,d=o.fitOnInit,u=Zi(i.props),v=i.state,p=v.scale,m=v.positionX,f=v.positionY;if(!a)return Promise.resolve();if(d){var h=Si(i,d==="cover"?"cover":"contain");if(h)return p===h.scale&&m===h.positionX&&f===h.positionY?Promise.resolve():(r==null||r(),q(i,h,n,e))}var g=u.positionX,c=u.positionY;if(s&&t){var y=ti(u.scale,a,t);g=y.positionX,c=y.positionY}var w=bi(i,u.scale),S=F(g,c,w,l,0,0,a),X={scale:u.scale,positionX:S.x,positionY:S.y};return p===u.scale&&m===u.positionX&&f===u.positionY?Promise.resolve():(r==null||r(),q(i,X,n,e))}var Ui=function(i){if("getBoundingClientRect"in i){var n=i.getBoundingClientRect();return{x:n.left,y:n.top,width:n.width,height:n.height}}return i};function Fe(i){var n=i.map(Ui),e=Math.min.apply(Math,n.map(function(t){return t.x})),r=Math.min.apply(Math,n.map(function(t){return t.y})),o=Math.max.apply(Math,n.map(function(t){return t.x+t.width})),a=Math.max.apply(Math,n.map(function(t){return t.y+t.height}));return{x:e,y:r,width:o-e,height:a-r}}function Ve(i,n,e,r){var o=Ui(i),a=n.getBoundingClientRect(),t=e.getBoundingClientRect(),l=a.x*r.scale,s=a.y*r.scale;return{x:(o.x-t.x+l)/r.scale,y:(o.y-t.y+s)/r.scale}}function je(i,n,e,r,o,a,t){r===void 0&&(r=0),o===void 0&&(o=0);var l=i.wrapperComponent,s=i.contentComponent,d=i.state,u=i.setup,v=u.limitToBounds,p=u.minScale,m=u.maxScale;if(!l||!s)return d;var f=l.getBoundingClientRect(),h=Ve(n,l,s,d),g=h.x,c=h.y,y=n.width/d.scale,w=n.height/d.scale,S=l.clientWidth/y,X=l.clientHeight/w,T=e||Math.min(S,X);t!==void 0&&(T=Math.min(T,t)),a!==void 0&&(T=Math.max(T,a));var C=V(T,p,m,0,!1),E=(f.width-y*C)/2,A=(f.height-w*C)/2,M=(f.left-g)*C+E+r,z=(f.top-c)*C+A+o,D=bi(i,C),W=F(M,z,D,v,0,0,l),N=W.x,U=W.y;return{positionX:N,positionY:U,scale:C}}function Qi(i,n,e){var r=i.wrapperComponent,o=i.state;if(!r)return{x:0,y:0};var a=r.getBoundingClientRect();return{x:(n-a.left-o.positionX)/o.scale,y:(e-a.top-o.positionY)/o.scale}}function Ue(i,n,e){var r=i.wrapperComponent,o=i.state;if(!r)return{x:0,y:0};var a=r.getBoundingClientRect();return{x:a.left+o.positionX+n*o.scale,y:a.top+o.positionY+e*o.scale}}var Qe=function(i){return function(n,e,r){return n===void 0&&(n=.5),e===void 0&&(e=300),r===void 0&&(r="easeOut"),Vi(i,1,n,e,r)}},Ge=function(i){return function(n,e,r){return n===void 0&&(n=.5),e===void 0&&(e=300),r===void 0&&(r="easeOut"),Vi(i,-1,n,e,r)}},qe=function(i){return function(n,e,r,o,a){o===void 0&&(o=300),a===void 0&&(a="easeOut");var t=i.state,l=t.positionX,s=t.positionY,d=t.scale,u=i.wrapperComponent,v=i.contentComponent,p=i.setup.disabled;if(p||!u||!v)return Promise.resolve();var m={positionX:Number.isNaN(n)?l:n,positionY:Number.isNaN(e)?s:e,scale:Number.isNaN(r)?d:r};return H(i,m,o,a)}},Je=function(i){return function(n,e){return n===void 0&&(n=200),e===void 0&&(e="easeOut"),ji(i,n,e)}},$e=function(i){return function(n,e,r){e===void 0&&(e=200),r===void 0&&(r="easeOut");var o=i.state,a=i.wrapperComponent,t=i.contentComponent;if(a&&t){var l=ti(n||o.scale,a,t);return H(i,l,e,r)}return Promise.resolve()}},xe=function(i){return function(n,e,r,o,a){o===void 0&&(o=300),a===void 0&&(a="easeOut");var t=i.wrapperComponent,l=i.contentComponent,s=i.setup;if(s.disabled||!t||!l)return Promise.resolve();var d=Qi(i,e,r),u=ai(i,n,d.x,d.y);if(!u)return Promise.resolve();var v=s.zoomAnimation.disabled?0:o;return q(i,u,v,a)}},Ie=function(i){return function(n,e){return Qi(i,n,e)}},ir=function(i){return function(n,e){return Ue(i,n,e)}},er=function(i,n){var e,r=i.wrapperComponent;if(!r)return[];var o=r.getRootNode(),a=o&&"getElementById"in o?o:(e=r.ownerDocument)!==null&&e!==void 0?e:typeof document<"u"?document:null,t=Array.isArray(n)?n:[n];return t.map(function(l){return typeof l=="string"?a==null?void 0:a.getElementById(l):l}).filter(function(l){return!!l&&r.contains(l)})},rr=function(i){return function(n,e,r,o,a,t){var l,s,d,u;r===void 0&&(r=600),o===void 0&&(o="easeOut"),a===void 0&&(a=0),t===void 0&&(t=0),_(i);var v=typeof e=="object"&&e!==null?e:{scale:e},p=er(i,n);if(!i.wrapperComponent||p.length===0)return Promise.resolve();var m=je(i,Fe(p),v.scale,(l=v.offsetX)!==null&&l!==void 0?l:a,(s=v.offsetY)!==null&&s!==void 0?s:t,v.minScale,v.maxScale);return H(i,m,(d=v.animationTime)!==null&&d!==void 0?d:r,(u=v.animationType)!==null&&u!==void 0?u:o)}},nr=function(i){return function(n){var e,r,o;n===void 0&&(n={});var a=i.wrapperComponent,t=i.contentComponent,l=i.setup;if(l.disabled||!a||!t)return Promise.resolve();var s=Si(i,(e=n.mode)!==null&&e!==void 0?e:"contain",n.minScale,n.maxScale);if(!s)return Promise.resolve();var d=l.zoomAnimation.disabled?0:(r=n.animationTime)!==null&&r!==void 0?r:200;return q(i,s,d,(o=n.animationType)!==null&&o!==void 0?o:"easeOut")}},or=function(i){return function(n,e,r,o){r===void 0&&(r=200),o===void 0&&(o="easeOut");var a=i.wrapperComponent,t=i.contentComponent,l=i.setup,s=i.state;if(l.disabled||!a||!t||!Number.isFinite(n)||!Number.isFinite(e))return Promise.resolve();var d=k(i,s.scale),u=F(s.positionX+n,s.positionY+e,d,l.limitToBounds,0,0,a),v=u.x,p=u.y;return v===s.positionX&&p===s.positionY?Promise.resolve():Ze(i,{scale:s.scale,positionX:v,positionY:p},r,o)}},J=function(i){return{instance:i,state:i.state,zoomIn:Qe(i),zoomOut:Ge(i),setTransform:qe(i),resetTransform:Je(i),centerView:$e(i),zoomToElement:rr(i),zoomToPoint:xe(i),clientToContent:Ie(i),contentToClient:ir(i),fitToView:nr(i),panBy:or(i)}},ar=function(i){return{instance:i,state:i.state}},b=function(i){var n={};return Object.assign(n,ar(i)),Object.assign(n,J(i)),n},hi=!1;function ei(){try{var i={get passive(){return hi=!0,!1}};return i}catch{return hi=!1,hi}}var ri=".".concat(gi.wrapperClass),j=function(i,n){return n.some(function(e){return i.matches("".concat(ri," ").concat(e,", ").concat(ri," .").concat(e,", ").concat(ri," ").concat(e," *, ").concat(ri," .").concat(e," *"))})},tr=new Set(["INPUT","TEXTAREA","SELECT","OPTION"]),lr='[contenteditable=""], [contenteditable="true"], [contenteditable="plaintext-only"]',sr='[draggable="true"]',Gi=function(i){return!i||typeof i.closest!="function"?null:i},Ci=function(i){var n=Gi(i);return n?tr.has(n.tagName)||n.isContentEditable?!0:n.closest(lr)!==null:!1},ur=function(i){var n=Gi(i);return n?n.closest(sr)!==null:!1},$=function(i){i&&clearTimeout(i)},dr=function(i){return Number.parseFloat(i.toFixed(8))},qi=function(i,n,e){var r=dr(e);return"translate(".concat(i,"px, ").concat(n,"px) scale(").concat(r,")")},ti=function(i,n,e){var r=e.offsetWidth*i,o=e.offsetHeight*i,a=(n.clientWidth-r)/2,t=(n.clientHeight-o)/2;return{scale:i,positionX:a,positionY:t}};function vr(i,n){i!=null&&(typeof i=="function"?i(n):i.current=n)}function pr(i){return function(n){i.forEach(function(e){typeof e=="function"?e(n):e!=null&&(e.current=n)})}}var Ti=typeof window<"u"?Y.useLayoutEffect:Y.useEffect,fr={panLeft:["ArrowLeft"],panRight:["ArrowRight"],panUp:["ArrowUp"],panDown:["ArrowDown"],zoomIn:["+","="],zoomOut:["-","_"],reset:["0"]},mr=function(i){return Object.values(fr).some(function(n){return n.includes(i)})};function hr(i,n){var e=i.setup,r=e.disabled,o=e.keyboard,a=e.panning;if(r||o.disabled||n.defaultPrevented||n.ctrlKey||n.metaKey||n.altKey||!mr(n.key))return!1;var t=n.target;if(Ci(t)||t&&typeof t.matches=="function"&&j(t,o.excluded))return!1;var l=o.panStep,s=o.zoomStep,d=o.animationTime,u=o.animationType,v=J(i),p=n.key,m=a.lockAxisX?0:l,f=a.lockAxisY?0:l;return p==="ArrowLeft"?v.panBy(m,0,d,u):p==="ArrowRight"?v.panBy(-m,0,d,u):p==="ArrowUp"?v.panBy(0,f,d,u):p==="ArrowDown"?v.panBy(0,-f,d,u):p==="+"||p==="="?v.zoomIn(s,d,u):p==="-"||p==="_"?v.zoomOut(s,d,u):p==="0"&&v.resetTransform(d,u),n.cancelable&&n.preventDefault(),n.stopPropagation(),!0}var wi=function(i,n){return{wrapperWidth:i.offsetWidth,wrapperHeight:i.offsetHeight,contentWidth:n.offsetWidth,contentHeight:n.offsetHeight}},cr=function(i,n){return!i||i.wrapperWidth!==n.wrapperWidth||i.wrapperHeight!==n.wrapperHeight||i.contentWidth!==n.contentWidth||i.contentHeight!==n.contentHeight},Ji=function(i){return i.isPanning||i.isPinching},gr=function(i){return Ji(i)||i.wheelStopEventTimer!==null||i.wheelAnimationTimer!==null};function $i(i){var n=i.wrapperComponent,e=i.contentComponent,r=i.setup,o=i.state;if(!n||!e)return null;var a=k(i,o.scale),t=r.limitToBounds,l=r.centerZoomedOut;if(!t&&!l)return null;var s=F(o.positionX,o.positionY,a,!0,0,0,n),d=s.x,u=s.y,v=d===R(o.positionX,2)&&u===R(o.positionY,2);return v?null:{scale:o.scale,positionX:d,positionY:u}}var yi=function(i){i.animation=null,i.animationFrame=null,i.isAnimating=!1,i.resizeAnimation=null};function wr(i){var n=i.setup.autoAlignment.animationTime,e=Math.max(n/5,1);_(i);var r=Date.now(),o=function(){if(!(!i.mounted||i.animation!==o)){var a=Date.now(),t=Math.max(a-r,1);r=a;var l=$i(i);if(!l){yi(i);return}var s=i.state,d=s.scale,u=s.positionX,v=s.positionY,p=1-Math.exp(-t/e),m=u+(l.positionX-u)*p,f=v+(l.positionY-v)*p,h=Math.abs(l.positionX-m)<.5&&Math.abs(l.positionY-f)<.5;if(h&&(m=l.positionX,f=l.positionY),i.isAnimating=!h,i.setState(d,m,f),h){yi(i);return}i.animationFrame=requestAnimationFrame(o)}};i.animation=o,i.resizeAnimation=o,i.animationResolve=null,i.animationFrame=requestAnimationFrame(o)}function xi(i){if(i.setup.disabled){k(i,i.state.scale);return}if(Ji(i)){i.isResizeAlignmentPending=!0;return}var n=i.animation!==null&&i.animation===i.resizeAnimation;if(i.animation&&!n){var e=i.state.scale,r=i.setup,o=r.minScale,a=r.maxScale;if(e<o||e>a){i.isResizeAlignmentPending=!0;return}_(i)}var t=$i(i);if(!t){n&&yi(i);return}if(!n){if(i.setup.autoAlignment.animationTime===0){i.setState(t.scale,t.positionX,t.positionY);return}wr(i)}}function yr(i){var n=i.wrapperComponent,e=i.contentComponent;if(!(!n||!e)){var r=wi(n,e);cr(i.measuredSizes,r)&&(i.measuredSizes=r,xi(i))}}var Ii=function(i,n){var e=i.setup.wheel,r=e.disabled,o=e.wheelDisabled,a=e.touchPadDisabled,t=e.excluded,l=i.isInitialized,s=i.isPanning,d=n.target,u=l&&!s&&!r&&d;if(!u||n.deltaY===0||o&&!n.ctrlKey||a&&n.ctrlKey)return!1;var v=j(d,t);if(v)return!1;var p=i.isPressingKeys(i.setup.wheel.activationKeys);return!!p},br=function(i,n){var e=i.setup,r=e.disabled,o=e.trackPadPanning,a=o.activationKeys,t=o.excluded;if(!i.wrapperComponent||!i.contentComponent||r||o.disabled||n.ctrlKey)return!1;var l=Ii(i,n);if(l)return!1;var s=n.target,d=j(s,t);if(d)return!1;var u=i.isPressingKeys(a);return!!u},Pr=function(i){return i?i.deltaY<0?1:-1:0};function Sr(i,n){var e=Pr(i),r=pe(n,e);return r}function ie(i,n,e){var r=n.getBoundingClientRect(),o=0,a=0;if("clientX"in i)o=(i.clientX-r.left)/e,a=(i.clientY-r.top)/e;else{var t=i.touches[0];o=(t.clientX-r.left)/e,a=(t.clientY-r.top)/e}return Number.isNaN(o)||Number.isNaN(a)?(console.error("No mouse or touch offset found"),{x:0,y:0}):{x:o,y:a}}var Cr=function(i,n,e,r,o){var a=i.state.scale,t=i.wrapperComponent,l=i.setup,s=l.maxScale,d=l.minScale,u=l.zoomAnimation,v=l.disablePadding,p=u.size,m=u.disabled;if(!t)throw new Error("Wrapper is not mounted");var f=a+n*e,h=r?!1:!m,g=V(f,d,s,p,h&&!v);return g},ee=function(i,n){var e=i.previousWheelEvent,r=i.state.scale,o=i.setup,a=o.maxScale,t=o.minScale;return e?r<a||r>t||Math.sign(e.deltaY)!==Math.sign(n.deltaY)||e.deltaY>0&&e.deltaY<n.deltaY||e.deltaY<0&&e.deltaY>n.deltaY||Math.sign(e.deltaY)!==Math.sign(n.deltaY):!1},Tr=function(i,n){var e=i.setup.pinch,r=e.disabled,o=e.excluded,a=i.isInitialized,t=n.target,l=a&&!r&&t;if(!l)return!1;var s=j(t,o);return!s},Ar=function(i){var n=i.setup.pinch.disabled,e=i.isInitialized,r=i.pinchStartDistance,o=e&&!n&&r!==null;return!!o},Yr=function(i,n,e){var r=e.getBoundingClientRect(),o=i.touches,a=o[0].clientX-r.left,t=o[0].clientY-r.top,l=o[1].clientX-r.left,s=o[1].clientY-r.top;return{x:(a+l)/2/n,y:(t+s)/2/n}},re=function(i){return Math.sqrt(Math.pow(i.touches[0].pageX-i.touches[1].pageX,2)+Math.pow(i.touches[0].pageY-i.touches[1].pageY,2))},Xr=5,Er=function(i,n){var e=i.pinchStartScale,r=i.pinchStartDistance,o=i.setup,a=o.maxScale,t=o.minScale,l=o.zoomAnimation,s=o.disablePadding,d=o.pinch,u=l.size,v=l.disabled,p=d.step;if(!e||r===null)throw new Error("Pinch touches distance was not provided");if(n<0)return i.state.scale;var m=n/r,f=m*e,h=(f-e)*(p/Xr),g=e+h,c=g===1/0?0:R(g,10);return V(c,t,a,u,!v&&!s)},ne=160,oe=100,zr=function(i,n){var e=i.props,r=e.onWheelStart,o=e.onZoomStart;_(i),i.wheelStopEventTimer||(P(b(i),n,r),P(b(i),n,o))},_r=function(i,n){var e=i.props,r=e.onWheel,o=e.onZoom,a=i.contentComponent,t=i.setup,l=i.state,s=l.scale,d=t.limitToBounds,u=t.centerZoomedOut,v=t.zoomAnimation,p=t.wheel,m=t.disablePadding,f=t.smooth,h=v.size,g=v.disabled,c=p.step;if(!a)throw new Error("Component not mounted");n.cancelable&&n.preventDefault(),n.stopPropagation();var y=Sr(n,null),w=f?c*Math.abs(n.deltaY):c,S=Cr(i,y,w,!n.ctrlKey);if(s!==S){var X=k(i,S),T=ie(n,a,s),C=g||h===0||u||m,E=d&&C,A=oi(i,T.x,T.y,S,X,E),M=A.x,z=A.y;i.previousWheelEvent=n,i.setState(S,M,z),P(b(i),n,r),P(b(i),n,o)}},kr=function(i,n){var e=i.props,r=e.onWheelStop,o=e.onZoomStop;$(i.wheelAnimationTimer),i.wheelAnimationTimer=setTimeout(function(){i.mounted&&(Pi(i,n.x,n.y),i.wheelAnimationTimer=null,i.flushResizeAlignment())},oe);var a=ee(i,n);a&&($(i.wheelStopEventTimer),i.wheelStopEventTimer=setTimeout(function(){i.mounted&&(i.wheelStopEventTimer=null,P(b(i),n,r),P(b(i),n,o),i.flushResizeAlignment())},ne))},Wr=function(i,n){var e=i.props,r=e.onWheelStart,o=e.onPanningStart;_(i),i.wheelStopEventTimer||(i.wheelAnimationTimer||k(i,i.state.scale),P(b(i),n,r),P(b(i),n,o))},Or=function(i,n){var e=i.props,r=e.onWheelStop,o=e.onPanningStop;$(i.wheelAnimationTimer),i.wheelAnimationTimer=setTimeout(function(){i.mounted&&(Pi(i,n.x,n.y),i.wheelAnimationTimer=null,i.flushResizeAlignment())},oe);var a=ee(i,n);a&&($(i.wheelStopEventTimer),i.wheelStopEventTimer=setTimeout(function(){i.mounted&&(i.wheelStopEventTimer=null,P(b(i),n,r),P(b(i),n,o),i.flushResizeAlignment())},ne))},ae=function(i){for(var n=0,e=0,r=0;r<2;r+=1)n+=i.touches[r].clientX,e+=i.touches[r].clientY;var o=n/2,a=e/2;return{x:o,y:a}},Mr=function(i,n){var e=re(n);i.pinchStartDistance=e,i.lastDistance=e,i.pinchStartScale=i.state.scale,i.isPanning=!1,i.isPinching=!0,i.pinchPreviousCenter=ae(n),_(i)},Dr=function(i,n){var e=i.contentComponent,r=i.pinchStartDistance,o=i.wrapperComponent,a=i.pinchPreviousCenter,t=i.state.scale,l=i.setup,s=l.limitToBounds,d=l.centerZoomedOut,u=l.zoomAnimation,v=l.autoAlignment,p=l.pinch,m=l.panning,f=u.disabled,h=u.size,g=p.allowPanning;if(!(r===null||!e)){var c=Yr(n,t,e);if(!(!Number.isFinite(c.x)||!Number.isFinite(c.y))){var y=re(n),w=Er(i,y),S=ae(n),X=t/w,T=(S.x-((a==null?void 0:a.x)||0))*X,C=(S.y-((a==null?void 0:a.y)||0))*X;if(!(w===t&&T===0&&C===0)){i.pinchPreviousCenter=S;var E=k(i,w),A=f||h===0||d,M=s&&A,z=oi(i,c.x,c.y,w,E,M),D=z.x,W=z.y;if(i.pinchMidpoint=c,i.lastDistance=y,m.disabled||!g)i.setState(w,D,W);else{var N=v.sizeX,U=v.sizeY,li=K(i,N,w),si=K(i,U,w),I=D+T,ui=W+C,ii=F(I,ui,E,s,li,si,o),Q=ii.x,di=ii.y;i.setState(w,Q,di)}}}}},Nr=function(i){var n=i.pinchMidpoint;i.velocity=null,i.lastDistance=null,i.pinchMidpoint=null,i.pinchStartScale=null,i.pinchStartDistance=null,i.isPinching=!1,Pi(i,n==null?void 0:n.x,n==null?void 0:n.y)},te=function(i,n){var e=i.props.onZoomStop,r=i.setup.doubleClick.animationTime;$(i.doubleClickStopEventTimer),i.doubleClickStopEventTimer=setTimeout(function(){i.doubleClickStopEventTimer=null,i.mounted&&P(b(i),n,e)},r)},Rr=function(i,n){var e=i.props,r=e.onZoomStart,o=e.onZoom,a=i.setup.doubleClick,t=a.animationTime,l=a.animationType;P(b(i),n,r),ji(i,t,l,function(){return P(b(i),n,o)}),te(i,n)};function Br(i,n){return i==="toggle"?n===1?1:-1:i==="zoomOut"?-1:1}function Lr(i,n){var e=i.setup,r=i.doubleClickStopEventTimer,o=i.state,a=i.contentComponent,t=o.scale,l=i.props,s=l.onZoomStart,d=l.onZoom,u=e.doubleClick,v=u.disabled,p=u.mode,m=u.step,f=u.animationTime,h=u.animationType;if(!v&&!r){if(p==="reset")return Rr(i,n);if(!a)return console.error("No ContentComponent found");var g=Br(p,i.state.scale),c=Fi(i,g,m);if(t!==c){P(b(i),n,s);var y=ie(n,a,t),w=ai(i,c,y.x,y.y);if(!w)return console.error("Error during zoom event. New transformation state was not calculated.");P(b(i),n,d),H(i,w,f,h),te(i,n)}}}var Kr=function(i,n){var e=i.isInitialized,r=i.setup,o=i.wrapperComponent,a=r.doubleClick,t=a.disabled,l=a.excluded,s=n.target,d=o==null?void 0:o.contains(s),u=e&&s&&d&&!t;if(!u)return!1;var v=j(s,l);return!(v||Ci(s))},Hr=(function(){function i(n){var e=this;this.mounted=!0,this.onChangeCallbacks=new Set,this.onInitCallbacks=new Set,this.onTransformCallbacks=new Set,this.wrapperComponent=null,this.contentComponent=null,this.isInitialized=!1,this.bounds=null,this.previousWheelEvent=null,this.wheelStopEventTimer=null,this.wheelAnimationTimer=null,this.isPanning=!1,this.isWheelPanning=!1,this.startCoords=null,this.panStartPosition=null,this.lastTouch=null,this.isPinching=!1,this.distance=null,this.lastDistance=null,this.pinchStartDistance=null,this.pinchStartScale=null,this.pinchMidpoint=null,this.pinchPreviousCenter=null,this.doubleClickStopEventTimer=null,this.velocity=null,this.velocityTime=null,this.lastMousePosition=null,this.isAnimating=!1,this.animation=null,this.animationFrame=null,this.animationResolve=null,this.initObserverTimer=null,this.isInitialLayoutPending=!1,this.measuredSizes=null,this.isResizeAlignmentPending=!1,this.resizeAnimation=null,this.pressedKeys={},this.selectionLock=null,this.mount=function(){e.mounted=!0,e.initializeWindowEvents()},this.unmount=function(){e.mounted=!1,e.cleanupWindowEvents()},this.update=function(r){e.props=r,e.setup=Ri(r),e.wrapperComponent&&e.contentComponent&&!gr(e)&&k(e,e.state.scale)},this.clearTimers=function(){e.wheelStopEventTimer&&clearTimeout(e.wheelStopEventTimer),e.wheelAnimationTimer&&clearTimeout(e.wheelAnimationTimer),e.doubleClickStopEventTimer&&clearTimeout(e.doubleClickStopEventTimer),e.initObserverTimer&&clearTimeout(e.initObserverTimer),e.wheelStopEventTimer=null,e.wheelAnimationTimer=null,e.doubleClickStopEventTimer=null,e.initObserverTimer=null},this.initializeWindowEvents=function(){var r,o,a,t,l=ei(),s=(r=e.wrapperComponent)===null||r===void 0?void 0:r.ownerDocument,d=s==null?void 0:s.defaultView;(o=e.wrapperComponent)===null||o===void 0||o.addEventListener("wheel",e.onWheelPanning,l),(a=e.wrapperComponent)===null||a===void 0||a.addEventListener("keyup",e.setKeyUnPressed,l),(t=e.wrapperComponent)===null||t===void 0||t.addEventListener("keydown",e.setKeyPressed,l),d==null||d.addEventListener("mousedown",e.onPanningStart,l),d==null||d.addEventListener("mousemove",e.onPanning,l),d==null||d.addEventListener("mouseup",e.onPanningStop,l),s==null||s.addEventListener("mouseleave",e.clearPanning,l),d==null||d.addEventListener("keyup",e.setKeyUnPressed,l),d==null||d.addEventListener("keydown",e.setKeyPressed,l),d==null||d.addEventListener("blur",e.handleWindowBlur)},this.cleanupWindowEvents=function(){var r,o,a,t,l,s=ei(),d=(r=e.wrapperComponent)===null||r===void 0?void 0:r.ownerDocument,u=d==null?void 0:d.defaultView;u==null||u.removeEventListener("mousedown",e.onPanningStart,s),u==null||u.removeEventListener("mousemove",e.onPanning,s),u==null||u.removeEventListener("mouseup",e.onPanningStop,s),d==null||d.removeEventListener("mouseleave",e.clearPanning,s),u==null||u.removeEventListener("keyup",e.setKeyUnPressed,s),u==null||u.removeEventListener("keydown",e.setKeyPressed,s),u==null||u.removeEventListener("blur",e.handleWindowBlur),(o=e.wrapperComponent)===null||o===void 0||o.removeEventListener("wheel",e.onWheelPanning,s),(a=e.wrapperComponent)===null||a===void 0||a.removeEventListener("keyup",e.setKeyUnPressed,s),(t=e.wrapperComponent)===null||t===void 0||t.removeEventListener("keydown",e.setKeyPressed,s),e.cleanupWrapperEvents(),e.clearTimers(),_(e),e.unlockTextSelection(),(l=e.observer)===null||l===void 0||l.disconnect(),e.observer=void 0,e.isInitialLayoutPending=!1,e.isResizeAlignmentPending=!1,e.resizeAnimation=null},this.cleanupWrapperEvents=function(){var r=e.wrapperComponent;if(r){var o=ei();r.removeEventListener("wheel",e.onWheelZoom,o),r.removeEventListener("dblclick",e.onDoubleClick,o),r.removeEventListener("keydown",e.onKeyboardNavigation,o),r.removeEventListener("touchstart",e.onTouchPanningStart,o),r.removeEventListener("touchmove",e.onTouchPanning,o),r.removeEventListener("touchend",e.onTouchPanningStop,o)}},this.handleInitializeWrapperEvents=function(r){var o=ei();r.addEventListener("wheel",e.onWheelZoom,o),r.addEventListener("dblclick",e.onDoubleClick,o),r.addEventListener("keydown",e.onKeyboardNavigation,o),r.addEventListener("touchstart",e.onTouchPanningStart,o),r.addEventListener("touchmove",e.onTouchPanning,o),r.addEventListener("touchend",e.onTouchPanningStop,o)},this.handleInitialize=function(){var r=e.setup,o=r.centerOnInit,a=r.fitOnInit;if(e.applyTransformation(),e.onInitCallbacks.forEach(function(l){return l(b(e))}),o||a){var t=e.applyInitialLayout();e.isInitialLayoutPending=!0,e.initObserverTimer&&clearTimeout(e.initObserverTimer),t&&(e.initObserverTimer=setTimeout(function(){e.initObserverTimer=null,e.isInitialLayoutPending=!1},5e3))}},this.observeSizes=function(r,o){var a;(a=e.observer)===null||a===void 0||a.disconnect(),e.observer=void 0,e.measuredSizes=wi(r,o),!(typeof ResizeObserver>"u")&&(e.observer=new ResizeObserver(e.onSizeChange),e.observer.observe(r),e.observer.observe(o))},this.onSizeChange=function(){var r=e,o=r.wrapperComponent,a=r.contentComponent;if(!(!e.mounted||!o||!a)){if(e.isInitialLayoutPending){var t=(a.offsetWidth>0||a.offsetHeight>0)&&o.clientWidth>0&&o.clientHeight>0;if(!t)return;e.isInitialLayoutPending=!1,e.initObserverTimer&&clearTimeout(e.initObserverTimer),e.initObserverTimer=null,e.onInitCallbacks.forEach(function(l){return l(b(e))}),e.applyInitialLayout(),e.measuredSizes=wi(o,a),k(e,e.state.scale);return}yr(e)}},this.flushResizeAlignment=function(){e.isResizeAlignmentPending&&(e.isResizeAlignmentPending=!1,xi(e))},this.onWheelZoom=function(r){var o=e.setup.disabled;if(!o){e.syncModifierKeys(r);var a=Ii(e,r);a&&(zr(e,r),_r(e,r),kr(e,r))}},this.onWheelPanning=function(r){var o=e.props.onPanning,a=e.setup.trackPadPanning,t=a.lockAxisX,l=a.lockAxisY;e.syncModifierKeys(r);var s=br(e,r);if(s){r.cancelable&&r.preventDefault(),r.stopPropagation();var d=e.state,u=d.positionX,v=d.positionY,p=u-r.deltaX,m=v-r.deltaY,f=t?u:p,h=l?v:m,g=e.setup.autoAlignment,c=g.sizeX,y=g.sizeY,w=K(e,c),S=K(e,y);f===u&&h===v||(Wr(e,r),Ki(e,f,h,w,S),P(b(e),r,o),Or(e,r))}},this.onPanningStart=function(r){var o=e.setup,a=o.disabled,t=o.panning,l=e.props.onPanningStart;if(!(a||t.disabled)){e.syncModifierKeys(r);var s=ki(e,r);if(s){var d=e.isPressingKeys(e.setup.panning.activationKeys);d&&(r.button===0&&!e.setup.panning.allowLeftClickPan||r.button===1&&!e.setup.panning.allowMiddleClickPan||r.button===2&&!e.setup.panning.allowRightClickPan||(r.cancelable&&r.preventDefault(),r.stopPropagation(),_(e),Mi(e,r),e.lockTextSelection(),e.focusForKeyboard(),P(b(e),r,l)))}}},this.onPanning=function(r){var o=e.setup.disabled,a=e.props.onPanning;if(!o){if(e.syncModifierKeys(r),e.isPanning&&r.buttons===0){e.clearPanning(r);return}var t=Wi(e);if(t){var l=e.isPressingKeys(e.setup.panning.activationKeys);l&&(r.cancelable&&r.preventDefault(),r.stopPropagation(),Di(e,r.clientX,r.clientY,B.MOUSE),P(b(e),r,a))}}},this.onPanningStop=function(r){var o=e.setup.panning.velocityDisabled,a=e.props.onPanningStop;e.isPanning&&(e.unlockTextSelection(),He(e,o),P(b(e),r,a),e.flushResizeAlignment())},this.onPinchStart=function(r){var o=e.setup.disabled,a=e.props.onPinchStart;if(!o){var t=Tr(e,r);t&&(Mr(e,r),_(e),P(b(e),r,a))}},this.onPinch=function(r){var o=e.setup.disabled,a=e.props.onPinch;if(!o){var t=Ar(e);t&&(r.cancelable&&r.preventDefault(),r.stopPropagation(),Dr(e,r),P(b(e),r,a))}},this.onPinchStop=function(r){var o=e.props.onPinchStop;e.pinchStartScale&&(Nr(e),P(b(e),r,o),e.flushResizeAlignment())},this.onTouchPanningStart=function(r){var o=e.setup,a=o.disabled,t=o.doubleClick,l=e.props.onPanningStart;if(!a){var s=!(t!=null&&t.disabled),d=e.lastTouch&&+new Date-e.lastTouch<200;if(s&&d&&r.touches.length===1)e.lastTouch=null,e.onDoubleClick(r);else{e.lastTouch=+new Date,_(e);var u=r.touches,v=u.length===1,p=u.length===2,m=ki(e,r);if(v){if(!m||e.setup.panning.disabled)return;_(e),Mi(e,r),e.lockTextSelection(),e.focusForKeyboard(),P(b(e),r,l)}p&&e.onPinchStart(r)}}},this.onTouchPanning=function(r){var o=e.setup.disabled,a=e.props.onPanning;if(e.isPanning&&r.touches.length===1){if(o)return;var t=Wi(e);if(!t)return;r.cancelable&&r.preventDefault(),r.stopPropagation();var l=r.touches[0];Di(e,l.clientX,l.clientY,B.TOUCH),P(b(e),r,a)}else r.touches.length>1&&e.onPinch(r)},this.onTouchPanningStop=function(r){e.onPanningStop(r),e.onPinchStop(r)},this.onDoubleClick=function(r){var o=e.setup.disabled;if(!o){var a=Kr(e,r);a&&Lr(e,r)}},this.clearPanning=function(r){e.isPanning&&e.onPanningStop(r)},this.handleWindowBlur=function(){e.pressedKeys={},e.isPanning&&(e.isPanning=!1,e.startCoords=null),e.unlockTextSelection(),e.flushResizeAlignment()},this.syncModifierKeys=function(r){var o=r.ctrlKey,a=r.metaKey,t=r.shiftKey,l=r.altKey;typeof o=="boolean"&&(e.pressedKeys.Control=o),typeof a=="boolean"&&(e.pressedKeys.Meta=a),typeof t=="boolean"&&(e.pressedKeys.Shift=t),typeof l=="boolean"&&(e.pressedKeys.Alt=l)},this.setKeyPressed=function(r){e.pressedKeys[r.key]=!0},this.setKeyUnPressed=function(r){e.pressedKeys[r.key]=!1},this.isPressingKeys=function(r){return typeof r=="function"?r(Object.entries(e.pressedKeys).filter(function(o){var a=o[1];return a}).map(function(o){var a=o[0];return a})):r.length?!!r.every(function(o){return e.pressedKeys[o]}):!0},this.onKeyboardNavigation=function(r){hr(e,r)},this.focusForKeyboard=function(){var r,o=e.wrapperComponent;if(!(!o||e.setup.keyboard.disabled)){var a=(r=o.ownerDocument)===null||r===void 0?void 0:r.activeElement;a&&o.contains(a)||typeof o.focus=="function"&&o.focus({preventScroll:!0})}},this.lockTextSelection=function(){var r=e.wrapperComponent;!r||e.selectionLock||(e.selectionLock={userSelect:r.style.userSelect,webkitUserSelect:r.style.webkitUserSelect},r.style.userSelect="none",r.style.webkitUserSelect="none")},this.unlockTextSelection=function(){var r=e.selectionLock;e.selectionLock=null;var o=e.wrapperComponent;!o||!r||(o.style.userSelect=r.userSelect,o.style.webkitUserSelect=r.webkitUserSelect)},this.applyInitialLayout=function(){var r=e.setup.fitOnInit,o=e,a=o.wrapperComponent,t=o.contentComponent,l=!!a&&!!t&&a.clientWidth>0&&a.clientHeight>0&&(t.offsetWidth>0||t.offsetHeight>0);if(r){var s=Si(e,r==="cover"?"cover":"contain");if(s)return e.setState(s.scale,s.positionX,s.positionY),l}return e.setCenter(),l},this.setCenter=function(){if(e.wrapperComponent&&e.contentComponent){var r=ti(e.state.scale,e.wrapperComponent,e.contentComponent);e.setState(r.scale,r.positionX,r.positionY)}},this.handleTransformStyles=function(r,o,a){return e.props.customTransform?e.props.customTransform(r,o,a):qi(r,o,a)},this.getContext=function(){return b(e)},this.applyTransformation=function(){if(!(!e.mounted||!e.contentComponent)){var r=e.state,o=r.scale,a=r.positionX,t=r.positionY,l=e.handleTransformStyles(a,t,o);e.props.detached||(e.contentComponent.style.transform=l),e.onTransformCallbacks.forEach(function(s){return s({scale:o,positionX:a,positionY:t,previousScale:e.state.previousScale,ref:b(e)})})}},this.setState=function(r,o,a){var t=e.props.onTransform;if(!Number.isNaN(r)&&!Number.isNaN(o)&&!Number.isNaN(a)){var l=Math.max(r,1e-7);l!==e.state.scale&&(e.state.previousScale=e.state.scale,e.state.scale=l),e.state.positionX=o,e.state.positionY=a,e.applyTransformation();var s=b(e);e.onChangeCallbacks.forEach(function(d){return d(s)}),P(s,{scale:e.state.scale,positionX:o,positionY:a},t)}else console.error("Detected NaN set state values")},this.onTransform=function(r){return e.onTransformCallbacks.has(r)||e.onTransformCallbacks.add(r),function(){e.onTransformCallbacks.delete(r)}},this.onChange=function(r){return e.onChangeCallbacks.has(r)||e.onChangeCallbacks.add(r),function(){e.onChangeCallbacks.delete(r)}},this.onInit=function(r){return e.onInitCallbacks.has(r)||e.onInitCallbacks.add(r),function(){e.onInitCallbacks.delete(r)}},this.init=function(r,o){e.mounted=!0,e.cleanupWindowEvents(),e.wrapperComponent=r,e.contentComponent=o,k(e,e.state.scale),e.handleInitializeWrapperEvents(r),e.handleInitialize(),e.observeSizes(r,o),e.initializeWindowEvents(),e.isInitialized=!0;var a=b(e);P(a,void 0,e.props.onInit),vr(e.props.ref,a)},this.props=n,this.setup=Ri(this.props),this.state=Zi(this.props)}return i})(),x=ni.createContext(null),Zr=function(i,n){return typeof i=="function"?i(n):i},qr=ni.forwardRef(function(i,n){var e=Y.useRef(null);e.current===null&&(e.current=new Hr(i));var r=e.current,o=Zr(i.children,J(r));return Y.useImperativeHandle(n,function(){return J(r)},[r]),Y.useEffect(function(){return r.mount(),function(){r.unmount()}},[r]),Y.useEffect(function(){r.update(i)},[r,i]),L.jsx(x.Provider,O({value:r},{children:o}))});ni.forwardRef(function(i,n){var e=Y.useRef(null),r=Y.useContext(x);return Ti(function(){var o=function(a){if(e.current){var t=0,l=0;e.current.style.transform=r.handleTransformStyles(t,l,1/a)}};return o(r.state.scale),r.onChange(function(a){o(a.instance.state.scale)})},[r]),L.jsx("div",O({},i,{ref:pr([e,n])}))});function Fr(i,n){n===void 0&&(n={});var e=n.insertAt;if(!(typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",e==="top"&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=i:o.appendChild(document.createTextNode(i))}}var Vr=`.transform-component-module_wrapper__SPB86 {
1
+ import{R as ni,r as Y,j as L}from"./index-p3WivF1M.js";var R=function(i,n){return Number(i.toFixed(n))},pe=function(i,n){return typeof i=="number"?i:n},P=function(i,n,e){e&&typeof e=="function"&&e(i,n)},fe=function(i){return-Math.cos(i*Math.PI)/2+.5},me=function(i){return i},he=function(i){return i*i},ce=function(i){return i*(2-i)},ge=function(i){return i<.5?2*i*i:-1+(4-2*i)*i},we=function(i){return i*i*i},ye=function(i){return--i*i*i+1},be=function(i){return i<.5?4*i*i*i:(i-1)*(2*i-2)*(2*i-2)+1},Pe=function(i){return i*i*i*i},Se=function(i){return 1- --i*i*i*i},Ce=function(i){return i<.5?8*i*i*i*i:1-8*--i*i*i*i},Te=function(i){return i*i*i*i*i},Ae=function(i){return 1+--i*i*i*i*i},Ye=function(i){return i<.5?16*i*i*i*i*i:1+16*--i*i*i*i*i},Bi={easeOut:fe,linear:me,easeInQuad:he,easeOutQuad:ce,easeInOutQuad:ge,easeInCubic:we,easeOutCubic:ye,easeInOutCubic:be,easeInQuart:Pe,easeOutQuart:Se,easeInOutQuart:Ce,easeInQuint:Te,easeOutQuint:Ae,easeInOutQuint:Ye},Xe=function(i){var n=i.animationResolve;i.animationResolve=null,n==null||n()},_=function(i){i.animationFrame!==null&&cancelAnimationFrame(i.animationFrame),i.animationFrame=null,i.isAnimating=!1,i.animation=null,i.velocity=null,Xe(i)};function Li(i,n,e,r,o){if(!i.mounted){o==null||o();return}var a=new Date().getTime(),t=1;_(i);var l=function(){if(!(!i.mounted||i.animation!==l)){var s=new Date().getTime()-a,d=s/e,u=Bi[n],v=u(d);if(s>=e){i.animation=null,i.animationFrame=null;var p=i.animationResolve;i.animationResolve=null,r(t),p==null||p(),i.flushResizeAlignment()}else r(v),i.animationFrame=requestAnimationFrame(l)}};i.animation=l,i.animationResolve=o??null,i.animationFrame=requestAnimationFrame(l)}function Ee(i){var n=i.scale,e=i.positionX,r=i.positionY;return!(Number.isNaN(n)||Number.isNaN(e)||Number.isNaN(r))}function H(i,n,e,r){var o=Ee(n);if(!i.mounted||!o)return Promise.resolve();var a=i.setState,t=i.state,l=t.scale,s=t.positionX,d=t.positionY,u=n.scale-l,v=n.positionX-s,p=n.positionY-d;return e===0?(a(n.scale,n.positionX,n.positionY),Promise.resolve()):new Promise(function(m){Li(i,r,e,function(f){f!==1?i.isAnimating=!0:i.isAnimating=!1;var h=l+u*f,g=s+v*f,c=d+p*f;a(h,g,c)},m)})}function ze(i,n,e){var r=i.clientWidth,o=i.clientHeight,a=n.offsetWidth,t=n.offsetHeight,l=a*e,s=t*e,d=r-l,u=o-s;return{wrapperWidth:r,wrapperHeight:o,newContentWidth:l,newDiffWidth:d,newContentHeight:s,newDiffHeight:u}}var _e=function(i,n,e,r,o,a,t){var l=i>n?e*(t?.5:1):0,s=r>o?a*(t?.5:1):0,d=i-n-l,u=l,v=r-o-s,p=s;return{minPositionX:d,maxPositionX:u,minPositionY:v,maxPositionY:p,scaleWidthFactor:l,scaleHeightFactor:s}},bi=function(i,n){var e=i.wrapperComponent,r=i.contentComponent,o=i.setup,a=o.centerZoomedOut,t=o.disablePadding;if(!e||!r)throw new Error("Components are not mounted");var l=ze(e,r,n),s=l.wrapperWidth,d=l.wrapperHeight,u=l.newContentWidth,v=l.newContentHeight,p=l.newDiffWidth,m=l.newDiffHeight,f=_e(s,u,p,d,v,m,!!a),h=s>=u&&d>=v;t&&h&&!a&&(f.minPositionX=0,f.maxPositionX=0,f.minPositionY=0,f.maxPositionY=0);var g=i.setup,c=g.minPositionX,y=g.maxPositionX,w=g.minPositionY,S=g.maxPositionY;return c!=null&&(f.minPositionX=s*(1-n)+c*n),y!=null&&(f.maxPositionX=y*n),w!=null&&(f.minPositionY=d*(1-n)+w*n),S!=null&&(f.maxPositionY=S*n),f},G=function(i,n,e,r){return r?i<n?R(n,2):i>e?R(e,2):R(i,2):R(i,2)},k=function(i,n){var e=bi(i,n);return i.bounds=e,e};function F(i,n,e,r,o,a,t){var l=e.minPositionX,s=e.minPositionY,d=e.maxPositionX,u=e.maxPositionY,v=0,p=0;t&&(v=o,p=a);var m=G(i,l-v,d+v,r),f=G(n,s-p,u+p,r);return{x:m,y:f}}function oi(i,n,e,r,o,a){var t=i.state,l=t.scale,s=t.positionX,d=t.positionY,u=r-l;if(!Number.isFinite(n)||!Number.isFinite(e))return console.error("Mouse X and Y position were not provided!"),{x:s,y:d};var v=s-n*u,p=d-e*u,m=F(v,p,o,a,0,0,null);return m}var _i=1e-7;function V(i,n,e,r,o){var a=o?r:0,t=Math.max(n-a,_i),l=e+a;return!Number.isNaN(e)&&i>=l?l:!Number.isNaN(n)&&i<=t?t:Math.max(i,_i)}var ki=function(i,n){var e=i.setup.panning.excluded,r=i.isInitialized,o=i.wrapperComponent,a=n.target,t=function(u){return!!u&&typeof u=="object"&&u.nodeType===1&&typeof u.contains=="function"},l=typeof n.composedPath=="function"?n.composedPath().some(function(u){return t(u)&&!!(o!=null&&o.contains(u))}):!!(o!=null&&o.contains(a)),s=r&&a&&l;if(!s)return!1;var d=j(a,e);return!(d||ur(a)||Ci(a))},Wi=function(i){var n=i.isInitialized,e=i.isPanning,r=i.setup,o=r.panning.disabled,a=n&&e&&!o;return!!a},ke=function(i,n){var e=i.state,r=e.positionX,o=e.positionY;i.isPanning=!0;var a=n.clientX,t=n.clientY;i.startCoords={x:a-r,y:t-o}},We=function(i,n){var e=n.touches,r=i.state,o=r.positionX,a=r.positionY;i.isPanning=!0;var t=e.length===1;if(t){var l=e[0].clientX,s=e[0].clientY;i.startCoords={x:l-o,y:s-a}}};function Oe(i){var n=i.state,e=n.positionX,r=n.positionY,o=n.scale,a=i.setup,t=a.disabled,l=a.limitToBounds,s=a.centerZoomedOut,d=i.wrapperComponent;if(!(t||!d||!i.bounds)){var u=i.bounds,v=u.maxPositionX,p=u.minPositionX,m=u.maxPositionY,f=u.minPositionY,h=e>v||e<p,g=r>m||r<f,c=e>v?d.clientWidth:i.setup.minPositionX||0,y=r>m?d.clientHeight:i.setup.minPositionY||0,w=oi(i,c,y,o,i.bounds,l||s),S=w.x,X=w.y;return{scale:o,positionX:h?S:e,positionY:g?X:r}}}function Ki(i,n,e,r,o){var a=i.setup.limitToBounds,t=i.wrapperComponent,l=i.bounds,s=i.state,d=s.scale,u=s.positionX,v=s.positionY;if(!(t===null||l===null||n===u&&e===v)){var p=F(n,e,l,a,r,o,t),m=p.x,f=p.y;i.setState(d,m,f)}}var Me=function(i,n,e){var r=i.startCoords,o=i.state,a=i.setup.panning,t=a.lockAxisX,l=a.lockAxisY,s=o.positionX,d=o.positionY;if(!r)return{x:s,y:d};var u=n-r.x,v=e-r.y,p=t?s:u,m=l?d:v;return{x:p,y:m}},K=function(i,n,e){var r=i.setup,o=i.state,a=r.minScale,t=r.disablePadding,l=r.centerZoomedOut,s=e??o.scale;return n>0&&s>=a&&!t&&!l?n:0},B;(function(i){i.TRACK_PAD="track_pad",i.MOUSE="mouse",i.TOUCH="touch"})(B||(B={}));var De=function(i){var n=i.mounted,e=i.wrapperComponent,r=i.contentComponent,o=i.setup,a=o.disabled,t=o.velocityAnimation,l=o.limitToBounds,s=i.state.scale,d=t.disabled;if(d||a||!n||!e||!r)return!1;if(!l)return!0;var u=e.clientWidth<r.offsetWidth*s||e.clientHeight<r.offsetHeight*s;return u},Ne=function(i){var n=i.mounted,e=i.velocity,r=i.bounds,o=i.setup,a=o.disabled,t=o.velocityAnimation,l=t.disabled,s=!l&&!a&&n;return!(!s||!e||!r)};function Re(i,n){var e=i.setup.velocityAnimation,r=e.animationTime,o=e.maxAnimationTime,a=e.inertia;return Math.min(r*Math.max(1,Math.abs(n/a)),o)}function Oi(i,n,e,r,o,a,t,l,s,d){if(o){if(n>t&&e>t){var u=t+(i-t)*d;return u>s?s:u<t?t:u}if(n<a&&e<a){var u=a+(i-a)*d;return u<l?l:u>a?a:u}}return r?n:G(i,a,t,o)}function Be(i){var n=1,e=i.clientWidth/window.innerWidth;return Number.isNaN(e)?n:Math.min(n,e)}var fi=function(i,n,e){var r=0,o=i*e;return Number.isNaN(o)?r:i<0?Math.max(o,-n):Math.min(o,n)};function Le(i,n,e){var r,o,a=De(i);if(a){var t=i.lastMousePosition,l=i.velocityTime,s=i.setup,d=i.wrapperComponent,u=s.velocityAnimation,v=u.maxStrengthMouse,p=u.maxStrengthTouch,m=u.sensitivityTouch,f=u.sensitivityMouse,h=Date.now();if(t&&l&&d){var g=Be(d),c=(r={},r[B.TOUCH]=m,r[B.MOUSE]=f,r)[e],y=(o={},o[B.TOUCH]=p,o[B.MOUSE]=v,o)[e],w=n.x-t.x,S=n.y-t.y,X=fi(w/g,y,c),T=fi(S/g,y,c),C=h-l,E=w*w+S*S,A=fi(Math.sqrt(E)/C,y,c);i.velocity={velocityX:X,velocityY:T,total:A}}i.lastMousePosition=n,i.velocityTime=h}}function Ke(i){var n=i.velocity,e=i.bounds,r=i.setup,o=i.wrapperComponent,a=Ne(i);if(!(!a||!n||!e||!o)){var t=n.velocityX,l=n.velocityY,s=n.total,d=e.maxPositionX,u=e.minPositionX,v=e.maxPositionY,p=e.minPositionY,m=r.limitToBounds,f=r.autoAlignment,h=r.zoomAnimation,g=r.panning,c=g.lockAxisY,y=g.lockAxisX,w=h.animationType,S=f.sizeX,X=f.sizeY,T=f.velocityAlignmentTime,C=T,E=Re(i,s),A=Math.max(E,C),M=K(i,S),z=K(i,X),D=M*o.clientWidth/100,W=z*o.clientHeight/100,N=d+D,U=u-D,li=v+W,si=p-W,I=i.state,ui=new Date().getTime();Li(i,w,A,function(ii){var Q=i.state,di=Q.scale,vi=Q.positionX,pi=Q.positionY,le=new Date().getTime()-ui,se=le/C,ue=Bi[f.animationType],Ai=1-ue(Math.min(1,se)),Yi=1-ii,Xi=vi+t*Yi,Ei=pi+l*Yi,de=Oi(Xi,I.positionX,vi,y,m,u,d,U,N,Ai),ve=Oi(Ei,I.positionY,pi,c,m,p,v,si,li,Ai);if(vi!==Xi||pi!==Ei){i.setState(di,de,ve);var zi=i.props.onPanning;zi&&zi(b(i),{})}})}}function Mi(i,n){var e=i.state,r=e.scale,o=e.positionX,a=e.positionY;i.panStartPosition={x:o,y:a},_(i),k(i,r),"touches"in n?We(i,n):ke(i,n)}function Hi(i,n){var e=i.state.scale,r=i.setup,o=r.minScale,a=r.autoAlignment,t=a.disabled,l=a.sizeX,s=a.sizeY,d=a.animationTime,u=a.animationType,v=t||e<o||!l&&!s;if(!v){i.isResizeAlignmentPending&&k(i,e);var p=Oe(i);if(p){var m=i.state,f=m.positionX,h=m.positionY,g=p.positionX===f&&p.positionY===h;g||H(i,p,d,u)}}}function Di(i,n,e,r){var o=i.startCoords,a=i.setup,t=a.autoAlignment,l=t.sizeX,s=t.sizeY;if(o){var d=Me(i,n,e),u=d.x,v=d.y,p=K(i,l),m=K(i,s);Le(i,{x:u,y:v},r),Ki(i,u,v,p,m)}}function He(i,n){if(i.isPanning){var e=i.velocity,r=i.wrapperComponent,o=i.contentComponent;i.isPanning=!1;var a=i.state,t=a.positionX,l=a.positionY,s=a.scale,d=i.panStartPosition;if(i.panStartPosition=null,d){var u=t-d.x,v=l-d.y;if(u*u+v*v<=25)return}i.isAnimating=!1,i.animation=null,i.isResizeAlignmentPending&&k(i,s);var p=(r==null?void 0:r.clientWidth)||0,m=(r==null?void 0:r.clientHeight)||0,f=((o==null?void 0:o.offsetWidth)||0)*s,h=((o==null?void 0:o.offsetHeight)||0)*s,g=!i.setup.limitToBounds||p<f||m<h,c=!n&&e&&e.total>.1&&g;c?Ke(i):Hi(i)}}function ai(i,n,e,r){var o=i.setup,a=o.minScale,t=o.maxScale,l=o.limitToBounds,s=V(R(n,2),a,t,0,!1),d=k(i,s),u=oi(i,e,r,s,d,l),v=u.x,p=u.y;return{scale:s,positionX:v,positionY:p}}function Pi(i,n,e){var r=i.state.scale,o=i.wrapperComponent,a=i.setup,t=a.minScale,l=a.maxScale,s=a.limitToBounds,d=a.zoomAnimation,u=d.disabled,v=d.animationTime,p=d.animationType,m=r>=t&&r<=l,f=u||m;if((r>=1||s)&&Hi(i),!(f||!o||!i.mounted)){var h=n||o.clientWidth/2,g=e||o.clientHeight/2,c=r<t?t:l,y=ai(i,c,h,g);y&&H(i,y,v,p)}}var O=function(){return O=Object.assign||function(n){for(var e,r=1,o=arguments.length;r<o;r++){e=arguments[r];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a])}return n},O.apply(this,arguments)};function Ni(i,n,e){for(var r=0,o=n.length,a;r<o;r++)(a||!(r in n))&&(a||(a=Array.prototype.slice.call(n,0,r)),a[r]=n[r]);return i.concat(a||Array.prototype.slice.call(n))}var mi={scale:1,positionX:0,positionY:0},Z={disabled:!1,minPositionX:null,maxPositionX:null,minPositionY:null,maxPositionY:null,minScale:1,maxScale:8,limitToBounds:!0,centerZoomedOut:!1,centerOnInit:!1,fitOnInit:!1,disablePadding:!1,smooth:!0,detached:!1,wheel:{step:.015,disabled:!1,wheelDisabled:!1,touchPadDisabled:!1,activationKeys:[],excluded:[]},trackPadPanning:{disabled:!0,velocityDisabled:!1,lockAxisX:!1,lockAxisY:!1,activationKeys:[],excluded:[]},panning:{disabled:!1,velocityDisabled:!1,lockAxisX:!1,lockAxisY:!1,allowLeftClickPan:!0,allowMiddleClickPan:!0,allowRightClickPan:!0,activationKeys:[],excluded:[]},pinch:{step:5,disabled:!1,allowPanning:!0,excluded:[]},keyboard:{disabled:!0,panStep:50,zoomStep:.25,animationTime:100,animationType:"easeOut",excluded:[]},doubleClick:{disabled:!1,step:.7,mode:"zoomIn",animationType:"easeOut",animationTime:200,excluded:[]},zoomAnimation:{disabled:!1,size:.4,animationTime:200,animationType:"easeOut"},autoAlignment:{disabled:!1,sizeX:100,sizeY:100,animationTime:200,velocityAlignmentTime:400,animationType:"easeOut"},velocityAnimation:{disabled:!1,sensitivityMouse:1,sensitivityTouch:1.2,maxStrengthMouse:20,maxStrengthTouch:40,inertia:1,animationTime:300,maxAnimationTime:800,animationType:"easeOut"}},gi={wrapperClass:"react-transform-wrapper",contentClass:"react-transform-component"},Zi=function(i){var n,e,r,o,a,t,l,s,d,u=Math.max((n=i.minScale)!==null&&n!==void 0?n:Z.minScale,1e-7),v=(e=i.maxScale)!==null&&e!==void 0?e:Z.maxScale,p=(r=i.initialScale)!==null&&r!==void 0?r:mi.scale,m=Math.min(Math.max(p,u),v),f=G((o=i.initialPositionX)!==null&&o!==void 0?o:mi.positionX,(a=i.minPositionX)!==null&&a!==void 0?a:-1/0,(t=i.maxPositionX)!==null&&t!==void 0?t:1/0,i.minPositionX!=null||i.maxPositionX!=null),h=G((l=i.initialPositionY)!==null&&l!==void 0?l:mi.positionY,(s=i.minPositionY)!==null&&s!==void 0?s:-1/0,(d=i.maxPositionY)!==null&&d!==void 0?d:1/0,i.minPositionY!=null||i.maxPositionY!=null);return{previousScale:m,scale:m,positionX:f,positionY:h}},Ri=function(i){var n=O({},Z);return Object.keys(i).forEach(function(e){var r=e,o=typeof i[r]<"u",a=typeof Z[r]<"u";if(a&&o){var t=Object.prototype.toString.call(Z[r]),l=t==="[object Object]",s=t==="[object Array]";l?n[r]=O(O({},Z[r]),i[r]):s?n[r]=Ni(Ni([],Z[r],!0),i[r]):n[r]=i[r]}}),n.minScale<=0&&(n.minScale=1e-7),n},Fi=function(i,n,e){var r=i.state.scale,o=i.wrapperComponent,a=i.setup,t=a.maxScale,l=a.minScale,s=a.zoomAnimation,d=s.size;if(!o)throw new Error("Wrapper is not mounted");var u=r+n*e,v=V(R(u,3),l,t,d,!1);return v};function q(i,n,e,r){var o,a,t=i.wrapperComponent,l=i.props,s=l.onZoomStart,d=l.onZoom,u=l.onZoomStop,v=new MouseEvent("mousemove",{bubbles:!0}),p=b(i);P(p,v,s),P(p,v,d);var m=H(i,n,e,r),f=(a=(o=t==null?void 0:t.ownerDocument)===null||o===void 0?void 0:o.defaultView)!==null&&a!==void 0?a:typeof window<"u"?window:null;return f&&f.setTimeout(function(){i.mounted&&P(b(i),v,u)},e),m}function Vi(i,n,e,r,o){var a=i.wrapperComponent,t=i.state,l=t.scale,s=t.positionX,d=t.positionY,u=i.setup.zoomAnimation;if(!a)return console.error("No WrapperComponent found"),Promise.resolve();var v=u.disabled?0:r,p=a.clientWidth,m=a.clientHeight,f=(p/2-s)/l,h=(m/2-d)/l,g=Fi(i,n,e),c=ai(i,g,f,h);return c?q(i,c,v,o):(console.error("Error during zoom event. New transformation state was not calculated."),Promise.resolve())}function Ze(i,n,e,r){var o,a,t=i.wrapperComponent,l=i.props,s=l.onPanningStart,d=l.onPanning,u=l.onPanningStop,v=new MouseEvent("mousemove",{bubbles:!0}),p=b(i);P(p,v,s),P(p,v,d);var m=H(i,n,e,r),f=(a=(o=t==null?void 0:t.ownerDocument)===null||o===void 0?void 0:o.defaultView)!==null&&a!==void 0?a:typeof window<"u"?window:null;return f&&f.setTimeout(function(){i.mounted&&P(b(i),v,u)},e),m}function Si(i,n,e,r){n===void 0&&(n="contain");var o=i.wrapperComponent,a=i.contentComponent,t=i.setup;if(!o||!a)return null;var l=a.offsetWidth,s=a.offsetHeight,d=o.clientWidth,u=o.clientHeight;if(!l||!s||!d||!u)return null;var v=d/l,p=u/s,m=n==="cover"?Math.max(v,p):Math.min(v,p);return r!==void 0&&(m=Math.min(m,r)),e!==void 0&&(m=Math.max(m,e)),m=V(m,t.minScale,t.maxScale,0,!1),ti(m,o,a)}function ji(i,n,e,r){var o=i.setup,a=i.wrapperComponent,t=i.contentComponent,l=o.limitToBounds,s=o.centerOnInit,d=o.fitOnInit,u=Zi(i.props),v=i.state,p=v.scale,m=v.positionX,f=v.positionY;if(!a)return Promise.resolve();if(d){var h=Si(i,d==="cover"?"cover":"contain");if(h)return p===h.scale&&m===h.positionX&&f===h.positionY?Promise.resolve():(r==null||r(),q(i,h,n,e))}var g=u.positionX,c=u.positionY;if(s&&t){var y=ti(u.scale,a,t);g=y.positionX,c=y.positionY}var w=bi(i,u.scale),S=F(g,c,w,l,0,0,a),X={scale:u.scale,positionX:S.x,positionY:S.y};return p===u.scale&&m===u.positionX&&f===u.positionY?Promise.resolve():(r==null||r(),q(i,X,n,e))}var Ui=function(i){if("getBoundingClientRect"in i){var n=i.getBoundingClientRect();return{x:n.left,y:n.top,width:n.width,height:n.height}}return i};function Fe(i){var n=i.map(Ui),e=Math.min.apply(Math,n.map(function(t){return t.x})),r=Math.min.apply(Math,n.map(function(t){return t.y})),o=Math.max.apply(Math,n.map(function(t){return t.x+t.width})),a=Math.max.apply(Math,n.map(function(t){return t.y+t.height}));return{x:e,y:r,width:o-e,height:a-r}}function Ve(i,n,e,r){var o=Ui(i),a=n.getBoundingClientRect(),t=e.getBoundingClientRect(),l=a.x*r.scale,s=a.y*r.scale;return{x:(o.x-t.x+l)/r.scale,y:(o.y-t.y+s)/r.scale}}function je(i,n,e,r,o,a,t){r===void 0&&(r=0),o===void 0&&(o=0);var l=i.wrapperComponent,s=i.contentComponent,d=i.state,u=i.setup,v=u.limitToBounds,p=u.minScale,m=u.maxScale;if(!l||!s)return d;var f=l.getBoundingClientRect(),h=Ve(n,l,s,d),g=h.x,c=h.y,y=n.width/d.scale,w=n.height/d.scale,S=l.clientWidth/y,X=l.clientHeight/w,T=e||Math.min(S,X);t!==void 0&&(T=Math.min(T,t)),a!==void 0&&(T=Math.max(T,a));var C=V(T,p,m,0,!1),E=(f.width-y*C)/2,A=(f.height-w*C)/2,M=(f.left-g)*C+E+r,z=(f.top-c)*C+A+o,D=bi(i,C),W=F(M,z,D,v,0,0,l),N=W.x,U=W.y;return{positionX:N,positionY:U,scale:C}}function Qi(i,n,e){var r=i.wrapperComponent,o=i.state;if(!r)return{x:0,y:0};var a=r.getBoundingClientRect();return{x:(n-a.left-o.positionX)/o.scale,y:(e-a.top-o.positionY)/o.scale}}function Ue(i,n,e){var r=i.wrapperComponent,o=i.state;if(!r)return{x:0,y:0};var a=r.getBoundingClientRect();return{x:a.left+o.positionX+n*o.scale,y:a.top+o.positionY+e*o.scale}}var Qe=function(i){return function(n,e,r){return n===void 0&&(n=.5),e===void 0&&(e=300),r===void 0&&(r="easeOut"),Vi(i,1,n,e,r)}},Ge=function(i){return function(n,e,r){return n===void 0&&(n=.5),e===void 0&&(e=300),r===void 0&&(r="easeOut"),Vi(i,-1,n,e,r)}},qe=function(i){return function(n,e,r,o,a){o===void 0&&(o=300),a===void 0&&(a="easeOut");var t=i.state,l=t.positionX,s=t.positionY,d=t.scale,u=i.wrapperComponent,v=i.contentComponent,p=i.setup.disabled;if(p||!u||!v)return Promise.resolve();var m={positionX:Number.isNaN(n)?l:n,positionY:Number.isNaN(e)?s:e,scale:Number.isNaN(r)?d:r};return H(i,m,o,a)}},Je=function(i){return function(n,e){return n===void 0&&(n=200),e===void 0&&(e="easeOut"),ji(i,n,e)}},$e=function(i){return function(n,e,r){e===void 0&&(e=200),r===void 0&&(r="easeOut");var o=i.state,a=i.wrapperComponent,t=i.contentComponent;if(a&&t){var l=ti(n||o.scale,a,t);return H(i,l,e,r)}return Promise.resolve()}},xe=function(i){return function(n,e,r,o,a){o===void 0&&(o=300),a===void 0&&(a="easeOut");var t=i.wrapperComponent,l=i.contentComponent,s=i.setup;if(s.disabled||!t||!l)return Promise.resolve();var d=Qi(i,e,r),u=ai(i,n,d.x,d.y);if(!u)return Promise.resolve();var v=s.zoomAnimation.disabled?0:o;return q(i,u,v,a)}},Ie=function(i){return function(n,e){return Qi(i,n,e)}},ir=function(i){return function(n,e){return Ue(i,n,e)}},er=function(i,n){var e,r=i.wrapperComponent;if(!r)return[];var o=r.getRootNode(),a=o&&"getElementById"in o?o:(e=r.ownerDocument)!==null&&e!==void 0?e:typeof document<"u"?document:null,t=Array.isArray(n)?n:[n];return t.map(function(l){return typeof l=="string"?a==null?void 0:a.getElementById(l):l}).filter(function(l){return!!l&&r.contains(l)})},rr=function(i){return function(n,e,r,o,a,t){var l,s,d,u;r===void 0&&(r=600),o===void 0&&(o="easeOut"),a===void 0&&(a=0),t===void 0&&(t=0),_(i);var v=typeof e=="object"&&e!==null?e:{scale:e},p=er(i,n);if(!i.wrapperComponent||p.length===0)return Promise.resolve();var m=je(i,Fe(p),v.scale,(l=v.offsetX)!==null&&l!==void 0?l:a,(s=v.offsetY)!==null&&s!==void 0?s:t,v.minScale,v.maxScale);return H(i,m,(d=v.animationTime)!==null&&d!==void 0?d:r,(u=v.animationType)!==null&&u!==void 0?u:o)}},nr=function(i){return function(n){var e,r,o;n===void 0&&(n={});var a=i.wrapperComponent,t=i.contentComponent,l=i.setup;if(l.disabled||!a||!t)return Promise.resolve();var s=Si(i,(e=n.mode)!==null&&e!==void 0?e:"contain",n.minScale,n.maxScale);if(!s)return Promise.resolve();var d=l.zoomAnimation.disabled?0:(r=n.animationTime)!==null&&r!==void 0?r:200;return q(i,s,d,(o=n.animationType)!==null&&o!==void 0?o:"easeOut")}},or=function(i){return function(n,e,r,o){r===void 0&&(r=200),o===void 0&&(o="easeOut");var a=i.wrapperComponent,t=i.contentComponent,l=i.setup,s=i.state;if(l.disabled||!a||!t||!Number.isFinite(n)||!Number.isFinite(e))return Promise.resolve();var d=k(i,s.scale),u=F(s.positionX+n,s.positionY+e,d,l.limitToBounds,0,0,a),v=u.x,p=u.y;return v===s.positionX&&p===s.positionY?Promise.resolve():Ze(i,{scale:s.scale,positionX:v,positionY:p},r,o)}},J=function(i){return{instance:i,state:i.state,zoomIn:Qe(i),zoomOut:Ge(i),setTransform:qe(i),resetTransform:Je(i),centerView:$e(i),zoomToElement:rr(i),zoomToPoint:xe(i),clientToContent:Ie(i),contentToClient:ir(i),fitToView:nr(i),panBy:or(i)}},ar=function(i){return{instance:i,state:i.state}},b=function(i){var n={};return Object.assign(n,ar(i)),Object.assign(n,J(i)),n},hi=!1;function ei(){try{var i={get passive(){return hi=!0,!1}};return i}catch{return hi=!1,hi}}var ri=".".concat(gi.wrapperClass),j=function(i,n){return n.some(function(e){return i.matches("".concat(ri," ").concat(e,", ").concat(ri," .").concat(e,", ").concat(ri," ").concat(e," *, ").concat(ri," .").concat(e," *"))})},tr=new Set(["INPUT","TEXTAREA","SELECT","OPTION"]),lr='[contenteditable=""], [contenteditable="true"], [contenteditable="plaintext-only"]',sr='[draggable="true"]',Gi=function(i){return!i||typeof i.closest!="function"?null:i},Ci=function(i){var n=Gi(i);return n?tr.has(n.tagName)||n.isContentEditable?!0:n.closest(lr)!==null:!1},ur=function(i){var n=Gi(i);return n?n.closest(sr)!==null:!1},$=function(i){i&&clearTimeout(i)},dr=function(i){return Number.parseFloat(i.toFixed(8))},qi=function(i,n,e){var r=dr(e);return"translate(".concat(i,"px, ").concat(n,"px) scale(").concat(r,")")},ti=function(i,n,e){var r=e.offsetWidth*i,o=e.offsetHeight*i,a=(n.clientWidth-r)/2,t=(n.clientHeight-o)/2;return{scale:i,positionX:a,positionY:t}};function vr(i,n){i!=null&&(typeof i=="function"?i(n):i.current=n)}function pr(i){return function(n){i.forEach(function(e){typeof e=="function"?e(n):e!=null&&(e.current=n)})}}var Ti=typeof window<"u"?Y.useLayoutEffect:Y.useEffect,fr={panLeft:["ArrowLeft"],panRight:["ArrowRight"],panUp:["ArrowUp"],panDown:["ArrowDown"],zoomIn:["+","="],zoomOut:["-","_"],reset:["0"]},mr=function(i){return Object.values(fr).some(function(n){return n.includes(i)})};function hr(i,n){var e=i.setup,r=e.disabled,o=e.keyboard,a=e.panning;if(r||o.disabled||n.defaultPrevented||n.ctrlKey||n.metaKey||n.altKey||!mr(n.key))return!1;var t=n.target;if(Ci(t)||t&&typeof t.matches=="function"&&j(t,o.excluded))return!1;var l=o.panStep,s=o.zoomStep,d=o.animationTime,u=o.animationType,v=J(i),p=n.key,m=a.lockAxisX?0:l,f=a.lockAxisY?0:l;return p==="ArrowLeft"?v.panBy(m,0,d,u):p==="ArrowRight"?v.panBy(-m,0,d,u):p==="ArrowUp"?v.panBy(0,f,d,u):p==="ArrowDown"?v.panBy(0,-f,d,u):p==="+"||p==="="?v.zoomIn(s,d,u):p==="-"||p==="_"?v.zoomOut(s,d,u):p==="0"&&v.resetTransform(d,u),n.cancelable&&n.preventDefault(),n.stopPropagation(),!0}var wi=function(i,n){return{wrapperWidth:i.offsetWidth,wrapperHeight:i.offsetHeight,contentWidth:n.offsetWidth,contentHeight:n.offsetHeight}},cr=function(i,n){return!i||i.wrapperWidth!==n.wrapperWidth||i.wrapperHeight!==n.wrapperHeight||i.contentWidth!==n.contentWidth||i.contentHeight!==n.contentHeight},Ji=function(i){return i.isPanning||i.isPinching},gr=function(i){return Ji(i)||i.wheelStopEventTimer!==null||i.wheelAnimationTimer!==null};function $i(i){var n=i.wrapperComponent,e=i.contentComponent,r=i.setup,o=i.state;if(!n||!e)return null;var a=k(i,o.scale),t=r.limitToBounds,l=r.centerZoomedOut;if(!t&&!l)return null;var s=F(o.positionX,o.positionY,a,!0,0,0,n),d=s.x,u=s.y,v=d===R(o.positionX,2)&&u===R(o.positionY,2);return v?null:{scale:o.scale,positionX:d,positionY:u}}var yi=function(i){i.animation=null,i.animationFrame=null,i.isAnimating=!1,i.resizeAnimation=null};function wr(i){var n=i.setup.autoAlignment.animationTime,e=Math.max(n/5,1);_(i);var r=Date.now(),o=function(){if(!(!i.mounted||i.animation!==o)){var a=Date.now(),t=Math.max(a-r,1);r=a;var l=$i(i);if(!l){yi(i);return}var s=i.state,d=s.scale,u=s.positionX,v=s.positionY,p=1-Math.exp(-t/e),m=u+(l.positionX-u)*p,f=v+(l.positionY-v)*p,h=Math.abs(l.positionX-m)<.5&&Math.abs(l.positionY-f)<.5;if(h&&(m=l.positionX,f=l.positionY),i.isAnimating=!h,i.setState(d,m,f),h){yi(i);return}i.animationFrame=requestAnimationFrame(o)}};i.animation=o,i.resizeAnimation=o,i.animationResolve=null,i.animationFrame=requestAnimationFrame(o)}function xi(i){if(i.setup.disabled){k(i,i.state.scale);return}if(Ji(i)){i.isResizeAlignmentPending=!0;return}var n=i.animation!==null&&i.animation===i.resizeAnimation;if(i.animation&&!n){var e=i.state.scale,r=i.setup,o=r.minScale,a=r.maxScale;if(e<o||e>a){i.isResizeAlignmentPending=!0;return}_(i)}var t=$i(i);if(!t){n&&yi(i);return}if(!n){if(i.setup.autoAlignment.animationTime===0){i.setState(t.scale,t.positionX,t.positionY);return}wr(i)}}function yr(i){var n=i.wrapperComponent,e=i.contentComponent;if(!(!n||!e)){var r=wi(n,e);cr(i.measuredSizes,r)&&(i.measuredSizes=r,xi(i))}}var Ii=function(i,n){var e=i.setup.wheel,r=e.disabled,o=e.wheelDisabled,a=e.touchPadDisabled,t=e.excluded,l=i.isInitialized,s=i.isPanning,d=n.target,u=l&&!s&&!r&&d;if(!u||n.deltaY===0||o&&!n.ctrlKey||a&&n.ctrlKey)return!1;var v=j(d,t);if(v)return!1;var p=i.isPressingKeys(i.setup.wheel.activationKeys);return!!p},br=function(i,n){var e=i.setup,r=e.disabled,o=e.trackPadPanning,a=o.activationKeys,t=o.excluded;if(!i.wrapperComponent||!i.contentComponent||r||o.disabled||n.ctrlKey)return!1;var l=Ii(i,n);if(l)return!1;var s=n.target,d=j(s,t);if(d)return!1;var u=i.isPressingKeys(a);return!!u},Pr=function(i){return i?i.deltaY<0?1:-1:0};function Sr(i,n){var e=Pr(i),r=pe(n,e);return r}function ie(i,n,e){var r=n.getBoundingClientRect(),o=0,a=0;if("clientX"in i)o=(i.clientX-r.left)/e,a=(i.clientY-r.top)/e;else{var t=i.touches[0];o=(t.clientX-r.left)/e,a=(t.clientY-r.top)/e}return Number.isNaN(o)||Number.isNaN(a)?(console.error("No mouse or touch offset found"),{x:0,y:0}):{x:o,y:a}}var Cr=function(i,n,e,r,o){var a=i.state.scale,t=i.wrapperComponent,l=i.setup,s=l.maxScale,d=l.minScale,u=l.zoomAnimation,v=l.disablePadding,p=u.size,m=u.disabled;if(!t)throw new Error("Wrapper is not mounted");var f=a+n*e,h=r?!1:!m,g=V(f,d,s,p,h&&!v);return g},ee=function(i,n){var e=i.previousWheelEvent,r=i.state.scale,o=i.setup,a=o.maxScale,t=o.minScale;return e?r<a||r>t||Math.sign(e.deltaY)!==Math.sign(n.deltaY)||e.deltaY>0&&e.deltaY<n.deltaY||e.deltaY<0&&e.deltaY>n.deltaY||Math.sign(e.deltaY)!==Math.sign(n.deltaY):!1},Tr=function(i,n){var e=i.setup.pinch,r=e.disabled,o=e.excluded,a=i.isInitialized,t=n.target,l=a&&!r&&t;if(!l)return!1;var s=j(t,o);return!s},Ar=function(i){var n=i.setup.pinch.disabled,e=i.isInitialized,r=i.pinchStartDistance,o=e&&!n&&r!==null;return!!o},Yr=function(i,n,e){var r=e.getBoundingClientRect(),o=i.touches,a=o[0].clientX-r.left,t=o[0].clientY-r.top,l=o[1].clientX-r.left,s=o[1].clientY-r.top;return{x:(a+l)/2/n,y:(t+s)/2/n}},re=function(i){return Math.sqrt(Math.pow(i.touches[0].pageX-i.touches[1].pageX,2)+Math.pow(i.touches[0].pageY-i.touches[1].pageY,2))},Xr=5,Er=function(i,n){var e=i.pinchStartScale,r=i.pinchStartDistance,o=i.setup,a=o.maxScale,t=o.minScale,l=o.zoomAnimation,s=o.disablePadding,d=o.pinch,u=l.size,v=l.disabled,p=d.step;if(!e||r===null)throw new Error("Pinch touches distance was not provided");if(n<0)return i.state.scale;var m=n/r,f=m*e,h=(f-e)*(p/Xr),g=e+h,c=g===1/0?0:R(g,10);return V(c,t,a,u,!v&&!s)},ne=160,oe=100,zr=function(i,n){var e=i.props,r=e.onWheelStart,o=e.onZoomStart;_(i),i.wheelStopEventTimer||(P(b(i),n,r),P(b(i),n,o))},_r=function(i,n){var e=i.props,r=e.onWheel,o=e.onZoom,a=i.contentComponent,t=i.setup,l=i.state,s=l.scale,d=t.limitToBounds,u=t.centerZoomedOut,v=t.zoomAnimation,p=t.wheel,m=t.disablePadding,f=t.smooth,h=v.size,g=v.disabled,c=p.step;if(!a)throw new Error("Component not mounted");n.cancelable&&n.preventDefault(),n.stopPropagation();var y=Sr(n,null),w=f?c*Math.abs(n.deltaY):c,S=Cr(i,y,w,!n.ctrlKey);if(s!==S){var X=k(i,S),T=ie(n,a,s),C=g||h===0||u||m,E=d&&C,A=oi(i,T.x,T.y,S,X,E),M=A.x,z=A.y;i.previousWheelEvent=n,i.setState(S,M,z),P(b(i),n,r),P(b(i),n,o)}},kr=function(i,n){var e=i.props,r=e.onWheelStop,o=e.onZoomStop;$(i.wheelAnimationTimer),i.wheelAnimationTimer=setTimeout(function(){i.mounted&&(Pi(i,n.x,n.y),i.wheelAnimationTimer=null,i.flushResizeAlignment())},oe);var a=ee(i,n);a&&($(i.wheelStopEventTimer),i.wheelStopEventTimer=setTimeout(function(){i.mounted&&(i.wheelStopEventTimer=null,P(b(i),n,r),P(b(i),n,o),i.flushResizeAlignment())},ne))},Wr=function(i,n){var e=i.props,r=e.onWheelStart,o=e.onPanningStart;_(i),i.wheelStopEventTimer||(i.wheelAnimationTimer||k(i,i.state.scale),P(b(i),n,r),P(b(i),n,o))},Or=function(i,n){var e=i.props,r=e.onWheelStop,o=e.onPanningStop;$(i.wheelAnimationTimer),i.wheelAnimationTimer=setTimeout(function(){i.mounted&&(Pi(i,n.x,n.y),i.wheelAnimationTimer=null,i.flushResizeAlignment())},oe);var a=ee(i,n);a&&($(i.wheelStopEventTimer),i.wheelStopEventTimer=setTimeout(function(){i.mounted&&(i.wheelStopEventTimer=null,P(b(i),n,r),P(b(i),n,o),i.flushResizeAlignment())},ne))},ae=function(i){for(var n=0,e=0,r=0;r<2;r+=1)n+=i.touches[r].clientX,e+=i.touches[r].clientY;var o=n/2,a=e/2;return{x:o,y:a}},Mr=function(i,n){var e=re(n);i.pinchStartDistance=e,i.lastDistance=e,i.pinchStartScale=i.state.scale,i.isPanning=!1,i.isPinching=!0,i.pinchPreviousCenter=ae(n),_(i)},Dr=function(i,n){var e=i.contentComponent,r=i.pinchStartDistance,o=i.wrapperComponent,a=i.pinchPreviousCenter,t=i.state.scale,l=i.setup,s=l.limitToBounds,d=l.centerZoomedOut,u=l.zoomAnimation,v=l.autoAlignment,p=l.pinch,m=l.panning,f=u.disabled,h=u.size,g=p.allowPanning;if(!(r===null||!e)){var c=Yr(n,t,e);if(!(!Number.isFinite(c.x)||!Number.isFinite(c.y))){var y=re(n),w=Er(i,y),S=ae(n),X=t/w,T=(S.x-((a==null?void 0:a.x)||0))*X,C=(S.y-((a==null?void 0:a.y)||0))*X;if(!(w===t&&T===0&&C===0)){i.pinchPreviousCenter=S;var E=k(i,w),A=f||h===0||d,M=s&&A,z=oi(i,c.x,c.y,w,E,M),D=z.x,W=z.y;if(i.pinchMidpoint=c,i.lastDistance=y,m.disabled||!g)i.setState(w,D,W);else{var N=v.sizeX,U=v.sizeY,li=K(i,N,w),si=K(i,U,w),I=D+T,ui=W+C,ii=F(I,ui,E,s,li,si,o),Q=ii.x,di=ii.y;i.setState(w,Q,di)}}}}},Nr=function(i){var n=i.pinchMidpoint;i.velocity=null,i.lastDistance=null,i.pinchMidpoint=null,i.pinchStartScale=null,i.pinchStartDistance=null,i.isPinching=!1,Pi(i,n==null?void 0:n.x,n==null?void 0:n.y)},te=function(i,n){var e=i.props.onZoomStop,r=i.setup.doubleClick.animationTime;$(i.doubleClickStopEventTimer),i.doubleClickStopEventTimer=setTimeout(function(){i.doubleClickStopEventTimer=null,i.mounted&&P(b(i),n,e)},r)},Rr=function(i,n){var e=i.props,r=e.onZoomStart,o=e.onZoom,a=i.setup.doubleClick,t=a.animationTime,l=a.animationType;P(b(i),n,r),ji(i,t,l,function(){return P(b(i),n,o)}),te(i,n)};function Br(i,n){return i==="toggle"?n===1?1:-1:i==="zoomOut"?-1:1}function Lr(i,n){var e=i.setup,r=i.doubleClickStopEventTimer,o=i.state,a=i.contentComponent,t=o.scale,l=i.props,s=l.onZoomStart,d=l.onZoom,u=e.doubleClick,v=u.disabled,p=u.mode,m=u.step,f=u.animationTime,h=u.animationType;if(!v&&!r){if(p==="reset")return Rr(i,n);if(!a)return console.error("No ContentComponent found");var g=Br(p,i.state.scale),c=Fi(i,g,m);if(t!==c){P(b(i),n,s);var y=ie(n,a,t),w=ai(i,c,y.x,y.y);if(!w)return console.error("Error during zoom event. New transformation state was not calculated.");P(b(i),n,d),H(i,w,f,h),te(i,n)}}}var Kr=function(i,n){var e=i.isInitialized,r=i.setup,o=i.wrapperComponent,a=r.doubleClick,t=a.disabled,l=a.excluded,s=n.target,d=o==null?void 0:o.contains(s),u=e&&s&&d&&!t;if(!u)return!1;var v=j(s,l);return!(v||Ci(s))},Hr=(function(){function i(n){var e=this;this.mounted=!0,this.onChangeCallbacks=new Set,this.onInitCallbacks=new Set,this.onTransformCallbacks=new Set,this.wrapperComponent=null,this.contentComponent=null,this.isInitialized=!1,this.bounds=null,this.previousWheelEvent=null,this.wheelStopEventTimer=null,this.wheelAnimationTimer=null,this.isPanning=!1,this.isWheelPanning=!1,this.startCoords=null,this.panStartPosition=null,this.lastTouch=null,this.isPinching=!1,this.distance=null,this.lastDistance=null,this.pinchStartDistance=null,this.pinchStartScale=null,this.pinchMidpoint=null,this.pinchPreviousCenter=null,this.doubleClickStopEventTimer=null,this.velocity=null,this.velocityTime=null,this.lastMousePosition=null,this.isAnimating=!1,this.animation=null,this.animationFrame=null,this.animationResolve=null,this.initObserverTimer=null,this.isInitialLayoutPending=!1,this.measuredSizes=null,this.isResizeAlignmentPending=!1,this.resizeAnimation=null,this.pressedKeys={},this.selectionLock=null,this.mount=function(){e.mounted=!0,e.initializeWindowEvents()},this.unmount=function(){e.mounted=!1,e.cleanupWindowEvents()},this.update=function(r){e.props=r,e.setup=Ri(r),e.wrapperComponent&&e.contentComponent&&!gr(e)&&k(e,e.state.scale)},this.clearTimers=function(){e.wheelStopEventTimer&&clearTimeout(e.wheelStopEventTimer),e.wheelAnimationTimer&&clearTimeout(e.wheelAnimationTimer),e.doubleClickStopEventTimer&&clearTimeout(e.doubleClickStopEventTimer),e.initObserverTimer&&clearTimeout(e.initObserverTimer),e.wheelStopEventTimer=null,e.wheelAnimationTimer=null,e.doubleClickStopEventTimer=null,e.initObserverTimer=null},this.initializeWindowEvents=function(){var r,o,a,t,l=ei(),s=(r=e.wrapperComponent)===null||r===void 0?void 0:r.ownerDocument,d=s==null?void 0:s.defaultView;(o=e.wrapperComponent)===null||o===void 0||o.addEventListener("wheel",e.onWheelPanning,l),(a=e.wrapperComponent)===null||a===void 0||a.addEventListener("keyup",e.setKeyUnPressed,l),(t=e.wrapperComponent)===null||t===void 0||t.addEventListener("keydown",e.setKeyPressed,l),d==null||d.addEventListener("mousedown",e.onPanningStart,l),d==null||d.addEventListener("mousemove",e.onPanning,l),d==null||d.addEventListener("mouseup",e.onPanningStop,l),s==null||s.addEventListener("mouseleave",e.clearPanning,l),d==null||d.addEventListener("keyup",e.setKeyUnPressed,l),d==null||d.addEventListener("keydown",e.setKeyPressed,l),d==null||d.addEventListener("blur",e.handleWindowBlur)},this.cleanupWindowEvents=function(){var r,o,a,t,l,s=ei(),d=(r=e.wrapperComponent)===null||r===void 0?void 0:r.ownerDocument,u=d==null?void 0:d.defaultView;u==null||u.removeEventListener("mousedown",e.onPanningStart,s),u==null||u.removeEventListener("mousemove",e.onPanning,s),u==null||u.removeEventListener("mouseup",e.onPanningStop,s),d==null||d.removeEventListener("mouseleave",e.clearPanning,s),u==null||u.removeEventListener("keyup",e.setKeyUnPressed,s),u==null||u.removeEventListener("keydown",e.setKeyPressed,s),u==null||u.removeEventListener("blur",e.handleWindowBlur),(o=e.wrapperComponent)===null||o===void 0||o.removeEventListener("wheel",e.onWheelPanning,s),(a=e.wrapperComponent)===null||a===void 0||a.removeEventListener("keyup",e.setKeyUnPressed,s),(t=e.wrapperComponent)===null||t===void 0||t.removeEventListener("keydown",e.setKeyPressed,s),e.cleanupWrapperEvents(),e.clearTimers(),_(e),e.unlockTextSelection(),(l=e.observer)===null||l===void 0||l.disconnect(),e.observer=void 0,e.isInitialLayoutPending=!1,e.isResizeAlignmentPending=!1,e.resizeAnimation=null},this.cleanupWrapperEvents=function(){var r=e.wrapperComponent;if(r){var o=ei();r.removeEventListener("wheel",e.onWheelZoom,o),r.removeEventListener("dblclick",e.onDoubleClick,o),r.removeEventListener("keydown",e.onKeyboardNavigation,o),r.removeEventListener("touchstart",e.onTouchPanningStart,o),r.removeEventListener("touchmove",e.onTouchPanning,o),r.removeEventListener("touchend",e.onTouchPanningStop,o)}},this.handleInitializeWrapperEvents=function(r){var o=ei();r.addEventListener("wheel",e.onWheelZoom,o),r.addEventListener("dblclick",e.onDoubleClick,o),r.addEventListener("keydown",e.onKeyboardNavigation,o),r.addEventListener("touchstart",e.onTouchPanningStart,o),r.addEventListener("touchmove",e.onTouchPanning,o),r.addEventListener("touchend",e.onTouchPanningStop,o)},this.handleInitialize=function(){var r=e.setup,o=r.centerOnInit,a=r.fitOnInit;if(e.applyTransformation(),e.onInitCallbacks.forEach(function(l){return l(b(e))}),o||a){var t=e.applyInitialLayout();e.isInitialLayoutPending=!0,e.initObserverTimer&&clearTimeout(e.initObserverTimer),t&&(e.initObserverTimer=setTimeout(function(){e.initObserverTimer=null,e.isInitialLayoutPending=!1},5e3))}},this.observeSizes=function(r,o){var a;(a=e.observer)===null||a===void 0||a.disconnect(),e.observer=void 0,e.measuredSizes=wi(r,o),!(typeof ResizeObserver>"u")&&(e.observer=new ResizeObserver(e.onSizeChange),e.observer.observe(r),e.observer.observe(o))},this.onSizeChange=function(){var r=e,o=r.wrapperComponent,a=r.contentComponent;if(!(!e.mounted||!o||!a)){if(e.isInitialLayoutPending){var t=(a.offsetWidth>0||a.offsetHeight>0)&&o.clientWidth>0&&o.clientHeight>0;if(!t)return;e.isInitialLayoutPending=!1,e.initObserverTimer&&clearTimeout(e.initObserverTimer),e.initObserverTimer=null,e.onInitCallbacks.forEach(function(l){return l(b(e))}),e.applyInitialLayout(),e.measuredSizes=wi(o,a),k(e,e.state.scale);return}yr(e)}},this.flushResizeAlignment=function(){e.isResizeAlignmentPending&&(e.isResizeAlignmentPending=!1,xi(e))},this.onWheelZoom=function(r){var o=e.setup.disabled;if(!o){e.syncModifierKeys(r);var a=Ii(e,r);a&&(zr(e,r),_r(e,r),kr(e,r))}},this.onWheelPanning=function(r){var o=e.props.onPanning,a=e.setup.trackPadPanning,t=a.lockAxisX,l=a.lockAxisY;e.syncModifierKeys(r);var s=br(e,r);if(s){r.cancelable&&r.preventDefault(),r.stopPropagation();var d=e.state,u=d.positionX,v=d.positionY,p=u-r.deltaX,m=v-r.deltaY,f=t?u:p,h=l?v:m,g=e.setup.autoAlignment,c=g.sizeX,y=g.sizeY,w=K(e,c),S=K(e,y);f===u&&h===v||(Wr(e,r),Ki(e,f,h,w,S),P(b(e),r,o),Or(e,r))}},this.onPanningStart=function(r){var o=e.setup,a=o.disabled,t=o.panning,l=e.props.onPanningStart;if(!(a||t.disabled)){e.syncModifierKeys(r);var s=ki(e,r);if(s){var d=e.isPressingKeys(e.setup.panning.activationKeys);d&&(r.button===0&&!e.setup.panning.allowLeftClickPan||r.button===1&&!e.setup.panning.allowMiddleClickPan||r.button===2&&!e.setup.panning.allowRightClickPan||(r.cancelable&&r.preventDefault(),r.stopPropagation(),_(e),Mi(e,r),e.lockTextSelection(),e.focusForKeyboard(),P(b(e),r,l)))}}},this.onPanning=function(r){var o=e.setup.disabled,a=e.props.onPanning;if(!o){if(e.syncModifierKeys(r),e.isPanning&&r.buttons===0){e.clearPanning(r);return}var t=Wi(e);if(t){var l=e.isPressingKeys(e.setup.panning.activationKeys);l&&(r.cancelable&&r.preventDefault(),r.stopPropagation(),Di(e,r.clientX,r.clientY,B.MOUSE),P(b(e),r,a))}}},this.onPanningStop=function(r){var o=e.setup.panning.velocityDisabled,a=e.props.onPanningStop;e.isPanning&&(e.unlockTextSelection(),He(e,o),P(b(e),r,a),e.flushResizeAlignment())},this.onPinchStart=function(r){var o=e.setup.disabled,a=e.props.onPinchStart;if(!o){var t=Tr(e,r);t&&(Mr(e,r),_(e),P(b(e),r,a))}},this.onPinch=function(r){var o=e.setup.disabled,a=e.props.onPinch;if(!o){var t=Ar(e);t&&(r.cancelable&&r.preventDefault(),r.stopPropagation(),Dr(e,r),P(b(e),r,a))}},this.onPinchStop=function(r){var o=e.props.onPinchStop;e.pinchStartScale&&(Nr(e),P(b(e),r,o),e.flushResizeAlignment())},this.onTouchPanningStart=function(r){var o=e.setup,a=o.disabled,t=o.doubleClick,l=e.props.onPanningStart;if(!a){var s=!(t!=null&&t.disabled),d=e.lastTouch&&+new Date-e.lastTouch<200;if(s&&d&&r.touches.length===1)e.lastTouch=null,e.onDoubleClick(r);else{e.lastTouch=+new Date,_(e);var u=r.touches,v=u.length===1,p=u.length===2,m=ki(e,r);if(v){if(!m||e.setup.panning.disabled)return;_(e),Mi(e,r),e.lockTextSelection(),e.focusForKeyboard(),P(b(e),r,l)}p&&e.onPinchStart(r)}}},this.onTouchPanning=function(r){var o=e.setup.disabled,a=e.props.onPanning;if(e.isPanning&&r.touches.length===1){if(o)return;var t=Wi(e);if(!t)return;r.cancelable&&r.preventDefault(),r.stopPropagation();var l=r.touches[0];Di(e,l.clientX,l.clientY,B.TOUCH),P(b(e),r,a)}else r.touches.length>1&&e.onPinch(r)},this.onTouchPanningStop=function(r){e.onPanningStop(r),e.onPinchStop(r)},this.onDoubleClick=function(r){var o=e.setup.disabled;if(!o){var a=Kr(e,r);a&&Lr(e,r)}},this.clearPanning=function(r){e.isPanning&&e.onPanningStop(r)},this.handleWindowBlur=function(){e.pressedKeys={},e.isPanning&&(e.isPanning=!1,e.startCoords=null),e.unlockTextSelection(),e.flushResizeAlignment()},this.syncModifierKeys=function(r){var o=r.ctrlKey,a=r.metaKey,t=r.shiftKey,l=r.altKey;typeof o=="boolean"&&(e.pressedKeys.Control=o),typeof a=="boolean"&&(e.pressedKeys.Meta=a),typeof t=="boolean"&&(e.pressedKeys.Shift=t),typeof l=="boolean"&&(e.pressedKeys.Alt=l)},this.setKeyPressed=function(r){e.pressedKeys[r.key]=!0},this.setKeyUnPressed=function(r){e.pressedKeys[r.key]=!1},this.isPressingKeys=function(r){return typeof r=="function"?r(Object.entries(e.pressedKeys).filter(function(o){var a=o[1];return a}).map(function(o){var a=o[0];return a})):r.length?!!r.every(function(o){return e.pressedKeys[o]}):!0},this.onKeyboardNavigation=function(r){hr(e,r)},this.focusForKeyboard=function(){var r,o=e.wrapperComponent;if(!(!o||e.setup.keyboard.disabled)){var a=(r=o.ownerDocument)===null||r===void 0?void 0:r.activeElement;a&&o.contains(a)||typeof o.focus=="function"&&o.focus({preventScroll:!0})}},this.lockTextSelection=function(){var r=e.wrapperComponent;!r||e.selectionLock||(e.selectionLock={userSelect:r.style.userSelect,webkitUserSelect:r.style.webkitUserSelect},r.style.userSelect="none",r.style.webkitUserSelect="none")},this.unlockTextSelection=function(){var r=e.selectionLock;e.selectionLock=null;var o=e.wrapperComponent;!o||!r||(o.style.userSelect=r.userSelect,o.style.webkitUserSelect=r.webkitUserSelect)},this.applyInitialLayout=function(){var r=e.setup.fitOnInit,o=e,a=o.wrapperComponent,t=o.contentComponent,l=!!a&&!!t&&a.clientWidth>0&&a.clientHeight>0&&(t.offsetWidth>0||t.offsetHeight>0);if(r){var s=Si(e,r==="cover"?"cover":"contain");if(s)return e.setState(s.scale,s.positionX,s.positionY),l}return e.setCenter(),l},this.setCenter=function(){if(e.wrapperComponent&&e.contentComponent){var r=ti(e.state.scale,e.wrapperComponent,e.contentComponent);e.setState(r.scale,r.positionX,r.positionY)}},this.handleTransformStyles=function(r,o,a){return e.props.customTransform?e.props.customTransform(r,o,a):qi(r,o,a)},this.getContext=function(){return b(e)},this.applyTransformation=function(){if(!(!e.mounted||!e.contentComponent)){var r=e.state,o=r.scale,a=r.positionX,t=r.positionY,l=e.handleTransformStyles(a,t,o);e.props.detached||(e.contentComponent.style.transform=l),e.onTransformCallbacks.forEach(function(s){return s({scale:o,positionX:a,positionY:t,previousScale:e.state.previousScale,ref:b(e)})})}},this.setState=function(r,o,a){var t=e.props.onTransform;if(!Number.isNaN(r)&&!Number.isNaN(o)&&!Number.isNaN(a)){var l=Math.max(r,1e-7);l!==e.state.scale&&(e.state.previousScale=e.state.scale,e.state.scale=l),e.state.positionX=o,e.state.positionY=a,e.applyTransformation();var s=b(e);e.onChangeCallbacks.forEach(function(d){return d(s)}),P(s,{scale:e.state.scale,positionX:o,positionY:a},t)}else console.error("Detected NaN set state values")},this.onTransform=function(r){return e.onTransformCallbacks.has(r)||e.onTransformCallbacks.add(r),function(){e.onTransformCallbacks.delete(r)}},this.onChange=function(r){return e.onChangeCallbacks.has(r)||e.onChangeCallbacks.add(r),function(){e.onChangeCallbacks.delete(r)}},this.onInit=function(r){return e.onInitCallbacks.has(r)||e.onInitCallbacks.add(r),function(){e.onInitCallbacks.delete(r)}},this.init=function(r,o){e.mounted=!0,e.cleanupWindowEvents(),e.wrapperComponent=r,e.contentComponent=o,k(e,e.state.scale),e.handleInitializeWrapperEvents(r),e.handleInitialize(),e.observeSizes(r,o),e.initializeWindowEvents(),e.isInitialized=!0;var a=b(e);P(a,void 0,e.props.onInit),vr(e.props.ref,a)},this.props=n,this.setup=Ri(this.props),this.state=Zi(this.props)}return i})(),x=ni.createContext(null),Zr=function(i,n){return typeof i=="function"?i(n):i},qr=ni.forwardRef(function(i,n){var e=Y.useRef(null);e.current===null&&(e.current=new Hr(i));var r=e.current,o=Zr(i.children,J(r));return Y.useImperativeHandle(n,function(){return J(r)},[r]),Y.useEffect(function(){return r.mount(),function(){r.unmount()}},[r]),Y.useEffect(function(){r.update(i)},[r,i]),L.jsx(x.Provider,O({value:r},{children:o}))});ni.forwardRef(function(i,n){var e=Y.useRef(null),r=Y.useContext(x);return Ti(function(){var o=function(a){if(e.current){var t=0,l=0;e.current.style.transform=r.handleTransformStyles(t,l,1/a)}};return o(r.state.scale),r.onChange(function(a){o(a.instance.state.scale)})},[r]),L.jsx("div",O({},i,{ref:pr([e,n])}))});function Fr(i,n){n===void 0&&(n={});var e=n.insertAt;if(!(typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",e==="top"&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=i:o.appendChild(document.createTextNode(i))}}var Vr=`.transform-component-module_wrapper__SPB86 {
2
2
  position: relative;
3
3
  width: -moz-fit-content;
4
4
  width: fit-content;
@@ -1,2 +1,2 @@
1
- import{_ as e,l as o,R as i,d as n}from"./mermaid.core-BcRUBvZd.js";import{p}from"./cynefin-EF2NZ3EQ-BjAUxFfb.js";import"./index-B6Scr7KJ.js";import"./BlintzCanvas-BCtfZPrs.js";import"./index-DsasLE1l.js";import"./index-BSxkprTm.js";import"./transform-BqqRT-Iy.js";var g={parse:e(async r=>{const a=await p("info",r);o.debug(a)},"parse")},d={version:"12.2.0"},m=e(()=>d.version,"getVersion"),v={getVersion:m},c=e((r,a,s)=>{o.debug(`rendering info diagram
1
+ import{_ as e,l as o,R as i,d as n}from"./mermaid.core-C6ckWvkG.js";import{p}from"./cynefin-EF2NZ3EQ-Cf7ajLou.js";import"./index-p3WivF1M.js";import"./BlintzCanvas-Dd3bC9vw.js";import"./index-DSIdPh8G.js";import"./index-JoxvTUfo.js";import"./transform-BqqRT-Iy.js";var g={parse:e(async r=>{const a=await p("info",r);o.debug(a)},"parse")},d={version:"12.2.0"},m=e(()=>d.version,"getVersion"),v={getVersion:m},c=e((r,a,s)=>{o.debug(`rendering info diagram
2
2
  `+r);const t=i(a);n(t,100,400,!0),t.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${s}`)},"draw"),l={draw:c},z={parser:g,db:v,renderer:l};export{z as diagram};
@@ -1 +1 @@
1
- import{j as t,G as a}from"./index-B6Scr7KJ.js";function r({className:e,children:o,...n}){return t.jsx("code",{"data-slot":"inline-code",className:a("bg-muted rounded px-1.5 py-0.5 font-mono text-[0.85em] break-all",e),...n,children:o})}export{r as I};
1
+ import{j as t,G as a}from"./index-p3WivF1M.js";function r({className:e,children:o,...n}){return t.jsx("code",{"data-slot":"inline-code",className:a("bg-muted rounded px-1.5 py-0.5 font-mono text-[0.85em] break-all",e),...n,children:o})}export{r as I};
@@ -1,4 +1,4 @@
1
- import{_ as o,c as ot,aa as ut,R as dt,ar as yt,A as pt,k as ft,t as it,a as gt,b as kt,g as mt,s as wt,v as _t,d as bt}from"./mermaid.core-BcRUBvZd.js";import"./index-B6Scr7KJ.js";import"./BlintzCanvas-BCtfZPrs.js";import"./index-DsasLE1l.js";import"./index-BSxkprTm.js";import"./transform-BqqRT-Iy.js";var tt=(function(){var e=o(function(M,t,s,i){for(s=s||{},i=M.length;i--;s[M[i]]=t);return s},"o"),h=[1,4],r=[1,14],a=[1,12],l=[1,13],y=[6,7,8],p=[1,20],d=[1,18],m=[1,19],c=[6,7,11],k=[1,6,13,14],g=[1,23],_=[1,24],x=[1,6,7,11,13,14],N={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:o(function(t,s,i,u,f,n,v){var w=n.length-1;switch(f){case 6:case 7:return u;case 15:u.addNode(n[w-1].length,n[w].trim());break;case 16:u.addNode(0,n[w].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:r,7:[1,10],9:9,12:11,13:a,14:l},e(y,[2,3]),{1:[2,2]},e(y,[2,4]),e(y,[2,5]),{1:[2,6],6:r,12:15,13:a,14:l},{6:r,9:16,12:11,13:a,14:l},{6:p,7:d,10:17,11:m},e(c,[2,18],{14:[1,21]}),e(c,[2,16]),e(c,[2,17]),{6:p,7:d,10:22,11:m},{1:[2,7],6:r,12:15,13:a,14:l},e(k,[2,14],{7:g,11:_}),e(x,[2,8]),e(x,[2,9]),e(x,[2,10]),e(c,[2,15]),e(k,[2,13],{7:g,11:_}),e(x,[2,11]),e(x,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(t,s){if(s.recoverable)this.trace(t);else{var i=new Error(t);throw i.hash=s,i}},"parseError"),parse:o(function(t){var s=this,i=[0],u=[],f=[null],n=[],v=this.table,w="",I=0,S=0,L=2,E=1,R=n.slice.call(arguments,1),b=Object.create(this.lexer),C={yy:{}};for(var F in this.yy)Object.prototype.hasOwnProperty.call(this.yy,F)&&(C.yy[F]=this.yy[F]);b.setInput(t,C.yy),C.yy.lexer=b,C.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var T=b.yylloc;n.push(T);var D=b.options&&b.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function j(P){i.length=i.length-2*P,f.length=f.length-P,n.length=n.length-P}o(j,"popStack");function z(){var P;return P=u.pop()||b.lex()||E,typeof P!="number"&&(P instanceof Array&&(u=P,P=u.pop()),P=s.symbols_[P]||P),P}o(z,"lex");for(var A,W,B,q,H={},X,V,et,Y;;){if(W=i[i.length-1],this.defaultActions[W]?B=this.defaultActions[W]:((A===null||typeof A>"u")&&(A=z()),B=v[W]&&v[W][A]),typeof B>"u"||!B.length||!B[0]){var Q="";Y=[];for(X in v[W])this.terminals_[X]&&X>L&&Y.push("'"+this.terminals_[X]+"'");b.showPosition?Q="Parse error on line "+(I+1)+`:
1
+ import{_ as o,c as ot,aa as ut,R as dt,ar as yt,A as pt,k as ft,t as it,a as gt,b as kt,g as mt,s as wt,v as _t,d as bt}from"./mermaid.core-C6ckWvkG.js";import"./index-p3WivF1M.js";import"./BlintzCanvas-Dd3bC9vw.js";import"./index-DSIdPh8G.js";import"./index-JoxvTUfo.js";import"./transform-BqqRT-Iy.js";var tt=(function(){var e=o(function(M,t,s,i){for(s=s||{},i=M.length;i--;s[M[i]]=t);return s},"o"),h=[1,4],r=[1,14],a=[1,12],l=[1,13],y=[6,7,8],p=[1,20],d=[1,18],m=[1,19],c=[6,7,11],k=[1,6,13,14],g=[1,23],_=[1,24],x=[1,6,7,11,13,14],N={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:o(function(t,s,i,u,f,n,v){var w=n.length-1;switch(f){case 6:case 7:return u;case 15:u.addNode(n[w-1].length,n[w].trim());break;case 16:u.addNode(0,n[w].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:r,7:[1,10],9:9,12:11,13:a,14:l},e(y,[2,3]),{1:[2,2]},e(y,[2,4]),e(y,[2,5]),{1:[2,6],6:r,12:15,13:a,14:l},{6:r,9:16,12:11,13:a,14:l},{6:p,7:d,10:17,11:m},e(c,[2,18],{14:[1,21]}),e(c,[2,16]),e(c,[2,17]),{6:p,7:d,10:22,11:m},{1:[2,7],6:r,12:15,13:a,14:l},e(k,[2,14],{7:g,11:_}),e(x,[2,8]),e(x,[2,9]),e(x,[2,10]),e(c,[2,15]),e(k,[2,13],{7:g,11:_}),e(x,[2,11]),e(x,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(t,s){if(s.recoverable)this.trace(t);else{var i=new Error(t);throw i.hash=s,i}},"parseError"),parse:o(function(t){var s=this,i=[0],u=[],f=[null],n=[],v=this.table,w="",I=0,S=0,L=2,E=1,R=n.slice.call(arguments,1),b=Object.create(this.lexer),C={yy:{}};for(var F in this.yy)Object.prototype.hasOwnProperty.call(this.yy,F)&&(C.yy[F]=this.yy[F]);b.setInput(t,C.yy),C.yy.lexer=b,C.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var T=b.yylloc;n.push(T);var D=b.options&&b.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function j(P){i.length=i.length-2*P,f.length=f.length-P,n.length=n.length-P}o(j,"popStack");function z(){var P;return P=u.pop()||b.lex()||E,typeof P!="number"&&(P instanceof Array&&(u=P,P=u.pop()),P=s.symbols_[P]||P),P}o(z,"lex");for(var A,W,B,q,H={},X,V,et,Y;;){if(W=i[i.length-1],this.defaultActions[W]?B=this.defaultActions[W]:((A===null||typeof A>"u")&&(A=z()),B=v[W]&&v[W][A]),typeof B>"u"||!B.length||!B[0]){var Q="";Y=[];for(X in v[W])this.terminals_[X]&&X>L&&Y.push("'"+this.terminals_[X]+"'");b.showPosition?Q="Parse error on line "+(I+1)+`:
2
2
  `+b.showPosition()+`
3
3
  Expecting `+Y.join(", ")+", got '"+(this.terminals_[A]||A)+"'":Q="Parse error on line "+(I+1)+": Unexpected "+(A==E?"end of input":"'"+(this.terminals_[A]||A)+"'"),this.parseError(Q,{text:b.match,token:this.terminals_[A]||A,line:b.yylineno,loc:T,expected:Y})}if(B[0]instanceof Array&&B.length>1)throw new Error("Parse Error: multiple actions possible at state: "+W+", token: "+A);switch(B[0]){case 1:i.push(A),f.push(b.yytext),n.push(b.yylloc),i.push(B[1]),A=null,S=b.yyleng,w=b.yytext,I=b.yylineno,T=b.yylloc;break;case 2:if(V=this.productions_[B[1]][1],H.$=f[f.length-V],H._$={first_line:n[n.length-(V||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(V||1)].first_column,last_column:n[n.length-1].last_column},D&&(H._$.range=[n[n.length-(V||1)].range[0],n[n.length-1].range[1]]),q=this.performAction.apply(H,[w,S,I,C.yy,B[1],f,n].concat(R)),typeof q<"u")return q;V&&(i=i.slice(0,-1*V*2),f=f.slice(0,-1*V),n=n.slice(0,-1*V)),i.push(this.productions_[B[1]][0]),f.push(H.$),n.push(H._$),et=v[i[i.length-2]][i[i.length-1]],i.push(et);break;case 3:return!0}}return!0},"parse")},O=(function(){var M={EOF:1,parseError:o(function(s,i){if(this.yy.parser)this.yy.parser.parseError(s,i);else throw new Error(s)},"parseError"),setInput:o(function(t,s){return this.yy=s||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var s=t.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:o(function(t){var s=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var f=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===u.length?this.yylloc.first_column:0)+u[u.length-i.length].length-i[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(t){this.unput(this.match.slice(t))},"less"),pastInput:o(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var t=this.pastInput(),s=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{g as gt}from"./chunk-5VM5RSS4-DswTXnmp.js";import{a as mt,b as lt,h as xt,d as kt}from"./chunk-55XCU76K-0JSp6acZ.js";import{g as _t,s as vt,a as bt,b as wt,v as Tt,t as St,_ as s,c as R,d as $t,A as Mt}from"./mermaid.core-BcRUBvZd.js";import{s as X}from"./transform-BqqRT-Iy.js";import{d as it}from"./arc-sP6zNsGB.js";import"./index-B6Scr7KJ.js";import"./BlintzCanvas-BCtfZPrs.js";import"./index-DsasLE1l.js";import"./index-BSxkprTm.js";var U=(function(){var t=s(function(h,r,n,l){for(n=n||{},l=h.length;l--;n[h[l]]=r);return n},"o"),e=[6,8,10,11,12,14,16,17,18],a=[1,9],f=[1,10],i=[1,11],u=[1,12],p=[1,13],o=[1,14],g={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:s(function(r,n,l,y,d,c,v){var k=c.length-1;switch(d){case 1:return c[k-1];case 2:this.$=[];break;case 3:c[k-1].push(c[k]),this.$=c[k-1];break;case 4:case 5:this.$=c[k];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(c[k].substr(6)),this.$=c[k].substr(6);break;case 9:this.$=c[k].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=c[k].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(c[k].substr(8)),this.$=c[k].substr(8);break;case 13:y.addTask(c[k-1],c[k]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:a,12:f,14:i,16:u,17:p,18:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:a,12:f,14:i,16:u,17:p,18:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:s(function(r,n){if(n.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=n,l}},"parseError"),parse:s(function(r){var n=this,l=[0],y=[],d=[null],c=[],v=this.table,k="",C=0,Q=0,yt=2,D=1,dt=c.slice.call(arguments,1),_=Object.create(this.lexer),I={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(I.yy[O]=this.yy[O]);_.setInput(r,I.yy),I.yy.lexer=_,I.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var Y=_.yylloc;c.push(Y);var ft=_.options&&_.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pt(w){l.length=l.length-2*w,d.length=d.length-w,c.length=c.length-w}s(pt,"popStack");function tt(){var w;return w=y.pop()||_.lex()||D,typeof w!="number"&&(w instanceof Array&&(y=w,w=y.pop()),w=n.symbols_[w]||w),w}s(tt,"lex");for(var b,A,T,q,F={},N,M,et,z;;){if(A=l[l.length-1],this.defaultActions[A]?T=this.defaultActions[A]:((b===null||typeof b>"u")&&(b=tt()),T=v[A]&&v[A][b]),typeof T>"u"||!T.length||!T[0]){var H="";z=[];for(N in v[A])this.terminals_[N]&&N>yt&&z.push("'"+this.terminals_[N]+"'");_.showPosition?H="Parse error on line "+(C+1)+`:
1
+ import{g as gt}from"./chunk-5VM5RSS4-DmGjbtZg.js";import{a as mt,b as lt,h as xt,d as kt}from"./chunk-55XCU76K-XLIA3Qss.js";import{g as _t,s as vt,a as bt,b as wt,v as Tt,t as St,_ as s,c as R,d as $t,A as Mt}from"./mermaid.core-C6ckWvkG.js";import{s as X}from"./transform-BqqRT-Iy.js";import{d as it}from"./arc-AndXXvZc.js";import"./index-p3WivF1M.js";import"./BlintzCanvas-Dd3bC9vw.js";import"./index-DSIdPh8G.js";import"./index-JoxvTUfo.js";var U=(function(){var t=s(function(h,r,n,l){for(n=n||{},l=h.length;l--;n[h[l]]=r);return n},"o"),e=[6,8,10,11,12,14,16,17,18],a=[1,9],f=[1,10],i=[1,11],u=[1,12],p=[1,13],o=[1,14],g={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:s(function(r,n,l,y,d,c,v){var k=c.length-1;switch(d){case 1:return c[k-1];case 2:this.$=[];break;case 3:c[k-1].push(c[k]),this.$=c[k-1];break;case 4:case 5:this.$=c[k];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(c[k].substr(6)),this.$=c[k].substr(6);break;case 9:this.$=c[k].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=c[k].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(c[k].substr(8)),this.$=c[k].substr(8);break;case 13:y.addTask(c[k-1],c[k]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:a,12:f,14:i,16:u,17:p,18:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:a,12:f,14:i,16:u,17:p,18:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:s(function(r,n){if(n.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=n,l}},"parseError"),parse:s(function(r){var n=this,l=[0],y=[],d=[null],c=[],v=this.table,k="",C=0,Q=0,yt=2,D=1,dt=c.slice.call(arguments,1),_=Object.create(this.lexer),I={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(I.yy[O]=this.yy[O]);_.setInput(r,I.yy),I.yy.lexer=_,I.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var Y=_.yylloc;c.push(Y);var ft=_.options&&_.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pt(w){l.length=l.length-2*w,d.length=d.length-w,c.length=c.length-w}s(pt,"popStack");function tt(){var w;return w=y.pop()||_.lex()||D,typeof w!="number"&&(w instanceof Array&&(y=w,w=y.pop()),w=n.symbols_[w]||w),w}s(tt,"lex");for(var b,A,T,q,F={},N,M,et,z;;){if(A=l[l.length-1],this.defaultActions[A]?T=this.defaultActions[A]:((b===null||typeof b>"u")&&(b=tt()),T=v[A]&&v[A][b]),typeof T>"u"||!T.length||!T[0]){var H="";z=[];for(N in v[A])this.terminals_[N]&&N>yt&&z.push("'"+this.terminals_[N]+"'");_.showPosition?H="Parse error on line "+(C+1)+`:
2
2
  `+_.showPosition()+`
3
3
  Expecting `+z.join(", ")+", got '"+(this.terminals_[b]||b)+"'":H="Parse error on line "+(C+1)+": Unexpected "+(b==D?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(H,{text:_.match,token:this.terminals_[b]||b,line:_.yylineno,loc:Y,expected:z})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+b);switch(T[0]){case 1:l.push(b),d.push(_.yytext),c.push(_.yylloc),l.push(T[1]),b=null,Q=_.yyleng,k=_.yytext,C=_.yylineno,Y=_.yylloc;break;case 2:if(M=this.productions_[T[1]][1],F.$=d[d.length-M],F._$={first_line:c[c.length-(M||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(M||1)].first_column,last_column:c[c.length-1].last_column},ft&&(F._$.range=[c[c.length-(M||1)].range[0],c[c.length-1].range[1]]),q=this.performAction.apply(F,[k,Q,C,I.yy,T[1],d,c].concat(dt)),typeof q<"u")return q;M&&(l=l.slice(0,-1*M*2),d=d.slice(0,-1*M),c=c.slice(0,-1*M)),l.push(this.productions_[T[1]][0]),d.push(F.$),c.push(F._$),et=v[l[l.length-2]][l[l.length-1]],l.push(et);break;case 3:return!0}}return!0},"parse")},m=(function(){var h={EOF:1,parseError:s(function(n,l){if(this.yy.parser)this.yy.parser.parseError(n,l);else throw new Error(n)},"parseError"),setInput:s(function(r,n){return this.yy=n||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:s(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var n=r.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:s(function(r){var n=r.length,l=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var y=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var d=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===y.length?this.yylloc.first_column:0)+y[y.length-l.length].length-l[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(r){this.unput(this.match.slice(r))},"less"),pastInput:s(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var r=this.pastInput(),n=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{_ as c,l as te,c as W,R as fe,al as ye,am as be,an as me,aj as _e,P as Y,j as F,x as ke,J as Ee,ag as Se,ah as le,ai as ce}from"./mermaid.core-BcRUBvZd.js";import{g as Ne}from"./chunk-5VM5RSS4-DswTXnmp.js";import"./index-B6Scr7KJ.js";import"./BlintzCanvas-BCtfZPrs.js";import"./index-DsasLE1l.js";import"./index-BSxkprTm.js";import"./transform-BqqRT-Iy.js";var $=(function(){var t=c(function(_,s,n,a){for(n=n||{},a=_.length;a--;n[_[a]]=s);return n},"o"),g=[1,4],d=[1,13],r=[1,12],p=[1,15],k=[1,16],f=[1,20],h=[1,19],L=[6,7,8],C=[1,26],w=[1,24],N=[1,25],i=[6,7,11],G=[1,31],x=[6,7,11,24],P=[1,6,13,16,17,20,23],M=[1,35],U=[1,36],A=[1,6,7,11,13,16,17,20,23],H=[1,38],V={trace:c(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:c(function(s,n,a,o,u,e,B){var l=e.length-1;switch(u){case 6:case 7:return o;case 8:o.getLogger().trace("Stop NL ");break;case 9:o.getLogger().trace("Stop EOF ");break;case 11:o.getLogger().trace("Stop NL2 ");break;case 12:o.getLogger().trace("Stop EOF2 ");break;case 15:o.getLogger().info("Node: ",e[l-1].id),o.addNode(e[l-2].length,e[l-1].id,e[l-1].descr,e[l-1].type,e[l]);break;case 16:o.getLogger().info("Node: ",e[l].id),o.addNode(e[l-1].length,e[l].id,e[l].descr,e[l].type);break;case 17:o.getLogger().trace("Icon: ",e[l]),o.decorateNode({icon:e[l]});break;case 18:case 23:o.decorateNode({class:e[l]});break;case 19:o.getLogger().trace("SPACELIST");break;case 20:o.getLogger().trace("Node: ",e[l-1].id),o.addNode(0,e[l-1].id,e[l-1].descr,e[l-1].type,e[l]);break;case 21:o.getLogger().trace("Node: ",e[l].id),o.addNode(0,e[l].id,e[l].descr,e[l].type);break;case 22:o.decorateNode({icon:e[l]});break;case 27:o.getLogger().trace("node found ..",e[l-2]),this.$={id:e[l-1],descr:e[l-1],type:o.getType(e[l-2],e[l])};break;case 28:this.$={id:e[l],descr:e[l],type:0};break;case 29:o.getLogger().trace("node found ..",e[l-3]),this.$={id:e[l-3],descr:e[l-1],type:o.getType(e[l-2],e[l])};break;case 30:this.$=e[l-1]+e[l];break;case 31:this.$=e[l];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:g},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:g},{6:d,7:[1,10],9:9,12:11,13:r,14:14,16:p,17:k,18:17,19:18,20:f,23:h},t(L,[2,3]),{1:[2,2]},t(L,[2,4]),t(L,[2,5]),{1:[2,6],6:d,12:21,13:r,14:14,16:p,17:k,18:17,19:18,20:f,23:h},{6:d,9:22,12:11,13:r,14:14,16:p,17:k,18:17,19:18,20:f,23:h},{6:C,7:w,10:23,11:N},t(i,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:f,23:h}),t(i,[2,19]),t(i,[2,21],{15:30,24:G}),t(i,[2,22]),t(i,[2,23]),t(x,[2,25]),t(x,[2,26]),t(x,[2,28],{20:[1,32]}),{21:[1,33]},{6:C,7:w,10:34,11:N},{1:[2,7],6:d,12:21,13:r,14:14,16:p,17:k,18:17,19:18,20:f,23:h},t(P,[2,14],{7:M,11:U}),t(A,[2,8]),t(A,[2,9]),t(A,[2,10]),t(i,[2,16],{15:37,24:G}),t(i,[2,17]),t(i,[2,18]),t(i,[2,20],{24:H}),t(x,[2,31]),{21:[1,39]},{22:[1,40]},t(P,[2,13],{7:M,11:U}),t(A,[2,11]),t(A,[2,12]),t(i,[2,15],{24:H}),t(x,[2,30]),{22:[1,41]},t(x,[2,27]),t(x,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:c(function(s,n){if(n.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=n,a}},"parseError"),parse:c(function(s){var n=this,a=[0],o=[],u=[null],e=[],B=this.table,l="",z=0,ie=0,ue=2,re=1,ge=e.slice.call(arguments,1),m=Object.create(this.lexer),T={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(T.yy[J]=this.yy[J]);m.setInput(s,T.yy),T.yy.lexer=m,T.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var q=m.yylloc;e.push(q);var de=m.options&&m.options.ranges;typeof T.yy.parseError=="function"?this.parseError=T.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pe(S){a.length=a.length-2*S,u.length=u.length-S,e.length=e.length-S}c(pe,"popStack");function ae(){var S;return S=o.pop()||m.lex()||re,typeof S!="number"&&(S instanceof Array&&(o=S,S=o.pop()),S=n.symbols_[S]||S),S}c(ae,"lex");for(var E,R,v,Q,j={},X,I,oe,K;;){if(R=a[a.length-1],this.defaultActions[R]?v=this.defaultActions[R]:((E===null||typeof E>"u")&&(E=ae()),v=B[R]&&B[R][E]),typeof v>"u"||!v.length||!v[0]){var Z="";K=[];for(X in B[R])this.terminals_[X]&&X>ue&&K.push("'"+this.terminals_[X]+"'");m.showPosition?Z="Parse error on line "+(z+1)+`:
1
+ import{_ as c,l as te,c as W,R as fe,al as ye,am as be,an as me,aj as _e,P as Y,j as F,x as ke,J as Ee,ag as Se,ah as le,ai as ce}from"./mermaid.core-C6ckWvkG.js";import{g as Ne}from"./chunk-5VM5RSS4-DmGjbtZg.js";import"./index-p3WivF1M.js";import"./BlintzCanvas-Dd3bC9vw.js";import"./index-DSIdPh8G.js";import"./index-JoxvTUfo.js";import"./transform-BqqRT-Iy.js";var $=(function(){var t=c(function(_,s,n,a){for(n=n||{},a=_.length;a--;n[_[a]]=s);return n},"o"),g=[1,4],d=[1,13],r=[1,12],p=[1,15],k=[1,16],f=[1,20],h=[1,19],L=[6,7,8],C=[1,26],w=[1,24],N=[1,25],i=[6,7,11],G=[1,31],x=[6,7,11,24],P=[1,6,13,16,17,20,23],M=[1,35],U=[1,36],A=[1,6,7,11,13,16,17,20,23],H=[1,38],V={trace:c(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:c(function(s,n,a,o,u,e,B){var l=e.length-1;switch(u){case 6:case 7:return o;case 8:o.getLogger().trace("Stop NL ");break;case 9:o.getLogger().trace("Stop EOF ");break;case 11:o.getLogger().trace("Stop NL2 ");break;case 12:o.getLogger().trace("Stop EOF2 ");break;case 15:o.getLogger().info("Node: ",e[l-1].id),o.addNode(e[l-2].length,e[l-1].id,e[l-1].descr,e[l-1].type,e[l]);break;case 16:o.getLogger().info("Node: ",e[l].id),o.addNode(e[l-1].length,e[l].id,e[l].descr,e[l].type);break;case 17:o.getLogger().trace("Icon: ",e[l]),o.decorateNode({icon:e[l]});break;case 18:case 23:o.decorateNode({class:e[l]});break;case 19:o.getLogger().trace("SPACELIST");break;case 20:o.getLogger().trace("Node: ",e[l-1].id),o.addNode(0,e[l-1].id,e[l-1].descr,e[l-1].type,e[l]);break;case 21:o.getLogger().trace("Node: ",e[l].id),o.addNode(0,e[l].id,e[l].descr,e[l].type);break;case 22:o.decorateNode({icon:e[l]});break;case 27:o.getLogger().trace("node found ..",e[l-2]),this.$={id:e[l-1],descr:e[l-1],type:o.getType(e[l-2],e[l])};break;case 28:this.$={id:e[l],descr:e[l],type:0};break;case 29:o.getLogger().trace("node found ..",e[l-3]),this.$={id:e[l-3],descr:e[l-1],type:o.getType(e[l-2],e[l])};break;case 30:this.$=e[l-1]+e[l];break;case 31:this.$=e[l];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:g},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:g},{6:d,7:[1,10],9:9,12:11,13:r,14:14,16:p,17:k,18:17,19:18,20:f,23:h},t(L,[2,3]),{1:[2,2]},t(L,[2,4]),t(L,[2,5]),{1:[2,6],6:d,12:21,13:r,14:14,16:p,17:k,18:17,19:18,20:f,23:h},{6:d,9:22,12:11,13:r,14:14,16:p,17:k,18:17,19:18,20:f,23:h},{6:C,7:w,10:23,11:N},t(i,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:f,23:h}),t(i,[2,19]),t(i,[2,21],{15:30,24:G}),t(i,[2,22]),t(i,[2,23]),t(x,[2,25]),t(x,[2,26]),t(x,[2,28],{20:[1,32]}),{21:[1,33]},{6:C,7:w,10:34,11:N},{1:[2,7],6:d,12:21,13:r,14:14,16:p,17:k,18:17,19:18,20:f,23:h},t(P,[2,14],{7:M,11:U}),t(A,[2,8]),t(A,[2,9]),t(A,[2,10]),t(i,[2,16],{15:37,24:G}),t(i,[2,17]),t(i,[2,18]),t(i,[2,20],{24:H}),t(x,[2,31]),{21:[1,39]},{22:[1,40]},t(P,[2,13],{7:M,11:U}),t(A,[2,11]),t(A,[2,12]),t(i,[2,15],{24:H}),t(x,[2,30]),{22:[1,41]},t(x,[2,27]),t(x,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:c(function(s,n){if(n.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=n,a}},"parseError"),parse:c(function(s){var n=this,a=[0],o=[],u=[null],e=[],B=this.table,l="",z=0,ie=0,ue=2,re=1,ge=e.slice.call(arguments,1),m=Object.create(this.lexer),T={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(T.yy[J]=this.yy[J]);m.setInput(s,T.yy),T.yy.lexer=m,T.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var q=m.yylloc;e.push(q);var de=m.options&&m.options.ranges;typeof T.yy.parseError=="function"?this.parseError=T.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pe(S){a.length=a.length-2*S,u.length=u.length-S,e.length=e.length-S}c(pe,"popStack");function ae(){var S;return S=o.pop()||m.lex()||re,typeof S!="number"&&(S instanceof Array&&(o=S,S=o.pop()),S=n.symbols_[S]||S),S}c(ae,"lex");for(var E,R,v,Q,j={},X,I,oe,K;;){if(R=a[a.length-1],this.defaultActions[R]?v=this.defaultActions[R]:((E===null||typeof E>"u")&&(E=ae()),v=B[R]&&B[R][E]),typeof v>"u"||!v.length||!v[0]){var Z="";K=[];for(X in B[R])this.terminals_[X]&&X>ue&&K.push("'"+this.terminals_[X]+"'");m.showPosition?Z="Parse error on line "+(z+1)+`:
2
2
  `+m.showPosition()+`
3
3
  Expecting `+K.join(", ")+", got '"+(this.terminals_[E]||E)+"'":Z="Parse error on line "+(z+1)+": Unexpected "+(E==re?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(Z,{text:m.match,token:this.terminals_[E]||E,line:m.yylineno,loc:q,expected:K})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+R+", token: "+E);switch(v[0]){case 1:a.push(E),u.push(m.yytext),e.push(m.yylloc),a.push(v[1]),E=null,ie=m.yyleng,l=m.yytext,z=m.yylineno,q=m.yylloc;break;case 2:if(I=this.productions_[v[1]][1],j.$=u[u.length-I],j._$={first_line:e[e.length-(I||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(I||1)].first_column,last_column:e[e.length-1].last_column},de&&(j._$.range=[e[e.length-(I||1)].range[0],e[e.length-1].range[1]]),Q=this.performAction.apply(j,[l,ie,z,T.yy,v[1],u,e].concat(ge)),typeof Q<"u")return Q;I&&(a=a.slice(0,-1*I*2),u=u.slice(0,-1*I),e=e.slice(0,-1*I)),a.push(this.productions_[v[1]][0]),u.push(j.$),e.push(j._$),oe=B[a[a.length-2]][a[a.length-1]],a.push(oe);break;case 3:return!0}}return!0},"parse")},y=(function(){var _={EOF:1,parseError:c(function(n,a){if(this.yy.parser)this.yy.parser.parseError(n,a);else throw new Error(n)},"parseError"),setInput:c(function(s,n){return this.yy=n||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:c(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var n=s.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:c(function(s){var n=s.length,a=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var o=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===o.length?this.yylloc.first_column:0)+o[o.length-a.length].length-a[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:c(function(){return this._more=!0,this},"more"),reject:c(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:c(function(s){this.unput(this.match.slice(s))},"less"),pastInput:c(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:c(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:c(function(){var s=this.pastInput(),n=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{O as e}from"./index-B6Scr7KJ.js";/**
1
+ import{O as e}from"./index-p3WivF1M.js";/**
2
2
  * @license lucide-react v1.48.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{O as t}from"./index-B6Scr7KJ.js";/**
1
+ import{O as t}from"./index-p3WivF1M.js";/**
2
2
  * @license lucide-react v1.48.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{O as n}from"./index-B6Scr7KJ.js";/**
1
+ import{O as n}from"./index-p3WivF1M.js";/**
2
2
  * @license lucide-react v1.48.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1 +1 @@
1
- import{aJ as e}from"./index-B6Scr7KJ.js";function i(o){const r=o.filter(t=>!e.includes(t)&&t!=="test-mode"&&t!=="computer-local");return[...e,...r]}export{i as l};
1
+ import{aJ as e}from"./index-p3WivF1M.js";function i(o){const r=o.filter(t=>!e.includes(t)&&t!=="test-mode"&&t!=="computer-local");return[...e,...r]}export{i as l};
@@ -1 +1 @@
1
- var g=Object.defineProperty;var k=(r,t,e)=>t in r?g(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var p=(r,t,e)=>k(r,typeof t!="symbol"?t+"":t,e);import{r as n,j as a,G as f,dJ as E,dK as b,dL as y}from"./index-B6Scr7KJ.js";class j extends n.Component{constructor(){super(...arguments);p(this,"state",{hasError:!1})}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,s){console.error("[Markdown] Render error:",e,s.componentStack)}componentDidUpdate(e){e.resetKey!==this.props.resetKey&&this.state.hasError&&this.setState({hasError:!1})}render(){return this.state.hasError?this.props.fallback??a.jsx("p",{className:"text-muted-foreground text-sm",children:"This content couldn’t be displayed."}):this.props.children}}function M({node:r,className:t,src:e,alt:s,...d}){const i=n.useRef(null),[o,l]=n.useState(!1),[h,x]=n.useState(!1);if(n.useLayoutEffect(()=>{var m,u;(u=(m=i.current)==null?void 0:m.parentElement)!=null&&u.closest("a")&&l(!0)},[]),h)return a.jsx("span",{className:"text-muted-foreground bg-muted/40 inline-block rounded-md px-2 py-1 text-xs",children:s?`${s}, not available`:"Image not available"});const c=a.jsx("img",{ref:i,src:e,alt:s??"",loading:"lazy",decoding:"async",...d,onError:()=>x(!0),className:f("max-h-[32rem] max-w-full rounded-md",t)});return o||typeof e!="string"||e===""?c:a.jsx(E,{image:{src:e,alt:s??""},className:"my-1 inline-block",children:c})}function v({content:r,className:t,errorFallback:e,components:s,allowedTags:d,literalTagContent:i,renderers:o}){const l=n.useMemo(()=>o?{renderers:o}:void 0,[o]);return a.jsx("div",{className:f("desktop:select-text",t),children:a.jsx(j,{resetKey:r,fallback:e,children:a.jsx(b,{components:{img:M,...s,a:y},allowedTags:d,literalTagContent:i,plugins:l,children:r})})})}export{v as M,j as a,M as b};
1
+ var g=Object.defineProperty;var k=(r,t,e)=>t in r?g(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var p=(r,t,e)=>k(r,typeof t!="symbol"?t+"":t,e);import{r as n,j as a,G as f,dJ as E,dK as b,dL as y}from"./index-p3WivF1M.js";class j extends n.Component{constructor(){super(...arguments);p(this,"state",{hasError:!1})}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,s){console.error("[Markdown] Render error:",e,s.componentStack)}componentDidUpdate(e){e.resetKey!==this.props.resetKey&&this.state.hasError&&this.setState({hasError:!1})}render(){return this.state.hasError?this.props.fallback??a.jsx("p",{className:"text-muted-foreground text-sm",children:"This content couldn’t be displayed."}):this.props.children}}function M({node:r,className:t,src:e,alt:s,...d}){const i=n.useRef(null),[o,l]=n.useState(!1),[h,x]=n.useState(!1);if(n.useLayoutEffect(()=>{var m,u;(u=(m=i.current)==null?void 0:m.parentElement)!=null&&u.closest("a")&&l(!0)},[]),h)return a.jsx("span",{className:"text-muted-foreground bg-muted/40 inline-block rounded-md px-2 py-1 text-xs",children:s?`${s}, not available`:"Image not available"});const c=a.jsx("img",{ref:i,src:e,alt:s??"",loading:"lazy",decoding:"async",...d,onError:()=>x(!0),className:f("max-h-[32rem] max-w-full rounded-md",t)});return o||typeof e!="string"||e===""?c:a.jsx(E,{image:{src:e,alt:s??""},className:"my-1 inline-block",children:c})}function v({content:r,className:t,errorFallback:e,components:s,allowedTags:d,literalTagContent:i,renderers:o}){const l=n.useMemo(()=>o?{renderers:o}:void 0,[o]);return a.jsx("div",{className:f("desktop:select-text",t),children:a.jsx(j,{resetKey:r,fallback:e,children:a.jsx(b,{components:{img:M,...s,a:y},allowedTags:d,literalTagContent:i,plugins:l,children:r})})})}export{v as M,j as a,M as b};
@@ -1 +1 @@
1
- import{W as x,j as n,G as o,aV as g,aW as h}from"./index-B6Scr7KJ.js";const v="65%",i=x("inline rounded-md px-1.5 py-0.5 font-medium [-webkit-box-decoration-break:clone] [box-decoration-break:clone] [overflow-wrap:anywhere]",{variants:{tone:{neutral:"bg-secondary text-secondary-foreground",agent:"bg-[color-mix(in_oklch,var(--identity-color)_14%,transparent)]"},interactive:{true:"focus-visible:ring-ring cursor-pointer transition-[background-color] duration-(--identity-answer) ease-(--identity-ease-standard) focus-visible:ring-2 focus-visible:outline-none",false:""}},compoundVariants:[{tone:"agent",interactive:!0,class:"hover:bg-[color-mix(in_oklch,var(--identity-color)_20%,transparent)]"},{tone:"neutral",interactive:!0,class:"hover:bg-[color-mix(in_oklch,hsl(var(--secondary)),hsl(var(--foreground))_10%)]"}],defaultVariants:{tone:"neutral",interactive:!1}});function p({kind:s,label:e,handle:l,color:c,origin:d,resolved:m,interactive:r,className:t,...a}){if(!m)return n.jsxs("span",{"data-slot":"mention-pill","data-resolved":"false",className:o("text-muted-foreground",t),...a,children:["@",e]});const u=l?`@${l}`:e;if(s==="agent")return n.jsxs("span",{"data-slot":"mention-pill","data-kind":"agent",title:u,className:o(i({tone:"agent",interactive:r}),t),style:{"--identity-color":c??"currentColor",color:`color-mix(in oklch, ${c??"currentColor"} ${v}, hsl(var(--foreground)))`},...a,children:[n.jsx(g,{"aria-hidden":!0,className:"mr-0.5 inline-block size-[0.85em] align-[-0.15em]"}),e]});if(s==="system")return n.jsx("span",{"data-slot":"mention-pill","data-kind":"system",className:o(i({tone:"neutral",interactive:r}),t),...a,children:e});const f=typeof d=="object"&&d!==null;return n.jsxs("span",{"data-slot":"mention-pill","data-kind":"human",title:u,className:o(i({tone:"neutral",interactive:r}),t),...a,children:["@",e,f&&n.jsx(h,{"aria-hidden":!0,className:"ml-0.5 inline-block size-[0.72em] align-[-0.05em] opacity-70"})]})}export{p as M,i as m};
1
+ import{W as x,j as n,G as o,aV as g,aW as h}from"./index-p3WivF1M.js";const v="65%",i=x("inline rounded-md px-1.5 py-0.5 font-medium [-webkit-box-decoration-break:clone] [box-decoration-break:clone] [overflow-wrap:anywhere]",{variants:{tone:{neutral:"bg-secondary text-secondary-foreground",agent:"bg-[color-mix(in_oklch,var(--identity-color)_14%,transparent)]"},interactive:{true:"focus-visible:ring-ring cursor-pointer transition-[background-color] duration-(--identity-answer) ease-(--identity-ease-standard) focus-visible:ring-2 focus-visible:outline-none",false:""}},compoundVariants:[{tone:"agent",interactive:!0,class:"hover:bg-[color-mix(in_oklch,var(--identity-color)_20%,transparent)]"},{tone:"neutral",interactive:!0,class:"hover:bg-[color-mix(in_oklch,hsl(var(--secondary)),hsl(var(--foreground))_10%)]"}],defaultVariants:{tone:"neutral",interactive:!1}});function p({kind:s,label:e,handle:l,color:c,origin:d,resolved:m,interactive:r,className:t,...a}){if(!m)return n.jsxs("span",{"data-slot":"mention-pill","data-resolved":"false",className:o("text-muted-foreground",t),...a,children:["@",e]});const u=l?`@${l}`:e;if(s==="agent")return n.jsxs("span",{"data-slot":"mention-pill","data-kind":"agent",title:u,className:o(i({tone:"agent",interactive:r}),t),style:{"--identity-color":c??"currentColor",color:`color-mix(in oklch, ${c??"currentColor"} ${v}, hsl(var(--foreground)))`},...a,children:[n.jsx(g,{"aria-hidden":!0,className:"mr-0.5 inline-block size-[0.85em] align-[-0.15em]"}),e]});if(s==="system")return n.jsx("span",{"data-slot":"mention-pill","data-kind":"system",className:o(i({tone:"neutral",interactive:r}),t),...a,children:e});const f=typeof d=="object"&&d!==null;return n.jsxs("span",{"data-slot":"mention-pill","data-kind":"human",title:u,className:o(i({tone:"neutral",interactive:r}),t),...a,children:["@",e,f&&n.jsx(h,{"aria-hidden":!0,className:"ml-0.5 inline-block size-[0.72em] align-[-0.05em] opacity-70"})]})}export{p as M,i as m};